it's a shorter name :3
This commit is contained in:
parent
5e166965bb
commit
4d6fbfbd91
1 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ static uint8_t rgb_to_luma(uint8_t r, uint8_t g, uint8_t b) {
|
||||||
+ (CAMMY_IMAGE_Y_COEFFICIENT_B * (float)b));
|
+ (CAMMY_IMAGE_Y_COEFFICIENT_B * (float)b));
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint8_t rgb_to_tile_2bpp(uint8_t r, uint8_t g, uint8_t b, size_t x, size_t y) {
|
static uint8_t rgb_to_2bpp(uint8_t r, uint8_t g, uint8_t b, size_t x, size_t y) {
|
||||||
uint8_t gray = rgb_to_luma(r, g, b);
|
uint8_t gray = rgb_to_luma(r, g, b);
|
||||||
|
|
||||||
uint32_t slot = bayer_matrix[gray];
|
uint32_t slot = bayer_matrix[gray];
|
||||||
|
@ -589,8 +589,8 @@ static void copy_bitmap_to_tile(cammy_image *dest,
|
||||||
to->x + x,
|
to->x + x,
|
||||||
to->y + y,
|
to->y + y,
|
||||||
dest->width,
|
dest->width,
|
||||||
rgb_to_tile_2bpp(r, g, b, to->x + x,
|
rgb_to_2bpp(r, g, b, to->x + x,
|
||||||
to->y + y));
|
to->y + y));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue