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