khronosfws/openmax_al/src/common/xaimageeffectsitf.h
changeset 12 5a06f39ad45b
child 16 43d09473c595
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/khronosfws/openmax_al/src/common/xaimageeffectsitf.h	Fri Apr 16 15:29:42 2010 +0300
@@ -0,0 +1,76 @@
+/*
+* 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 XAIMAGEEFFECTSITF_H
+#define XAIMAGEEFFECTSITF_H
+
+#include "openmaxalwrapper.h"
+#include "xaglobals.h"
+#ifdef _GSTREAMER_BACKEND_   
+#include "XAAdaptationContextBase.h"
+#endif
+/** MACROS **/
+#define NO_IMAGE_EFFECTS 0
+
+/** TYPES **/
+
+/** ENUMERATIONS **/
+
+/** STRUCTURES **/
+/* Definition of XAImageEffectsItf implementation */
+typedef struct XAImageEffectsItfImpl_
+{
+    /* parent interface */
+    struct XAImageEffectsItf_ itf;
+    /* pointer to self */
+    struct XAImageEffectsItfImpl_* self;
+
+    /* variables */
+    XAuint32    index;
+    XAboolean   enabled;
+    XAuint32    imageEffectID;
+#ifdef _GSTREAMER_BACKEND_   
+    /*Adaptation variables*/
+    XAAdaptationBaseCtx *adapCtx;
+#endif
+
+} XAImageEffectsItfImpl;
+
+/** METHODS **/
+
+/* Base interface XAImageEffectsItf implementation */
+XAresult XAImageEffectsItfImpl_QuerySupportedImageEffects(XAImageEffectsItf self,
+                                                          XAuint32 index,
+                                                          XAuint32 *pImageEffectId);
+
+XAresult XAImageEffectsItfImpl_EnableImageEffect(XAImageEffectsItf self,
+                                                 XAuint32 imageEffectID);
+
+XAresult XAImageEffectsItfImpl_DisableImageEffect(XAImageEffectsItf self,
+                                                  XAuint32 imageEffectID);
+
+XAresult XAImageEffectsItfImpl_IsImageEffectEnabled(XAImageEffectsItf self,
+                                                    XAuint32 imageEffectID,
+                                                    XAboolean *pEnabled);
+
+#ifdef _GSTREAMER_BACKEND_   
+/* XAImageEffectsItfImpl -specific methods */
+XAImageEffectsItfImpl* XAImageEffectsItfImpl_Create(XAAdaptationBaseCtx *adapCtx);
+#endif
+
+void XAImageEffectsItfImpl_Free(XAImageEffectsItfImpl* self);
+#endif /* XAIMAGEEFFECTSITF_H */