38 static int all_same(
char *bitmap, 
int w, 
int h)
 
   65         return *bitmap || *(bitmap + 1) ||
 
   72     return *bitmap == 0 && 
all_same(bitmap, w, h);
 
  122         encode_block(bitmap + w + h * XFACE_WIDTH, w, h, level, pq);
 
  152     int i, j, k, ret = 0;
 
  160                    "Size value %dx%d not supported, only accepts a size of %dx%d\n",
 
  169     buf = frame->
data[0];
 
  172         for (k = 0; k < 8; k++)
 
  173             xface->
bitmap[i++] = (buf[j]>>(7-k))&1;