imagingandcamerafws/imagingfws/ImageProcessor/inc/imageprocessorinputinfo.h
branchRCL_3
changeset 50 948c7f65f6d4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/imagingandcamerafws/imagingfws/ImageProcessor/inc/imageprocessorinputinfo.h	Wed Sep 01 12:38:50 2010 +0100
@@ -0,0 +1,72 @@
+// Copyright (c) 2008-2010 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:
+//
+
+/**
+ @file
+ @publishedAll 
+ @released 
+*/
+
+#ifndef __IMAGE_PROCESSOR_INPUT_INFO_H__
+#define __IMAGE_PROCESSOR_INPUT_INFO_H__
+
+#include <e32base.h>
+#include <gdi.h>
+
+namespace ImageProcessor
+	{
+
+class CImageProcessorImpl;
+
+namespace Plugin
+	{
+	class MInputInfo;
+	}
+
+/**
+This class provides functions to read input image details. These details can be used for display in a file browser 
+or to verify the correct capabilities. Prior to use this API, a pointer to ImageProcessor::InputInfoL() interface must be 
+obtained from the active CImgProcessor instance.
+
+@publishedAll
+@released
+*/
+class TInputInfo
+	{
+public:
+	IMPORT_C TSize SizeL() const;
+	IMPORT_C void FormatL(TUid& aFormat, TUid& aSubFormat) const;
+	IMPORT_C TDisplayMode DisplayModeL() const; 
+	IMPORT_C TUid ImageFrameFormatL() const;
+	IMPORT_C TUid SamplingL() const; 
+	IMPORT_C TUint32 BitsPerPixelL() const; 
+	IMPORT_C TBool IsProgressiveL() const; 
+	IMPORT_C TBool IsInterlacedL() const;
+	IMPORT_C TBool HasAlphaL() const;
+	IMPORT_C TAny* Extension(TUid aExtension) const;
+	
+private:
+	friend class CImageProcessorImpl;
+	TInputInfo(Plugin::MInputInfo& aInputInfoImpl, CImageProcessorImpl& aImageProcessorImpl);
+
+	CImageProcessorImpl& iImageProcessorImpl;
+	Plugin::MInputInfo& iInputInfoImpl;
+
+	TInt iReserved; // future proof
+	};
+
+	}
+
+#endif //__IMAGE_PROCESSOR_INPUT_INFO_H__