projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edc3870
)
Fix crop on aligned images, which affected still image DCP generation.
author
Carl Hetherington
<cth@carlh.net>
Sun, 3 Feb 2013 17:47:00 +0000
(17:47 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 3 Feb 2013 17:47:00 +0000
(17:47 +0000)
src/lib/image.cc
patch
|
blob
|
history
diff --git
a/src/lib/image.cc
b/src/lib/image.cc
index 9223fdc5d0019cdfecbe2a2e20930c8546a7c426..0ec6bd26c7ef83cc0c004b1c370850f7ed908c4b 100644
(file)
--- a/
src/lib/image.cc
+++ b/
src/lib/image.cc
@@
-240,8
+240,8
@@
Image::crop (Crop crop, bool aligned) const
for (int y = 0; y < cropped_size.height; ++y) {
memcpy (out_p, in_p + crop_left_in_bytes, cropped_width_in_bytes);
- in_p +=
line_siz
e()[c];
- out_p += out->
line_siz
e()[c];
+ in_p +=
strid
e()[c];
+ out_p += out->
strid
e()[c];
}
}