diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-12 00:18:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-12 00:18:18 +0100 |
| commit | 631f905234537d2b0a24e9b3ff40f08a17c0fd8b (patch) | |
| tree | dc60d31714e5201028d679b41bef6c5658681a02 /src/lib/player_video.h | |
| parent | 396cddb7c112aedc80a106a785083aea05b8b741 (diff) | |
Optimise image scaling for the preview.
Diffstat (limited to 'src/lib/player_video.h')
| -rw-r--r-- | src/lib/player_video.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/player_video.h b/src/lib/player_video.h index 01b1c74f5..8bd1c7be3 100644 --- a/src/lib/player_video.h +++ b/src/lib/player_video.h @@ -54,7 +54,10 @@ public: void set_subtitle (PositionImage); - boost::shared_ptr<Image> image (dcp::NoteHandler note) const; + boost::shared_ptr<Image> image (dcp::NoteHandler note, boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, bool aligned, bool fast) const; + + static AVPixelFormat always_rgb (AVPixelFormat); + static AVPixelFormat keep_xyz_or_rgb (AVPixelFormat); void add_metadata (xmlpp::Node* node) const; void send_binary (boost::shared_ptr<Socket> socket) const; |
