mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 00:47:28 +01:00
Add WUFFS_BASE__PIXEL_FORMAT__BGR_565
This commit is contained in:
1 parent
9373749b07
commit
0e833f909a
7 files changed
+266
-22
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user