mmplugins/imagingplugins/codecs/OTACodec/OTACodec.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 __OTACODEC_H__
       
    17 #define __OTACODEC_H__
       
    18 
       
    19 #include <bitdev.h>
       
    20 #include <icl/imageprocessor.h>
       
    21 #include <icl/imagecodec.h>
       
    22 
       
    23 #include "OTAConvert.h"
       
    24 
       
    25 
       
    26 // OTA Read codec.
       
    27 class COtaReadCodec : public CImageProcessorReadCodec
       
    28 	{
       
    29 public:
       
    30 	// From CImageReadCodec
       
    31 	virtual void InitFrameL(TFrameInfo& aFrameInfo, CFrameImageData& aFrameImageData, TBool aDisableErrorDiffusion, CFbsBitmap& aDestination, CFbsBitmap* aDestinationMask);
       
    32 
       
    33 	virtual ~COtaReadCodec();
       
    34 
       
    35 	static COtaReadCodec* NewL(const TSize& aSize);
       
    36 
       
    37 protected:
       
    38 	virtual TFrameState ProcessFrameL(TBufPtr8& aSrc);
       
    39 	virtual void DoProcessL();
       
    40 
       
    41 private:
       
    42 	COtaReadCodec(const TSize& aSize);
       
    43 
       
    44 protected:
       
    45 	TSize iOriginalSize;
       
    46 	TSize iFrameSize;
       
    47 	const TUint8* iDataPtr; // Not owned
       
    48 	const TUint8* iDataPtrLimit; // Not owned
       
    49 	TInt iBytesExpected;
       
    50 	TInt iBytesProcessed;
       
    51 	};
       
    52 
       
    53 #endif // __OTACODEC_H__
       
    54