mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
commit
b9a05b8516
|
@ -39,7 +39,7 @@ class TestImageArray(PillowTestCase):
|
||||||
def test(mode):
|
def test(mode):
|
||||||
i = im.convert(mode)
|
i = im.convert(mode)
|
||||||
a = i.__array_interface__
|
a = i.__array_interface__
|
||||||
a["strides"] = 1 # pretend it's non-contigous
|
a["strides"] = 1 # pretend it's non-contiguous
|
||||||
# Make wrapper instance for image, new array interface
|
# Make wrapper instance for image, new array interface
|
||||||
wrapped = Wrapper(i, a)
|
wrapped = Wrapper(i, a)
|
||||||
out = Image.fromarray(wrapped)
|
out = Image.fromarray(wrapped)
|
||||||
|
|
|
@ -249,7 +249,7 @@ class TestImageTransformAffine(PillowTestCase):
|
||||||
|
|
||||||
|
|
||||||
class TestImageTransformPerspective(TestImageTransformAffine):
|
class TestImageTransformPerspective(TestImageTransformAffine):
|
||||||
# Repeat all tests for AFFINE transormations with PERSPECTIVE
|
# Repeat all tests for AFFINE transformations with PERSPECTIVE
|
||||||
transform = Image.PERSPECTIVE
|
transform = Image.PERSPECTIVE
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,7 @@ typedef struct {
|
||||||
/* Stream type (0=full, 1=tables only, 2=image only) */
|
/* Stream type (0=full, 1=tables only, 2=image only) */
|
||||||
int streamtype;
|
int streamtype;
|
||||||
|
|
||||||
/* DPI setting (0=square pixels, otherwide DPI) */
|
/* DPI setting (0=square pixels, otherwise DPI) */
|
||||||
int xdpi, ydpi;
|
int xdpi, ydpi;
|
||||||
|
|
||||||
/* Chroma Subsampling (-1=default, 0=none, 1=medium, 2=high) */
|
/* Chroma Subsampling (-1=default, 0=none, 1=medium, 2=high) */
|
||||||
|
|
|
@ -237,7 +237,7 @@ ImagingZipDecode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes)
|
||||||
state->y = STARTING_ROW[context->pass];
|
state->y = STARTING_ROW[context->pass];
|
||||||
row_len = get_row_len(state, context->pass);
|
row_len = get_row_len(state, context->pass);
|
||||||
/* Since we're moving to the "first" line, the previous line
|
/* Since we're moving to the "first" line, the previous line
|
||||||
* should be black to make filters work corectly */
|
* should be black to make filters work correctly */
|
||||||
memset(state->buffer, 0, state->bytes+1);
|
memset(state->buffer, 0, state->bytes+1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user