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 _TNR_STREAM_PROC_UNIT_H_ 18*4882a593Smuzhiyun #define _TNR_STREAM_PROC_UNIT_H_ 19*4882a593Smuzhiyun #include "TnrStatsStream.h" 20*4882a593Smuzhiyun #include "rk_aiq_pool.h" 21*4882a593Smuzhiyun #include "Isp20Params.h" 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun using namespace XCam; 24*4882a593Smuzhiyun namespace RkCam { 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun class CamHwIsp20; 27*4882a593Smuzhiyun class TnrStreamProcUnit 28*4882a593Smuzhiyun { 29*4882a593Smuzhiyun public: 30*4882a593Smuzhiyun TnrStreamProcUnit (const rk_sensor_full_info_t *s_info); 31*4882a593Smuzhiyun virtual ~TnrStreamProcUnit (); 32*4882a593Smuzhiyun void set_devices (CamHwIsp20 *camHw, SmartPtr<V4l2SubDevice> isppdev); 33*4882a593Smuzhiyun void start (); 34*4882a593Smuzhiyun void stop (); 35*4882a593Smuzhiyun void pause (); 36*4882a593Smuzhiyun void resume (); 37*4882a593Smuzhiyun XCamReturn config_params(uint32_t frameId, SmartPtr<cam3aResult>& result); 38*4882a593Smuzhiyun protected: 39*4882a593Smuzhiyun XCamReturn configToDrv(uint32_t frameId); 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun private: 42*4882a593Smuzhiyun XCAM_DEAD_COPY (TnrStreamProcUnit); 43*4882a593Smuzhiyun SmartPtr<V4l2Device> mTnrStatsDev; 44*4882a593Smuzhiyun SmartPtr<V4l2Device> mTnrParamsDev; 45*4882a593Smuzhiyun SmartPtr<RKStream> mTnrParamStream; 46*4882a593Smuzhiyun SmartPtr<TnrStatsStream> mTnrStatsStream; 47*4882a593Smuzhiyun CamHwIsp20 *mCamHw; 48*4882a593Smuzhiyun SmartPtr<V4l2SubDevice> mIsppSubDev; 49*4882a593Smuzhiyun SmartPtr<IspParamsAssembler> mParamsAssembler; 50*4882a593Smuzhiyun struct rkispp_params_tnrcfg last_ispp_tnr_params; 51*4882a593Smuzhiyun }; 52*4882a593Smuzhiyun 53*4882a593Smuzhiyun 54*4882a593Smuzhiyun } 55*4882a593Smuzhiyun #endif 56