Boost logo

Boost :

Subject: Re: Directly accessing underlying memory for image
From: Olzhas Zhumabek (anonymous.from.applecity_at_[hidden])
Date: 2019-05-06 19:25:12


I found the problem. I just had to change this line:

auto end = std::addressof(input_view(input_view.width() - 1,
input_view.height() - 1));

into this

auto end = std::addressof(input_view(input_view.width() - 1,
input_view.height() - 1)) + 1;

The end pointer was off by one. I will post my findings and code that I
used for benchmarking shortly on the issue page
<https://github.com/boostorg/gil/issues/234>.


Boost list run by Boost-Gil-Owners