khronosfws/openmax_al/src/common/xadynamicsourceitf.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 XADYNAMICSOURCEITF_H
       
    19 #define XADYNAMICSOURCEITF_H
       
    20 
       
    21 #include "openmaxalwrapper.h"
       
    22 #include "xaglobals.h"
       
    23 #ifdef _GSTREAMER_BACKEND_   
       
    24 #include "XAAdaptationContextBase.h"
       
    25 #endif
       
    26 /** MACROS **/
       
    27 
       
    28 /** TYPES **/
       
    29 
       
    30 /** ENUMERATIONS **/
       
    31 
       
    32 /** STRUCTURES **/
       
    33 /* Definition of XADynamicSourceItf implementation */
       
    34 typedef struct XADynamicSourceItfImpl_
       
    35 {
       
    36     /* parent interface */
       
    37     struct XADynamicSourceItf_ itf;
       
    38     /* pointer to self */
       
    39     struct XADynamicSourceItfImpl_* self;
       
    40 #ifdef _GSTREAMER_BACKEND_   
       
    41     /* variables */
       
    42     XAAdaptationBaseCtx *adaptCtx;
       
    43 #endif
       
    44 } XADynamicSourceItfImpl;
       
    45 
       
    46 /** METHODS **/
       
    47 
       
    48 /* Base interface XADynamicSourceItf implementation
       
    49  * See API Specification for method documentation
       
    50  */
       
    51 XAresult XADynamicSourceItfImpl_SetSource(XADynamicSourceItf self,
       
    52                                         XADataSource *pDataSource);
       
    53 
       
    54 #ifdef _GSTREAMER_BACKEND_   
       
    55 /* XADynamicSourceItfImpl -specific methods */
       
    56 XADynamicSourceItfImpl* XADynamicSourceItfImpl_Create(XAAdaptationBaseCtx *adaptCtx);
       
    57 #endif
       
    58 void XADynamicSourceItfImpl_Free(XADynamicSourceItfImpl* self);
       
    59 
       
    60 #endif /* XADYNAMICSOURCEITF_H */