khronosfws/openmax_al/src/common/xastreaminformationitf.h
changeset 16 43d09473c595
child 31 8dfd592727cb
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 
       
    19 #ifndef XASTREAMINFORMATIONITF_H
       
    20 #define XASTREAMINFORMATIONITF_H
       
    21 
       
    22 #include "openmaxalwrapper.h"
       
    23 #include "xaadptbasectx.h"
       
    24 
       
    25 /** MACROS **/
       
    26 
       
    27 /** TYPES **/
       
    28 
       
    29 /** ENUMERATIONS **/
       
    30 
       
    31 /** STRUCTURES **/
       
    32 /* Definition of XAStreamInformationItf implementation */
       
    33 typedef struct XAStreamInformationItfImpl_
       
    34 {
       
    35     /* parent interface */
       
    36     struct XAStreamInformationItf_ itf;
       
    37     /* pointer to self */
       
    38     struct XAStreamInformationItfImpl_* self;
       
    39 
       
    40     /*Adaptation variables*/
       
    41 
       
    42     XAStreamInformationItf cbPtrToSelf;
       
    43     xaStreamEventChangeCallback  callback;
       
    44     void *cbcontext;
       
    45     XAAdaptationBaseCtx *adapCtx;
       
    46 
       
    47 } XAStreamInformationItfImpl;
       
    48 
       
    49 /** METHODS **/
       
    50 
       
    51 /* Base interface XAStreamInformationItf implementation */
       
    52 XAresult XAStreamInformationItfImpl_QueryMediaContainerInformation(
       
    53                 XAStreamInformationItf self,
       
    54                 XAMediaContainerInformation * info);
       
    55 
       
    56 XAresult XAStreamInformationItfImpl_QueryStreamType(
       
    57                 XAStreamInformationItf self,
       
    58                 XAuint32 streamIndex, 
       
    59                 XAuint32 *domain);
       
    60 
       
    61 XAresult XAStreamInformationItfImpl_QueryStreamInformation(
       
    62                 XAStreamInformationItf self, 
       
    63                 XAuint32 streamIndex,
       
    64                 void * info);
       
    65 
       
    66 XAresult XAStreamInformationItfImpl_QueryStreamName(
       
    67                 XAStreamInformationItf self, 
       
    68                 XAuint32 streamIndex, 
       
    69                 XAuint16 * pNameSize,
       
    70                 XAchar * pName);
       
    71 
       
    72 XAresult XAStreamInformationItfImpl_RegisterStreamChangeCallback(
       
    73                 XAStreamInformationItf self,
       
    74                 xaStreamEventChangeCallback callback,
       
    75                 void * pContext);
       
    76 
       
    77 XAresult XAStreamInformationItfImpl_QueryActiveStreams(
       
    78                 XAStreamInformationItf self,
       
    79                 XAuint32 *numStreams,
       
    80                 XAboolean *activeStreams);
       
    81 
       
    82 XAresult XAStreamInformationItfImpl_SetActiveStream(
       
    83                 XAStreamInformationItf self, 
       
    84                 XAuint32 streamNum,
       
    85                 XAboolean active, 
       
    86                 XAboolean commitNow);
       
    87 
       
    88 /* XAStreamInformationItfImpl -specific methods */
       
    89 XAStreamInformationItfImpl* XAStreamInformationItfImpl_Create(XAAdaptationBaseCtx *adapCtx);
       
    90 void XAStreamInformationItfImpl_Free(XAStreamInformationItfImpl* self);
       
    91 
       
    92 #endif /* XASTREAMINFORMATIONITF_H */