Go to the documentation of this file.
53 template<
class T>
inline T getBufferValue(
const std::shared_ptr<const GenTLWrapper> &gentl,
59 size_t size=
sizeof(T);
61 if (stream != 0 && buffer != 0)
72 inline bool getBufferBool(
const std::shared_ptr<const GenTLWrapper> &gentl,
78 size_t size=
sizeof(ret);
80 if (stream != 0 && buffer != 0)
82 gentl->DSGetBufferInfo(stream, buffer, cmd, &type, &ret, &size);
88 inline std::string getBufferString(
const std::shared_ptr<const GenTLWrapper> &gentl,
95 size_t size=
sizeof(tmp);
97 if (stream != 0 && buffer != 0)
111 template<
class T>
inline T getBufferPartValue(
const std::shared_ptr<const GenTLWrapper> &gentl,
112 void *stream,
void *buffer, uint32_t part,
118 size_t size=
sizeof(T);
120 if (stream != 0 && buffer != 0)
122 gentl->DSGetBufferPartInfo(stream, buffer, part, cmd, &type, &ret, &size);
146 void Buffer::setNodemap(
const std::shared_ptr<GenApi::CNodeMapRef> _nodemap,
const std::string &tltype)
159 else if (tltype ==
"U3V")
251 ret=
reinterpret_cast<char *
>(ret)+offset;
290 catch (
const std::exception &)
359 catch (
const std::exception &)
384 catch (
const std::exception &)
409 catch (
const std::exception &)
434 catch (
const std::exception &)
534 catch (
const std::exception &)
613 catch (
const std::exception &)
647 size_t size=
sizeof(v);
680 const uint64_t ns_freq=1000000000ul;
693 ret=ret/freq*ns_freq+(ns_freq*(ret%freq))/freq;
725 char *c=
reinterpret_cast<char *
>(&p);
size_t getDeliveredImageHeight(uint32_t part) const
Returns the number of lines that are delivered in this buffer.
uint64_t getChunkLayoutID() const
Returns the chunk layout id, which serves as an indicator that the chunk layout has changed and the a...
size_t getGlobalSize() const
Returns the global size of the buffer.
Declaration of the CChunkAdapterU3V class.
void setNodemap(const std::shared_ptr< GenApi::CNodeMapRef > nodemap, const std::string &tltype)
Set the device nodemap.
@ BUFFER_PART_INFO_XOFFSET
bool getImagePresent(uint32_t part) const
Returns if a 2D, 3D or confidence image is present in the specified part.
Declaration of the CChunkAdapterGEV class.
bool getBoolean(const std::shared_ptr< GenApi::CNodeMapRef > &nodemap, const char *name, bool exception, bool igncache)
Get the value of a boolean feature of the given nodemap.
size_t getPartDataType(uint32_t part) const
Returns the data type id of the specified part as defined in PARTDATATYPE_IDS.
size_t getDeliveredChunkPayloadSize() const
Returnes the delivered chung payload size.
std::string getTLType() const
Returns the type the used transport layer.
std::string getFilename() const
Returns the filename in case the payload contains a file.
@ BUFFER_INFO_PIXELFORMAT
void setHandle(void *handle)
Set the buffer handle that this object should manage.
@ BUFFER_PART_INFO_REGION_ID
@ PART_DATATYPE_3D_PLANE_QUADPLANAR
The stream class encapsulates a Genicam stream.
uint64_t getTimestampNS() const
Returns the acquisition timestamp of the data in this buffer in ns.
void * getHandle() const
Get internal stream handle.
uint64_t getPartRegionID(uint32_t part) const
Returns the region id of the specified part.
uint32_t getNumberOfParts() const
Returns the number of parts, excluding chunk data.
size_t getYPadding() const
Returns vertical padding of the data in the buffer in bytes.
@ PART_DATATYPE_CONFIDENCE_MAP
void * getUserPtr() const
Returns the private data pointer of the GenTL Consumer.
@ BUFFER_INFO_CHUNKLAYOUTID
bool getIsIncomplete() const
Signals if the buffer is incomplete due to an error.
bool getContainsChunkdata() const
Returns if the buffer contains chunk data.
@ BUFFER_INFO_PAYLOADTYPE
@ BUFFER_PART_INFO_DATA_SIZE
void * getHandle() const
Get internal stream handle.
bool getDataLargerThanBuffer() const
Signals if the memory that was allocated for this buffer is too small.
uint64_t getTimestamp() const
Returns the timestamp of the buffer.
int32_t BUFFER_PART_INFO_CMD
@ PART_DATATYPE_2D_PLANE_BIPLANAR
@ BUFFER_INFO_IMAGEPRESENT
@ BUFFER_PART_INFO_DELIVERED_IMAGEHEIGHT
size_t getHeight(uint32_t part) const
Returns the height of the image in pixel.
@ BUFFER_PART_INFO_DATA_FORMAT
size_t getPayloadType() const
Returns the payload type according to PAYLOADTYPE_INFO_IDS.
@ BUFFER_INFO_PIXELFORMAT_NAMESPACE
@ PAYLOAD_TYPE_CHUNK_ONLY
uint64_t getFrameID() const
Returns the sequentially incremented number of the frame.
size_t getSize(uint32_t part) const
Returns the size of the specified part of the mult-part buffer.
@ BUFFER_INFO_IS_ACQUIRING
@ BUFFER_INFO_CONTAINS_CHUNKDATA
Connects a chunked DCAM buffer to a node map.
Declaration of the CChunkAdapterGeneric class.
bool getIsAcquiring() const
Signals if the buffer is currently being filled with data.
@ BUFFER_INFO_IMAGEOFFSET
@ BUFFER_PART_INFO_DATA_TYPE
uint64_t getPartDataPurposeID(uint32_t part) const
Returns the data purpose id of the specified part.
size_t getXOffset(uint32_t part) const
Returns the horizontal offset of the data in the buffer in pixels from the image origin to handle are...
size_t getSizeFilled() const
Returns the number of bytes written into the buffer last time it has been filled.
@ BUFFER_INFO_DATA_LARGER_THAN_BUFFER
size_t getYOffset(uint32_t part) const
Returns the vertical offset of the data in the buffer in lines from the image origin to handle areas ...
std::shared_ptr< Device > getParent() const
Returns the pointer to the parent device object.
@ PAYLOAD_TYPE_MULTI_PART
Connects a chunked U3V buffer to a node map.
bool isBigEndian() const
Returns if the data is given as big or little endian.
@ BUFFER_PART_INFO_YOFFSET
@ PART_DATATYPE_3D_PLANE_TRIPLANAR
@ BUFFER_INFO_PIXEL_ENDIANNESS
Buffer(const std::shared_ptr< const GenTLWrapper > &gentl, Stream *parent)
Constructs a buffer class as wrapper around a buffer handle.
size_t getXPadding(uint32_t part) const
Returns horizontal padding of the data in the buffer in bytes.
@ BUFFER_PART_INFO_DATA_PURPOSE_ID
std::shared_ptr< const GenTLWrapper > gentl
void * getGlobalBase() const
Returns the global base address of the buffer memory.
@ BUFFER_PART_INFO_SOURCE_ID
std::shared_ptr< GenApi::CChunkAdapter > chunkadapter
size_t getDataSize() const
Returns the size of data intended to the written to the buffer the last time it has been filled.
Connects a generic chunked buffer to a node map.
@ BUFFER_PART_INFO_XPADDING
@ BUFFER_INFO_DELIVERED_IMAGEHEIGHT
bool getNewData() const
Returns if the buffer contains new data.
@ BUFFER_INFO_SIZE_FILLED
@ BUFFER_INFO_DELIVERED_CHUNKPAYLOADSIZE
std::shared_ptr< GenApi::CNodeMapRef > nodemap
@ PART_DATATYPE_3D_PLANE_BIPLANAR
@ PART_DATATYPE_2D_PLANE_QUADPLANAR
@ PAYLOAD_TYPE_CHUNK_DATA
@ BUFFER_INFO_TIMESTAMP_NS
bool getIsQueued() const
Signals if the buffer is associated to the input or output queue.
size_t getWidth(uint32_t part) const
Returns the width of the image in pixel.
int64_t getInteger(const std::shared_ptr< GenApi::CNodeMapRef > &nodemap, const char *name, int64_t *vmin, int64_t *vmax, bool exception, bool igncache)
Get the value of an integer feature of the given nodemap.
uint64_t getPartSourceID(uint32_t part) const
Returns the source id of the specified part.
@ PART_DATATYPE_2D_PLANE_TRIPLANAR
@ BUFFER_PART_INFO_DATA_FORMAT_NAMESPACE
@ BUFFER_INFO_IS_INCOMPLETE
@ BUFFER_PART_INFO_HEIGHT
void * getBase(uint32_t part) const
Returns the base address of the specified part of the multi-part buffer.
uint64_t getPixelFormat(uint32_t part) const
Returns the pixel format of the specified part as defined in the PFNC.
uint64_t getPixelFormatNamespace(uint32_t part) const
Returns the pixel format namespace, which preferably should be PIXELFORMAT_NAMESPACE_PFNC_32BIT.
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11