• 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     static constexpr const char VIDEO_VVC[] = "video/vvc";
32     static constexpr const char VIDEO_RV30[] = "video/rv30";
33     static constexpr const char VIDEO_RV40[] = "video/rv40";
34 
35     static constexpr const char AUDIO_AMR_NB[] = "audio/3gpp";
36     static constexpr const char AUDIO_AMR_WB[] = "audio/amr-wb";
37     static constexpr const char AUDIO_MPEG[] = "audio/mpeg";
38     static constexpr const char AUDIO_AAC[] = "audio/mp4a-latm";
39     static constexpr const char AUDIO_VORBIS[] = "audio/vorbis";
40     static constexpr const char AUDIO_OPUS[] = "audio/opus";
41     static constexpr const char AUDIO_FLAC[] = "audio/flac";
42     static constexpr const char AUDIO_RAW[] = "audio/raw";
43     static constexpr const char AUDIO_G711MU[] = "audio/g711mu";
44     static constexpr const char AUDIO_AVS3DA[] = "audio/av3a";
45     static constexpr const char AUDIO_LBVC[] = "audio/lbvc";
46     static constexpr const char AUDIO_APE[] = "audio/x-ape";
47     static constexpr const char AUDIO_COOK[] = "audio/cook";
48     static constexpr const char AUDIO_AC3[] = "audio/ac3";
49 
50     static constexpr const char IMAGE_JPG[] = "image/jpeg";
51     static constexpr const char IMAGE_PNG[] = "image/png";
52     static constexpr const char IMAGE_BMP[] = "image/bmp";
53 
54     static constexpr const char MEDIA_MP4[] = "media/mp4";
55     static constexpr const char MEDIA_M4A[] = "media/m4a";
56     static constexpr const char MEDIA_AMR[] = "media/amr";
57     static constexpr const char MEDIA_MP3[] = "media/mp3";
58     static constexpr const char MEDIA_WAV[] = "media/wav";
59     static constexpr const char MEDIA_AAC[] = "media/aac";
60 
61     static constexpr const char TEXT_SUBRIP[] = "application/x-subrip";
62     static constexpr const char TEXT_WEBVTT[] = "text/vtt";
63     static constexpr const char TIMED_METADATA[] = "meta/timed-metadata";
64 
65     static constexpr const char INVALID_TYPE[] = "invalid";
66 };
67 } // namespace Plugins
68 } // namespace Media
69 } // namespace OHOS
70 #endif // MEDIA_FOUNDATION_MIME_TYPE_H
71