Class IPvMultiPartContainerWriter
Interface used to write to a multi-part container.
Implements
Inherited Members
Namespace: eBUSDotNet
Assembly: eBUSDotNet.dll
Syntax
public class IPvMultiPartContainerWriter : IPvMultiPartContainerReader, IDisposable
Methods
View SourceAddChunkPart(uint, uint)
Adds a chunk data part to the index of a multi-part container.
Declaration
public virtual PvResult AddChunkPart(uint aMaxLength, uint aChunkLayoutID)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | aMaxLength | Maximum length for chunk data. |
| uint | aChunkLayoutID | Chunk layoud ID for the chunk data. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
AddImagePart(PvMultiPartDataType, uint, uint, PvPixelType)
Adds an image part to the index of a multi-part container.
Declaration
public virtual PvResult AddImagePart(PvMultiPartDataType aDataType, uint aWidth, uint aMaxHeight, PvPixelType aPixelType)
Parameters
| Type | Name | Description |
|---|---|---|
| PvMultiPartDataType | aDataType | Image data type. Must be between PvMultiPart2DImage and PvMultiPartConfidenceMap, inclusive. |
| uint | aWidth | Width of the image, in pixels. |
| uint | aMaxHeight | Height of the image, in pixels. |
| PvPixelType | aPixelType | Pixel type of the image. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
AddImagePart(PvMultiPartDataType, uint, uint, PvPixelType, uint)
Adds an image part to the index of a multi-part container.
Declaration
public virtual PvResult AddImagePart(PvMultiPartDataType aDataType, uint aWidth, uint aMaxHeight, PvPixelType aPixelType, uint aOffsetX)
Parameters
| Type | Name | Description |
|---|---|---|
| PvMultiPartDataType | aDataType | Image data type. Must be between PvMultiPart2DImage and PvMultiPartConfidenceMap, inclusive. |
| uint | aWidth | Width of the image, in pixels. |
| uint | aMaxHeight | Height of the image, in pixels. |
| PvPixelType | aPixelType | Pixel type of the image. |
| uint | aOffsetX | Offset X of the image, in pixels. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
AddImagePart(PvMultiPartDataType, uint, uint, PvPixelType, uint, uint)
Adds an image part to the index of a multi-part container.
Declaration
public virtual PvResult AddImagePart(PvMultiPartDataType aDataType, uint aWidth, uint aMaxHeight, PvPixelType aPixelType, uint aOffsetX, uint aOffsetY)
Parameters
| Type | Name | Description |
|---|---|---|
| PvMultiPartDataType | aDataType | Image data type. Must be between PvMultiPart2DImage and PvMultiPartConfidenceMap, inclusive. |
| uint | aWidth | Width of the image, in pixels. |
| uint | aMaxHeight | Height of the image, in pixels. |
| PvPixelType | aPixelType | Pixel type of the image. |
| uint | aOffsetX | Offset X of the image, in pixels. |
| uint | aOffsetY | Offset Y of the image, in pixels. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
AddImagePart(PvMultiPartDataType, uint, uint, PvPixelType, uint, uint, ushort)
Adds an image part to the index of a multi-part container.
Declaration
public virtual PvResult AddImagePart(PvMultiPartDataType aDataType, uint aWidth, uint aMaxHeight, PvPixelType aPixelType, uint aOffsetX, uint aOffsetY, ushort aPaddingX)
Parameters
| Type | Name | Description |
|---|---|---|
| PvMultiPartDataType | aDataType | Image data type. Must be between PvMultiPart2DImage and PvMultiPartConfidenceMap, inclusive. |
| uint | aWidth | Width of the image, in pixels. |
| uint | aMaxHeight | Height of the image, in pixels. |
| PvPixelType | aPixelType | Pixel type of the image. |
| uint | aOffsetX | Offset X of the image, in pixels. |
| uint | aOffsetY | Offset Y of the image, in pixels. |
| ushort | aPaddingX | Padding X of the image, in bytes. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
AddJPEGPart(PvMultiPartDataType, uint, byte, ulong, uint)
Adds a JPEG part to the index of a multi-part container.
Declaration
public virtual PvResult AddJPEGPart(PvMultiPartDataType aDataType, uint aMaxLength, byte aFlag, ulong aTimestampTickFrequency, uint aDataFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| PvMultiPartDataType | aDataType | Multi-part data type. Either PvMultiPartJPEGImage or PvMultiPartJPEG2000Image. |
| uint | aMaxLength | Maximum length for the compressed image. Defined here as worse-case compression, exact size later confirmed with SetPartFinalLength. |
| byte | aFlag | JPEG flags. |
| ulong | aTimestampTickFrequency | Timestamp tick frequency. Can be used with JPEG2000 to turn buffer timestamp into real time units. |
| uint | aDataFormat | JPEG data format. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
AllocAllParts()
Allocates memory for all parts defined by the part index of the multi-part container.
Declaration
public virtual PvResult AllocAllParts()
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
AllocPart(uint)
Allocates memory for one of the parts as defined by the index of the part.
Declaration
public virtual PvResult AllocPart(uint aIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | aIndex | Zero-based index of the part. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
AttachPart(uint, byte[], ulong)
Attaches a part to an external memory buffer.
Declaration
public virtual PvResult AttachPart(uint aIndex, byte[] aBuffer, ulong aLength)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | aIndex | Zero-based index of the part. |
| byte[] | aBuffer | Pointer to the external memory buffer. |
| ulong | aLength | Length of the external memory buffer to attach. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
Dispose(bool)
Dispose
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
View SourceReset()
Resets the multi-part container index to empty - no parts.
Declaration
public virtual void Reset()
SetPartFinalImageHeight(uint, uint)
Sets the final height of an image part.
Declaration
public virtual PvResult SetPartFinalImageHeight(uint aIndex, uint aHeight)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | aIndex | Zero-based index of the part. |
| uint | aHeight | Final height of the part. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
SetPartFinalLength(uint, uint)
Sets the final length of a part.
Declaration
public virtual PvResult SetPartFinalLength(uint aIndex, uint aLength)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | aIndex | Zero-based index of the part. |
| uint | aLength | aLength Final length of the part. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
SetPartIDs(uint, uint, uint, uint)
Sets the source, data purpose and region IDs of a part.
Declaration
public virtual PvResult SetPartIDs(uint aIndex, uint aSourceID, uint aDataPurposeID, uint aRegionID)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | aIndex | Zero-based index of the part. |
| uint | aSourceID | Source ID to assign to the part |
| uint | aDataPurposeID | Data purpose ID to assign to the part. |
| uint | aRegionID | Region ID to assign to the part. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
SetPartZoneInfo(uint, byte, uint)
Sets the zone info of a part.
Declaration
public virtual PvResult SetPartZoneInfo(uint aIndex, byte aAdditionalZones, uint aZoneDirectionMask)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | aIndex | Zero-based index of the part. |
| byte | aAdditionalZones | Number of additional zones for this part. |
| uint | aZoneDirectionMask | Zone direction of for all zones of this part. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
Validate()
Validates the part index and allocated/attached part memory.
Declaration
public virtual PvResult Validate()
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|