X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fpicture_asset.h;h=cc99ddbcbe0ea592d89000fee51a7958c44114c5;hb=d5ec30b6d746177e97707085b9e6b709e41ecc20;hp=59c4dc001820468963e16d86794ac82c65fdbb09;hpb=fca67f5661c55db6d4206cd17f4cdcf7ede865da;p=libdcp.git diff --git a/src/picture_asset.h b/src/picture_asset.h index 59c4dc00..cc99ddbc 100644 --- a/src/picture_asset.h +++ b/src/picture_asset.h @@ -57,19 +57,16 @@ public: * @param intrinsic_duration Duration of all the frames in the asset. * @param size Size of video frame images in pixels. */ - PictureAsset (std::string directory, std::string mxf_name, boost::signals2::signal* progress, int fps, int intrinsic_duration, Size size); + PictureAsset (std::string directory, std::string mxf_name, boost::signals2::signal* progress, int fps, int intrinsic_duration, bool encrypted, Size); - /** Write details of this asset to a CPL stream. - * @param s Stream. - */ - void write_to_cpl (std::ostream& s) const; - bool equals (boost::shared_ptr other, EqualityOptions opt, boost::function note) const; Size size () const { return _size; } + void write_to_cpl (xmlpp::Node *) const; + protected: bool frame_buffer_equals ( @@ -79,6 +76,10 @@ protected: /** picture size in pixels */ Size _size; + +private: + std::string key_type () const; + std::string cpl_node_name () const; }; class MonoPictureAsset; @@ -113,8 +114,6 @@ struct FrameInfo class MonoPictureAssetWriter { public: - ~MonoPictureAssetWriter (); - FrameInfo write (uint8_t* data, int size); void fake_write (int size); void finalize (); @@ -160,6 +159,7 @@ public: * @param fps Video frames per second. * @param intrinsic_duration Length of the whole asset in frames. * @param size Size of images in pixels. + * @param encrypted true if asset should be encrypted. */ MonoPictureAsset ( std::vector const & files, @@ -168,6 +168,7 @@ public: boost::signals2::signal* progress, int fps, int intrinsic_duration, + bool encrypted, Size size, MXFMetadata const & metadata = MXFMetadata () ); @@ -182,6 +183,7 @@ public: * @param fps Video frames per second. * @param intrinsic_duration Length of the whole asset in frames. * @param size Size of images in pixels. + * @param encrypted true if asset should be encrypted. */ MonoPictureAsset ( boost::function get_path, @@ -190,6 +192,7 @@ public: boost::signals2::signal* progress, int fps, int intrinsic_duration, + bool encrypted, Size size, MXFMetadata const & metadata = MXFMetadata () );