xref: /aosp_15_r20/frameworks/wilhelm/include/SLES/OpenSLES_AndroidMetadata.h (revision bebae9c0e76121f8312ccb50385c080b3a0b023c)
1*bebae9c0SAndroid Build Coastguard Worker /*
2*bebae9c0SAndroid Build Coastguard Worker  * Copyright (C) 2011 The Android Open Source Project
3*bebae9c0SAndroid Build Coastguard Worker  *
4*bebae9c0SAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
5*bebae9c0SAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
6*bebae9c0SAndroid Build Coastguard Worker  * You may obtain a copy of the License at
7*bebae9c0SAndroid Build Coastguard Worker  *
8*bebae9c0SAndroid Build Coastguard Worker  *      http://www.apache.org/licenses/LICENSE-2.0
9*bebae9c0SAndroid Build Coastguard Worker  *
10*bebae9c0SAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
11*bebae9c0SAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
12*bebae9c0SAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*bebae9c0SAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
14*bebae9c0SAndroid Build Coastguard Worker  * limitations under the License.
15*bebae9c0SAndroid Build Coastguard Worker  */
16*bebae9c0SAndroid Build Coastguard Worker 
17*bebae9c0SAndroid Build Coastguard Worker #ifndef OPENSL_ES_ANDROIDMETADATA_H_
18*bebae9c0SAndroid Build Coastguard Worker #define OPENSL_ES_ANDROIDMETADATA_H_
19*bebae9c0SAndroid Build Coastguard Worker 
20*bebae9c0SAndroid Build Coastguard Worker #ifdef __cplusplus
21*bebae9c0SAndroid Build Coastguard Worker extern "C" {
22*bebae9c0SAndroid Build Coastguard Worker #endif
23*bebae9c0SAndroid Build Coastguard Worker 
24*bebae9c0SAndroid Build Coastguard Worker /*---------------------------------------------------------------------------*/
25*bebae9c0SAndroid Build Coastguard Worker /* Android metadata keys                                                     */
26*bebae9c0SAndroid Build Coastguard Worker /*---------------------------------------------------------------------------*/
27*bebae9c0SAndroid Build Coastguard Worker 
28*bebae9c0SAndroid Build Coastguard Worker /**
29*bebae9c0SAndroid Build Coastguard Worker  * Additional metadata keys to be used in SLMetadataExtractionItf:
30*bebae9c0SAndroid Build Coastguard Worker  *   the ANDROID_KEY_PCMFORMAT_* keys follow the fields of the SLDataFormat_PCM struct, and as such
31*bebae9c0SAndroid Build Coastguard Worker  *   all values corresponding to these keys are of SLuint32 type, and are defined as the fields
32*bebae9c0SAndroid Build Coastguard Worker  *   of the same name in SLDataFormat_PCM.  The exception is that sample rate is expressed here
33*bebae9c0SAndroid Build Coastguard Worker  *   in Hz units, rather than in milliHz units.
34*bebae9c0SAndroid Build Coastguard Worker  */
35*bebae9c0SAndroid Build Coastguard Worker #define ANDROID_KEY_PCMFORMAT_NUMCHANNELS   "AndroidPcmFormatNumChannels"
36*bebae9c0SAndroid Build Coastguard Worker #define ANDROID_KEY_PCMFORMAT_SAMPLERATE    "AndroidPcmFormatSampleRate"
37*bebae9c0SAndroid Build Coastguard Worker #define ANDROID_KEY_PCMFORMAT_BITSPERSAMPLE "AndroidPcmFormatBitsPerSample"
38*bebae9c0SAndroid Build Coastguard Worker #define ANDROID_KEY_PCMFORMAT_CONTAINERSIZE "AndroidPcmFormatContainerSize"
39*bebae9c0SAndroid Build Coastguard Worker #define ANDROID_KEY_PCMFORMAT_CHANNELMASK   "AndroidPcmFormatChannelMask"
40*bebae9c0SAndroid Build Coastguard Worker #define ANDROID_KEY_PCMFORMAT_ENDIANNESS    "AndroidPcmFormatEndianness"
41*bebae9c0SAndroid Build Coastguard Worker 
42*bebae9c0SAndroid Build Coastguard Worker 
43*bebae9c0SAndroid Build Coastguard Worker #ifdef __cplusplus
44*bebae9c0SAndroid Build Coastguard Worker }
45*bebae9c0SAndroid Build Coastguard Worker #endif /* __cplusplus */
46*bebae9c0SAndroid Build Coastguard Worker 
47*bebae9c0SAndroid Build Coastguard Worker #endif /* OPENSL_ES_ANDROIDMETADATA_H_ */
48