• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_FOUNDATION_MIME_TYPE_H
17 #define MEDIA_FOUNDATION_MIME_TYPE_H
18 
19 namespace OHOS {
20 namespace Media {
21 namespace Plugins {
22 class MimeType {
23 public:
24     static constexpr const char VIDEO_H263[] = "video/h263";
25     static constexpr const char VIDEO_AVC[] = "video/avc";
26     static constexpr const char VIDEO_MPEG2[] = "video/mpeg2";
27     static constexpr const char VIDEO_HEVC[] = "video/hevc";
28     static constexpr const char VIDEO_MPEG4[] = "video/mp4v-es";
29     static constexpr const char VIDEO_VP8[] = "video/x-vnd.on2.vp8";
30     static constexpr const char VIDEO_VP9[] = "video/x-vnd.on2.vp9";
31 
32     static constexpr const char AUDIO_AMR_NB[] = "audio/3gpp";
33     static constexpr const char AUDIO_AMR_WB[] = "audio/amr-wb";
34     static constexpr const char AUDIO_MPEG[] = "audio/mpeg";
35     static constexpr const char AUDIO_AAC[] = "audio/mp4a-latm";
36     static constexpr const char AUDIO_VORBIS[] = "audio/vorbis";
37     static constexpr const char AUDIO_OPUS[] = "audio/opus";
38     static constexpr const char AUDIO_FLAC[] = "audio/flac";
39     static constexpr const char AUDIO_RAW[] = "audio/raw";
40     static constexpr const char AUDIO_G711MU[] = "audio/g711mu";
41     static constexpr const char AUDIO_AVS3DA[] = "audio/av3a";
42 
43     static constexpr const char IMAGE_JPG[] = "image/jpeg";
44     static constexpr const char IMAGE_PNG[] = "image/png";
45     static constexpr const char IMAGE_BMP[] = "image/bmp";
46 
47     static constexpr const char MEDIA_MP4[] = "media/mp4";
48     static constexpr const char MEDIA_M4A[] = "media/m4a";
49 };
50 } // namespace Plugins
51 } // namespace Media
52 } // namespace OHOS
53 #endif // MEDIA_FOUNDATION_MIME_TYPE_H