CMdaImageBitmapToFileUtility Class Reference

class CMdaImageBitmapToFileUtility : public CMdaImageDataWriteUtility

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.

Public Member Functions
IMPORT_C void CreateL (const TDesC &, TMdaClipFormat *, TMdaPackage *, TMdaPackage *)
IMPORT_C CMdaImageBitmapToFileUtility * NewL ( MMdaImageUtilObserver &, CMdaServer *)
Private Member Functions
CMdaImageBitmapToFileUtilityPriv * Properties ()
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()
Inherited Enumerations
CActive:TPriority
Inherited Attributes
CActive::iStatus
CMdaImageUtility::iProperties

Member Functions Documentation

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

IMPORT_C void CreateL ( 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

const TDesC & aFileName The full path name of the file to be created.
TMdaClipFormat * aFormat The data format.
TMdaPackage * aCodec The codec to use.
TMdaPackage * aExtra Any additional information which the Media Server may need to recognise the data format.

NewL(MMdaImageUtilObserver &, CMdaServer *)

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

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

The function leaves if this object cannot be created.

Parameters

MMdaImageUtilObserver & aObserver The image utility observer interface
CMdaServer * aServer = NULL 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.

Properties()

CMdaImageBitmapToFileUtilityPriv * Properties ( ) const [private, inline]