TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
iJpegReader Struct Referenceabstract
Inheritance diagram for iJpegReader:
iUnknown

Detailed Description

Jpeg reader interface.

Public Member Functions

virtual tBool ReadHeaderTables ()=0
 Read the jpeg header tables only. More...
 
virtual tBool BeginRead ()=0
 Start reading a jpeg image. More...
 
virtual tBool EndRead ()=0
 End reading a jpeg image. More...
 
virtual tBool DiscardBuffer ()=0
 Discard existing bytes in the buffer. More...
 
virtual iFileGetFile () const =0
 Get the file from which the data are read. {Property}. More...
 
virtual tU32 GetWidth () const =0
 Get the width of the current image. More...
 
virtual tU32 GetHeight () const =0
 Get the height of the current image. More...
 
virtual tU32 GetNumComponents () const =0
 Get the number of 8bits components. {Property}. More...
 
virtual eColorSpace GetColorSpace () const =0
 Get the color space. {Property}. More...
 
virtual tBool ReadScanline (iFile *apOut)=0
 Read the next scanline. More...
 
virtual iBitmap2DReadBitmap (iGraphics *apGraphics)=0
 Read a 2d bitmap from the result of the next begin/end read. More...
 
- Public Member Functions inherited from iUnknown
virtual tBool IsOK () const =0
 Check if the object is valid. More...
 
virtual tI32 AddRef ()=0
 Signal that one more reference of the object has been created. More...
 
virtual tI32 Release ()=0
 Release a reference of the object. More...
 
virtual void DeleteThis ()=0
 Bypass any reference counting and delete this object. More...
 
virtual void Invalidate ()=0
 Invalidate the object. More...
 
virtual iUnknownQueryInterface (const tUUID &aIID)=0
 Query an interface. More...
 
virtual void ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0
 Fill a UUID list containing the UUIDs of the implemented interfaces. More...
 
virtual tI32 SetNumRefs (tI32 anNumRefs)=0
 Set the reference counter directly. More...
 
virtual tI32 GetNumRefs () const =0
 Get the number of references to this object. More...
 

Member Function Documentation

virtual tBool ReadHeaderTables ( )
pure virtual

Read the jpeg header tables only.

virtual tBool BeginRead ( )
pure virtual

Start reading a jpeg image.

virtual tBool EndRead ( )
pure virtual

End reading a jpeg image.

virtual tBool DiscardBuffer ( )
pure virtual

Discard existing bytes in the buffer.

virtual iFile* GetFile ( ) const
pure virtual

Get the file from which the data are read. {Property}.

virtual tU32 GetWidth ( ) const
pure virtual

Get the width of the current image.

Remarks
The value will be valid only between Begin/EndRead; {Property}
virtual tU32 GetHeight ( ) const
pure virtual

Get the height of the current image.

Remarks
The value will be valid only between Begin/EndRead; {Property}
virtual tU32 GetNumComponents ( ) const
pure virtual

Get the number of 8bits components. {Property}.

virtual eColorSpace GetColorSpace ( ) const
pure virtual

Get the color space. {Property}.

virtual tBool ReadScanline ( iFile apOut)
pure virtual

Read the next scanline.

virtual iBitmap2D* ReadBitmap ( iGraphics apGraphics)
pure virtual

Read a 2d bitmap from the result of the next begin/end read.