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