mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
remove unused ImagingAccess->line() method defs
This commit is contained in:
parent
b617943dca
commit
20f17cc6a7
|
@ -43,23 +43,6 @@ add_item(const char *mode) {
|
||||||
return &access_table[i];
|
return &access_table[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* fetch pointer to pixel line */
|
|
||||||
|
|
||||||
static void *
|
|
||||||
line_8(Imaging im, int x, int y) {
|
|
||||||
return &im->image8[y][x];
|
|
||||||
}
|
|
||||||
|
|
||||||
static void *
|
|
||||||
line_16(Imaging im, int x, int y) {
|
|
||||||
return &im->image8[y][x + x];
|
|
||||||
}
|
|
||||||
|
|
||||||
static void *
|
|
||||||
line_32(Imaging im, int x, int y) {
|
|
||||||
return &im->image32[y][x];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* fetch individual pixel */
|
/* fetch individual pixel */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -187,36 +170,35 @@ put_pixel_32(Imaging im, int x, int y, const void *color) {
|
||||||
|
|
||||||
void
|
void
|
||||||
ImagingAccessInit() {
|
ImagingAccessInit() {
|
||||||
#define ADD(mode_, line_, get_pixel_, put_pixel_) \
|
#define ADD(mode_, get_pixel_, put_pixel_) \
|
||||||
{ \
|
{ \
|
||||||
ImagingAccess access = add_item(mode_); \
|
ImagingAccess access = add_item(mode_); \
|
||||||
access->line = line_; \
|
|
||||||
access->get_pixel = get_pixel_; \
|
access->get_pixel = get_pixel_; \
|
||||||
access->put_pixel = put_pixel_; \
|
access->put_pixel = put_pixel_; \
|
||||||
}
|
}
|
||||||
|
|
||||||
/* populate access table */
|
/* populate access table */
|
||||||
ADD("1", line_8, get_pixel_8, put_pixel_8);
|
ADD("1", get_pixel_8, put_pixel_8);
|
||||||
ADD("L", line_8, get_pixel_8, put_pixel_8);
|
ADD("L", get_pixel_8, put_pixel_8);
|
||||||
ADD("LA", line_32, get_pixel, put_pixel);
|
ADD("LA", get_pixel, put_pixel);
|
||||||
ADD("La", line_32, get_pixel, put_pixel);
|
ADD("La", get_pixel, put_pixel);
|
||||||
ADD("I", line_32, get_pixel_32, put_pixel_32);
|
ADD("I", get_pixel_32, put_pixel_32);
|
||||||
ADD("I;16", line_16, get_pixel_16L, put_pixel_16L);
|
ADD("I;16", get_pixel_16L, put_pixel_16L);
|
||||||
ADD("I;16L", line_16, get_pixel_16L, put_pixel_16L);
|
ADD("I;16L", get_pixel_16L, put_pixel_16L);
|
||||||
ADD("I;16B", line_16, get_pixel_16B, put_pixel_16B);
|
ADD("I;16B", get_pixel_16B, put_pixel_16B);
|
||||||
ADD("I;32L", line_32, get_pixel_32L, put_pixel_32L);
|
ADD("I;32L", get_pixel_32L, put_pixel_32L);
|
||||||
ADD("I;32B", line_32, get_pixel_32B, put_pixel_32B);
|
ADD("I;32B", get_pixel_32B, put_pixel_32B);
|
||||||
ADD("F", line_32, get_pixel_32, put_pixel_32);
|
ADD("F", get_pixel_32, put_pixel_32);
|
||||||
ADD("P", line_8, get_pixel_8, put_pixel_8);
|
ADD("P", get_pixel_8, put_pixel_8);
|
||||||
ADD("PA", line_32, get_pixel, put_pixel);
|
ADD("PA", get_pixel, put_pixel);
|
||||||
ADD("RGB", line_32, get_pixel_32, put_pixel_32);
|
ADD("RGB", get_pixel_32, put_pixel_32);
|
||||||
ADD("RGBA", line_32, get_pixel_32, put_pixel_32);
|
ADD("RGBA", get_pixel_32, put_pixel_32);
|
||||||
ADD("RGBa", line_32, get_pixel_32, put_pixel_32);
|
ADD("RGBa", get_pixel_32, put_pixel_32);
|
||||||
ADD("RGBX", line_32, get_pixel_32, put_pixel_32);
|
ADD("RGBX", get_pixel_32, put_pixel_32);
|
||||||
ADD("CMYK", line_32, get_pixel_32, put_pixel_32);
|
ADD("CMYK", get_pixel_32, put_pixel_32);
|
||||||
ADD("YCbCr", line_32, get_pixel_32, put_pixel_32);
|
ADD("YCbCr", get_pixel_32, put_pixel_32);
|
||||||
ADD("LAB", line_32, get_pixel_32, put_pixel_32);
|
ADD("LAB", get_pixel_32, put_pixel_32);
|
||||||
ADD("HSV", line_32, get_pixel_32, put_pixel_32);
|
ADD("HSV", get_pixel_32, put_pixel_32);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImagingAccess
|
ImagingAccess
|
||||||
|
|
Loading…
Reference in New Issue
Block a user