Fix alpha channel in encoder

This commit is contained in:
Surma
2020-08-03 12:41:49 +01:00
committed by Ingvar Stepanyan
parent 15dac42a7f
commit 7893660679
5 changed files with 9 additions and 9 deletions

View File

@@ -55,7 +55,7 @@ val encode(std::string buffer, int width, int height, AvifOptions options) {
pixel[0] = rgba[pixelOffset * 4 + 0];
pixel[1] = rgba[pixelOffset * 4 + 1];
pixel[2] = rgba[pixelOffset * 4 + 2];
pixel[3] = rgba[pixelOffset * 4 + 0];
pixel[3] = rgba[pixelOffset * 4 + 3];
}
}
avifImageRGBToYUV(image, &srcRGB);