xref: /aosp_15_r20/system/media/audio_utils/private/private.h (revision b9df5ad1c9ac98a7fefaac271a55f7ae3db05414)
1*b9df5ad1SAndroid Build Coastguard Worker /*
2*b9df5ad1SAndroid Build Coastguard Worker  * Copyright (C) 2014 The Android Open Source Project
3*b9df5ad1SAndroid Build Coastguard Worker  *
4*b9df5ad1SAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
5*b9df5ad1SAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
6*b9df5ad1SAndroid Build Coastguard Worker  * You may obtain a copy of the License at
7*b9df5ad1SAndroid Build Coastguard Worker  *
8*b9df5ad1SAndroid Build Coastguard Worker  *      http://www.apache.org/licenses/LICENSE-2.0
9*b9df5ad1SAndroid Build Coastguard Worker  *
10*b9df5ad1SAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
11*b9df5ad1SAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
12*b9df5ad1SAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*b9df5ad1SAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
14*b9df5ad1SAndroid Build Coastguard Worker  * limitations under the License.
15*b9df5ad1SAndroid Build Coastguard Worker  */
16*b9df5ad1SAndroid Build Coastguard Worker 
17*b9df5ad1SAndroid Build Coastguard Worker #ifndef ANDROID_AUDIO_PRIVATE_H
18*b9df5ad1SAndroid Build Coastguard Worker #define ANDROID_AUDIO_PRIVATE_H
19*b9df5ad1SAndroid Build Coastguard Worker 
20*b9df5ad1SAndroid Build Coastguard Worker #include <stdint.h>
21*b9df5ad1SAndroid Build Coastguard Worker 
22*b9df5ad1SAndroid Build Coastguard Worker __BEGIN_DECLS
23*b9df5ad1SAndroid Build Coastguard Worker 
24*b9df5ad1SAndroid Build Coastguard Worker /* Defines not necessary for external use but kept here to be common
25*b9df5ad1SAndroid Build Coastguard Worker  * to the audio_utils library.
26*b9df5ad1SAndroid Build Coastguard Worker  */
27*b9df5ad1SAndroid Build Coastguard Worker 
28*b9df5ad1SAndroid Build Coastguard Worker /* struct representation of 3 bytes for packed PCM 24 bit data.
29*b9df5ad1SAndroid Build Coastguard Worker  * The naming follows the ARM NEON convention.
30*b9df5ad1SAndroid Build Coastguard Worker  */
31*b9df5ad1SAndroid Build Coastguard Worker typedef struct {uint8_t c[3];} __attribute__((__packed__)) uint8x3_t;
32*b9df5ad1SAndroid Build Coastguard Worker 
33*b9df5ad1SAndroid Build Coastguard Worker __END_DECLS
34*b9df5ad1SAndroid Build Coastguard Worker 
35*b9df5ad1SAndroid Build Coastguard Worker #endif /*ANDROID_AUDIO_PRIVATE_H*/
36