CSqueezeTransformExtension Class Reference

class CSqueezeTransformExtension : public CImageTransformPluginExtension

Squeeze Extension to the ImageTransform plugin

The class provides the methods to set the squeeze parameters and is intended to be implemented by the plugins supporting the squeezing of the images. The client can set the desired max size (in bytes) of the squeezed image and it can also enable auto resizing of the image by setting the advanced squeeze parameters. The plugin supporting this extension must use the opaque_data v2 format in RSS file and also the squeeze flag must be set in the opaque_data. The client must retrieve this extension implementation from the plugin using its extension UID.

In the case where the client's desired size cannot be met the operation will squeeze to the smallest file possible and the transform operation will leave with KErrGeneral. The output file must be examined by the client to determine its suitability. The client must clean up if the output is not acceptable.

Inherits from

Member Functions Documentation

DoSetAdvancedSqueezeModeL(TAdvancedSqueezeParams *)

voidDoSetAdvancedSqueezeModeL(TAdvancedSqueezeParams *aSqueezeAutoResizeParams)[protected, pure virtual]

Parameters

TAdvancedSqueezeParams * aSqueezeAutoResizeParams

DoSetDestSizeInBytes(TUint)

voidDoSetDestSizeInBytes(TUintaMaxDestDataSize)[protected, pure virtual]

Parameters

TUint aMaxDestDataSize

ReservedVirtual5()

IMPORT_C voidReservedVirtual5()[private, virtual]

Reserved for future-proofing

SetAdvancedSqueezeModeL(TAdvancedSqueezeParams *)

IMPORT_C voidSetAdvancedSqueezeModeL(TAdvancedSqueezeParams *aSqueezeAutoResizeParams)

This function sets the advanced squeeze mode params

Parameters

TAdvancedSqueezeParams * aSqueezeAutoResizeParamsThe params for advaced auto resize

SetDestSizeInBytes(TUint)

IMPORT_C voidSetDestSizeInBytes(TUintaMaxDestDataSize)

This function sets the desired maximum destination data size in bytes.

Parameters

TUint aMaxDestDataSizeThe desired max destination data size in bytes

Member Data Documentation

TAny * iPad

TAny *iPad[private]