X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fmagick_image_proxy.h;h=6e94492ad5f13b33c919a04576dc42f4881070cf;hp=a2635236fc26014b7281ba8228133d35d7aab7b2;hb=aeb835a18c8df347e0ed68fb24631b320abeb611;hpb=63f506966cc4e9c459b3bcb430a11481f9d3a24a diff --git a/src/lib/magick_image_proxy.h b/src/lib/magick_image_proxy.h index a2635236f..6e94492ad 100644 --- a/src/lib/magick_image_proxy.h +++ b/src/lib/magick_image_proxy.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington + Copyright (C) 2014-2015 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,18 +18,23 @@ */ #include "image_proxy.h" +#include +#include +#include class MagickImageProxy : public ImageProxy { public: - MagickImageProxy (boost::filesystem::path, boost::shared_ptr log); - MagickImageProxy (boost::shared_ptr xml, boost::shared_ptr socket, boost::shared_ptr log); + MagickImageProxy (boost::filesystem::path); + MagickImageProxy (boost::shared_ptr xml, boost::shared_ptr socket); - boost::shared_ptr image () const; + boost::shared_ptr image (boost::optional note = boost::optional ()) const; void add_metadata (xmlpp::Node *) const; void send_binary (boost::shared_ptr) const; + bool same (boost::shared_ptr other) const; -private: +private: Magick::Blob _blob; mutable boost::shared_ptr _image; + mutable boost::mutex _mutex; };