khronosfws/openmax_al/src/gst_adaptation/xaplayitfadaptation.h
changeset 16 43d09473c595
equal deleted inserted replaced
14:80975da52420 16:43d09473c595
       
     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 XAPLAYITFADAPTATION_H
       
    19 #define XAPLAYITFADAPTATION_H
       
    20 
       
    21 #include "xaadaptationgst.h"
       
    22 
       
    23 #ifdef _DEBUG
       
    24 /*parse state names for debug prints*/
       
    25 static const char* playstatenames[3] =
       
    26 {
       
    27     "XA_PLAYSTATE_STOPPED",
       
    28     "XA_PLAYSTATE_PAUSED",
       
    29     "XA_PLAYSTATE_PLAYING"
       
    30 };
       
    31 #define PLAYSTATENAME(i) (const char*)((i>0&&i<4)?playstatenames[i-1]:"INVALID")
       
    32 #endif /*_DEBUG*/
       
    33 
       
    34 
       
    35 /* FUNCTIONS */
       
    36 
       
    37 XAresult XAPlayItfAdaptGST_SetPlayState(XAAdaptationBaseCtx *bCtx, XAuint32 state);
       
    38 XAresult XAPlayItfAdaptGST_GetDuration(XAAdaptationGstCtx *bCtx, XAmillisecond *pMsec);
       
    39 XAresult XAPlayItfAdaptGST_GetPosition(XAAdaptationGstCtx *bCtx, XAmillisecond *pMsec);
       
    40 XAresult XAPlayItfAdapt_EnablePositionTracking(XAAdaptationGstCtx *bCtx, XAboolean enable);
       
    41 
       
    42 
       
    43 #endif /* XAPLAYITFADAPTATION_H */