|
avcpp 3.2.1
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
#include <codec.h>
Public Member Functions | |
| const char * | name () const |
| Short name of the codec, as FFmpeg knows it. | |
| const char * | longName () const |
| Human-readable name of the codec. | |
| bool | canEncode () const |
| Whether the codec can be used for encoding. | |
| bool | canDecode () const |
| Whether the codec can be used for decoding. | |
| bool | isEncoder () const |
| Whether this descriptor is an encoder. | |
| bool | isDecoder () const |
| Whether this descriptor is a decoder. | |
| AVMediaType | type () const |
| Media type the codec handles. | |
| std::deque< Rational > | supportedFramerates () const |
| Frame rates the encoder supports. | |
| std::deque< PixelFormat > | supportedPixelFormats () const |
| Pixel formats the codec supports. | |
| std::deque< int > | supportedSamplerates () const |
| Sample rates the codec supports. | |
| std::deque< SampleFormat > | supportedSampleFormats () const |
| Sample formats the codec supports. | |
| std::deque< uint64_t > | supportedChannelLayouts () const |
| Channel layouts the codec supports, as masks. | |
| std::deque< ChannelLayoutView > | supportedChannelLayouts2 () const |
| Channel layouts the codec supports, as structured views. | |
| AVCodecID | id () const |
| Identifier of the codec. | |
| Public Member Functions inherited from FFWrapperPtr< const AVCodec > | |
| FFWrapperPtr ()=default | |
| Create an empty wrapper; isNull() is true. | |
| const const AVCodec * | raw () const |
| Read access to the wrapped object. | |
| void | reset (const AVCodec *raw=nullptr) |
| Replace the stored pointer. | |
| bool | isNull () const |
| Whether the wrapper is empty. | |
| void | _log (int level, const char *fmt) const |
| Log through the FFmpeg log system, using this wrapper as the context. | |
Additional Inherited Members | |
| Protected Attributes inherited from FFWrapperPtr< const AVCodec > | |
| const AVCodec * | m_raw |
| The wrapped pointer; owned by the derived class, not by this template. | |
Points at the static description FFmpeg registers for a codec: its name, what it can do, and which formats it accepts. The library owns the descriptor, the wrapper only points at it, so copying a Codec copies a pointer.
| bool av::Codec::canDecode | ( | ) | const |
| bool av::Codec::canEncode | ( | ) | const |
| AVCodecID av::Codec::id | ( | ) | const |
| bool av::Codec::isDecoder | ( | ) | const |
| bool av::Codec::isEncoder | ( | ) | const |
| const char * av::Codec::longName | ( | ) | const |
| const char * av::Codec::name | ( | ) | const |
| std::deque< uint64_t > av::Codec::supportedChannelLayouts | ( | ) | const |
| std::deque< ChannelLayoutView > av::Codec::supportedChannelLayouts2 | ( | ) | const |
Available with the modern FFmpeg channel layout API.
| std::deque< Rational > av::Codec::supportedFramerates | ( | ) | const |
| std::deque< PixelFormat > av::Codec::supportedPixelFormats | ( | ) | const |
| std::deque< SampleFormat > av::Codec::supportedSampleFormats | ( | ) | const |
| std::deque< int > av::Codec::supportedSamplerates | ( | ) | const |
| AVMediaType av::Codec::type | ( | ) | const |