PICTools Programmer's Reference
PARTITION

PARTITION: OP_J2KE, OP_J2KE3D, OP_J2KERGB, OP_J2KP, OP_J2KP3D, OP_J2KPRGB

A pixel is a spatially discrete unit.  It is composed of samples.  Typically a single luminance sample makes up a gray pixel and three samples red, green, and blue make up a color pixel.  A partition contains a rectangular array of pixels that span the image.  An image may be comprised of more than one partition; for example, one partition might contain alpha information for each pixel and another partition might contain RGB color information for each pixel. 

 
Copy Code
typedef struct {
   QUEUE       Queue;
   DWORD       StripSize
   REGION      Region;
} PARTITION;

Fields:

Name Description

Queue

Get or Put queue that pertains to this partition.

StripSize

This is the minimum size of the buffer to hold data for this partition. For OP_J2KP, this is the minimum size of the Get Buffer for this partition. For OP_J2KE, this is the minimum size of the Put buffer for this partition. This is provided to the caller by INIT.

Region

Region information that describes this partition.  For images with Width, Height, or Stride too large to fit in REGION, REGION2 should be used (see the discussion of the REGION2 structure) and ParmVerMinor must be at least 4.

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback