1 /*
2  * Copyright (C) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef MEDIA_AVCODEC_AUDIO_COMMON_H
17 #define MEDIA_AVCODEC_AUDIO_COMMON_H
18 
19 #include <cstdint>
20 namespace OHOS {
21 namespace MediaAVCodec {
22 /**
23  * @enum Audio sample formats
24  * @since 3.1
25  * @version 3.1
26  */
27 enum AudioSampleFormat : int32_t {
28     SAMPLE_U8 = 0,
29     SAMPLE_S16LE = 1,
30     SAMPLE_S24LE = 2,
31     SAMPLE_S32LE = 3,
32     SAMPLE_F32LE = 4,
33     SAMPLE_U8P = 5,
34     SAMPLE_S16P = 6,
35     SAMPLE_S24P = 7,
36     SAMPLE_S32P = 8,
37     SAMPLE_F32P = 9,
38     INVALID_WIDTH = -1
39 };
40 
41 /**
42  * @enum Audio AAC Profile
43  * @brief AAC mode type.  Note that the term profile is used with the MPEG-2
44  * standard and the term object type and profile is used with MPEG-4
45  * @since 3.1
46  * @version 3.1
47  */
48 enum AACProfile : int32_t {
49     AAC_PROFILE_LC = 0,
50     AAC_PROFILE_ELD = 1,
51     AAC_PROFILE_ERLC = 2,
52     AAC_PROFILE_HE = 3,
53     AAC_PROFILE_HE_V2 = 4,
54     AAC_PROFILE_LD = 5,
55     AAC_PROFILE_MAIN = 6,
56 };
57 } // namespace MediaAVCodec
58 } // namespace OHOS
59 #endif // MEDIA_AVCODEC_AV_COMMOM_H