API: Jpeg should load properly

This commit is contained in:
Andrew Haynes
2026-03-22 18:45:36 -04:00
parent 53090ecd78
commit 3858e463ee
2 changed files with 1 additions and 7 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ jpeg_save(const unsigned int* src_buf, const JPEG* attr, const char* name)
tj3Set(tjcompress, TJPARAM_QUALITY, 80);
tj3Set(tjcompress, TJPARAM_SUBSAMP, TJSAMP_420);
if (tj3Compress8(tjcompress, (unsigned char*)src_buf, attr->width, 0,
attr->height, TJPF_BGRA, &dst_buf, &dst_size) < 0)
attr->height, TJPF_ARGB, &dst_buf, &dst_size) < 0)
{
printf("TurboJPEG Error: %s\n", tj3GetErrorStr(tjcompress));
}