X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fimage_proxy.h;h=d7bd7b0e62811f9846ceb92a127a77be09d9b1f5;hb=c180f317d5a8b27dd191c1f2228ceb6fc4039393;hp=b0ec161102d1f311e1e019c47793314c35166944;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/lib/image_proxy.h b/src/lib/image_proxy.h index b0ec16110..d7bd7b0e6 100644 --- a/src/lib/image_proxy.h +++ b/src/lib/image_proxy.h @@ -60,8 +60,16 @@ class ImageProxy : public boost::noncopyable public: virtual ~ImageProxy () {} - /** @return Image (which must be aligned) */ - virtual boost::shared_ptr image (boost::optional note = boost::optional ()) const = 0; + /** @param note Handler for any notes that occur. + * @param size Size that the returned image will be scaled to, in case this + * can be used as an optimisation. + * @return Image (which must be aligned) + */ + virtual boost::shared_ptr image ( + boost::optional note = boost::optional (), + boost::optional size = boost::optional () + ) const = 0; + virtual void add_metadata (xmlpp::Node *) const = 0; virtual void send_binary (boost::shared_ptr) const = 0; /** @return true if our image is definitely the same as another, false if it is probably not */