khronosfws/openmax_al/src/mediaplayer/xamediaplayer.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 XAMEDIAPLAYER_H
       
    19 #define XAMEDIAPLAYER_H
       
    20 
       
    21 #include "openmaxalwrapper.h"
       
    22 #include "xaglobals.h"
       
    23 #include "xaobjectitf.h"
       
    24 #ifdef _GSTREAMER_BACKEND_
       
    25 #include "XAMediaPlayerAdaptCtx.h"
       
    26 #endif
       
    27 #include "xamediaplayeradaptctxmmf.h"
       
    28 
       
    29 /** MACROS **/
       
    30 
       
    31 
       
    32 /** TYPES **/
       
    33 
       
    34 
       
    35 /** ENUMERATIONS **/
       
    36 /* Enumeration for interfaces that MediaPlayer supports.  */
       
    37 typedef enum
       
    38 {
       
    39     MP_OBJECTITF,
       
    40     MP_DIMITF,
       
    41     MP_PLAYITF,
       
    42     MP_SEEKITF,
       
    43     MP_VOLUMEITF,
       
    44     MP_PREFETCHSTATUSITF,
       
    45     MP_CONFIGEXTENSIONITF,
       
    46     MP_DYNAMICSOURCEITF,
       
    47     MP_EQUALIZERITF,
       
    48     MP_IMAGECONTROLSITF,
       
    49     MP_IMAGEEFFECTSITF,
       
    50     MP_METADATAEXTRACTIONITF,
       
    51     MP_METADATATRAVERSALITF,
       
    52     MP_PLAYBACKRATEITF,
       
    53     MP_VIDEOPOSTPROCESSINGITF,
       
    54     MP_ITFCOUNT
       
    55 } MPInterfaces;
       
    56 
       
    57 /** STRUCTURES **/
       
    58 /* Specification for XAMediaPlayerImpl.*/
       
    59 typedef struct XAMediaPlayerImpl_
       
    60 {
       
    61     /* Parent for XAMediaPlayerImpl */
       
    62     XAObjectItfImpl baseObj;
       
    63 
       
    64     /* variables */
       
    65     XADataSource *dataSrc;
       
    66     XADataSource *bankSrc;
       
    67     XADataSink *audioSnk;
       
    68     XADataSink *imageVideoSnk;
       
    69     XADataSink *vibra;
       
    70     XADataSink *LEDArray;
       
    71     XAuint32 numRequiredInterfaces;
       
    72     XAInterfaceID *requiredItfIds;
       
    73 
       
    74 #ifdef _GSTREAMER_BACKEND_
       
    75     XAAdaptationBaseCtx* adaptationCtx;
       
    76 #endif
       
    77     XAAdaptationBaseMMFCtx* adaptationCtxMMF;
       
    78     XAboolean isMMFPlayback;
       
    79 } XAMediaPlayerImpl;
       
    80 
       
    81 
       
    82 /** METHODS **/
       
    83 
       
    84 /* base object XAObjectItfImpl methods */
       
    85 XAresult XAMediaPlayerImpl_DoRealize(XAObjectItf self);
       
    86 XAresult XAMediaPlayerImpl_DoResume(XAObjectItf self);
       
    87 void XAMediaPlayerImpl_FreeResources(XAObjectItf self);
       
    88 
       
    89 XAresult XAMediaPlayerImpl_DeterminePlaybackEngine(XAObjectItf self, XADataLocator_URI *uri);
       
    90 
       
    91 /* DynamicInterfaceManagement object-specific methods */
       
    92 XAresult XAMediaPlayerImpl_DoAddItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );
       
    93 XAresult XAMediaPlayerImpl_DoResumeItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );
       
    94 XAresult XAMediaPlayerImpl_DoRemoveItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );
       
    95 
       
    96 #endif /* XAMEDIAPLAYER_H */