diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-04-22 15:35:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-04-22 15:35:34 +0100 |
| commit | 9c9890b9ff89af710db21145c03a09993c629e3e (patch) | |
| tree | 9e96f24e230c7d75a3d0adeff4137e6d8305c710 /src/lib/image.h | |
| parent | 78c599cd7447ecfa33cc9f223d4fc6ba8b3879af (diff) | |
Actually use YUV->RGB setting when converting.
Diffstat (limited to 'src/lib/image.h')
| -rw-r--r-- | src/lib/image.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/image.h b/src/lib/image.h index 2e90a89e9..5c3931102 100644 --- a/src/lib/image.h +++ b/src/lib/image.h @@ -27,6 +27,7 @@ #include "position.h" #include "position_image.h" #include "types.h" +#include <dcp/colour_conversion.h> extern "C" { #include <libavcodec/avcodec.h> #include <libavfilter/avfilter.h> @@ -57,10 +58,9 @@ public: int line_factor (int) const; int lines (int) const; - boost::shared_ptr<Image> scale (dcp::Size, AVPixelFormat, bool aligned) const; + boost::shared_ptr<Image> scale (dcp::Size, dcp::YUVToRGB yuv_to_rgb, AVPixelFormat, bool aligned) const; boost::shared_ptr<Image> crop (Crop c, bool aligned) const; - - boost::shared_ptr<Image> crop_scale_window (Crop c, dcp::Size, dcp::Size, 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; void make_black (); void make_transparent (); |
