|
avcpp
2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
The SampleFormat class is a simple proxy class for AVSampleFormat. More...
#include <sampleformat.h>


Public Types | |
| enum | Alignment { AlignDefault = 0 , AlignNone = 1 } |
| using | Parent = PixSampleFmtWrapper< SampleFormat, AVSampleFormat > |
Public Member Functions | |
| SampleFormat ()=default | |
| SampleFormat (const char *name) noexcept | |
| SampleFormat (const std::string &name) noexcept | |
| const char * | name (OptionalErrorCode ec=throws()) const |
| SampleFormat | alternativeSampleFormat (bool isPlanar) const noexcept |
| SampleFormat | packedSampleFormat () const noexcept |
| SampleFormat | planarSampleFormat () const noexcept |
| bool | isPlanar () const noexcept |
| size_t | bytesPerSample (OptionalErrorCode ec=throws()) const |
| size_t | bitsPerSample (OptionalErrorCode ec=throws()) const |
| size_t | requiredBufferSize (int nbChannels, int nbSamples, int align, OptionalErrorCode ec=throws()) const |
| size_t | requiredBufferSize (int nbChannels, int nbSamples, int align, int &lineSize, OptionalErrorCode ec=throws()) const |
Public Member Functions inherited from PixSampleFmtWrapper< SampleFormat, AVSampleFormat > | |
| constexpr | PixSampleFmtWrapper ()=default |
| constexpr | PixSampleFmtWrapper (AVSampleFormat fmt) noexcept |
| operator AVSampleFormat () const noexcept | |
| AVSampleFormat | get () const noexcept |
| operator AVSampleFormat & () noexcept | |
| SampleFormat & | operator= (AVSampleFormat fmt) noexcept |
| void | set (AVSampleFormat fmt) noexcept |
Static Public Member Functions | |
| static size_t | requiredBufferSize (SampleFormat fmt, int nbChannels, int nbSamples, int align, OptionalErrorCode ec=throws()) |
| static size_t | requiredBufferSize (SampleFormat fmt, int nbChannels, int nbSamples, int align, int &lineSize, OptionalErrorCode ec=throws()) |
| static void | fillArrays (uint8_t **audioData, int *linesize, const uint8_t *buf, int nbChannels, int nbSamples, SampleFormat fmt, int align, OptionalErrorCode ec=throws()) |
| static void | setSilence (uint8_t **audioData, int offset, int nbSamples, int nbChannels, SampleFormat fmt) |
Additional Inherited Members | |
Protected Attributes inherited from PixSampleFmtWrapper< SampleFormat, AVSampleFormat > | |
| AVSampleFormat | m_fmt |
The SampleFormat class is a simple proxy class for AVSampleFormat.
It allows to quckly ask some info about sample format. Only base one is provided.
| using av::SampleFormat::Parent = PixSampleFmtWrapper<SampleFormat, AVSampleFormat> |
|
default |
|
explicitnoexcept |
|
explicitnoexcept |
|
noexcept |
| size_t av::SampleFormat::bitsPerSample | ( | OptionalErrorCode | ec = throws() | ) | const |
| size_t av::SampleFormat::bytesPerSample | ( | OptionalErrorCode | ec = throws() | ) | const |
|
static |
|
noexcept |
| const char * av::SampleFormat::name | ( | OptionalErrorCode | ec = throws() | ) | const |
|
noexcept |
|
noexcept |
| size_t av::SampleFormat::requiredBufferSize | ( | int | nbChannels, |
| int | nbSamples, | ||
| int | align, | ||
| int & | lineSize, | ||
| OptionalErrorCode | ec = throws() |
||
| ) | const |
| size_t av::SampleFormat::requiredBufferSize | ( | int | nbChannels, |
| int | nbSamples, | ||
| int | align, | ||
| OptionalErrorCode | ec = throws() |
||
| ) | const |
|
static |
|
static |
|
static |