Changeset 2751 for libpipi


Ignore:
Timestamp:
Aug 23, 2008, 11:11:00 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • atkinson.c: implement Atkinson dithering.
Location:
libpipi/trunk/pipi
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/Makefile.am

    r2749 r2751  
    6666        dither/floydsteinberg.c \
    6767        dither/jajuni.c \
     68        dither/atkinson.c \
    6869        dither/ordered.c \
    6970        dither/ostromoukhov.c \
  • libpipi/trunk/pipi/context.c

    r2750 r2751  
    9393        else if(!strcmp(method, "sjajuni"))
    9494            dst = pipi_dither_jajuni(src, 1);
     95        else if(!strcmp(method, "atkinson"))
     96            dst = pipi_dither_atkinson(src, 0);
     97        else if(!strcmp(method, "satkinson"))
     98            dst = pipi_dither_atkinson(src, 1);
    9599        else if(!strcmp(method, "ost"))
    96100            dst = pipi_dither_ostromoukhov(src, 0);
  • libpipi/trunk/pipi/pipi.h

    r2750 r2751  
    146146extern pipi_image_t *pipi_dither_floydsteinberg(pipi_image_t *, pipi_scan_t);
    147147extern pipi_image_t *pipi_dither_jajuni(pipi_image_t *, pipi_scan_t);
     148extern pipi_image_t *pipi_dither_atkinson(pipi_image_t *, pipi_scan_t);
    148149extern pipi_image_t *pipi_dither_ordered(pipi_image_t *, pipi_image_t *);
    149150extern pipi_image_t *pipi_dither_random(pipi_image_t *);
Note: See TracChangeset for help on using the changeset viewer.