Repository navigation
BGR linesize
#6544
|
The Pillow/src/libImaging/Storage.c Lines 131 to 161 in ad7be55 The file history shows that they've been like that since the fork, but does anyone know why they use a different formula? |
Answered by
radarhere
Aug 29, 2022
Replies: 1 comment
|
My guess would be that it is rounding up to a multiple of 4 for the same reason that LA/La/PA are stored in 4 bytes - to use image32. I'm not saying that should be the case, but it makes sense for those two things to be related. |
0 replies
Answer selected by
radarhere
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My guess would be that it is rounding up to a multiple of 4 for the same reason that LA/La/PA are stored in 4 bytes - to use image32.
I'm not saying that should be the case, but it makes sense for those two things to be related.