diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-10-03 21:22:14 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-10-03 23:41:02 +0200 |
| commit | 969906f2dd6c5c144781861f53e2a0f6baefb9a3 (patch) | |
| tree | d4091610b2c0582f52a8d484fd7a36a9c4878111 /src/lib/pixel_quanta.h | |
| parent | 70b72b53eab0f247eb4dc605a2d669d4adb4e469 (diff) | |
Don't scale chroma subsampled images to sizes that don't align with the subsampling (#1872).v2.15.166
There's a slightly odd effect when scaling e.g. YVU420 images to
odd and then even widths - there's a small but visible luminance
shift. I don't know why this happens, but keeping the scaling
sizes locked to the subsampling seems to help.
Diffstat (limited to 'src/lib/pixel_quanta.h')
| -rw-r--r-- | src/lib/pixel_quanta.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/pixel_quanta.h b/src/lib/pixel_quanta.h index c37ba189b..018ce3346 100644 --- a/src/lib/pixel_quanta.h +++ b/src/lib/pixel_quanta.h @@ -26,6 +26,7 @@ #include "warnings.h" #include <libcxml/cxml.h> +#include <dcp/types.h> DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> DCPOMATIC_ENABLE_WARNINGS @@ -54,6 +55,7 @@ public: int round_x (int x_) const; int round_y (int y_) const; + dcp::Size round (dcp::Size size) const; int x; int y; |
