Ignore:
Timestamp:
Jan 13, 2009, 12:51:07 AM (11 years ago)
Author:
Sam Hocevar
Message:

Rename pipi_getpixel into pipi_get_pixels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/filter/color.c

    r2902 r3340  
    3939    gray = (src->last_modified == PIPI_PIXELS_Y_F);
    4040
    41     srcp = gray ? pipi_getpixels(src, PIPI_PIXELS_Y_F)
    42                 : pipi_getpixels(src, PIPI_PIXELS_RGBA_F);
    43     srcdata = (float *)srcp->pixels;
    44 
    45     dst = pipi_new(w, h);
    46     dstp = gray ? pipi_getpixels(dst, PIPI_PIXELS_Y_F)
    47                 : pipi_getpixels(dst, PIPI_PIXELS_RGBA_F);
     41    srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F)
     42                : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F);
     43    srcdata = (float *)srcp->pixels;
     44
     45    dst = pipi_new(w, h);
     46    dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F)
     47                : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F);
    4848    dstdata = (float *)dstp->pixels;
    4949
     
    120120    gray = (src->last_modified == PIPI_PIXELS_Y_F);
    121121
    122     srcp = gray ? pipi_getpixels(src, PIPI_PIXELS_Y_F)
    123                 : pipi_getpixels(src, PIPI_PIXELS_RGBA_F);
    124     srcdata = (float *)srcp->pixels;
    125 
    126     dst = pipi_new(w, h);
    127     dstp = gray ? pipi_getpixels(dst, PIPI_PIXELS_Y_F)
    128                 : pipi_getpixels(dst, PIPI_PIXELS_RGBA_F);
     122    srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F)
     123                : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F);
     124    srcdata = (float *)srcp->pixels;
     125
     126    dst = pipi_new(w, h);
     127    dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F)
     128                : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F);
    129129    dstdata = (float *)dstp->pixels;
    130130
     
    211211    gray = (src->last_modified == PIPI_PIXELS_Y_F);
    212212
    213     srcp = gray ? pipi_getpixels(src, PIPI_PIXELS_Y_F)
    214                 : pipi_getpixels(src, PIPI_PIXELS_RGBA_F);
    215     srcdata = (float *)srcp->pixels;
    216 
    217     dst = pipi_new(w, h);
    218     dstp = gray ? pipi_getpixels(dst, PIPI_PIXELS_Y_F)
    219                 : pipi_getpixels(dst, PIPI_PIXELS_RGBA_F);
     213    srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F)
     214                : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F);
     215    srcdata = (float *)srcp->pixels;
     216
     217    dst = pipi_new(w, h);
     218    dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F)
     219                : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F);
    220220    dstdata = (float *)dstp->pixels;
    221221
     
    255255    gray = (src->last_modified == PIPI_PIXELS_Y_F);
    256256
    257     srcp = gray ? pipi_getpixels(src, PIPI_PIXELS_Y_F)
    258                 : pipi_getpixels(src, PIPI_PIXELS_RGBA_F);
    259     srcdata = (float *)srcp->pixels;
    260 
    261     dst = pipi_new(w, h);
    262     dstp = gray ? pipi_getpixels(dst, PIPI_PIXELS_Y_F)
    263                 : pipi_getpixels(dst, PIPI_PIXELS_RGBA_F);
     257    srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F)
     258                : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F);
     259    srcdata = (float *)srcp->pixels;
     260
     261    dst = pipi_new(w, h);
     262    dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F)
     263                : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F);
    264264    dstdata = (float *)dstp->pixels;
    265265
Note: See TracChangeset for help on using the changeset viewer.