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_;
Contiguous BGR888 APS image with exposure timestamps.
Definition 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)
Wrap external BGR888 pixels, optionally copying them.
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)
Retain shared BGR888 storage without copying pixels.
ApsFrame clone() const
Return a deep copy with independent pixel storage.
TimeStamp exposure_end_timestamp
Definition 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
Definition ApsTypes.h:83
Event2D * EventIterator_t
Definition EventTypes.hpp:63
std::function< void(ApsFrame)> FrameCallback
Definition ApsTypes.h:94
std::function< void(ApsFrame &, EventIterator_t begin, EventIterator_t end)> DsFusionDataCallback
Definition ApsTypes.h:95
ApsPixelType
Definition ApsTypes.h:21
@ BGR888
Definition ApsTypes.h:22
uint64_t TimeStamp
Definition TypeUtils.hpp:10