• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2010 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "sles_allinclusive.h"
18 
19 /** \brief xaCreateEngine Function */
20 
xaCreateEngine(XAObjectItf * pEngine,XAuint32 numOptions,const XAEngineOption * pEngineOptions,XAuint32 numInterfaces,const XAInterfaceID * pInterfaceIds,const XAboolean * pInterfaceRequired)21 XA_API XAresult XAAPIENTRY xaCreateEngine(XAObjectItf *pEngine, XAuint32 numOptions,
22         const XAEngineOption *pEngineOptions, XAuint32 numInterfaces,
23         const XAInterfaceID *pInterfaceIds, const XAboolean *pInterfaceRequired)
24 {
25     XA_ENTER_GLOBAL
26 
27     result = liCreateEngine((SLObjectItf *) pEngine, numOptions,
28             (const SLEngineOption *) pEngineOptions, numInterfaces,
29             (const SLInterfaceID *) pInterfaceIds, (const SLboolean *) pInterfaceRequired,
30             objectIDtoClass(XA_OBJECTID_ENGINE));
31 
32     XA_LEAVE_GLOBAL
33 }
34 
35 
36 /** \brief xaQueryNumSupportedEngineInterfaces Function */
37 
xaQueryNumSupportedEngineInterfaces(XAuint32 * pNumSupportedInterfaces)38 XA_API XAresult XAAPIENTRY xaQueryNumSupportedEngineInterfaces(XAuint32 *pNumSupportedInterfaces)
39 {
40     XA_ENTER_GLOBAL
41 
42     result = liQueryNumSupportedInterfaces(pNumSupportedInterfaces,
43             objectIDtoClass(XA_OBJECTID_ENGINE));
44 
45     XA_LEAVE_GLOBAL
46 }
47 
48 
49 /** \brief xaQuerySupportedEngineInterfaces Function */
50 
xaQuerySupportedEngineInterfaces(XAuint32 index,XAInterfaceID * pInterfaceId)51 XA_API XAresult XAAPIENTRY xaQuerySupportedEngineInterfaces(XAuint32 index,
52         XAInterfaceID *pInterfaceId)
53 {
54     XA_ENTER_GLOBAL
55 
56     result = liQuerySupportedInterfaces(index, (SLInterfaceID *) pInterfaceId,
57             objectIDtoClass(XA_OBJECTID_ENGINE));
58 
59     XA_LEAVE_GLOBAL
60 }
61