xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/hwi/isp20/Isp20StatsBuffer.cpp (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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 
18 #include "Isp20StatsBuffer.h"
19 
20 namespace RkCam {
21 
Isp20StatsBuffer(SmartPtr<V4l2Buffer> buf,SmartPtr<V4l2Device> & device,SmartPtr<BaseSensorHw> sensor,ICamHw * camHw,SmartPtr<RkAiqAfInfoProxy> AfParams,SmartPtr<RkAiqIrisParamsProxy> IrisParams)22 Isp20StatsBuffer::Isp20StatsBuffer(SmartPtr<V4l2Buffer> buf,
23                                    SmartPtr<V4l2Device> &device,
24                                    SmartPtr<BaseSensorHw> sensor,
25                                    ICamHw *camHw,
26                                    SmartPtr<RkAiqAfInfoProxy> AfParams,
27                                    SmartPtr<RkAiqIrisParamsProxy> IrisParams)
28     : V4l2BufferProxy(buf, device)
29 {
30     ENTER_CAMHW_FUNCTION();
31     mSensor = sensor;
32     mCamHw = camHw;
33     _afParams = AfParams;
34     _irisParams = IrisParams;
35     EXIT_CAMHW_FUNCTION();
36 }
37 
SofEventBuffer(SmartPtr<SofEventData> & buf,SmartPtr<V4l2Device> & device)38 SofEventBuffer::SofEventBuffer(SmartPtr<SofEventData> &buf,
39                                    SmartPtr<V4l2Device> &device)
40     : BufferProxy (buf)
41 {
42     ENTER_CAMHW_FUNCTION();
43     //to do
44     //_sofParams = new
45     //_sofInfo = new RKAiqSofInfo_t();
46     //_sofInfo->timestamp = _timestamp = timestamp;
47     //_sofInfo->frameid = _frameid = frameid;
48     EXIT_CAMHW_FUNCTION();
49 }
50 
51 SmartPtr<SofEventData>
get_data()52 SofEventBuffer::get_data()
53 {
54     SmartPtr<BufferData> buf = get_buffer_data ();
55     return buf.dynamic_cast_ptr<SofEventData>();
56 }
57 
58 } //namspace RkCam
59