Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <MdaImageConverter.h>
Link against: mediaclientimage.lib

Class CMdaImageDescToBitmapUtility

Interface status: deprecated 7.0s - Replaced by Image Conversion library - use CImageDecoder::DataNewL()

class CMdaImageDescToBitmapUtility : public CMdaImageDataReadUtility;

Description

Implements format conversion of a descriptor-based image to a bitmap.

This class has been deprecated in 7.0s, it's functionality is now part of the Image Converter Library. For more information see CImageDecoder.

The class provides functions to create an instance of this conversion utility and to open and prepare the image data.Conversion is performed using the image conversion utility interface.

Derivation

Members

Defined in CMdaImageDescToBitmapUtility:

Inherited from CActive:

Inherited from CBase:

Inherited from CMdaImageDataReadUtility:

Inherited from CMdaImageUtility:


Construction and destruction


NewL(MMdaImageUtilObserver &,CMdaServer *)

Interface status: deprecated Inherited from: CMdaImageDescToBitmapUtility

IMPORT_C static CMdaImageDescToBitmapUtility* NewL(MMdaImageUtilObserver &aObserver, CMdaServer *aServer=0);

Description

Constructs a new instance of the descriptor-based image to bitmap conversion utility object.

The function leaves if this object cannot be created.

Parameters

MMdaImageUtilObserver &aObserver

The image utility observer interface.

CMdaServer *aServer

A pointer to a server object. The default is NULL which means that one is automatically constructed and owned by this conversion utility object. If not NULL, the client must construct, and be responsible for, the server object. This option may be more efficient if a number of conversion utility objects are to be created.

Return value

CMdaImageDescToBitmapUtility *

A pointer to the new instance of the descriptor-based image to bitmap conversion utility

[Top]


Member functions


OpenL(const TDesC8 &,TMdaClipFormat *,TMdaPackage *,TMdaPackage *)

Interface status: deprecated Inherited from: CMdaImageDescToBitmapUtility

IMPORT_C void OpenL(const TDesC8 &aDescriptor, TMdaClipFormat *aFormat=0,TMdaPackage *aCodec=0,TMdaPackage *aExtra=0);

Description

Opens the descriptor-based image.

The function is asynchronous. When the open operation is complete, successfully or otherwise, the callback function MMdaImageUtilObserver::MiuoOpenComplete(TInt) is called.Open must complete successfully before starting any conversion operation. The function can complete with KErrUnderflow, if there is insufficient information in the descriptor. Typically, this occurs when using the descriptor as a cache. In this situation, open should be performed repeatedly until the descriptor has accumulated enough information for the operation to complete with KErrNone.

Note: The optional parameters can be used to force the Media Server to interpret the descriptor-based data as being of a specific type. This is necessary for formats such as WAP wireless bitmap where the supplied descriptor does not contain a uniquely recognisable signature.

Parameters

const TDesC8 &aDescriptor

A descriptor containing the image.

TMdaClipFormat *aFormat

The data format. This is optional.

TMdaPackage *aCodec

The codec to use. This is optional.

TMdaPackage *aExtra

Additional information which the Media Server may need to recognise the data format. This is optional.