{
if (in.width() != out.width() || in.height() != out.height()) {
throw std::runtime_error("sizes of input and output images are diferent.");
{
if (in.width() != out.width() || in.height() != out.height()) {
throw std::runtime_error("sizes of input and output images are diferent.");
- memory::LinearPitch<uint8_t> d_in(width, height), d_out(width, height);
+ memory::LinearPitch<uint_fast8_t> d_in(width, height), d_out(width, height);
// copy an input image to device memory
d_in.copy_from(in.data(), bpp * width, height, in.stride());
// copy an input image to device memory
d_in.copy_from(in.data(), bpp * width, height, in.stride());