Ignore:
Timestamp:
Jan 13, 2009, 12:50:53 AM (13 years ago)
Author:
Sam Hocevar
Message:

Create basic tile handling functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/pipi_internals.h

    r3075 r3339  
    3636};
    3737
     38#ifdef USE_TILES
     39#define TILE_SIZE 128
     40
     41struct pipi_tile
     42{
     43    int x, y;
     44    int zoom;
     45
     46    int refcount;
     47
     48    pipi_format_t fmt;
     49    int plane;
     50    union { uint8_t *u8; float *f; double *d; } data;
     51    union { uint8_t u8[1]; float f[1]; double d[1]; } align;
     52};
     53#endif /* USE_TILES */
    3854
    3955/* pipi_image_t: the image structure. This is probably going to be the most
     
    4359{
    4460    int w, h, pitch;
     61
     62#ifdef USE_TILES
     63    pipi_tile_t **tiles;
     64    int ntiles;
     65#endif /* USE_TILES */
    4566
    4667    /* A list of internal image flags.
Note: See TracChangeset for help on using the changeset viewer.