diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-02 21:51:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-02 21:51:56 +0100 |
| commit | 8fca5499789ae1deb2dbcad8d3501a8f42fb95f0 (patch) | |
| tree | f77fd52ac2ade3f14eb686a3dfcd23d3d1277824 /src/picture_asset.h | |
| parent | 0884b93386c0b6858eae0236d75a4eba12176219 (diff) | |
Clean up DCP comparison a bit.
Diffstat (limited to 'src/picture_asset.h')
| -rw-r--r-- | src/picture_asset.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/picture_asset.h b/src/picture_asset.h index baea22c3..da3eb7d0 100644 --- a/src/picture_asset.h +++ b/src/picture_asset.h @@ -41,7 +41,7 @@ public: */ void write_to_cpl (std::ostream& s) const; - std::list<std::string> equals (boost::shared_ptr<const Asset> other, EqualityOptions opt) const; + bool equals (boost::shared_ptr<const Asset> other, EqualityOptions opt, std::list<std::string>& notes) const; int width () const { return _width; @@ -53,8 +53,9 @@ public: protected: - std::list<std::string> frame_buffer_equals ( - int frame, EqualityOptions opt, uint8_t const * data_A, unsigned int size_A, uint8_t const * data_B, unsigned int size_B + bool frame_buffer_equals ( + int frame, EqualityOptions opt, std::list<std::string>& notes, + uint8_t const * data_A, unsigned int size_A, uint8_t const * data_B, unsigned int size_B ) const; /** picture width in pixels */ @@ -114,7 +115,7 @@ public: MonoPictureAsset (std::string directory, std::string mxf_name, int fps, int entry_point, int length); boost::shared_ptr<const MonoPictureFrame> get_frame (int n) const; - std::list<std::string> equals (boost::shared_ptr<const Asset> other, EqualityOptions opt) const; + bool equals (boost::shared_ptr<const Asset> other, EqualityOptions opt, std::list<std::string>& notes) const; private: std::string path_from_list (int f, std::vector<std::string> const & files) const; @@ -128,7 +129,7 @@ public: StereoPictureAsset (std::string directory, std::string mxf_name, int fps, int entry_point, int length); boost::shared_ptr<const StereoPictureFrame> get_frame (int n) const; - std::list<std::string> equals (boost::shared_ptr<const Asset> other, EqualityOptions opt) const; + bool equals (boost::shared_ptr<const Asset> other, EqualityOptions opt, std::list<std::string>& notes) const; }; |
