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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
This commit is contained in:
Laurent Pinchart 2020-07-04 02:21:26 +03:00
parent 44aa793056
commit c0b0b7205c
5 changed files with 0 additions and 33 deletions

View file

@ -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);
}