khronosfws/openmax_al/src/mediaplayer/xamediaplayer.h
changeset 16 43d09473c595
parent 12 5a06f39ad45b
child 25 6f7ceef7b1d1
equal deleted inserted replaced
14:80975da52420 16:43d09473c595
    19 #define XAMEDIAPLAYER_H
    19 #define XAMEDIAPLAYER_H
    20 
    20 
    21 #include "openmaxalwrapper.h"
    21 #include "openmaxalwrapper.h"
    22 #include "xaglobals.h"
    22 #include "xaglobals.h"
    23 #include "xaobjectitf.h"
    23 #include "xaobjectitf.h"
    24 #ifdef _GSTREAMER_BACKEND_
    24 #include "xamediaplayeradaptctx.h"
    25 #include "XAMediaPlayerAdaptCtx.h"
       
    26 #endif
       
    27 #include "xamediaplayeradaptctxmmf.h"
    25 #include "xamediaplayeradaptctxmmf.h"
    28 
    26 #include "xacapabilitiesmgr.h"
    29 /** MACROS **/
    27 /** MACROS **/
    30 
    28 
    31 
    29 
    32 /** TYPES **/
    30 /** TYPES **/
    33 
    31 
    49     MP_IMAGEEFFECTSITF,
    47     MP_IMAGEEFFECTSITF,
    50     MP_METADATAEXTRACTIONITF,
    48     MP_METADATAEXTRACTIONITF,
    51     MP_METADATATRAVERSALITF,
    49     MP_METADATATRAVERSALITF,
    52     MP_PLAYBACKRATEITF,
    50     MP_PLAYBACKRATEITF,
    53     MP_VIDEOPOSTPROCESSINGITF,
    51     MP_VIDEOPOSTPROCESSINGITF,
       
    52     MP_NOKIAVOLUMEEXT,
       
    53     MP_NOKIALINEARVOLUME,
       
    54     MP_STREAMINFORMATIONITF,
    54     MP_ITFCOUNT
    55     MP_ITFCOUNT
    55 } MPInterfaces;
    56 } MPInterfaces;
    56 
    57 
    57 /** STRUCTURES **/
    58 /** STRUCTURES **/
    58 /* Specification for XAMediaPlayerImpl.*/
    59 /* Specification for XAMediaPlayerImpl.*/
    69     XADataSink *vibra;
    70     XADataSink *vibra;
    70     XADataSink *LEDArray;
    71     XADataSink *LEDArray;
    71     XAuint32 numRequiredInterfaces;
    72     XAuint32 numRequiredInterfaces;
    72     XAInterfaceID *requiredItfIds;
    73     XAInterfaceID *requiredItfIds;
    73 
    74 
    74 #ifdef _GSTREAMER_BACKEND_
    75     XAAdaptationBaseCtx* curAdaptCtx;
    75     XAAdaptationBaseCtx* adaptationCtx;
    76     XAAdaptationBaseCtx* adaptationCtxGst;
    76 #endif
    77     XAAdaptationBaseCtx* adaptationCtxMMF;
    77     XAAdaptationBaseMMFCtx* adaptationCtxMMF;
    78 
    78     XAboolean isMMFPlayback;
       
    79 } XAMediaPlayerImpl;
    79 } XAMediaPlayerImpl;
    80 
    80 
    81 
    81 
    82 /** METHODS **/
    82 /** METHODS **/
    83 
    83 
    84 /* base object XAObjectItfImpl methods */
    84 /* base object XAObjectItfImpl methods */
    85 XAresult XAMediaPlayerImpl_DoRealize(XAObjectItf self);
    85 XAresult XAMediaPlayerImpl_DoRealize(XAObjectItf self);
    86 XAresult XAMediaPlayerImpl_DoResume(XAObjectItf self);
    86 XAresult XAMediaPlayerImpl_DoResume(XAObjectItf self);
    87 void XAMediaPlayerImpl_FreeResources(XAObjectItf self);
    87 void XAMediaPlayerImpl_FreeResources(XAObjectItf self);
    88 
    88 
    89 XAresult XAMediaPlayerImpl_DeterminePlaybackEngine(XAObjectItf self, XADataLocator_URI *uri);
       
    90 
       
    91 /* DynamicInterfaceManagement object-specific methods */
    89 /* DynamicInterfaceManagement object-specific methods */
    92 XAresult XAMediaPlayerImpl_DoAddItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );
    90 XAresult XAMediaPlayerImpl_DoAddItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );
    93 XAresult XAMediaPlayerImpl_DoResumeItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );
    91 XAresult XAMediaPlayerImpl_DoResumeItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );
    94 XAresult XAMediaPlayerImpl_DoRemoveItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );
    92 XAresult XAMediaPlayerImpl_DoRemoveItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );
    95 
    93