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_AUDIO_COMMON_INFO_H 17 #define AV_CODEC_AUDIO_COMMON_INFO_H 18 19 namespace OHOS { 20 namespace MediaAVCodec { 21 enum class BufferStatus { 22 IDLE, 23 OWEN_BY_CLIENT, 24 }; 25 26 enum class CodecState { 27 RELEASED, 28 INITIALIZED, 29 FLUSHED, 30 RUNNING, 31 32 INITIALIZING, // RELEASED -> INITIALIZED 33 STARTING, // INITIALIZED -> RUNNING 34 STOPPING, // RUNNING -> INITIALIZED 35 FLUSHING, // RUNNING -> FLUSHED 36 RESUMING, // FLUSHED -> RUNNING 37 RELEASING, // {ANY EXCEPT RELEASED} -> RELEASED 38 CONFIGURED, 39 }; 40 } // namespace MediaAVCodec 41 } // namespace OHOS 42 43 #endif