ipa: raspberrypi: Add pixel clock rate to the CameraMode structure
The pixel clock rate will be used in subsequent commits to calculate line length durations. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Tested-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
aa2fe6a86f
commit
5661c934ec
2 changed files with 3 additions and 0 deletions
|
@ -46,4 +46,6 @@ struct CameraMode {
|
||||||
uint32_t maxFrameLength;
|
uint32_t maxFrameLength;
|
||||||
/* sensitivity of this mode */
|
/* sensitivity of this mode */
|
||||||
double sensitivity;
|
double sensitivity;
|
||||||
|
/* pixel clock rate */
|
||||||
|
uint64_t pixelRate;
|
||||||
};
|
};
|
||||||
|
|
|
@ -331,6 +331,7 @@ void IPARPi::setMode(const IPACameraSensorInfo &sensorInfo)
|
||||||
mode_.sensorHeight = sensorInfo.activeAreaSize.height;
|
mode_.sensorHeight = sensorInfo.activeAreaSize.height;
|
||||||
mode_.cropX = sensorInfo.analogCrop.x;
|
mode_.cropX = sensorInfo.analogCrop.x;
|
||||||
mode_.cropY = sensorInfo.analogCrop.y;
|
mode_.cropY = sensorInfo.analogCrop.y;
|
||||||
|
mode_.pixelRate = sensorInfo.pixelRate;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Calculate scaling parameters. The scale_[xy] factors are determined
|
* Calculate scaling parameters. The scale_[xy] factors are determined
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue