Update of /cvsroot/xconq/xconq/src/include/gdl/media
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv23113/media
Modified Files:
imf.h img.h
Log Message:
Add CVS serialization support.
Fix copyrights.
Index: imf.h
===================================================================
RCS file: /cvsroot/xconq/xconq/src/include/gdl/media/imf.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** imf.h 30 May 2006 02:49:03 -0000 1.2
--- imf.h 2 Jun 2006 16:58:34 -0000 1.3
***************
*** 6,10 ****
/*//////////////////////////// COPYRIGHT NOTICE ////////////////////////////////
! Copyright (C) 1989 Stanley T. Shebs
Copyright (C) 1991-2000 Stanley T. Shebs
Copyright (C) 2005-2006 Eric A. McDonald
--- 6,10 ----
/*//////////////////////////// COPYRIGHT NOTICE ////////////////////////////////
! Copyright (C) 1987-1989 Stanley T. Shebs
Copyright (C) 1991-2000 Stanley T. Shebs
Copyright (C) 2005-2006 Eric A. McDonald
***************
*** 90,94 ****
} ImageFamily;
! // Global Variables: Image Families
//! Array of all image families loaded.
--- 90,94 ----
} ImageFamily;
! // Global Variables
//! Array of all image families loaded.
***************
*** 97,100 ****
--- 97,105 ----
extern int numimages;
+ //! All GDL image families on record.
+ extern ImageFamily **recorded_imfs;
+ //! Number of GDL image families on record.
+ extern int num_recorded_imfs;
+
// Queries
***************
*** 116,119 ****
--- 121,135 ----
// GDL I/O
+ //! Lookup color name from its RGB triplet.
+ /*!
+ Given rgb components, return names of standard colors if the match
+ is close.
+ */
+ extern char *find_color_name(int r, int g, int b);
+
+ //! Read palette color from GDL palette entry.
+ extern void parse_lisp_palette_entry(
+ Obj *palentry, int *c, int *r, int *g, int *b);
+
//! Read GDL form into GDL image family.
/*!
***************
*** 126,129 ****
--- 142,150 ----
extern ImageFamily *interp_imf(Obj *form);
+ //! Serialize GDL image family to GDL.
+ extern void write_imf(FILE *fp, ImageFamily *imf);
+ //! Serialize images to GDL.
+ extern void write_images(void);
+
NAMESPACE_GDL_END
NAMESPACE_XCONQ_END
Index: img.h
===================================================================
RCS file: /cvsroot/xconq/xconq/src/include/gdl/media/img.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** img.h 30 May 2006 02:49:03 -0000 1.2
--- img.h 2 Jun 2006 16:58:34 -0000 1.3
***************
*** 6,10 ****
/*//////////////////////////// COPYRIGHT NOTICE ////////////////////////////////
! Copyright (C) 1989 Stanley T. Shebs
Copyright (C) 1991-2000 Stanley T. Shebs
Copyright (C) 2005-2006 Eric A. McDonald
--- 6,10 ----
/*//////////////////////////// COPYRIGHT NOTICE ////////////////////////////////
! Copyright (C) 1987-1989 Stanley T. Shebs
Copyright (C) 1991-2000 Stanley T. Shebs
Copyright (C) 2005-2006 Eric A. McDonald
|