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 *)

void DoSetAdvancedSqueezeModeL ( TAdvancedSqueezeParams * aSqueezeAutoResizeParams ) [protected, pure virtual]

Parameters

TAdvancedSqueezeParams * aSqueezeAutoResizeParams

DoSetDestSizeInBytes(TUint)

void DoSetDestSizeInBytes ( TUint aMaxDestDataSize ) [protected, pure virtual]

Parameters

TUint aMaxDestDataSize

ReservedVirtual5()

IMPORT_C void ReservedVirtual5 ( ) [private, virtual]

Reserved for future-proofing

SetAdvancedSqueezeModeL(TAdvancedSqueezeParams *)

IMPORT_C void SetAdvancedSqueezeModeL ( TAdvancedSqueezeParams * aSqueezeAutoResizeParams )

This function sets the advanced squeeze mode params

Parameters

TAdvancedSqueezeParams * aSqueezeAutoResizeParams The params for advaced auto resize

SetDestSizeInBytes(TUint)

IMPORT_C void SetDestSizeInBytes ( TUint aMaxDestDataSize )

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

Parameters

TUint aMaxDestDataSize The desired max destination data size in bytes

Member Data Documentation

TAny * iPad

TAny * iPad [private]