diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-07-07 21:25:28 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-07-07 21:25:28 +0200 |
| commit | 33dcb243042b46c29fedf87fe29c7fb54f8a484c (patch) | |
| tree | 5d06cf8a19cdd74d6a7cc4bf95adb48cba9155d1 /src/lib | |
| parent | 0fd8188b67917406ea20d02b5f15754c249d6ff0 (diff) | |
Const correctness.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/dcp_video.cc | 5 | ||||
| -rw-r--r-- | src/lib/dcp_video.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/dcp_video.cc b/src/lib/dcp_video.cc index 456f62c7c..477fc2ab5 100644 --- a/src/lib/dcp_video.cc +++ b/src/lib/dcp_video.cc @@ -125,10 +125,10 @@ DCPVideo::get_size() return image->size(); } + void -DCPVideo::convert_to_xyz(uint16_t* dst) +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( @@ -140,6 +140,7 @@ DCPVideo::convert_to_xyz(uint16_t* dst) } } + /** J2K-encode this frame on the local host. * @return Encoded data. */ diff --git a/src/lib/dcp_video.h b/src/lib/dcp_video.h index d6f62d2bb..fe394b9fb 100644 --- a/src/lib/dcp_video.h +++ b/src/lib/dcp_video.h @@ -72,7 +72,7 @@ public: static std::shared_ptr<dcp::OpenJPEGImage> convert_to_xyz (std::shared_ptr<const PlayerVideo> frame, dcp::NoteHandler note); - void convert_to_xyz(uint16_t* dst); + void convert_to_xyz(uint16_t* dst) const; dcp::Size get_size(); private: |
