Lines Matching defs:pixels
13 int EncodeImage( unsigned char * data, int pixels, unsigned char * fileArr );
75 short width; /* how many pixels wide is this data */
76 short height; /* how many pixels high is this data */
113 unsigned int i, pixels, sum, encodedSize, fg24= 0xFFFFFF, bg24=0x222222;
222 pixels = image_header.dataSize;
225 pixels = convert8toGrey( data, image_header.dataSize );
228 pixels = convert8bitIndexto8( data, height, width, &data );
229 image_header.dataSize = pixels;
232 printf("Converted %d pixels%s...\n", pixels/depth, ((grey==1)?" to grayscale":""));
245 if (!(fileArr = (unsigned char *) malloc(pixels))) {
246 fprintf(stderr,"Err: Couldn't malloc fileArr (%d pixels)... bailing.\n", pixels);
250 encodedSize = EncodeImage( data, pixels, fileArr );
252 if ( encodedSize >= pixels )
473 EncodeImage( unsigned char * data, int pixels, unsigned char * fileArr )
487 for (i=1; i<pixels;) {
488 if ( compareruns( data, &i, pixels, currP, &depth ) )