#ifndef _DATATYPES_H_
#define _DATATYPES_H_
-#include "io.h"
+#include "imio.h"
#define MAXCHANNELS 4
typedef enum {
i_direct_type, /* direct colour, keeps RGB values per pixel */
- i_palette_type, /* keeps a palette index per pixel */
+ i_palette_type /* keeps a palette index per pixel */
} i_img_type_t;
typedef enum {
/* a paletted image might have one bit per sample */
i_8_bits = 8,
i_16_bits = 16,
- i_double_bits = 64
+ i_double_bits = sizeof(double) * 8
} i_img_bits_t;
typedef struct {
typedef int (*i_f_glinf_t)(i_img *im, int x, int r, int y, i_fcolor *vals);
typedef int (*i_f_gsamp_t)(i_img *im, int x, int r, int y, i_sample_t *samp,
- int *chans, int chan_count);
+ const int *chans, int chan_count);
typedef int (*i_f_gsampf_t)(i_img *im, int x, int r, int y, i_fsample_t *samp,
- int *chan, int chan_count);
+ const int *chan, int chan_count);
typedef int (*i_f_gpal_t)(i_img *im, int x, int r, int y, i_palidx *vals);
typedef int (*i_f_ppal_t)(i_img *im, int x, int r, int y, i_palidx *vals);
void octt_count(struct octt *ct,int *tot,int max,int *overflow);
void octt_delete(struct octt *ct);
+/* font bounding box results */
+enum bounding_box_index_t {
+ BBOX_NEG_WIDTH,
+ BBOX_GLOBAL_DESCENT,
+ BBOX_POS_WIDTH,
+ BBOX_GLOBAL_ASCENT,
+ BBOX_DESCENT,
+ BBOX_ASCENT,
+ BBOX_ADVANCE_WIDTH,
+ BOUNDING_BOX_COUNT
+};
+
#endif