projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83401ff
)
Use raw_image() for waveform plots otherwise we make the plots from
author
Carl Hetherington
<cth@carlh.net>
Thu, 11 Aug 2022 20:45:05 +0000
(22:45 +0200)
committer
Carl 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
patch
|
blob
|
history
diff --git
a/src/wx/video_waveform_plot.cc
b/src/wx/video_waveform_plot.cc
index c14e5f418a7dcc0de66f9bb9af352597ae4ad61a..ea0d6a8f4828618684ec8f9df076adf59cf1d16a 100644
(file)
--- a/
src/wx/video_waveform_plot.cc
+++ b/
src/wx/video_waveform_plot.cc
@@
-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 ();
}