CMdaImageBitmapToFileUtility Class Reference

#include <mdaimageconverter.h>

Link against: mediaclientimage.lib

class CMdaImageBitmapToFileUtility : public CMdaImageDataWriteUtility
Public Member Functions
IMPORT_C voidCreateL(const TDesC &, TMdaClipFormat *, TMdaPackage *, TMdaPackage *)
IMPORT_C CMdaImageBitmapToFileUtility *NewL(MMdaImageUtilObserver &, CMdaServer *)
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()
CMdaImageDataWriteUtility::CancelConvertL()
CMdaImageDataWriteUtility::ConvertL(CFbsBitmap &,CFbsBitmap &,TInt)
CMdaImageDataWriteUtility::ConvertL(CFbsBitmap &,TInt)
CMdaImageDataWriteUtility::ConvertL(CFbsBitmap &,const TRect &,TInt)
CMdaImageDataWriteUtility::DoCancel()
CMdaImageDataWriteUtility::DoClose()
CMdaImageDataWriteUtility::DoCreateL(TBool)
CMdaImageDataWriteUtility::Encoder()const
CMdaImageDataWriteUtility::ImageWriteUtil_Reserved1()
CMdaImageDataWriteUtility::ImageWriteUtil_Reserved2()
CMdaImageDataWriteUtility::ImageWriteUtil_Reserved3()
CMdaImageDataWriteUtility::RunL()
CMdaImageDataWriteUtility::~CMdaImageDataWriteUtility()
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

Deprecated

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

Replaced by Image Conversion library - use CImageEncoder::FileNewL()

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

Since
5.0

See also: CImageEncoder::FileNewL()

Member Function Documentation

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

IMPORT_C voidCreateL(const TDesC &aFileName,
TMdaClipFormat *aFormat,
TMdaPackage *aCodec,
TMdaPackage *aExtra
)

Creates a new file to receive the file-based image.

The function is asynchronous. When the operation is complete, successfully or otherwise, the callback function MMdaImageUtilObserver::MiuoCreateComplete() is called. The file must be have been created before any conversion operation can start. Note, however, that the file will expand to accommodate the data i.e. image data is not truncated if the original size of the file is too small.

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

NewL ( MMdaImageUtilObserver &, CMdaServer * )

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

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

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 bitmap to file-based image conversion utility.