InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IJPEGDecoder Class Referenceabstract

#include <IJPEGDecoder.h>

Inheritance diagram for IJPEGDecoder:
IPMUnknown

Public Member Functions

virtual bool16 Open (JPEGReadInfo *jpegReadInfo, IPMStream *iPMStream)=0
 
virtual bool16 ReadRows (char *rowBuffer, uint32 numberOfRows)=0
 
virtual bool16 Close ()=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Interface for decoding JPEG compressed data

Member Function Documentation

virtual bool16 IJPEGDecoder::Close ()
pure virtual

Close the stream and cleanup

Returns
kTrue if successful.
virtual bool16 IJPEGDecoder::Open (JPEGReadInfojpegReadInfo,
IPMStreamiPMStream 
)
pure virtual

Specify the input stream and read the JPEG tags.

Parameters
jpegReadInfo- OUT: Pointer to a valid jpegReadInfo structure which client should memset to zeroes. Decoder will fill in the structure based on the JPEG tags.
iPMStream- IN: input stream.
Returns
kTrue if the decoder can decode the stream.
virtual bool16 IJPEGDecoder::ReadRows (char * rowBuffer,
uint32 numberOfRows 
)
pure virtual

Read numberOfRows of image data into rowBuffer. If rowBuffer is nil, then skip numberOfRows.

Parameters
rowBuffer- OUT: destination buffer or nill to skip 'numberOfRows' rows.
numberOfRows- IN: how many rows of data to read.
Returns
kTrue if successful.