Sophie

Sophie

distrib > Mandriva > cooker > i586 > by-pkgid > 536b0792c6864ec49765f4ebfa7e6cfc > files > 37

deutex-debug-4.4.0-3mdv2011.0.i586.rpm

/*
 *	usedidx.h
 *	Palette index usage statistics (cf -usedidx)
 */


#ifndef DT_USEDIDX_H
#define DT_USEDIDX_H


/* This block is used in conjunction with -usedidx. Avoid
   messing with its fields directly. Use the API instead. */
struct cusage_s
{
  /* Per-lump: */
  char lump_name[8];
  unsigned long *lump_uses;

  /* Totals: */
  unsigned long uses[NCOLOURS];
  unsigned long nlumps[NCOLOURS];
  char where_first[NCOLOURS][8];
};

void usedidx_begin_lump (cusage_t *cusage, const char *name);
void usedidx_pixel (cusage_t *cusage, unsigned char idx);
void usedidx_end_lump (cusage_t *cusage);
void usedidx_rectangle (const char *buf, long buf_size, const char *name,
    cusage_t *cusage);


#endif