mmplugins/cameraplugins/source/testcamera/test_snapshot.h
branchRCL_3
changeset 64 92a82bc706f7
parent 0 40261b775718
--- a/mmplugins/cameraplugins/source/testcamera/test_snapshot.h	Thu Mar 25 11:21:36 2010 +0900
+++ b/mmplugins/cameraplugins/source/testcamera/test_snapshot.h	Tue Oct 19 11:48:59 2010 +0900
@@ -1,95 +1,95 @@
-// Copyright (c) 2007-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:
-// testsnapshot.h
-// 
-//
-
-#ifndef TESTSNAPSHOT_H
-#define TESTSNAPSHOT_H
-
-#include "TestCamera.h"
-#include <ecam/mcamerasnapshot.h>
-
-const TInt KNumOfSnapshotExtensions = 1;
-
-// Implementations of the MCameraSnapshot class
-class CTestCamSnapshot : 	public CBase, 
-							public MCameraSnapshot
-	{
-	friend class CTestCamera;
-public:
-	static CTestCamSnapshot* NewL(CTestCamera& aOwner);
-	~CTestCamSnapshot();
-	
-private:
-	void Release();
-	
-	//from MCameraSnapshot
-	TUint32 SupportedFormats();
-	
-    void PrepareSnapshotL(CCamera::TFormat aFormat, const TPoint& aPosition, const TSize& aSize, const TRgb& aBgColor, TBool aMaintainAspectRatio);
-    
-	void PrepareSnapshotL(CCamera::TFormat aFormat, const TSize& aSize, TBool aMaintainAspectRatio);
-	
-	void SetBgColorL(const TRgb& aBgColor); 
-	
-	void SetPositionL(const TPoint& aPosition);
-	
-    TBool IsSnapshotActive() const;
-
-    void StartSnapshot();
-
-	void StopSnapshot();
-        	
-	MCameraBuffer& SnapshotDataL(RArray<TInt>& aFrameIndexOrder);
-	
-	// New functions
-	void ServiceSnapshot(const CFbsBitGc& aSourceBitmapGc);
-	void ServiceBurstImageSnapshot(const CFbsBitGc& aSourceBitmapGc);
-
-private:
-	CTestCamSnapshot(CTestCamera& aOwner);
-	void Init();
-	void ConstructL();
-	void DoStartSnapshotL();
-	
-private:
-	CTestCamera& iOwner;
-	
-	TInt iRefCount;
-			
-	CFbsBitmap* iSnapshot;
-	CFbsBitmapDevice* iSnapshotDev;
-	CFbsBitGc* iSnapshotGc;
-	
-	CFbsBitmap* iSnapshotImage;
-	CFbsBitmapDevice* iSnapshotImageDev;
-	CFbsBitGc* iSnapshotImageGc;
-	
-	TRect iSnapshotImageRect;
-	CCamera::TFormat iSnapshotFormat;
-	TRgb iBgColor;
-	
-	TUint32 iImageFormatsSupported;
-	
-	RArray<TRect> iSupportedSnapshotRect;
-	
-	RTestCameraFrameBuffer iSnapshotBuffer;
-	
-	volatile TBool iSnapshotPrepared;
-	volatile TBool iSnapshotActive;
-		
-	};
-	
-#endif // TESTSNAPSHOT_H
+// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of the License "Symbian Foundation License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// testsnapshot.h
+// 
+//
+
+#ifndef TESTSNAPSHOT_H
+#define TESTSNAPSHOT_H
+
+#include "TestCamera.h"
+#include <ecam/mcamerasnapshot.h>
+
+const TInt KNumOfSnapshotExtensions = 1;
+
+// Implementations of the MCameraSnapshot class
+class CTestCamSnapshot : 	public CBase, 
+							public MCameraSnapshot
+	{
+	friend class CTestCamera;
+public:
+	static CTestCamSnapshot* NewL(CTestCamera& aOwner);
+	~CTestCamSnapshot();
+	
+private:
+	void Release();
+	
+	//from MCameraSnapshot
+	TUint32 SupportedFormats();
+	
+    void PrepareSnapshotL(CCamera::TFormat aFormat, const TPoint& aPosition, const TSize& aSize, const TRgb& aBgColor, TBool aMaintainAspectRatio);
+    
+	void PrepareSnapshotL(CCamera::TFormat aFormat, const TSize& aSize, TBool aMaintainAspectRatio);
+	
+	void SetBgColorL(const TRgb& aBgColor); 
+	
+	void SetPositionL(const TPoint& aPosition);
+	
+    TBool IsSnapshotActive() const;
+
+    void StartSnapshot();
+
+	void StopSnapshot();
+        	
+	MCameraBuffer& SnapshotDataL(RArray<TInt>& aFrameIndexOrder);
+	
+	// New functions
+	void ServiceSnapshot(const CFbsBitGc& aSourceBitmapGc);
+	void ServiceBurstImageSnapshot(const CFbsBitGc& aSourceBitmapGc);
+
+private:
+	CTestCamSnapshot(CTestCamera& aOwner);
+	void Init();
+	void ConstructL();
+	void DoStartSnapshotL();
+	
+private:
+	CTestCamera& iOwner;
+	
+	TInt iRefCount;
+			
+	CFbsBitmap* iSnapshot;
+	CFbsBitmapDevice* iSnapshotDev;
+	CFbsBitGc* iSnapshotGc;
+	
+	CFbsBitmap* iSnapshotImage;
+	CFbsBitmapDevice* iSnapshotImageDev;
+	CFbsBitGc* iSnapshotImageGc;
+	
+	TRect iSnapshotImageRect;
+	CCamera::TFormat iSnapshotFormat;
+	TRgb iBgColor;
+	
+	TUint32 iImageFormatsSupported;
+	
+	RArray<TRect> iSupportedSnapshotRect;
+	
+	RTestCameraFrameBuffer iSnapshotBuffer;
+	
+	volatile TBool iSnapshotPrepared;
+	volatile TBool iSnapshotActive;
+		
+	};
+	
+#endif // TESTSNAPSHOT_H