imagingandcamerafws/imagingunittest/testcodec/inc/BadVerTestCodec.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 __BADVERTESTCODEC_H__
       
    17 #define __BADVERTESTCODEC_H__
       
    18 
       
    19 #include <bitdev.h>
       
    20 #include <icl/imagecodec.h>
       
    21 
       
    22 #include "BadVerTestConvert.h"
       
    23 
       
    24 class CBadVerTestDecoder;
       
    25 
       
    26 // BadVerTest Read codec.
       
    27 class CBadVerTestReadCodec : public CImageReadCodec
       
    28 	{
       
    29 public:
       
    30 	// From CImageReadCodec
       
    31 	virtual void InitFrameL(TFrameInfo& aFrameInfo, CFrameImageData& aFrameImageData, TBool aDisableErrorDiffusion, CFbsBitmap& aDestination, CFbsBitmap* aDestinationMask);
       
    32 
       
    33 	CBadVerTestReadCodec(CBadVerTestDecoder &aDecoder);
       
    34 	virtual ~CBadVerTestReadCodec();
       
    35 	void ConstructL () { CImageReadCodec::ConstructL(); } // make public, since we don't have NewL
       
    36 protected:
       
    37 	// from CImageReadCodec
       
    38 	virtual TFrameState ProcessFrameL(TBufPtr8& aSrc);
       
    39 	virtual void Complete();
       
    40 
       
    41 protected:
       
    42 	CBadVerTestDecoder *const iDecoder;
       
    43 	};
       
    44 
       
    45 // BadVerTest Write codec
       
    46 class CBadVerTestWriteCodec : public CImageWriteCodec
       
    47 	{
       
    48 public:
       
    49 	CBadVerTestWriteCodec();
       
    50 	virtual ~CBadVerTestWriteCodec();
       
    51 
       
    52 protected:
       
    53 	//From CImageWriteCodec
       
    54 	virtual void InitFrameL(TBufPtr8& aDst, const CFbsBitmap& aSource);
       
    55 	virtual TFrameState ProcessFrameL(TBufPtr8& aDst);
       
    56 
       
    57 	};
       
    58 
       
    59 #endif // __BADVERTESTCODEC_H__
       
    60