khronosfws/openmax_al/src/gst_adaptation/xacameraadaptctx.h
changeset 16 43d09473c595
child 20 b67dd1fc57c5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/khronosfws/openmax_al/src/gst_adaptation/xacameraadaptctx.h	Fri May 14 16:22:35 2010 +0300
@@ -0,0 +1,55 @@
+/*
+* Copyright (c) 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 XACAMERAADAPTCTX_H
+#define XACAMERAADAPTCTX_H
+
+#include "xaadaptationgst.h"
+#include <photography.h>
+/* TYPEDEFS */
+
+typedef struct XACameraAdaptationCtx_ XACameraAdaptationCtx;
+
+/*
+ * Structure for Camera specific gst-adaptation variables
+ */
+typedef struct XACameraAdaptationCtx_ {
+
+    /* Parent*/
+    XAAdaptationGstCtx_ baseObj;
+
+    /* OMX-AL Variables */
+    XAuint32        deviceID;
+    XAuint32        imageEffectID;
+    XAmillidegree   curRotation;
+    XAuint32        curMirror;
+
+    /* GST Variables */
+    GstFocusStatus focusStatus;
+
+    /* Internals */
+    XAboolean       recording;
+    XAboolean       playing;
+    XAboolean       snapshotting;
+} XACameraAdaptationCtx_;
+
+/* FUNCTIONS */
+XAAdaptationBaseCtx* XACameraAdapt_Create(XAuint32 deviceID);
+XAresult XACameraAdapt_PostInit(XAAdaptationBaseCtx* bCtx);
+void XACameraAdapt_Destroy(XAAdaptationBaseCtx* bCtx);
+
+#endif /* XACAMERAADAPTCTX_H */