diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-02-02 18:42:54 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-02-02 18:42:54 +0000 |
| commit | 923d5a17cdbe4c4ae947bbb45493be0792cfd54e (patch) | |
| tree | c30cc659bb94aaf8231bb5f8c790e3d60a3362b1 /src/stereo_picture_frame.cc | |
| parent | b47a54b85aee24795008463681cb31f4307ffe84 (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.cc | 4 |
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 * |
