class CImageDecoderPriv : public CActive |
Protected Member Functions | |
---|---|
void | CopyBufferToDescriptor ( TDes8 &, const TDesC8 &, TInt , TInt ) |
TBool | MustUseBufferWithDescriptor () |
Private Member Functions | |
---|---|
CImageDecoderPriv ( CImageDecodeConstruct *, MImageDecoderPrivSupport *) | |
TInt | DataSizeL () |
void | DoCancel () |
void | OpenExtraResourceFileLC ( RFs &, const TUid , RResourceFile &) |
void | RunL () |
void | SeekReadL ( TInt , TDes8 &, TInt ) |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Inherited Attributes | |
---|---|
CActive::iStatus |
CImageDecoderPriv | ( | CImageDecodeConstruct * | aConstruct, |
MImageDecoderPrivSupport * | aSupport | ||
) | [private] |
CImageDecodeConstruct * aConstruct | |
MImageDecoderPrivSupport * aSupport |
TInt | AppendImageData | ( | const TImageDataBlock * | aEntry | ) | [inline] |
const TImageDataBlock * aEntry |
TInt | AppendImageDataBuffer | ( | const HBufC8 * | aImageBuffer | ) | [inline] |
const HBufC8 * aImageBuffer |
void | BodyHandleCustomSyncL | ( | TInt | aParam | ) | [inline] |
Default version of HandleCustomSyncL - always leaves with KErrNotSupported
TInt aParam |
void | BodyInitCustomAsyncL | ( | TInt | aParam | ) | [inline] |
Default version of InitCustomAsyncL - always leaves with KErrNotSupported
TInt aParam |
void | ContinueConvert | ( | RThread & | aRequestThread, |
TRequestStatus * | aRequestStatus | |||
) |
RThread & aRequestThread | |
TRequestStatus * aRequestStatus |
void | Convert | ( | RThread & | aRequestThread, |
TRequestStatus * | aRequestStatus, | |||
CFbsBitmap & | aDestination, | |||
TInt | aFrameNumber | |||
) |
RThread & aRequestThread | |
TRequestStatus * aRequestStatus | |
CFbsBitmap & aDestination | |
TInt aFrameNumber |
void | Convert | ( | RThread & | aRequestThread, |
TRequestStatus * | aRequestStatus, | |||
CFbsBitmap & | aDestination, | |||
CFbsBitmap & | aDestinationMask, | |||
TInt | aFrameNumber = 0 | |||
) |
RThread & aRequestThread | |
TRequestStatus * aRequestStatus | |
CFbsBitmap & aDestination | |
CFbsBitmap & aDestinationMask | |
TInt aFrameNumber = 0 |
void | CopyBufferToDescriptor | ( | TDes8 & | aBuffer, |
const TDesC8 & | aSource, | |||
TInt | aPosition, | |||
TInt | aSize | |||
) | [protected, inline] |
void | CustomAsync | ( | RThread & | aRequestThread, |
TRequestStatus * | aRequestStatus, | |||
TInt | aParam | |||
) |
Plugin is interrogated with InitCustomAsyncL. If this works, then set internal Convert() cycle going
RThread & aRequestThread | |
TRequestStatus * aRequestStatus | |
TInt aParam |
void | CustomSyncL | ( | TInt | aParam | ) |
Passes on CustomSyncL to plugin
TInt aParam |
void | DoCancel | ( | ) | [private, virtual] |
Implements cancellation of an outstanding request.
This function is called as part of the active object's Cancel() .
It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.
DoCancel() must not wait for event completion; this is handled by Cancel() .
TInt | FrameCount | ( | ) | const [inline] |
Return the number of frames in the image being decoded. This function can be called immediately after the call to create the decoder, thus enabling the caller to know how many frames need to be converted.
const CFrameImageData & | FrameData | ( | TInt | aFrameNumber | ) | const |
TInt aFrameNumber |
const TFrameInfo & | FrameInfo | ( | TInt | aFrameNumber | ) | const |
TInt aFrameNumber |
CFrameInfoStrings * | FrameInfoStringsLC | ( | TInt | aFrameNumber | ) |
TInt aFrameNumber |
void | GetExtensionL | ( | TUid | aExtUid, |
MImageConvExtension *& | aExtPtr | |||
) |
TUid aExtUid | |
MImageConvExtension *& aExtPtr |
void | HandleProcessFrameResult | ( | TInt | aErrCode, |
TFrameState | aCodecState | |||
) |
TInt aErrCode | |
TFrameState aCodecState |
const TImageDataBlock * | ImageData | ( | TInt | aIndex | ) | const [inline] |
TInt aIndex |
TInt | InsertImageData | ( | const TImageDataBlock * | aEntry, |
TInt | aPos | |||
) | [inline] |
const TImageDataBlock * aEntry | |
TInt aPos |
TBool | IsImageHeaderProcessingComplete | ( | ) | const [inline] |
Return the status of the image. If the image is incomplete or not terminated correctly EFalse will be returned
CImageDecoderPriv * | NewL | ( | CImageDecodeConstruct * | aConstruct, |
MImageDecoderPrivSupport * | aSupport | |||
) | [static] |
CImageDecodeConstruct * aConstruct | |
MImageDecoderPrivSupport * aSupport |
void | OpenExtraResourceFileLC | ( | RFs & | aFs, |
const TUid | aUid, | |||
RResourceFile & | aResourceFile | |||
) | const [private] |
RFs & aFs | |
const TUid aUid | |
RResourceFile & aResourceFile |
void | ReadDataL | ( | TInt | aPosition, |
TPtrC8 & | aReadBuffer, | |||
TInt | aLength | |||
) |
TInt | ReducedSize | ( | const TSize & | aOriginalSize, |
TInt | aReductionFactor, | |||
TSize & | aReducedSize | |||
) | const |
TInt | ReductionFactor | ( | const TSize & | aOriginalSize, |
const TSize & | aReducedSize | |||
) | const |
void | RegisterClientRequestStatus | ( | RThread & | aRequestThread, |
TRequestStatus * | aRequestStatus | |||
) |
RThread & aRequestThread | |
TRequestStatus * aRequestStatus |
void | RunL | ( | ) | [private, virtual] |
Handles an active object's request completion event.
A derived class must provide an implementation to handle the completed request. If appropriate, it may issue another request.
The function is called by the active scheduler when a request completion event occurs, i.e. after the active scheduler's WaitForAnyRequest() function completes.
Before calling this active object's RunL() function, the active scheduler has:
1. decided that this is the highest priority active object with a completed request
2. marked this active object's request as complete (i.e. the request is no longer outstanding)
RunL() runs under a trap harness in the active scheduler. If it leaves, then the active scheduler calls RunError() to handle the leave.
Note that once the active scheduler's Start() function has been called, all user code is run under one of the program's active object's RunL() or RunError() functions.
CActiveScheduler::Start CActiveScheduler::Error CActiveScheduler::WaitForAnyRequest TRAPD
void | SeekReadL | ( | TInt | aPosition, |
TDes8 & | aDest, | |||
TInt | aSize | |||
) | [private] |
Issues a read operation by sending the start position along with the destination descriptor and size.
When this function is used to read data from a file, it can send the start position and length in one IPC operation, and so avoid having to issue a seek first.
Because ContentAccess::CData does not support a synchronous version of this API, this function takes care of waiting for the operation to complete, and leaves with any error code. This simplifies the calling code.
TInt | SetAgentProperty | ( | TAgentProperty | aProperty, |
TInt | aValue | |||
) |
TAgentProperty aProperty | |
TInt aValue |
void | SetClippingRectL | ( | const TRect * | aClipRect | ) |
const TRect * aClipRect |
void | SetDataL | ( | RFs & | aFs, |
const TDesC8 & | aSourceData, | |||
const CImageDecoder::TOptions | aOptions = CImageDecoder::EOptionNone | |||
) |
RFs & aFs | |
const TDesC8 & aSourceData | |
const CImageDecoder::TOptions aOptions = CImageDecoder::EOptionNone |
void | SetFileL | ( | RFs & | aFs, |
const TDesC & | aSourceFilename, | |||
const CImageDecoder::TOptions | aOptions = CImageDecoder::EOptionNone | |||
) |
RFs & aFs | |
const TDesC & aSourceFilename | |
const CImageDecoder::TOptions aOptions = CImageDecoder::EOptionNone |
void | SetFileL | ( | RFile & | aFile, |
const CImageDecoder::TOptions | aOptions = CImageDecoder::EOptionNone | |||
) |
RFile & aFile | |
const CImageDecoder::TOptions aOptions = CImageDecoder::EOptionNone |
void | SetImageInfo | ( | const TFrameInfo & | aImageInfo | ) | [inline] |
const TFrameInfo & aImageInfo |
void | SetImageReadCodec | ( | CImageReadCodec * | aImageReadCodec | ) | [inline] |
CImageReadCodec * aImageReadCodec |
void | SetPosition | ( | const TInt | aPosition | ) | [inline] |
const TInt aPosition |
void | SetStartPosition | ( | TInt | aStartPosition | ) | [inline] |
TInt aStartPosition |
void | SetThumbnailData | ( | HBufC8 * | aThumbnailData | ) |
HBufC8 * aThumbnailData |
void | SetUniqueIdL | ( | const TDesC & | aUniqueId | ) |
const TDesC & aUniqueId |
TBool | ShouldAbort | ( | ) | const |
Indicate if a decode should abort early (ie. following a Cancel). Always false unless in a thread.
TInt | iCachedDataSize | [private] |
Size of data source in bytes. Only valid if data source is read-only.
TInt | iLastExtent | [private] |
Byte after last data block which was read from data source.
TBool | iUseBufferReadOptimization | [private] |
Flag to Check whether to Use Image buffer read optimization
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.