ipa: rkisp1: ccm: Use Q<4, 7> format directly
Replace the legacy call to floatingToFixedPoint with the new FixedPoint quantizer to explicitly describe the type used by the RKISP1 Colour Correction Matrix. Reviewed-by: Isaac Scott <isaac.scott@ideasonboard.com> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -117,8 +117,7 @@ void Ccm::setParameters(struct rkisp1_cif_isp_ctk_config &config,
|
||||
*/
|
||||
for (unsigned int i = 0; i < 3; i++) {
|
||||
for (unsigned int j = 0; j < 3; j++)
|
||||
config.coeff[i][j] =
|
||||
floatingToFixedPoint<4, 7, uint16_t, double>(matrix[i][j]);
|
||||
config.coeff[i][j] = Q<4, 7>(matrix[i][j]).quantized();
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < 3; i++)
|
||||
|
||||
Reference in New Issue
Block a user