111#if AVCPP_API_NEW_CHANNEL_LAYOUT
127 AVCodecID
id()
const;
166#if AVCPP_HAS_AVFORMAT
Common helpers: comparisons, value lookup, non-copyable base, string utilities.
Codec descriptor.
Definition codec.h:32
AVCodecID id() const
Identifier of the codec.
const char * name() const
Short name of the codec, as FFmpeg knows it.
std::deque< Rational > supportedFramerates() const
Frame rates the encoder supports.
std::deque< uint64_t > supportedChannelLayouts() const
Channel layouts the codec supports, as masks.
bool isDecoder() const
Whether this descriptor is a decoder.
bool canEncode() const
Whether the codec can be used for encoding.
bool isEncoder() const
Whether this descriptor is an encoder.
std::deque< PixelFormat > supportedPixelFormats() const
Pixel formats the codec supports.
const char * longName() const
Human-readable name of the codec.
std::deque< SampleFormat > supportedSampleFormats() const
Sample formats the codec supports.
AVMediaType type() const
Media type the codec handles.
std::deque< int > supportedSamplerates() const
Sample rates the codec supports.
std::deque< ChannelLayoutView > supportedChannelLayouts2() const
Channel layouts the codec supports, as structured views.
bool canDecode() const
Whether the codec can be used for decoding.
FFmpeg types re-exported for the public API and small value wrappers.
Root namespace of the library.
Definition audioresampler.h:19
Codec findEncodingCodec(AVCodecID id)
Find an encoder by codec identifier.
Codec findDecodingCodec(AVCodecID id)
Find a decoder by codec identifier.
Codec guessEncodingCodec(OutputFormat format, const char *name, const char *url, const char *mime, AVMediaType mediaType)
Guess the encoder for an output from its hints.
Rational numbers, time bases and arithmetic on them.