![Symbian Developer Library](../../../../a_stock/images/mainheading.gif)
![]() |
![]() |
|
class CImageReadCodec : public CBase;
Provides read related processing functions for bitmaps.
Note: For use by plugin writers only.
CBase
-
Base class for all classes to be instantiated on the heap.
CImageReadCodec
-
Provides read related processing functions for bitmaps.
Defined in CImageReadCodec
:
CImageReadCodec()
Default constructor. ClearBitmapL(CFbsBitmap &,TRgb)
Paints the entire bitmap aBitmap with the color supplied as aColor.Complete()
Processes/displays converted image data.ConstructL()
Second phase constructor. CurrentFrame()const
Return the current frame numberGetNewDataPosition(TInt &,TInt &)
Returns a new position and number of bytes to read for the data stream.InitFrameHeader(TFrameInfo &,CFrameImageData &)
Used to initialise the frame header data structures.InitFrameL(TFrameInfo &,CFrameImageData &,TBool,CFbsBitmap &,CFbsBitmap *)
Performs initial processing of image data and mask bitmaps.ProcessFrameHeaderL(TBufPtr8 &)
Processes the header for one frame.ProcessFrameL(TBufPtr8 &)
Processes the frame data contained in aSrc.ReducedSize(const TSize &,TInt,TSize &)const
Calculates reduced size of the decoded bitmap based on the input parameters and ...ReductionFactor(const TSize &,const TSize &)const
Calculates reduction factor based on the input parameters. The default Implement...ReservedVirtual1()
Intended for future proofing - will panic if calledReservedVirtual2()
Intended for future proofing - will panic if calledReservedVirtual3()
Intended for future proofing - will panic if calledReservedVirtual4()
Intended for future proofing - will panic if called~CImageReadCodec()
Destructor. Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...virtual void InitFrameL(TFrameInfo &aFrameInfo, CFrameImageData &aFrameImageData, TBool aDisableErrorDiffusion, CFbsBitmap
&aDestination, CFbsBitmap *aDestinationMask)=0;
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.
|
IMPORT_C virtual void InitFrameHeader(TFrameInfo &aFrameInfo, CFrameImageData &aFrameData);
Used to initialise the frame header data structures.
The default version of this function does nothing. It should be implemented by the codec to at least update the appropriate
processing state of the current frame using its TFrameInfo
structure.
|
IMPORT_C virtual TFrameState ProcessFrameHeaderL(TBufPtr8 &aData);
Processes the header for one frame.
The default version of this function and simply returns EFrameComplete. It should be implemented by the codec to at least
update the appropriate processing state of the current frame using its TFrameInfo
structure.
|
|
IMPORT_C virtual void Complete();
Processes/displays converted image data.
This function is called on frame completion and on underflow. The default version of this function does nothing. It should be implemented by the codec if required.
If it is called on underflow for example, it can enable display of a partially decoded image. In such cases this function could display all the image data up to the point of the underflow.
IMPORT_C virtual void GetNewDataPosition(TInt &aPosition, TInt &aLength);
Returns a new position and number of bytes to read for the data stream.
The default version of this function does nothing. It should be implemented by the codec, if required.
|
virtual TFrameState ProcessFrameL(TBufPtr8 &aSrc)=0;
Processes the frame data contained in aSrc.
This is a pure virtual function that each derived class must implement.
|
|
IMPORT_C virtual TInt ReductionFactor(const TSize &aOriginalSize, const TSize &aReducedSize) const;
Calculates reduction factor based on the input parameters. The default Implementation is given here. It should be implemented by the Codecs, If required.
|
|
IMPORT_C virtual TInt ReducedSize(const TSize &aOriginalSize, TInt aReductionFactor, TSize &aReducedSize) const;
Calculates reduced size of the decoded bitmap based on the input parameters and updates aReducedSize with this value. The default Implementation is given here. It should be implemented by the Codecs, If required.
|
|
protected: IMPORT_C void ClearBitmapL(CFbsBitmap &aBitmap, TRgb aColor);
Paints the entire bitmap aBitmap with the color supplied as aColor.
|
protected: IMPORT_C TInt CurrentFrame() const;
Return the current frame number
|
private: IMPORT_C virtual void ReservedVirtual1();
Intended for future proofing - will panic if called
|
private: IMPORT_C virtual void ReservedVirtual2();
Intended for future proofing - will panic if called
|
private: IMPORT_C virtual void ReservedVirtual3();
Intended for future proofing - will panic if called
|
private: IMPORT_C virtual void ReservedVirtual4();
Intended for future proofing - will panic if called
|