summaryrefslogtreecommitdiff
path: root/src/lib/dcp_video.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-07-08 00:20:15 +0200
committerCarl Hetherington <cth@carlh.net>2023-10-16 17:56:10 +0200
commit74c01f094103e9a6fd6fd7147f4849d5480f45b7 (patch)
treea2c7f5a9f1c90112bc5c802fd3775c493955a180 /src/lib/dcp_video.cc
parent7437b7aa87777f0e5f0ebab699e7aa25ccf93078 (diff)
Formatting, variable name tidying and some const correctness.
Diffstat (limited to 'src/lib/dcp_video.cc')
-rw-r--r--src/lib/dcp_video.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/dcp_video.cc b/src/lib/dcp_video.cc
index 78e973ca3..940ca31d2 100644
--- a/src/lib/dcp_video.cc
+++ b/src/lib/dcp_video.cc
@@ -119,15 +119,17 @@ DCPVideo::convert_to_xyz (shared_ptr<const PlayerVideo> frame, dcp::NoteHandler
}
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],
@@ -139,6 +141,7 @@ DCPVideo::convert_to_xyz (uint16_t *dst) {
}
}
+
/** J2K-encode this frame on the local host.
* @return Encoded data.
*/