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/video_content.h | |
| parent | 401821e667cd4c719dc0e6e84a1fa662c8d30c86 (diff) | |
Add has_alpha() flag to VideoContent.
Diffstat (limited to 'src/lib/video_content.h')
| -rw-r--r-- | src/lib/video_content.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/video_content.h b/src/lib/video_content.h index c6fce70d5..db46f06eb 100644 --- a/src/lib/video_content.h +++ b/src/lib/video_content.h @@ -192,6 +192,11 @@ public: return _pixel_quanta; } + bool has_alpha() const { + boost::mutex::scoped_lock lm(_mutex); + return _has_alpha; + } + bool use() const { boost::mutex::scoped_lock lm(_mutex); return _use; @@ -261,6 +266,7 @@ private: VideoRange _range; PixelQuanta _pixel_quanta; boost::optional<dcp::LanguageTag> _burnt_subtitle_language; + bool _has_alpha = false; }; |
