One component in a GenDC container. A container can be formed by one or more components. More...
#include <PvGenericDataContainer.h>
Public Member Functions | |
| virtual const GenDCComponentHeader * | GetHeader () const =0 |
| Returns a const pointer to the underlying GenDC component header. More... | |
| virtual GenDCComponentHeader * | GetMutableHeader ()=0 |
| Returns a mutable pointer to the underlying GenDC component header. More... | |
| virtual uint16_t | GetFlags () const =0 |
| Return the component's flags. More... | |
| virtual uint32_t | GetHeaderSize () const =0 |
| Returns the size of this component's header. More... | |
| virtual uint16_t | GetGroupID () const =0 |
| Returns the group identifier of this component. Components sharing a group ID are related together in some manner. More... | |
| virtual uint16_t | GetSourceID () const =0 |
| Returns the identifier for the source that generated this component. More... | |
| virtual uint16_t | GetRegionID () const =0 |
| Returns the region identifier of this component. More... | |
| virtual uint32_t | GetRegionOffsetX () const =0 |
| Returns the region offset in the X axis for this component. More... | |
| virtual uint32_t | GetRegionOffsetY () const =0 |
| Returns the region offset in the Y axis for this component. More... | |
| virtual uint64_t | GetTimestamp () const =0 |
| Returns the data creation start timestamp for this component, in nanoseconds. More... | |
| virtual uint64_t | GetTypeID () const =0 |
| Returns the SFNC ComponentIdValue for this component. More... | |
| virtual PvComponentType | GetTypeIDEnum () const =0 |
| Returns the SFNC ComponentIdValue for this component, as an enum. More... | |
| virtual uint32_t | GetFormat () const =0 |
| Returns the SFNC pixel format for this component. More... | |
| virtual uint64_t | GetPartHeaderOffset (uint32_t aIndex) const =0 |
| Returns the data offset for the part associated with the index. More... | |
| virtual uint32_t | GetPartCount () const =0 |
| Returns the parts count included by this component. More... | |
| virtual const IPvGenericDataPart * | GetPart (uint32_t aIndex) const =0 |
| Indexed part const accessor. More... | |
| virtual IPvGenericDataPart * | GetPart (uint32_t aIndex)=0 |
| Indexed part accessor. More... | |
| virtual const IPvGenericDataPart * | operator[] (uint32_t aIndex) const =0 |
| Indexed part const accessor. More... | |
| virtual IPvGenericDataPart * | operator[] (uint32_t aIndex)=0 |
| Indexed part accessor. More... | |
| virtual uint32_t | AddPart (PvGenDCPartType aPartType, uint32_t aFlow)=0 |
| Creates a new part in the component. More... | |
One component in a GenDC container. A container can be formed by one or more components.
|
pure virtual |
Creates a new part in the component.
Adds a new part of the specified type to the component and returns its index. The part can then be accessed using GetPart() with the returned index.
| [in] | aPartType | The type of part to create (e.g., PvGenDCPart2D, PvGenDCPartMetadataChunk). |
| [in] | aFlow | The flow ID for this part. |
|
pure virtual |
Return the component's flags.
If the component is marked as invalid by the source, the flags first bit is set to 1.
#IPvGenericDataComponent::IsValid can be used to assert if the component is valid.
|
pure virtual |
Returns the SFNC pixel format for this component.
The format returned by this function applies to the whole component. If the component includes a single part, this format matches its part.
For planar formats, the component format is the encapsulating format.
The Data8 format is used for non-pixel formats.
|
pure virtual |
Returns the group identifier of this component. Components sharing a group ID are related together in some manner.
|
pure virtual |
Returns a const pointer to the underlying GenDC component header.
This pointer references descriptor-owned memory and remains valid as long as the container stays valid. The header must not be modified through this pointer.
|
pure virtual |
Returns the size of this component's header.
The size of a GenDC component header is not static, as it can vary with its number of parts. If needed, this method can be used to fetch the exact size.
|
pure virtual |
Returns a mutable pointer to the underlying GenDC component header.
This pointer can be used to edit the component header fields directly, in accordance with the GenDC specification. Callers must ensure synchronization when modifying headers.
|
pure virtual |
Indexed part const accessor.
| [in] | aIndex | Zero-based index of the part. |
|
pure virtual |
Indexed part accessor.
| [in] | aIndex | Zero-based index of the part. |
|
pure virtual |
Returns the parts count included by this component.
|
pure virtual |
Returns the data offset for the part associated with the index.
The part offset can be used to retrieve the part header from the start of the container.
|
pure virtual |
Returns the region identifier of this component.
|
pure virtual |
Returns the region offset in the X axis for this component.
|
pure virtual |
Returns the region offset in the Y axis for this component.
|
pure virtual |
Returns the identifier for the source that generated this component.
|
pure virtual |
Returns the data creation start timestamp for this component, in nanoseconds.
|
pure virtual |
Returns the SFNC ComponentIdValue for this component.
|
pure virtual |
Returns the SFNC ComponentIdValue for this component, as an enum.
To get the exact type integer value (e.g. for custom types), GetTypeID must be called instead.
|
pure virtual |
Indexed part const accessor.
| [in] | aIndex | Zero-based index of the part. |
|
pure virtual |
Indexed part accessor.
| [in] | aIndex | Zero-based index of the part. |
Copyright (c) 2002-2026 Pleora Technologies Inc.
www.pleora.com