ndk: Add OpenMAX headers and symbols for API level 14
Change-Id: I61f6f255357781d1912e25bd43815fd34ff83d0e
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
xaCreateEngine
|
||||
xaQueryNumSupportedEngineInterfaces
|
||||
xaQuerySupportedEngineInterfaces
|
||||
@@ -0,0 +1,41 @@
|
||||
XA_IID_ANDROIDBUFFERQUEUESOURCE
|
||||
XA_IID_AUDIODECODERCAPABILITIES
|
||||
XA_IID_AUDIOENCODER
|
||||
XA_IID_AUDIOENCODERCAPABILITIES
|
||||
XA_IID_AUDIOIODEVICECAPABILITIES
|
||||
XA_IID_CAMERA
|
||||
XA_IID_CAMERACAPABILITIES
|
||||
XA_IID_CONFIGEXTENSION
|
||||
XA_IID_DEVICEVOLUME
|
||||
XA_IID_DYNAMICINTERFACEMANAGEMENT
|
||||
XA_IID_DYNAMICSOURCE
|
||||
XA_IID_ENGINE
|
||||
XA_IID_EQUALIZER
|
||||
XA_IID_IMAGECONTROLS
|
||||
XA_IID_IMAGEDECODERCAPABILITIES
|
||||
XA_IID_IMAGEEFFECTS
|
||||
XA_IID_IMAGEENCODER
|
||||
XA_IID_IMAGEENCODERCAPABILITIES
|
||||
XA_IID_LED
|
||||
XA_IID_METADATAEXTRACTION
|
||||
XA_IID_METADATAINSERTION
|
||||
XA_IID_METADATATRAVERSAL
|
||||
XA_IID_NULL
|
||||
XA_IID_OBJECT
|
||||
XA_IID_OUTPUTMIX
|
||||
XA_IID_PLAY
|
||||
XA_IID_PLAYBACKRATE
|
||||
XA_IID_PREFETCHSTATUS
|
||||
XA_IID_RADIO
|
||||
XA_IID_RDS
|
||||
XA_IID_RECORD
|
||||
XA_IID_SEEK
|
||||
XA_IID_SNAPSHOT
|
||||
XA_IID_STREAMINFORMATION
|
||||
XA_IID_THREADSYNC
|
||||
XA_IID_VIBRA
|
||||
XA_IID_VIDEODECODERCAPABILITIES
|
||||
XA_IID_VIDEOENCODER
|
||||
XA_IID_VIDEOENCODERCAPABILITIES
|
||||
XA_IID_VIDEOPOSTPROCESSING
|
||||
XA_IID_VOLUME
|
||||
@@ -0,0 +1,3 @@
|
||||
xaCreateEngine
|
||||
xaQueryNumSupportedEngineInterfaces
|
||||
xaQuerySupportedEngineInterfaces
|
||||
@@ -0,0 +1,41 @@
|
||||
XA_IID_ANDROIDBUFFERQUEUESOURCE
|
||||
XA_IID_AUDIODECODERCAPABILITIES
|
||||
XA_IID_AUDIOENCODER
|
||||
XA_IID_AUDIOENCODERCAPABILITIES
|
||||
XA_IID_AUDIOIODEVICECAPABILITIES
|
||||
XA_IID_CAMERA
|
||||
XA_IID_CAMERACAPABILITIES
|
||||
XA_IID_CONFIGEXTENSION
|
||||
XA_IID_DEVICEVOLUME
|
||||
XA_IID_DYNAMICINTERFACEMANAGEMENT
|
||||
XA_IID_DYNAMICSOURCE
|
||||
XA_IID_ENGINE
|
||||
XA_IID_EQUALIZER
|
||||
XA_IID_IMAGECONTROLS
|
||||
XA_IID_IMAGEDECODERCAPABILITIES
|
||||
XA_IID_IMAGEEFFECTS
|
||||
XA_IID_IMAGEENCODER
|
||||
XA_IID_IMAGEENCODERCAPABILITIES
|
||||
XA_IID_LED
|
||||
XA_IID_METADATAEXTRACTION
|
||||
XA_IID_METADATAINSERTION
|
||||
XA_IID_METADATATRAVERSAL
|
||||
XA_IID_NULL
|
||||
XA_IID_OBJECT
|
||||
XA_IID_OUTPUTMIX
|
||||
XA_IID_PLAY
|
||||
XA_IID_PLAYBACKRATE
|
||||
XA_IID_PREFETCHSTATUS
|
||||
XA_IID_RADIO
|
||||
XA_IID_RDS
|
||||
XA_IID_RECORD
|
||||
XA_IID_SEEK
|
||||
XA_IID_SNAPSHOT
|
||||
XA_IID_STREAMINFORMATION
|
||||
XA_IID_THREADSYNC
|
||||
XA_IID_VIBRA
|
||||
XA_IID_VIDEODECODERCAPABILITIES
|
||||
XA_IID_VIDEOENCODER
|
||||
XA_IID_VIDEOENCODERCAPABILITIES
|
||||
XA_IID_VIDEOPOSTPROCESSING
|
||||
XA_IID_VOLUME
|
||||
3195
ndk/platforms/android-14/include/OMXAL/OpenMAXAL.h
Normal file
3195
ndk/platforms/android-14/include/OMXAL/OpenMAXAL.h
Normal file
File diff suppressed because it is too large
Load Diff
171
ndk/platforms/android-14/include/OMXAL/OpenMAXAL_Android.h
Normal file
171
ndk/platforms/android-14/include/OMXAL/OpenMAXAL_Android.h
Normal file
@@ -0,0 +1,171 @@
|
||||
/*
|
||||
* Copyright (C) 2010 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef OPENMAX_AL_ANDROID_H_
|
||||
#define OPENMAX_AL_ANDROID_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Android common types */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
typedef xa_int64_t XAAint64; /* 64 bit signed integer */
|
||||
|
||||
typedef xa_uint64_t XAAuint64; /* 64 bit unsigned integer */
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Android common types */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#define XA_ANDROID_VIDEOCODEC_VP8 ((XAuint32) 0x00000006)
|
||||
|
||||
#define XA_ANDROID_VIDEOPROFILE_VP8_MAIN ((XAuint32) 0x00000001)
|
||||
|
||||
#define XA_ANDROID_VIDEOLEVEL_VP8_VERSION0 ((XAuint32) 0x00000001)
|
||||
#define XA_ANDROID_VIDEOLEVEL_VP8_VERSION1 ((XAuint32) 0x00000002)
|
||||
#define XA_ANDROID_VIDEOLEVEL_VP8_VERSION2 ((XAuint32) 0x00000003)
|
||||
#define XA_ANDROID_VIDEOLEVEL_VP8_VERSION3 ((XAuint32) 0x00000004)
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Android Buffer Queue Interface */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
extern XA_API const XAInterfaceID XA_IID_ANDROIDBUFFERQUEUESOURCE;
|
||||
|
||||
struct XAAndroidBufferQueueItf_;
|
||||
typedef const struct XAAndroidBufferQueueItf_ * const * XAAndroidBufferQueueItf;
|
||||
|
||||
#define XA_ANDROID_ITEMKEY_NONE ((XAuint32) 0x00000000)
|
||||
#define XA_ANDROID_ITEMKEY_EOS ((XAuint32) 0x00000001)
|
||||
#define XA_ANDROID_ITEMKEY_DISCONTINUITY ((XAuint32) 0x00000002)
|
||||
#define XA_ANDROID_ITEMKEY_BUFFERQUEUEEVENT ((XAuint32) 0x00000003)
|
||||
#define XA_ANDROID_ITEMKEY_FORMAT_CHANGE ((XAuint32) 0x00000004)
|
||||
|
||||
#define XA_ANDROIDBUFFERQUEUEEVENT_NONE ((XAuint32) 0x00000000)
|
||||
#define XA_ANDROIDBUFFERQUEUEEVENT_PROCESSED ((XAuint32) 0x00000001)
|
||||
#if 0 // reserved for future use
|
||||
#define XA_ANDROIDBUFFERQUEUEEVENT_UNREALIZED ((XAuint32) 0x00000002)
|
||||
#define XA_ANDROIDBUFFERQUEUEEVENT_CLEARED ((XAuint32) 0x00000004)
|
||||
#define XA_ANDROIDBUFFERQUEUEEVENT_STOPPED ((XAuint32) 0x00000008)
|
||||
#define XA_ANDROIDBUFFERQUEUEEVENT_ERROR ((XAuint32) 0x00000010)
|
||||
#define XA_ANDROIDBUFFERQUEUEEVENT_CONTENT_END ((XAuint32) 0x00000020)
|
||||
#endif
|
||||
|
||||
typedef struct XAAndroidBufferItem_ {
|
||||
XAuint32 itemKey; // identifies the item
|
||||
XAuint32 itemSize;
|
||||
XAuint8 itemData[0];
|
||||
} XAAndroidBufferItem;
|
||||
|
||||
typedef XAresult (XAAPIENTRY *xaAndroidBufferQueueCallback)(
|
||||
XAAndroidBufferQueueItf caller,/* input */
|
||||
void *pCallbackContext, /* input */
|
||||
void *pBufferContext, /* input */
|
||||
void *pBufferData, /* input */
|
||||
XAuint32 dataSize, /* input */
|
||||
XAuint32 dataUsed, /* input */
|
||||
const XAAndroidBufferItem *pItems,/* input */
|
||||
XAuint32 itemsLength /* input */
|
||||
);
|
||||
|
||||
typedef struct XAAndroidBufferQueueState_ {
|
||||
XAuint32 count;
|
||||
XAuint32 index;
|
||||
} XAAndroidBufferQueueState;
|
||||
|
||||
struct XAAndroidBufferQueueItf_ {
|
||||
XAresult (*RegisterCallback) (
|
||||
XAAndroidBufferQueueItf self,
|
||||
xaAndroidBufferQueueCallback callback,
|
||||
void* pCallbackContext
|
||||
);
|
||||
|
||||
XAresult (*Clear) (
|
||||
XAAndroidBufferQueueItf self
|
||||
);
|
||||
|
||||
XAresult (*Enqueue) (
|
||||
XAAndroidBufferQueueItf self,
|
||||
void *pBufferContext,
|
||||
void *pData,
|
||||
XAuint32 dataLength,
|
||||
const XAAndroidBufferItem *pItems,
|
||||
XAuint32 itemsLength
|
||||
);
|
||||
|
||||
XAresult (*GetState) (
|
||||
XAAndroidBufferQueueItf self,
|
||||
XAAndroidBufferQueueState *pState
|
||||
);
|
||||
|
||||
|
||||
XAresult (*SetCallbackEventsMask) (
|
||||
XAAndroidBufferQueueItf self,
|
||||
XAuint32 eventFlags
|
||||
);
|
||||
|
||||
XAresult (*GetCallbackEventsMask) (
|
||||
XAAndroidBufferQueueItf self,
|
||||
XAuint32 *pEventFlags
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Android Buffer Queue Data Locator */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
/** Addendum to Data locator macros */
|
||||
#define XA_DATALOCATOR_ANDROIDBUFFERQUEUE ((XAuint32) 0x800007BE)
|
||||
|
||||
/** Android Buffer Queue-based data locator definition,
|
||||
* locatorType must be XA_DATALOCATOR_ANDROIDBUFFERQUEUE */
|
||||
typedef struct XADataLocator_AndroidBufferQueue_ {
|
||||
XAuint32 locatorType;
|
||||
XAuint32 numBuffers;
|
||||
} XADataLocator_AndroidBufferQueue;
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Android File Descriptor Data Locator */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
/** Addendum to Data locator macros */
|
||||
#define XA_DATALOCATOR_ANDROIDFD ((XAuint32) 0x800007BC)
|
||||
|
||||
#define XA_DATALOCATOR_ANDROIDFD_USE_FILE_SIZE ((XAAint64) 0xFFFFFFFFFFFFFFFFll)
|
||||
|
||||
/** File Descriptor-based data locator definition, locatorType must be XA_DATALOCATOR_ANDROIDFD */
|
||||
typedef struct XADataLocator_AndroidFD_ {
|
||||
XAuint32 locatorType;
|
||||
XAint32 fd;
|
||||
XAAint64 offset;
|
||||
XAAint64 length;
|
||||
} XADataLocator_AndroidFD;
|
||||
|
||||
/**
|
||||
* MIME types required for data in Android Buffer Queues
|
||||
*/
|
||||
#define XA_ANDROID_MIME_MP2TS ((XAchar *) "video/mp2ts")
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* OPENMAX_AL_ANDROID_H_ */
|
||||
67
ndk/platforms/android-14/include/OMXAL/OpenMAXAL_Platform.h
Normal file
67
ndk/platforms/android-14/include/OMXAL/OpenMAXAL_Platform.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright (c) 2007-2010 The Khronos Group Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and/or associated documentation files (the
|
||||
* "Materials "), to deal in the Materials without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
* permit persons to whom the Materials are furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included
|
||||
* in all copies or substantial portions of the Materials.
|
||||
*
|
||||
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*
|
||||
* OpenMAXAL_Platform.h - OpenMAX AL version 1.0.1
|
||||
*
|
||||
*/
|
||||
|
||||
/****************************************************************************/
|
||||
/* NOTE: This file contains definitions for the base types and the */
|
||||
/* XAAPIENTRY macro. This file **WILL NEED TO BE EDITED** to provide */
|
||||
/* the correct definitions specific to the platform being used. */
|
||||
/****************************************************************************/
|
||||
|
||||
#ifndef _OPENMAXAL_PLATFORM_H_
|
||||
#define _OPENMAXAL_PLATFORM_H_
|
||||
|
||||
typedef unsigned char xa_uint8_t;
|
||||
typedef signed char xa_int8_t;
|
||||
typedef unsigned short xa_uint16_t;
|
||||
typedef signed short xa_int16_t;
|
||||
typedef unsigned int /*long*/ xa_uint32_t;
|
||||
typedef signed int /*long*/ xa_int32_t;
|
||||
typedef long long xa_int64_t;
|
||||
typedef unsigned long long xa_uint64_t;
|
||||
|
||||
#ifndef XAAPIENTRY
|
||||
#define XAAPIENTRY /* override per-platform */
|
||||
#endif
|
||||
|
||||
/** The XA_API is a platform-specific macro used
|
||||
* to declare OPENMAX AL function prototypes. It is modified to meet the
|
||||
* requirements for a particular platform
|
||||
*
|
||||
* Example:
|
||||
* #ifdef __SYMBIAN32__
|
||||
* # define XA_API __declspec(dllimport)
|
||||
* #endif
|
||||
*/
|
||||
|
||||
#ifndef XA_API
|
||||
#ifdef __GNUC__
|
||||
#define XA_API
|
||||
#else
|
||||
#define XA_API __declspec(dllimport)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* _OPENMAXAL_PLATFORM_H_ */
|
||||
Reference in New Issue
Block a user