From c0b0b7205c7e59ad754b5cf2c79d661e5676eb73 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 4 Jul 2020 02:21:26 +0300 Subject: ipa: raspberrypi: Drop CameraHelper::GetOrientation() The camera sensor orientation is now handled by the pipeline handler. Drop hardcoded per-sensor orientations from the IPA. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi Reviewed-by: Naushir Patuck --- src/ipa/raspberrypi/raspberrypi.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/ipa/raspberrypi/raspberrypi.cpp') diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp index 569f7380..851597f0 100644 --- a/src/ipa/raspberrypi/raspberrypi.cpp +++ b/src/ipa/raspberrypi/raspberrypi.cpp @@ -216,7 +216,6 @@ void IPARPi::configure(const CameraSensorInfo &sensorInfo, int gainDelay, exposureDelay, sensorMetadata; helper_->GetDelays(exposureDelay, gainDelay); sensorMetadata = helper_->SensorEmbeddedDataPresent(); - RPi::CamTransform orientation = helper_->GetOrientation(); IPAOperationData op; op.operation = RPI_IPA_ACTION_SET_SENSOR_CONFIG; @@ -224,11 +223,6 @@ void IPARPi::configure(const CameraSensorInfo &sensorInfo, op.data.push_back(exposureDelay); op.data.push_back(sensorMetadata); - ControlList ctrls(unicam_ctrls_); - ctrls.set(V4L2_CID_HFLIP, (int32_t) !!(orientation & RPi::CamTransform_HFLIP)); - ctrls.set(V4L2_CID_VFLIP, (int32_t) !!(orientation & RPi::CamTransform_VFLIP)); - op.controls.push_back(ctrls); - queueFrameAction.emit(0, op); } -- cgit v1.2.1