One part in a GenDC component; the smallest unit in a GenDC container. More...
#include <PvGenericDataContainer.h>
Public Member Functions | |
| virtual const GenDCPartHeader * | GetHeader () const =0 |
| Returns a const pointer to the underlying GenDC part header. More... | |
| virtual GenDCPartHeader * | GetMutableHeader ()=0 |
| Returns a mutable pointer to the underlying GenDC part header. More... | |
| virtual uint16_t | GetHeaderType () const =0 |
| Returns the exact part's header type value, as an integer. More... | |
| virtual PvGenDCPartType | GetHeaderTypeEnum () const =0 |
| Returns the part's header type, as an enum. More... | |
| virtual uint16_t | GetFlags () const =0 |
| Returns the flags value for this part. More... | |
| virtual uint32_t | GetHeaderSize () const =0 |
| Returns the size of this part's header. More... | |
| virtual uint32_t | GetFormat () const =0 |
| Returns the pixel format value of this part. More... | |
| virtual uint16_t | GetFlowID () const =0 |
| Returns this part's flow ID. More... | |
| virtual uint64_t | GetFlowOffset () const =0 |
| Returns this part's flow offset. More... | |
| virtual uint64_t | GetDataSize () const =0 |
| Returns the part's data size in bytes. More... | |
| virtual uint64_t | GetDataOffset () const =0 |
| Returns an IPvGenDCPartTypeFields interface for this part. More... | |
| virtual const uint8_t * | GetDataPointer () const =0 |
| Returns the part's data pointer (const). More... | |
| virtual uint8_t * | GetDataPointer ()=0 |
| Returns the part's data pointer. More... | |
| virtual | operator const IPvGenDCImage * () const =0 |
| IPvImage const pointer cast operator. More... | |
| virtual | operator const IPvGenDCChunkData * () const =0 |
| IPvChunkData pointer cast operator. More... | |
| virtual const IPvGenDCImage * | GetGenDCImage () const =0 |
| Returns a pointer to an IPvGenDCImage interface to the part, if the header type is a 2D image. More... | |
| virtual const IPvGenDCChunkData * | GetGenDCChunkData () const =0 |
| Returns a pointer to an IPvGenDCChunkData interface to the part, if the header type is chunk metadata. More... | |
| virtual const IPvGenDCChunkWriter * | GetGenDCChunkWriter () const =0 |
| Returns a pointer to an IPvGenDCChunkWriter interface to the part, if the header type is chunk metadata. More... | |
| virtual uint64_t | GetReceptionTime () const =0 |
| Retrieves the reception time of the data container. More... | |
| virtual PvResult | GetMetadataSpecificFields (PvGenDCPartMetadataFields &aMetadataFields) const =0 |
| Retrieves a PvGenDCPartMetadataFields struct, if the header type is metadata. More... | |
| virtual PvResult | Get1DSpecificFields (PvGenDCPart1DFields &aSpecificFields) const =0 |
| Returns a PvGenDCPart1DFields struct, if the header type is 1D. More... | |
| virtual PvResult | Get2DSpecificFields (PvGenDCPart2DFields &aSpecificFields) const =0 |
| Returns a PvGenDCPart2DFields struct, if the header type is 2D. More... | |
| virtual PvResult | GetH264SpecificFields (PvGenDCPartH264Fields &aSpecificFields) const =0 |
| Returns a PvGenDCPartH264Fields struct, if the header type is H.264 compressed. More... | |
One part in a GenDC component; the smallest unit in a GenDC container.
|
pure virtual |
Returns a PvGenDCPart1DFields struct, if the header type is 1D.
The specific fields are an extended set of fields appended to the part data if the header is of the given type.
|
pure virtual |
Returns a PvGenDCPart2DFields struct, if the header type is 2D.
The specific fields are an extended set of fields appended to the part data if the header is of the given type.
|
pure virtual |
Returns an IPvGenDCPartTypeFields interface for this part.
The type fields are specific to a part category, such as metadata, a 1D array, or a 2D image.
Returns the part's data offset in bytes.
This offset is relative to the block linear address.
Instead, a pointer to this part's data can readily be obtained by using GetDataPointer().
|
pure virtual |
Returns the part's data pointer (const).
|
pure virtual |
Returns the part's data pointer.
|
pure virtual |
Returns the part's data size in bytes.
If the container is final, the integer returned is the valid data size. Otherwise, the size is the maximum possible value the part can hold.
|
pure virtual |
Returns the flags value for this part.
Flags value are specific to the part type. Refer to the GenDC specification if needed.
|
pure virtual |
Returns this part's flow ID.
Flows are used by the transport layer to carry the data and store it into memory. The IDs are attributed sequentially starting with the GenDC descriptor in flow 0.
If for any reason the flow ID mapped to this part data is needed, this method can be used.
|
pure virtual |
Returns this part's flow offset.
Flows are used by the transport layer to carry the data and store it into memory. The flow offset locates this part's data relative to the flow base address.
If for any reason the flow offset to this part data is needed, this method can be used.
|
pure virtual |
Returns the pixel format value of this part.
Use this method to get the PFNC pixel format value representing the part's data.
|
pure virtual |
Returns a pointer to an IPvGenDCChunkData interface to the part, if the header type is chunk metadata.
Returns NULL if it is any other data type.
The returned pointer is owned by the part. The caller must not attempt to free or delete it.
|
pure virtual |
Returns a pointer to an IPvGenDCChunkWriter interface to the part, if the header type is chunk metadata.
Returns NULL if it is any other data type.
This method provides access to chunk data writer. It is used in the context of eBUS Edge in writing Chunk Data to the GenDC Part.
The returned pointer is owned by the part. The caller must not attempt to free or delete it.
|
pure virtual |
Returns a pointer to an IPvGenDCImage interface to the part, if the header type is a 2D image.
Returns NULL if it is any other data type.
The returned pointer is owned by the part. The caller must not attempt to free or delete it.
|
pure virtual |
Returns a PvGenDCPartH264Fields struct, if the header type is H.264 compressed.
The specific fields are an extended set of fields appended to the part data if the header is of the given type.
|
pure virtual |
Returns a const pointer to the underlying GenDC part header.
This pointer references the descriptor-owned memory; it remains valid as long as the container stays valid. Modifying the data through this pointer is not permitted.
|
pure virtual |
Returns the size of this part's header.
The size of a GenDC part header is not static, as it can vary with its type specific fields. If needed, this method can be used to fetch the exact size.
|
pure virtual |
Returns the exact part's header type value, as an integer.
The part type value is defined by the 0x4000-0x4FFF range. The first 4 bits are used for the general category of the header type. The following 8 bits define the part subtype.
To get a generic enum representation of the part header type, use GetHeaderTypeEnum instead.
|
pure virtual |
Returns the part's header type, as an enum.
This part header type indicates the different type fields that can be associated with this part.
To get the exact type integer value (e.g. for custom types), GetHeaderType must be called instead.
|
pure virtual |
Retrieves a PvGenDCPartMetadataFields struct, if the header type is metadata.
The specific fields are an extended set of fields appended to the part data if the header is of the given type.
|
pure virtual |
Returns a mutable pointer to the underlying GenDC part header.
This pointer can be used to edit the part header fields directly, in accordance with the GenDC specification. Callers must ensure synchronization when modifying headers.
|
pure virtual |
Retrieves the reception time of the data container.
The time is typically represented as a 64-bit unsigned integer, such as microseconds since a reference epoch (e.g., Unix epoch).
|
pure virtual |
IPvChunkData pointer cast operator.
See GetChunkData for more information.
For backward compatibility. Returns NULL if not convertible to IPvChunkData. Use GetGenDCChunkData() for GenDC-specific chunk interface.
|
pure virtual |
IPvImage const pointer cast operator.
See GetImage for more information.
For backward compatibility. Returns NULL if not convertible to IPvImage. Use GetGenDCImage() for GenDC-specific image interface.
Copyright (c) 2002-2026 Pleora Technologies Inc.
www.pleora.com