diff -r 000000000000 -r 5752a19fdefe imaging/imagingunittest/testcodec/src/TestExifDerived.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/imaging/imagingunittest/testcodec/src/TestExifDerived.cpp Wed Aug 25 12:29:52 2010 +0300 @@ -0,0 +1,86 @@ +// Copyright (c) 2005-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: +// + +#include +#include "TestExifDerived.h" + + +/*static*/ +CTestExifDerivedDecoder* CTestExifDerivedDecoder::NewL() + { + CTestExifDerivedDecoder* self=new (ELeave) CTestExifDerivedDecoder(); + CleanupStack::PushL(self); + self->CJPEGExifDecoder::ConstructL(); + CleanupStack::Pop(self); + return self; + } + + + +/*static*/ +CTestExifDerivedEncoder* CTestExifDerivedEncoder::NewL() + { + CTestExifDerivedEncoder* self=new (ELeave) CTestExifDerivedEncoder(); + CleanupStack::PushL(self); + self->CJPEGExifEncoder::ConstructL(); + CleanupStack::Pop(self); + return self; + } + +/*static*/ +CDummyExifDecoder* CDummyExifDecoder::NewL() + { + return new (ELeave) CDummyExifDecoder(); + } + +MExifMetadata* CDummyExifDecoder::ExifMetadata() + { + return reinterpret_cast(1); + } + +void CDummyExifDecoder::ImageType(TInt /*aFrameNumber*/, TUid& /*aImageType*/, TUid& /*aImageSubType*/) const + { + } + +void CDummyExifDecoder::ScanDataL() + { + } + +CFrameInfoStrings* CDummyExifDecoder::FrameInfoStringsL(RFs& /*aFs*/, TInt /*aFrameNumber*/) + { + return NULL; + } + +/*static*/ +CDummyExifEncoder* CDummyExifEncoder::NewL() + { + return new (ELeave) CDummyExifEncoder(); + } + +MExifMetadata* CDummyExifEncoder::ExifMetadata() + { + return reinterpret_cast(1); + } + +void CDummyExifEncoder::PrepareEncoderL(const CFrameImageData* /*aFrameImageData*/) + { + } + +void CDummyExifEncoder::UpdateHeaderL() + { + } + + +