diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-09-15 01:00:33 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-09-27 13:41:46 +0200 |
| commit | 9bfa07293928c371d59db2091ba2b7e715ce5994 (patch) | |
| tree | f73bc4c69e13d19c934b0ee798ebfa4a68e46597 /src/lib/raw_image_proxy.cc | |
| parent | c59981ce92898f6be6987f10ebb29161e36e6766 (diff) | |
Various alignment adjustments.
Diffstat (limited to 'src/lib/raw_image_proxy.cc')
| -rw-r--r-- | src/lib/raw_image_proxy.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/raw_image_proxy.cc b/src/lib/raw_image_proxy.cc index fed40c45e..ac8ff0763 100644 --- a/src/lib/raw_image_proxy.cc +++ b/src/lib/raw_image_proxy.cc @@ -64,9 +64,10 @@ RawImageProxy::RawImageProxy (shared_ptr<cxml::Node> xml, shared_ptr<Socket> soc ImageProxy::Result -RawImageProxy::image (optional<dcp::Size>) const +RawImageProxy::image (bool aligned, optional<dcp::Size>) const { - return Result (_image, 0); + /* This ensure_aligned could be wasteful */ + return Result (Image::ensure_aligned(_image, aligned), 0); } @@ -95,7 +96,7 @@ RawImageProxy::same (shared_ptr<const ImageProxy> other) const return false; } - return (*_image.get()) == (*rp->image().image.get()); + return (*_image.get()) == (*rp->image(_image->aligned()).image.get()); } |
