X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Frgb_xyz.cc;h=2eccb77a8aec0531af35c69688e3063097e4762e;hb=fe83eb5293fa4027856f6ee9faec7bfc8288badf;hp=d299340ef7536ff5f0dfbaeb8b1cf17a7972bfd6;hpb=fab8525a625f1ad65f2ddcfbf6ac6c7a99c36b0e;p=libdcp.git diff --git a/src/rgb_xyz.cc b/src/rgb_xyz.cc index d299340e..2eccb77a 100644 --- a/src/rgb_xyz.cc +++ b/src/rgb_xyz.cc @@ -365,7 +365,9 @@ dcp::xyz_to_xyz (uint8_t const * xyz_16, dcp::Size size, int stride) uint16_t const * p = reinterpret_cast (xyz_16 + y * stride); for (int x = 0; x < size.width; ++x) { /* Truncate 16-bit to 12-bit */ + cout << *p << " "; xyz_12->data(0)[jn] = *p++ >> 4; + cout << xyz_12->data(0)[jn] << "\n"; xyz_12->data(1)[jn] = *p++ >> 4; xyz_12->data(2)[jn] = *p++ >> 4; ++jn;