Changeset 2756 for libpipi


Ignore:
Timestamp:
Aug 23, 2008, 3:07:24 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Add a new image flag, u8, which indicates whether the image samples come from an 8-bpp source.
Location:
libpipi/trunk/pipi
Files:
5 edited

Legend:

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

    r2667 r2756  
    5151    img->codec_format = PIPI_PIXELS_RGBA32;
    5252
     53    img->wrap = 0;
     54    img->u8 = 1;
     55
    5356    return img;
    5457}
     
    8790        img->codec_priv = (void *)priv;
    8891        img->codec_format = PIPI_PIXELS_RGBA32;
     92
     93        img->wrap = 0;
     94        img->u8 = 1;
    8995    }
    9096
  • libpipi/trunk/pipi/codec/opencv.c

    r2667 r2756  
    5353    img->codec_format = PIPI_PIXELS_BGR24;
    5454
     55    img->wrap = 0;
     56    img->u8 = 1;
     57
    5558    return img;
    5659}
     
    8790        img->codec_priv = (void *)priv;
    8891        img->codec_format = PIPI_PIXELS_BGR24;
     92
     93        img->wrap = 0;
     94        img->u8 = 1;
    8995    }
    9096
  • libpipi/trunk/pipi/codec/sdl.c

    r2667 r2756  
    6060    img->codec_format = PIPI_PIXELS_RGBA32;
    6161
     62    img->wrap = 0;
     63    img->u8 = 1;
     64
    6265    return img;
    6366}
     
    9194        img->codec_priv = (void *)priv;
    9295        img->codec_format = PIPI_PIXELS_RGBA32;
     96
     97        img->wrap = 0;
     98        img->u8 = 1;
    9399    }
    94100
  • libpipi/trunk/pipi/pipi.c

    r2703 r2756  
    5151    img->codec_format = PIPI_PIXELS_UNINITIALISED;
    5252
     53    img->wrap = 0;
     54    img->u8 = 1;
     55
    5356    return img;
    5457}
     
    6063    /* Copy properties */
    6164    dst->wrap = src->wrap;
     65    dst->u8 = src->u8;
    6266
    6367    /* Copy pixels, if any */
  • libpipi/trunk/pipi/pipi_internals.h

    r2703 r2756  
    2626{
    2727    int w, h, pitch;
    28     int wrap;
     28
     29    /* A list of internal image flags.
     30     *  wrap: should filters wrap around at edges?
     31     *  u8: are the image samples still 8-bit per channel? */
     32    int wrap, u8;
     33
    2934    pipi_format_t codec_format, last_modified;
    3035
Note: See TracChangeset for help on using the changeset viewer.