Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: ImageCodec.h
Link against: imageconversion.lib

Class CImageWriteCodec

class CImageWriteCodec : public CBase;

Description

Provides read related processing functions for bitmaps.

Note: For use by plugin writers only.

Derivation

Members

Defined in CImageWriteCodec:
CImageWriteCodec(), ConstructL(), InitFrameL(), ProcessFrameL(), ReservedVirtual1(), ReservedVirtual2(), ReservedVirtual3(), ReservedVirtual4(), SetSource(), Source(), ~CImageWriteCodec()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


~CImageWriteCodec()

IMPORT_C ~CImageWriteCodec();

Description

Destructor.


ConstructL()

protected: IMPORT_C void ConstructL();

Description

Second phase constructor.


CImageWriteCodec()

protected: IMPORT_C CImageWriteCodec();

Description

Default constructor.

[Top]


Member functions


InitFrameL()

virtual IMPORT_C void InitFrameL(TBufPtr8 &aDst, const CFbsBitmap &aSource);

Description

Performs initial processing of image data from an internally held buffer.

Used to initialise the frame header. The default version of this function does nothing. It should be implemented by the codec, if required.

Parameters

TBufPtr8 &aDst

The destination buffer.

const CFbsBitmap &aSource

The source internally held buffer.


ProcessFrameL()

virtual TFrameState ProcessFrameL(TBufPtr8 &aDst)=0;

Description

Processes the frame data contained in aDst.

The internally held buffer must have been previously set, either by InitFrameL() or by a SetSource().

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

Parameters

TBufPtr8 &aDst

A reference to the buffer containing the frame data.

Return value

TFrameState

The current frame state after processing.


Source()

IMPORT_C const CFbsBitmap *Source() const;

Description

Returns the codec's source bitmap.

Return value

const CFbsBitmap *

A pointer to the codec's source bitmap.


SetSource()

IMPORT_C void SetSource(const CFbsBitmap *aSource);

Description

Sets the codec's source bitmap.

Use this function if you need to process more than one internally held buffer. This will be necessary if, for example, you need to add a bitmap mask to the destination buffer.

Parameters

const CFbsBitmap *aSource

A pointer to the codec's source bitmap.


ReservedVirtual1()

private: virtual IMPORT_C void ReservedVirtual1();

Description

Intended for future proofing - will panic if called

Panic codes

EReservedCall


ReservedVirtual2()

private: virtual IMPORT_C void ReservedVirtual2();

Description

Intended for future proofing - will panic if called

Panic codes

EReservedCall


ReservedVirtual3()

private: virtual IMPORT_C void ReservedVirtual3();

Description

Intended for future proofing - will panic if called

Panic codes

EReservedCall


ReservedVirtual4()

private: virtual IMPORT_C void ReservedVirtual4();

Description

Intended for future proofing - will panic if called

Panic codes

EReservedCall