mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-15 08:25:07 +03:00
ipa: raspberrypi: Switch ipa and cam_helper to use utils::Duration
Switch the ipa and cam_helper code to use libcamera::utils::Duration for all time based variables. This improves code readability and avoids possible errors when converting between time bases. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@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
5055ca747c
commit
caa753179c
4 changed files with 53 additions and 45 deletions
|
@ -8,6 +8,8 @@
|
|||
|
||||
#include <libcamera/transform.h>
|
||||
|
||||
#include "libcamera/internal/utils.h"
|
||||
|
||||
// Description of a "camera mode", holding enough information for control
|
||||
// algorithms to adapt their behaviour to the different modes of the camera,
|
||||
// including binning, scaling, cropping etc.
|
||||
|
@ -33,8 +35,8 @@ struct CameraMode {
|
|||
double scale_x, scale_y;
|
||||
// scaling of the noise compared to the native sensor mode
|
||||
double noise_factor;
|
||||
// line time in nanoseconds
|
||||
double line_length;
|
||||
// line time
|
||||
libcamera::utils::Duration line_length;
|
||||
// any camera transform *not* reflected already in the camera tuning
|
||||
libcamera::Transform transform;
|
||||
// minimum and maximum fame lengths in units of lines
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue