1 /* 2 * Copyright (c) 2019 Rockchip Corporation 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 #ifndef _FEC_PARAM_STREAM_H_ 18 #define _FEC_PARAM_STREAM_H_ 19 #include <map> 20 #include "Stream.h" 21 #include "rk_aiq_pool.h" 22 #include "Isp20Params.h" 23 24 using namespace XCam; 25 26 namespace RkCam { 27 28 class CamHwIsp20; 29 class FecParamStream : public RKStream 30 { 31 public: 32 explicit FecParamStream (SmartPtr<V4l2Device> dev, int type); 33 explicit FecParamStream (const rk_sensor_full_info_t *s_info); 34 virtual ~FecParamStream (); 35 XCamReturn config_params (uint32_t frameId, SmartPtr<cam3aResult>& result); 36 void set_devices (CamHwIsp20* camHw, SmartPtr<V4l2SubDevice> isppdev); 37 virtual void start (); 38 virtual void stop (); 39 protected: 40 XCamReturn configToDrv(uint32_t frameId); 41 42 private: 43 CamHwIsp20 *mCamHw; 44 SmartPtr<V4l2SubDevice> mIsppSubDev; 45 SmartPtr<IspParamsAssembler> mParamsAssembler; 46 struct rkispp_params_feccfg last_ispp_fec_params; 47 48 }; 49 50 } 51 #endif 52