Ignore:
Timestamp:
Aug 4, 2008, 7:23:47 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • pixels.c: store byte length and bits-per-pixel value in the pipi_pixels_t structure.
File:
1 edited

Legend:

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

    r2629 r2667  
    4444    img->p[PIPI_PIXELS_RGBA32].h = img->h;
    4545    img->p[PIPI_PIXELS_RGBA32].pitch = 4 * img->w;
     46    img->p[PIPI_PIXELS_RGBA32].bpp = 32;
     47    img->p[PIPI_PIXELS_RGBA32].bytes = 4 * img->w * img->h;
    4648    img->last_modified = PIPI_PIXELS_RGBA32;
    4749
     
    8082        img->p[PIPI_PIXELS_RGBA32].h = imlib_image_get_height();
    8183        img->p[PIPI_PIXELS_RGBA32].pitch = 4 * imlib_image_get_width();
     84        img->p[PIPI_PIXELS_RGBA32].bpp = 32;
     85        img->p[PIPI_PIXELS_RGBA32].bytes = 4 * img->w * img->h;
    8286
    8387        img->codec_priv = (void *)priv;
Note: See TracChangeset for help on using the changeset viewer.