PICTools Programmer's Reference
TRANP2S

TRANP2S: OP_P2S

The TRANP2S structure contains the parameters for the OP_P2S opcode used for loss-less conversion of a progressive JPEG image to a sequential JPEG image.

 
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;
   LONG                 NumScansReq;
   LONG                 NumScansDone;
   LONG                 NumBytesDone;
   SUBSAMPLING          SubSampling;
} TRANP2S;

Fields:

Name Description

Reserved0

Reserved1

Reserved2

Reserved3

Reserved4

Reserved5

Reserved6

Reserved7

Reserved8

PicFlags

PicFlags2

These fields are not currently used.

NumScansReq

Number of progressive JPEG scans to decode.

NumScansDone

Number of scans actually completed.

NumBytesDone

Number of bytes in the completed scans.

SubSampling

Indicates the subsampling as detected by the opcode.

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback