khronosfws/openmax_al/src/mediaplayer/xamediaplayer.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 15:29:42 +0300
changeset 12 5a06f39ad45b
child 16 43d09473c595
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/

#ifndef XAMEDIAPLAYER_H
#define XAMEDIAPLAYER_H

#include "openmaxalwrapper.h"
#include "xaglobals.h"
#include "xaobjectitf.h"
#ifdef _GSTREAMER_BACKEND_
#include "XAMediaPlayerAdaptCtx.h"
#endif
#include "xamediaplayeradaptctxmmf.h"

/** MACROS **/


/** TYPES **/


/** ENUMERATIONS **/
/* Enumeration for interfaces that MediaPlayer supports.  */
typedef enum
{
    MP_OBJECTITF,
    MP_DIMITF,
    MP_PLAYITF,
    MP_SEEKITF,
    MP_VOLUMEITF,
    MP_PREFETCHSTATUSITF,
    MP_CONFIGEXTENSIONITF,
    MP_DYNAMICSOURCEITF,
    MP_EQUALIZERITF,
    MP_IMAGECONTROLSITF,
    MP_IMAGEEFFECTSITF,
    MP_METADATAEXTRACTIONITF,
    MP_METADATATRAVERSALITF,
    MP_PLAYBACKRATEITF,
    MP_VIDEOPOSTPROCESSINGITF,
    MP_ITFCOUNT
} MPInterfaces;

/** STRUCTURES **/
/* Specification for XAMediaPlayerImpl.*/
typedef struct XAMediaPlayerImpl_
{
    /* Parent for XAMediaPlayerImpl */
    XAObjectItfImpl baseObj;

    /* variables */
    XADataSource *dataSrc;
    XADataSource *bankSrc;
    XADataSink *audioSnk;
    XADataSink *imageVideoSnk;
    XADataSink *vibra;
    XADataSink *LEDArray;
    XAuint32 numRequiredInterfaces;
    XAInterfaceID *requiredItfIds;

#ifdef _GSTREAMER_BACKEND_
    XAAdaptationBaseCtx* adaptationCtx;
#endif
    XAAdaptationBaseMMFCtx* adaptationCtxMMF;
    XAboolean isMMFPlayback;
} XAMediaPlayerImpl;


/** METHODS **/

/* base object XAObjectItfImpl methods */
XAresult XAMediaPlayerImpl_DoRealize(XAObjectItf self);
XAresult XAMediaPlayerImpl_DoResume(XAObjectItf self);
void XAMediaPlayerImpl_FreeResources(XAObjectItf self);

XAresult XAMediaPlayerImpl_DeterminePlaybackEngine(XAObjectItf self, XADataLocator_URI *uri);

/* DynamicInterfaceManagement object-specific methods */
XAresult XAMediaPlayerImpl_DoAddItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );
XAresult XAMediaPlayerImpl_DoResumeItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );
XAresult XAMediaPlayerImpl_DoRemoveItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );

#endif /* XAMEDIAPLAYER_H */