• 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 AV_CODEC_SERVICE_IPC_INTERFACE_CODE_H
17 #define AV_CODEC_SERVICE_IPC_INTERFACE_CODE_H
18 
19 /* SAID: 3011 */
20 namespace OHOS {
21 namespace MediaAVCodec {
22 enum class CodecListenerInterfaceCode {
23     ON_ERROR = 0,
24     ON_OUTPUT_FORMAT_CHANGED,
25     ON_INPUT_BUFFER_AVAILABLE,
26     ON_OUTPUT_BUFFER_AVAILABLE,
27     ON_OUTPUT_BUFFER_BINDED,
28     ON_OUTPUT_BUFFER_UN_BINDED
29 };
30 
31 enum class CodecServiceInterfaceCode {
32     SET_LISTENER_OBJ = 0,
33     INIT,
34     CONFIGURE,
35     PREPARE,
36     START,
37     STOP,
38     FLUSH,
39     RESET,
40     RELEASE,
41     NOTIFY_EOS,
42     CREATE_INPUT_SURFACE,
43     SET_OUTPUT_SURFACE,
44     QUEUE_INPUT_BUFFER,
45     GET_OUTPUT_FORMAT,
46     RELEASE_OUTPUT_BUFFER,
47     SET_PARAMETER,
48     SET_INPUT_SURFACE,
49     DEQUEUE_INPUT_BUFFER,
50     DEQUEUE_OUTPUT_BUFFER,
51     GET_INPUT_FORMAT,
52     DESTROY_STUB,
53     SET_DECRYPT_CONFIG,
54     RENDER_OUTPUT_BUFFER_AT_TIME,
55     SET_CUSTOM_BUFFER,
56     GET_CHANNEL_ID,
57     SET_LPP_MODE,
58     NOTIFY_MEMORY_EXCHANGE,
59     NOTIFY_FREEZE,
60     NOTIFY_ACTIVE,
61     NOTIFY_MEMORY_RECYCLE,
62     NOTIFY_MEMORY_WRITE_BACK,
63     NOTIFY_SUSPEND,
64     NOTIFY_RESUME,
65 };
66 
67 enum class AVCodecListServiceInterfaceCode {
68     FIND_DECODER = 0,
69     FIND_ENCODER,
70     GET_CAPABILITY,
71     DESTROY
72 };
73 
74 enum class AVCodecServiceInterfaceCode {
75     GET_SUBSYSTEM = 0,
76     FREEZE,
77     ACTIVE,
78     ACTIVEALL
79 };
80 } // namespace MediaAVCodec
81 } // namespace OHOS
82 #endif // AV_CODEC_SERVICE_IPC_INTERFACE_CODE_H