• 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 };
28 
29 enum class CodecServiceInterfaceCode {
30     SET_LISTENER_OBJ = 0,
31     INIT,
32     CONFIGURE,
33     START,
34     STOP,
35     FLUSH,
36     RESET,
37     RELEASE,
38     NOTIFY_EOS,
39     CREATE_INPUT_SURFACE,
40     SET_OUTPUT_SURFACE,
41     QUEUE_INPUT_BUFFER,
42     GET_OUTPUT_FORMAT,
43     RELEASE_OUTPUT_BUFFER,
44     SET_PARAMETER,
45     SET_INPUT_SURFACE,
46     DEQUEUE_INPUT_BUFFER,
47     DEQUEUE_OUTPUT_BUFFER,
48     GET_INPUT_FORMAT,
49     DESTROY_STUB
50 };
51 
52 enum class AVCodecListServiceInterfaceCode {
53     FIND_DECODER = 0,
54     FIND_ENCODER,
55     GET_CAPABILITY,
56     DESTROY
57 };
58 
59 enum class AVCodecServiceInterfaceCode {
60     GET_SUBSYSTEM = 0,
61 };
62 } // namespace MediaAVCodec
63 } // namespace OHOS
64 #endif // AV_CODEC_SERVICE_IPC_INTERFACE_CODE_H