AudioFrame

Public Member Functions | Static Public Member Functions # bmf_sdk::AudioFrame Class Reference

audio_frame.h

Public Member Functions

AudioFrame ()=default

AudioFrame (const AudioFrame &)=default

AudioFrame ( AudioFrame &&)=default

AudioFrame & operator= (const AudioFrame &)=default

AudioFrame (int samples, uint64_t layout , bool planer =true, const TensorOptions &options=kUInt8)

AudioFrame (const TensorList &data, uint64_t layout , bool planer =true)

AudioFrame clone () const

operator bool () const

uint64_t layout () const

ScalarType dtype () const

bool planer () const

int nsamples () const

int nchannels () const

void set_sample_rate (float sample_rate )

float sample_rate () const

const TensorList & planes () const

int nplanes () const

Tensor plane (int p=0) const

Tensor operator[] (int p) const

AudioFrame & copy_props (const AudioFrame &from)

img

bmf_sdk::OpaqueDataSet OpaqueDataSet ()=default

OpaqueDataSet ( OpaqueDataSet &&)=default

OpaqueDataSet (const OpaqueDataSet &)=default

OpaqueDataSet & operator= (const OpaqueDataSet &)=default

void private_attach (const T *data, Args &&…args)

const T * private_get () const

void private_merge (const OpaqueDataSet &from)

OpaqueDataSet & copy_props (const OpaqueDataSet &from)

img

bmf_sdk::SequenceData void set_pts (int64_t pts )

int64_t pts () const

Rational time_base () const

void set_time_base ( Rational time_base )

bool operator> (const SequenceData &other)

bool operator>= (const SequenceData &other)

bool operator< (const SequenceData &other)

bool operator<= (const SequenceData &other)

SequenceData & copy_props (const SequenceData &from)

Static Public Member Functions

static AudioFrame make (int samples, uint64_t layout , bool planer =true)

static AudioFrame make (int samples, uint64_t layout , bool planer , Options &&…opts)

static AudioFrame make (const TensorList &data, uint64_t layout , bool planer =true)

Additional Inherited Members

img

bmf_sdk::OpaqueDataSet virtual void set_private_data (int key, const OpaqueData &data)

virtual const OpaqueData & private_data (int key) const

Constructor & Destructor Documentation

 AudioFrame() [1/5]

bmf_sdk::AudioFrame::AudioFrame (  )  

defaultdefault

 AudioFrame() [2/5]

bmf_sdk::AudioFrame::AudioFrame ( const AudioFrame & )  

defaultdefault

 AudioFrame() [3/5]

bmf_sdk::AudioFrame::AudioFrame (  AudioFrame && )  

defaultdefault

 AudioFrame() [4/5]

bmf_sdk::AudioFrame::AudioFrame ( int samples, 
  uint64_t layout, 
  bool planer = true, 
  const TensorOptions & options = kUInt8 
 )   

 AudioFrame() [5/5]

bmf_sdk::AudioFrame::AudioFrame ( const TensorList & data, 
  uint64_t layout, 
  bool planer = true 
 )   

Member Function Documentation

 clone()

 AudioFrame bmf_sdk::AudioFrame::clone(  ) const 

 copy_props()

 AudioFrame & bmf_sdk::AudioFrame::copy_props( const AudioFrame &from )  

copy all extra props(set by member func set_xxx) from from (deepcopy if needed), Parameters

  • from

Returns AudioFrame &

 dtype()

ScalarType bmf_sdk::AudioFrame::dtype (  ) const 

 layout()

uint64_t bmf_sdk::AudioFrame::layout (  ) const 

 make() [1/3]

static AudioFrame bmf_sdk::AudioFrame::make( int samples, 
 uint64_t layout, 
 bool planer = true 
)   

inlinestaticinline

static

     {
         return AudioFrame(samples, layout, planer,
             TensorOptions(kUInt8));
     }

 make() [2/3]

static AudioFrame bmf_sdk::AudioFrame::make( int samples, 
 uint64_t layout, 
 bool planer, 
 Options &&... opts 
)   

inlinestaticinline

static

     {
         return AudioFrame(samples, layout, planer,
             TensorOptions(kUInt8).options(std::forward<Options>(opts)...));
     }

 make() [3/3]

static AudioFrame bmf_sdk::AudioFrame::make( const TensorList & data, 
 uint64_t layout, 
 bool planer = true 
)   

inlinestaticinline

static

     {
         return AudioFrame(data, layout, planer);
     }

 nchannels()

int bmf_sdk::AudioFrame::nchannels (  ) const 

 nplanes()

int bmf_sdk::AudioFrame::nplanes (  ) const 

 nsamples()

int bmf_sdk::AudioFrame::nsamples (  ) const 

 operator bool()

bmf_sdk::AudioFrame::operator bool (  ) const 

 operator=()

AudioFrame & bmf_sdk::AudioFrame::operator=( const AudioFrame & )  

defaultdefault

 operator

Tensor bmf_sdk::AudioFrame::operator[] ( int p ) const 

 plane()

Tensor bmf_sdk::AudioFrame::plane ( int p = 0 ) const 

 planer()

bool bmf_sdk::AudioFrame::planer (  ) const 

 planes()

const TensorList& bmf_sdk::AudioFrame::planes (  ) const 

 sample_rate()

float bmf_sdk::AudioFrame::sample_rate (  ) const 

 set_sample_rate()

void bmf_sdk::AudioFrame::set_sample_rate ( float sample_rate )  
  • /20230627/doxygen_converter/bmf/bmf/sdk/cpp_sdk/include/bmf/sdk/ audio_frame.h

Last modified September 30, 2024 : Python docs done (14a4999)