diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-11-26 15:14:11 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-11-26 15:14:11 +0000 |
| commit | 5bbf16e87ca09369174c9d2bb7f7fe94b6d70275 (patch) | |
| tree | 16b11c4d6480523711b4261e6f064aa58b0f5707 /src/lib/image_proxy.h | |
| parent | 51468148d3dde7cb4be3dae6442e5ef6bcafda2b (diff) | |
Reduce during J2K decode where possible for playback (#986).
Diffstat (limited to 'src/lib/image_proxy.h')
| -rw-r--r-- | src/lib/image_proxy.h | 12 |
1 files changed, 10 insertions, 2 deletions
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> image (boost::optional<dcp::NoteHandler> note = boost::optional<dcp::NoteHandler> ()) 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> image ( + boost::optional<dcp::NoteHandler> note = boost::optional<dcp::NoteHandler> (), + boost::optional<dcp::Size> size = boost::optional<dcp::Size> () + ) const = 0; + virtual void add_metadata (xmlpp::Node *) const = 0; virtual void send_binary (boost::shared_ptr<Socket>) const = 0; /** @return true if our image is definitely the same as another, false if it is probably not */ |
