Allow progressive writes to be encrypted.
authorCarl Hetherington <cth@carlh.net>
Wed, 18 Sep 2013 07:17:55 +0000 (08:17 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 18 Sep 2013 07:17:55 +0000 (08:17 +0100)
src/picture_asset.cc
src/picture_asset.h

index 2c35e9f9702269feafd082c9ae3acb89036b6c02..1c48034844705677d50dc2630db3bfda60288784 100644 (file)
@@ -222,8 +222,8 @@ MonoPictureAsset::MonoPictureAsset (
        construct (boost::bind (&MonoPictureAsset::path_from_list, this, _1, files), interop, metadata);
 }
 
-MonoPictureAsset::MonoPictureAsset (string directory, string mxf_name, int fps, Size size)
-       : PictureAsset (directory, mxf_name, 0, fps, 0, false, size)
+MonoPictureAsset::MonoPictureAsset (string directory, string mxf_name, int fps, Size size, bool encrypted)
+       : PictureAsset (directory, mxf_name, 0, fps, 0, encrypted, size)
 {
 
 }
@@ -472,8 +472,8 @@ PictureAsset::key_type () const
        return "MDIK";
 }
 
-StereoPictureAsset::StereoPictureAsset (string directory, string mxf_name, int fps, Size size)
-       : PictureAsset (directory, mxf_name, 0, fps, 0, false, size)
+StereoPictureAsset::StereoPictureAsset (string directory, string mxf_name, int fps, Size size, bool encrypted)
+       : PictureAsset (directory, mxf_name, 0, fps, 0, encrypted, size)
 {
 
 }
index 2af1f69ad0a940c2f270256eb5805fb3b2312a7b..7fcc2efb666e4fb3f6981dfee20ead8b2afe653e 100644 (file)
@@ -166,7 +166,7 @@ public:
         *  @param fps Video frames per second.
         *  @param size Size in pixels that the picture frames will be.
         */
-       MonoPictureAsset (std::string directory, std::string mxf_name, int fps, Size size);
+       MonoPictureAsset (std::string directory, std::string mxf_name, int fps, Size size, bool encrypted);
 
        /** Start a progressive write to a MonoPictureAsset */
        boost::shared_ptr<PictureAssetWriter> start_write (bool, bool, MXFMetadata const & metadata = MXFMetadata ());
@@ -195,7 +195,7 @@ public:
         *  @param fps Video frames per second.
         *  @param size Size in pixels that the picture frames will be.
         */
-       StereoPictureAsset (std::string directory, std::string mxf_name, int fps, Size size);
+       StereoPictureAsset (std::string directory, std::string mxf_name, int fps, Size size, bool encrypted);
 
        /** Start a progressive write to a StereoPictureAsset */
        boost::shared_ptr<PictureAssetWriter> start_write (bool, bool, MXFMetadata const & metadata = MXFMetadata ());