#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 &) |
Interface to be used by read codec implementations in conjunction with framework extension.
| TInt | GetReducedSize | ( | const TSize & | aOriginalSize, |
| TInt | aScalingCoeff, | |||
| TSize & | aReducedSize | |||
| ) | const [pure virtual] | |||
Obtains the reduced size of the decoded bitmap based on the input parameters and updates aReducedSize with this value.
| Parameter | Description |
|---|---|
| aOriginalSize | A reference to the original size of an image. |
| aScalingCoeff | The scaling coefficient to be applied. |
| aReducedSize | A reference to the new size of an image. |
Returns: KErrNone If the function call was successful. A range of system wide error values.
Obtains the scaling coefficient
| Parameter | Description |
|---|---|
| aOriginalSize | A reference to the original size of an image. |
| aDesiredSize | A reference to the desired size of an image. |
Returns: The scaling coefficient, for example: Original size = 1 or -1, Half original size = -2, Quarter original size = -3 etc.