summaryrefslogtreecommitdiff
path: root/src/lib/image.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-05-12 00:18:18 +0100
committerCarl Hetherington <cth@carlh.net>2016-05-12 00:18:18 +0100
commit631f905234537d2b0a24e9b3ff40f08a17c0fd8b (patch)
treedc60d31714e5201028d679b41bef6c5658681a02 /src/lib/image.h
parent396cddb7c112aedc80a106a785083aea05b8b741 (diff)
Optimise image scaling for the preview.
Diffstat (limited to 'src/lib/image.h')
-rw-r--r--src/lib/image.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/image.h b/src/lib/image.h
index 416ee3a8d..b8d48275a 100644
--- a/src/lib/image.h
+++ b/src/lib/image.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -57,8 +57,10 @@ public:
int line_factor (int) const;
dcp::Size sample_size (int) const;
- boost::shared_ptr<Image> scale (dcp::Size, dcp::YUVToRGB yuv_to_rgb, AVPixelFormat, bool aligned) const;
- boost::shared_ptr<Image> crop_scale_window (Crop c, dcp::Size, dcp::Size, dcp::YUVToRGB yuv_to_rgb, AVPixelFormat, bool aligned) const;
+ boost::shared_ptr<Image> scale (dcp::Size, dcp::YUVToRGB yuv_to_rgb, AVPixelFormat, bool aligned, bool fast) const;
+ boost::shared_ptr<Image> crop_scale_window (
+ Crop c, dcp::Size, dcp::Size, dcp::YUVToRGB yuv_to_rgb, AVPixelFormat, bool aligned, bool fast)
+ const;
void make_black ();
void make_transparent ();