Add WUFFS_BASE__PIXEL_FORMAT__BGR_565

This commit is contained in:
Nigel Tao committed 2020-01-28 10:32:40 +11:00
1 parent 9373749b07
commit 0e833f909a
7 files changed
+266 -22

No files matched your search

+2
View File
@@ -1046,6 +1046,8 @@ pri func decoder.copy_to_image_buffer!(pb: ptr base.pixel_buffer, src: slice bas
bytes_per_pixel = 4
} else if (bits_per_pixel == 24) {
bytes_per_pixel = 3
} else if (bits_per_pixel == 16) {
bytes_per_pixel = 2
} else if (bits_per_pixel == 8) {
bytes_per_pixel = 1
} else {