1#ifndef __APS_TYPES_HPP__
2#define __APS_TYPES_HPP__
10#include "DvsenseBase/Utils/TypeUtils.hpp"
11#include "DvsenseBase/EventBase/EventTypes.hpp"
14#define DVSENSE_API __declspec(dllexport)
47 uint8_t *external_data,
size_t data_size,
48 bool own_data =
false);
59 std::shared_ptr<std::vector<uint8_t>> shared_data);
73 const uint8_t *
data()
const;
90 std::shared_ptr<uint8_t[]> data_;
91 std::shared_ptr<std::vector<uint8_t>> shared_data_owner_;
带曝光时间戳的连续 BGR888 APS 图像。
定义 ApsTypes.h:34
ApsFrame(int width, int height, TimeStamp start_ts, TimeStamp end_ts, uint8_t *external_data, size_t data_size, bool own_data=false)
包装外部 BGR888 像素,可选择复制。
const uint8_t * data() const
ApsFrame & operator=(const ApsFrame &other)
ApsFrame(int width, int height, TimeStamp start_ts, TimeStamp end_ts, std::shared_ptr< std::vector< uint8_t > > shared_data)
持有共享 BGR888 存储,不复制像素。
ApsFrame clone() const
返回持有独立像素存储的深拷贝帧。
TimeStamp exposure_end_timestamp
定义 ApsTypes.h:84
ApsFrame(const ApsFrame &other)
size_t getDataSize() const
ApsFrame(int width=3840, int height=2160, TimeStamp start_ts=0, TimeStamp end_ts=0)
ApsPixelType pixelType() const
TimeStamp exposure_start_timestamp
定义 ApsTypes.h:83
Event2D * EventIterator_t
定义 EventTypes.hpp:63
std::function< void(ApsFrame)> FrameCallback
定义 ApsTypes.h:94
std::function< void(ApsFrame &, EventIterator_t begin, EventIterator_t end)> DsFusionDataCallback
定义 ApsTypes.h:95
ApsPixelType
定义 ApsTypes.h:21
uint64_t TimeStamp
定义 TypeUtils.hpp:10