mmplugins/imagingplugins/codecs/WBMPCodec/WBMPConvert.h
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef WBMPCONVERT_H
       
    17 #define WBMPCONVERT_H
       
    18 
       
    19 #include "icl/ImagePlugin.h"
       
    20 #include "WBMPCodec.h"
       
    21 
       
    22 
       
    23 // Decoder.
       
    24 class CWbmpReadCodec;
       
    25 class CWbmpDecoder : public CImageDecoderPlugin
       
    26 	{
       
    27 public:
       
    28  	static CWbmpDecoder* NewL();
       
    29 	virtual ~CWbmpDecoder();
       
    30 
       
    31 	virtual void ImageType(TInt aFrameNumber, TUid& aImageType, TUid& aImageSubType) const;
       
    32 	CFrameInfoStrings* FrameInfoStringsL(RFs& aFs, TInt aFrameNumber);
       
    33 
       
    34 protected:
       
    35 	// From CImageDecoder
       
    36 	void ScanDataL();
       
    37 
       
    38 private:
       
    39 	CWbmpDecoder();
       
    40 
       
    41 	static TInt ReadContinuedValueL(const TUint8*& aPtr, const TUint8* aEndPtr);
       
    42 
       
    43 	// From CImageDecoderPlugin
       
    44 	// Called by ScanDataL.
       
    45 	// Opens file, scans header and validates format.
       
    46 	void ReadFormatL();
       
    47 	
       
    48 private:
       
    49 	TSize iSize;
       
    50 	};
       
    51 
       
    52 #endif // WBMPCONVERT_H
       
    53