BMFAVPacket

公有成员函数 | 静态公有成员函数 | Public Attributes # bmf_sdk::BMFAVPacket Class Reference

bmf_av_packet.h!

!

公有成员函数

BMFAVPacket ()=default

BMFAVPacket (const BMFAVPacket &)=default

BMFAVPacket ( BMFAVPacket &&)=default

BMFAVPacket & operator= (const BMFAVPacket &)=default

BMFAVPacket (const Tensor & data )

BMFAVPacket (int size, const TensorOptions &options=kUInt8)

operator bool () const

Tensor & data ()

const Tensor & data () const

void * data_ptr ()

const void * data_ptr () const

int nbytes () const

BMFAVPacket & copy_props (const BMFAVPacket &from)

int64_t get_offset () const

int get_whence () const

void set_offset (int64_t offset)

void set_whence (int whence)

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 BMFAVPacket make (int size, Options &&…opts)

公共属性

int64_t offset_

int whence_

其它继承成员

img

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

virtual const OpaqueData & private_data (int key) const

构造函数和析构函数文档

 BMFAVPacket() [1/5]

bmf_sdk::BMFAVPacket::BMFAVPacket (  )  

defaultdefault

 BMFAVPacket() [2/5]

bmf_sdk::BMFAVPacket::BMFAVPacket ( const BMFAVPacket & )  

defaultdefault

 BMFAVPacket() [3/5]

bmf_sdk::BMFAVPacket::BMFAVPacket (  BMFAVPacket && )  

defaultdefault

 BMFAVPacket() [4/5]

bmf_sdk::BMFAVPacket::BMFAVPacket ( const Tensor & data )  

构建一个新的 BMFAVPacket 对象。 Parameters

  • data:连续张量数据,仅限 cpu

 BMFAVPacket() [5/5]

bmf_sdk::BMFAVPacket::BMFAVPacket ( int size, 
  const TensorOptions & options = kUInt8 
 )   

构建一个新的 BMFAVPacket 对象。 Parameters

成员函数文档

 copy_props()

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

from复制所有额外的 props(由成员函数 set_xxx 设置)(如果需要则进行深复制) Parameters

  • from

Returns VideoFrame &

 data() [1/2]

Tensor& bmf_sdk::BMFAVPacket::data (  )  

Returns

 data() [2/2]

const Tensor& bmf_sdk::BMFAVPacket::data (  ) const 

Returns

 data_ptr() [1/2]

void* bmf_sdk::BMFAVPacket::data_ptr (  )  

返回底层数据的原始指针

Returns

 data_ptr() [2/2]

const void* bmf_sdk::BMFAVPacket::data_ptr (  ) const 

Returns

 get_offset()

int64_t bmf_sdk::BMFAVPacket::get_offset (  ) const 

获取当前数据偏移量,即文件的 write pointer 偏移量

Returns

 get_whence()

int bmf_sdk::BMFAVPacket::get_whence (  ) const 

获取来自 mode 的数据。whence == SEEK_SET, from begin; whence == SEEK_CUR, current Returns

 make()

static BMFAVPacket bmf_sdk::BMFAVPacket::make( int size, 
 Options &&... opts 
)   

inlinestaticinline

static

Template Parameters

  • Options

Parameters

Returns BMFAVPacket

     {
         return BMFAVPacket(size,
             TensorOptions(kUInt8).options(std::forward<Options>(opts)...));
     }

 nbytes()

int bmf_sdk::BMFAVPacket::nbytes (  ) const 

底层数据的字节数

Returns

 operator bool()

bmf_sdk::BMFAVPacket::operator bool (  ) const 

检查 BMFAVPacket 是否已定义。

Returns

 operator=()

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

defaultdefault

 set_offset()

void bmf_sdk::BMFAVPacket::set_offset ( int64_t offset )  

设置当前数据偏移量,即文件的 write pointer 偏移量

Returns

 set_whence()

void bmf_sdk::BMFAVPacket::set_whence ( int whence )  

设置数据来源,即 mode。whence == SEEK_SET, from begin; whence == SEEK_CUR, current

Returns

成员函数文档

 offset_

int64_t bmf_sdk::BMFAVPacket::offset_ 

 whence_

int bmf_sdk::BMFAVPacket::whence_ 
  • /20230627/doxygen_converter/bmf/bmf/sdk/cpp_sdk/include/bmf/sdk/ bmf_av_packet.h

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