|
|
@@ -33,18 +33,24 @@ int main(int argc, char *argv[]) |
|
|
|
switch(atoi(argv[2])) |
|
|
|
{ |
|
|
|
case 6: |
|
|
|
newimg = pipi_dbs(img); break; |
|
|
|
newimg = pipi_dither_dbs(img); |
|
|
|
break; |
|
|
|
case 5: |
|
|
|
newimg = pipi_ostromoukhov(img, PIPI_SCAN_SERPENTINE); break; |
|
|
|
newimg = pipi_dither_ostromoukhov(img, PIPI_SCAN_SERPENTINE); |
|
|
|
break; |
|
|
|
case 4: |
|
|
|
newimg = pipi_ostromoukhov(img, PIPI_SCAN_RASTER); break; |
|
|
|
newimg = pipi_dither_ostromoukhov(img, PIPI_SCAN_RASTER); |
|
|
|
break; |
|
|
|
case 3: |
|
|
|
newimg = pipi_floydsteinberg(img, PIPI_SCAN_SERPENTINE); break; |
|
|
|
newimg = pipi_dither_floydsteinberg(img, PIPI_SCAN_SERPENTINE); |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
newimg = pipi_floydsteinberg(img, PIPI_SCAN_RASTER); break; |
|
|
|
newimg = pipi_dither_floydsteinberg(img, PIPI_SCAN_RASTER); |
|
|
|
break; |
|
|
|
case 1: |
|
|
|
default: |
|
|
|
newimg = pipi_dither_ordered(img); break; |
|
|
|
newimg = pipi_dither_ordered(img); |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
pipi_free(img); |
|
|
|