Ignore:
Timestamp:
Jul 29, 2008, 1:01:29 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Big API reorganisation. Now libpipi can transparently convert between colour spaces for a given image. For instance, if pipi_gaussian_blur is applied to a 32-bpp image, it is automatically converted to gamma-corrected 32-bit floats beforehands, then converted back to normal.
  • TODO: clipping, regions of interest, more formats, getpixel macros...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/codec.c

    r2261 r2605  
    5050}
    5151
    52 pipi_image_t *pipi_copy(pipi_image_t const *img)
    53 {
    54     pipi_image_t *dst;
    55     int x, y;
    56     dst = pipi_new(img->width, img->height);
    57     for(y = 0; y < img->height; y++)
    58     {
    59         for(x = 0; x < img->width; x++)
    60         {
    61             double r, g, b;
    62             pipi_getpixel(img, x, y, &r, &g, &b);
    63             pipi_setpixel(dst, x, y, r, g, b);
    64         }
    65     }
    66     return dst;
    67 }
    68 
    6952void pipi_free(pipi_image_t *img)
    7053{
Note: See TracChangeset for help on using the changeset viewer.