7#ifndef CAMCOM_SERVER_DATA_FRAME_HPP
8#define CAMCOM_SERVER_DATA_FRAME_HPP
40 case common::DataType::BYTE:
return 1;
41 case common::DataType::INT16:
return 2;
42 case common::DataType::UINT16:
return 2;
43 case common::DataType::INT32:
return 4;
44 case common::DataType::UINT32:
return 4;
45 case common::DataType::INT64:
return 8;
46 case common::DataType::UINT64:
return 8;
47 case common::DataType::FLOAT:
return 4;
48 case common::DataType::DOUBLE:
return 8;
Definition frameInfo.hpp:23
CamCom data type — re-export of the ELT IFW (ifw-fnd) data type.
Header file for the CamCom Common Library.
ifw::fnd::datatype::DataType DataType
Definition datatype.hpp:27
Definition adapter_loader.cpp:11
Container for a single frame of image data with metadata.
Definition data_frame.hpp:25
static size_t bytesPerPixel(common::DataType dt)
Bytes per pixel element for the current data type.
Definition data_frame.hpp:38
int width() const
Definition data_frame.hpp:29
size_t pixelCount() const
Definition data_frame.hpp:33
size_t bytesPerPixel() const
Definition data_frame.hpp:53
common::DataType dataType() const
Definition data_frame.hpp:31
std::vector< uint8_t > data
Definition data_frame.hpp:26
common::FrameInfo frame_info
Definition data_frame.hpp:27
int height() const
Definition data_frame.hpp:30
int64_t frameId() const
Definition data_frame.hpp:32