Update codecs/jxl/dec/jxl_dec.cpp

This commit is contained in:
Ingvar Stepanyan
2020-10-30 12:29:34 +00:00
parent c214a7a942
commit fc9bd5bf08

View File

@ -72,8 +72,6 @@ val decode(std::string data) {
&jxl_profile, pixels.get(), skcms_PixelFormat_RGBA_8888, skcms_AlphaFormat_Unpremul,
skcms_sRGB_profile(), info.xsize * info.ysize));
float_pixels.reset();
return ImageData.new_(
Uint8ClampedArray.new_(typed_memory_view(info.xsize * info.ysize * 4, pixels.get())),
info.xsize, info.ysize);