AudioFrame

公共成员函数 | 静态公共成员函数 # bmf_sdk::AudioFrame Class Reference

audio_frame.h

公有成员函数

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 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)

其它继承成员

img

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

virtual const OpaqueData & private_data (int key) const

构造函数和析构函数文档

 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 
 )   

成员函数文档

 clone()

 AudioFrame bmf_sdk::AudioFrame::clone(  ) const 

 copy_props()

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

复制来自 from 的所有额外 prop(由成员 func set_xxx 设置,(如需要可深度复制)。 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

最后修改 February 19, 2024 : fix baidu statistics (daa0758)