CImageReadCodec Class Reference

class CImageReadCodec : public CBase

Provides read related processing functions for bitmaps.

Note: For use by plugin writers only.

Inherits from

Constructor & Destructor Documentation

CImageReadCodec()

IMPORT_CCImageReadCodec()[protected]

~CImageReadCodec()

IMPORT_C~CImageReadCodec()

Member Functions Documentation

ClearBitmapL(CFbsBitmap &, TRgb)

IMPORT_C voidClearBitmapL(CFbsBitmap &aBitmap,
TRgbaColor
)[protected]

Parameters

CFbsBitmap & aBitmap
TRgb aColor

Complete()

IMPORT_C voidComplete()[virtual]

ConstructL()

IMPORT_C voidConstructL()[protected]

CurrentFrame()

IMPORT_C TIntCurrentFrame()const [protected]

GetNewDataPosition(TInt &, TInt &)

IMPORT_C voidGetNewDataPosition(TInt &aPosition,
TInt &aLength
)[virtual]

Parameters

TInt & aPosition
TInt & aLength

InitFrameHeader(TFrameInfo &, CFrameImageData &)

IMPORT_C voidInitFrameHeader(TFrameInfo &aFrameInfo,
CFrameImageData &aFrameData
)[virtual]

Parameters

TFrameInfo & aFrameInfo
CFrameImageData & aFrameData

InitFrameL(TFrameInfo &, CFrameImageData &, TBool, CFbsBitmap &, CFbsBitmap *)

voidInitFrameL(TFrameInfo &aFrameInfo,
CFrameImageData &aFrameImageData,
TBoolaDisableErrorDiffusion,
CFbsBitmap &aDestination,
CFbsBitmap *aDestinationMask
)[pure virtual]

Performs initial processing of image data and mask bitmaps.

This function processes the image frame using data supplied in aFrameInfo, aFrameImageData and using the flag aDisableErrorDiffusion. Not all codecs are expected to make use of all fields.

This is a virtual function that each derived class must implement.

Parameters

TFrameInfo & aFrameInfoA reference to a TFrameInfo object.
CFrameImageData & aFrameImageDataA reference to a CFrameImageData object.
TBool aDisableErrorDiffusionA flag indicating whether error diffusion should be disabled.
CFbsBitmap & aDestinationThe destination bitmap.
CFbsBitmap * aDestinationMaskThe destination mask bitmap.

ProcessFrameHeaderL(TBufPtr8 &)

IMPORT_C TFrameStateProcessFrameHeaderL(TBufPtr8 &aData)[virtual]

Parameters

TBufPtr8 & aData

ProcessFrameL(TBufPtr8 &)

TFrameState ProcessFrameL(TBufPtr8 &aSrc)[pure virtual]

Processes the frame data contained in aSrc.

This is a pure virtual function that each derived class must implement.

The current frame state after processing.

Parameters

TBufPtr8 & aSrcA reference to the buffer containing the frame data.

ReducedSize(const TSize &, TInt, TSize &)

IMPORT_C TIntReducedSize(const TSize &aOriginalSize,
TIntaReductionFactor,
TSize &aReducedSize
)const [virtual]

Parameters

const TSize & aOriginalSize
TInt aReductionFactor
TSize & aReducedSize

ReductionFactor(const TSize &, const TSize &)

IMPORT_C TIntReductionFactor(const TSize &aOriginalSize,
const TSize &aReducedSize
)const [virtual]

Parameters

const TSize & aOriginalSize
const TSize & aReducedSize

ReservedVirtual1()

IMPORT_C voidReservedVirtual1()[private, virtual]

ReservedVirtual2()

IMPORT_C voidReservedVirtual2()[private, virtual]

ReservedVirtual3()

IMPORT_C voidReservedVirtual3()[private, virtual]

ReservedVirtual4()

IMPORT_C voidReservedVirtual4()[private, virtual]

SetCurrentFrame(TInt)

voidSetCurrentFrame(TIntaFrameNumber)

Parameters

TInt aFrameNumber

Member Data Documentation

TInt iCurrentFrame

TInt iCurrentFrame[private]