- Timestamp:
- Sep 8, 2009, 6:30:12 PM (13 years ago)
- Location:
- libcaca/trunk/caca
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca/caca.h
r3608 r3646 390 390 __extern char const * caca_get_dither_algorithm(caca_dither_t const *); 391 391 __extern int caca_dither_bitmap(caca_canvas_t *, int, int, int, int, 392 caca_dither_t const *, void *);392 caca_dither_t const *, void const *); 393 393 __extern int caca_free_dither(caca_dither_t *); 394 394 /* @} */ -
libcaca/trunk/caca/dither.c
r3640 r3646 173 173 static float gammapow(float x, float y); 174 174 175 static void get_rgba_default(caca_dither_t const *, uint8_t *, int, int,175 static void get_rgba_default(caca_dither_t const *, uint8_t const *, int, int, 176 176 unsigned int *); 177 177 static int init_lookup(void); … … 941 941 */ 942 942 int caca_dither_bitmap(caca_canvas_t *cv, int x, int y, int w, int h, 943 caca_dither_t const *d, void *pixels)943 caca_dither_t const *d, void const *pixels) 944 944 { 945 945 int *floyd_steinberg, *fs_r, *fs_g, *fs_b; … … 1312 1312 } 1313 1313 1314 static void get_rgba_default(caca_dither_t const *d, uint8_t *pixels,1314 static void get_rgba_default(caca_dither_t const *d, uint8_t const *pixels, 1315 1315 int x, int y, unsigned int *rgba) 1316 1316 { … … 1322 1322 { 1323 1323 case 4: 1324 bits = *(uint32_t *)pixels;1324 bits = *(uint32_t const *)pixels; 1325 1325 break; 1326 1326 case 3: … … 1343 1343 } 1344 1344 case 2: 1345 bits = *(uint16_t *)pixels;1345 bits = *(uint16_t const *)pixels; 1346 1346 break; 1347 1347 case 1:
Note: See TracChangeset
for help on using the changeset viewer.