diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-04-12 11:32:55 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-04-12 11:32:55 +0200 |
| commit | 3dcabe8d9c7d82f6be4790fd68db62188ce64710 (patch) | |
| tree | e23124f9d4faab4abaa2d532f2fff0d7afd1d327 /src/lib/image_examiner.cc | |
| parent | 401821e667cd4c719dc0e6e84a1fa662c8d30c86 (diff) | |
Add has_alpha() flag to VideoContent.
Diffstat (limited to 'src/lib/image_examiner.cc')
| -rw-r--r-- | src/lib/image_examiner.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/image_examiner.cc b/src/lib/image_examiner.cc index 15a0b043d..16258aed5 100644 --- a/src/lib/image_examiner.cc +++ b/src/lib/image_examiner.cc @@ -66,7 +66,9 @@ ImageExaminer::ImageExaminer (shared_ptr<const Film> film, shared_ptr<const Imag } } else { FFmpegImageProxy proxy(content->path(0)); - _video_size = proxy.image(Image::Alignment::COMPACT).image->size(); + auto image = proxy.image(Image::Alignment::COMPACT); + _video_size = image.image->size(); + _has_alpha = image.image->has_alpha(); } if (content->still ()) { |
