commonutilities/imagedecoderwrapper/inc/glximagedecoder.h
changeset 50 a0f57508af73
parent 42 5e1df1b52eb3
equal deleted inserted replaced
45:863223ea6961 50:a0f57508af73
    24 
    24 
    25 class GlxImageDecoderWrapper;
    25 class GlxImageDecoderWrapper;
    26 class CImageDecoder;
    26 class CImageDecoder;
    27 class CFbsBitmap;
    27 class CFbsBitmap;
    28 const TReal KTargetSize = 1000000;
    28 const TReal KTargetSize = 1000000;
       
    29 //if any image is converted to Pixmap with an dimension > 2048 
       
    30 //the conversion will fail
       
    31 const TInt KMaxDimensionLimit = 2000;
    29 class CGlxImageDecoder : public CActive
    32 class CGlxImageDecoder : public CActive
    30 {
    33 {
    31 public:
    34 public:
    32 	static CGlxImageDecoder* NewL(GlxImageDecoderWrapper* decoderWrapper);
    35 	static CGlxImageDecoder* NewL(GlxImageDecoderWrapper* decoderWrapper);
    33 	~CGlxImageDecoder();
    36 	~CGlxImageDecoder();
    48 	/*
    51 	/*
    49      *Second-phase constuction 
    52      *Second-phase constuction 
    50      * */
    53      * */
    51     void ConstructL(GlxImageDecoderWrapper* decoderWrapper);
    54     void ConstructL(GlxImageDecoderWrapper* decoderWrapper);
    52 
    55 
       
    56     /*
       
    57      * Checks if the mimetype needs recalculations
       
    58      * @returnType false if jpeg
       
    59      * true otheriwise 
       
    60      */
       
    61     TBool DoesMimeTypeNeedsRecalculateL(QString aSourceFileName);
       
    62     
       
    63     /*
       
    64      * Does the recalculation and returns back the correct size
       
    65      * @returntype Size of the decoded bitmap
       
    66      */
       
    67     TSize ReCalculateSizeL(QString aSourceFileName, TSize aDestSize);
       
    68     
    53 private:
    69 private:
    54 	GlxImageDecoderWrapper* iDecoderWrapper;
    70 	GlxImageDecoderWrapper* iDecoderWrapper;
    55 	/*Specifies the Decoder */
    71 	/*Specifies the Decoder */
    56     CImageDecoder*          iImageDecoder; // decoder from ICL API
    72     CImageDecoder*          iImageDecoder; // decoder from ICL API
    57 	/*Contains the Bitmap generated*/
    73 	/*Contains the Bitmap generated*/