diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-07-08 00:20:15 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-28 02:01:57 +0100 |
| commit | b054a6fe8359d91ed6afd5a250abd766cfafa196 (patch) | |
| tree | 9259fe00b1f7fec6df0ae04d58896df61f1ea8ee /src/lib/dcp_video.cc | |
| parent | d76a9783fcc97a8a833ae060f70b12c144994651 (diff) | |
Formatting, variable name tidying and some const correctness.
Diffstat (limited to 'src/lib/dcp_video.cc')
| -rw-r--r-- | src/lib/dcp_video.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/dcp_video.cc b/src/lib/dcp_video.cc index 204c390ee..3769a3285 100644 --- a/src/lib/dcp_video.cc +++ b/src/lib/dcp_video.cc @@ -118,15 +118,17 @@ DCPVideo::convert_to_xyz (shared_ptr<const PlayerVideo> frame) } dcp::Size -DCPVideo::get_size(void) { - auto image = _frame->image (bind(&PlayerVideo::keep_xyz_or_rgb, _1), VideoRange::FULL, false); +DCPVideo::get_size() const +{ + auto image = _frame->image(bind(&PlayerVideo::keep_xyz_or_rgb, _1), VideoRange::FULL, false); return image->size(); } -void -DCPVideo::convert_to_xyz (uint16_t *dst) { - auto image = _frame->image (bind(&PlayerVideo::keep_xyz_or_rgb, _1), VideoRange::FULL, false); +void +DCPVideo::convert_to_xyz(uint16_t* dst) const +{ + auto image = _frame->image(bind(&PlayerVideo::keep_xyz_or_rgb, _1), VideoRange::FULL, false); if (_frame->colour_conversion()) { dcp::rgb_to_xyz ( image->data()[0], @@ -138,6 +140,7 @@ DCPVideo::convert_to_xyz (uint16_t *dst) { } } + /** J2K-encode this frame on the local host. * @return Encoded data. */ |
