summaryrefslogtreecommitdiff
path: root/src/rgb_xyz.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-09-08 23:55:37 +0100
committerCarl Hetherington <cth@carlh.net>2016-09-08 23:55:37 +0100
commitfe83eb5293fa4027856f6ee9faec7bfc8288badf (patch)
tree8314bbbb6b37a2fb7cb13787276b6fb9474e99bd /src/rgb_xyz.cc
parent3e24098b32d6160759378e671bfca241dd9025d9 (diff)
Add channel assignment support for SMPTE DCPs.
Diffstat (limited to 'src/rgb_xyz.cc')
-rw-r--r--src/rgb_xyz.cc2
1 files changed, 2 insertions, 0 deletions
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<uint16_t const *> (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;