• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 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 I_CODEC_COMMON_H
17 #define I_CODEC_COMMON_H
18 #include <memory>
19 
20 namespace OHOS {
21 namespace Media {
22 enum GstCodecRet : int32_t {
23     GST_CODEC_ERROR = -1,
24     GST_CODEC_OK,
25     GST_CODEC_FORMAT_CHANGE,
26     GST_CODEC_EOS,
27     GST_CODEC_FLUSH,
28     GST_CODEC_NO_BUFFER
29 };
30 
31 enum GstCodecDirect : int32_t {
32     GST_CODEC_INPUT = 1,
33     GST_CODEC_OUTPUT = 2,
34     GST_CODEC_ALL = 3,
35 };
36 
37 enum GstCompressionFormat : int32_t {
38     GST_AVC,
39     GST_HEVC,
40 };
41 
42 enum GstCodecParamKey : int32_t {
43     GST_VIDEO_INPUT_COMMON,
44     GST_VIDEO_OUTPUT_COMMON,
45     GST_VIDEO_FORMAT,
46     GST_VIDEO_SURFACE_INIT,
47     GST_STATIC_BITRATE,
48     GST_DYNAMIC_BITRATE,
49     GST_REQUEST_I_FRAME,
50     GST_VENDOR,
51     GST_VIDEO_ENCODER_CONFIG,
52     GST_DYNAMIC_FRAME_RATE,
53 };
54 } // namespace Media
55 } // namespace OHOS
56 #endif // I_CODEC_COMMON_H
57