khronosfws/openmax_al/src/common/xaobjects.h
changeset 16 43d09473c595
child 25 6f7ceef7b1d1
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 /*All global definitions and declarations here */
       
    18 
       
    19 #ifndef XAOBJECTS_H
       
    20 #define XAOBJECTS_H
       
    21 
       
    22 #include "openmaxalwrapper.h"
       
    23 #include "xaframeworkmgr.h"
       
    24 #include "xaglobals.h"
       
    25 #include "xacapabilitiesmgr.h"
       
    26 
       
    27 /**
       
    28  * GLOBAL METHODS
       
    29  */
       
    30 
       
    31 
       
    32 /*
       
    33  * Engine
       
    34  */
       
    35 XAresult XAEngineImpl_Create(XAObjectItf *pEngine,
       
    36                              XAuint32 numOptions,
       
    37                              const XAEngineOption *pEngineOptions,
       
    38                              XAuint32 numInterfaces,
       
    39                              const XAInterfaceID *pInterfaceIds,
       
    40                              const XAboolean *pInterfaceRequired);
       
    41 
       
    42 XAresult XAEngineImpl_QueryNumSupportedInterfaces(XAuint32 *pNumSupportedInterfaces);
       
    43 
       
    44 XAresult XAEngineImpl_QuerySupportedInterfaces(XAuint32 index,
       
    45                                                XAInterfaceID *pInterfaceId);
       
    46 
       
    47 /*
       
    48  * Media Player
       
    49  */
       
    50 XAresult XAMediaPlayerImpl_CreateMediaPlayer(   FrameworkMap* mapper,
       
    51                                                 XACapabilities* capabilities,
       
    52                                                 XAObjectItf *pPlayer,
       
    53                                                 XADataSource *pDataSrc,
       
    54                                                 XADataSource *pBankSrc,
       
    55                                                 XADataSink *pAudioSnk,
       
    56                                                 XADataSink *pImageVideoSnk,
       
    57                                                 XADataSink *pVibra,
       
    58                                                 XADataSink *pLEDArray,
       
    59                                                 XAuint32 numInterfaces,
       
    60                                                 const XAInterfaceID *pInterfaceIds,
       
    61                                                 const XAboolean *pInterfaceRequired);
       
    62 
       
    63 XAresult XAMediaPlayerImpl_QueryNumSupportedInterfaces(XAuint32 *pNumSupportedInterfaces);
       
    64 
       
    65 XAresult XAMediaPlayerImpl_QuerySupportedInterfaces(XAuint32 index,
       
    66                                                   XAInterfaceID *pInterfaceId);
       
    67 
       
    68 /*
       
    69  * Metadata Extractor
       
    70  */
       
    71 XAresult XAMetadataExtractorImpl_Create(    FrameworkMap* mapper,
       
    72                                             XACapabilities* capabilities,
       
    73                                             XAObjectItf *pMetadataExtractor,
       
    74                                             XADataSource *pDataSource,
       
    75                                             XAuint32 numInterfaces,
       
    76                                             const XAInterfaceID *pInterfaceIds,
       
    77                                             const XAboolean *pInterfaceRequired );
       
    78 
       
    79 XAresult XAMetadataExtractorImpl_QueryNumSupportedInterfaces(XAuint32 *pNumSupportedInterfaces);
       
    80 
       
    81 XAresult XAMetadataExtractorImpl_QuerySupportedInterfaces(XAuint32 index,
       
    82                                             XAInterfaceID *pInterfaceId);
       
    83 
       
    84 /*
       
    85  * Output Mix
       
    86  */
       
    87 XAresult XAOMixImpl_CreateOutputMix(    FrameworkMap* mapper,
       
    88                                         XACapabilities* capabilities,
       
    89                                         XAObjectItf *pMix,
       
    90                                         XAuint32 numInterfaces,
       
    91                                         const XAInterfaceID *pInterfaceIds,
       
    92                                         const XAboolean *pInterfaceRequired );
       
    93 
       
    94 XAresult XAOMixImpl_QueryNumSupportedInterfaces(XAuint32 *pNumSupportedInterfaces);
       
    95 
       
    96 XAresult XAOMixImpl_QuerySupportedInterfaces(XAuint32 index,
       
    97                                              XAInterfaceID *pInterfaceId);
       
    98 
       
    99 /*
       
   100  * Media Recorder
       
   101  */
       
   102 XAresult XAMediaRecorderImpl_CreateMediaRecorder(FrameworkMap* mapper,
       
   103                                                  XACapabilities* capabilities,
       
   104                                                  XAObjectItf* pRecorder,
       
   105                                                  XADataSource* pAudioSrc,
       
   106                                                  XADataSource* pImageVideoSrc,
       
   107                                                  XADataSink* pDataSnk,
       
   108                                                  XAuint32 numInterfaces,
       
   109                                                  const XAInterfaceID *pInterfaceIds,
       
   110                                                  const XAboolean *pInterfaceRequired);
       
   111 
       
   112 XAresult XAMediaRecorderImpl_QueryNumSupportedInterfaces(XAuint32 *pNumSupportedInterfaces);
       
   113 
       
   114 XAresult XAMediaRecorderImpl_QuerySupportedInterfaces(XAuint32 index,
       
   115                                                       XAInterfaceID *pInterfaceId);
       
   116 
       
   117 /*
       
   118  * Camera Device
       
   119  */
       
   120 XAresult XACameraDeviceImpl_CreateCameraDevice( FrameworkMap* mapper,
       
   121                                                 XACapabilities* capabilities,
       
   122                                                 XAObjectItf* pDevice,
       
   123                                                 XAuint32 deviceID,
       
   124                                                 XAuint32 numInterfaces,
       
   125                                                 const XAInterfaceID * pInterfaceIds,
       
   126                                                 const XAboolean * pInterfaceRequired);
       
   127 
       
   128 XAresult XACameraDeviceImpl_QueryNumSupportedInterfaces(XAuint32 *pNumSupportedInterfaces);
       
   129 
       
   130 XAresult XACameraDeviceImpl_QuerySupportedInterfaces(XAuint32 index,
       
   131                                                      XAInterfaceID *pInterfaceId);
       
   132 
       
   133 /*
       
   134  * Radio Device
       
   135  */
       
   136 XAresult XARadioDeviceImpl_CreateRadioDevice(   FrameworkMap* mapper,
       
   137                                                 XAObjectItf* pDevice,
       
   138                                                 XAuint32 numInterfaces,
       
   139                                                 const XAInterfaceID * pInterfaceIds,
       
   140                                                 const XAboolean * pInterfaceRequired);
       
   141 
       
   142 XAresult XARadioDeviceImpl_QueryNumSupportedInterfaces(XAuint32 *pNumSupportedInterfaces);
       
   143 
       
   144 XAresult XARadioDeviceImpl_QuerySupportedInterfaces(XAuint32 index,
       
   145                                                     XAInterfaceID *pInterfaceId);
       
   146 
       
   147 /*
       
   148  * Vibra Device
       
   149  */
       
   150 XAresult XAVibraDeviceImpl_CreateVibraDevice(   FrameworkMap* mapper,
       
   151                                                 XAObjectItf* pDevice,
       
   152                                                 XAuint32 deviceID,
       
   153                                                 XAuint32 numInterfaces,
       
   154                                                 const XAInterfaceID * pInterfaceIds,
       
   155                                                 const XAboolean * pInterfaceRequired);
       
   156 
       
   157 XAresult XAVibraDeviceImpl_QueryNumSupportedInterfaces(XAuint32 *pNumSupportedInterfaces);
       
   158 
       
   159 XAresult XAVibraDeviceImpl_QuerySupportedInterfaces(XAuint32 index,
       
   160                                                     XAInterfaceID *pInterfaceId);
       
   161 
       
   162 /*
       
   163  * LED Array
       
   164  */
       
   165 XAresult XALEDArrayDeviceImpl_CreateLEDArrayDevice( FrameworkMap* mapper,
       
   166                                                     XAObjectItf* pDevice,
       
   167                                                     XAuint32 deviceID,
       
   168                                                     XAuint32 numInterfaces,
       
   169                                                     const XAInterfaceID * pInterfaceIds,
       
   170                                                     const XAboolean * pInterfaceRequired);
       
   171 
       
   172 XAresult XALEDArrayDeviceImpl_QueryNumSupportedInterfaces(XAuint32 *pNumSupportedInterfaces);
       
   173 
       
   174 XAresult XALEDArrayDeviceImpl_QuerySupportedInterfaces(XAuint32 index,
       
   175                                                     XAInterfaceID *pInterfaceId);
       
   176 
       
   177 
       
   178 #endif /*XAOBJECTS_H */