CMdaImageFileToBitmapUtility Class Reference

#include <mdaimageconverter.h>

Link against: mediaclientimage.lib

class CMdaImageFileToBitmapUtility : public CMdaImageDataReadUtility
Public Member Functions
IMPORT_C CMdaImageFileToBitmapUtility *NewL(MMdaImageUtilObserver &, CMdaServer *)
IMPORT_C voidOpenL(const TDesC &, TMdaClipFormat *, TMdaPackage *, TMdaPackage *)
Inherited Attributes
CActive::iStatus
CMdaImageUtility::iProperties
Inherited Enumerations
CActive:TPriority
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::RunError(TInt)
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
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()
CMdaImageDataReadUtility::CancelConvertL()
CMdaImageDataReadUtility::ConvertL(CFbsBitmap &,CFbsBitmap &,TInt)
CMdaImageDataReadUtility::ConvertL(CFbsBitmap &,TInt)
CMdaImageDataReadUtility::DoCancel()
CMdaImageDataReadUtility::DoClose()
CMdaImageDataReadUtility::DoOpenL()
CMdaImageDataReadUtility::FrameCommentL(TInt)
CMdaImageDataReadUtility::ImageReadUtil_Reserved2()
CMdaImageDataReadUtility::ImageReadUtil_Reserved3()
CMdaImageDataReadUtility::ImageReadUtil_Reserved4()
CMdaImageDataReadUtility::RunL()
CMdaImageDataReadUtility::~CMdaImageDataReadUtility()
CMdaImageUtility::CMdaImageUtility()
CMdaImageUtility::Close()
CMdaImageUtility::FrameCount()const
CMdaImageUtility::FrameInfo(TInt,TFrameInfo &)const
CMdaImageUtility::ImageUtil_Reserved1()
CMdaImageUtility::ImageUtil_Reserved2()
CMdaImageUtility::ImageUtil_Reserved3()
CMdaImageUtility::ImageUtil_Reserved4()
CMdaImageUtility::MoscoStateChangeEvent(CBase *,TInt,TInt,TInt)
CMdaImageUtility::SelfComplete(TInt)
CMdaImageUtility::~CMdaImageUtility()

Detailed Description

Deprecated7.0s - Replaced by Image Conversion library - use CImageDecoder::FileNewL()

Implements format conversion of a file 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 an existing image file. Conversion is performed using the image conversion utility interface.

Since
5.0

See also: CImageDecoder

Member Function Documentation

NewL ( MMdaImageUtilObserver &, CMdaServer * )

IMPORT_C CMdaImageFileToBitmapUtility *NewL(MMdaImageUtilObserver &aObserver,
CMdaServer *aServer = 0
)[static]

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

The function leaves if this object cannot be created.

Parameters
aObserverThe image utility observer interface
aServerA 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
A pointer to the new instance of the file based image to bitmap conversion utility.

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

IMPORT_C voidOpenL(const TDesC &aFileName,
TMdaClipFormat *aFormat = 0,
TMdaPackage *aCodec = 0,
TMdaPackage *aExtra = 0
)

Opens the existing file based image.

The function is asynchronous. When the operation is complete, successfully or otherwise, the callback function MMdaImageUtilObserver::MiuoOpenComplete() is called.Open must complete successfully before starting any conversion operation. The function can complete with KErrUnderflow, if there is insufficient information in the file. Typically, this occurs when using the file as a cache. In this situation, open should be performed repeatedly until the file has accumulated enough information for the operation to complete with KErrNone.NotesThe optional parameters can be used to force the Media Server to interpret the file as being of a specific type. This is necessary for formats such as WAP wireless bitmap where the supplied file does not contain a uniquely recognisable signature.

Parameters
aFileNameThe full path name of the file.
aFormatThe data format. This is optional.
aCodecThe codec to use. This is optional.
aExtraAny additional information which the Media Server may need to recognise the data format. This is optional.