class CImageReadCodec : public CBase |
Provides read related processing functions for bitmaps.
Note: For use by plugin writers only.
Public Member Functions | |
---|---|
~CImageReadCodec() | |
IMPORT_C void | Complete() |
IMPORT_C void | GetNewDataPosition(TInt &, TInt &) |
IMPORT_C void | InitFrameHeader(TFrameInfo &, CFrameImageData &) |
void | InitFrameL(TFrameInfo &, CFrameImageData &, TBool, CFbsBitmap &, CFbsBitmap *) |
IMPORT_C TFrameState | ProcessFrameHeaderL(TBufPtr8 &) |
TFrameState | ProcessFrameL(TBufPtr8 &) |
IMPORT_C TInt | ReducedSize(const TSize &, TInt, TSize &) |
IMPORT_C TInt | ReductionFactor(const TSize &, const TSize &) |
void | SetCurrentFrame(TInt) |
Protected Member Functions | |
---|---|
CImageReadCodec() | |
IMPORT_C void | ClearBitmapL(CFbsBitmap &, TRgb) |
IMPORT_C void | ConstructL() |
IMPORT_C TInt | CurrentFrame() |
Private Member Functions | |
---|---|
IMPORT_C void | ReservedVirtual1() |
IMPORT_C void | ReservedVirtual2() |
IMPORT_C void | ReservedVirtual3() |
IMPORT_C void | ReservedVirtual4() |
Private Attributes | |
---|---|
TInt | iCurrentFrame |
IMPORT_C void | ClearBitmapL | ( | CFbsBitmap & | aBitmap, |
TRgb | aColor | |||
) | [protected] |
CFbsBitmap & aBitmap | |
TRgb aColor |
IMPORT_C void | GetNewDataPosition | ( | TInt & | aPosition, |
TInt & | aLength | |||
) | [virtual] |
IMPORT_C void | InitFrameHeader | ( | TFrameInfo & | aFrameInfo, |
CFrameImageData & | aFrameData | |||
) | [virtual] |
TFrameInfo & aFrameInfo | |
CFrameImageData & aFrameData |
void | InitFrameL | ( | TFrameInfo & | aFrameInfo, |
CFrameImageData & | aFrameImageData, | |||
TBool | aDisableErrorDiffusion, | |||
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.
TFrameInfo & aFrameInfo | A reference to a TFrameInfo object. |
CFrameImageData & aFrameImageData | A reference to a CFrameImageData object. |
TBool aDisableErrorDiffusion | A flag indicating whether error diffusion should be disabled. |
CFbsBitmap & aDestination | The destination bitmap. |
CFbsBitmap * aDestinationMask | The destination mask bitmap. |
IMPORT_C TFrameState | ProcessFrameHeaderL | ( | TBufPtr8 & | aData | ) | [virtual] |
TBufPtr8 & aData |
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.
TBufPtr8 & aSrc | A reference to the buffer containing the frame data. |
IMPORT_C TInt | ReducedSize | ( | const TSize & | aOriginalSize, |
TInt | aReductionFactor, | |||
TSize & | aReducedSize | |||
) | const [virtual] |
IMPORT_C TInt | ReductionFactor | ( | const TSize & | aOriginalSize, |
const TSize & | aReducedSize | |||
) | const [virtual] |