Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

imf.h File Reference

Definitions for the image manipulation routines. More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

struct  a_image
struct  a_image_family
struct  a_image_file
struct  a_file_image

Defines

#define MAXIMAGEFAMILIES   3000
#define computed_rowbytes(w, pixelsize)   (((w * pixelsize) + 7) / 8)
#define hextoi(c)   (((c) >= '0' && (c) <= '9') ? ((c) - '0') : ((c) - 'a' + 10))
#define for_all_images(imf, img)   for ((img) = (imf)->images; (img) != NULL; (img) = (img)->next)
#define best_image(imf, w, h)   best_image_in_range(imf, w, h, 0, 0, -1, -1)

Typedefs

typedef a_image Image
typedef a_image_family ImageFamily
typedef a_image_file ImageFile
typedef a_file_image FileImage
typedef void(* readimf_hook )(ImageFamily *, int)

Functions

ImageFamily * clone_imf (ImageFamily *imf)
ImageFamily * get_imf (char *name)
ImageFamily * find_imf (char *name)
Image * find_img (ImageFamily *imf, int w, int h)
Image * get_img (ImageFamily *imf, int w, int h)
int valid_imf_name (char *name)
ImageFile * get_image_file (char *name)
void load_image_families (FILE *fp, int loadnow, readimf_hook callback)
int load_imf_file (char *filename, readimf_hook callback)
void interp_imf_form (Obj *form, char *filename, readimf_hook callback)
ImageFamily * interp_imf (Obj *form)
void interp_imf_contents (ImageFamily *imf, Obj *form)
void interp_image (ImageFamily *imf, Obj *size, Obj *parts)
void interp_bytes (Obj *datalist, int numbytes, char *destaddr, int jump)
Image * best_image_in_range (ImageFamily *imf, int w, int h, int wmin, int hmin, int wmax, int hmax)
Image * smallest_image (ImageFamily *imf)
int emblem_position (Image *uimg, char *ename, ImageFamily *eimf, int sw, int sh, int vpuh, int vphh, int *exxp, int *eyyp, int *ewp, int *ehp)
void blacken_masked_area (ImageFamily *imf, Image *img, int r, int g, int b)
void blacken_mono_masked_area (ImageFamily *imf, Image *img, int r, int g, int b)
void make_raw_palette (Image *img)
void sort_all_images (void)
void check_imf (ImageFamily *imf)
void write_imf (FILE *fp, ImageFamily *imf)
void make_generic_image_data (ImageFamily *imf)
void validify_imf_name (char *buf)
void compute_image_bboxes (ImageFamily *imf)
void compute_image_bbox (Image *img)
void write_imf_dir (char *filename, ImageFamily **imfimages, int num)
char * find_color_name (int r, int g, int b)
void parse_lisp_palette_entry (Obj *palentry, int *c, int *r, int *g, int *b)
void make_image_from_file_image (ImageFamily *imf, Image *img, Image *subimg, int subi)
void load_file_image (FileImage *fimg)
void copy_from_file_image (Image *img, FileImage *fimg, int xoffset, int yoffset, int actualw, int actualh)
int get_gif (FileImage *fimg)
void make_raw_mono_data (Image *img, int force)
FileImage * get_file_image (char *fname)
ImageFamily * get_generic_images (char *name)

Variables

ImageFamily ** images
int numimages
ImageFile * image_files
FileImage * file_images
ImageFamily *(* imf_load_hook )(ImageFamily *imf)
ImageFamily *(* imf_interp_hook )(ImageFamily *imf, Image *img, int force)
int use_clip_mask
short poor_memory


Detailed Description

Definitions for the image manipulation routines.


Define Documentation

#define best_image (  imf,
w,
h   )     best_image_in_range(imf, w, h, 0, 0, -1, -1)
 

#define computed_rowbytes (  w,
pixelsize   )     (((w * pixelsize) + 7) / 8)
 

#define for_all_images (  imf,
img   )     for ((img) = (imf)->images; (img) != NULL; (img) = (img)->next)
 

#define hextoi (  c   )     (((c) >= '0' && (c) <= '9') ? ((c) - '0') : ((c) - 'a' + 10))
 

#define MAXIMAGEFAMILIES   3000
 


Typedef Documentation

typedef struct a_file_image FileImage
 

typedef struct a_image Image
 

An image family is like a Mac Finder icon family, but allows multiple kinds of images of an arbitrary set of sizes. Individual images in a family may have both "lisp" form and "raw" form, the former being used for reading and writing, while the raw form is an intermediary for conversion to and from platform-specific representations.

typedef struct a_image_family ImageFamily
 

typedef struct a_image_file ImageFile
 

typedef void(* readimf_hook)(ImageFamily *, int)
 


Function Documentation

Image* best_image_in_range (  ImageFamily *  imf,
int  w,
int  h,
int  wmin,
int  hmin,
int  wmax,
int  hmax
) 
 

void blacken_masked_area (  ImageFamily *  imf,
Image *  img,
int  r,
int  g,
int  b
) 
 

void blacken_mono_masked_area (  ImageFamily *  imf,
Image *  img,
int  r,
int  g,
int  b
) 
 

void check_imf (  ImageFamily *  imf  ) 
 

ImageFamily* clone_imf (  ImageFamily *  imf  ) 
 

void compute_image_bbox (  Image *  img  ) 
 

void compute_image_bboxes (  ImageFamily *  imf  ) 
 

void copy_from_file_image (  Image *  img,
FileImage *  fimg,
int  xoffset,
int  yoffset,
int  actualw,
int  actualh
) 
 

int emblem_position (  Image *  uimg,
char *  ename,
ImageFamily *  eimf,
int  sw,
int  sh,
int  vpuh,
int  vphh,
int *  exxp,
int *  eyyp,
int *  ewp,
int *  ehp
) 
 

char* find_color_name (  int  r,
int  g,
int  b
) 
 

ImageFamily* find_imf (  char *  name  ) 
 

Image* find_img (  ImageFamily *  imf,
int  w,
int  h
) 
 

FileImage* get_file_image (  char *  fname  ) 
 

ImageFamily* get_generic_images (  char *  name  ) 
 

int get_gif (  FileImage *  fimg  ) 
 

ImageFile* get_image_file (  char *  name  ) 
 

ImageFamily* get_imf (  char *  name  ) 
 

Image* get_img (  ImageFamily *  imf,
int  w,
int  h
) 
 

void interp_bytes (  Obj *  datalist,
int  numbytes,
char *  destaddr,
int  jump
) 
 

void interp_image (  ImageFamily *  imf,
Obj *  size,
Obj *  parts
) 
 

ImageFamily* interp_imf (  Obj *  form  ) 
 

void interp_imf_contents (  ImageFamily *  imf,
Obj *  form
) 
 

void interp_imf_form (  Obj *  form,
char *  filename,
readimf_hook  callback
) 
 

void load_file_image (  FileImage *  fimg  ) 
 

void load_image_families (  FILE *  fp,
int  loadnow,
readimf_hook  callback
) 
 

int load_imf_file (  char *  filename,
readimf_hook  callback
) 
 

void make_generic_image_data (  ImageFamily *  imf  ) 
 

void make_image_from_file_image (  ImageFamily *  imf,
Image *  img,
Image *  subimg,
int  subi
) 
 

void make_raw_mono_data (  Image *  img,
int  force
) 
 

void make_raw_palette (  Image *  img  ) 
 

void parse_lisp_palette_entry (  Obj *  palentry,
int *  c,
int *  r,
int *  g,
int *  b
) 
 

Image* smallest_image (  ImageFamily *  imf  ) 
 

void sort_all_images (  void   ) 
 

int valid_imf_name (  char *  name  ) 
 

void validify_imf_name (  char *  buf  ) 
 

void write_imf (  FILE *  fp,
ImageFamily *  imf
) 
 

void write_imf_dir (  char *  filename,
ImageFamily **  imfimages,
int  num
) 
 


Variable Documentation

FileImage* file_images
 

ImageFile* image_files
 

ImageFamily** images
 

ImageFamily*(* imf_interp_hook)(ImageFamily *imf, Image *img, int force)
 

ImageFamily*(* imf_load_hook)(ImageFamily *imf)
 

int numimages
 

short poor_memory
 

int use_clip_mask
 


Generated on Sat Sep 17 10:29:14 2005 for XconqKernel by doxygen 1.3.6