BMFAVPacket

Public Member Functions | Static Public Member Functions | Public Attributes # bmf_sdk::BMFAVPacket Class Reference

bmf_av_packet.h!

!

Public Member Functions

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 Public Member Functions

static BMFAVPacket make (int size, Options &&…opts)

Public Attributes

int64_t offset_

int whence_

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

 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 )  

Construct a new BMFAVPacket object.

Parameters

  • data contiguous tensor data, cpu only

 BMFAVPacket() [5/5]

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

Construct a new BMFAVPacket object.

Parameters

Member Function Documentation

 copy_props()

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

copy all extra props(set by member func set_xxx) from from (deepcopy if needed), 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 (  )  

return raw pointer of underlying data

Returns

 data_ptr() [2/2]

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

Returns

 get_offset()

int64_t bmf_sdk::BMFAVPacket::get_offset (  ) const 

get the current data offset which is file write pointer offset

Returns

 get_whence()

int bmf_sdk::BMFAVPacket::get_whence (  ) const 

get the data whence which is 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 

number of bytes of underlying data

Returns

 operator bool()

bmf_sdk::BMFAVPacket::operator bool (  ) const 

check if BMFAVPacket if defined

Returns

 operator=()

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

defaultdefault

 set_offset()

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

set the current data offset which is file write pointer offset

Returns

 set_whence()

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

set the data whence which is mode. whence == SEEK_SET, from begin; whence == SEEK_CUR, current

Returns

Member Data Documentation

 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

Last modified December 16, 2024 : Fix binutils install doc on macOS (#28) (67b861f)