diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-03 21:33:30 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-03 21:33:30 +0000 |
| commit | 9655ed4740f08899698052f232256fcf7b77c58e (patch) | |
| tree | 195e8f30ec4c5dd5beeecfb371acf7a3ceaa7898 /src/stereo_picture_frame.cc | |
| parent | 986bb0acba0aa73fc2ac0190a32e8fa8c6e636b4 (diff) | |
Various fixes to XYZ/RGB transforms.
Diffstat (limited to 'src/stereo_picture_frame.cc')
| -rw-r--r-- | src/stereo_picture_frame.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stereo_picture_frame.cc b/src/stereo_picture_frame.cc index 7d989777..3e872e2b 100644 --- a/src/stereo_picture_frame.cc +++ b/src/stereo_picture_frame.cc @@ -89,11 +89,11 @@ StereoPictureFrame::argb_frame (Eye eye, int reduce, float srgb_gamma) const break; } - return xyz_to_rgba (xyz_frame, ColourConversion::xyz_to_rgb); + return xyz_to_rgba (xyz_frame, ColourConversion::xyz_to_srgb); } void -StereoPictureFrame::rgb_frame (Eye eye, uint8_t* buffer) const +StereoPictureFrame::rgb_frame (Eye eye, uint16_t* buffer) const { shared_ptr<XYZFrame> xyz_frame; switch (eye) { @@ -105,7 +105,7 @@ StereoPictureFrame::rgb_frame (Eye eye, uint8_t* buffer) const break; } - return xyz_to_rgb (xyz_frame, ColourConversion::xyz_to_rgb, buffer); + return xyz_to_rgb (xyz_frame, ColourConversion::xyz_to_srgb, buffer); } uint8_t const * |
