Go to the documentation of this file.
56 #define FF_MAX_EXTRADATA_SIZE ((1 << 28) - AV_INPUT_BUFFER_PADDING_SIZE)
76 for (
i = 0;
i < count;
i++) {
90 for (
i = 0;
i < count;
i++) {
118 switch (
ctx->codec_type) {
127 if (bits_per_sample) {
128 bit_rate =
ctx->sample_rate * (
int64_t)
ctx->ch_layout.nb_channels;
129 if (bit_rate > INT64_MAX / bits_per_sample) {
132 bit_rate *= bits_per_sample;
153 if (!codec && !avctx->
codec) {
157 if (codec && avctx->
codec && codec != avctx->
codec) {
159 "but %s passed to avcodec_open2()\n", avctx->
codec->
name, codec->
name);
163 codec = avctx->
codec;
174 avctx->
codec = codec;
296 "The %s '%s' is experimental but experimental codecs are not enabled, "
297 "add '-strict %d' if you want to use it.\n",
385 "that doesn't support it\n");
425 memset(sub, 0,
sizeof(*sub));
438 if (CONFIG_FRAME_THREAD_ENCODER &&
465 #if FF_API_DROPCHANGED
500 #if FF_API_AVCODEC_CLOSE
510 return str ? str :
"unknown";
516 const char *codec_name;
525 if (!buf || buf_size <= 0)
545 enc->
refs, enc->
refs > 1 ?
"s" :
"");
582 if (strcmp(col, pri) || strcmp(col, trc)) {
584 av_bprintf(&bprint,
"%s/%s/%s, ", col, pri, trc);
590 const char *field_order =
"progressive";
592 field_order =
"top first";
594 field_order =
"bottom first";
596 field_order =
"top coded first (swapped)";
598 field_order =
"bottom coded first (swapped)";
608 if (
len == bprint.len) {
609 bprint.str[
len - 1] =
'\0';
612 if (bprint.len - 2 < bprint.size) {
615 bprint.str[bprint.len] =
'\0';
622 av_bprintf(&bprint,
"%s%dx%d", new_line ? separator :
", ",
639 display_aspect_ratio.
num, display_aspect_ratio.
den);
710 return !!
s->internal;
722 #define WRAP_CONFIG(allowed_type, field, field_type, terminator) \
724 static const field_type end = terminator; \
725 if (codec->type != (allowed_type)) \
726 return AVERROR(EINVAL); \
727 *out_configs = (field); \
728 if (out_num_configs) { \
729 for (int i = 0;; i++) { \
730 if (!(field) || !memcmp(&(field)[i], &end, sizeof(end))) { \
731 *out_num_configs = i; \
761 const void **out_configs,
762 int *out_num_configs)
789 *out_num_configs = 0;
798 const void **
out,
int *out_num)
803 codec = avctx->
codec;
805 out_num = &dummy_num;
#define AV_OPT_SEARCH_CHILDREN
Search in possible children of the given object first.
int(* func)(AVBPrint *dst, const char *in, const char *arg)
@ AV_PKT_DATA_DISPLAYMATRIX
This side data contains a 3x3 transformation matrix describing an affine transformation that needs to...
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
#define FF_ENABLE_DEPRECATION_WARNINGS
#define AV_LOG_WARNING
Something somehow does not look correct.
AVPixelFormat
Pixel format.
#define AVERROR_EXPERIMENTAL
Requested feature is flagged experimental. Set strict_std_compliance if you really want to use it.
void av_opt_set_defaults(void *s)
Set the values of all AVOption fields to their default values.
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
@ AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT
Ambient viewing environment metadata, as defined by H.274.
static int av_bprint_is_complete(const AVBPrint *buf)
Test if the print buffer is complete (not truncated).
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
void ff_thread_free(struct AVCodecContext *s)
enum AVColorSpace colorspace
YUV colorspace type.
AVFrameSideData ** decoded_side_data
Array containing static side data, such as HDR10 CLL / MDCV structures.
int sample_rate
samples per second
const AVClass * priv_class
AVClass for the private context.
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
@ AV_CODEC_CONFIG_SAMPLE_RATE
int, terminated by 0
@ AV_PKT_DATA_MASTERING_DISPLAY_METADATA
Mastering display metadata (based on SMPTE-2086:2014).
int ff_decode_receive_frame(struct AVCodecContext *avctx, struct AVFrame *frame)
avcodec_receive_frame() implementation for decoders.
void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
const struct AVCodecDescriptor * codec_descriptor
AVCodecDescriptor.
AVPacketSideData * coded_side_data
Additional data associated with the entire coded stream.
static enum AVColorRange color_range_mpeg[]
void ff_thread_flush(struct AVCodecContext *avctx)
Wait for decoding threads to finish and reset internal state.
static enum AVColorRange * color_range_table[]
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
const AVCodec * avcodec_find_encoder(enum AVCodecID id)
Find a registered encoder with a matching codec ID.
This structure describes decoded (raw) audio or video data.
enum AVColorTransferCharacteristic color_trc
Color Transfer Characteristic.
int ff_encode_preinit(struct AVCodecContext *avctx)
int capabilities
Codec capabilities.
@ AVCOL_RANGE_JPEG
Full range content.
int depth
Number of bits in the component.
enum AVFieldOrder field_order
Field order.
@ AV_CODEC_CONFIG_COLOR_RANGE
AVColorRange, terminated by AVCOL_RANGE_UNSPECIFIED.
void * frame_thread_encoder
AVFrame * in_frame
The input frame is stored here for encoders implementing the simple encode API.
static const char * unknown_if_null(const char *str)
#define FF_CODEC_CAP_NOT_INIT_THREADSAFE
The codec is not known to be init-threadsafe (i.e.
uint8_t * subtitle_header
#define AV_LOG_VERBOSE
Detailed information.
@ AV_FRAME_DATA_DISPLAYMATRIX
This side data contains a 3x3 transformation matrix describing an affine transformation that needs to...
#define FF_COMPLIANCE_EXPERIMENTAL
Allow nonstandardized experimental things.
@ AV_CODEC_CONFIG_PIX_FORMAT
AVPixelFormat, terminated by AV_PIX_FMT_NONE.
const char * avcodec_profile_name(enum AVCodecID codec_id, int profile)
Return a name for the specified profile, if available.
int avcodec_is_open(AVCodecContext *s)
int qmax
maximum quantizer
int nb_channels
Number of channels in this layout.
enum AVMediaType codec_type
int ff_set_dimensions(AVCodecContext *s, int width, int height)
Check that the provided frame dimensions are valid and set them on the codec context.
void av_bsf_free(AVBSFContext **pctx)
Free a bitstream filter context and everything associated with it; write NULL into the supplied point...
void av_packet_free(AVPacket **pkt)
Free the packet, if the packet is reference counted, it will be unreferenced first.
const char * av_chroma_location_name(enum AVChromaLocation location)
int av_channel_layout_describe_bprint(const AVChannelLayout *channel_layout, AVBPrint *bp)
bprint variant of av_channel_layout_describe().
@ AV_FIELD_BT
Bottom coded first, top displayed first.
int64_t av_gcd(int64_t a, int64_t b)
Compute the greatest common divisor of two integer operands.
void ff_hwaccel_uninit(AVCodecContext *avctx)
static int ff_mutex_unlock(AVMutex *mutex)
const attribute_deprecated AVRational * supported_framerates
Deprecated codec capabilities.
@ AV_PKT_DATA_REPLAYGAIN
This side data should be associated with an audio stream and contains ReplayGain information in form ...
struct FFRefStructPool * progress_frame_pool
@ AV_FIELD_TT
Top coded_first, top displayed first.
const char * av_color_space_name(enum AVColorSpace space)
void av_bprint_init_for_buffer(AVBPrint *buf, char *buffer, unsigned size)
Init a print buffer using a pre-existing buffer.
const struct AVCodec * codec
const attribute_deprecated int * supported_samplerates
AVChannelLayout ch_layout
Audio channel layout.
int thread_count
thread count is used to decide how many independent tasks should be passed to execute()
static void ff_refstruct_pool_uninit(FFRefStructPool **poolp)
Mark the pool as being available for freeing.
static int64_t get_bit_rate(AVCodecContext *ctx)
int initial_padding
Audio only.
int refs
number of reference frames
void av_opt_free(void *obj)
Free all allocated objects in obj.
int flags
AV_CODEC_FLAG_*.
struct AVCodecInternal * ff_encode_internal_alloc(void)
int av_opt_set(void *obj, const char *name, const char *val, int search_flags)
#define AV_CODEC_CAP_ENCODER_FLUSH
This encoder can be flushed using avcodec_flush_buffers().
int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max)
Reduce a fraction.
@ AV_FIELD_TB
Top coded first, bottom displayed first.
int av_image_check_size2(unsigned int w, unsigned int h, int64_t max_pixels, enum AVPixelFormat pix_fmt, int log_offset, void *log_ctx)
Check if the given dimension of an image is valid, meaning that all bytes of a plane of an image with...
void avsubtitle_free(AVSubtitle *sub)
Free all allocated data in the given subtitle struct.
AVFrame * av_frame_alloc(void)
Allocate an AVFrame and set its fields to default values.
int64_t bit_rate
Total stream bitrate in bit/s, 0 if not available.
int av_get_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
enum AVColorPrimaries color_primaries
Chromaticity coordinates of the source primaries.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define AV_CODEC_CAP_EXPERIMENTAL
Codec is experimental and is thus avoided in favor of non experimental encoders.
#define FF_CODEC_PROPERTY_LOSSLESS
void ff_encode_flush_buffers(struct AVCodecContext *avctx)
AVDictionaryEntry * av_dict_get(const AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
@ AV_CODEC_CONFIG_SAMPLE_FORMAT
AVSampleFormat, terminated by AV_SAMPLE_FMT_NONE.
#define WRAP_CONFIG(allowed_type, field, field_type, terminator)
AVPacket * buffer_pkt
Temporary buffers for newly received or not yet output packets/frames.
int ff_decode_preinit(struct AVCodecContext *avctx)
Perform decoder initialization and validation.
static void unlock_avcodec(const FFCodec *codec)
@ AV_FRAME_DATA_AUDIO_SERVICE_TYPE
This side data must be associated with an audio frame and corresponds to enum AVAudioServiceType defi...
int attribute_align_arg avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame)
Return decoded output data from a decoder or encoder (when the AV_CODEC_FLAG_RECON_FRAME flag is used...
#define av_assert0(cond)
assert() equivalent, that is always enabled.
int avcodec_close(AVCodecContext *avctx)
Close a given AVCodecContext and free all the data associated with it (but not the AVCodecContext its...
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
void(* flush)(struct AVCodecContext *)
Flush buffers.
static enum AVColorRange color_range_all[]
@ AV_PKT_DATA_STEREO3D
This side data should be associated with a video stream and contains Stereoscopic 3D information in f...
int64_t max_pixels
The number of pixels per image to maximally accept.
void ff_icc_context_uninit(FFIccContext *s)
int64_t rc_max_rate
maximum bitrate
const char * av_get_sample_fmt_name(enum AVSampleFormat sample_fmt)
Return the name of sample_fmt, or NULL if sample_fmt is not recognized.
@ AVMEDIA_TYPE_DATA
Opaque data information usually continuous.
int(* init)(struct AVCodecContext *)
#define FF_CODEC_PROPERTY_FILM_GRAIN
const char * av_color_range_name(enum AVColorRange range)
int av_log_get_level(void)
Get the current log level.
#define FF_MAX_EXTRADATA_SIZE
Maximum size in bytes of extradata.
@ AV_FRAME_DATA_SPHERICAL
The data represents the AVSphericalMapping structure defined in libavutil/spherical....
Describe the class of an AVClass context structure.
int av_match_list(const char *name, const char *list, char separator)
Check if a name is in a list.
enum AVColorRange color_range
MPEG vs JPEG YUV range.
unsigned color_ranges
This field determines the video color ranges supported by an encoder.
void av_buffer_unref(AVBufferRef **buf)
Free a given reference and automatically free the buffer if there are no more references to it.
@ AV_CODEC_CONFIG_FRAME_RATE
AVRational, terminated by {0, 0}.
Rational number (pair of numerator and denominator).
struct AVCodecInternal * internal
Private context used for internal data.
int64_t bit_rate
the average bitrate
@ AV_FRAME_DATA_ICC_PROFILE
The data contains an ICC profile as an opaque octet buffer following the format described by ISO 1507...
#define FF_PTR_ADD(ptr, off)
int trailing_padding
Audio only.
@ AV_FRAME_DATA_MASTERING_DISPLAY_METADATA
Mastering display metadata associated with a video frame.
const char * av_color_primaries_name(enum AVColorPrimaries primaries)
int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options)
Initialize the AVCodecContext to use the given AVCodec.
const SideDataMap ff_sd_global_map[]
A map between packet and frame side data types.
@ AV_PKT_DATA_CONTENT_LIGHT_LEVEL
Content light level (based on CTA-861.3).
@ AVCOL_RANGE_UNSPECIFIED
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
AVPacket * last_pkt_props
Properties (timestamps+side data) extracted from the last packet passed for decoding.
@ AV_PKT_DATA_NB
The number of side data types.
const AVCodec * avcodec_find_decoder(enum AVCodecID id)
Find a registered decoder with a matching codec ID.
@ AV_PKT_DATA_SPHERICAL
This side data should be associated with a video stream and corresponds to the AVSphericalMapping str...
#define AV_CODEC_CAP_CHANNEL_CONF
Codec should fill in channel configuration and samplerate instead of container.
#define attribute_align_arg
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.
int av_codec_is_decoder(const AVCodec *codec)
int avcodec_get_supported_config(const AVCodecContext *avctx, const AVCodec *codec, enum AVCodecConfig config, unsigned flags, const void **out, int *out_num)
Retrieve a list of all supported values for a given configuration type.
@ AV_CODEC_CONFIG_CHANNEL_LAYOUT
AVChannelLayout, terminated by {0}.
@ AV_FRAME_DATA_REPLAYGAIN
ReplayGain information in the form of the AVReplayGain struct.
const attribute_deprecated AVChannelLayout * ch_layouts
Array of supported channel layouts, terminated with a zeroed layout.
@ AV_FRAME_DATA_AMBIENT_VIEWING_ENVIRONMENT
Ambient viewing environment metadata, as defined by H.274.
An AVChannelLayout holds information about the channel layout of audio data.
attribute_deprecated enum AVPixelFormat * pix_fmts
struct AVBSFContext * bsf
enum AVSampleFormat sample_fmt
audio sample format
#define AV_MUTEX_INITIALIZER
uint8_t * byte_buffer
temporary buffer used for encoders to store their bitstream
static const av_always_inline FFCodec * ffcodec(const AVCodec *codec)
@ AVCHROMA_LOC_UNSPECIFIED
@ AVMEDIA_TYPE_UNKNOWN
Usually treated as AVMEDIA_TYPE_DATA.
static AVMutex codec_mutex
#define AV_CODEC_FLAG_PASS2
Use internal 2pass ratecontrol in second pass mode.
static void encode(AVCodecContext *ctx, AVFrame *frame, AVPacket *pkt, FILE *output)
static enum AVColorRange color_range_jpeg[]
int avcodec_default_execute(AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size)
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf offset
static int ff_mutex_lock(AVMutex *mutex)
AVPacket * av_packet_alloc(void)
Allocate an AVPacket and set its fields to default values.
unsigned int byte_buffer_size
#define FF_THREAD_FRAME
Decode more than one frame at once.
int av_codec_is_encoder(const AVCodec *codec)
const char * avcodec_get_name(enum AVCodecID id)
Get the name of a codec.
int is_frame_mt
This field is set to 1 when frame threading is being used and the parent AVCodecContext of this AVCod...
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
unsigned caps_internal
Internal codec capabilities FF_CODEC_CAP_*.
@ AV_FRAME_DATA_CONTENT_LIGHT_LEVEL
Content light level (based on CTA-861.3).
int ff_default_get_supported_config(const AVCodecContext *avctx, const AVCodec *codec, enum AVCodecConfig config, unsigned flags, const void **out_configs, int *out_num_configs)
Default implementation for avcodec_get_supported_config().
int avcodec_default_execute2(AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2, int jobnr, int threadnr), void *arg, int *ret, int count)
#define i(width, name, range_min, range_max)
unsigned properties
Properties of the stream that gets decoded.
void av_frame_side_data_free(AVFrameSideData ***sd, int *nb_sd)
Free all side data entries and their contents, then zeroes out the values which the pointers are poin...
int av_get_bytes_per_sample(enum AVSampleFormat sample_fmt)
Return number of bytes per sample.
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
int av_opt_set_dict2(void *obj, AVDictionary **options, int search_flags)
Set all the options from a given dictionary on an object.
@ AV_FIELD_BB
Bottom coded first, bottom displayed first.
@ AV_PKT_DATA_ICC_PROFILE
ICC profile data consisting of an opaque octet buffer following the format described by ISO 15076-1.
AVPacket * in_pkt
This packet is used to hold the packet given to decoders implementing the .decode API; it is unused b...
AVSampleFormat
Audio sample formats.
@ AVMEDIA_TYPE_ATTACHMENT
Opaque data information usually sparse.
@ AV_FRAME_DATA_STEREO3D
Stereoscopic 3d metadata.
uint8_t * dump_separator
dump format separator.
void av_frame_unref(AVFrame *frame)
Unreference all the buffers referenced by frame and reset the frame fields.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
const char * name
Name of the codec implementation.
AVBufferRef * hw_device_ctx
A reference to the AVHWDeviceContext describing the device which will be used by a hardware encoder/d...
enum AVChromaLocation chroma_sample_location
This defines the location of chroma samples.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
@ AVCOL_RANGE_MPEG
Narrow or limited range content.
attribute_deprecated enum AVSampleFormat * sample_fmts
AVBufferRef * hw_frames_ctx
A reference to the AVHWFramesContext describing the input (for encoding) or output (decoding) frames.
int64_t frame_num
Frame counter, set by libavcodec.
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs.
void avcodec_flush_buffers(AVCodecContext *avctx)
Reset the internal codec state / flush internal buffers.
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a frame
struct AVCodecInternal * ff_decode_internal_alloc(void)
int strict_std_compliance
strictly follow the standard (MPEG-4, ...).
int av_channel_layout_check(const AVChannelLayout *channel_layout)
Check whether a channel layout is valid, i.e.
void ff_decode_flush_buffers(struct AVCodecContext *avctx)
void av_bprintf(AVBPrint *buf, const char *fmt,...)
AVFrame * recon_frame
When the AV_CODEC_FLAG_RECON_FRAME flag is used.
int needs_close
If this is set, then FFCodec->close (if existing) needs to be called for the parent AVCodecContext.
const char * av_get_media_type_string(enum AVMediaType media_type)
Return a string describing the media_type enum, NULL if media_type is unknown.
main external API structure.
int active_thread_type
Which multithreading methods are in use by the codec.
int qmin
minimum quantizer
void av_channel_layout_uninit(AVChannelLayout *channel_layout)
Free any allocated data in the channel layout and reset the channel count to 0.
AVComponentDescriptor comp[4]
Parameters that describe how pixels are packed.
#define FF_CODEC_PROPERTY_CLOSED_CAPTIONS
int(* close)(struct AVCodecContext *)
av_cold void ff_frame_thread_encoder_free(AVCodecContext *avctx)
int draining
decoding: AVERROR_EOF has been returned from ff_decode_get_packet(); must not be used by decoders tha...
#define FF_DISABLE_DEPRECATION_WARNINGS
int coded_width
Bitstream width / height, may be different from width/height e.g.
@ AV_PKT_DATA_AUDIO_SERVICE_TYPE
This side data should be associated with an audio stream and corresponds to enum AVAudioServiceType.
enum AVMediaType codec_type
#define FF_CODEC_CAP_AUTO_THREADS
Codec handles avctx->thread_count == 0 (auto) internally.
AVChannelLayout initial_ch_layout
av_cold void ff_codec_close(AVCodecContext *avctx)
int(* get_supported_config)(const AVCodecContext *avctx, const AVCodec *codec, enum AVCodecConfig config, unsigned flags, const void **out_configs, int *out_num_configs)
Custom callback for avcodec_get_supported_config().
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
int width
picture width / height.
int ff_encode_receive_frame(struct AVCodecContext *avctx, struct AVFrame *frame)
avcodec_receive_frame() implementation for encoders.
#define flags(name, subs,...)
void ff_decode_internal_uninit(struct AVCodecContext *avctx)
int ff_thread_init(struct AVCodecContext *s)
void av_bprint_chars(AVBPrint *buf, char c, unsigned n)
Append char c n times to a print buffer.
const AVCodecDescriptor * avcodec_descriptor_get(enum AVCodecID id)
int av_image_check_sar(unsigned int w, unsigned int h, AVRational sar)
Check if the given sample aspect ratio of an image is valid.
#define FF_SANE_NB_CHANNELS
char * codec_whitelist
',' separated list of allowed decoders.
static void lock_avcodec(const FFCodec *codec)
AVColorRange
Visual content value range.
const char * av_color_transfer_name(enum AVColorTransferCharacteristic transfer)
void ff_refstruct_unref(void *objp)
Decrement the reference count of the underlying object and automatically free the object if there are...
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown) That is the width of a pixel divided by the height of the pixel.
const char * av_get_pix_fmt_name(enum AVPixelFormat pix_fmt)
Return the short name for a pixel format, NULL in case pix_fmt is unknown.
#define AV_CODEC_FLAG_PASS1
Use internal 2pass ratecontrol in first pass mode.
#define av_fourcc2str(fourcc)
@ AV_CODEC_CONFIG_COLOR_SPACE
AVColorSpace, terminated by AVCOL_SPC_UNSPECIFIED.