Operation Structures > J2KT_UNION |
J2KT_UNION: OP_J2KTRANSCODE
Copy Code | |
---|---|
typedef struct { DWORD Reserved0; BYTE PICHUGE* Reserved1; BYTE PICHUGE* Reserved2; BYTE PICHUGE* Reserved3; BYTE PICHUGE* Reserved4; BYTE PICHUGE* Reserved5; BYTE PICHUGE* Reserved6; BYTE PICHUGE* Reserved7; BYTE PICHUGE* Reserved8; PICFLAGS PicFlags; PICFLAGS PicFlags2; DWORD ImageWidth; DWORD ImageHeight; DWORD ImageXOff; DWORD ImageYOff; DWORD TileWidth; DWORD TileHeight; DWORD TileXOff; DWORD TileYOff; DWORD NumComponents; DWORD TileCompTransform; DWORD DecompositionLevels; DWORD JPEG2000FileFormat; DWORD JPEG2000Profile; DWORD TileCompFlags; DWORD PrecinctWidth; DWORD PrecinctHeight; DWORD ProgressionOrder; DWORD NumLayers; DWORD DiscardLayers; THUMBNAIL Thumbnail; DWORD TileFlags; DWORD Rate; DWORD CompFileSize; double* LayerRates; } J2KT_UNION; |
Name | Description | ||||||||||||||||||
Reserved 0 |
Must be 0. | ||||||||||||||||||
Reserved1 Reserved2 Reserved3 Reserved4 Reserved5 Reserved6 Reserved7 Reserved8 |
Must be NULL. | ||||||||||||||||||
PICFlags |
| ||||||||||||||||||
PICFlags2 |
| ||||||||||||||||||
ImageWidth |
This field is extracted from the header of the input JPEG2000 image. It is the width of the actual image data on the JPEG2000 reference canvas. It is returned by REQ_INIT. | ||||||||||||||||||
ImageHeight |
This field is extracted from the header of the input JPEG2000 image. It is the height of the actual image data on the JPEG2000 reference canvas. It is returned by REQ_INIT. | ||||||||||||||||||
ImageXOff |
This field is extracted from the header of the input JPEG2000 image. It is the horizontal offset of the top-left-corner of the actual image data on the JPEG2000 reference canvas. It is returned by REQ_INIT. | ||||||||||||||||||
ImageYOff |
This field is extracted from the header of the input JPEG2000 image. It is the vertical offset of the top-left-corner of the actual image data on the JPEG2000 reference canvas. It is returned by REQ_INIT. | ||||||||||||||||||
TileWidth |
This field is extracted from the header of the input JPEG2000 image. It is the nominal width of image tiles on the JPEG2000 reference canvas. It is returned by REQ_INIT. | ||||||||||||||||||
TileHeight |
This field is extracted from the header of the input JPEG2000 image. It is the nominal height of image tiles on the JPEG2000 reference canvas. It is returned by REQ_INIT. | ||||||||||||||||||
TileXOff |
This field is extracted from the header of the input JPEG2000 image. It is the horizontal offset of the top-left-corner tile on the JPEG2000 reference canvas. It is returned by REQ_INIT. | ||||||||||||||||||
TileYOff |
This field is extracted from the header of the input JPEG2000 image. It is the vertical offset of the top-left-corner tile on the JPEG2000 reference canvas. It is returned by REQ_INIT. | ||||||||||||||||||
NumComponents |
This field is the number of components extracted from the header of the input JPEG2000 image. It is returned by REQ_INIT. | ||||||||||||||||||
TileCompTransform |
This field reports the multiple component transformation extracted from the header of the input JPEG2000 image. It is returned by REQ_INIT.
| ||||||||||||||||||
DecompositionLevels |
This field is the number of wavelet decomposition levels extracted from the header of the input JPEG2000 image. It is returned by REQ_INIT. | ||||||||||||||||||
JPEG2000FileFormat |
This field reports the JPEG2000 file format of the input JPEG2000 image. It is returned by REQ_INIT and input to REQ_EXEC. Leave unchanged or set to the desired output file format. JPX is not currently supported.
| ||||||||||||||||||
JPEG2000Profile |
This field reports the JPEG2000 profile indicator extracted from the header of the input JPEG2000 image. It is returned by REQ_INIT and input to REQ_EXEC. Leave unchanged or set to the desired output file JPEG2000 profile indicator. Ordinarily, applications will not need to change this setting. See the JPEG2000 ISO standard for the details of these profiles. Part-2 is not currently supported.
| ||||||||||||||||||
TileCompFlags |
This field reports the state of the EBCOT encoder selective coding bypass mode of the input JPEG2000 image. It is returned by REQ_INIT and input to REQ_EXEC. Leave unchanged or set to the desired mode for the output image.
| ||||||||||||||||||
PrecinctWidth PrecinctHeight |
These fields report the precinct width and height of the input JPEG2000 image. They are returned by REQ_INIT and input to REQ_EXEC. Precinct width and height must each be equal to a power of 2 from 2 to 32768. Leave unchanged or set to the desired values for the output image. | ||||||||||||||||||
ProgressionOrder |
This field reports the prograssion order of data in the input JPEG2000 image. It is returned by REQ_INIT and input to REQ_EXEC. Leave unchanged or set to the desired value for the output image.
| ||||||||||||||||||
NumLayers |
This field reports the number of quality layers in the input JPEG2000 image. It is returned by REQ_INIT and input to REQ_EXEC. Leave unchanged or set to the desired number of layers for the output image. Leave unchanged if DiscardLayers is set to a nonzero value. Upon return from REQ_EXEC, this field will contain the number of layers that OP_J2KTRANSCODE tried to create. | ||||||||||||||||||
DiscardLayers |
Set this field at REQ_EXEC to the number of layers in the JPEG2000 image to discard before any further transcoder processing. The layers that remain after the requested number are discardeded will appear in the output image. Cannot be used with NumLayers, Rate, CompFileSize, or LayerRates. Set to zero to do nothing. | ||||||||||||||||||
Thumbnail |
Set this field at REQ_EXEC to the power of 2 by which to scale down the image size. The uppermost resolution levels are discarded and the image dimensions are reduced to match the reduced size. Set to zero to do nothing. | ||||||||||||||||||
TileFlags |
Set this field at REQ_EXEC to control certain other tile-specific JPEG options for inserting PLT markers for random access and dividing tiles into tile parts for random access or for better progressive display. One or more of these flags may be set simultaneously. Set to zero to do nothing.
| ||||||||||||||||||
Rate |
Set this field at REQ_EXEC to specify the desired degree of compression as a target value equal to the number of thousandths of a bit per pixel. For example, to request a rate of 0.15 bpp, set Rate to 150. In REQ_EXEC, OP_J2KTRANSCODE will use this value and the image dimensions to derive a target compressed file size and it will set CompFileSize to that calculated value. This field is ignored if CompFileSize is nonzero, in which case the value in CompFileSize will be used as the target. Cannot be used with DiscardLayers. Set to zero to not limt by rate. | ||||||||||||||||||
CompFileSize |
Set this field at REQ_EXEC to specify the desired degree of compression as a target compressed file size in bytes. This field takes precedence over the value in Rate. Cannot be used with DiscardLayers. Set to zero to not limit by size and to instruct OP_J2KTRANSCODE to use the value in Rate. If, as a result of values set for Rate or LayerRates, OP_J2KTRANSCODE had to compute or modify CompFileSize, then this field will contain that new value upon return from REQ_EXEC. | ||||||||||||||||||
LayerRates |
Set this field at REQ_EXEC to an array of values specifying the cumulative target size in bytes for each quality layer, according to NumLayers, of the output image. The array must contain a nonzero value for each layer (in order from coarsest to finest) for which a target size is being specified and must contain a terminating 0 as the last entry. The number of nonzero values may be less than the number of layers in the output image, in which case the remaining layers are assigned sizes by the opcode. If the target overall size as specified by Rate or CompFileSize is less than the last size in the LayerRates array, then the target overall size will be increased by OP_J2KTRANSCODE to that last layer size. If there are more values in the LayerRates array than layers, the extraneous values are ignored. Cannot be used with DiscardLayers. Set to NULL to not specify individual layer rates. |