Skip to content

Commit

Permalink
fix premultiply
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Nov 1, 2023
1 parent 9f78a1f commit ba714df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/jxlc/RgbRgbaConverter.mm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ @implementation RgbRgbaConverter: NSObject
.rowBytes = static_cast<vImagePixelCount>(width * 3)
};
Pixel_8888 fillColor = {0x00, 0x00, 0x00, 0xFF};
vImage_Error vEerror = vImageFlatten_RGBA8888ToRGB888(&src, &dest, fillColor, true, kvImageNoFlags);
vImage_Error vEerror = vImageFlatten_RGBA8888ToRGB888(&src, &dest, fillColor, false, kvImageNoFlags);
if (vEerror != kvImageNoError) {
dstVector.resize(1);
return dstVector;
Expand Down

0 comments on commit ba714df

Please sign in to comment.