Use a bool instead of an int for disable-forensic-picture and
[libdcp.git] / src / decrypted_kdm.h
index c264bfbcf305aac9dd79482bc9ef009c1f5e6078..7ae1d161feaf1efefb5820985b68bbe5646371b6 100644 (file)
@@ -124,6 +124,9 @@ public:
         *  @param trusted_devices Extra trusted devices which should be written to the KDM (recipient will be written
         *  as a trusted device automatically and does not need to be included in this list).
         *  @param formulation Formulation to use for the encrypted KDM.
+        *  @param disable_forensic_marking_picture true to disable forensic marking of picture.
+        *  @param disable_forensic_marking_audio if not set, don't disable forensic marking of audio.  If set to 0,
+        *  disable all forensic marking; if set above 0, disable forensic marking above that channel.
         *  @return Encrypted KDM.
         */
        EncryptedKDM encrypt (
@@ -131,8 +134,8 @@ public:
                Certificate recipient,
                std::vector<Certificate> trusted_devices,
                Formulation formulation,
-               int disable_forensic_marking_picture,
-               int disable_forensic_marking_audio
+               bool disable_forensic_marking_picture,
+               boost::optional<int> disable_forensic_marking_audio
                ) const;
 
        void add_key (boost::optional<std::string> type, std::string key_id, Key key, std::string cpl_id, Standard standard);