avcpp
2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
#include <frame.h>
Public Member Functions | |
AudioSamples ()=default | |
AudioSamples (SampleFormat sampleFormat, int samplesCount, uint64_t channelLayout, int sampleRate, int align=SampleFormat::AlignDefault) | |
AudioSamples (const uint8_t *data, size_t size, SampleFormat sampleFormat, int samplesCount, uint64_t channelLayout, int sampleRate, int align=SampleFormat::AlignDefault) | |
AudioSamples (const AudioSamples &other) | |
AudioSamples (AudioSamples &&other) | |
AudioSamples & | operator= (const AudioSamples &rhs) |
AudioSamples & | operator= (AudioSamples &&rhs) |
int | init (SampleFormat sampleFormat, int samplesCount, uint64_t channelLayout, int sampleRate, int align=SampleFormat::AlignDefault) |
SampleFormat | sampleFormat () const |
int | samplesCount () const |
int | channelsCount () const |
uint64_t | channelsLayout () const |
int | sampleRate () const |
size_t | sampleBitDepth (OptionalErrorCode ec=throws()) const |
bool | isPlanar () const |
std::string | channelsLayoutString () const |
Public Member Functions inherited from av::Frame< AudioSamples > | |
Frame () | |
Frame (const AVFrame *frame) | |
Frame (const AudioSamples &other) | |
Frame (AudioSamples &&other) | |
~Frame () | |
void | operator= (const Frame &)=delete |
void | swap (Frame &other) |
void | copyInfoFrom (const AudioSamples &other) |
bool | isReferenced () const |
int | refCount () const |
AVFrame * | makeRef () const |
AudioSamples | clone (size_t align=1) const |
Timestamp | pts () const |
attribute_deprecated void | setPts (int64_t pts, Rational ptsTimeBase) |
void | setPts (const Timestamp &ts) |
const Rational & | timeBase () const |
void | setTimeBase (const Rational &value) |
int | streamIndex () const |
void | setStreamIndex (int streamIndex) |
void | setComplete (bool isComplete) |
bool | isComplete () const |
bool | isValid () const |
operator bool () const | |
uint8_t * | data (size_t plane=0) |
const uint8_t * | data (size_t plane=0) const |
size_t | size (size_t plane) const |
size_t | size () const |
void | dump () const |
Public Member Functions inherited from FFWrapperPtr< AVFrame > | |
FFWrapperPtr ()=default | |
FFWrapperPtr (AVFrame *raw) | |
const AVFrame * | raw () const |
AVFrame * | raw () |
void | reset (AVFrame *raw=nullptr) |
bool | isNull () const |
void | _log (int level, const char *fmt) const |
void | _log (int level, const char *fmt, const Args &... args) const |
Additional Inherited Members | |
Static Public Member Functions inherited from av::Frame< AudioSamples > | |
static AudioSamples | null () |
Protected Member Functions inherited from av::Frame< AudioSamples > | |
AudioSamples & | assignOperator (const AudioSamples &rhs) |
AudioSamples & | moveOperator (AudioSamples &&rhs) |
Protected Attributes inherited from av::Frame< AudioSamples > | |
Rational | m_timeBase |
int | m_streamIndex |
bool | m_isComplete |
Protected Attributes inherited from FFWrapperPtr< AVFrame > | |
AVFrame * | m_raw |
|
default |
av::AudioSamples::AudioSamples | ( | SampleFormat | sampleFormat, |
int | samplesCount, | ||
uint64_t | channelLayout, | ||
int | sampleRate, | ||
int | align = SampleFormat::AlignDefault |
||
) |
av::AudioSamples::AudioSamples | ( | const uint8_t * | data, |
size_t | size, | ||
SampleFormat | sampleFormat, | ||
int | samplesCount, | ||
uint64_t | channelLayout, | ||
int | sampleRate, | ||
int | align = SampleFormat::AlignDefault |
||
) |
av::AudioSamples::AudioSamples | ( | const AudioSamples & | other | ) |
av::AudioSamples::AudioSamples | ( | AudioSamples && | other | ) |
int av::AudioSamples::channelsCount | ( | ) | const |
uint64_t av::AudioSamples::channelsLayout | ( | ) | const |
string av::AudioSamples::channelsLayoutString | ( | ) | const |
int av::AudioSamples::init | ( | SampleFormat | sampleFormat, |
int | samplesCount, | ||
uint64_t | channelLayout, | ||
int | sampleRate, | ||
int | align = SampleFormat::AlignDefault |
||
) |
bool av::AudioSamples::isPlanar | ( | ) | const |
AudioSamples & av::AudioSamples::operator= | ( | AudioSamples && | rhs | ) |
AudioSamples & av::AudioSamples::operator= | ( | const AudioSamples & | rhs | ) |
size_t av::AudioSamples::sampleBitDepth | ( | OptionalErrorCode | ec = throws() | ) | const |
SampleFormat av::AudioSamples::sampleFormat | ( | ) | const |
int av::AudioSamples::sampleRate | ( | ) | const |
int av::AudioSamples::samplesCount | ( | ) | const |