Mercurial > hg > xemacs-beta
comparison src/imgproc.c @ 647:b39c14581166
[xemacs-hg @ 2001-08-13 04:45:47 by ben]
removal of unsigned, size_t, etc.
author | ben |
---|---|
date | Mon, 13 Aug 2001 04:46:48 +0000 |
parents | 3ecd8885ac67 |
children | a8d8f419b459 |
comparison
equal
deleted
inserted
replaced
646:00c54252fe4f | 647:b39c14581166 |
---|---|
43 #include <config.h> | 43 #include <config.h> |
44 #include "lisp.h" | 44 #include "lisp.h" |
45 #include "imgproc.h" | 45 #include "imgproc.h" |
46 | 46 |
47 static void | 47 static void |
48 get_histogram(quant_table *qt, unsigned char *pic, | 48 get_histogram(quant_table *qt, UChar_Binary *pic, |
49 int width, int height, Colorbox* box) | 49 int width, int height, Colorbox* box) |
50 { | 50 { |
51 register unsigned char *inptr; | 51 register UChar_Binary *inptr; |
52 register int red, green, blue; | 52 register int red, green, blue; |
53 register unsigned int j, i; | 53 register int j, i; |
54 | 54 |
55 box->rmin = box->gmin = box->bmin = 999; | 55 box->rmin = box->gmin = box->bmin = 999; |
56 box->rmax = box->gmax = box->bmax = -1; | 56 box->rmax = box->gmax = box->bmax = -1; |
57 box->total = width * height; | 57 box->total = width * height; |
58 | 58 |
470 } | 470 } |
471 return 0; | 471 return 0; |
472 } | 472 } |
473 | 473 |
474 quant_table * | 474 quant_table * |
475 build_EImage_quantable(unsigned char *eimage, int width, int height, int num_colors) | 475 build_EImage_quantable(UChar_Binary *eimage, int width, int height, int num_colors) |
476 { | 476 { |
477 quant_table *qt; | 477 quant_table *qt; |
478 Colorbox *box_list, *ptr; | 478 Colorbox *box_list, *ptr; |
479 int i,res; | 479 int i,res; |
480 | 480 |