avcpp  2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Public Member Functions | List of all members
av::AudioSamples Class Reference

#include <frame.h>

Inheritance diagram for av::AudioSamples:
Inheritance graph
[legend]
Collaboration diagram for av::AudioSamples:
Collaboration graph
[legend]

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)
 
AudioSamplesoperator= (const AudioSamples &rhs)
 
AudioSamplesoperator= (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 RationaltimeBase () 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 >
AudioSamplesassignOperator (const AudioSamples &rhs)
 
AudioSamplesmoveOperator (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
 

Constructor & Destructor Documentation

◆ AudioSamples() [1/5]

av::AudioSamples::AudioSamples ( )
default

◆ AudioSamples() [2/5]

av::AudioSamples::AudioSamples ( SampleFormat  sampleFormat,
int  samplesCount,
uint64_t  channelLayout,
int  sampleRate,
int  align = SampleFormat::AlignDefault 
)

◆ AudioSamples() [3/5]

av::AudioSamples::AudioSamples ( const uint8_t *  data,
size_t  size,
SampleFormat  sampleFormat,
int  samplesCount,
uint64_t  channelLayout,
int  sampleRate,
int  align = SampleFormat::AlignDefault 
)

◆ AudioSamples() [4/5]

av::AudioSamples::AudioSamples ( const AudioSamples other)

◆ AudioSamples() [5/5]

av::AudioSamples::AudioSamples ( AudioSamples &&  other)

Member Function Documentation

◆ channelsCount()

int av::AudioSamples::channelsCount ( ) const

◆ channelsLayout()

uint64_t av::AudioSamples::channelsLayout ( ) const

◆ channelsLayoutString()

string av::AudioSamples::channelsLayoutString ( ) const

◆ init()

int av::AudioSamples::init ( SampleFormat  sampleFormat,
int  samplesCount,
uint64_t  channelLayout,
int  sampleRate,
int  align = SampleFormat::AlignDefault 
)

◆ isPlanar()

bool av::AudioSamples::isPlanar ( ) const

◆ operator=() [1/2]

AudioSamples & av::AudioSamples::operator= ( AudioSamples &&  rhs)

◆ operator=() [2/2]

AudioSamples & av::AudioSamples::operator= ( const AudioSamples rhs)

◆ sampleBitDepth()

size_t av::AudioSamples::sampleBitDepth ( OptionalErrorCode  ec = throws()) const

◆ sampleFormat()

SampleFormat av::AudioSamples::sampleFormat ( ) const

◆ sampleRate()

int av::AudioSamples::sampleRate ( ) const

◆ samplesCount()

int av::AudioSamples::samplesCount ( ) const

The documentation for this class was generated from the following files: