4 filter_scanlines (void *src_buffer, void *dst_buffer, int dst_pitch, int width)
7 unsigned short *src, *dst_a, *dst_b;
9 src = (unsigned short *) src_buffer;
10 dst_a = (unsigned short *) dst_buffer;
11 dst_b = ((unsigned short *) dst_buffer) + (dst_pitch >> 1);
13 for (x = 0; x < width; x++)
18 dst_a[x] = (gh << 5) | (gh);
19 dst_b[x] = ((gs - gh) << 5) | (gs - gh);