diff -r 000000000000 -r 5752a19fdefe imaging/imagingunittest/testcodec/inc/BadVerTestCodec.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/imaging/imagingunittest/testcodec/inc/BadVerTestCodec.h Wed Aug 25 12:29:52 2010 +0300 @@ -0,0 +1,60 @@ +// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __BADVERTESTCODEC_H__ +#define __BADVERTESTCODEC_H__ + +#include +#include + +#include "BadVerTestConvert.h" + +class CBadVerTestDecoder; + +// BadVerTest Read codec. +class CBadVerTestReadCodec : public CImageReadCodec + { +public: + // From CImageReadCodec + virtual void InitFrameL(TFrameInfo& aFrameInfo, CFrameImageData& aFrameImageData, TBool aDisableErrorDiffusion, CFbsBitmap& aDestination, CFbsBitmap* aDestinationMask); + + CBadVerTestReadCodec(CBadVerTestDecoder &aDecoder); + virtual ~CBadVerTestReadCodec(); + void ConstructL () { CImageReadCodec::ConstructL(); } // make public, since we don't have NewL +protected: + // from CImageReadCodec + virtual TFrameState ProcessFrameL(TBufPtr8& aSrc); + virtual void Complete(); + +protected: + CBadVerTestDecoder *const iDecoder; + }; + +// BadVerTest Write codec +class CBadVerTestWriteCodec : public CImageWriteCodec + { +public: + CBadVerTestWriteCodec(); + virtual ~CBadVerTestWriteCodec(); + +protected: + //From CImageWriteCodec + virtual void InitFrameL(TBufPtr8& aDst, const CFbsBitmap& aSource); + virtual TFrameState ProcessFrameL(TBufPtr8& aDst); + + }; + +#endif // __BADVERTESTCODEC_H__ +