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/pipi_internals.h

    r2261 r2605  
    1717 */
    1818
    19 #ifndef __CACA_INTERNALS_H__
    20 #define __CACA_INTERNALS_H__
     19#ifndef __PIPI_INTERNALS_H__
     20#define __PIPI_INTERNALS_H__
    2121
     22/* pipi_image_t: the image structure. This is probably going to be the most
     23 * complex structure in the library, but right now it only has fairly normal
     24 * stuff, like width and height and pointers to pixel areas. */
    2225struct pipi_image
    2326{
    24     int width, height, pitch, channels;
    25     unsigned char *pixels;
    26     void *priv;
     27    int w, h, pitch;
     28    pipi_format_t codec_format, last_modified;
     29
     30    /* List of all possible pixel formats */
     31    pipi_pixels_t p[PIPI_PIXELS_MAX];
     32
     33    /* Private data used by the codec */
     34    void *codec_priv;
    2735};
    2836
Note: See TracChangeset for help on using the changeset viewer.