CBufferedImageDecoder Class Reference

class CBufferedImageDecoder : public CBase

Buffered image conversion library.

Provides a wrapper arround CImageDecoder that enables you to decode multiple images without having to recreate the CBufferedImageDecoder object each time. One of the key features of this class is the ability to append image data to the decoder object as it becomes available; this is done using AppendDataL().

Inherits from

  • CBufferedImageDecoder
Public Member Functions
~CBufferedImageDecoder()
IMPORT_C voidAppendDataL(const TDesC8 &)
IMPORT_C voidCancel()
IMPORT_C voidContinueConvert(TRequestStatus *)
IMPORT_C voidContinueOpenL()
IMPORT_C voidContinueProcessingHeaderL()
IMPORT_C voidConvert(TRequestStatus *, CFbsBitmap &, TInt)
IMPORT_C voidConvert(TRequestStatus *, CFbsBitmap &, CFbsBitmap &, TInt)
IMPORT_C HBufC *FrameCommentL(TInt, TInt)
IMPORT_C TIntFrameCount()
IMPORT_C const CFrameImageData &FrameData(TInt)
IMPORT_C const TFrameInfo &FrameInfo(TInt)
IMPORT_C CFrameInfoStrings *FrameInfoStringsL(TInt)
IMPORT_C CFrameInfoStrings *FrameInfoStringsLC(TInt)
IMPORT_C HBufC *ImageCommentL(TInt)
IMPORT_C TUidImplementationUid()
IMPORT_C TBoolIsImageHeaderProcessingComplete()
IMPORT_C CBufferedImageDecoder *NewL(RFs &)
IMPORT_C TIntNumberOfFrameComments(TInt)
IMPORT_C TIntNumberOfImageComments()
IMPORT_C voidOpenL(const TDesC8 &, const TDesC8 &, const CImageDecoder::TOptions)
IMPORT_C voidOpenL(const TDesC8 &, const CImageDecoder::TOptions, const TUid, const TUid, const TUid)
IMPORT_C voidReset()
IMPORT_C TBoolValidDecoder()
Private Member Functions
CBufferedImageDecoder(RFs &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Member Enumerations
enumTState { EStateCreated, EStateOpening, EStateOpen, EStateConverting }
Private Attributes
TPtr8 iBuffer
CImageDecoder *iDecoder
TUid iDecoderUid
RFs iFileSession
TUid iImageSubType
TUid iImageType
TBool iImageTypeOpen
TPtr8 iMimeType
CImageDecoder::TOptions iOptions
TState iState

Constructor & Destructor Documentation

CBufferedImageDecoder(RFs &)

CBufferedImageDecoder(RFs &aFs)[private]

Parameters

RFs & aFs

~CBufferedImageDecoder()

IMPORT_C~CBufferedImageDecoder()[virtual]

Member Functions Documentation

AppendDataL(const TDesC8 &)

IMPORT_C voidAppendDataL(const TDesC8 &aData)

Parameters

const TDesC8 & aData

Cancel()

IMPORT_C voidCancel()

ContinueConvert(TRequestStatus *)

IMPORT_C voidContinueConvert(TRequestStatus *aRequestStatus)

Parameters

TRequestStatus * aRequestStatus

ContinueOpenL()

IMPORT_C voidContinueOpenL()

ContinueProcessingHeaderL()

IMPORT_C voidContinueProcessingHeaderL()

Convert(TRequestStatus *, CFbsBitmap &, TInt)

IMPORT_C voidConvert(TRequestStatus *aRequestStatus,
CFbsBitmap &aDestination,
TIntaFrameNumber = 0
)

Parameters

TRequestStatus * aRequestStatus
CFbsBitmap & aDestination
TInt aFrameNumber = 0

Convert(TRequestStatus *, CFbsBitmap &, CFbsBitmap &, TInt)

IMPORT_C voidConvert(TRequestStatus *aRequestStatus,
CFbsBitmap &aDestination,
CFbsBitmap &aDestinationMask,
TIntaFrameNumber = 0
)

Parameters

TRequestStatus * aRequestStatus
CFbsBitmap & aDestination
CFbsBitmap & aDestinationMask
TInt aFrameNumber = 0

FrameCommentL(TInt, TInt)

IMPORT_C HBufC *FrameCommentL(TIntaFrameNumber,
TIntaCommentNumber
)const

Parameters

TInt aFrameNumber
TInt aCommentNumber

FrameCount()

IMPORT_C TIntFrameCount()const

FrameData(TInt)

IMPORT_C const CFrameImageData &FrameData(TIntaFrameNumber = 0)const

Parameters

TInt aFrameNumber = 0

FrameInfo(TInt)

IMPORT_C const TFrameInfo &FrameInfo(TIntaFrameNumber = 0)const

Parameters

TInt aFrameNumber = 0

FrameInfoStringsL(TInt)

IMPORT_C CFrameInfoStrings *FrameInfoStringsL(TIntaFrameNumber = 0)

Parameters

TInt aFrameNumber = 0

FrameInfoStringsLC(TInt)

IMPORT_C CFrameInfoStrings *FrameInfoStringsLC(TIntaFrameNumber = 0)

Parameters

TInt aFrameNumber = 0

ImageCommentL(TInt)

IMPORT_C HBufC *ImageCommentL(TIntaCommentNumber)const

Parameters

TInt aCommentNumber

ImplementationUid()

IMPORT_C TUidImplementationUid()const

IsImageHeaderProcessingComplete()

IMPORT_C TBoolIsImageHeaderProcessingComplete()const

NewL(RFs &)

IMPORT_C CBufferedImageDecoder *NewL(RFs &aFs)[static]

Parameters

RFs & aFs

NumberOfFrameComments(TInt)

IMPORT_C TIntNumberOfFrameComments(TIntaFrameNumber)const

Parameters

TInt aFrameNumber

NumberOfImageComments()

IMPORT_C TIntNumberOfImageComments()const

OpenL(const TDesC8 &, const TDesC8 &, const CImageDecoder::TOptions)

IMPORT_C voidOpenL(const TDesC8 &aSourceData,
const TDesC8 &aMIMEType,
const CImageDecoder::TOptionsaOptions = CImageDecoder::EOptionNone
)

Parameters

const TDesC8 & aSourceData
const TDesC8 & aMIMEType
const CImageDecoder::TOptions aOptions = CImageDecoder::EOptionNone

OpenL(const TDesC8 &, const CImageDecoder::TOptions, const TUid, const TUid, const TUid)

IMPORT_C voidOpenL(const TDesC8 &aSourceData,
const CImageDecoder::TOptionsaOptions = CImageDecoder::EOptionNone,
const TUidaImageType = KNullUid,
const TUidaImageSubType = KNullUid,
const TUidaDecoderUid = KNullUid
)

Parameters

const TDesC8 & aSourceData
const CImageDecoder::TOptions aOptions = CImageDecoder::EOptionNone
const TUid aImageType = KNullUid
const TUid aImageSubType = KNullUid
const TUid aDecoderUid = KNullUid

Reset()

IMPORT_C voidReset()

ValidDecoder()

IMPORT_C TBoolValidDecoder()const

Member Enumerations Documentation

Enum TState

Enumerators

EStateCreated
EStateOpening
EStateOpen
EStateConverting

Member Data Documentation

TPtr8 iBuffer

TPtr8 iBuffer[private]

CImageDecoder * iDecoder

CImageDecoder *iDecoder[private]

TUid iDecoderUid

TUid iDecoderUid[private]

RFs iFileSession

RFs iFileSession[private]

TUid iImageSubType

TUid iImageSubType[private]

TUid iImageType

TUid iImageType[private]

TBool iImageTypeOpen

TBool iImageTypeOpen[private]

TPtr8 iMimeType

TPtr8 iMimeType[private]

CImageDecoder::TOptions iOptions

CImageDecoder::TOptions iOptions[private]

TState iState

TState iState[private]