summaryrefslogtreecommitdiff
path: root/src/stereo_picture_frame.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-02-02 18:42:54 +0000
committerCarl Hetherington <cth@carlh.net>2015-02-02 18:42:54 +0000
commit923d5a17cdbe4c4ae947bbb45493be0792cfd54e (patch)
treec30cc659bb94aaf8231bb5f8c790e3d60a3362b1 /src/stereo_picture_frame.cc
parentb47a54b85aee24795008463681cb31f4307ffe84 (diff)
Unpack XYZ to RGB into an Image class rather than a raw buffer.
Diffstat (limited to 'src/stereo_picture_frame.cc')
-rw-r--r--src/stereo_picture_frame.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stereo_picture_frame.cc b/src/stereo_picture_frame.cc
index e0ed6905..060e86cc 100644
--- a/src/stereo_picture_frame.cc
+++ b/src/stereo_picture_frame.cc
@@ -91,7 +91,7 @@ StereoPictureFrame::argb_frame (Eye eye, int reduce) const
}
void
-StereoPictureFrame::rgb_frame (Eye eye, uint16_t* buffer) const
+StereoPictureFrame::rgb_frame (Eye eye, shared_ptr<Image> image) const
{
shared_ptr<XYZFrame> xyz_frame;
switch (eye) {
@@ -103,7 +103,7 @@ StereoPictureFrame::rgb_frame (Eye eye, uint16_t* buffer) const
break;
}
- return xyz_to_rgb (xyz_frame, ColourConversion::xyz_to_srgb (), buffer);
+ return xyz_to_rgb (xyz_frame, ColourConversion::xyz_to_srgb (), image);
}
uint8_t const *