CSqueezeTransformExtension Class Reference
#include
"squeezetransformextension.h"
Link against: imagetransform.lib
class CSqueezeTransformExtension : public CImageTransformPluginExtension |
Inherits from
- CSqueezeTransformExtension
Detailed Description
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.
Member Function Documentation
DoSetAdvancedSqueezeModeL ( TAdvancedSqueezeParams * )
DoSetDestSizeInBytes ( TUint )
void | DoSetDestSizeInBytes | ( | TUint | aMaxDestDataSize | ) | [protected, pure virtual] |
SetAdvancedSqueezeModeL ( TAdvancedSqueezeParams * )
This function sets the advanced squeeze mode params
Parameter | Description | 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.
Parameter | Description | aMaxDestDataSize | The desired max destination data size in bytes |