1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
(***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Franois Pessaux, projet Cristal, INRIA Rocquencourt *)
(* Pierre Weis, projet Cristal, INRIA Rocquencourt *)
(* Jun Furuse, projet Cristal, INRIA Rocquencourt *)
(* *)
(* Copyright 1999,2000,2001,2002,2001,2002 *)
(* Institut National de Recherche en Informatique et en Automatique. *)
(* Distributed only by permission. *)
(* *)
(***********************************************************************)
(* Image misc infos (copied to image.ml/mli *)
(* File header informations *)
type colormodel =
| Gray | RGB | Index | GrayA | RGBA
;;
(* Infos attached to bitmaps *)
type info =
| Info_DPI of float (* dot per inch *)
| Info_BigEndian | Info_LittleEndian (* endianness of image file *)
| Info_ColorModel of colormodel (* color model of image file *)
| Info_Depth of int (* Image bit depth *)
| Info_Corrupted (* For corrupted PNG files *)
;;
|