projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ca54593
)
Add missing factor to fix problems when padding in subsampled containers; should...
author
Carl Hetherington
<cth@carlh.net>
Sat, 30 Dec 2017 01:47:26 +0000
(
01:47
+0000)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 30 Dec 2017 01:47:26 +0000
(
01:47
+0000)
src/lib/image.cc
patch
|
blob
|
history
diff --git
a/src/lib/image.cc
b/src/lib/image.cc
index 92c1ab9a227575273641f4725552205d0697d885..a6354f2d16793c8790930f7eb4f622bbfd1db7d0 100644
(file)
--- a/
src/lib/image.cc
+++ b/
src/lib/image.cc
@@
-205,7
+205,7
@@
Image::crop_scale_window (
uint8_t* scale_out_data[out->planes()];
for (int c = 0; c < out->planes(); ++c) {
uint8_t* scale_out_data[out->planes()];
for (int c = 0; c < out->planes(); ++c) {
- scale_out_data[c] = out->data()[c] + lrintf (out->bytes_per_pixel(c) * corner.x) + out->stride()[c] *
corner.y
;
+ scale_out_data[c] = out->data()[c] + lrintf (out->bytes_per_pixel(c) * corner.x) + out->stride()[c] *
(corner.y / out->vertical_factor(c))
;
}
sws_scale (
}
sws_scale (