khronosfws/openmax_al/src/ledarray/xaledarrayitf.h
changeset 16 43d09473c595
parent 12 5a06f39ad45b
equal deleted inserted replaced
14:80975da52420 16:43d09473c595
    16 */
    16 */
    17 
    17 
    18 #ifndef XALEDARRAYITF_H
    18 #ifndef XALEDARRAYITF_H
    19 #define XALEDARRAYITF_H
    19 #define XALEDARRAYITF_H
    20 
    20 
    21 #include "openmaxalwrapper.h"
    21 #include "xaadptbasectx.h"
    22 #include "xaglobals.h"
    22 
    23 #ifdef _GSTREAMER_BACKEND_  
       
    24 #include "XAAdaptationContextBase.h"
       
    25 #endif
       
    26 /** MACROS **/
    23 /** MACROS **/
    27 #define LED_COUNT 1
    24 #define LED_COUNT 1
    28 #define PRIMARY_LED 0
    25 #define PRIMARY_LED 0
    29 #define COLOR_MASK 1
    26 #define COLOR_MASK 1
    30 
    27 
    43 
    40 
    44     /* variables */
    41     /* variables */
    45     XAuint32    lightMask;
    42     XAuint32    lightMask;
    46     XAHSL       color;
    43     XAHSL       color;
    47 
    44 
    48 #ifdef _GSTREAMER_BACKEND_  
    45  
    49     /*Adaptation variables*/
    46     /*Adaptation variables*/
    50     XAAdaptationBaseCtx *adapCtx;
    47     XAAdaptationBaseCtx *adapCtx;
    51 #endif
    48 
    52 } XALEDArrayItfImpl;
    49 } XALEDArrayItfImpl;
    53 
    50 
    54 /** METHODS **/
    51 /** METHODS **/
    55 
    52 
    56 /* Base interface XALEDArrayItf implementation
    53 /* Base interface XALEDArrayItf implementation
    59 XAresult XALEDArrayItfImpl_ActivateLEDArray ( XALEDArrayItf self, XAuint32 lightMask );
    56 XAresult XALEDArrayItfImpl_ActivateLEDArray ( XALEDArrayItf self, XAuint32 lightMask );
    60 XAresult XALEDArrayItfImpl_IsLEDArrayActivated ( XALEDArrayItf self, XAuint32 * pLightMask );
    57 XAresult XALEDArrayItfImpl_IsLEDArrayActivated ( XALEDArrayItf self, XAuint32 * pLightMask );
    61 XAresult XALEDArrayItfImpl_SetColor ( XALEDArrayItf self, XAuint8 index, const XAHSL * pColor );
    58 XAresult XALEDArrayItfImpl_SetColor ( XALEDArrayItf self, XAuint8 index, const XAHSL * pColor );
    62 XAresult XALEDArrayItfImpl_GetColor ( XALEDArrayItf self, XAuint8 index, XAHSL * pColor );
    59 XAresult XALEDArrayItfImpl_GetColor ( XALEDArrayItf self, XAuint8 index, XAHSL * pColor );
    63 /* XALEDArrayItfImpl -specific methods */
    60 /* XALEDArrayItfImpl -specific methods */
    64 #ifdef _GSTREAMER_BACKEND_  
    61  
    65 XALEDArrayItfImpl* XALEDArrayItfImpl_Create( XAAdaptationBaseCtx *adapCtx );
    62 XALEDArrayItfImpl* XALEDArrayItfImpl_Create( XAAdaptationBaseCtx *adapCtx );
    66 void XALEDArrayItfImpl_Free(XALEDArrayItfImpl* self);
    63 void XALEDArrayItfImpl_Free(XALEDArrayItfImpl* self);
    67 #endif
    64 
    68 
    65 
    69 #endif /* XALEDARRAYITF_H */
    66 #endif /* XALEDARRAYITF_H */