ipa: rpi: Update IMX708 camera tuning files for AutoFocus changes

Explicitly add new parameters: "retrigger_ratio", "retrigger_delay",
"check_for_ir". Tweak other parameters to suit algorithm changes.
(Though existing tuning files should still work acceptably.)

Add AfSpeedFast parameters for the Raspberry Pi V3 standard lens.

Signed-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Nick Hollinghurst 2025-06-20 13:42:29 +01:00 committed by Kieran Bingham
parent ea5f451c56
commit 619da07f73
8 changed files with 128 additions and 40 deletions

View file

@ -1139,11 +1139,27 @@
"step_coarse": 1.0, "step_coarse": 1.0,
"step_fine": 0.25, "step_fine": 0.25,
"contrast_ratio": 0.75, "contrast_ratio": 0.75,
"retrigger_ratio": 0.8,
"retrigger_delay": 10,
"pdaf_gain": -0.016,
"pdaf_squelch": 0.125,
"max_slew": 1.5,
"pdaf_frames": 20,
"dropout_frames": 6,
"step_frames": 5
},
"fast":
{
"step_coarse": 1.25,
"step_fine": 0.0,
"contrast_ratio": 0.75,
"retrigger_ratio": 0.8,
"retrigger_delay": 8,
"pdaf_gain": -0.02, "pdaf_gain": -0.02,
"pdaf_squelch": 0.125, "pdaf_squelch": 0.125,
"max_slew": 2.0, "max_slew": 2.0,
"pdaf_frames": 20, "pdaf_frames": 16,
"dropout_frames": 6, "dropout_frames": 4,
"step_frames": 4 "step_frames": 4
} }
}, },
@ -1151,6 +1167,7 @@
"conf_thresh": 16, "conf_thresh": 16,
"conf_clip": 512, "conf_clip": 512,
"skip_frames": 5, "skip_frames": 5,
"check_for_ir": false,
"map": [ 0.0, 445, 15.0, 925 ] "map": [ 0.0, 445, 15.0, 925 ]
} }
}, },
@ -1267,4 +1284,4 @@
} }
} }
] ]
} }

View file

@ -1156,11 +1156,27 @@
"step_coarse": 1.0, "step_coarse": 1.0,
"step_fine": 0.25, "step_fine": 0.25,
"contrast_ratio": 0.75, "contrast_ratio": 0.75,
"retrigger_ratio": 0.8,
"retrigger_delay": 10,
"pdaf_gain": -0.016,
"pdaf_squelch": 0.125,
"max_slew": 1.5,
"pdaf_frames": 20,
"dropout_frames": 6,
"step_frames": 5
},
"fast":
{
"step_coarse": 1.25,
"step_fine": 0.0,
"contrast_ratio": 0.75,
"retrigger_ratio": 0.8,
"retrigger_delay": 8,
"pdaf_gain": -0.02, "pdaf_gain": -0.02,
"pdaf_squelch": 0.125, "pdaf_squelch": 0.125,
"max_slew": 2.0, "max_slew": 2.0,
"pdaf_frames": 20, "pdaf_frames": 16,
"dropout_frames": 6, "dropout_frames": 4,
"step_frames": 4 "step_frames": 4
} }
}, },
@ -1168,6 +1184,7 @@
"conf_thresh": 16, "conf_thresh": 16,
"conf_clip": 512, "conf_clip": 512,
"skip_frames": 5, "skip_frames": 5,
"check_for_ir": true,
"map": [ 0.0, 445, 15.0, 925 ] "map": [ 0.0, 445, 15.0, 925 ]
} }
}, },
@ -1230,4 +1247,4 @@
} }
} }
] ]
} }

View file

@ -1148,23 +1148,27 @@
"step_coarse": 2.0, "step_coarse": 2.0,
"step_fine": 0.5, "step_fine": 0.5,
"contrast_ratio": 0.75, "contrast_ratio": 0.75,
"retrigger_ratio" : 0.8,
"retrigger_delay" : 10,
"pdaf_gain": -0.03, "pdaf_gain": -0.03,
"pdaf_squelch": 0.2, "pdaf_squelch": 0.2,
"max_slew": 4.0, "max_slew": 3.0,
"pdaf_frames": 20, "pdaf_frames": 20,
"dropout_frames": 6, "dropout_frames": 6,
"step_frames": 4 "step_frames": 5
}, },
"fast": "fast":
{ {
"step_coarse": 2.0, "step_coarse": 2.5,
"step_fine": 0.5, "step_fine": 0.0,
"contrast_ratio": 0.75, "contrast_ratio": 0.75,
"retrigger_ratio" : 0.8,
"retrigger_delay" : 8,
"pdaf_gain": -0.05, "pdaf_gain": -0.05,
"pdaf_squelch": 0.2, "pdaf_squelch": 0.2,
"max_slew": 5.0, "max_slew": 4.0,
"pdaf_frames": 16, "pdaf_frames": 16,
"dropout_frames": 6, "dropout_frames": 4,
"step_frames": 4 "step_frames": 4
} }
}, },
@ -1172,6 +1176,7 @@
"conf_thresh": 12, "conf_thresh": 12,
"conf_clip": 512, "conf_clip": 512,
"skip_frames": 5, "skip_frames": 5,
"check_for_ir": false,
"map": [ 0.0, 420, 35.0, 920 ] "map": [ 0.0, 420, 35.0, 920 ]
} }
}, },
@ -1290,4 +1295,4 @@
} }
} }
] ]
} }

View file

@ -1057,23 +1057,27 @@
"step_coarse": 2.0, "step_coarse": 2.0,
"step_fine": 0.5, "step_fine": 0.5,
"contrast_ratio": 0.75, "contrast_ratio": 0.75,
"retrigger_ratio" : 0.8,
"retrigger_delay" : 10,
"pdaf_gain": -0.03, "pdaf_gain": -0.03,
"pdaf_squelch": 0.2, "pdaf_squelch": 0.2,
"max_slew": 4.0, "max_slew": 3.0,
"pdaf_frames": 20, "pdaf_frames": 20,
"dropout_frames": 6, "dropout_frames": 6,
"step_frames": 4 "step_frames": 5
}, },
"fast": "fast":
{ {
"step_coarse": 2.0, "step_coarse": 2.5,
"step_fine": 0.5, "step_fine": 0.0,
"contrast_ratio": 0.75, "contrast_ratio": 0.75,
"retrigger_ratio" : 0.8,
"retrigger_delay" : 8,
"pdaf_gain": -0.05, "pdaf_gain": -0.05,
"pdaf_squelch": 0.2, "pdaf_squelch": 0.2,
"max_slew": 5.0, "max_slew": 4.0,
"pdaf_frames": 16, "pdaf_frames": 16,
"dropout_frames": 6, "dropout_frames": 4,
"step_frames": 4 "step_frames": 4
} }
}, },
@ -1081,6 +1085,7 @@
"conf_thresh": 12, "conf_thresh": 12,
"conf_clip": 512, "conf_clip": 512,
"skip_frames": 5, "skip_frames": 5,
"check_for_ir": true,
"map": [ 0.0, 420, 35.0, 920 ] "map": [ 0.0, 420, 35.0, 920 ]
} }
}, },
@ -1145,4 +1150,4 @@
} }
} }
] ]
} }

View file

@ -638,11 +638,27 @@
"step_coarse": 1.0, "step_coarse": 1.0,
"step_fine": 0.25, "step_fine": 0.25,
"contrast_ratio": 0.75, "contrast_ratio": 0.75,
"retrigger_ratio": 0.8,
"retrigger_delay": 10,
"pdaf_gain": -0.016,
"pdaf_squelch": 0.125,
"max_slew": 1.5,
"pdaf_frames": 20,
"dropout_frames": 6,
"step_frames": 5
},
"fast":
{
"step_coarse": 1.25,
"step_fine": 0.0,
"contrast_ratio": 0.75,
"retrigger_ratio": 0.8,
"retrigger_delay": 8,
"pdaf_gain": -0.02, "pdaf_gain": -0.02,
"pdaf_squelch": 0.125, "pdaf_squelch": 0.125,
"max_slew": 2.0, "max_slew": 2.0,
"pdaf_frames": 20, "pdaf_frames": 16,
"dropout_frames": 6, "dropout_frames": 4,
"step_frames": 4 "step_frames": 4
} }
}, },
@ -650,6 +666,7 @@
"conf_thresh": 16, "conf_thresh": 16,
"conf_clip": 512, "conf_clip": 512,
"skip_frames": 5, "skip_frames": 5,
"check_for_ir": false,
"map": [ 0.0, 445, 15.0, 925 ] "map": [ 0.0, 445, 15.0, 925 ]
} }
}, },
@ -668,4 +685,4 @@
} }
} }
] ]
} }

View file

@ -737,11 +737,27 @@
"step_coarse": 1.0, "step_coarse": 1.0,
"step_fine": 0.25, "step_fine": 0.25,
"contrast_ratio": 0.75, "contrast_ratio": 0.75,
"retrigger_ratio": 0.8,
"retrigger_delay": 10,
"pdaf_gain": -0.016,
"pdaf_squelch": 0.125,
"max_slew": 1.5,
"pdaf_frames": 20,
"dropout_frames": 6,
"step_frames": 5
},
"fast":
{
"step_coarse": 1.25,
"step_fine": 0.0,
"contrast_ratio": 0.75,
"retrigger_ratio": 0.8,
"retrigger_delay": 8,
"pdaf_gain": -0.02, "pdaf_gain": -0.02,
"pdaf_squelch": 0.125, "pdaf_squelch": 0.125,
"max_slew": 2.0, "max_slew": 2.0,
"pdaf_frames": 20, "pdaf_frames": 16,
"dropout_frames": 6, "dropout_frames": 4,
"step_frames": 4 "step_frames": 4
} }
}, },
@ -749,6 +765,7 @@
"conf_thresh": 16, "conf_thresh": 16,
"conf_clip": 512, "conf_clip": 512,
"skip_frames": 5, "skip_frames": 5,
"check_for_ir": true,
"map": [ 0.0, 445, 15.0, 925 ] "map": [ 0.0, 445, 15.0, 925 ]
} }
}, },
@ -767,4 +784,4 @@
} }
} }
] ]
} }

View file

@ -637,23 +637,27 @@
"step_coarse": 2.0, "step_coarse": 2.0,
"step_fine": 0.5, "step_fine": 0.5,
"contrast_ratio": 0.75, "contrast_ratio": 0.75,
"retrigger_ratio": 0.8,
"retrigger_delay": 10,
"pdaf_gain": -0.03, "pdaf_gain": -0.03,
"pdaf_squelch": 0.2, "pdaf_squelch": 0.2,
"max_slew": 4.0, "max_slew": 3.0,
"pdaf_frames": 20, "pdaf_frames": 20,
"dropout_frames": 6, "dropout_frames": 6,
"step_frames": 4 "step_frames": 5
}, },
"fast": "fast":
{ {
"step_coarse": 2.0, "step_coarse": 2.5,
"step_fine": 0.5, "step_fine": 0.0,
"contrast_ratio": 0.75, "contrast_ratio": 0.75,
"retrigger_ratio": 0.8,
"retrigger_delay": 8,
"pdaf_gain": -0.05, "pdaf_gain": -0.05,
"pdaf_squelch": 0.2, "pdaf_squelch": 0.2,
"max_slew": 5.0, "max_slew": 4.0,
"pdaf_frames": 16, "pdaf_frames": 16,
"dropout_frames": 6, "dropout_frames": 4,
"step_frames": 4 "step_frames": 4
} }
}, },
@ -661,6 +665,7 @@
"conf_thresh": 12, "conf_thresh": 12,
"conf_clip": 512, "conf_clip": 512,
"skip_frames": 5, "skip_frames": 5,
"check_for_ir": false,
"map": [ 0.0, 420, 35.0, 920 ] "map": [ 0.0, 420, 35.0, 920 ]
} }
}, },
@ -679,4 +684,4 @@
} }
} }
] ]
} }

View file

@ -628,23 +628,27 @@
"step_coarse": 2.0, "step_coarse": 2.0,
"step_fine": 0.5, "step_fine": 0.5,
"contrast_ratio": 0.75, "contrast_ratio": 0.75,
"retrigger_ratio": 0.8,
"retrigger_delay": 10,
"pdaf_gain": -0.03, "pdaf_gain": -0.03,
"pdaf_squelch": 0.2, "pdaf_squelch": 0.2,
"max_slew": 4.0, "max_slew": 3.0,
"pdaf_frames": 20, "pdaf_frames": 20,
"dropout_frames": 6, "dropout_frames": 6,
"step_frames": 4 "step_frames": 5
}, },
"fast": "fast":
{ {
"step_coarse": 2.0, "step_coarse": 2.5,
"step_fine": 0.5, "step_fine": 0.0,
"contrast_ratio": 0.75, "contrast_ratio": 0.75,
"retrigger_ratio": 0.8,
"retrigger_delay": 8,
"pdaf_gain": -0.05, "pdaf_gain": -0.05,
"pdaf_squelch": 0.2, "pdaf_squelch": 0.2,
"max_slew": 5.0, "max_slew": 4.0,
"pdaf_frames": 16, "pdaf_frames": 16,
"dropout_frames": 6, "dropout_frames": 4,
"step_frames": 4 "step_frames": 4
} }
}, },
@ -652,6 +656,7 @@
"conf_thresh": 12, "conf_thresh": 12,
"conf_clip": 512, "conf_clip": 512,
"skip_frames": 5, "skip_frames": 5,
"check_for_ir": true,
"map": [ 0.0, 420, 35.0, 920 ] "map": [ 0.0, 420, 35.0, 920 ]
} }
}, },
@ -670,4 +675,4 @@
} }
} }
] ]
} }