PylonCompressionInfo_t#
#include <pylonc/PylonC.h>
Public Attributes#
Name | |
---|---|
EPylonCompressionStatus | CompressionStatus |
size_t | DecompressedImageSize |
size_t | DecompressedPayloadSize |
_Bool | HasCompressedImage |
_Bool | Lossy |
int | OffsetX |
int | OffsetY |
int | PaddingX |
int | PaddingY |
EPylonPixelType | PixelType |
int | SizeX |
int | SizeY |
Detailed Description#
The struct containing information about a grab buffer/result.
If the hasCompressedImage field in the struct is true, the grab buffer/result contains a compressed image. In this case, you should check the compressionStatus field in the struct to check whether the camera was able to compress the image properly. The camera can't compress an image if the amount of data required for compressing the image exceeds the desired compression ratio. The image can be decompressed if compressionStatus is CompressionStatus_Ok. If the hasCompressedImage field in the struct is false, the grab buffer/result already contains a decompressed image. In this case, the decompressedImageSize and decompressedPayloadSize fields will not be used. All other fields contain information about the decompressed data.
Public Attributes Documentation#
variable CompressionStatus#
Status of compression (see EPylonCompressionStatus).
variable DecompressedImageSize#
Size (in bytes) required for the decompressed image (only valid if hasCompressedImage is true).
variable DecompressedPayloadSize#
Size (in bytes; including chunk data) required for the decompressed payload (only valid if hasCompressedImage is true).
variable HasCompressedImage#
True if grab buffer/result provided contains a compressed image (otherwise false if buffer/result is already decompressed).
variable Lossy#
True if image was compressed lossily (otherwise false if it was compressed losslessly).
variable OffsetX#
X offset (in pixels) of compressed image.
variable OffsetY#
Y offset (in pixels) of compressed image.
variable PaddingX#
X padding (line padding; in bytes) of compressed image.
variable PaddingY#
Y padding (image padding; in bytes) of compressed image.
variable PixelType#
Pixel type of compressed image.
variable SizeX#
Width (in pixels) of compressed image.
variable SizeY#
Height (in pixels) of compressed image.