39 static int all_same(
char *bitmap,
int w,
int h)
66 return *bitmap || *(bitmap + 1) ||
73 return *bitmap == 0 &&
all_same(bitmap, w, h);
123 encode_block(bitmap + w + h * XFACE_WIDTH, w, h, level, pq);
153 int i, j, k,
ret = 0;
161 "Size value %dx%d not supported, only accepts a size of %dx%d\n",
170 buf = frame->
data[0];
173 for (k = 0; k < 8; k++)
174 xface->
bitmap[i++] = (buf[j]>>(7-k))&1;