This commit is contained in:
artemp
2014-11-13 15:43:35 +00:00
committed by Leith Bade
parent efdb81d6a4
commit 0a532cc420
2 changed files with 10 additions and 16 deletions

View File

@@ -278,9 +278,8 @@ void jpeg_reader<T>::read(unsigned x0, unsigned y0, unsigned width, unsigned hei
g = r;
b = r;
}
out_row[x] = (0xff << 24) | (b << 16) | (g << 8) | r;//color(r, g, b, a).rgba();
out_row[x] = (0xff << 24) | (b << 16) | (g << 8) | r;
}
//image.setRow(row - y0, out_row.get(), w);
std::copy((char*)out_row.get(), (char*)out_row.get() + w*4, image + (row - y0)*width_*4);
}
++row;