MReadCodecExtension Class Reference

#include <icl/imagecodec.h>

class MReadCodecExtension
Public Member Functions
pure virtual TInt GetReducedSize(const TSize &, TInt, TSize &)
pure virtual TInt ScalingCoefficient(const TSize &, const TSize &)

Detailed Description

Interface to be used by read codec implementations in conjunction with framework extension.

Member Function Documentation

GetReducedSize ( const TSize &, TInt, TSize & )

TInt GetReducedSize(const TSize &aOriginalSize,
TIntaScalingCoeff,
TSize &aReducedSize
)const [pure virtual]

Obtains the reduced size of the decoded bitmap based on the input parameters and updates aReducedSize with this value.

Parameters
aOriginalSizeA reference to the original size of an image.
aScalingCoeffThe scaling coefficient to be applied.
aReducedSizeA reference to the new size of an image.
Return Value
KErrNone If the function call was successful. A range of system wide error values.

ScalingCoefficient ( const TSize &, const TSize & )

TInt ScalingCoefficient(const TSize &aOriginalSize,
const TSize &aDesiredSize
)const [pure virtual]

Obtains the scaling coefficient

Parameters
aOriginalSizeA reference to the original size of an image.
aDesiredSizeA reference to the desired size of an image.
Return Value
The scaling coefficient, for example: Original size = 1 or -1, Half original size = -2, Quarter original size = -3 etc.