khronosfws/openmax_al/src/ledarray/xaledarrayitf.h
changeset 12 5a06f39ad45b
child 16 43d09473c595
equal deleted inserted replaced
0:71ca22bcf22a 12:5a06f39ad45b
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef XALEDARRAYITF_H
       
    19 #define XALEDARRAYITF_H
       
    20 
       
    21 #include "openmaxalwrapper.h"
       
    22 #include "xaglobals.h"
       
    23 #ifdef _GSTREAMER_BACKEND_  
       
    24 #include "XAAdaptationContextBase.h"
       
    25 #endif
       
    26 /** MACROS **/
       
    27 #define LED_COUNT 1
       
    28 #define PRIMARY_LED 0
       
    29 #define COLOR_MASK 1
       
    30 
       
    31 /** TYPES **/
       
    32 
       
    33 /** ENUMERATIONS **/
       
    34 
       
    35 /** STRUCTURES **/
       
    36 /* Definition of XALEDArrayItf implementation */
       
    37 typedef struct XALEDArrayItfImpl_
       
    38 {
       
    39     /* parent interface */
       
    40     struct XALEDArrayItf_ itf;
       
    41     /* pointer to self */
       
    42     struct XALEDArrayItfImpl_* self;
       
    43 
       
    44     /* variables */
       
    45     XAuint32    lightMask;
       
    46     XAHSL       color;
       
    47 
       
    48 #ifdef _GSTREAMER_BACKEND_  
       
    49     /*Adaptation variables*/
       
    50     XAAdaptationBaseCtx *adapCtx;
       
    51 #endif
       
    52 } XALEDArrayItfImpl;
       
    53 
       
    54 /** METHODS **/
       
    55 
       
    56 /* Base interface XALEDArrayItf implementation
       
    57  *See API Specification for method documentation
       
    58  */
       
    59 XAresult XALEDArrayItfImpl_ActivateLEDArray ( XALEDArrayItf self, XAuint32 lightMask );
       
    60 XAresult XALEDArrayItfImpl_IsLEDArrayActivated ( XALEDArrayItf self, XAuint32 * pLightMask );
       
    61 XAresult XALEDArrayItfImpl_SetColor ( XALEDArrayItf self, XAuint8 index, const XAHSL * pColor );
       
    62 XAresult XALEDArrayItfImpl_GetColor ( XALEDArrayItf self, XAuint8 index, XAHSL * pColor );
       
    63 /* XALEDArrayItfImpl -specific methods */
       
    64 #ifdef _GSTREAMER_BACKEND_  
       
    65 XALEDArrayItfImpl* XALEDArrayItfImpl_Create( XAAdaptationBaseCtx *adapCtx );
       
    66 void XALEDArrayItfImpl_Free(XALEDArrayItfImpl* self);
       
    67 #endif
       
    68 
       
    69 #endif /* XALEDARRAYITF_H */