• 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 #include "native_avcodec_base.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 const char *OH_AVCODEC_MIMETYPE_VIDEO_AVC = "video/avc";
23 const char *OH_AVCODEC_MIMETYPE_VIDEO_MPEG4 = "video/mp4v-es";
24 const char *OH_AVCODEC_MIMETYPE_VIDEO_HEVC = "video/hevc";
25 const char *OH_AVCODEC_MIMETYPE_AUDIO_AAC = "audio/mp4a-latm";
26 const char *OH_AVCODEC_MIMETYPE_AUDIO_FLAC = "audio/flac";
27 const char *OH_AVCODEC_MIMETYPE_AUDIO_VORBIS = "audio/vorbis";
28 const char *OH_AVCODEC_MIMETYPE_AUDIO_MPEG = "audio/mpeg";
29 const char *OH_AVCODEC_MIMETYPE_IMAGE_JPG = "image/jpeg";
30 const char *OH_AVCODEC_MIMETYPE_IMAGE_PNG = "image/png";
31 const char *OH_AVCODEC_MIMETYPE_IMAGE_BMP = "image/bmp";
32 
33 const char *OH_ED_KEY_TIME_STAMP = "timeStamp";
34 const char *OH_ED_KEY_EOS = "endOfStream";
35 const char *OH_MD_KEY_TRACK_TYPE = "track_type";
36 const char *OH_MD_KEY_CODEC_MIME = "codec_mime";
37 const char *OH_MD_KEY_DURATION = "duration";
38 const char *OH_MD_KEY_BITRATE = "bitrate";
39 const char *OH_MD_KEY_MAX_INPUT_SIZE = "max_input_size";
40 const char *OH_MD_KEY_WIDTH = "width";
41 const char *OH_MD_KEY_HEIGHT = "height";
42 const char *OH_MD_KEY_PIXEL_FORMAT = "pixel_format";
43 const char *OH_MD_KEY_AUDIO_SAMPLE_FORMAT = "audio_sample_format";
44 const char *OH_MD_KEY_FRAME_RATE = "frame_rate";
45 const char *OH_MD_KEY_VIDEO_ENCODE_BITRATE_MODE = "video_encode_bitrate_mode";
46 const char *OH_MD_KEY_PROFILE = "codec_profile";
47 const char *OH_MD_KEY_AUD_CHANNEL_COUNT = "channel_count";
48 const char *OH_MD_KEY_AUD_SAMPLE_RATE = "sample_rate";
49 const char *OH_MD_KEY_I_FRAME_INTERVAL = "i_frame_interval";
50 const char *OH_MD_KEY_ROTATION = "rotation_angle";
51 const char *OH_MD_KEY_CODEC_CONFIG = "codec_config";
52 const char *OH_MD_KEY_REQUEST_I_FRAME = "req_i_frame";
53 const char *OH_MD_KEY_RANGE_FLAG = "range_flag";
54 const char *OH_MD_KEY_COLOR_PRIMARIES = "color_primaries";
55 const char *OH_MD_KEY_TRANSFER_CHARACTERISTICS = "transfer_characteristics";
56 const char *OH_MD_KEY_MATRIX_COEFFICIENTS = "matrix_coefficients";
57 const char *OH_MD_KEY_QUALITY = "quality";
58 const char *OH_MD_KEY_CHANNEL_LAYOUT = "channel_layout";
59 const char *OH_MD_KEY_BITS_PER_CODED_SAMPLE = "bits_per_coded_sample";
60 const char *OH_MD_KEY_AAC_IS_ADTS = "aac_is_adts";
61 const char *OH_MD_KEY_SBR = "sbr";
62 const char *OH_MD_KEY_COMPLIANCE_LEVEL = "compliance_level";
63 const char *OH_MD_KEY_IDENTIFICATION_HEADER = "identification_header";
64 const char *OH_MD_KEY_SETUP_HEADER = "setup_header";
65 const char *OH_MD_KEY_SCALING_MODE = "scale_type";
66 const char *OH_MD_MAX_INPUT_BUFFER_COUNT = "max_input_buffer_count";
67 const char *OH_MD_MAX_OUTPUT_BUFFER_COUNT = "max_output_buffer_count";
68 
69 const char *OH_MD_KEY_TITLE = "title";
70 const char *OH_MD_KEY_ARTIST = "artist";
71 const char *OH_MD_KEY_ALBUM = "album";
72 const char *OH_MD_KEY_ALBUM_ARTIST = "album_artist";
73 const char *OH_MD_KEY_DATE = "date";
74 const char *OH_MD_KEY_COMMENT = "comment";
75 const char *OH_MD_KEY_GENRE = "genre";
76 const char *OH_MD_KEY_COPYRIGHT = "copyright";
77 const char *OH_MD_KEY_LANGUAGE = "language";
78 const char *OH_MD_KEY_DESCRIPTION = "description";
79 const char *OH_MD_KEY_LYRICS = "lyrics";
80 const char *OH_MD_KEY_TRACK_COUNT = "track_count";
81 #ifdef __cplusplus
82 }
83 #endif
84