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 #include "avcodec_log.h" 17 #include "codecbase.h" 18 19 namespace { 20 constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, LOG_DOMAIN, "CodecBase"}; 21 } 22 23 namespace OHOS { 24 namespace MediaAVCodec { NotifyEos()25int32_t CodecBase::NotifyEos() 26 { 27 AVCODEC_LOGW("NotifyEos is not supported"); 28 return 0; 29 } 30 CreateInputSurface()31sptr<Surface> CodecBase::CreateInputSurface() 32 { 33 AVCODEC_LOGW("CreateInputSurface is not supported"); 34 return nullptr; 35 } 36 SetOutputSurface(sptr<Surface> surface)37int32_t CodecBase::SetOutputSurface(sptr<Surface> surface) 38 { 39 (void)surface; 40 AVCODEC_LOGW("SetOutputSurface is not supported"); 41 return 0; 42 } 43 RenderOutputBuffer(uint32_t index)44int32_t CodecBase::RenderOutputBuffer(uint32_t index) 45 { 46 (void)index; 47 AVCODEC_LOGW("RenderOutputBuffer is not supported"); 48 return 0; 49 } 50 SignalRequestIDRFrame()51int32_t CodecBase::SignalRequestIDRFrame() 52 { 53 AVCODEC_LOGW("SignalRequestIDRFrame is not supported"); 54 return 0; 55 } 56 GetInputFormat(Format & format)57int32_t CodecBase::GetInputFormat(Format& format) 58 { 59 (void)format; 60 AVCODEC_LOGW("GetInputFormat is not supported"); 61 return 0; 62 } 63 } // namespace MediaAVCodec 64 } // namespace OHOS 65