mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 02:36:17 +03:00
Merge pull request #7964 from Yay295/patch-1
This commit is contained in:
commit
3fd5739a72
|
@ -339,7 +339,7 @@ ImagingPackXBGR(UINT8 *out, const UINT8 *in, int pixels) {
|
||||||
void
|
void
|
||||||
ImagingPackBGRA(UINT8 *out, const UINT8 *in, int pixels) {
|
ImagingPackBGRA(UINT8 *out, const UINT8 *in, int pixels) {
|
||||||
int i;
|
int i;
|
||||||
/* BGRX, reversed bytes with right padding */
|
/* BGRA, reversed bytes with right alpha */
|
||||||
for (i = 0; i < pixels; i++) {
|
for (i = 0; i < pixels; i++) {
|
||||||
out[0] = in[B];
|
out[0] = in[B];
|
||||||
out[1] = in[G];
|
out[1] = in[G];
|
||||||
|
@ -353,7 +353,7 @@ ImagingPackBGRA(UINT8 *out, const UINT8 *in, int pixels) {
|
||||||
void
|
void
|
||||||
ImagingPackABGR(UINT8 *out, const UINT8 *in, int pixels) {
|
ImagingPackABGR(UINT8 *out, const UINT8 *in, int pixels) {
|
||||||
int i;
|
int i;
|
||||||
/* XBGR, reversed bytes with left padding */
|
/* ABGR, reversed bytes with left alpha */
|
||||||
for (i = 0; i < pixels; i++) {
|
for (i = 0; i < pixels; i++) {
|
||||||
out[0] = in[A];
|
out[0] = in[A];
|
||||||
out[1] = in[B];
|
out[1] = in[B];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user