Use raw_image() for waveform plots otherwise we make the plots from
authorCarl Hetherington <cth@carlh.net>
Thu, 11 Aug 2022 20:45:05 +0000 (22:45 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 11 Aug 2022 20:45:05 +0000 (22:45 +0200)
scaled images which makes them look odd.

src/wx/video_waveform_plot.cc

index c14e5f418a7dcc0de66f9bb9af352597ae4ad61a..ea0d6a8f4828618684ec8f9df076adf59cf1d16a 100644 (file)
@@ -195,10 +195,7 @@ VideoWaveformPlot::set_image (shared_ptr<PlayerVideo> image)
                return;
        }
 
-       /* We must copy the PlayerVideo here as we will call ::image() on it, potentially
-          with a different pixel_format than was used when ::prepare() was called.
-       */
-       _image = image->shallow_copy()->convert_to_xyz([](dcp::NoteType, string) {});
+       _image = image->convert_to_xyz(image->raw_image(), [](dcp::NoteType, string) {});
        _dirty = true;
        Refresh ();
 }