Use bt709 if not lossless so colour is correct

This commit is contained in:
Jake Archibald
2020-08-25 14:12:26 +01:00
parent f3749a4e24
commit 549e1fc50a
2 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ val encode(std::string buffer, int width, int height, AvifOptions options) {
format == AVIF_PIXEL_FORMAT_YUV444
) {
image->matrixCoefficients = AVIF_MATRIX_COEFFICIENTS_IDENTITY;
} else {
image->matrixCoefficients = AVIF_MATRIX_COEFFICIENTS_BT709;
}
uint8_t* rgba = (uint8_t*)buffer.c_str();

Binary file not shown.