Generic chunk data interface. More...
#include <PvChunkData.h>
Public Member Functions | |
| virtual void | ResetChunks ()=0 |
| See PvBuffer::ResetChunks. More... | |
| virtual PvResult | AddChunk (uint32_t aID, const uint8_t *aData, uint32_t aLength)=0 |
| See PvBuffer::AddChunk. More... | |
| virtual void | SetChunkLayoutID (uint32_t aChunkLayoutID)=0 |
| Set the chunk data layout ID. More... | |
| virtual bool | HasChunks () const =0 |
| Returns true if the buffer has data chunks. More... | |
| virtual uint32_t | GetChunkCount ()=0 |
| See PvBuffer::GetChunkCount. More... | |
| virtual PvResult | GetChunkIDByIndex (uint32_t aIndex, uint32_t &aID)=0 |
| See PvBuffer::GetChunkIDByIndex. More... | |
| virtual uint32_t | GetChunkSizeByIndex (uint32_t aIndex)=0 |
| See PvBuffer::GetChunkSizeByIndex. More... | |
| virtual uint32_t | GetChunkSizeByID (uint32_t aID)=0 |
| See PvBuffer::GetChunkSizeByID. More... | |
| virtual const uint8_t * | GetChunkRawDataByIndex (uint32_t aIndex)=0 |
| See PvBuffer::GetChunkRawDataByIndex. More... | |
| virtual const uint8_t * | GetChunkRawDataByID (uint32_t aID)=0 |
| See PvBuffer::GetChunkRawDataByID. More... | |
| virtual uint32_t | GetChunkLayoutID ()=0 |
| Get the chunk data layout ID. More... | |
| virtual uint32_t | GetChunkDataSize () const =0 |
| Returns the current chunk data size. More... | |
| virtual uint32_t | GetChunkDataCapacity () const =0 |
| Returns the current chunk data capacity. More... | |
Generic chunk data interface.
|
pure virtual |
See PvBuffer::AddChunk.
Same as PvBuffer equivalent. Provided with this interface for convenience.
| [in] | aID | Chunk data ID for aIndex. |
| [in] | aData | Payload data of the chunk data. |
| [in] | aLength | Length of the payload data of the chunk, in bytes. Must be a multiple of 4 bytes. |
Implemented in PvBuffer.
|
pure virtual |
|
pure virtual |
Returns the current chunk data capacity.
In a transmission context where you create the buffer, memory is allocated for chunks. This method returns how many bytes can still be added as chunk data.
One chunk is always made of 8-bytes of headers plus the chunk data length. You also need to reserve another 8-bytes for the main chunk (typically the image) unless you buffer only contains chunk data.
This method has no use in a reception context where the data receiver delivers the buffer. Use either the direct chunk access methods or the GenApi interface of the device to access chunk data.
Implemented in PvBuffer.
|
pure virtual |
Returns the current chunk data size.
In a transmission context this method returns how many bytes are used for extra chunk data. It includes the chunk headers for all chunk data and if applicable the chunk header for the main chunk (typically the image).
This method has no use in a reception context where the data receiver delivers the buffer. Use either the direct chunk access methods or the GenApi interface of the device to access chunk data.
Implemented in PvBuffer.
|
pure virtual |
See PvBuffer::GetChunkIDByIndex.
See PvBuffer::GetChunkIDByIndex.
Same as PvBuffer equivalent. Provided with this interface for convenience.
| [in] | aIndex | Data chunk index. |
| [out] | aID | Data chunk ID for aIndex. |
Implemented in PvBuffer.
|
pure virtual |
|
pure virtual |
See PvBuffer::GetChunkRawDataByID.
See PvBuffer::GetChunkRawDataByID.
Same as PvBuffer equivalent. Provided with this interface for convenience.
| [in] | aID | Data chunk ID. |
Implemented in PvBuffer.
|
pure virtual |
See PvBuffer::GetChunkRawDataByIndex.
See PvBuffer::GetChunkRawDataByIndex.
Same as PvBuffer equivalent. Provided with this interface for convenience.
| [in] | aIndex | Data chunk index. |
Implemented in PvBuffer.
|
pure virtual |
See PvBuffer::GetChunkSizeByID.
See PvBuffer::GetChunkSizeByID.
Same as PvBuffer equivalent. Provided with this interface for convenience.
| [in] | aID | Data chunk ID. |
Implemented in PvBuffer.
|
pure virtual |
See PvBuffer::GetChunkSizeByIndex.
See PvBuffer::GetChunkSizeByIndex.
Same as PvBuffer equivalent. Provided with this interface for convenience.
| [in] | aIndex | Data chunk index. |
Implemented in PvBuffer.
|
pure virtual |
Returns true if the buffer has data chunks.
Unlike GetChunkCount, chunks do not need to be parsed or resolved with this method.
Implemented in PvBuffer.
|
pure virtual |
|
pure virtual |
Set the chunk data layout ID.
See PvBuffer::AddChunk.
| [in] | aChunkLayoutID | Chunk data layout ID. |
Set the chunk data layout ID.
Implemented in PvBuffer.
Copyright (c) 2002-2024 Pleora Technologies Inc.
www.pleora.com