xa_iid.c revision a361b51914aeb5f8f65c7ecad719d1e01f90913b
1527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten/*
2527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten * Copyright (C) 2010 The Android Open Source Project
3527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten *
4527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten * Licensed under the Apache License, Version 2.0 (the "License");
5527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten * you may not use this file except in compliance with the License.
6527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten * You may obtain a copy of the License at
7527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten *
8527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten *      http://www.apache.org/licenses/LICENSE-2.0
9527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten *
10527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten * Unless required by applicable law or agreed to in writing, software
11527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten * distributed under the License is distributed on an "AS IS" BASIS,
12527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten * See the License for the specific language governing permissions and
14527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten * limitations under the License.
15527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten */
16527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten
17527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten#include "sles_allinclusive.h"
18527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten
19527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten#ifdef __cplusplus
20527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kastenextern "C" {
21527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten#endif
22527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten
23a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kasten// OpenMAX AL 1.0.1 interfaces
24a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kasten
25a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_AUDIODECODERCAPABILITIES =
26a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kasten        (XAInterfaceID) &SL_IID_array[MPH_XAAUDIODECODERCAPABILITIES];
27a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_AUDIOENCODER = (XAInterfaceID) &SL_IID_array[MPH_XAAUDIOENCODER];
28a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_AUDIOENCODERCAPABILITIES =
29a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kasten        (XAInterfaceID) &SL_IID_array[MPH_XAAUDIOENCODERCAPABILITIES];
30a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_AUDIOIODEVICECAPABILITIES =
31a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kasten        (XAInterfaceID) &SL_IID_array[MPH_XAAUDIOIODEVICECAPABILITIES];
32a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_CAMERA = (XAInterfaceID) &SL_IID_array[MPH_XACAMERA];
33a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_CAMERACAPABILITIES = (XAInterfaceID) &SL_IID_array[MPH_XACAMERACAPABILITIES];
34a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_CONFIGEXTENSION = (XAInterfaceID) &SL_IID_array[MPH_XACONFIGEXTENSION];
35a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_DEVICEVOLUME = (XAInterfaceID) &SL_IID_array[MPH_XADEVICEVOLUME];
36a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_DYNAMICINTERFACEMANAGEMENT =
37a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kasten        (XAInterfaceID) &SL_IID_array[MPH_XADYNAMICINTERFACEMANAGEMENT];
38a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_DYNAMICSOURCE = (XAInterfaceID) &SL_IID_array[MPH_XADYNAMICSOURCE];
39527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kastenconst XAInterfaceID XA_IID_ENGINE = (XAInterfaceID) &SL_IID_array[MPH_XAENGINE];
40a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_EQUALIZER = (XAInterfaceID) &SL_IID_array[MPH_XAEQUALIZER];
41a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_IMAGECONTROLS = (XAInterfaceID) &SL_IID_array[MPH_XAIMAGECONTROLS];
42a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_IMAGEDECODERCAPABILITIES =
43a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kasten        (XAInterfaceID) &SL_IID_array[MPH_XAIMAGEDECODERCAPABILITIES];
44a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_IMAGEEFFECTS = (XAInterfaceID) &SL_IID_array[MPH_XAIMAGEEFFECTS];
45a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_IMAGEENCODER = (XAInterfaceID) &SL_IID_array[MPH_XAIMAGEENCODER];
46a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_IMAGEENCODERCAPABILITIES =
47a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kasten        (XAInterfaceID) &SL_IID_array[MPH_XAIMAGEENCODERCAPABILITIES];
48a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_LED = (XAInterfaceID) &SL_IID_array[MPH_XALED];
49a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_METADATAEXTRACTION = (XAInterfaceID) &SL_IID_array[MPH_XAMETADATAEXTRACTION];
50a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_METADATAINSERTION = (XAInterfaceID) &SL_IID_array[MPH_XAMETADATAINSERTION];
51a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_METADATATRAVERSAL = (XAInterfaceID) &SL_IID_array[MPH_XAMETADATATRAVERSAL];
52a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_NULL = (XAInterfaceID) &SL_IID_array[MPH_XANULL];
53a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_OBJECT = (XAInterfaceID) &SL_IID_array[MPH_XAOBJECT];
54a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_OUTPUTMIX = (XAInterfaceID) &SL_IID_array[MPH_XAOUTPUTMIX];
55527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kastenconst XAInterfaceID XA_IID_PLAY = (XAInterfaceID) &SL_IID_array[MPH_XAPLAY];
56a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_PLAYBACKRATE = (XAInterfaceID) &SL_IID_array[MPH_XAPLAYBACKRATE];
57a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_PREFETCHSTATUS = (XAInterfaceID) &SL_IID_array[MPH_XAPREFETCHSTATUS];
58a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_RADIO = (XAInterfaceID) &SL_IID_array[MPH_XARADIO];
59a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_RDS = (XAInterfaceID) &SL_IID_array[MPH_XARDS];
60a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_RECORD = (XAInterfaceID) &SL_IID_array[MPH_XARECORD];
61a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_SEEK = (XAInterfaceID) &SL_IID_array[MPH_XASEEK];
62a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_SNAPSHOT = (XAInterfaceID) &SL_IID_array[MPH_XASNAPSHOT];
63527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kastenconst XAInterfaceID XA_IID_STREAMINFORMATION =
64527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten        (XAInterfaceID) &SL_IID_array[MPH_XASTREAMINFORMATION];
65a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_THREADSYNC = (XAInterfaceID) &SL_IID_array[MPH_XATHREADSYNC];
66a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_VIBRA = (XAInterfaceID) &SL_IID_array[MPH_XAVIBRA];
67a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_VIDEODECODERCAPABILITIES =
68a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kasten        (XAInterfaceID) &SL_IID_array[MPH_XAVIDEODECODERCAPABILITIES];
69a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_VIDEOENCODER = (XAInterfaceID) &SL_IID_array[MPH_XAVIDEOENCODER];
70a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_VIDEOENCODERCAPABILITIES =
71a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kasten        (XAInterfaceID) &SL_IID_array[MPH_XAVIDEOENCODERCAPABILITIES];
72a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kastenconst XAInterfaceID XA_IID_VIDEOPOSTPROCESSING = (XAInterfaceID) &SL_IID_array[MPH_XAVIDEOPOSTPROCESSING];
73527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kastenconst XAInterfaceID XA_IID_VOLUME = (XAInterfaceID) &SL_IID_array[MPH_XAVOLUME];
74527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten
75a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kasten// OpenMAX AL 1.0.1 Android API level 12 extended interfaces
76a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kasten// GUID and MPH are shared by SL and XA
77527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kastenconst XAInterfaceID XA_IID_ANDROIDBUFFERQUEUE =
78a361b51914aeb5f8f65c7ecad719d1e01f90913bGlenn Kasten        (XAInterfaceID) &SL_IID_array[MPH_ANDROIDBUFFERQUEUE];
79527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten
80527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten#ifdef __cplusplus
81527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten}
82527f8ca99f2938d6569fc25dcf3256985a54dec6Glenn Kasten#endif
83