Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from CBase:


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(TBufPtr8 &,const CFbsBitmap &)

IMPORT_C virtual 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(TBufPtr8 &)

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 CImageWriteCodec::InitFrameL(TBufPtr8 &,const CFbsBitmap &) or by a CImageWriteCodec::SetSource(const CFbsBitmap *).

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()const

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(const CFbsBitmap *)

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: IMPORT_C virtual void ReservedVirtual1();

Description

Intended for future proofing - will panic if called

Panic codes

EReservedCall


ReservedVirtual2()

private: IMPORT_C virtual void ReservedVirtual2();

Description

Intended for future proofing - will panic if called

Panic codes

EReservedCall


ReservedVirtual3()

private: IMPORT_C virtual void ReservedVirtual3();

Description

Intended for future proofing - will panic if called

Panic codes

EReservedCall


ReservedVirtual4()

private: IMPORT_C virtual void ReservedVirtual4();

Description

Intended for future proofing - will panic if called

Panic codes

EReservedCall