#include "video.h" #include "proto.h" /* *-------------------------------------------------------------- * * GrayDitherImage -- * * Dithers image into 128 gray scales. Simply maps luminance * value into 1 of 128 gray scale colors (divide by two, essentially). * * Results: * None. * * Side effects: * None. * *-------------------------------------------------------------- */ void GrayDitherImage(unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int h, int w) { /* int i, max = w*h/16; for (i=0; i