summaryrefslogtreecommitdiff
path: root/src/lib/image.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-12-20 17:36:31 +0000
committerCarl Hetherington <cth@carlh.net>2013-12-20 17:36:31 +0000
commit9b21d77dccc88d9b77085e05845e0b8e2d606b3b (patch)
tree03d962ff6ebda619a9e749cc3d235d9b687a0de7 /src/lib/image.cc
parent570d4c4489b49c3915674085ee24414f738cb914 (diff)
Some small optimisations to player.
Diffstat (limited to 'src/lib/image.cc')
-rw-r--r--src/lib/image.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc
index 95bf2b04d..18ddbc98d 100644
--- a/src/lib/image.cc
+++ b/src/lib/image.cc
@@ -31,6 +31,7 @@ extern "C" {
#include "image.h"
#include "exceptions.h"
#include "scaler.h"
+#include "timer.h"
using std::string;
using std::min;
@@ -94,9 +95,9 @@ Image::crop_scale_window (Crop crop, libdcp::Size inter_size, libdcp::Size out_s
libdcp::Size cropped_size = crop.apply (size ());
struct SwsContext* scale_context = sws_getContext (
- cropped_size.width, cropped_size.height, pixel_format(),
- inter_size.width, inter_size.height, out_format,
- scaler->ffmpeg_id (), 0, 0, 0
+ cropped_size.width, cropped_size.height, pixel_format(),
+ inter_size.width, inter_size.height, out_format,
+ scaler->ffmpeg_id (), 0, 0, 0
);
uint8_t* scale_in_data[components()];