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.h | |
| parent | 401821e667cd4c719dc0e6e84a1fa662c8d30c86 (diff) | |
Add has_alpha() flag to VideoContent.
Diffstat (limited to 'src/lib/image_examiner.h')
| -rw-r--r-- | src/lib/image_examiner.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/image_examiner.h b/src/lib/image_examiner.h index 54fca7ed1..d6cdfac53 100644 --- a/src/lib/image_examiner.h +++ b/src/lib/image_examiner.h @@ -43,10 +43,14 @@ public: /* See ::yuv - we're assuming the image is not YUV and so not subsampled */ return {}; } + bool has_alpha() const override { + return _has_alpha; + } private: std::weak_ptr<const Film> _film; std::shared_ptr<const ImageContent> _image_content; boost::optional<dcp::Size> _video_size; Frame _video_length; + bool _has_alpha = false; }; |
