ipa: ipu3: Send lens controls to pipeline handler
Pick up the focus value from the AF algorithm and send lens controls along in the frame context. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Daniel Scally <djrscally@gmail.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
1aecc633e4
commit
58faa4f360
1 changed files with 5 additions and 0 deletions
|
@ -679,6 +679,11 @@ void IPAIPU3::setControls(unsigned int frame)
|
||||||
ctrls.set(V4L2_CID_ANALOGUE_GAIN, static_cast<int32_t>(gain_));
|
ctrls.set(V4L2_CID_ANALOGUE_GAIN, static_cast<int32_t>(gain_));
|
||||||
op.sensorControls = ctrls;
|
op.sensorControls = ctrls;
|
||||||
|
|
||||||
|
ControlList lensCtrls(lensCtrls_);
|
||||||
|
lensCtrls.set(V4L2_CID_FOCUS_ABSOLUTE,
|
||||||
|
static_cast<int32_t>(context_.frameContext.af.focus));
|
||||||
|
op.lensControls = lensCtrls;
|
||||||
|
|
||||||
queueFrameAction.emit(frame, op);
|
queueFrameAction.emit(frame, op);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue