|
OpenShot Library | libopenshot 1.1.1
|
Header file for FFmpegUtilities. More...
#include "Exceptions.h"#include "OpenShotVersion.h"#include <libavcodec/avcodec.h>#include <libavformat/avformat.h>#include <libavutil/display.h>#include <libswscale/swscale.h>#include <libavresample/avresample.h>#include <libavutil/mathematics.h>#include <libavutil/pixfmt.h>#include <libavutil/pixdesc.h>#include <libavcodec/opt.h>#include <libavutil/spherical.h>#include "libavutil/imgutils.h"Go to the source code of this file.
Macros | |
| #define | ALLOC_CODEC_CTX(ctx, codec, stream) |
| #define | AUDIO_PACKET_ENCODING_SIZE 768000 |
| #define | AV_ALLOCATE_FRAME() |
| #define | AV_ALLOCATE_IMAGE(av_frame, pix_fmt, width, height) |
| #define | AV_COPY_PARAMS_FROM_CONTEXT(av_stream, av_codec) |
| #define | AV_COPY_PICTURE_DATA(av_frame, buffer, pix_fmt, width, height) |
| #define | av_err2str(errnum) |
| #define | AV_ERROR_MAX_STRING_SIZE 64 |
| #define | AV_FILENAME filename |
| #define | AV_FIND_DECODER_CODEC_ID(av_stream) |
| #define | AV_FREE_CONTEXT(av_context) |
| #define | AV_FREE_FRAME(av_frame) |
| #define | AV_FREE_PACKET(av_packet) |
| #define | AV_GET_CODEC_ATTRIBUTES(av_stream, av_context) |
| #define | AV_GET_CODEC_CONTEXT(av_stream, av_codec) |
| #define | AV_GET_CODEC_FROM_STREAM(av_stream, codec_in) |
| #define | AV_GET_CODEC_PAR_CONTEXT(av_stream, av_codec) |
| #define | AV_GET_CODEC_PIXEL_FORMAT(av_stream, av_context) |
| #define | AV_GET_CODEC_TYPE(av_stream) |
| #define | AV_GET_IMAGE_SIZE(pix_fmt, width, height) |
| #define | AV_GET_SAMPLE_FORMAT(av_stream, av_context) |
| #define | AV_OPTION_FIND(priv_data, name) |
| #define | AV_OPTION_SET(av_stream, priv_data, name, value, avcodec) |
| #define | AV_OUTPUT_CONTEXT(output_context, path) |
| #define | AV_REGISTER_ALL av_register_all(); |
| #define | AV_RESET_FRAME(av_frame) |
| #define | AV_SET_FILENAME(oc, f) |
| #define | AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 |
| #define | AVCODEC_REGISTER_ALL avcodec_register_all(); |
| #define | HAVE_CH_LAYOUT (LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(57, 28, 100)) |
| #define | INT64_C(c) |
| #define | IS_FFMPEG_3_2 (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 64, 101)) |
| #define | MY_INPUT_BUFFER_PADDING_SIZE FF_INPUT_BUFFER_PADDING_SIZE |
| #define | PIX_FMT_NONE AV_PIX_FMT_NONE |
| #define | PIX_FMT_RGB24 AV_PIX_FMT_RGB24 |
| #define | PIX_FMT_RGBA AV_PIX_FMT_RGBA |
| #define | PIX_FMT_YUV420P AV_PIX_FMT_YUV420P |
| #define | PIX_FMT_YUV444P AV_PIX_FMT_YUV444P |
| #define | PixelFormat AVPixelFormat |
| #define | SWR_ALLOC() |
| #define | SWR_CLOSE(ctx) |
| #define | SWR_CONVERT(ctx, out, linesize, out_count, in, linesize2, in_count) |
| #define | SWR_FREE(ctx) |
| #define | SWR_INIT(ctx) |
| #define | SWRCONTEXT AVAudioResampleContext |
| #define | UINT64_C(c) |
| #define | USE_HW_ACCEL (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 107, 100)) |
| #define | USE_SW FFMPEG_USE_SWRESAMPLE |
| #define ALLOC_CODEC_CTX | ( | ctx, | |
| codec, | |||
| stream ) |
Definition at line 335 of file FFmpegUtilities.h.
| #define AUDIO_PACKET_ENCODING_SIZE 768000 |
Definition at line 91 of file FFmpegUtilities.h.
| #define AV_ALLOCATE_FRAME | ( | ) |
Definition at line 310 of file FFmpegUtilities.h.
Referenced by openshot::FrameMapper::ResampleMappedAudio().
| #define AV_ALLOCATE_IMAGE | ( | av_frame, | |
| pix_fmt, | |||
| width, | |||
| height ) |
Definition at line 311 of file FFmpegUtilities.h.
| #define AV_COPY_PARAMS_FROM_CONTEXT | ( | av_stream, | |
| av_codec ) |
Definition at line 337 of file FFmpegUtilities.h.
| #define AV_COPY_PICTURE_DATA | ( | av_frame, | |
| buffer, | |||
| pix_fmt, | |||
| width, | |||
| height ) |
Definition at line 327 of file FFmpegUtilities.h.
| #define av_err2str | ( | errnum | ) |
Definition at line 104 of file FFmpegUtilities.h.
| #define AV_ERROR_MAX_STRING_SIZE 64 |
Definition at line 87 of file FFmpegUtilities.h.
| #define AV_FILENAME filename |
Definition at line 307 of file FFmpegUtilities.h.
| #define AV_FIND_DECODER_CODEC_ID | ( | av_stream | ) |
Definition at line 318 of file FFmpegUtilities.h.
Referenced by openshot::FFmpegReader::Open().
| #define AV_FREE_CONTEXT | ( | av_context | ) |
Definition at line 316 of file FFmpegUtilities.h.
Referenced by openshot::FFmpegReader::Close(), and openshot::FFmpegReader::Open().
| #define AV_FREE_FRAME | ( | av_frame | ) |
Definition at line 314 of file FFmpegUtilities.h.
Referenced by openshot::FFmpegReader::Close(), and openshot::FrameMapper::ResampleMappedAudio().
| #define AV_FREE_PACKET | ( | av_packet | ) |
Definition at line 315 of file FFmpegUtilities.h.
| #define AV_GET_CODEC_ATTRIBUTES | ( | av_stream, | |
| av_context ) |
Definition at line 322 of file FFmpegUtilities.h.
| #define AV_GET_CODEC_CONTEXT | ( | av_stream, | |
| av_codec ) |
Definition at line 319 of file FFmpegUtilities.h.
Referenced by openshot::FFmpegReader::Open().
| #define AV_GET_CODEC_FROM_STREAM | ( | av_stream, | |
| codec_in ) |
Definition at line 321 of file FFmpegUtilities.h.
| #define AV_GET_CODEC_PAR_CONTEXT | ( | av_stream, | |
| av_codec ) |
Definition at line 320 of file FFmpegUtilities.h.
Referenced by openshot::FFmpegWriter::SetOption().
| #define AV_GET_CODEC_PIXEL_FORMAT | ( | av_stream, | |
| av_context ) |
Definition at line 323 of file FFmpegUtilities.h.
| #define AV_GET_CODEC_TYPE | ( | av_stream | ) |
Definition at line 317 of file FFmpegUtilities.h.
Referenced by openshot::FFmpegReader::Open().
| #define AV_GET_IMAGE_SIZE | ( | pix_fmt, | |
| width, | |||
| height ) |
Definition at line 326 of file FFmpegUtilities.h.
| #define AV_GET_SAMPLE_FORMAT | ( | av_stream, | |
| av_context ) |
Definition at line 325 of file FFmpegUtilities.h.
| #define AV_OPTION_FIND | ( | priv_data, | |
| name ) |
Definition at line 331 of file FFmpegUtilities.h.
Referenced by openshot::FFmpegWriter::SetOption().
| #define AV_OPTION_SET | ( | av_stream, | |
| priv_data, | |||
| name, | |||
| value, | |||
| avcodec ) |
Definition at line 332 of file FFmpegUtilities.h.
Referenced by openshot::FFmpegWriter::SetOption().
| #define AV_OUTPUT_CONTEXT | ( | output_context, | |
| path ) |
Definition at line 329 of file FFmpegUtilities.h.
| #define AV_REGISTER_ALL av_register_all(); |
Definition at line 305 of file FFmpegUtilities.h.
Referenced by openshot::FFmpegReader::FFmpegReader(), openshot::FFmpegWriter::FFmpegWriter(), openshot::FFmpegWriter::GetEncoderInfo(), openshot::FFmpegWriter::GetEncoders(), openshot::FFmpegWriter::GetFormatInfo(), openshot::FFmpegWriter::GetFormats(), openshot::FFmpegWriter::IsCodecSupportedByFormat(), and openshot::FFmpegWriter::IsValidCodec().
| #define AV_RESET_FRAME | ( | av_frame | ) |
Definition at line 313 of file FFmpegUtilities.h.
Referenced by openshot::FrameMapper::ResampleMappedAudio().
| #define AV_SET_FILENAME | ( | oc, | |
| f ) |
Definition at line 308 of file FFmpegUtilities.h.
Referenced by openshot::FFmpegWriter::WriteHeader().
| #define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 |
Definition at line 84 of file FFmpegUtilities.h.
| #define AVCODEC_REGISTER_ALL avcodec_register_all(); |
Definition at line 306 of file FFmpegUtilities.h.
Referenced by openshot::FFmpegReader::FFmpegReader().
| #define HAVE_CH_LAYOUT (LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(57, 28, 100)) |
Definition at line 37 of file FFmpegUtilities.h.
| #define INT64_C | ( | c | ) |
Definition at line 21 of file FFmpegUtilities.h.
| #define IS_FFMPEG_3_2 (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 64, 101)) |
Definition at line 26 of file FFmpegUtilities.h.
| #define MY_INPUT_BUFFER_PADDING_SIZE FF_INPUT_BUFFER_PADDING_SIZE |
Definition at line 309 of file FFmpegUtilities.h.
| #define PIX_FMT_NONE AV_PIX_FMT_NONE |
Definition at line 114 of file FFmpegUtilities.h.
| #define PIX_FMT_RGB24 AV_PIX_FMT_RGB24 |
Definition at line 117 of file FFmpegUtilities.h.
| #define PIX_FMT_RGBA AV_PIX_FMT_RGBA |
Definition at line 111 of file FFmpegUtilities.h.
| #define PIX_FMT_YUV420P AV_PIX_FMT_YUV420P |
Definition at line 120 of file FFmpegUtilities.h.
| #define PIX_FMT_YUV444P AV_PIX_FMT_YUV444P |
Definition at line 123 of file FFmpegUtilities.h.
Referenced by openshot::FFmpegWriter::SetOption().
| #define PixelFormat AVPixelFormat |
Definition at line 108 of file FFmpegUtilities.h.
| #define SWR_ALLOC | ( | ) |
Definition at line 261 of file FFmpegUtilities.h.
Referenced by openshot::FrameMapper::ResampleMappedAudio().
| #define SWR_CLOSE | ( | ctx | ) |
Definition at line 262 of file FFmpegUtilities.h.
Referenced by openshot::FrameMapper::ChangeMapping(), openshot::FFmpegReader::Close(), openshot::FrameMapper::Close(), and openshot::FrameMapper::GetFrame().
| #define SWR_CONVERT | ( | ctx, | |
| out, | |||
| linesize, | |||
| out_count, | |||
| in, | |||
| linesize2, | |||
| in_count ) |
Definition at line 259 of file FFmpegUtilities.h.
Referenced by openshot::FrameMapper::ResampleMappedAudio().
| #define SWR_FREE | ( | ctx | ) |
Definition at line 263 of file FFmpegUtilities.h.
Referenced by openshot::FrameMapper::ChangeMapping(), openshot::FFmpegReader::Close(), openshot::FrameMapper::Close(), openshot::FrameMapper::GetFrame(), and openshot::FrameMapper::ResampleMappedAudio().
| #define SWR_INIT | ( | ctx | ) |
Definition at line 264 of file FFmpegUtilities.h.
Referenced by openshot::FrameMapper::ResampleMappedAudio().
| #define SWRCONTEXT AVAudioResampleContext |
Definition at line 265 of file FFmpegUtilities.h.
| #define UINT64_C | ( | c | ) |
Definition at line 22 of file FFmpegUtilities.h.
| #define USE_HW_ACCEL (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 107, 100)) |
Definition at line 30 of file FFmpegUtilities.h.
| #define USE_SW FFMPEG_USE_SWRESAMPLE |
Definition at line 34 of file FFmpegUtilities.h.