1 /* 2 * Copyright (C) 2021 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 PROCESSOR_VDEC_IMPL_H 17 #define PROCESSOR_VDEC_IMPL_H 18 19 #include "processor_base.h" 20 #include "nocopyable.h" 21 22 namespace OHOS { 23 namespace Media { 24 class ProcessorVdecImpl : public ProcessorBase, public NoCopyable { 25 public: 26 ProcessorVdecImpl(); 27 ~ProcessorVdecImpl() override; 28 29 std::shared_ptr<ProcessorConfig> GetInputPortConfig() override; 30 std::shared_ptr<ProcessorConfig> GetOutputPortConfig() override; 31 32 protected: 33 int32_t ProcessMandatory(const Format &format) override; 34 int32_t ProcessOptional(const Format &format) override; 35 36 private: 37 int32_t width_ = 0; 38 int32_t height_ = 0; 39 int32_t pixelFormat_ = 0; 40 int32_t frameRate_ = 0; 41 std::string gstPixelFormat_; 42 int32_t maxInputSize_ = 0; 43 int32_t videoRotation_ = 0; 44 }; 45 } // namespace Media 46 } // namespace OHOS 47 #endif // PROCESSOR_VDEC_IMPL_H