class CImageDecoderPlugin : public CBase |
The PluginAPI for Image Converter Library decoder plugins.
Intended for use by plugin writers only.
Public Member Functions | |
---|---|
~CImageDecoderPlugin() | |
IMPORT_C HBufC * | FrameCommentL(TInt, TInt) |
IMPORT_C TInt | GetDestinationSize(TSize &, TInt) |
IMPORT_C void | GetExtensionL(TUid, MImageConvExtension *&) |
IMPORT_C HBufC * | ImageCommentL(TInt) |
void | ImageType(TInt, TUid &, TUid &) |
IMPORT_C TInt | NumberOfFrameComments(TInt) |
IMPORT_C TInt | NumberOfImageComments() |
IMPORT_C void | SetClippingRectL(const TRect *) |
Private Member Functions | |
---|---|
IMPORT_C void | EnableMaskGeneration() |
IMPORT_C void | NotifyImageTypeChangeL(TInt) |
IMPORT_C void | ReservedVirtual1() |
TBool | ValidProperties() |
Private Attributes | |
---|---|
CImageDecoderPriv * | iProperties |
IMPORT_C TInt | AppendImageData | ( | const TImageDataBlock * | aEntry | ) | [protected] |
const TImageDataBlock * aEntry |
IMPORT_C TInt | AppendImageDataBuffer | ( | const HBufC8 * | aImageBuffer | ) | [protected] |
const HBufC8 * aImageBuffer |
IMPORT_C TInt | FrameBlockSize | ( | TInt | aFrameNumber | ) | const [protected, virtual] |
TInt aFrameNumber |
IMPORT_C HBufC * | FrameCommentL | ( | TInt | aFrameNumber, |
TInt | aCommentNumber | |||
) | const [virtual] |
IMPORT_C const CFrameImageData & | FrameData | ( | TInt | aFrameNumber = 0 | ) | const [protected] |
TInt aFrameNumber = 0 |
IMPORT_C TInt | FrameHeaderBlockSize | ( | TInt | aFrameNumber | ) | const [protected, virtual] |
TInt aFrameNumber |
IMPORT_C const TFrameInfo & | FrameInfo | ( | TInt | aFrameNumber = 0 | ) | const [protected] |
TInt aFrameNumber = 0 |
IMPORT_C CFrameInfoStrings * | FrameInfoStringsL | ( | RFs & | aFs, |
TInt | aFrameNumber = 0 | |||
) | [protected, pure virtual] |
Returns the codec specific frame information stored in resource files.
This is a virtual function that each individual plugin must implement.
A pointer to a newly allocated CFrameInfoStrings object. Ownership is transferred to the caller.
IMPORT_C TInt | GetDestinationSize | ( | TSize & | aSize, |
TInt | aFrameNumber = 0 | |||
) | [virtual] |
Called by framework on plugin to get the size of decoded image.
Get the size of the decoded image for the given frame. The calculation will account for any clipping rectangle set, scaling applied through the TImageConvScaler extension and any operation applied through TImageConvOperation. If TImageConvScaler::SetScalingL(.. has been called then the size of the bitmap passed to CImageDecoder::Convert must match the size returned from this function.
KErrArgument if an error in calculation is detected e.g. if clipping rectangle is outside of the overall frame boundary.
Other system wide errors.
IMPORT_C void | GetExtensionL | ( | TUid | aExtUid, |
MImageConvExtension *& | aExtPtr | |||
) | [virtual] |
Called by the framework to obtain a pointer to a codec implemented extension.
icl_uids.hrh .
TUid aExtUid | Extension UID normally prefixed KUidImageConv. |
MImageConvExtension *& aExtPtr | Returns a ptr to the extension implemented by the codec plugin. |
IMPORT_C void | HandleCustomSyncL | ( | TInt | aParam | ) | [protected, virtual] |
TInt aParam |
IMPORT_C void | HandleProcessFrameResult | ( | TInt | aErrCode, |
TFrameState | aCodecState | |||
) | [protected] |
TInt aErrCode | |
TFrameState aCodecState |
IMPORT_C HBufC * | ImageCommentL | ( | TInt | aCommentNumber | ) | const [virtual] |
TInt aCommentNumber |
IMPORT_C const TImageDataBlock * | ImageData | ( | TInt | aIndex | ) | const [protected] |
TInt aIndex |
void | ImageType | ( | TInt | aFrameNumber, |
TUid & | aImageType, | |||
TUid & | aImageSubType | |||
) | const [pure virtual] |
Returns the image type and sub-type for a given frame of the image that has just been opened.
This is a virtual function that each individual plugin must implement.
TInt aFrameNumber | The frame index for type and sub-type information should be returned. |
TUid & aImageType | On return contains the image type UID for the specified frame. |
TUid & aImageSubType | On return contains the image sub-type UID for the specified frame. If the sub-type does not exist KNullUid is returned. |
IMPORT_C void | InitCustomAsyncL | ( | TInt | aParam | ) | [protected, virtual] |
TInt aParam |
IMPORT_C TInt | InsertImageData | ( | const TImageDataBlock * | aEntry, |
TInt | aPos | |||
) | [protected] |
const TImageDataBlock * aEntry | |
TInt aPos |
IMPORT_C void | NotifyImageTypeChangeL | ( | TInt | aImageType | ) | [private, virtual] |
TInt aImageType |
IMPORT_C TInt | NumberOfFrameComments | ( | TInt | aFrameNumber | ) | const [virtual] |
TInt aFrameNumber |
IMPORT_C void | OpenExtraResourceFileLC | ( | RFs & | aFs, |
const TUid | aUid, | |||
RResourceFile & | aResourceFile | |||
) | const [protected] |
IMPORT_C void | ReadDataL | ( | TInt | aPosition, |
TPtrC8 & | aReadBuffer, | |||
TInt | aLength | |||
) | [protected] |
IMPORT_C void | RequestInitL | ( | TInt | aFrameNumber | ) | [protected] |
TInt aFrameNumber |
void | ScanDataL | ( | ) | [protected, pure virtual] |
Invokes the ReadFrameHeadersL() method of the supplied plugin.
The plugin's version of ReadFrameHeadersL() should read the image header information, create the required codec and read the frame headers.
This is a virtual function that each individual plugin must implement.
IMPORT_C void | SetClippingRectL | ( | const TRect * | aClipRect | ) | [virtual] |
Called by the framework on the plugin to apply a clipping rectangle to the image.
Sets the area of interest of the image to be decoded.
leave
KErrNotSupported if clipping is not supported by the codec plugin.
leave
Other system-wide error codes.
const TRect * aClipRect | A pointer to a TRect that specifies the location and size of the region to be decoded. This rectangle must have positive width and height values as per TRect::IsNormalized() and TRect::Normalize(). Passing in a NULL value will clear the clipping rectangle. Note that a clipping rectangle may not be valid for all frames of an image. |
IMPORT_C void | SetDataLength | ( | TInt | aDataLength | ) | [protected] |
TInt aDataLength |
IMPORT_C void | SetImageInfo | ( | const TFrameInfo & | aImageInfo | ) | [protected] |
const TFrameInfo & aImageInfo |
IMPORT_C void | SetImageReadCodec | ( | CImageReadCodec * | aImageReadCodec | ) | [protected] |
CImageReadCodec * aImageReadCodec |
IMPORT_C void | SetPosition | ( | const TInt | aPosition | ) | [protected] |
const TInt aPosition |
IMPORT_C void | SetStartPosition | ( | TInt | aDataLength | ) | [protected] |
TInt aDataLength |
IMPORT_C void | SetThumbnailData | ( | HBufC8 * | aThumbnailData | ) | [protected] |
HBufC8 * aThumbnailData |