diff -r f291796e213d -r fb37077c270f commonutilities/imagedecoderwrapper/inc/glximagedecoder.h --- a/commonutilities/imagedecoderwrapper/inc/glximagedecoder.h Tue Jul 06 14:16:16 2010 +0300 +++ b/commonutilities/imagedecoderwrapper/inc/glximagedecoder.h Wed Aug 18 09:48:53 2010 +0300 @@ -26,6 +26,9 @@ class CImageDecoder; class CFbsBitmap; const TReal KTargetSize = 1000000; +//if any image is converted to Pixmap with an dimension > 2048 +//the conversion will fail +const TInt KMaxDimensionLimit = 2000; class CGlxImageDecoder : public CActive { public: @@ -50,6 +53,19 @@ * */ void ConstructL(GlxImageDecoderWrapper* decoderWrapper); + /* + * Checks if the mimetype needs recalculations + * @returnType false if jpeg + * true otheriwise + */ + TBool DoesMimeTypeNeedsRecalculateL(QString aSourceFileName); + + /* + * Does the recalculation and returns back the correct size + * @returntype Size of the decoded bitmap + */ + TSize ReCalculateSizeL(QString aSourceFileName, TSize aDestSize); + private: GlxImageDecoderWrapper* iDecoderWrapper; /*Specifies the Decoder */