mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +03:00
parent
9300ced1e1
commit
0e0afd4acf
|
@ -1041,7 +1041,7 @@ static void
|
||||||
p2i(UINT8* out_, const UINT8* in, int xsize, const UINT8* palette)
|
p2i(UINT8* out_, const UINT8* in, int xsize, const UINT8* palette)
|
||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
for (x = 0; x < xsize; x++, in += 2, out_ += 4) {
|
for (x = 0; x < xsize; x++, out_ += 4) {
|
||||||
INT32 v = L(&palette[in[x]*4]) / 1000;
|
INT32 v = L(&palette[in[x]*4]) / 1000;
|
||||||
memcpy(out_, &v, sizeof(v));
|
memcpy(out_, &v, sizeof(v));
|
||||||
}
|
}
|
||||||
|
@ -1060,7 +1060,7 @@ static void
|
||||||
p2f(UINT8* out_, const UINT8* in, int xsize, const UINT8* palette)
|
p2f(UINT8* out_, const UINT8* in, int xsize, const UINT8* palette)
|
||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
for (x = 0; x < xsize; x++, in += 2, out_ += 4) {
|
for (x = 0; x < xsize; x++, out_ += 4) {
|
||||||
FLOAT32 v = L(&palette[in[x]*4]) / 1000.0F;
|
FLOAT32 v = L(&palette[in[x]*4]) / 1000.0F;
|
||||||
memcpy(out_, &v, sizeof(v));
|
memcpy(out_, &v, sizeof(v));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user