IAI GOX-5105M-PGE User Manual page 66

Cmos digital progressive scan monochrome and color camera with gige interface
Table of Contents

Advertisement

GOX-5105MC-PGE | GOX-8105MC-PGE | GOX-12405MC-PGE | GOX-16205MC-PGE | GOX-20405MC-PGE | GOX-24505MC-PGE
Decompression is performed by specifying a preallocated buffer to expand the decompressed image
and then executing DoDecompress. Decompression is executed in a separate thread for each line of
the image.
Example: Decompression into PvBuffer
1. Create the destination PvBuffer and allocate memory.
PvBuffer buffer;
auto
image = buffer.GetImage();
auto
result = image->Alloc(width, height, PvPixelType::PvPixelMono8);
2. Decompresses image->GetDataPointer().
// in_buffer= compressed data pointer
auto
compressed = jaids::lossless::CompressedBufferBpp8((uint8_t*)in_buffer,
width, height);
compressed.DoDecompress(image->GetDataPointer());
User Manual (Ver. Preliminary) - Main Functions
- 66 -

Advertisement

Table of Contents
loading

Table of Contents