xa_iid.c revision a361b51914aeb5f8f65c7ecad719d1e01f90913b
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#ifdef __cplusplus 20extern "C" { 21#endif 22 23// OpenMAX AL 1.0.1 interfaces 24 25const XAInterfaceID XA_IID_AUDIODECODERCAPABILITIES = 26 (XAInterfaceID) &SL_IID_array[MPH_XAAUDIODECODERCAPABILITIES]; 27const XAInterfaceID XA_IID_AUDIOENCODER = (XAInterfaceID) &SL_IID_array[MPH_XAAUDIOENCODER]; 28const XAInterfaceID XA_IID_AUDIOENCODERCAPABILITIES = 29 (XAInterfaceID) &SL_IID_array[MPH_XAAUDIOENCODERCAPABILITIES]; 30const XAInterfaceID XA_IID_AUDIOIODEVICECAPABILITIES = 31 (XAInterfaceID) &SL_IID_array[MPH_XAAUDIOIODEVICECAPABILITIES]; 32const XAInterfaceID XA_IID_CAMERA = (XAInterfaceID) &SL_IID_array[MPH_XACAMERA]; 33const XAInterfaceID XA_IID_CAMERACAPABILITIES = (XAInterfaceID) &SL_IID_array[MPH_XACAMERACAPABILITIES]; 34const XAInterfaceID XA_IID_CONFIGEXTENSION = (XAInterfaceID) &SL_IID_array[MPH_XACONFIGEXTENSION]; 35const XAInterfaceID XA_IID_DEVICEVOLUME = (XAInterfaceID) &SL_IID_array[MPH_XADEVICEVOLUME]; 36const XAInterfaceID XA_IID_DYNAMICINTERFACEMANAGEMENT = 37 (XAInterfaceID) &SL_IID_array[MPH_XADYNAMICINTERFACEMANAGEMENT]; 38const XAInterfaceID XA_IID_DYNAMICSOURCE = (XAInterfaceID) &SL_IID_array[MPH_XADYNAMICSOURCE]; 39const XAInterfaceID XA_IID_ENGINE = (XAInterfaceID) &SL_IID_array[MPH_XAENGINE]; 40const XAInterfaceID XA_IID_EQUALIZER = (XAInterfaceID) &SL_IID_array[MPH_XAEQUALIZER]; 41const XAInterfaceID XA_IID_IMAGECONTROLS = (XAInterfaceID) &SL_IID_array[MPH_XAIMAGECONTROLS]; 42const XAInterfaceID XA_IID_IMAGEDECODERCAPABILITIES = 43 (XAInterfaceID) &SL_IID_array[MPH_XAIMAGEDECODERCAPABILITIES]; 44const XAInterfaceID XA_IID_IMAGEEFFECTS = (XAInterfaceID) &SL_IID_array[MPH_XAIMAGEEFFECTS]; 45const XAInterfaceID XA_IID_IMAGEENCODER = (XAInterfaceID) &SL_IID_array[MPH_XAIMAGEENCODER]; 46const XAInterfaceID XA_IID_IMAGEENCODERCAPABILITIES = 47 (XAInterfaceID) &SL_IID_array[MPH_XAIMAGEENCODERCAPABILITIES]; 48const XAInterfaceID XA_IID_LED = (XAInterfaceID) &SL_IID_array[MPH_XALED]; 49const XAInterfaceID XA_IID_METADATAEXTRACTION = (XAInterfaceID) &SL_IID_array[MPH_XAMETADATAEXTRACTION]; 50const XAInterfaceID XA_IID_METADATAINSERTION = (XAInterfaceID) &SL_IID_array[MPH_XAMETADATAINSERTION]; 51const XAInterfaceID XA_IID_METADATATRAVERSAL = (XAInterfaceID) &SL_IID_array[MPH_XAMETADATATRAVERSAL]; 52const XAInterfaceID XA_IID_NULL = (XAInterfaceID) &SL_IID_array[MPH_XANULL]; 53const XAInterfaceID XA_IID_OBJECT = (XAInterfaceID) &SL_IID_array[MPH_XAOBJECT]; 54const XAInterfaceID XA_IID_OUTPUTMIX = (XAInterfaceID) &SL_IID_array[MPH_XAOUTPUTMIX]; 55const XAInterfaceID XA_IID_PLAY = (XAInterfaceID) &SL_IID_array[MPH_XAPLAY]; 56const XAInterfaceID XA_IID_PLAYBACKRATE = (XAInterfaceID) &SL_IID_array[MPH_XAPLAYBACKRATE]; 57const XAInterfaceID XA_IID_PREFETCHSTATUS = (XAInterfaceID) &SL_IID_array[MPH_XAPREFETCHSTATUS]; 58const XAInterfaceID XA_IID_RADIO = (XAInterfaceID) &SL_IID_array[MPH_XARADIO]; 59const XAInterfaceID XA_IID_RDS = (XAInterfaceID) &SL_IID_array[MPH_XARDS]; 60const XAInterfaceID XA_IID_RECORD = (XAInterfaceID) &SL_IID_array[MPH_XARECORD]; 61const XAInterfaceID XA_IID_SEEK = (XAInterfaceID) &SL_IID_array[MPH_XASEEK]; 62const XAInterfaceID XA_IID_SNAPSHOT = (XAInterfaceID) &SL_IID_array[MPH_XASNAPSHOT]; 63const XAInterfaceID XA_IID_STREAMINFORMATION = 64 (XAInterfaceID) &SL_IID_array[MPH_XASTREAMINFORMATION]; 65const XAInterfaceID XA_IID_THREADSYNC = (XAInterfaceID) &SL_IID_array[MPH_XATHREADSYNC]; 66const XAInterfaceID XA_IID_VIBRA = (XAInterfaceID) &SL_IID_array[MPH_XAVIBRA]; 67const XAInterfaceID XA_IID_VIDEODECODERCAPABILITIES = 68 (XAInterfaceID) &SL_IID_array[MPH_XAVIDEODECODERCAPABILITIES]; 69const XAInterfaceID XA_IID_VIDEOENCODER = (XAInterfaceID) &SL_IID_array[MPH_XAVIDEOENCODER]; 70const XAInterfaceID XA_IID_VIDEOENCODERCAPABILITIES = 71 (XAInterfaceID) &SL_IID_array[MPH_XAVIDEOENCODERCAPABILITIES]; 72const XAInterfaceID XA_IID_VIDEOPOSTPROCESSING = (XAInterfaceID) &SL_IID_array[MPH_XAVIDEOPOSTPROCESSING]; 73const XAInterfaceID XA_IID_VOLUME = (XAInterfaceID) &SL_IID_array[MPH_XAVOLUME]; 74 75// OpenMAX AL 1.0.1 Android API level 12 extended interfaces 76// GUID and MPH are shared by SL and XA 77const XAInterfaceID XA_IID_ANDROIDBUFFERQUEUE = 78 (XAInterfaceID) &SL_IID_array[MPH_ANDROIDBUFFERQUEUE]; 79 80#ifdef __cplusplus 81} 82#endif 83