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

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

    DoSetDestSizeInBytes ( TUint )

    voidDoSetDestSizeInBytes(TUintaMaxDestDataSize)[protected, pure virtual]

    SetAdvancedSqueezeModeL ( TAdvancedSqueezeParams * )

    IMPORT_C voidSetAdvancedSqueezeModeL(TAdvancedSqueezeParams *aSqueezeAutoResizeParams)

    This function sets the advanced squeeze mode params

    ParameterDescription
    aSqueezeAutoResizeParamsThe params for advaced auto resize

    SetDestSizeInBytes ( TUint )

    IMPORT_C voidSetDestSizeInBytes(TUintaMaxDestDataSize)

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

    ParameterDescription
    aMaxDestDataSizeThe desired max destination data size in bytes