class CImageEncoder : public CBase |
Provides access to the ICL (image conversion library) encoders.
This class provides functions that convert image data held in CFbsBitmap objects into well know formats and store the results in either files of descriptors.
Protected Member Functions | |
---|---|
CImageEncoder() | |
IMPORT_C void | CustomAsync(TRequestStatus *, TInt) |
IMPORT_C void | CustomSyncL(TInt) |
IMPORT_C CImageEncoderPlugin * | Plugin() |
Private Member Functions | |
---|---|
void | ImageTypeGetEncoderListL(RImplInfoPtrArray &, const TUid, const TUid, const TUid, const TOptions) |
void | MimeTypeGetEncoderListL(RImplInfoPtrArray &, const TDesC8 &, const TOptions) |
CImageEncodeConstruct * | NewEncodeConstructL(const CImplementationInformation &, const TOptions) |
CImageEncoder * | NewL(CImageEncodeConstruct *, TOptions) |
CImageEncoder * | NewL() |
IMPORT_C void | ReservedVirtual1() |
IMPORT_C void | ReservedVirtual2() |
IMPORT_C void | ReservedVirtual3() |
IMPORT_C void | ReservedVirtual4() |
TBool | ValidProperties() |
Public Member Enumerations | |
---|---|
enum | TOptions { EOptionNone = 0x00, EOptionAlwaysThread = 0x01, EOptionGenerateAdaptivePalette = 0x02, EPreferFastEncode = 0x04, EOptionExtStream = 0x0100, EOptionExtRotation = 0x0200, EOptionExtMirrorHorizontalAxis = 0x0400, EOptionExtMirrorVerticalAxis = 0x0800, EOptionExtUseWithSetThumbnail = 0x1000, EOptionExtReserved1 = 0x2000, EOptionExtReserved2 = 0x4000, EOptionExtReserved3 = 0x8000 } |
Private Attributes | |
---|---|
MImageEncoderRelay * | iRelay |
IMPORT_C void | Convert | ( | TRequestStatus * | aRequestStatus, |
const CFbsBitmap & | aSource, | |||
const CFrameImageData * | aFrameImageData = NULL | |||
) |
TRequestStatus * aRequestStatus | |
const CFbsBitmap & aSource | |
const CFrameImageData * aFrameImageData = NULL |
IMPORT_C void | CustomAsync | ( | TRequestStatus * | aRequestStatus, |
TInt | aParam | |||
) | [protected] |
TRequestStatus * aRequestStatus | |
TInt aParam |
IMPORT_C CImageEncoder * | DataNewL | ( | HBufC8 *& | aDestinationData, |
const TDesC8 & | aMIMEType, | |||
const TOptions | aOptions = EOptionNone | |||
) | [static] |
IMPORT_C CImageEncoder * | DataNewL | ( | HBufC8 *& | aDestinationData, |
const TOptions | aOptions = EOptionNone, | |||
const TUid | aImageType = KNullUid, | |||
const TUid | aImageSubType = KNullUid, | |||
const TUid | aEncoderUid = KNullUid | |||
) | [static] |
IMPORT_C CImageEncoder * | FileNewL | ( | RFs & | aFs, |
const TDesC & | aDestinationFilename, | |||
const TDesC8 & | aMIMEType, | |||
const TOptions | aOptions = EOptionNone | |||
) | [static] |
IMPORT_C CImageEncoder * | FileNewL | ( | RFs & | aFs, |
const TDesC & | aDestinationFilename, | |||
const TOptions | aOptions = EOptionNone, | |||
const TUid | aImageType = KNullUid, | |||
const TUid | aImageSubType = KNullUid, | |||
const TUid | aEncoderUid = KNullUid | |||
) | [static] |
IMPORT_C CImageEncoder * | FileNewL | ( | RFile & | aFile, |
const TDesC8 & | aMIMEType, | |||
const TOptions | aOptions = EOptionNone | |||
) | [static] |
IMPORT_C CImageEncoder * | FileNewL | ( | RFile & | aFile, |
const TOptions | aOptions = EOptionNone, | |||
const TUid | aImageType = KNullUid, | |||
const TUid | aImageSubType = KNullUid, | |||
const TUid | aEncoderUid = KNullUid | |||
) | [static] |
IMPORT_C void | GetFileTypesL | ( | RFileExtensionMIMETypeArray & | aFileExtensionArray | ) | [static] |
RFileExtensionMIMETypeArray & aFileExtensionArray |
IMPORT_C void | GetImageSubTypesL | ( | const TUid | aImageType, |
RImageTypeDescriptionArray & | aSubTypeArray | |||
) | [static] |
const TUid aImageType | |
RImageTypeDescriptionArray & aSubTypeArray |
IMPORT_C void | GetImageTypesL | ( | RImageTypeDescriptionArray & | aImageTypeArray | ) | [static] |
RImageTypeDescriptionArray & aImageTypeArray |
IMPORT_C void | GetInterfaceImplementationsL | ( | const RUidDataArray & | aRequiredUids, |
RUidDataArray & | aImplArray | |||
) | [static] |
const RUidDataArray & aRequiredUids | |
RUidDataArray & aImplArray |
IMPORT_C void | GetInterfaceImplementationsL | ( | const TUid * | aRequiredUids, |
const TInt | aLength, | |||
RUidDataArray & | aImplArray | |||
) | [static] |
const TUid * aRequiredUids | |
const TInt aLength | |
RUidDataArray & aImplArray |
IMPORT_C void | GetPluginPropertiesL | ( | const TUid | aImplementationUid, |
RUidDataArray & | aPropertiesArray | |||
) | [static] |
const TUid aImplementationUid | |
RUidDataArray & aPropertiesArray |
void | ImageTypeGetEncoderListL | ( | RImplInfoPtrArray & | aEncoderList, |
const TUid | aImageType, | |||
const TUid | aImageSubType, | |||
const TUid | aEncoderUid, | |||
const TOptions | aOptions = EOptionNone | |||
) | [private, static] |
RImplInfoPtrArray & aEncoderList | |
const TUid aImageType | |
const TUid aImageSubType | |
const TUid aEncoderUid | |
const TOptions aOptions = EOptionNone |
void | MimeTypeGetEncoderListL | ( | RImplInfoPtrArray & | aEncoderList, |
const TDesC8 & | aMIMEType, | |||
const TOptions | aOptions = EOptionNone | |||
) | [private, static] |
RImplInfoPtrArray & aEncoderList | |
const TDesC8 & aMIMEType | |
const TOptions aOptions = EOptionNone |
CImageEncodeConstruct * | NewEncodeConstructL | ( | const CImplementationInformation & | aEncoderInfo, |
const TOptions | aOptions = EOptionNone | |||
) | [private, static] |
const CImplementationInformation & aEncoderInfo | |
const TOptions aOptions = EOptionNone |
CImageEncoder * | NewL | ( | CImageEncodeConstruct * | aConstruct, |
TOptions | aOptions | |||
) | [private, static] |
CImageEncodeConstruct * aConstruct | |
TOptions aOptions |
IMPORT_C void | Prepare | ( | TRequestStatus * | aRequestStatus | ) |
TRequestStatus * aRequestStatus |
IMPORT_C TInt | SetEncoderThreadPriority | ( | TThreadPriority | aPriority | ) |
TThreadPriority aPriority |
IMPORT_C void | SetThumbnail | ( | TBool | aDoGenerateThumbnail | ) |
TBool aDoGenerateThumbnail |
Flags to control how the image is encoded. These can be combined using an OR operation.
EOptionNone = 0x00 |
No flag set |
EOptionAlwaysThread = 0x01 |
Perform the encoding in a separate thread |
EOptionGenerateAdaptivePalette = 0x02 |
If the codec supports it, generate a palette based on the colors present in the image data, rather than using the default palette |
EPreferFastEncode = 0x04 |
Use the highest possible image encoding speed; this may result in lower image quality. This flag is more applicable to formats which use "lossy" compression algorithms, such as JPEG. Decoders that do not support fast encoding will ignore it. |
EOptionExtStream = 0x0100 |
Codec must support block streaming extension. |
EOptionExtRotation = 0x0200 |
Codec must support rotation through the operation extension. |
EOptionExtMirrorHorizontalAxis = 0x0400 |
Codec must support horizontal mirror through the operation extension. |
EOptionExtMirrorVerticalAxis = 0x0800 |
Codec must support vertical mirror through the operation extension. |
EOptionExtUseWithSetThumbnail = 0x1000 |
Codec must support setting thumbnail when using the other extensions (e.g. thumbnail rotation) |
EOptionExtReserved1 = 0x2000 |
Reserved. |
EOptionExtReserved2 = 0x4000 |
Reserved. |
EOptionExtReserved3 = 0x8000 |
Reserved. |