diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-07-26 15:47:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-07-26 15:47:52 +0100 |
| commit | 3e230d3785f19bc707fd7ea2b1f55321b93f536f (patch) | |
| tree | 2773a105d2cf218d9c038418e388ff50f9b46236 /src/lib/image_proxy.h | |
| parent | b395478cbb0706de2b6afa9a34fb33e49c61ee67 (diff) | |
Multi-threaded decode of DCP when previewing.
Diffstat (limited to 'src/lib/image_proxy.h')
| -rw-r--r-- | src/lib/image_proxy.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/image_proxy.h b/src/lib/image_proxy.h index d7bd7b0e6..f9a06d1b7 100644 --- a/src/lib/image_proxy.h +++ b/src/lib/image_proxy.h @@ -74,6 +74,10 @@ public: 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 */ virtual bool same (boost::shared_ptr<const ImageProxy>) const = 0; + /** Do any useful work that would speed up a subsequent call to ::image(). + * This method may be called in a different thread to image(). + */ + virtual void prepare (boost::optional<dcp::Size> = boost::optional<dcp::Size>()) const {} virtual AVPixelFormat pixel_format () const = 0; }; |
