mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 00:55:07 +03:00
pipeline: raspberrypi: Sensor flips should be applied unconditionally
The code in pipeline_handler::start() that applies the flips were in a block that was conditional on the RPi::IPA_CONFIG_STAGGERED_WRITE return result. This should be applied unconditionally. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
68c55b49c4
commit
0b427b8ecf
1 changed files with 13 additions and 13 deletions
|
@ -1172,6 +1172,18 @@ int RPiCameraData::configureIPA(const CameraConfiguration *config)
|
||||||
{ V4L2_CID_EXPOSURE, result.data[resultIdx++] } });
|
{ V4L2_CID_EXPOSURE, result.data[resultIdx++] } });
|
||||||
sensorMetadata_ = result.data[resultIdx++];
|
sensorMetadata_ = result.data[resultIdx++];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (result.operation & RPi::IPA_CONFIG_SENSOR) {
|
||||||
|
const ControlList &ctrls = result.controls[0];
|
||||||
|
if (!staggeredCtrl_.set(ctrls))
|
||||||
|
LOG(RPI, Error) << "V4L2 staggered set failed";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (result.operation & RPi::IPA_CONFIG_DROP_FRAMES) {
|
||||||
|
/* Configure the number of dropped frames required on startup. */
|
||||||
|
dropFrameCount_ = result.data[resultIdx++];
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Configure the H/V flip controls based on the combination of
|
* Configure the H/V flip controls based on the combination of
|
||||||
|
@ -1185,18 +1197,6 @@ int RPiCameraData::configureIPA(const CameraConfiguration *config)
|
||||||
static_cast<int32_t>(!!(rpiConfig->combinedTransform_ & Transform::VFlip)));
|
static_cast<int32_t>(!!(rpiConfig->combinedTransform_ & Transform::VFlip)));
|
||||||
unicam_[Unicam::Image].dev()->setControls(&ctrls);
|
unicam_[Unicam::Image].dev()->setControls(&ctrls);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (result.operation & RPi::IPA_CONFIG_SENSOR) {
|
|
||||||
const ControlList &ctrls = result.controls[0];
|
|
||||||
if (!staggeredCtrl_.set(ctrls))
|
|
||||||
LOG(RPI, Error) << "V4L2 staggered set failed";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (result.operation & RPi::IPA_CONFIG_DROP_FRAMES) {
|
|
||||||
/* Configure the number of dropped frames required on startup. */
|
|
||||||
dropFrameCount_ = result.data[resultIdx++];
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue