X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmagick_image_proxy.h;h=62f3afa2e23e01cf37be424dffa2f8fd00a350f1;hb=c4ac1ba47652884a647103ec49b2de4c0b6e60a9;hp=5c4532add9b1e8ae67bad08546e37087b50aa769;hpb=5bbf16e87ca09369174c9d2bb7f7fe94b6d70275;p=dcpomatic.git diff --git a/src/lib/magick_image_proxy.h b/src/lib/magick_image_proxy.h index 5c4532add..62f3afa2e 100644 --- a/src/lib/magick_image_proxy.h +++ b/src/lib/magick_image_proxy.h @@ -26,10 +26,10 @@ class MagickImageProxy : public ImageProxy { public: - MagickImageProxy (boost::filesystem::path); + explicit MagickImageProxy (boost::filesystem::path); MagickImageProxy (boost::shared_ptr xml, boost::shared_ptr socket); - boost::shared_ptr image ( + std::pair, int> image ( boost::optional note = boost::optional (), boost::optional size = boost::optional () ) const; @@ -38,9 +38,14 @@ public: void send_binary (boost::shared_ptr) const; bool same (boost::shared_ptr other) const; AVPixelFormat pixel_format () const; + size_t memory_used () const; private: Magick::Blob _blob; + /** Path of a file that this image came from, if applicable; stored so that + failed-decode errors can give more detail. + */ + boost::optional _path; mutable boost::shared_ptr _image; mutable boost::mutex _mutex; };