ipa: rkisp1: Add debug log for the sensor controls being set
In the algorithm code a lot of information is logged in debug log level, but there is no place where the values sent to the sensor get logged. Add such a log message. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
bb3b8f0fec
commit
94e94c6e8d
1 changed files with 4 additions and 0 deletions
|
@ -455,6 +455,10 @@ void IPARkISP1::setControls(unsigned int frame)
|
||||||
uint32_t gain = context_.camHelper->gainCode(frameContext.agc.gain);
|
uint32_t gain = context_.camHelper->gainCode(frameContext.agc.gain);
|
||||||
uint32_t vblank = frameContext.agc.vblank;
|
uint32_t vblank = frameContext.agc.vblank;
|
||||||
|
|
||||||
|
LOG(IPARkISP1, Debug)
|
||||||
|
<< "Set controls for frame " << frame << ": exposure " << exposure
|
||||||
|
<< ", gain " << frameContext.agc.gain << ", vblank " << vblank;
|
||||||
|
|
||||||
ControlList ctrls(sensorControls_);
|
ControlList ctrls(sensorControls_);
|
||||||
ctrls.set(V4L2_CID_EXPOSURE, static_cast<int32_t>(exposure));
|
ctrls.set(V4L2_CID_EXPOSURE, static_cast<int32_t>(exposure));
|
||||||
ctrls.set(V4L2_CID_ANALOGUE_GAIN, static_cast<int32_t>(gain));
|
ctrls.set(V4L2_CID_ANALOGUE_GAIN, static_cast<int32_t>(gain));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue