From 7b717b5ae1c82e2d878f950549e0c1f482dbb072 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 13 Nov 2021 00:52:34 +0100 Subject: Add rgb_to_xyz with xyz buffer and stride. --- src/rgb_xyz.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/rgb_xyz.h') diff --git a/src/rgb_xyz.h b/src/rgb_xyz.h index 4a920efb..5f2da9a4 100644 --- a/src/rgb_xyz.h +++ b/src/rgb_xyz.h @@ -107,6 +107,17 @@ extern std::shared_ptr rgb_to_xyz ( ); +extern void rgb_to_xyz ( + uint8_t const * rgb, + dcp::Size size, + int rgb_stride, + uint16_t* xyz, + int xyz_stride, + ColourConversion const & conversion, + boost::optional note = boost::optional () + ); + + /** @param conversion Colour conversion. * @param matrix Filled in with the product of the RGB to XYZ matrix, the Bradford transform and the DCI companding. */ -- cgit v1.2.3