summaryrefslogtreecommitdiff
path: root/src/lib/dcp_examiner.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-31 00:03:49 +0100
committerCarl Hetherington <cth@carlh.net>2025-11-05 00:43:19 +0100
commite8ce097ce705446c27b51199a321a9918deaa0db (patch)
tree0a52cbc9c52791d453fa4bd478609aedde98c831 /src/lib/dcp_examiner.h
parentef65a179e8c907029d0d9254863d4884581f3d60 (diff)
Allow specification of which parts of the DCP to encrypt (#3099).
Diffstat (limited to 'src/lib/dcp_examiner.h')
-rw-r--r--src/lib/dcp_examiner.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/lib/dcp_examiner.h b/src/lib/dcp_examiner.h
index 0a6045ed0..6bc9793aa 100644
--- a/src/lib/dcp_examiner.h
+++ b/src/lib/dcp_examiner.h
@@ -76,8 +76,16 @@ public:
return _name;
}
- bool encrypted() const {
- return _encrypted;
+ bool picture_encrypted() const {
+ return _picture_encrypted;
+ }
+
+ bool sound_encrypted() const {
+ return _sound_encrypted;
+ }
+
+ bool text_encrypted() const {
+ return _text_encrypted;
}
bool needs_assets() const {
@@ -216,7 +224,9 @@ private:
std::vector<DCPTextTrack> _dcp_subtitle_tracks;
/** the DCPTextTracks for each of our closed captions */
std::vector<DCPTextTrack> _dcp_caption_tracks;
- bool _encrypted = false;
+ bool _picture_encrypted = false;
+ bool _sound_encrypted = false;
+ bool _text_encrypted = false;
bool _needs_assets = false;
bool _kdm_valid = false;
boost::optional<dcp::Standard> _standard;