DvsenseDriver  1.3.0
The SDK for dvsense products.
载入中...
搜索中...
未找到
dvsense::ApsFrame类 参考

带曝光时间戳的连续 BGR888 APS 图像。 更多...

#include <ApsTypes.h>

Public 成员函数

 ApsFrame (int width=3840, int height=2160, TimeStamp start_ts=0, TimeStamp end_ts=0)
 ApsFrame (int width, int height, TimeStamp start_ts, TimeStamp end_ts, uint8_t *external_data, size_t data_size, bool own_data=false)
 包装外部 BGR888 像素,可选择复制。
 ApsFrame (int width, int height, TimeStamp start_ts, TimeStamp end_ts, std::shared_ptr< std::vector< uint8_t > > shared_data)
 持有共享 BGR888 存储,不复制像素。
 ApsFrame (const ApsFrame &other)
ApsFrame & operator= (const ApsFrame &other)
ApsFrame clone () const
 返回持有独立像素存储的深拷贝帧。
uint8_t * data ()
const uint8_t * data () const
size_t getDataSize () const
int width () const
int height () const
ApsPixelType pixelType () const

Public 属性

TimeStamp exposure_start_timestamp
TimeStamp exposure_end_timestamp

详细描述

带曝光时间戳的连续 BGR888 APS 图像。

复制帧对象会共享像素存储;需要独立深拷贝时使用 clone()。 借用外部存储时,调用方必须保证所有使用该存储的帧生命周期内数据有效。

构造及析构函数说明

◆ ApsFrame() [1/4]

dvsense::ApsFrame::ApsFrame ( int width = 3840,
int height = 2160,
TimeStamp start_ts = 0,
TimeStamp end_ts = 0 )

◆ ApsFrame() [2/4]

dvsense::ApsFrame::ApsFrame ( int width,
int height,
TimeStamp start_ts,
TimeStamp end_ts,
uint8_t * external_data,
size_t data_size,
bool own_data = false )

包装外部 BGR888 像素,可选择复制。

own_data=false 借用指针;own_data=true 复制像素,不接管输入指针。 输入至少需要 width * height * 3 字节。

◆ ApsFrame() [3/4]

dvsense::ApsFrame::ApsFrame ( int width,
int height,
TimeStamp start_ts,
TimeStamp end_ts,
std::shared_ptr< std::vector< uint8_t > > shared_data )

持有共享 BGR888 存储,不复制像素。

shared_data 必须非空且至少包含 width * height * 3 字节; 任一帧使用期间不得重新分配该缓冲区。

◆ ApsFrame() [4/4]

dvsense::ApsFrame::ApsFrame ( const ApsFrame & other)

成员函数说明

◆ operator=()

ApsFrame & dvsense::ApsFrame::operator= ( const ApsFrame & other)

◆ clone()

ApsFrame dvsense::ApsFrame::clone ( ) const

返回持有独立像素存储的深拷贝帧。

◆ data() [1/2]

uint8_t * dvsense::ApsFrame::data ( )

◆ data() [2/2]

const uint8_t * dvsense::ApsFrame::data ( ) const

◆ getDataSize()

size_t dvsense::ApsFrame::getDataSize ( ) const

◆ width()

int dvsense::ApsFrame::width ( ) const

◆ height()

int dvsense::ApsFrame::height ( ) const

◆ pixelType()

ApsPixelType dvsense::ApsFrame::pixelType ( ) const

类成员变量说明

◆ exposure_start_timestamp

TimeStamp dvsense::ApsFrame::exposure_start_timestamp

◆ exposure_end_timestamp

TimeStamp dvsense::ApsFrame::exposure_end_timestamp