diff -r 000000000000 -r 5752a19fdefe imaging/imagingfws/ImageProcessor/src/imageprocessoroutputinfo.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/imaging/imagingfws/ImageProcessor/src/imageprocessoroutputinfo.cpp Wed Aug 25 12:29:52 2010 +0300 @@ -0,0 +1,58 @@ +// Copyright (c) 2008-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 +#include "imageprocessorimpl.h" +#include + +namespace ImageProcessor + { + +TOutputInfo::TOutputInfo(Plugin::MOutputInfo& aOutputInfoImpl, CImageProcessorImpl& aImageProcessorImpl) +:iImageProcessorImpl(aImageProcessorImpl), + iOutputInfoImpl(aOutputInfoImpl), + iReserved(0) + { + } + +/** +Sets the output JPEG image quality + +@param aQuality + The new JPEG image quality to set to the output. Range (0, 1], where 1 means best JPEG quality (100%). +*/ +EXPORT_C void TOutputInfo::SetJpegQualityL(TReal32& aQuality) + { + __ASSERT_ALWAYS((0.0f=aQuality),User::Leave(KErrArgument)); + __ASSERT_ALWAYS(iImageProcessorImpl.IsOutputSet(), User::Leave(KErrNotReady)); + iOutputInfoImpl.SetJpegQualityL(aQuality); + } + +/** +Sets the output JPEG image sampling rate + +@param aSampling + The new JPEG image sampling rate to set to the output. +*/ +EXPORT_C void TOutputInfo::SetSamplingL(TUid& aSampling) + { + __ASSERT_ALWAYS(iImageProcessorImpl.IsOutputSet(), User::Leave(KErrNotReady)); + iOutputInfoImpl.SetSamplingL(aSampling); + } + + }//namespace ImageProcessor + +//EOF