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