Const correctness.
authorCarl Hetherington <cth@carlh.net>
Fri, 7 Jul 2023 19:25:28 +0000 (21:25 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 7 Jul 2023 19:25:28 +0000 (21:25 +0200)
src/lib/dcp_video.cc
src/lib/dcp_video.h

index 456f62c7cbd6d2cdca9992c44d252c2179f801d7..477fc2ab53386003c5bc0f6826af657dd2c10994 100644 (file)
@@ -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.
  */
index d6f62d2bb940cf23bf2b3fcd2d2783eef70f1869..fe394b9fb80b28ded99c10e4b114e94f16a533e5 100644 (file)
@@ -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: