Support swizzle from PIXEL_FORMAT__Y to same

This commit is contained in:
Nigel Tao committed 2020-12-26 22:11:11 +11:00
1 parent c4ce7ae6c7
commit b4dcc4e5ed
3 files changed
+21 -15

No files matched your search

+3
View File
@@ -15955,6 +15955,9 @@ wuffs_base__pixel_swizzler__prepare__y(wuffs_base__pixel_swizzler* p,
wuffs_base__slice_u8 src_palette,
wuffs_base__pixel_blend blend) {
switch (dst_pixfmt.repr) {
case WUFFS_BASE__PIXEL_FORMAT__Y:
return wuffs_base__pixel_swizzler__copy_1_1;
case WUFFS_BASE__PIXEL_FORMAT__BGR_565:
return wuffs_base__pixel_swizzler__bgr_565__y;