|
@@ -274,6 +274,9 @@ libmegapixels_mode_width_to_bytes(int index, uint32_t width)
|
|
uint32_t
|
|
uint32_t
|
|
libmegapixels_mode_width_to_padding(int index, uint32_t width)
|
|
libmegapixels_mode_width_to_padding(int index, uint32_t width)
|
|
{
|
|
{
|
|
|
|
+ if (mode_lut[index].bpp == 8) {
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
uint64_t bytes_per_width = libmegapixels_mode_width_to_bytes(index, width);
|
|
uint64_t bytes_per_width = libmegapixels_mode_width_to_bytes(index, width);
|
|
uint64_t remainder = bytes_per_width % 8;
|
|
uint64_t remainder = bytes_per_width % 8;
|
|
if (remainder == 0)
|
|
if (remainder == 0)
|