ffmpeg.libavcodec.codec

Undocumented in source.

Members

Enums

AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX
anonymousenum AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

av_codec_is_decoder
int av_codec_is_decoder(const(AVCodec)* codec)

@return a non-zero number if codec is a decoder, zero otherwise

av_codec_is_encoder
int av_codec_is_encoder(const(AVCodec)* codec)

@return a non-zero number if codec is an encoder, zero otherwise

av_codec_iterate
const(AVCodec)* av_codec_iterate(void** opaque)

Iterate over all registered codecs.

avcodec_find_decoder
AVCodec* avcodec_find_decoder(AVCodecID id)

Find a registered decoder with a matching codec ID.

avcodec_find_decoder_by_name
AVCodec* avcodec_find_decoder_by_name(const(char)* name)

Find a registered decoder with the specified name.

avcodec_find_encoder
AVCodec* avcodec_find_encoder(AVCodecID id)

Find a registered encoder with a matching codec ID.

avcodec_find_encoder_by_name
AVCodec* avcodec_find_encoder_by_name(const(char)* name)

Find a registered encoder with the specified name.

avcodec_get_hw_config
const(AVCodecHWConfig)* avcodec_get_hw_config(const(AVCodec)* codec, int index)

Retrieve supported hardware configurations for a codec.

Manifest constants

AV_CODEC_CAP_AUTO_THREADS
enum AV_CODEC_CAP_AUTO_THREADS;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AV_CODEC_CAP_AVOID_PROBING
enum AV_CODEC_CAP_AVOID_PROBING;

Decoder is not a preferred choice for probing. This indicates that the decoder is not a good choice for probing. It could for example be an expensive to spin up hardware decoder, or it could simply not provide a lot of useful information about the stream. A decoder marked with this flag should only be used as last resort choice for probing.

AV_CODEC_CAP_CHANNEL_CONF
enum AV_CODEC_CAP_CHANNEL_CONF;

Codec should fill in channel configuration and samplerate instead of container

AV_CODEC_CAP_DELAY
enum AV_CODEC_CAP_DELAY;

Encoder or decoder requires flushing with NULL input at the end in order to give the complete and correct output.

AV_CODEC_CAP_DR1
enum AV_CODEC_CAP_DR1;

Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators. If not set, it might not use get_buffer() or get_encode_buffer() at all, or use operations that assume the buffer was allocated by avcodec_default_get_buffer2 or avcodec_default_get_encode_buffer.

AV_CODEC_CAP_DRAW_HORIZ_BAND
enum AV_CODEC_CAP_DRAW_HORIZ_BAND;

Decoder can use draw_horiz_band callback.

AV_CODEC_CAP_ENCODER_FLUSH
enum AV_CODEC_CAP_ENCODER_FLUSH;

This encoder can be flushed using avcodec_flush_buffers(). If this flag is not set, the encoder must be closed and reopened to ensure that no frames remain pending.

AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
enum AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE;

This codec takes the reordered_opaque field from input AVFrames and returns it in the corresponding field in AVCodecContext after encoding.

AV_CODEC_CAP_EXPERIMENTAL
enum AV_CODEC_CAP_EXPERIMENTAL;

Codec is experimental and is thus avoided in favor of non experimental encoders

AV_CODEC_CAP_FRAME_THREADS
enum AV_CODEC_CAP_FRAME_THREADS;

Codec supports frame-level multithreading.

AV_CODEC_CAP_HARDWARE
enum AV_CODEC_CAP_HARDWARE;

Codec is backed by a hardware implementation. Typically used to identify a non-hwaccel hardware decoder. For information about hwaccels, use avcodec_get_hw_config() instead.

AV_CODEC_CAP_HYBRID
enum AV_CODEC_CAP_HYBRID;

Codec is potentially backed by a hardware implementation, but not necessarily. This is used instead of AV_CODEC_CAP_HARDWARE, if the implementation provides some sort of internal fallback.

AV_CODEC_CAP_INTRA_ONLY
enum AV_CODEC_CAP_INTRA_ONLY;

Deprecated and unused. Use AVCodecDescriptor.props instead

AV_CODEC_CAP_LOSSLESS
enum AV_CODEC_CAP_LOSSLESS;

Deprecated and unused. Use AVCodecDescriptor.props instead

AV_CODEC_CAP_OTHER_THREADS
enum AV_CODEC_CAP_OTHER_THREADS;

Codec supports multithreading through a method other than slice- or frame-level multithreading. Typically this marks wrappers around multithreading-capable external libraries.

AV_CODEC_CAP_PARAM_CHANGE
enum AV_CODEC_CAP_PARAM_CHANGE;

Codec supports changed parameters at any point.

AV_CODEC_CAP_SLICE_THREADS
enum AV_CODEC_CAP_SLICE_THREADS;

Codec supports slice-based (or partition-based) multithreading.

AV_CODEC_CAP_SMALL_LAST_FRAME
enum AV_CODEC_CAP_SMALL_LAST_FRAME;

Codec can be fed a final frame with a smaller size. This can be used to prevent truncation of the last audio samples.

AV_CODEC_CAP_SUBFRAMES
enum AV_CODEC_CAP_SUBFRAMES;

Codec can output multiple frames per AVPacket Normally demuxers return one frame at a time, demuxers which do not do are connected to a parser to split what they return into proper frames. This flag is reserved to the very rare category of codecs which have a bitstream that cannot be split into frames without timeconsuming operations like full decoding. Demuxers carrying such bitstreams thus may return multiple frames in a packet. This has many disadvantages like prohibiting stream copy in many cases thus it should only be considered as a last resort.

AV_CODEC_CAP_TRUNCATED
enum AV_CODEC_CAP_TRUNCATED;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AV_CODEC_CAP_VARIABLE_FRAME_SIZE
enum AV_CODEC_CAP_VARIABLE_FRAME_SIZE;

Audio encoder supports receiving a different number of samples in each call.

Structs

AVCodec
struct AVCodec

AVCodec.

AVCodecDefault
struct AVCodecDefault
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AVCodecHWConfig
struct AVCodecHWConfig
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AVProfile
struct AVProfile

AVProfile.

AVSubtitle
struct AVSubtitle
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta