├── JCT ├── jct_icon.png ├── jct_vaud.png └── jct_europa.png ├── LifeLine ├── proto.png └── poster_lifeline.pdf ├── SpaceDog ├── bin │ ├── bois.jpg │ ├── code.jpg │ ├── eivd.jpg │ ├── spaceDog │ ├── jicube.jpg │ ├── spaceDog.exe │ └── readme.html ├── src │ ├── chien.h │ ├── materials.h │ ├── spaceDog.c │ ├── textures │ │ ├── bois.jpg │ │ ├── code.jpg │ │ ├── eivd.jpg │ │ └── jicube.jpg │ └── readme.html ├── img │ ├── spacedog_1.png │ └── spacedog_2.png └── src_xcode │ ├── chien.h │ ├── libjpeg.a │ ├── spaceDog.c │ ├── build │ ├── bois.jpg │ ├── code.jpg │ ├── eivd.jpg │ └── jicube.jpg │ ├── jconfig.h │ ├── spaceDog.1 │ ├── materials.h │ ├── spaceDog.xcode │ ├── project.pbxproj │ ├── nseriot.pbxuser │ └── nst.pbxuser │ ├── jmorecfg.h │ ├── jerror.h │ └── jpeglib.h ├── TeamEdit └── teamedit_win.png └── README.md /JCT/jct_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/JCT/jct_icon.png -------------------------------------------------------------------------------- /JCT/jct_vaud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/JCT/jct_vaud.png -------------------------------------------------------------------------------- /JCT/jct_europa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/JCT/jct_europa.png -------------------------------------------------------------------------------- /LifeLine/proto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/LifeLine/proto.png -------------------------------------------------------------------------------- /SpaceDog/bin/bois.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/bin/bois.jpg -------------------------------------------------------------------------------- /SpaceDog/bin/code.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/bin/code.jpg -------------------------------------------------------------------------------- /SpaceDog/bin/eivd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/bin/eivd.jpg -------------------------------------------------------------------------------- /SpaceDog/bin/spaceDog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/bin/spaceDog -------------------------------------------------------------------------------- /SpaceDog/src/chien.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/src/chien.h -------------------------------------------------------------------------------- /SpaceDog/bin/jicube.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/bin/jicube.jpg -------------------------------------------------------------------------------- /SpaceDog/src/materials.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/src/materials.h -------------------------------------------------------------------------------- /SpaceDog/src/spaceDog.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/src/spaceDog.c -------------------------------------------------------------------------------- /SpaceDog/bin/spaceDog.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/bin/spaceDog.exe -------------------------------------------------------------------------------- /SpaceDog/img/spacedog_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/img/spacedog_1.png -------------------------------------------------------------------------------- /SpaceDog/img/spacedog_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/img/spacedog_2.png -------------------------------------------------------------------------------- /SpaceDog/src_xcode/chien.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/src_xcode/chien.h -------------------------------------------------------------------------------- /TeamEdit/teamedit_win.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/TeamEdit/teamedit_win.png -------------------------------------------------------------------------------- /LifeLine/poster_lifeline.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/LifeLine/poster_lifeline.pdf -------------------------------------------------------------------------------- /SpaceDog/src_xcode/libjpeg.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/src_xcode/libjpeg.a -------------------------------------------------------------------------------- /SpaceDog/src_xcode/spaceDog.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/src_xcode/spaceDog.c -------------------------------------------------------------------------------- /SpaceDog/src/textures/bois.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/src/textures/bois.jpg -------------------------------------------------------------------------------- /SpaceDog/src/textures/code.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/src/textures/code.jpg -------------------------------------------------------------------------------- /SpaceDog/src/textures/eivd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/src/textures/eivd.jpg -------------------------------------------------------------------------------- /SpaceDog/src/textures/jicube.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/src/textures/jicube.jpg -------------------------------------------------------------------------------- /SpaceDog/src_xcode/build/bois.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/src_xcode/build/bois.jpg -------------------------------------------------------------------------------- /SpaceDog/src_xcode/build/code.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/src_xcode/build/code.jpg -------------------------------------------------------------------------------- /SpaceDog/src_xcode/build/eivd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/src_xcode/build/eivd.jpg -------------------------------------------------------------------------------- /SpaceDog/src_xcode/build/jicube.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nst/HEIG-VD/master/SpaceDog/src_xcode/build/jicube.jpg -------------------------------------------------------------------------------- /SpaceDog/src_xcode/jconfig.h: -------------------------------------------------------------------------------- 1 | /* jconfig.h. Generated automatically by configure. */ 2 | /* jconfig.cfg --- source file edited by configure script */ 3 | /* see jconfig.doc for explanations */ 4 | 5 | #define HAVE_PROTOTYPES 6 | #define HAVE_UNSIGNED_CHAR 7 | #define HAVE_UNSIGNED_SHORT 8 | #undef void 9 | #undef const 10 | #undef CHAR_IS_UNSIGNED 11 | #define HAVE_STDDEF_H 12 | #define HAVE_STDLIB_H 13 | #undef NEED_BSD_STRINGS 14 | #undef NEED_SYS_TYPES_H 15 | #undef NEED_FAR_POINTERS 16 | #undef NEED_SHORT_EXTERNAL_NAMES 17 | /* Define this if you get warnings about undefined structures. */ 18 | #undef INCOMPLETE_TYPES_BROKEN 19 | 20 | #ifdef JPEG_INTERNALS 21 | 22 | #undef RIGHT_SHIFT_IS_UNSIGNED 23 | #define INLINE __inline__ 24 | /* These are for configuring the JPEG memory manager. */ 25 | #undef DEFAULT_MAX_MEM 26 | #undef NO_MKTEMP 27 | 28 | #endif /* JPEG_INTERNALS */ 29 | 30 | #ifdef JPEG_CJPEG_DJPEG 31 | 32 | #define BMP_SUPPORTED /* BMP image file format */ 33 | #define GIF_SUPPORTED /* GIF image file format */ 34 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 35 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 36 | #define TARGA_SUPPORTED /* Targa image file format */ 37 | 38 | #undef TWO_FILE_COMMANDLINE 39 | #undef NEED_SIGNAL_CATCHER 40 | #undef DONT_USE_B_MODE 41 | 42 | /* Define this if you want percent-done progress reports from cjpeg/djpeg. */ 43 | #undef PROGRESS_REPORT 44 | 45 | #endif /* JPEG_CJPEG_DJPEG */ 46 | -------------------------------------------------------------------------------- /SpaceDog/src_xcode/spaceDog.1: -------------------------------------------------------------------------------- 1 | .\"Modified from man(1) of FreeBSD, the NetBSD mdoc.template, and mdoc.samples. 2 | .\"See Also: 3 | .\"man mdoc.samples for a complete listing of options 4 | .\"man mdoc for the short list of editing options 5 | .\"/usr/share/misc/mdoc.template 6 | .Dd Sun Apr 11 2004 \" DATE 7 | .Dt labo7 1 \" Program name and manual section number 8 | .Os Darwin 9 | .Sh NAME \" Section Header - required - don't modify 10 | .Nm labo7, 11 | .\" The following lines are read in generating the apropos(man -k) database. Use only key 12 | .\" words here as the database is built based on the words here and in the .ND line. 13 | .Nm Other_name_for_same_program(), 14 | .Nm Yet another name for the same program. 15 | .\" Use .Nm macro to designate other names for the documented program. 16 | .Nd This line parsed for whatis database. 17 | .Sh SYNOPSIS \" Section Header - required - don't modify 18 | .Nm 19 | .Op Fl abcd \" [-abcd] 20 | .Op Fl a Ar path \" [-a path] 21 | .Op Ar file \" [file] 22 | .Op Ar \" [file ...] 23 | .Ar arg0 \" Underlined argument - use .Ar anywhere to underline 24 | arg2 ... \" Arguments 25 | .Sh DESCRIPTION \" Section Header - required - don't modify 26 | Use the .Nm macro to refer to your program throughout the man page like such: 27 | .Nm 28 | Underlining is accomplished with the .Ar macro like this: 29 | .Ar underlined text . 30 | .Pp \" Inserts a space 31 | A list of items with descriptions: 32 | .Bl -tag -width -indent \" Begins a tagged list 33 | .It item a \" Each item preceded by .It macro 34 | Description of item a 35 | .It item b 36 | Description of item b 37 | .El \" Ends the list 38 | .Pp 39 | A list of flags and their descriptions: 40 | .Bl -tag -width -indent \" Differs from above in tag removed 41 | .It Fl a \"-a flag as a list item 42 | Description of -a flag 43 | .It Fl b 44 | Description of -b flag 45 | .El \" Ends the list 46 | .Pp 47 | .\" .Sh ENVIRONMENT \" May not be needed 48 | .\" .Bl -tag -width "ENV_VAR_1" -indent \" ENV_VAR_1 is width of the string ENV_VAR_1 49 | .\" .It Ev ENV_VAR_1 50 | .\" Description of ENV_VAR_1 51 | .\" .It Ev ENV_VAR_2 52 | .\" Description of ENV_VAR_2 53 | .\" .El 54 | .Sh FILES \" File used or created by the topic of the man page 55 | .Bl -tag -width "/Users/joeuser/Library/really_long_file_name" -compact 56 | .It Pa /usr/share/file_name 57 | FILE_1description 58 | .It Pa /Users/joeuser/Library/really_long_file_name 59 | FILE_2 description 60 | .\" .Sh DIAGNOSTICS \" May not be needed 61 | .\" .Bl -diag 62 | .\" .It Diagnostic Tag 63 | .\" Diagnostic informtion here. 64 | .\" .It Diagnostic Tag 65 | .\" Diagnostic informtion here. 66 | .\" .El 67 | .Sh SEE ALSO 68 | .\" List links in ascending order by section, alphabetically within a section. 69 | .\" Please do not reference files that do not exist without filing a bug report 70 | .Xr a 1 , 71 | .Xr b 1 , 72 | .Xr c 1 , 73 | .Xr a 2 , 74 | .Xr b 2 , 75 | .Xr a 3 , 76 | .Xr b 3 77 | .\" .Sh BUGS \" Document known, unremedied bugs 78 | .\" .Sh HISTORY \" Document history if command behaves in a unique manner 79 | 80 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## HEIG-VD School Projects 2 | 3 | I studied software engineering at [HEIG-VD](http://www.heig-vd.ch) engineering school, formerly known as EIVD, in 2002-2006. 4 | 5 | Here are some selected projects I wrote during this time. 6 | 7 | - 2005-12 [LifeLine](#lifeline) 8 | - 2005-06 [TeamEdit](#teamedit) 9 | - 2004-07 [JCT (Java Cartes Thématiques)](#jct) 10 | - 2004-03 [SpaceDog (Chien de l'espace)](#spacedog) 11 | 12 |

2005-12 LifeLine

13 | 14 | Mac OS X Cocoa application to explore new ways to access files using metadata. 15 | 16 | Work diploma at EIVD with the software company Sen:te. (grade 5.7/6). [poster](LifeLine/poster_lifeline.pdf) 17 | 18 | 19 | 20 | In March 2008, I wrote an improved, opensource version of LifeLine called [SpotLook](http://code.google.com/p/spotlook/) for Mac OS X 10.5. 21 | 22 |

2005-06 TeamEdit

23 | 24 | Collaborative text editor, ala [SubEthaEdit](http://www.codingmonkeys.de/subethaedit/), but opensource and multiplatform, written at EIVD. 25 | 26 | Thanks to [Daniel Lifschitz](http://daniel.li/) whithout who the project would never have reached this state on time. This project got the grade 6/6. 27 | 28 | 29 | 30 | [Sourceforge project](http://teamedit.sourceforge.net/) 31 | Download binary: [teamedit-0.1.zip](http://prdownloads.sourceforge.net/teamedit/teamedit-0.1.zip?download) 32 | Download sources: [teamedit-src-0.1.zip](http://prdownloads.sourceforge.net/teamedit/teamedit-src-0.1.zip?download) 33 | 34 | **[Update]** Although TeamEdit was the first opensource, multiplatform, collaborative text editor, it was more a proof of concept than a finished product. Such a software finally saw the light, it's [ACE](http://ace.iserver.ch/). "Cherry on top of the cake", it uses the [Bonjour](http://developer.apple.com/networking/bonjour/index.html) protocol. 35 | 36 |

2004-07 JCT (Java Cartes Thématiques)

37 | 38 | 39 | 40 | JCT is used in Canton de Vaud schools in geography teaching. It is usable by kids to draw thematic maps. 41 | 42 | Semestre project written with [Daniel Lifschitz](http://daniel.li/) (grade: 5.9/6). 43 | 44 | The code is interesting since there's only one compilation file to generate an executable suitable for every platform. Think of Mac OS X: its human interface guidelines require an icon, a menu bar at the top of the screen, and other properties that are not standard Java behaviors. 45 | 46 | 47 | 48 | 49 | [JCT web page](http://jct.sourceforge.net/) 50 | [Sourceforge project](https://sourceforge.net/projects/jct/) 51 | [Development documentation](software/eivd/JCT/jct_development.pdf) 52 | 53 |

2004-07 SpaceDog (Chien de l'espace)

54 | 55 | EIVD Computer graphics project. Grade: 6/6. 56 | 57 | This is a dog and is bone modelled in 3D. The user cas move in the scene, add fog, change the lighting, change the textures, change the number and the type of projections, and so on. 58 | 59 | This project was written in several weeks, by adding every week the new concepts explained during the lessons. 60 | 61 | 62 | 63 | 64 | [Sources C / OpenGL](SpaceDog/src/) 65 | [Projet Xcode](SpaceDog/src_xcode/) 66 | [Executables Windows / Mac OS X](SpaceDog/bin/) 67 | -------------------------------------------------------------------------------- /SpaceDog/bin/readme.html: -------------------------------------------------------------------------------- 1 | Spacedog / Chien de l'espace

Spacedog / Chien de l'espace

Nicolas Seriot, Eivd, Laboratoire d'infographie, juillet 2004


clic dans la scène rotation autour des axes X et Y
clic-droit (ctrl-clic) menu contextuel
0-1-2-3 interrupteurs lumières
sous-menu 'matiere' changer la matière du chien
sous-menu 'lumiere' choisir les lumières
espace mouvement rotatif
X-x Y-y Z-z se déplacer sur les axes X, Y et Z
P-p R-r H-h modifier tangage, roulis et cap
O-o modifier l'ouverture
HAUT-BAS avancer / reculer
A afficher les axes
F mode plein écran
D diviser la fenêtre
S modifier le shade model
B brouillard
Q quitter

click in the scene rotate around X and Y axes
right-click (ctrl-click) menu
0-1-2-3 light switches
sub-menu 'matiere' change the dog material
sub-menu 'lumiere' choose the light
space bar auto rotate
X-x Y-y Z-z move on X, Y and Z axes
P-p R-r H-h change pitching, rolling and heading
O-o change opening
UP-DOWN move forward / backwards
A display axes
F fullscreen mode
D divise the window
S change the shade model
B fog
Q quit

-------------------------------------------------------------------------------- /SpaceDog/src/readme.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Spacedog / Chien de l'espace 8 | 9 | 10 | 11 |

Spacedog / Chien de l'espace

12 |

Nicolas Seriot, Eivd, Laboratoire d'infographie, juillet 2004

13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 |
clic dans la scènerotation autour des axes X et Y
clic-droit (ctrl-clic)menu contextuel
0-1-2-3interrupteurs lumières
sous-menu 'matiere'changer la matière du chien
sous-menu 'lumiere'choisir les lumières
espacemouvement rotatif
X-x Y-y Z-zse déplacer sur les axes X, Y et Z
P-p R-r H-hmodifier tangage, roulis et cap
O-omodifier l'ouverture
HAUT-BASavancer / reculer
Aafficher les axes
Fmode plein écran
Ddiviser la fenêtre
Smodifier le shade model
Bbrouillard
Qquitter
96 |
97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 |
click in the scenerotate around X and Y axes
right-click (ctrl-click)menu
0-1-2-3light switches
sub-menu 'matiere'change the dog material
sub-menu 'lumiere'choose the light
space barauto rotate
X-x Y-y Z-zmove on X, Y and Z axes
P-p R-r H-hchange pitching, rolling and heading
O-ochange opening
UP-DOWNmove forward / backwards
Adisplay axes
Ffullscreen mode
Ddivise the window
Schange the shade model
Bfog
Qquit
179 |
180 | 181 | 182 | -------------------------------------------------------------------------------- /SpaceDog/src_xcode/materials.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Fichier : materials.c 3 | * Auteur : Nicolas Seriot, EIVD, EI4b 4 | * Date : juin 2004 5 | * But : définir différents matériaux 6 | */ 7 | 8 | double RevetementSpatial[] = { 9 | 0.11, 0.06, 0.11, 1.00, // Ka 10 | 0.43, 0.47, 0.54, 1.00, // Kd 11 | 0.33, 0.33, 0.52, 1.00, // Ks 12 | 128 // Se 13 | }; 14 | 15 | double Brass[] = { 16 | 0.329412, 0.223529, 0.027451, 1.000000, 17 | 0.780392, 0.568627, 0.113725, 1.000000, 18 | 0.992157, 0.941176, 0.807843, 1.000000, 19 | 27.897400 20 | }; 21 | 22 | double Bronze[] = { 23 | 0.212500, 0.127500, 0.054000, 1.000000, 24 | 0.714000, 0.428400, 0.181440, 1.000000, 25 | 0.393548, 0.271906, 0.166721, 1.000000, 26 | 25.600000 27 | }; 28 | 29 | double Polished_Bronze[] = { 30 | 0.250000, 0.148000, 0.064750, 1.000000, 31 | 0.400000, 0.236800, 0.103600, 1.000000, 32 | 0.774597, 0.458561, 0.200621, 1.000000, 33 | 76.800003 34 | }; 35 | 36 | double Chrome[] = { 37 | 0.250000, 0.250000, 0.250000, 1.000000, 38 | 0.400000, 0.400000, 0.400000, 1.000000, 39 | 0.774597, 0.774597, 0.774597, 1.000000, 40 | 76.800003 41 | }; 42 | 43 | double Copper[] = { 44 | 0.191250, 0.073500, 0.022500, 1.000000, 45 | 0.703800, 0.270480, 0.082800, 1.000000, 46 | 0.256777, 0.137622, 0.086014, 1.000000, 47 | 12.800000 48 | }; 49 | 50 | double Polished_Copper[] = { 51 | 0.229500, 0.088250, 0.027500, 1.000000, 52 | 0.550800, 0.211800, 0.066000, 1.000000, 53 | 0.580594, 0.223257, 0.069570, 1.000000, 54 | 51.200001 55 | }; 56 | 57 | double Gold[] = { 58 | 0.247250, 0.199500, 0.074500, 1.000000, 59 | 0.751640, 0.606480, 0.226480, 1.000000, 60 | 0.628281, 0.555802, 0.366065, 1.000000, 61 | 51.200001 62 | }; 63 | 64 | double Polished_Gold[] = { 65 | 0.247250, 0.224500, 0.064500, 1.000000, 66 | 0.346150, 0.314300, 0.090300, 1.000000, 67 | 0.797357, 0.723991, 0.208006, 1.000000, 68 | 83.199997 69 | }; 70 | 71 | double Pewter[] = { 72 | 0.105882, 0.058824, 0.113725, 1.000000, 73 | 0.427451, 0.470588, 0.541176, 1.000000, 74 | 0.333333, 0.333333, 0.521569, 1.000000, 75 | 9.846150 76 | }; 77 | 78 | double Silver[] = { 79 | 0.192250, 0.192250, 0.192250, 1.000000, 80 | 0.507540, 0.507540, 0.507540, 1.000000, 81 | 0.508273, 0.508273, 0.508273, 1.000000, 82 | 51.200001 83 | }; 84 | 85 | double Polished_Silver[] = { 86 | 0.231250, 0.231250, 0.231250, 1.000000, 87 | 0.277500, 0.277500, 0.277500, 1.000000, 88 | 0.773911, 0.773911, 0.773911, 1.000000, 89 | 89.599998 90 | }; 91 | 92 | double Emerald[] = { 93 | 0.021500, 0.174500, 0.021500, 0.550000, 94 | 0.075680, 0.614240, 0.075680, 0.550000, 95 | 0.633000, 0.727811, 0.633000, 0.550000, 96 | 76.800003 97 | }; 98 | 99 | double Jade[] = { 100 | 0.135000, 0.222500, 0.157500, 0.950000, 101 | 0.540000, 0.890000, 0.630000, 0.950000, 102 | 0.316228, 0.316228, 0.316228, 0.950000, 103 | 12.800000 104 | }; 105 | 106 | double Obsidian[] = { 107 | 0.053750, 0.050000, 0.066250, 0.820000, 108 | 0.182750, 0.170000, 0.225250, 0.820000, 109 | 0.332741, 0.328634, 0.346435, 0.820000, 110 | 38.400002 111 | }; 112 | 113 | double Pearl[] = { 114 | 0.250000, 0.207250, 0.207250, 0.922000, 115 | 1.000000, 0.829000, 0.829000, 0.922000, 116 | 0.296648, 0.296648, 0.296648, 0.922000, 117 | 11.264000 118 | }; 119 | 120 | double Ruby[] = { 121 | 0.174500, 0.011750, 0.011750, 0.550000, 122 | 0.614240, 0.041360, 0.041360, 0.550000, 123 | 0.727811, 0.626959, 0.626959, 0.550000, 124 | 76.800003 125 | }; 126 | 127 | double Turquoise[] = { 128 | 0.100000, 0.187250, 0.174500, 0.800000, 129 | 0.396000, 0.741510, 0.691020, 0.800000, 130 | 0.297254, 0.308290, 0.306678, 0.800000, 131 | 12.800000 132 | }; 133 | 134 | double Black_Plastic[] = { 135 | 0.000000, 0.000000, 0.000000, 1.000000, 136 | 0.010000, 0.010000, 0.010000, 1.000000, 137 | 0.500000, 0.500000, 0.500000, 1.000000, 138 | 32.000000 139 | }; 140 | 141 | double Black_Rubber[] = { 142 | 0.020000, 0.020000, 0.020000, 1.000000, 143 | 0.010000, 0.010000, 0.010000, 1.000000, 144 | 0.400000, 0.400000, 0.400000, 1.000000, 145 | 10.000000 146 | }; 147 | 148 | double Plastic1[] = {0.0, 0.0, 0.0, 1.0, 149 | 0.01, 0.01, 0.01, 1.0, 150 | 0.50, 0.50, 0.50, 1.0, 151 | 32.0}; 152 | double Plastic2[] = {0.0, 0.1, 0.06, 1.0, 153 | 0.0, 0.5098, 0.5098, 1.0, 154 | 0.5019, 0.5019, 0.5019, 1.0, 155 | 32.0}; 156 | double Plastic3[] = {0.0, 0.0, 0.0, 1.0, 157 | 0.1, 0.35, 0.1, 1.0, 158 | 0.45, 0.55, 0.45, 1.0, 159 | 32.0}; 160 | double Plastic4[] = {0.0, 0.0, 0.0, 1.0, 161 | 0.5, 0.0, 0.0, 1.0, 162 | 0.7, 0.6, 0.6, 1.0, 163 | 32.0}; 164 | double Plastic5[] = {0.0, 0.0, 0.0, 1.0, 165 | 0.55, 0.55, 0.55, 1.0, 166 | 0.70, 0.70, 0.70, 1.0, 167 | 32.0}; 168 | double Plastic6[] = {0.0, 0.0, 0.0, 1.0, 169 | 0.5, 0.5, 0.0, 1.0, 170 | 0.60, 0.60, 0.50, 1.0, 171 | 32.0}; 172 | double Rubber1[] = {0.02, 0.02, 0.02, 1.0, 173 | 0.01, 0.01, 0.01, 1.0, 174 | 0.4, 0.4, 0.4, 1.0, 175 | 10.0}; 176 | double Rubber2[] = {0.0, 0.05, 0.05, 1.0, 177 | 0.4, 0.5, 0.5, 1.0, 178 | 0.04, 0.7, 0.7, 1.0, 179 | 10.0}; 180 | double Rubber3[] = {0.0, 0.05, 0.0, 1.0, 181 | 0.4, 0.5, 0.4, 1.0, 182 | 0.04, 0.7, 0.04, 1.0, 183 | 10.0}; 184 | double Rubber4[] = {0.05, 0.0, 0.0, 1.0, 185 | 0.5, 0.4, 0.4, 1.0, 186 | 0.7, 0.04, 0.04, 1.0, 187 | 10.0}; 188 | double Rubber5[] = {0.05, 0.05, 0.05, 1.0, 189 | 0.5, 0.5, 0.5, 1.0, 190 | 0.7, 0.7, 0.7, 1.0, 191 | 10.0}; 192 | double Rubber6[] = {0.05, 0.05, 0.0, 1.0, 193 | 0.5, 0.5, 0.4, 1.0, 194 | 0.7, 0.7, 0.04, 1.0, 195 | 10.0}; 196 | 197 | 198 | double Verre[] = { 199 | 0.05, 0.05, 0.05, 0.3, 200 | 0.2, 0.3, 0.3, 0.3, 201 | 0.8, 0.8, 0.8, 0.3, 202 | 90.0 203 | }; 204 | 205 | double Os[] = { 206 | 0.05, 0.05, 0.05, 1.0, 207 | 0.9, 0.9, 0.9, 1.0, 208 | 0.9, 0.9, 0.9, 1.0, 209 | 90.0 210 | }; 211 | 212 | 213 | double Rouge[] = { 214 | 0.174500, 0.011750, 0.011750, 1.0, 215 | 0.614240, 0.041360, 0.041360, 1.0, 216 | 0.727811, 0.626959, 0.626959, 1.0, 217 | 76.800003 218 | }; 219 | 220 | // convient bien pour appliquer des textures 221 | double Special[] = { 222 | 0.2, 0.2, 0.2, 1.0, 223 | 0.5, 0.5, 0.5, 1.0, 224 | 0.5, 0.5, 0.5, 1.0, 225 | 50.0 226 | }; 227 | -------------------------------------------------------------------------------- /SpaceDog/src_xcode/spaceDog.xcode/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 39; 7 | objects = { 8 | 014CEA520018CE5811CA2923 = { 9 | buildRules = ( 10 | ); 11 | buildSettings = { 12 | COPY_PHASE_STRIP = NO; 13 | DEBUGGING_SYMBOLS = YES; 14 | GCC_DYNAMIC_NO_PIC = NO; 15 | GCC_ENABLE_FIX_AND_CONTINUE = YES; 16 | GCC_GENERATE_DEBUGGING_SYMBOLS = YES; 17 | GCC_OPTIMIZATION_LEVEL = 0; 18 | OPTIMIZATION_CFLAGS = "-O0"; 19 | ZERO_LINK = YES; 20 | }; 21 | isa = PBXBuildStyle; 22 | name = Development; 23 | }; 24 | 014CEA530018CE5811CA2923 = { 25 | buildRules = ( 26 | ); 27 | buildSettings = { 28 | COPY_PHASE_STRIP = YES; 29 | GCC_ENABLE_FIX_AND_CONTINUE = NO; 30 | ZERO_LINK = NO; 31 | }; 32 | isa = PBXBuildStyle; 33 | name = Deployment; 34 | }; 35 | //010 36 | //011 37 | //012 38 | //013 39 | //014 40 | //030 41 | //031 42 | //032 43 | //033 44 | //034 45 | 0390859B0663D30D00FB7953 = { 46 | fileRef = 08FB7796FE84155DC02AAC07; 47 | isa = PBXBuildFile; 48 | settings = { 49 | }; 50 | }; 51 | 03A516D60697AA8A00A7509F = { 52 | isa = PBXFileReference; 53 | lastKnownFileType = archive.ar; 54 | path = libjpeg.a; 55 | refType = 4; 56 | sourceTree = ""; 57 | }; 58 | 03A516D70697AA8A00A7509F = { 59 | fileRef = 03A516D60697AA8A00A7509F; 60 | isa = PBXBuildFile; 61 | settings = { 62 | }; 63 | }; 64 | 03A516E20697AAAF00A7509F = { 65 | fileEncoding = 5; 66 | isa = PBXFileReference; 67 | lastKnownFileType = sourcecode.c.h; 68 | path = jerror.h; 69 | refType = 4; 70 | sourceTree = ""; 71 | }; 72 | 03A516E30697AAAF00A7509F = { 73 | fileEncoding = 5; 74 | isa = PBXFileReference; 75 | lastKnownFileType = sourcecode.c.h; 76 | path = jpeglib.h; 77 | refType = 4; 78 | sourceTree = ""; 79 | }; 80 | 03A516E40697AAAF00A7509F = { 81 | fileEncoding = 5; 82 | isa = PBXFileReference; 83 | lastKnownFileType = sourcecode.c.h; 84 | path = jconfig.h; 85 | refType = 4; 86 | sourceTree = ""; 87 | }; 88 | 03A516E50697AAAF00A7509F = { 89 | fileEncoding = 5; 90 | isa = PBXFileReference; 91 | lastKnownFileType = sourcecode.c.h; 92 | path = jmorecfg.h; 93 | refType = 4; 94 | sourceTree = ""; 95 | }; 96 | 03A516E60697AAAF00A7509F = { 97 | fileRef = 03A516E20697AAAF00A7509F; 98 | isa = PBXBuildFile; 99 | settings = { 100 | }; 101 | }; 102 | 03A516E70697AAAF00A7509F = { 103 | fileRef = 03A516E30697AAAF00A7509F; 104 | isa = PBXBuildFile; 105 | settings = { 106 | }; 107 | }; 108 | 03A516E80697AAAF00A7509F = { 109 | fileRef = 03A516E40697AAAF00A7509F; 110 | isa = PBXBuildFile; 111 | settings = { 112 | }; 113 | }; 114 | 03A516E90697AAAF00A7509F = { 115 | fileRef = 03A516E50697AAAF00A7509F; 116 | isa = PBXBuildFile; 117 | settings = { 118 | }; 119 | }; 120 | 03D905C2069D9A4600E9B2E6 = { 121 | explicitFileType = "compiled.mach-o.executable"; 122 | includeInIndex = 0; 123 | isa = PBXFileReference; 124 | path = labo7; 125 | refType = 3; 126 | sourceTree = BUILT_PRODUCTS_DIR; 127 | }; 128 | 03F10871064DC1F000E32D07 = { 129 | fileEncoding = 12; 130 | isa = PBXFileReference; 131 | lastKnownFileType = sourcecode.c.h; 132 | path = chien.h; 133 | refType = 4; 134 | sourceTree = ""; 135 | }; 136 | 03F10872064DC1F000E32D07 = { 137 | fileRef = 03F10871064DC1F000E32D07; 138 | isa = PBXBuildFile; 139 | settings = { 140 | }; 141 | }; 142 | //030 143 | //031 144 | //032 145 | //033 146 | //034 147 | //080 148 | //081 149 | //082 150 | //083 151 | //084 152 | 08FB7793FE84155DC02AAC07 = { 153 | buildSettings = { 154 | }; 155 | buildStyles = ( 156 | 014CEA520018CE5811CA2923, 157 | 014CEA530018CE5811CA2923, 158 | ); 159 | hasScannedForEncodings = 1; 160 | isa = PBXProject; 161 | mainGroup = 08FB7794FE84155DC02AAC07; 162 | projectDirPath = ""; 163 | targets = ( 164 | 8DD76FA90486AB0100D96B5E, 165 | ); 166 | }; 167 | 08FB7794FE84155DC02AAC07 = { 168 | children = ( 169 | 03A516E20697AAAF00A7509F, 170 | 03A516E30697AAAF00A7509F, 171 | 03A516E40697AAAF00A7509F, 172 | 03A516E50697AAAF00A7509F, 173 | 03A516D60697AA8A00A7509F, 174 | 8F8279D70629F1D50081C557, 175 | 8F8279D80629F1D50081C557, 176 | 8F8279D90629F1D50081C557, 177 | 08FB7795FE84155DC02AAC07, 178 | C6A0FF2B0290797F04C91782, 179 | 1AB674ADFE9D54B511CA2CBB, 180 | ); 181 | isa = PBXGroup; 182 | name = labo7; 183 | refType = 4; 184 | sourceTree = ""; 185 | }; 186 | 08FB7795FE84155DC02AAC07 = { 187 | children = ( 188 | 03F10871064DC1F000E32D07, 189 | 08FB7796FE84155DC02AAC07, 190 | 8F827A190629F4A80081C557, 191 | ); 192 | isa = PBXGroup; 193 | name = Source; 194 | refType = 4; 195 | sourceTree = ""; 196 | }; 197 | 08FB7796FE84155DC02AAC07 = { 198 | fileEncoding = 5; 199 | isa = PBXFileReference; 200 | lastKnownFileType = sourcecode.c.c; 201 | path = spaceDog.c; 202 | refType = 4; 203 | sourceTree = ""; 204 | }; 205 | //080 206 | //081 207 | //082 208 | //083 209 | //084 210 | //1A0 211 | //1A1 212 | //1A2 213 | //1A3 214 | //1A4 215 | 1AB674ADFE9D54B511CA2CBB = { 216 | children = ( 217 | 03D905C2069D9A4600E9B2E6, 218 | ); 219 | isa = PBXGroup; 220 | name = Products; 221 | refType = 4; 222 | sourceTree = ""; 223 | }; 224 | //1A0 225 | //1A1 226 | //1A2 227 | //1A3 228 | //1A4 229 | //8D0 230 | //8D1 231 | //8D2 232 | //8D3 233 | //8D4 234 | 8DD76FA90486AB0100D96B5E = { 235 | buildPhases = ( 236 | 8DD76FAA0486AB0100D96B5E, 237 | 8DD76FAB0486AB0100D96B5E, 238 | 8DD76FAD0486AB0100D96B5E, 239 | 8DD76FAE0486AB0100D96B5E, 240 | 8DD76FAF0486AB0100D96B5E, 241 | ); 242 | buildRules = ( 243 | ); 244 | buildSettings = { 245 | FRAMEWORK_SEARCH_PATHS = ""; 246 | GCC_ENABLE_TRIGRAPHS = NO; 247 | GCC_GENERATE_DEBUGGING_SYMBOLS = NO; 248 | GCC_PRECOMPILE_PREFIX_HEADER = NO; 249 | GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; 250 | GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO; 251 | GCC_WARN_UNKNOWN_PRAGMAS = NO; 252 | HEADER_SEARCH_PATHS = ""; 253 | INSTALL_PATH = "$(HOME)/bin"; 254 | LIBRARY_SEARCH_PATHS = /Users/nst/Documents/eivd/Infographie/Labo_9/labo9; 255 | OTHER_CFLAGS = ""; 256 | OTHER_LDFLAGS = ""; 257 | OTHER_REZFLAGS = ""; 258 | PRODUCT_NAME = labo7; 259 | REZ_EXECUTABLE = YES; 260 | SECTORDER_FLAGS = ""; 261 | WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas"; 262 | }; 263 | dependencies = ( 264 | ); 265 | isa = PBXNativeTarget; 266 | name = labo7; 267 | productInstallPath = "$(HOME)/bin"; 268 | productName = labo7; 269 | productReference = 03D905C2069D9A4600E9B2E6; 270 | productType = "com.apple.product-type.tool"; 271 | }; 272 | 8DD76FAA0486AB0100D96B5E = { 273 | buildActionMask = 2147483647; 274 | files = ( 275 | 8F20328B064113AC006FF1E5, 276 | 03F10872064DC1F000E32D07, 277 | 03A516E60697AAAF00A7509F, 278 | 03A516E70697AAAF00A7509F, 279 | 03A516E80697AAAF00A7509F, 280 | 03A516E90697AAAF00A7509F, 281 | ); 282 | isa = PBXHeadersBuildPhase; 283 | runOnlyForDeploymentPostprocessing = 0; 284 | }; 285 | 8DD76FAB0486AB0100D96B5E = { 286 | buildActionMask = 2147483647; 287 | files = ( 288 | 0390859B0663D30D00FB7953, 289 | ); 290 | isa = PBXSourcesBuildPhase; 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | 8DD76FAD0486AB0100D96B5E = { 294 | buildActionMask = 2147483647; 295 | files = ( 296 | 8F8279DA0629F1D50081C557, 297 | 8F8279DB0629F1D50081C557, 298 | 8F8279DC0629F1D50081C557, 299 | 03A516D70697AA8A00A7509F, 300 | ); 301 | isa = PBXFrameworksBuildPhase; 302 | runOnlyForDeploymentPostprocessing = 0; 303 | }; 304 | 8DD76FAE0486AB0100D96B5E = { 305 | buildActionMask = 2147483647; 306 | files = ( 307 | ); 308 | isa = PBXRezBuildPhase; 309 | runOnlyForDeploymentPostprocessing = 0; 310 | }; 311 | 8DD76FAF0486AB0100D96B5E = { 312 | buildActionMask = 8; 313 | dstPath = /usr/share/man/man1/; 314 | dstSubfolderSpec = 0; 315 | files = ( 316 | ); 317 | isa = PBXCopyFilesBuildPhase; 318 | runOnlyForDeploymentPostprocessing = 1; 319 | }; 320 | //8D0 321 | //8D1 322 | //8D2 323 | //8D3 324 | //8D4 325 | //8F0 326 | //8F1 327 | //8F2 328 | //8F3 329 | //8F4 330 | 8F20328B064113AC006FF1E5 = { 331 | fileRef = 8F827A190629F4A80081C557; 332 | isa = PBXBuildFile; 333 | settings = { 334 | }; 335 | }; 336 | 8F8279D70629F1D50081C557 = { 337 | isa = PBXFileReference; 338 | lastKnownFileType = wrapper.framework; 339 | name = Cocoa.framework; 340 | path = /System/Library/Frameworks/Cocoa.framework; 341 | refType = 0; 342 | sourceTree = ""; 343 | }; 344 | 8F8279D80629F1D50081C557 = { 345 | isa = PBXFileReference; 346 | lastKnownFileType = wrapper.framework; 347 | name = GLUT.framework; 348 | path = /System/Library/Frameworks/GLUT.framework; 349 | refType = 0; 350 | sourceTree = ""; 351 | }; 352 | 8F8279D90629F1D50081C557 = { 353 | isa = PBXFileReference; 354 | lastKnownFileType = wrapper.framework; 355 | name = OpenGL.framework; 356 | path = /System/Library/Frameworks/OpenGL.framework; 357 | refType = 0; 358 | sourceTree = ""; 359 | }; 360 | 8F8279DA0629F1D50081C557 = { 361 | fileRef = 8F8279D70629F1D50081C557; 362 | isa = PBXBuildFile; 363 | settings = { 364 | }; 365 | }; 366 | 8F8279DB0629F1D50081C557 = { 367 | fileRef = 8F8279D80629F1D50081C557; 368 | isa = PBXBuildFile; 369 | settings = { 370 | }; 371 | }; 372 | 8F8279DC0629F1D50081C557 = { 373 | fileRef = 8F8279D90629F1D50081C557; 374 | isa = PBXBuildFile; 375 | settings = { 376 | }; 377 | }; 378 | 8F827A190629F4A80081C557 = { 379 | fileEncoding = 4; 380 | isa = PBXFileReference; 381 | lastKnownFileType = sourcecode.c.h; 382 | path = materials.h; 383 | refType = 4; 384 | sourceTree = ""; 385 | }; 386 | //8F0 387 | //8F1 388 | //8F2 389 | //8F3 390 | //8F4 391 | //C60 392 | //C61 393 | //C62 394 | //C63 395 | //C64 396 | C6A0FF2B0290797F04C91782 = { 397 | children = ( 398 | ); 399 | isa = PBXGroup; 400 | name = Documentation; 401 | refType = 4; 402 | sourceTree = ""; 403 | }; 404 | }; 405 | rootObject = 08FB7793FE84155DC02AAC07; 406 | } 407 | -------------------------------------------------------------------------------- /SpaceDog/src_xcode/jmorecfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jmorecfg.h 3 | * 4 | * Copyright (C) 1991-1997, Thomas G. Lane. 5 | * This file is part of the Independent JPEG Group's software. 6 | * For conditions of distribution and use, see the accompanying README file. 7 | * 8 | * This file contains additional configuration options that customize the 9 | * JPEG software for special applications or support machine-dependent 10 | * optimizations. Most users will not need to touch this file. 11 | */ 12 | 13 | 14 | /* 15 | * Define BITS_IN_JSAMPLE as either 16 | * 8 for 8-bit sample values (the usual setting) 17 | * 12 for 12-bit sample values 18 | * Only 8 and 12 are legal data precisions for lossy JPEG according to the 19 | * JPEG standard, and the IJG code does not support anything else! 20 | * We do not support run-time selection of data precision, sorry. 21 | */ 22 | 23 | #define BITS_IN_JSAMPLE 8 /* use 8 or 12 */ 24 | 25 | 26 | /* 27 | * Maximum number of components (color channels) allowed in JPEG image. 28 | * To meet the letter of the JPEG spec, set this to 255. However, darn 29 | * few applications need more than 4 channels (maybe 5 for CMYK + alpha 30 | * mask). We recommend 10 as a reasonable compromise; use 4 if you are 31 | * really short on memory. (Each allowed component costs a hundred or so 32 | * bytes of storage, whether actually used in an image or not.) 33 | */ 34 | 35 | #define MAX_COMPONENTS 10 /* maximum number of image components */ 36 | 37 | 38 | /* 39 | * Basic data types. 40 | * You may need to change these if you have a machine with unusual data 41 | * type sizes; for example, "char" not 8 bits, "short" not 16 bits, 42 | * or "long" not 32 bits. We don't care whether "int" is 16 or 32 bits, 43 | * but it had better be at least 16. 44 | */ 45 | 46 | /* Representation of a single sample (pixel element value). 47 | * We frequently allocate large arrays of these, so it's important to keep 48 | * them small. But if you have memory to burn and access to char or short 49 | * arrays is very slow on your hardware, you might want to change these. 50 | */ 51 | 52 | #if BITS_IN_JSAMPLE == 8 53 | /* JSAMPLE should be the smallest type that will hold the values 0..255. 54 | * You can use a signed char by having GETJSAMPLE mask it with 0xFF. 55 | */ 56 | 57 | #ifdef HAVE_UNSIGNED_CHAR 58 | 59 | typedef unsigned char JSAMPLE; 60 | #define GETJSAMPLE(value) ((int) (value)) 61 | 62 | #else /* not HAVE_UNSIGNED_CHAR */ 63 | 64 | typedef char JSAMPLE; 65 | #ifdef CHAR_IS_UNSIGNED 66 | #define GETJSAMPLE(value) ((int) (value)) 67 | #else 68 | #define GETJSAMPLE(value) ((int) (value) & 0xFF) 69 | #endif /* CHAR_IS_UNSIGNED */ 70 | 71 | #endif /* HAVE_UNSIGNED_CHAR */ 72 | 73 | #define MAXJSAMPLE 255 74 | #define CENTERJSAMPLE 128 75 | 76 | #endif /* BITS_IN_JSAMPLE == 8 */ 77 | 78 | 79 | #if BITS_IN_JSAMPLE == 12 80 | /* JSAMPLE should be the smallest type that will hold the values 0..4095. 81 | * On nearly all machines "short" will do nicely. 82 | */ 83 | 84 | typedef short JSAMPLE; 85 | #define GETJSAMPLE(value) ((int) (value)) 86 | 87 | #define MAXJSAMPLE 4095 88 | #define CENTERJSAMPLE 2048 89 | 90 | #endif /* BITS_IN_JSAMPLE == 12 */ 91 | 92 | 93 | /* Representation of a DCT frequency coefficient. 94 | * This should be a signed value of at least 16 bits; "short" is usually OK. 95 | * Again, we allocate large arrays of these, but you can change to int 96 | * if you have memory to burn and "short" is really slow. 97 | */ 98 | 99 | typedef short JCOEF; 100 | 101 | 102 | /* Compressed datastreams are represented as arrays of JOCTET. 103 | * These must be EXACTLY 8 bits wide, at least once they are written to 104 | * external storage. Note that when using the stdio data source/destination 105 | * managers, this is also the data type passed to fread/fwrite. 106 | */ 107 | 108 | #ifdef HAVE_UNSIGNED_CHAR 109 | 110 | typedef unsigned char JOCTET; 111 | #define GETJOCTET(value) (value) 112 | 113 | #else /* not HAVE_UNSIGNED_CHAR */ 114 | 115 | typedef char JOCTET; 116 | #ifdef CHAR_IS_UNSIGNED 117 | #define GETJOCTET(value) (value) 118 | #else 119 | #define GETJOCTET(value) ((value) & 0xFF) 120 | #endif /* CHAR_IS_UNSIGNED */ 121 | 122 | #endif /* HAVE_UNSIGNED_CHAR */ 123 | 124 | 125 | /* These typedefs are used for various table entries and so forth. 126 | * They must be at least as wide as specified; but making them too big 127 | * won't cost a huge amount of memory, so we don't provide special 128 | * extraction code like we did for JSAMPLE. (In other words, these 129 | * typedefs live at a different point on the speed/space tradeoff curve.) 130 | */ 131 | 132 | /* UINT8 must hold at least the values 0..255. */ 133 | 134 | #ifdef HAVE_UNSIGNED_CHAR 135 | typedef unsigned char UINT8; 136 | #else /* not HAVE_UNSIGNED_CHAR */ 137 | #ifdef CHAR_IS_UNSIGNED 138 | typedef char UINT8; 139 | #else /* not CHAR_IS_UNSIGNED */ 140 | typedef short UINT8; 141 | #endif /* CHAR_IS_UNSIGNED */ 142 | #endif /* HAVE_UNSIGNED_CHAR */ 143 | 144 | /* UINT16 must hold at least the values 0..65535. */ 145 | 146 | #ifdef HAVE_UNSIGNED_SHORT 147 | typedef unsigned short UINT16; 148 | #else /* not HAVE_UNSIGNED_SHORT */ 149 | typedef unsigned int UINT16; 150 | #endif /* HAVE_UNSIGNED_SHORT */ 151 | 152 | /* INT16 must hold at least the values -32768..32767. */ 153 | 154 | #ifndef XMD_H /* X11/xmd.h correctly defines INT16 */ 155 | typedef short INT16; 156 | #endif 157 | 158 | /* INT32 must hold at least signed 32-bit values. */ 159 | 160 | #ifndef XMD_H /* X11/xmd.h correctly defines INT32 */ 161 | typedef long INT32; 162 | #endif 163 | 164 | /* Datatype used for image dimensions. The JPEG standard only supports 165 | * images up to 64K*64K due to 16-bit fields in SOF markers. Therefore 166 | * "unsigned int" is sufficient on all machines. However, if you need to 167 | * handle larger images and you don't mind deviating from the spec, you 168 | * can change this datatype. 169 | */ 170 | 171 | typedef unsigned int JDIMENSION; 172 | 173 | #define JPEG_MAX_DIMENSION 65500L /* a tad under 64K to prevent overflows */ 174 | 175 | 176 | /* These macros are used in all function definitions and extern declarations. 177 | * You could modify them if you need to change function linkage conventions; 178 | * in particular, you'll need to do that to make the library a Windows DLL. 179 | * Another application is to make all functions global for use with debuggers 180 | * or code profilers that require it. 181 | */ 182 | 183 | /* a function called through method pointers: */ 184 | #define METHODDEF(type) static type 185 | /* a function used only in its module: */ 186 | #define LOCAL(type) static type 187 | /* a function referenced thru EXTERNs: */ 188 | #define GLOBAL(type) type 189 | /* a reference to a GLOBAL function: */ 190 | #define EXTERN(type) extern type 191 | 192 | 193 | /* This macro is used to declare a "method", that is, a function pointer. 194 | * We want to supply prototype parameters if the compiler can cope. 195 | * Note that the arglist parameter must be parenthesized! 196 | * Again, you can customize this if you need special linkage keywords. 197 | */ 198 | 199 | #ifdef HAVE_PROTOTYPES 200 | #define JMETHOD(type,methodname,arglist) type (*methodname) arglist 201 | #else 202 | #define JMETHOD(type,methodname,arglist) type (*methodname) () 203 | #endif 204 | 205 | 206 | /* Here is the pseudo-keyword for declaring pointers that must be "far" 207 | * on 80x86 machines. Most of the specialized coding for 80x86 is handled 208 | * by just saying "FAR *" where such a pointer is needed. In a few places 209 | * explicit coding is needed; see uses of the NEED_FAR_POINTERS symbol. 210 | */ 211 | 212 | #ifdef NEED_FAR_POINTERS 213 | #define FAR far 214 | #else 215 | #define FAR 216 | #endif 217 | 218 | 219 | /* 220 | * On a few systems, type boolean and/or its values FALSE, TRUE may appear 221 | * in standard header files. Or you may have conflicts with application- 222 | * specific header files that you want to include together with these files. 223 | * Defining HAVE_BOOLEAN before including jpeglib.h should make it work. 224 | */ 225 | 226 | #ifndef HAVE_BOOLEAN 227 | typedef int boolean; 228 | #endif 229 | #ifndef FALSE /* in case these macros already exist */ 230 | #define FALSE 0 /* values of boolean */ 231 | #endif 232 | #ifndef TRUE 233 | #define TRUE 1 234 | #endif 235 | 236 | 237 | /* 238 | * The remaining options affect code selection within the JPEG library, 239 | * but they don't need to be visible to most applications using the library. 240 | * To minimize application namespace pollution, the symbols won't be 241 | * defined unless JPEG_INTERNALS or JPEG_INTERNAL_OPTIONS has been defined. 242 | */ 243 | 244 | #ifdef JPEG_INTERNALS 245 | #define JPEG_INTERNAL_OPTIONS 246 | #endif 247 | 248 | #ifdef JPEG_INTERNAL_OPTIONS 249 | 250 | 251 | /* 252 | * These defines indicate whether to include various optional functions. 253 | * Undefining some of these symbols will produce a smaller but less capable 254 | * library. Note that you can leave certain source files out of the 255 | * compilation/linking process if you've #undef'd the corresponding symbols. 256 | * (You may HAVE to do that if your compiler doesn't like null source files.) 257 | */ 258 | 259 | /* Arithmetic coding is unsupported for legal reasons. Complaints to IBM. */ 260 | 261 | /* Capability options common to encoder and decoder: */ 262 | 263 | #define DCT_ISLOW_SUPPORTED /* slow but accurate integer algorithm */ 264 | #define DCT_IFAST_SUPPORTED /* faster, less accurate integer method */ 265 | #define DCT_FLOAT_SUPPORTED /* floating-point: accurate, fast on fast HW */ 266 | 267 | /* Encoder capability options: */ 268 | 269 | #undef C_ARITH_CODING_SUPPORTED /* Arithmetic coding back end? */ 270 | #define C_MULTISCAN_FILES_SUPPORTED /* Multiple-scan JPEG files? */ 271 | #define C_PROGRESSIVE_SUPPORTED /* Progressive JPEG? (Requires MULTISCAN)*/ 272 | #define ENTROPY_OPT_SUPPORTED /* Optimization of entropy coding parms? */ 273 | /* Note: if you selected 12-bit data precision, it is dangerous to turn off 274 | * ENTROPY_OPT_SUPPORTED. The standard Huffman tables are only good for 8-bit 275 | * precision, so jchuff.c normally uses entropy optimization to compute 276 | * usable tables for higher precision. If you don't want to do optimization, 277 | * you'll have to supply different default Huffman tables. 278 | * The exact same statements apply for progressive JPEG: the default tables 279 | * don't work for progressive mode. (This may get fixed, however.) 280 | */ 281 | #define INPUT_SMOOTHING_SUPPORTED /* Input image smoothing option? */ 282 | 283 | /* Decoder capability options: */ 284 | 285 | #undef D_ARITH_CODING_SUPPORTED /* Arithmetic coding back end? */ 286 | #define D_MULTISCAN_FILES_SUPPORTED /* Multiple-scan JPEG files? */ 287 | #define D_PROGRESSIVE_SUPPORTED /* Progressive JPEG? (Requires MULTISCAN)*/ 288 | #define SAVE_MARKERS_SUPPORTED /* jpeg_save_markers() needed? */ 289 | #define BLOCK_SMOOTHING_SUPPORTED /* Block smoothing? (Progressive only) */ 290 | #define IDCT_SCALING_SUPPORTED /* Output rescaling via IDCT? */ 291 | #undef UPSAMPLE_SCALING_SUPPORTED /* Output rescaling at upsample stage? */ 292 | #define UPSAMPLE_MERGING_SUPPORTED /* Fast path for sloppy upsampling? */ 293 | #define QUANT_1PASS_SUPPORTED /* 1-pass color quantization? */ 294 | #define QUANT_2PASS_SUPPORTED /* 2-pass color quantization? */ 295 | 296 | /* more capability options later, no doubt */ 297 | 298 | 299 | /* 300 | * Ordering of RGB data in scanlines passed to or from the application. 301 | * If your application wants to deal with data in the order B,G,R, just 302 | * change these macros. You can also deal with formats such as R,G,B,X 303 | * (one extra byte per pixel) by changing RGB_PIXELSIZE. Note that changing 304 | * the offsets will also change the order in which colormap data is organized. 305 | * RESTRICTIONS: 306 | * 1. The sample applications cjpeg,djpeg do NOT support modified RGB formats. 307 | * 2. These macros only affect RGB<=>YCbCr color conversion, so they are not 308 | * useful if you are using JPEG color spaces other than YCbCr or grayscale. 309 | * 3. The color quantizer modules will not behave desirably if RGB_PIXELSIZE 310 | * is not 3 (they don't understand about dummy color components!). So you 311 | * can't use color quantization if you change that value. 312 | */ 313 | 314 | #define RGB_RED 0 /* Offset of Red in an RGB scanline element */ 315 | #define RGB_GREEN 1 /* Offset of Green */ 316 | #define RGB_BLUE 2 /* Offset of Blue */ 317 | #define RGB_PIXELSIZE 3 /* JSAMPLEs per RGB scanline element */ 318 | 319 | 320 | /* Definitions for speed-related optimizations. */ 321 | 322 | 323 | /* If your compiler supports inline functions, define INLINE 324 | * as the inline keyword; otherwise define it as empty. 325 | */ 326 | 327 | #ifndef INLINE 328 | #ifdef __GNUC__ /* for instance, GNU C knows about inline */ 329 | #define INLINE __inline__ 330 | #endif 331 | #ifndef INLINE 332 | #define INLINE /* default is to define it as empty */ 333 | #endif 334 | #endif 335 | 336 | 337 | /* On some machines (notably 68000 series) "int" is 32 bits, but multiplying 338 | * two 16-bit shorts is faster than multiplying two ints. Define MULTIPLIER 339 | * as short on such a machine. MULTIPLIER must be at least 16 bits wide. 340 | */ 341 | 342 | #ifndef MULTIPLIER 343 | #define MULTIPLIER int /* type for fastest integer multiply */ 344 | #endif 345 | 346 | 347 | /* FAST_FLOAT should be either float or double, whichever is done faster 348 | * by your compiler. (Note that this type is only used in the floating point 349 | * DCT routines, so it only matters if you've defined DCT_FLOAT_SUPPORTED.) 350 | * Typically, float is faster in ANSI C compilers, while double is faster in 351 | * pre-ANSI compilers (because they insist on converting to double anyway). 352 | * The code below therefore chooses float if we have ANSI-style prototypes. 353 | */ 354 | 355 | #ifndef FAST_FLOAT 356 | #ifdef HAVE_PROTOTYPES 357 | #define FAST_FLOAT float 358 | #else 359 | #define FAST_FLOAT double 360 | #endif 361 | #endif 362 | 363 | #endif /* JPEG_INTERNAL_OPTIONS */ 364 | -------------------------------------------------------------------------------- /SpaceDog/src_xcode/jerror.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jerror.h 3 | * 4 | * Copyright (C) 1994-1997, Thomas G. Lane. 5 | * This file is part of the Independent JPEG Group's software. 6 | * For conditions of distribution and use, see the accompanying README file. 7 | * 8 | * This file defines the error and message codes for the JPEG library. 9 | * Edit this file to add new codes, or to translate the message strings to 10 | * some other language. 11 | * A set of error-reporting macros are defined too. Some applications using 12 | * the JPEG library may wish to include this file to get the error codes 13 | * and/or the macros. 14 | */ 15 | 16 | /* 17 | * To define the enum list of message codes, include this file without 18 | * defining macro JMESSAGE. To create a message string table, include it 19 | * again with a suitable JMESSAGE definition (see jerror.c for an example). 20 | */ 21 | #ifndef JMESSAGE 22 | #ifndef JERROR_H 23 | /* First time through, define the enum list */ 24 | #define JMAKE_ENUM_LIST 25 | #else 26 | /* Repeated inclusions of this file are no-ops unless JMESSAGE is defined */ 27 | #define JMESSAGE(code,string) 28 | #endif /* JERROR_H */ 29 | #endif /* JMESSAGE */ 30 | 31 | #ifdef JMAKE_ENUM_LIST 32 | 33 | typedef enum { 34 | 35 | #define JMESSAGE(code,string) code , 36 | 37 | #endif /* JMAKE_ENUM_LIST */ 38 | 39 | JMESSAGE(JMSG_NOMESSAGE, "Bogus message code %d") /* Must be first entry! */ 40 | 41 | /* For maintenance convenience, list is alphabetical by message code name */ 42 | JMESSAGE(JERR_ARITH_NOTIMPL, 43 | "Sorry, there are legal restrictions on arithmetic coding") 44 | JMESSAGE(JERR_BAD_ALIGN_TYPE, "ALIGN_TYPE is wrong, please fix") 45 | JMESSAGE(JERR_BAD_ALLOC_CHUNK, "MAX_ALLOC_CHUNK is wrong, please fix") 46 | JMESSAGE(JERR_BAD_BUFFER_MODE, "Bogus buffer control mode") 47 | JMESSAGE(JERR_BAD_COMPONENT_ID, "Invalid component ID %d in SOS") 48 | JMESSAGE(JERR_BAD_DCT_COEF, "DCT coefficient out of range") 49 | JMESSAGE(JERR_BAD_DCTSIZE, "IDCT output block size %d not supported") 50 | JMESSAGE(JERR_BAD_HUFF_TABLE, "Bogus Huffman table definition") 51 | JMESSAGE(JERR_BAD_IN_COLORSPACE, "Bogus input colorspace") 52 | JMESSAGE(JERR_BAD_J_COLORSPACE, "Bogus JPEG colorspace") 53 | JMESSAGE(JERR_BAD_LENGTH, "Bogus marker length") 54 | JMESSAGE(JERR_BAD_LIB_VERSION, 55 | "Wrong JPEG library version: library is %d, caller expects %d") 56 | JMESSAGE(JERR_BAD_MCU_SIZE, "Sampling factors too large for interleaved scan") 57 | JMESSAGE(JERR_BAD_POOL_ID, "Invalid memory pool code %d") 58 | JMESSAGE(JERR_BAD_PRECISION, "Unsupported JPEG data precision %d") 59 | JMESSAGE(JERR_BAD_PROGRESSION, 60 | "Invalid progressive parameters Ss=%d Se=%d Ah=%d Al=%d") 61 | JMESSAGE(JERR_BAD_PROG_SCRIPT, 62 | "Invalid progressive parameters at scan script entry %d") 63 | JMESSAGE(JERR_BAD_SAMPLING, "Bogus sampling factors") 64 | JMESSAGE(JERR_BAD_SCAN_SCRIPT, "Invalid scan script at entry %d") 65 | JMESSAGE(JERR_BAD_STATE, "Improper call to JPEG library in state %d") 66 | JMESSAGE(JERR_BAD_STRUCT_SIZE, 67 | "JPEG parameter struct mismatch: library thinks size is %u, caller expects %u") 68 | JMESSAGE(JERR_BAD_VIRTUAL_ACCESS, "Bogus virtual array access") 69 | JMESSAGE(JERR_BUFFER_SIZE, "Buffer passed to JPEG library is too small") 70 | JMESSAGE(JERR_CANT_SUSPEND, "Suspension not allowed here") 71 | JMESSAGE(JERR_CCIR601_NOTIMPL, "CCIR601 sampling not implemented yet") 72 | JMESSAGE(JERR_COMPONENT_COUNT, "Too many color components: %d, max %d") 73 | JMESSAGE(JERR_CONVERSION_NOTIMPL, "Unsupported color conversion request") 74 | JMESSAGE(JERR_DAC_INDEX, "Bogus DAC index %d") 75 | JMESSAGE(JERR_DAC_VALUE, "Bogus DAC value 0x%x") 76 | JMESSAGE(JERR_DHT_INDEX, "Bogus DHT index %d") 77 | JMESSAGE(JERR_DQT_INDEX, "Bogus DQT index %d") 78 | JMESSAGE(JERR_EMPTY_IMAGE, "Empty JPEG image (DNL not supported)") 79 | JMESSAGE(JERR_EMS_READ, "Read from EMS failed") 80 | JMESSAGE(JERR_EMS_WRITE, "Write to EMS failed") 81 | JMESSAGE(JERR_EOI_EXPECTED, "Didn't expect more than one scan") 82 | JMESSAGE(JERR_FILE_READ, "Input file read error") 83 | JMESSAGE(JERR_FILE_WRITE, "Output file write error --- out of disk space?") 84 | JMESSAGE(JERR_FRACT_SAMPLE_NOTIMPL, "Fractional sampling not implemented yet") 85 | JMESSAGE(JERR_HUFF_CLEN_OVERFLOW, "Huffman code size table overflow") 86 | JMESSAGE(JERR_HUFF_MISSING_CODE, "Missing Huffman code table entry") 87 | JMESSAGE(JERR_IMAGE_TOO_BIG, "Maximum supported image dimension is %u pixels") 88 | JMESSAGE(JERR_INPUT_EMPTY, "Empty input file") 89 | JMESSAGE(JERR_INPUT_EOF, "Premature end of input file") 90 | JMESSAGE(JERR_MISMATCHED_QUANT_TABLE, 91 | "Cannot transcode due to multiple use of quantization table %d") 92 | JMESSAGE(JERR_MISSING_DATA, "Scan script does not transmit all data") 93 | JMESSAGE(JERR_MODE_CHANGE, "Invalid color quantization mode change") 94 | JMESSAGE(JERR_NOTIMPL, "Not implemented yet") 95 | JMESSAGE(JERR_NOT_COMPILED, "Requested feature was omitted at compile time") 96 | JMESSAGE(JERR_NO_BACKING_STORE, "Backing store not supported") 97 | JMESSAGE(JERR_NO_HUFF_TABLE, "Huffman table 0x%02x was not defined") 98 | JMESSAGE(JERR_NO_IMAGE, "JPEG datastream contains no image") 99 | JMESSAGE(JERR_NO_QUANT_TABLE, "Quantization table 0x%02x was not defined") 100 | JMESSAGE(JERR_NO_SOI, "Not a JPEG file: starts with 0x%02x 0x%02x") 101 | JMESSAGE(JERR_OUT_OF_MEMORY, "Insufficient memory (case %d)") 102 | JMESSAGE(JERR_QUANT_COMPONENTS, 103 | "Cannot quantize more than %d color components") 104 | JMESSAGE(JERR_QUANT_FEW_COLORS, "Cannot quantize to fewer than %d colors") 105 | JMESSAGE(JERR_QUANT_MANY_COLORS, "Cannot quantize to more than %d colors") 106 | JMESSAGE(JERR_SOF_DUPLICATE, "Invalid JPEG file structure: two SOF markers") 107 | JMESSAGE(JERR_SOF_NO_SOS, "Invalid JPEG file structure: missing SOS marker") 108 | JMESSAGE(JERR_SOF_UNSUPPORTED, "Unsupported JPEG process: SOF type 0x%02x") 109 | JMESSAGE(JERR_SOI_DUPLICATE, "Invalid JPEG file structure: two SOI markers") 110 | JMESSAGE(JERR_SOS_NO_SOF, "Invalid JPEG file structure: SOS before SOF") 111 | JMESSAGE(JERR_TFILE_CREATE, "Failed to create temporary file %s") 112 | JMESSAGE(JERR_TFILE_READ, "Read failed on temporary file") 113 | JMESSAGE(JERR_TFILE_SEEK, "Seek failed on temporary file") 114 | JMESSAGE(JERR_TFILE_WRITE, 115 | "Write failed on temporary file --- out of disk space?") 116 | JMESSAGE(JERR_TOO_LITTLE_DATA, "Application transferred too few scanlines") 117 | JMESSAGE(JERR_UNKNOWN_MARKER, "Unsupported marker type 0x%02x") 118 | JMESSAGE(JERR_VIRTUAL_BUG, "Virtual array controller messed up") 119 | JMESSAGE(JERR_WIDTH_OVERFLOW, "Image too wide for this implementation") 120 | JMESSAGE(JERR_XMS_READ, "Read from XMS failed") 121 | JMESSAGE(JERR_XMS_WRITE, "Write to XMS failed") 122 | JMESSAGE(JMSG_COPYRIGHT, JCOPYRIGHT) 123 | JMESSAGE(JMSG_VERSION, JVERSION) 124 | JMESSAGE(JTRC_16BIT_TABLES, 125 | "Caution: quantization tables are too coarse for baseline JPEG") 126 | JMESSAGE(JTRC_ADOBE, 127 | "Adobe APP14 marker: version %d, flags 0x%04x 0x%04x, transform %d") 128 | JMESSAGE(JTRC_APP0, "Unknown APP0 marker (not JFIF), length %u") 129 | JMESSAGE(JTRC_APP14, "Unknown APP14 marker (not Adobe), length %u") 130 | JMESSAGE(JTRC_DAC, "Define Arithmetic Table 0x%02x: 0x%02x") 131 | JMESSAGE(JTRC_DHT, "Define Huffman Table 0x%02x") 132 | JMESSAGE(JTRC_DQT, "Define Quantization Table %d precision %d") 133 | JMESSAGE(JTRC_DRI, "Define Restart Interval %u") 134 | JMESSAGE(JTRC_EMS_CLOSE, "Freed EMS handle %u") 135 | JMESSAGE(JTRC_EMS_OPEN, "Obtained EMS handle %u") 136 | JMESSAGE(JTRC_EOI, "End Of Image") 137 | JMESSAGE(JTRC_HUFFBITS, " %3d %3d %3d %3d %3d %3d %3d %3d") 138 | JMESSAGE(JTRC_JFIF, "JFIF APP0 marker: version %d.%02d, density %dx%d %d") 139 | JMESSAGE(JTRC_JFIF_BADTHUMBNAILSIZE, 140 | "Warning: thumbnail image size does not match data length %u") 141 | JMESSAGE(JTRC_JFIF_EXTENSION, 142 | "JFIF extension marker: type 0x%02x, length %u") 143 | JMESSAGE(JTRC_JFIF_THUMBNAIL, " with %d x %d thumbnail image") 144 | JMESSAGE(JTRC_MISC_MARKER, "Miscellaneous marker 0x%02x, length %u") 145 | JMESSAGE(JTRC_PARMLESS_MARKER, "Unexpected marker 0x%02x") 146 | JMESSAGE(JTRC_QUANTVALS, " %4u %4u %4u %4u %4u %4u %4u %4u") 147 | JMESSAGE(JTRC_QUANT_3_NCOLORS, "Quantizing to %d = %d*%d*%d colors") 148 | JMESSAGE(JTRC_QUANT_NCOLORS, "Quantizing to %d colors") 149 | JMESSAGE(JTRC_QUANT_SELECTED, "Selected %d colors for quantization") 150 | JMESSAGE(JTRC_RECOVERY_ACTION, "At marker 0x%02x, recovery action %d") 151 | JMESSAGE(JTRC_RST, "RST%d") 152 | JMESSAGE(JTRC_SMOOTH_NOTIMPL, 153 | "Smoothing not supported with nonstandard sampling ratios") 154 | JMESSAGE(JTRC_SOF, "Start Of Frame 0x%02x: width=%u, height=%u, components=%d") 155 | JMESSAGE(JTRC_SOF_COMPONENT, " Component %d: %dhx%dv q=%d") 156 | JMESSAGE(JTRC_SOI, "Start of Image") 157 | JMESSAGE(JTRC_SOS, "Start Of Scan: %d components") 158 | JMESSAGE(JTRC_SOS_COMPONENT, " Component %d: dc=%d ac=%d") 159 | JMESSAGE(JTRC_SOS_PARAMS, " Ss=%d, Se=%d, Ah=%d, Al=%d") 160 | JMESSAGE(JTRC_TFILE_CLOSE, "Closed temporary file %s") 161 | JMESSAGE(JTRC_TFILE_OPEN, "Opened temporary file %s") 162 | JMESSAGE(JTRC_THUMB_JPEG, 163 | "JFIF extension marker: JPEG-compressed thumbnail image, length %u") 164 | JMESSAGE(JTRC_THUMB_PALETTE, 165 | "JFIF extension marker: palette thumbnail image, length %u") 166 | JMESSAGE(JTRC_THUMB_RGB, 167 | "JFIF extension marker: RGB thumbnail image, length %u") 168 | JMESSAGE(JTRC_UNKNOWN_IDS, 169 | "Unrecognized component IDs %d %d %d, assuming YCbCr") 170 | JMESSAGE(JTRC_XMS_CLOSE, "Freed XMS handle %u") 171 | JMESSAGE(JTRC_XMS_OPEN, "Obtained XMS handle %u") 172 | JMESSAGE(JWRN_ADOBE_XFORM, "Unknown Adobe color transform code %d") 173 | JMESSAGE(JWRN_BOGUS_PROGRESSION, 174 | "Inconsistent progression sequence for component %d coefficient %d") 175 | JMESSAGE(JWRN_EXTRANEOUS_DATA, 176 | "Corrupt JPEG data: %u extraneous bytes before marker 0x%02x") 177 | JMESSAGE(JWRN_HIT_MARKER, "Corrupt JPEG data: premature end of data segment") 178 | JMESSAGE(JWRN_HUFF_BAD_CODE, "Corrupt JPEG data: bad Huffman code") 179 | JMESSAGE(JWRN_JFIF_MAJOR, "Warning: unknown JFIF revision number %d.%02d") 180 | JMESSAGE(JWRN_JPEG_EOF, "Premature end of JPEG file") 181 | JMESSAGE(JWRN_MUST_RESYNC, 182 | "Corrupt JPEG data: found marker 0x%02x instead of RST%d") 183 | JMESSAGE(JWRN_NOT_SEQUENTIAL, "Invalid SOS parameters for sequential JPEG") 184 | JMESSAGE(JWRN_TOO_MUCH_DATA, "Application transferred too many scanlines") 185 | 186 | #ifdef JMAKE_ENUM_LIST 187 | 188 | JMSG_LASTMSGCODE 189 | } J_MESSAGE_CODE; 190 | 191 | #undef JMAKE_ENUM_LIST 192 | #endif /* JMAKE_ENUM_LIST */ 193 | 194 | /* Zap JMESSAGE macro so that future re-inclusions do nothing by default */ 195 | #undef JMESSAGE 196 | 197 | 198 | #ifndef JERROR_H 199 | #define JERROR_H 200 | 201 | /* Macros to simplify using the error and trace message stuff */ 202 | /* The first parameter is either type of cinfo pointer */ 203 | 204 | /* Fatal errors (print message and exit) */ 205 | #define ERREXIT(cinfo,code) \ 206 | ((cinfo)->err->msg_code = (code), \ 207 | (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 208 | #define ERREXIT1(cinfo,code,p1) \ 209 | ((cinfo)->err->msg_code = (code), \ 210 | (cinfo)->err->msg_parm.i[0] = (p1), \ 211 | (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 212 | #define ERREXIT2(cinfo,code,p1,p2) \ 213 | ((cinfo)->err->msg_code = (code), \ 214 | (cinfo)->err->msg_parm.i[0] = (p1), \ 215 | (cinfo)->err->msg_parm.i[1] = (p2), \ 216 | (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 217 | #define ERREXIT3(cinfo,code,p1,p2,p3) \ 218 | ((cinfo)->err->msg_code = (code), \ 219 | (cinfo)->err->msg_parm.i[0] = (p1), \ 220 | (cinfo)->err->msg_parm.i[1] = (p2), \ 221 | (cinfo)->err->msg_parm.i[2] = (p3), \ 222 | (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 223 | #define ERREXIT4(cinfo,code,p1,p2,p3,p4) \ 224 | ((cinfo)->err->msg_code = (code), \ 225 | (cinfo)->err->msg_parm.i[0] = (p1), \ 226 | (cinfo)->err->msg_parm.i[1] = (p2), \ 227 | (cinfo)->err->msg_parm.i[2] = (p3), \ 228 | (cinfo)->err->msg_parm.i[3] = (p4), \ 229 | (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 230 | #define ERREXITS(cinfo,code,str) \ 231 | ((cinfo)->err->msg_code = (code), \ 232 | strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \ 233 | (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 234 | 235 | #define MAKESTMT(stuff) do { stuff } while (0) 236 | 237 | /* Nonfatal errors (we can keep going, but the data is probably corrupt) */ 238 | #define WARNMS(cinfo,code) \ 239 | ((cinfo)->err->msg_code = (code), \ 240 | (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), -1)) 241 | #define WARNMS1(cinfo,code,p1) \ 242 | ((cinfo)->err->msg_code = (code), \ 243 | (cinfo)->err->msg_parm.i[0] = (p1), \ 244 | (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), -1)) 245 | #define WARNMS2(cinfo,code,p1,p2) \ 246 | ((cinfo)->err->msg_code = (code), \ 247 | (cinfo)->err->msg_parm.i[0] = (p1), \ 248 | (cinfo)->err->msg_parm.i[1] = (p2), \ 249 | (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), -1)) 250 | 251 | /* Informational/debugging messages */ 252 | #define TRACEMS(cinfo,lvl,code) \ 253 | ((cinfo)->err->msg_code = (code), \ 254 | (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl))) 255 | #define TRACEMS1(cinfo,lvl,code,p1) \ 256 | ((cinfo)->err->msg_code = (code), \ 257 | (cinfo)->err->msg_parm.i[0] = (p1), \ 258 | (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl))) 259 | #define TRACEMS2(cinfo,lvl,code,p1,p2) \ 260 | ((cinfo)->err->msg_code = (code), \ 261 | (cinfo)->err->msg_parm.i[0] = (p1), \ 262 | (cinfo)->err->msg_parm.i[1] = (p2), \ 263 | (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl))) 264 | #define TRACEMS3(cinfo,lvl,code,p1,p2,p3) \ 265 | MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \ 266 | _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); \ 267 | (cinfo)->err->msg_code = (code); \ 268 | (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); ) 269 | #define TRACEMS4(cinfo,lvl,code,p1,p2,p3,p4) \ 270 | MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \ 271 | _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \ 272 | (cinfo)->err->msg_code = (code); \ 273 | (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); ) 274 | #define TRACEMS5(cinfo,lvl,code,p1,p2,p3,p4,p5) \ 275 | MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \ 276 | _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \ 277 | _mp[4] = (p5); \ 278 | (cinfo)->err->msg_code = (code); \ 279 | (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); ) 280 | #define TRACEMS8(cinfo,lvl,code,p1,p2,p3,p4,p5,p6,p7,p8) \ 281 | MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \ 282 | _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \ 283 | _mp[4] = (p5); _mp[5] = (p6); _mp[6] = (p7); _mp[7] = (p8); \ 284 | (cinfo)->err->msg_code = (code); \ 285 | (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); ) 286 | #define TRACEMSS(cinfo,lvl,code,str) \ 287 | ((cinfo)->err->msg_code = (code), \ 288 | strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \ 289 | (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl))) 290 | 291 | #endif /* JERROR_H */ 292 | -------------------------------------------------------------------------------- /SpaceDog/src_xcode/spaceDog.xcode/nseriot.pbxuser: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | 08FB7793FE84155DC02AAC07 = { 4 | activeBuildStyle = 014CEA530018CE5811CA2923; 5 | activeExecutable = 8F8279D40629F1BC0081C557; 6 | activeTarget = 8DD76FA90486AB0100D96B5E; 7 | addToTargets = ( 8 | 8DD76FA90486AB0100D96B5E, 9 | ); 10 | breakpoints = ( 11 | ); 12 | codeSenseManager = 8F8279DE0629F1E70081C557; 13 | executables = ( 14 | 8F8279D40629F1BC0081C557, 15 | ); 16 | perUserDictionary = { 17 | PBXConfiguration.PBXFileTableDataSource3.PBXErrorsWarningsDataSource = { 18 | PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; 19 | PBXFileTableDataSourceColumnSortingKey = PBXErrorsWarningsDataSource_LocationID; 20 | PBXFileTableDataSourceColumnWidthsKey = ( 21 | 20, 22 | 388.8799, 23 | 216.2085, 24 | ); 25 | PBXFileTableDataSourceColumnsKey = ( 26 | PBXErrorsWarningsDataSource_TypeID, 27 | PBXErrorsWarningsDataSource_MessageID, 28 | PBXErrorsWarningsDataSource_LocationID, 29 | ); 30 | }; 31 | PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = { 32 | PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; 33 | PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID; 34 | PBXFileTableDataSourceColumnWidthsKey = ( 35 | 20, 36 | 390, 37 | 20, 38 | 73, 39 | 43, 40 | 43, 41 | 20, 42 | ); 43 | PBXFileTableDataSourceColumnsKey = ( 44 | PBXFileDataSource_FiletypeID, 45 | PBXFileDataSource_Filename_ColumnID, 46 | PBXFileDataSource_Built_ColumnID, 47 | PBXFileDataSource_ObjectSize_ColumnID, 48 | PBXFileDataSource_Errors_ColumnID, 49 | PBXFileDataSource_Warnings_ColumnID, 50 | PBXFileDataSource_Target_ColumnID, 51 | ); 52 | }; 53 | PBXConfiguration.PBXTargetDataSource.PBXTargetDataSource = { 54 | PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; 55 | PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID; 56 | PBXFileTableDataSourceColumnWidthsKey = ( 57 | 20, 58 | 335, 59 | 74, 60 | 20, 61 | 74, 62 | 43, 63 | 43, 64 | ); 65 | PBXFileTableDataSourceColumnsKey = ( 66 | PBXFileDataSource_FiletypeID, 67 | PBXFileDataSource_Filename_ColumnID, 68 | PBXTargetDataSource_PrimaryAttribute, 69 | PBXFileDataSource_Built_ColumnID, 70 | PBXFileDataSource_ObjectSize_ColumnID, 71 | PBXFileDataSource_Errors_ColumnID, 72 | PBXFileDataSource_Warnings_ColumnID, 73 | ); 74 | }; 75 | PBXPerProjectTemplateStateSaveDate = 105363529; 76 | PBXPrepackagedSmartGroups_v2 = ( 77 | { 78 | PBXTransientLocationAtTop = bottom; 79 | absolutePathToBundle = ""; 80 | activationKey = OldTargetSmartGroup; 81 | clz = PBXTargetSmartGroup; 82 | description = "Displays all targets of the project."; 83 | globalID = 1C37FABC04509CD000000102; 84 | name = Targets; 85 | preferences = { 86 | image = Targets; 87 | }; 88 | }, 89 | { 90 | PBXTransientLocationAtTop = bottom; 91 | absolutePathToBundle = ""; 92 | clz = PBXTargetSmartGroup2; 93 | description = "Displays all targets of the project as well as nested build phases."; 94 | globalID = 1C37FBAC04509CD000000102; 95 | name = Targets; 96 | preferences = { 97 | image = Targets; 98 | }; 99 | }, 100 | { 101 | PBXTransientLocationAtTop = bottom; 102 | absolutePathToBundle = ""; 103 | clz = PBXExecutablesSmartGroup; 104 | description = "Displays all executables of the project."; 105 | globalID = 1C37FAAC04509CD000000102; 106 | name = Executables; 107 | preferences = { 108 | image = Executable; 109 | }; 110 | }, 111 | { 112 | " PBXTransientLocationAtTop " = bottom; 113 | absolutePathToBundle = ""; 114 | clz = PBXErrorsWarningsSmartGroup; 115 | description = "Displays files with errors or warnings."; 116 | globalID = 1C08E77C0454961000C914BD; 117 | name = "Errors and Warnings"; 118 | preferences = { 119 | fnmatch = ""; 120 | image = WarningsErrors; 121 | recursive = 1; 122 | regex = ""; 123 | root = ""; 124 | }; 125 | }, 126 | { 127 | PBXTransientLocationAtTop = bottom; 128 | absolutePathToBundle = ""; 129 | clz = PBXFilenameSmartGroup; 130 | description = "Filters items in a given group (potentially recursively) based on matching the name with the regular expression of the filter."; 131 | globalID = 1CC0EA4004350EF90044410B; 132 | name = "Implementation Files"; 133 | preferences = { 134 | canSave = 1; 135 | fnmatch = ""; 136 | image = SmartFolder; 137 | isLeaf = 0; 138 | recursive = 1; 139 | regex = "?*\\.[mcMC]"; 140 | root = ""; 141 | }; 142 | }, 143 | { 144 | PBXTransientLocationAtTop = bottom; 145 | absolutePathToBundle = ""; 146 | clz = PBXFilenameSmartGroup; 147 | description = "This group displays Interface Builder NIB Files."; 148 | globalID = 1CC0EA4004350EF90041110B; 149 | name = "NIB Files"; 150 | preferences = { 151 | canSave = 1; 152 | fnmatch = "*.nib"; 153 | image = SmartFolder; 154 | isLeaf = 0; 155 | recursive = 1; 156 | regex = ""; 157 | root = ""; 158 | }; 159 | }, 160 | { 161 | PBXTransientLocationAtTop = no; 162 | absolutePathToBundle = ""; 163 | clz = PBXFindSmartGroup; 164 | description = "Displays Find Results."; 165 | globalID = 1C37FABC05509CD000000102; 166 | name = "Find Results"; 167 | preferences = { 168 | image = spyglass; 169 | }; 170 | }, 171 | { 172 | PBXTransientLocationAtTop = no; 173 | absolutePathToBundle = ""; 174 | clz = PBXBookmarksSmartGroup; 175 | description = "Displays Project Bookmarks."; 176 | globalID = 1C37FABC05539CD112110102; 177 | name = Bookmarks; 178 | preferences = { 179 | image = Bookmarks; 180 | }; 181 | }, 182 | { 183 | PBXTransientLocationAtTop = bottom; 184 | absolutePathToBundle = ""; 185 | clz = XCSCMSmartGroup; 186 | description = "Displays files with interesting SCM status."; 187 | globalID = E2644B35053B69B200211256; 188 | name = SCM; 189 | preferences = { 190 | image = PBXRepository; 191 | isLeaf = 0; 192 | }; 193 | }, 194 | { 195 | PBXTransientLocationAtTop = bottom; 196 | absolutePathToBundle = ""; 197 | clz = PBXSymbolsSmartGroup; 198 | description = "Displays all symbols for the project."; 199 | globalID = 1C37FABC04509CD000100104; 200 | name = "Project Symbols"; 201 | preferences = { 202 | image = ProjectSymbols; 203 | isLeaf = 1; 204 | }; 205 | }, 206 | { 207 | PBXTransientLocationAtTop = bottom; 208 | absolutePathToBundle = ""; 209 | clz = PBXFilenameSmartGroup; 210 | description = "Filters items in a given group (potentially recursively) based on matching the name with the regular expression of the filter."; 211 | globalID = PBXTemplateMarker; 212 | name = "Simple Filter SmartGroup"; 213 | preferences = { 214 | canSave = 1; 215 | fnmatch = "*.nib"; 216 | image = SmartFolder; 217 | isLeaf = 0; 218 | recursive = 1; 219 | regex = ""; 220 | root = ""; 221 | }; 222 | }, 223 | { 224 | PBXTransientLocationAtTop = bottom; 225 | absolutePathToBundle = ""; 226 | clz = PBXFilenameSmartGroup; 227 | description = "Filters items in a given group (potentially recursively) based on matching the name with the regular expression of the filter."; 228 | globalID = PBXTemplateMarker; 229 | name = "Simple Regular Expression SmartGroup"; 230 | preferences = { 231 | canSave = 1; 232 | fnmatch = ""; 233 | image = SmartFolder; 234 | isLeaf = 0; 235 | recursive = 1; 236 | regex = "?*\\.[mcMC]"; 237 | root = ""; 238 | }; 239 | }, 240 | ); 241 | PBXWorkspaceContents = ( 242 | { 243 | PBXProjectWorkspaceModule_StateKey_Rev39 = { 244 | PBXProjectWorkspaceModule_DEGV_Geometry = { 245 | _collapsingFrameDimension = 0; 246 | _indexOfCollapsedView = 0; 247 | _percentageOfCollapsedView = 0; 248 | isCollapsed = yes; 249 | sizes = ( 250 | "{{0, 0}, {652, 0}}", 251 | "{{0, 0}, {652, 644}}", 252 | ); 253 | }; 254 | PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = { 255 | BoundsStr = "{{0, 0}, {637, 15}}"; 256 | Rows = ( 257 | 0, 258 | ); 259 | VisibleRectStr = "{{0, 0}, {0, 0}}"; 260 | }; 261 | PBXProjectWorkspaceModule_EditorOpen = true; 262 | PBXProjectWorkspaceModule_EmbeddedNavigatorGroup = { 263 | PBXSplitModuleInNavigatorKey = { 264 | Split0 = { 265 | bookmark = 8F978D550647B95D006098D7; 266 | history = ( 267 | 8FFDD2B6062B14F0002B039F, 268 | 8FC285D9063E7EC9001F5FFA, 269 | 8FC285DA063E7EC9001F5FFA, 270 | 8FC285DB063E7EC9001F5FFA, 271 | 8F2032580640DF9E006FF1E5, 272 | 8F20328D06411498006FF1E5, 273 | 8FA5D407064449360002F43D, 274 | ); 275 | prevStack = ( 276 | 8FFD8E5E062A043500B1EC99, 277 | 8FFD8E5F062A043500B1EC99, 278 | 8FFDD27B062AF053002B039F, 279 | 8FFDD27C062AF053002B039F, 280 | 8FFDD2BE062B14F0002B039F, 281 | 8FC285DF063E7EC9001F5FFA, 282 | 8F20328E06411498006FF1E5, 283 | ); 284 | }; 285 | SplitCount = 1; 286 | }; 287 | }; 288 | PBXProjectWorkspaceModule_GeometryKey_Rev15 = { 289 | PBXProjectWorkspaceModule_SGTM_Geometry = { 290 | _collapsingFrameDimension = 0; 291 | _indexOfCollapsedView = 0; 292 | _percentageOfCollapsedView = 0; 293 | sizes = ( 294 | "{{0, 0}, {182, 644}}", 295 | "{{182, 0}, {652, 644}}", 296 | ); 297 | }; 298 | }; 299 | PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {652, 0}}"; 300 | PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 0}, {652, 644}}"; 301 | PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {652, 644}}"; 302 | PBXProjectWorkspaceModule_SGTM = { 303 | PBXBottomSmartGroupGIDs = ( 304 | 1C37FBAC04509CD000000102, 305 | 1C37FAAC04509CD000000102, 306 | 1C08E77C0454961000C914BD, 307 | 1CC0EA4004350EF90044410B, 308 | 1CC0EA4004350EF90041110B, 309 | 1C37FABC05509CD000000102, 310 | 1C37FABC05539CD112110102, 311 | E2644B35053B69B200211256, 312 | 1C37FABC04509CD000100104, 313 | ); 314 | PBXSmartGroupTreeModuleColumnData = { 315 | PBXSmartGroupTreeModuleColumnWidthsKey = ( 316 | 165, 317 | ); 318 | PBXSmartGroupTreeModuleColumnsKey_v4 = ( 319 | MainColumn, 320 | ); 321 | }; 322 | PBXSmartGroupTreeModuleOutlineStateKey_v7 = { 323 | PBXSmartGroupTreeModuleOutlineStateExpansionKey = ( 324 | 08FB7794FE84155DC02AAC07, 325 | 08FB7795FE84155DC02AAC07, 326 | 1AB674ADFE9D54B511CA2CBB, 327 | 1C08E77C0454961000C914BD, 328 | ); 329 | PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( 330 | ( 331 | 13, 332 | 12, 333 | 0, 334 | ), 335 | ); 336 | PBXSmartGroupTreeModuleOutlineStateVisibleRectKey = "{{0, 0}, {165, 626}}"; 337 | }; 338 | PBXTopSmartGroupGIDs = ( 339 | ); 340 | }; 341 | }; 342 | }, 343 | ); 344 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXBuildResultsModule" = { 345 | }; 346 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXClassBrowserModule" = { 347 | OptionsSetName = "Flat, project classes"; 348 | }; 349 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXDebugCLIModule" = { 350 | }; 351 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXDebugSessionModule" = { 352 | Debugger = { 353 | HorizontalSplitView = { 354 | _collapsingFrameDimension = 0; 355 | _indexOfCollapsedView = 0; 356 | _percentageOfCollapsedView = 0; 357 | isCollapsed = yes; 358 | sizes = ( 359 | "{{0, 0}, {283, 209}}", 360 | "{{283, 0}, {462, 209}}", 361 | ); 362 | }; 363 | VerticalSplitView = { 364 | _collapsingFrameDimension = 0; 365 | _indexOfCollapsedView = 0; 366 | _percentageOfCollapsedView = 0; 367 | isCollapsed = yes; 368 | sizes = ( 369 | "{{0, 0}, {745, 209}}", 370 | "{{0, 209}, {745, 213}}", 371 | ); 372 | }; 373 | }; 374 | LauncherConfigVersion = 8; 375 | }; 376 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXNavigatorGroup" = { 377 | PBXSplitModuleInNavigatorKey = { 378 | SplitCount = 1; 379 | }; 380 | }; 381 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXProjectFindModule" = { 382 | }; 383 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXProjectWorkspaceModule" = { 384 | PBXProjectWorkspaceModule_StateKey_Rev39 = { 385 | PBXProjectWorkspaceModule_DEGV_Geometry = { 386 | _collapsingFrameDimension = 0; 387 | _indexOfCollapsedView = 0; 388 | _percentageOfCollapsedView = 0; 389 | isCollapsed = yes; 390 | sizes = ( 391 | "{{0, 0}, {652, 0}}", 392 | "{{0, 0}, {652, 644}}", 393 | ); 394 | }; 395 | PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = { 396 | BoundsStr = "{{0, 0}, {637, 90}}"; 397 | Rows = ( 398 | 5, 399 | ); 400 | VisibleRectStr = "{{0, 0}, {0, 0}}"; 401 | }; 402 | PBXProjectWorkspaceModule_EditorOpen = true; 403 | PBXProjectWorkspaceModule_EmbeddedNavigatorGroup = { 404 | PBXSplitModuleInNavigatorKey = { 405 | Split0 = { 406 | bookmark = 8FA5D3F906428F0B0002F43D; 407 | history = ( 408 | 8FFDD2B6062B14F0002B039F, 409 | 8FC285D9063E7EC9001F5FFA, 410 | 8FC285DA063E7EC9001F5FFA, 411 | 8FC285DB063E7EC9001F5FFA, 412 | 8F2032580640DF9E006FF1E5, 413 | 8F20328D06411498006FF1E5, 414 | 8F20328F06411498006FF1E5, 415 | ); 416 | prevStack = ( 417 | 8FFD8E5E062A043500B1EC99, 418 | 8FFD8E5F062A043500B1EC99, 419 | 8FFDD27B062AF053002B039F, 420 | 8FFDD27C062AF053002B039F, 421 | 8FFDD2BE062B14F0002B039F, 422 | 8FC285DF063E7EC9001F5FFA, 423 | 8F20328E06411498006FF1E5, 424 | ); 425 | }; 426 | SplitCount = 1; 427 | }; 428 | }; 429 | PBXProjectWorkspaceModule_GeometryKey_Rev15 = { 430 | PBXProjectWorkspaceModule_SGTM_Geometry = { 431 | _collapsingFrameDimension = 0; 432 | _indexOfCollapsedView = 0; 433 | _percentageOfCollapsedView = 0; 434 | sizes = ( 435 | "{{0, 0}, {182, 644}}", 436 | "{{182, 0}, {652, 644}}", 437 | ); 438 | }; 439 | }; 440 | PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {652, 0}}"; 441 | PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 0}, {652, 644}}"; 442 | PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {652, 644}}"; 443 | PBXProjectWorkspaceModule_SGTM = { 444 | PBXBottomSmartGroupGIDs = ( 445 | 1C37FBAC04509CD000000102, 446 | 1C37FAAC04509CD000000102, 447 | 1C08E77C0454961000C914BD, 448 | 1CC0EA4004350EF90044410B, 449 | 1CC0EA4004350EF90041110B, 450 | 1C37FABC05509CD000000102, 451 | 1C37FABC05539CD112110102, 452 | E2644B35053B69B200211256, 453 | 1C37FABC04509CD000100104, 454 | ); 455 | PBXSmartGroupTreeModuleColumnData = { 456 | PBXSmartGroupTreeModuleColumnWidthsKey = ( 457 | 165, 458 | ); 459 | PBXSmartGroupTreeModuleColumnsKey_v4 = ( 460 | MainColumn, 461 | ); 462 | }; 463 | PBXSmartGroupTreeModuleOutlineStateKey_v7 = { 464 | PBXSmartGroupTreeModuleOutlineStateExpansionKey = ( 465 | 08FB7794FE84155DC02AAC07, 466 | 08FB7795FE84155DC02AAC07, 467 | 1C08E77C0454961000C914BD, 468 | ); 469 | PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( 470 | ( 471 | 4, 472 | 0, 473 | ), 474 | ); 475 | PBXSmartGroupTreeModuleOutlineStateVisibleRectKey = "{{0, 0}, {165, 626}}"; 476 | }; 477 | PBXTopSmartGroupGIDs = ( 478 | ); 479 | }; 480 | }; 481 | }; 482 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXRunSessionModule" = { 483 | LauncherConfigVersion = 3; 484 | Runner = { 485 | HorizontalSplitView = { 486 | _collapsingFrameDimension = 0; 487 | _indexOfCollapsedView = 0; 488 | _percentageOfCollapsedView = 0; 489 | isCollapsed = yes; 490 | sizes = ( 491 | "{{0, 0}, {491, 167}}", 492 | "{{0, 176}, {491, 267}}", 493 | ); 494 | }; 495 | VerticalSplitView = { 496 | _collapsingFrameDimension = 0; 497 | _indexOfCollapsedView = 0; 498 | _percentageOfCollapsedView = 0; 499 | isCollapsed = yes; 500 | sizes = ( 501 | "{{0, 0}, {405, 443}}", 502 | "{{414, 0}, {514, 443}}", 503 | ); 504 | }; 505 | }; 506 | }; 507 | PBXWorkspaceGeometries = ( 508 | { 509 | Frame = "{{0, 0}, {834, 644}}"; 510 | PBXProjectWorkspaceModule_GeometryKey_Rev15 = { 511 | }; 512 | RubberWindowFrame = "93 60 834 686 0 0 1152 746 "; 513 | }, 514 | ); 515 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXBuildResultsModule" = { 516 | Frame = "{{0, 0}, {514, 407}}"; 517 | PBXModuleWindowStatusBarHidden = YES; 518 | RubberWindowFrame = "638 91 514 428 0 0 1152 746 "; 519 | }; 520 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXClassBrowserModule" = { 521 | ClassesFrame = "{{0, 0}, {408, 96}}"; 522 | ClassesTreeTableConfiguration = ( 523 | PBXClassNameColumnIdentifier, 524 | 208, 525 | PBXClassBookColumnIdentifier, 526 | 22, 527 | ); 528 | Frame = "{{0, 0}, {655, 476}}"; 529 | MembersFrame = "{{0, 96}, {408, 404}}"; 530 | MembersTreeTableConfiguration = ( 531 | PBXMemberTypeIconColumnIdentifier, 532 | 22, 533 | PBXMemberNameColumnIdentifier, 534 | 216, 535 | PBXMemberTypeColumnIdentifier, 536 | 133, 537 | PBXMemberBookColumnIdentifier, 538 | 22, 539 | ); 540 | RubberWindowFrame = "248 218 655 518 0 0 1152 746 "; 541 | }; 542 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXDebugCLIModule" = { 543 | Frame = "{{0, 0}, {400, 201}}"; 544 | PBXModuleWindowStatusBarHidden = YES; 545 | RubberWindowFrame = "50 718 400 222 0 0 1152 746 "; 546 | }; 547 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXDebugSessionModule" = { 548 | DebugConsoleDrawerSize = "{100, 120}"; 549 | DebugConsoleVisible = None; 550 | DebugConsoleWindowFrame = "{{200, 200}, {500, 300}}"; 551 | DebugSTDIOWindowFrame = "{{200, 200}, {500, 300}}"; 552 | Frame = "{{0, 0}, {745, 422}}"; 553 | RubberWindowFrame = "203 272 745 464 0 0 1152 746 "; 554 | }; 555 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXNavigatorGroup" = { 556 | Frame = "{{0, 0}, {545, 598}}"; 557 | PBXModuleWindowStatusBarHidden = YES; 558 | RubberWindowFrame = "61 80 545 619 0 0 1152 746 "; 559 | }; 560 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXProjectFindModule" = { 561 | Frame = "{{0, 0}, {614, 100}}"; 562 | RubberWindowFrame = "269 535 614 142 0 0 1152 746 "; 563 | }; 564 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXProjectWorkspaceModule" = { 565 | Frame = "{{0, 0}, {834, 644}}"; 566 | PBXProjectWorkspaceModule_GeometryKey_Rev15 = { 567 | }; 568 | RubberWindowFrame = "93 60 834 686 0 0 1152 746 "; 569 | }; 570 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXRunSessionModule" = { 571 | Frame = "{{0, 0}, {745, 443}}"; 572 | PBXModuleWindowStatusBarHidden = YES; 573 | RubberWindowFrame = "386 130 745 464 0 0 1152 746 "; 574 | }; 575 | PBXWorkspaceStateSaveDate = 105363529; 576 | }; 577 | perUserProjectItems = { 578 | 8F2032580640DF9E006FF1E5 = 8F2032580640DF9E006FF1E5; 579 | 8F20328D06411498006FF1E5 = 8F20328D06411498006FF1E5; 580 | 8F20328E06411498006FF1E5 = 8F20328E06411498006FF1E5; 581 | 8F978D550647B95D006098D7 = 8F978D550647B95D006098D7; 582 | 8FA5D407064449360002F43D = 8FA5D407064449360002F43D; 583 | 8FC285D9063E7EC9001F5FFA = 8FC285D9063E7EC9001F5FFA; 584 | 8FC285DA063E7EC9001F5FFA = 8FC285DA063E7EC9001F5FFA; 585 | 8FC285DB063E7EC9001F5FFA = 8FC285DB063E7EC9001F5FFA; 586 | 8FC285DF063E7EC9001F5FFA = 8FC285DF063E7EC9001F5FFA; 587 | 8FFD8E5E062A043500B1EC99 = 8FFD8E5E062A043500B1EC99; 588 | 8FFD8E5F062A043500B1EC99 = 8FFD8E5F062A043500B1EC99; 589 | 8FFDD27B062AF053002B039F = 8FFDD27B062AF053002B039F; 590 | 8FFDD27C062AF053002B039F = 8FFDD27C062AF053002B039F; 591 | 8FFDD2B6062B14F0002B039F = 8FFDD2B6062B14F0002B039F; 592 | 8FFDD2BE062B14F0002B039F = 8FFDD2BE062B14F0002B039F; 593 | }; 594 | sourceControlManager = 8F8279DD0629F1E70081C557; 595 | userBuildSettings = { 596 | }; 597 | }; 598 | 08FB7796FE84155DC02AAC07 = { 599 | uiCtxt = { 600 | sepNavIntBoundsRect = "{{0, 0}, {662, 16239}}"; 601 | sepNavSelRange = "{17960, 0}"; 602 | sepNavVisRect = "{{0, 7863}, {607, 612}}"; 603 | }; 604 | }; 605 | 8DD76FA90486AB0100D96B5E = { 606 | activeExec = 0; 607 | executables = ( 608 | 8F8279D40629F1BC0081C557, 609 | ); 610 | }; 611 | 8F2032580640DF9E006FF1E5 = { 612 | fRef = 8F827A190629F4A80081C557; 613 | isa = PBXTextBookmark; 614 | name = de; 615 | rLen = 2; 616 | rLoc = 15; 617 | rType = 0; 618 | vrLen = 1072; 619 | vrLoc = 0; 620 | }; 621 | 8F2032840640DFA3006FF1E5 = { 622 | uiCtxt = { 623 | sepNavIntBoundsRect = "{{0, 0}, {607, 1511}}"; 624 | sepNavSelRange = "{2601, 31}"; 625 | sepNavVisRect = "{{0, 891}, {607, 612}}"; 626 | }; 627 | }; 628 | 8F20328D06411498006FF1E5 = { 629 | fRef = 8F2032840640DFA3006FF1E5; 630 | isa = PBXTextBookmark; 631 | name = " glutInit(&argc, argv); \n\n"; 632 | rLen = 31; 633 | rLoc = 2601; 634 | rType = 0; 635 | vrLen = 1010; 636 | vrLoc = 1964; 637 | }; 638 | 8F20328E06411498006FF1E5 = { 639 | fRef = 8F2032840640DFA3006FF1E5; 640 | isa = PBXTextBookmark; 641 | name = " glutInit(&argc, argv); \n\n"; 642 | rLen = 31; 643 | rLoc = 2601; 644 | rType = 0; 645 | vrLen = 1010; 646 | vrLoc = 1964; 647 | }; 648 | 8F8279D40629F1BC0081C557 = { 649 | activeArgIndex = 2147483647; 650 | activeArgIndices = ( 651 | ); 652 | argumentStrings = ( 653 | ); 654 | configStateDict = { 655 | }; 656 | debuggerPlugin = GDBDebugging; 657 | dylibVariantSuffix = ""; 658 | enableDebugStr = 1; 659 | environmentEntries = ( 660 | ); 661 | isa = PBXExecutable; 662 | name = labo7; 663 | shlibInfoDictList = ( 664 | ); 665 | sourceDirectories = ( 666 | ); 667 | }; 668 | 8F8279DD0629F1E70081C557 = { 669 | isa = PBXSourceControlManager; 670 | scmConfiguration = { 671 | }; 672 | scmType = scm.cvs; 673 | }; 674 | 8F8279DE0629F1E70081C557 = { 675 | indexTemplatePath = ""; 676 | isa = PBXCodeSenseManager; 677 | usesDefaults = 1; 678 | wantsCodeCompletion = 1; 679 | wantsCodeCompletionAutoPopup = 0; 680 | wantsCodeCompletionAutoSuggestions = 0; 681 | wantsCodeCompletionCaseSensitivity = 1; 682 | wantsCodeCompletionOnlyMatchingItems = 1; 683 | wantsCodeCompletionParametersIncluded = 1; 684 | wantsCodeCompletionPlaceholdersInserted = 1; 685 | wantsCodeCompletionTabCompletes = 1; 686 | wantsIndex = 1; 687 | }; 688 | 8F827A190629F4A80081C557 = { 689 | uiCtxt = { 690 | sepNavIntBoundsRect = "{{0, 0}, {607, 2687}}"; 691 | sepNavSelRange = "{15, 2}"; 692 | sepNavVisRect = "{{0, 0}, {607, 612}}"; 693 | sepNavWindowFrame = "{{15, 183}, {750, 558}}"; 694 | }; 695 | }; 696 | 8F978D550647B95D006098D7 = { 697 | fRef = 08FB7796FE84155DC02AAC07; 698 | isa = PBXTextBookmark; 699 | name = "stationOrbitale.c: 582"; 700 | rLen = 0; 701 | rLoc = 17960; 702 | rType = 0; 703 | vrLen = 1748; 704 | vrLoc = 17120; 705 | }; 706 | 8FA5D407064449360002F43D = { 707 | fRef = 08FB7796FE84155DC02AAC07; 708 | isa = PBXTextBookmark; 709 | name = "stationOrbitale.c: 581"; 710 | rLen = 0; 711 | rLoc = 17941; 712 | rType = 0; 713 | vrLen = 1179; 714 | vrLoc = 11735; 715 | }; 716 | 8FC285D9063E7EC9001F5FFA = { 717 | fRef = 8FFDD2B2062B13C2002B039F; 718 | isa = PBXTextBookmark; 719 | name = glBegin; 720 | rLen = 7; 721 | rLoc = 862; 722 | rType = 0; 723 | vrLen = 898; 724 | vrLoc = 769; 725 | }; 726 | 8FC285DA063E7EC9001F5FFA = { 727 | fRef = 8FC285E3063E7ECB001F5FFA; 728 | isa = PBXTextBookmark; 729 | name = "(null): 2098"; 730 | rLen = 0; 731 | rLoc = 94372; 732 | rType = 0; 733 | vrLen = 2530; 734 | vrLoc = 93600; 735 | }; 736 | 8FC285DB063E7EC9001F5FFA = { 737 | fRef = 8FFDD272062ADF33002B039F; 738 | isa = PBXTextBookmark; 739 | name = "lumiere.c: 166"; 740 | rLen = 0; 741 | rLoc = 4568; 742 | rType = 0; 743 | vrLen = 1051; 744 | vrLoc = 3802; 745 | }; 746 | 8FC285DF063E7EC9001F5FFA = { 747 | fRef = 8FC285E2063E7ECB001F5FFA; 748 | isa = PBXTextBookmark; 749 | name = "(null): 2098"; 750 | rLen = 0; 751 | rLoc = 94372; 752 | rType = 0; 753 | vrLen = 2530; 754 | vrLoc = 93600; 755 | }; 756 | 8FC285E2063E7ECB001F5FFA = { 757 | isa = PBXFileReference; 758 | lastKnownFileType = sourcecode.c.h; 759 | name = gl.h; 760 | path = /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h; 761 | refType = 0; 762 | sourceTree = ""; 763 | }; 764 | 8FC285E3063E7ECB001F5FFA = { 765 | isa = PBXFileReference; 766 | lastKnownFileType = sourcecode.c.h; 767 | name = gl.h; 768 | path = /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h; 769 | refType = 0; 770 | sourceTree = ""; 771 | }; 772 | 8FFD8E5E062A043500B1EC99 = { 773 | fRef = 08FB7796FE84155DC02AAC07; 774 | isa = PBXTextBookmark; 775 | name = "stationOrbitale.c: 841"; 776 | rLen = 0; 777 | rLoc = 32719; 778 | rType = 0; 779 | vrLen = 1017; 780 | vrLoc = 24928; 781 | }; 782 | 8FFD8E5F062A043500B1EC99 = { 783 | fRef = 8F827A190629F4A80081C557; 784 | isa = PBXTextBookmark; 785 | name = RevetementSpatial; 786 | rLen = 17; 787 | rLoc = 51; 788 | rType = 0; 789 | vrLen = 1029; 790 | vrLoc = 0; 791 | }; 792 | 8FFDD270062ADD96002B039F = { 793 | uiCtxt = { 794 | sepNavIntBoundsRect = "{{0, 0}, {607, 2702}}"; 795 | sepNavSelRange = "{2410, 0}"; 796 | sepNavVisRect = "{{0, 0}, {607, 612}}"; 797 | }; 798 | }; 799 | 8FFDD272062ADF33002B039F = { 800 | uiCtxt = { 801 | sepNavIntBoundsRect = "{{0, 0}, {607, 2548}}"; 802 | sepNavSelRange = "{4568, 0}"; 803 | sepNavVisRect = "{{0, 1922}, {607, 612}}"; 804 | }; 805 | }; 806 | 8FFDD27B062AF053002B039F = { 807 | fRef = 8FFDD270062ADD96002B039F; 808 | isa = PBXTextBookmark; 809 | name = "ballade.c: 105"; 810 | rLen = 0; 811 | rLoc = 2410; 812 | rType = 0; 813 | vrLen = 926; 814 | vrLoc = 2261; 815 | }; 816 | 8FFDD27C062AF053002B039F = { 817 | fRef = 8FFDD272062ADF33002B039F; 818 | isa = PBXTextBookmark; 819 | name = "lumiere.c: 12"; 820 | rLen = 0; 821 | rLoc = 216; 822 | rType = 0; 823 | vrLen = 1427; 824 | vrLoc = 2629; 825 | }; 826 | 8FFDD2B2062B13C2002B039F = { 827 | uiCtxt = { 828 | sepNavIntBoundsRect = "{{0, 0}, {607, 1497}}"; 829 | sepNavSelRange = "{862, 7}"; 830 | sepNavVisRect = "{{0, 478}, {607, 612}}"; 831 | }; 832 | }; 833 | 8FFDD2B6062B14F0002B039F = { 834 | fRef = 8FFDD270062ADD96002B039F; 835 | isa = PBXTextBookmark; 836 | name = "ballade.c: 105"; 837 | rLen = 0; 838 | rLoc = 2410; 839 | rType = 0; 840 | vrLen = 1196; 841 | vrLoc = 0; 842 | }; 843 | 8FFDD2BE062B14F0002B039F = { 844 | fRef = 8FFDD2B2062B13C2002B039F; 845 | isa = PBXTextBookmark; 846 | name = " glEnable (GL_BLEND);\n glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);"; 847 | rLen = 80; 848 | rLoc = 352; 849 | rType = 0; 850 | vrLen = 1014; 851 | vrLoc = 1302; 852 | }; 853 | } 854 | -------------------------------------------------------------------------------- /SpaceDog/src_xcode/spaceDog.xcode/nst.pbxuser: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | 0307E1400647FF55006C4C69 = { 4 | activeArgIndex = 2147483647; 5 | activeArgIndices = ( 6 | ); 7 | argumentStrings = ( 8 | ); 9 | configStateDict = { 10 | }; 11 | debuggerPlugin = GDBDebugging; 12 | dylibVariantSuffix = ""; 13 | enableDebugStr = 1; 14 | environmentEntries = ( 15 | ); 16 | isa = PBXExecutable; 17 | name = spaceDog; 18 | shlibInfoDictList = ( 19 | ); 20 | sourceDirectories = ( 21 | ); 22 | }; 23 | 0307E1490647FF60006C4C69 = { 24 | isa = PBXSourceControlManager; 25 | scmConfiguration = { 26 | }; 27 | scmType = scm.cvs; 28 | }; 29 | 0307E14A0647FF60006C4C69 = { 30 | indexTemplatePath = ""; 31 | isa = PBXCodeSenseManager; 32 | usesDefaults = 0; 33 | wantsCodeCompletion = 1; 34 | wantsCodeCompletionAutoPopup = 1; 35 | wantsCodeCompletionAutoSuggestions = 1; 36 | wantsCodeCompletionCaseSensitivity = 1; 37 | wantsCodeCompletionOnlyMatchingItems = 1; 38 | wantsCodeCompletionParametersIncluded = 1; 39 | wantsCodeCompletionPlaceholdersInserted = 1; 40 | wantsCodeCompletionTabCompletes = 1; 41 | wantsIndex = 1; 42 | }; 43 | 03218240069C31B300F475DD = { 44 | fRef = 03A516E50697AAAF00A7509F; 45 | isa = PBXTextBookmark; 46 | name = "jmorecfg.h: 9"; 47 | rLen = 0; 48 | rLoc = 319; 49 | rType = 0; 50 | vrLen = 1879; 51 | vrLoc = 0; 52 | }; 53 | 0364BAF0066F403F00B2F0D8 = { 54 | fRef = 0364BAF4066F405D00B2F0D8; 55 | isa = PBXTextBookmark; 56 | name = "(null): 1"; 57 | rLen = 0; 58 | rLoc = 0; 59 | rType = 0; 60 | vrLen = 1643; 61 | vrLoc = 0; 62 | }; 63 | 0364BAF4066F405D00B2F0D8 = { 64 | isa = PBXFileReference; 65 | lastKnownFileType = sourcecode.c.h; 66 | name = glut.h; 67 | path = /System/Library/Frameworks/GLUT.framework/Versions/A/Headers/glut.h; 68 | refType = 0; 69 | sourceTree = ""; 70 | }; 71 | 0364BAFA066F420300B2F0D8 = { 72 | fRef = 0364BB01066F420E00B2F0D8; 73 | isa = PBXTextBookmark; 74 | name = "(null): 44"; 75 | rLen = 0; 76 | rLoc = 1326; 77 | rType = 0; 78 | vrLen = 1643; 79 | vrLoc = 0; 80 | }; 81 | 0364BB01066F420E00B2F0D8 = { 82 | isa = PBXFileReference; 83 | lastKnownFileType = sourcecode.c.h; 84 | name = glut.h; 85 | path = /System/Library/Frameworks/GLUT.framework/Versions/A/Headers/glut.h; 86 | refType = 0; 87 | sourceTree = ""; 88 | }; 89 | 036ED3B5064D777B00008B33 = { 90 | fRef = 08FB7796FE84155DC02AAC07; 91 | isa = PBXTextBookmark; 92 | name = "stationOrbitale.c: 24"; 93 | rLen = 0; 94 | rLoc = 70; 95 | rType = 0; 96 | vrLen = 1016; 97 | vrLoc = 844; 98 | }; 99 | 036ED3B7064D777B00008B33 = { 100 | fRef = 8F827A190629F4A80081C557; 101 | isa = PBXTextBookmark; 102 | name = "materials.h: 1"; 103 | rLen = 0; 104 | rLoc = 3; 105 | rType = 0; 106 | vrLen = 899; 107 | vrLoc = 0; 108 | }; 109 | 036ED401064D94C100008B33 = { 110 | isa = PBXFileReference; 111 | lastKnownFileType = sourcecode.c.c; 112 | name = stationOrbitale.c; 113 | path = /Users/nst/Documents/eivd/Infographie/Labo_7/labo7/stationOrbitale.c; 114 | refType = 0; 115 | sourceTree = ""; 116 | }; 117 | 0389277606987446009AEC82 = { 118 | fRef = 03A516E30697AAAF00A7509F; 119 | isa = PBXTextBookmark; 120 | name = "jpeglib.h: 18"; 121 | rLen = 0; 122 | rLoc = 491; 123 | rType = 0; 124 | vrLen = 1771; 125 | vrLoc = 0; 126 | }; 127 | 039085930663CDEF00FB7953 = { 128 | fRef = 036ED401064D94C100008B33; 129 | isa = PBXTextBookmark; 130 | name = " } \n"; 131 | rLen = 13; 132 | rLoc = 22847; 133 | rType = 0; 134 | vrLen = 1458; 135 | vrLoc = 22042; 136 | }; 137 | 039085960663CDEF00FB7953 = { 138 | fRef = 036ED401064D94C100008B33; 139 | isa = PBXTextBookmark; 140 | name = " } \n"; 141 | rLen = 13; 142 | rLoc = 22847; 143 | rType = 0; 144 | vrLen = 1458; 145 | vrLoc = 22042; 146 | }; 147 | 0390859C0663D44100FB7953 = { 148 | fRef = 039085AB0663D44200FB7953; 149 | isa = PBXTextBookmark; 150 | name = "(null): 1"; 151 | rLen = 0; 152 | rLoc = 0; 153 | rType = 0; 154 | vrLen = 1579; 155 | vrLoc = 3075; 156 | }; 157 | 039085A70663D44100FB7953 = { 158 | fRef = 039085AC0663D44200FB7953; 159 | isa = PBXTextBookmark; 160 | name = "(null): 1"; 161 | rLen = 0; 162 | rLoc = 0; 163 | rType = 0; 164 | vrLen = 1579; 165 | vrLoc = 3075; 166 | }; 167 | 039085AB0663D44200FB7953 = { 168 | isa = PBXFileReference; 169 | lastKnownFileType = sourcecode.c.c; 170 | name = alpha3D.c; 171 | path = "/Users/nst/Documents/eivd/Infographie/Exemples_OpenGL/Chap 6/alpha3D.c"; 172 | refType = 0; 173 | sourceTree = ""; 174 | }; 175 | 039085AC0663D44200FB7953 = { 176 | isa = PBXFileReference; 177 | lastKnownFileType = sourcecode.c.c; 178 | name = alpha3D.c; 179 | path = "/Users/nst/Documents/eivd/Infographie/Exemples_OpenGL/Chap 6/alpha3D.c"; 180 | refType = 0; 181 | sourceTree = ""; 182 | }; 183 | 03A42E91069D9A2E00BFC1F2 = { 184 | fRef = 03A516E20697AAAF00A7509F; 185 | isa = PBXTextBookmark; 186 | name = "jerror.h: 1"; 187 | rLen = 0; 188 | rLoc = 0; 189 | rType = 0; 190 | vrLen = 1912; 191 | vrLoc = 0; 192 | }; 193 | 03A42E92069D9A2E00BFC1F2 = { 194 | fRef = 8F827A190629F4A80081C557; 195 | isa = PBXTextBookmark; 196 | name = "materials.h: 190"; 197 | rLen = 0; 198 | rLoc = 5221; 199 | rType = 0; 200 | vrLen = 1241; 201 | vrLoc = 0; 202 | }; 203 | 03A42E93069D9A2E00BFC1F2 = { 204 | fRef = 03F10871064DC1F000E32D07; 205 | isa = PBXTextBookmark; 206 | name = "chien.h: 7"; 207 | rLen = 0; 208 | rLoc = 143; 209 | rType = 0; 210 | vrLen = 2483; 211 | vrLoc = 0; 212 | }; 213 | 03A516E20697AAAF00A7509F = { 214 | uiCtxt = { 215 | sepNavIntBoundsRect = "{{0, 0}, {729, 4087}}"; 216 | sepNavSelRange = "{0, 0}"; 217 | sepNavVisRect = "{{0, 0}, {729, 714}}"; 218 | }; 219 | }; 220 | 03A516E30697AAAF00A7509F = { 221 | uiCtxt = { 222 | sepNavIntBoundsRect = "{{0, 0}, {729, 15469}}"; 223 | sepNavSelRange = "{491, 0}"; 224 | sepNavVisRect = "{{0, 0}, {729, 714}}"; 225 | sepNavWindowFrame = "{{38, 248}, {750, 558}}"; 226 | }; 227 | }; 228 | 03A516E40697AAAF00A7509F = { 229 | uiCtxt = { 230 | sepNavIntBoundsRect = "{{0, 0}, {729, 643}}"; 231 | sepNavSelRange = "{0, 0}"; 232 | sepNavVisRect = "{{0, 0}, {729, 340}}"; 233 | }; 234 | }; 235 | 03A516E50697AAAF00A7509F = { 236 | uiCtxt = { 237 | sepNavIntBoundsRect = "{{0, 0}, {729, 5095}}"; 238 | sepNavSelRange = "{319, 0}"; 239 | sepNavVisRect = "{{0, 0}, {729, 714}}"; 240 | }; 241 | }; 242 | 03A518690697C0CE00A7509F = { 243 | fRef = 03A516E20697AAAF00A7509F; 244 | isa = PBXTextBookmark; 245 | name = "jerror.h: 1"; 246 | rLen = 0; 247 | rLoc = 0; 248 | rType = 0; 249 | vrLen = 891; 250 | vrLoc = 0; 251 | }; 252 | 03A5186F0697C0D100A7509F = { 253 | fRef = 03A516E30697AAAF00A7509F; 254 | isa = PBXTextBookmark; 255 | name = "jpeglib.h: 1"; 256 | rLen = 0; 257 | rLoc = 0; 258 | rType = 0; 259 | vrLen = 767; 260 | vrLoc = 0; 261 | }; 262 | 03A518980697C10700A7509F = { 263 | fRef = 03A516E40697AAAF00A7509F; 264 | isa = PBXTextBookmark; 265 | name = "jconfig.h: 1"; 266 | rLen = 0; 267 | rLoc = 0; 268 | rType = 0; 269 | vrLen = 699; 270 | vrLoc = 0; 271 | }; 272 | 03A5189A0697C10700A7509F = { 273 | fRef = 03A516E40697AAAF00A7509F; 274 | isa = PBXTextBookmark; 275 | name = "jconfig.h: 1"; 276 | rLen = 0; 277 | rLoc = 0; 278 | rType = 0; 279 | vrLen = 699; 280 | vrLoc = 0; 281 | }; 282 | 03A518A00697C10D00A7509F = { 283 | fRef = 03A516E50697AAAF00A7509F; 284 | isa = PBXTextBookmark; 285 | name = "jmorecfg.h: 1"; 286 | rLen = 0; 287 | rLoc = 0; 288 | rType = 0; 289 | vrLen = 808; 290 | vrLoc = 0; 291 | }; 292 | 03BB3DFD069D97AE00B731DA = { 293 | exec = 0307E1400647FF55006C4C69; 294 | isa = PBXExecutableBookmark; 295 | }; 296 | 03BB3E08069D97B300B731DA = { 297 | activeArgIndex = 2147483647; 298 | activeArgIndices = ( 299 | ); 300 | argumentStrings = ( 301 | ); 302 | configStateDict = { 303 | }; 304 | debuggerPlugin = GDBDebugging; 305 | dylibVariantSuffix = ""; 306 | enableDebugStr = 1; 307 | environmentEntries = ( 308 | ); 309 | isa = PBXExecutable; 310 | name = spaceDog; 311 | shlibInfoDictList = ( 312 | ); 313 | sourceDirectories = ( 314 | ); 315 | }; 316 | 03BB3E09069D980400B731DA = { 317 | exec = 03BB3E08069D97B300B731DA; 318 | isa = PBXExecutableBookmark; 319 | }; 320 | 03BB3E0A069D980400B731DA = { 321 | exec = 03BB3E08069D97B300B731DA; 322 | isa = PBXExecutableBookmark; 323 | }; 324 | 03D905C3069D9A4600E9B2E6 = { 325 | activeArgIndex = 2147483647; 326 | activeArgIndices = ( 327 | ); 328 | argumentStrings = ( 329 | ); 330 | configStateDict = { 331 | }; 332 | debuggerPlugin = GDBDebugging; 333 | dylibVariantSuffix = ""; 334 | enableDebugStr = 1; 335 | environmentEntries = ( 336 | ); 337 | isa = PBXExecutable; 338 | name = labo7; 339 | shlibInfoDictList = ( 340 | ); 341 | sourceDirectories = ( 342 | ); 343 | }; 344 | 03D905C4069D9A5F00E9B2E6 = { 345 | fRef = 08FB7796FE84155DC02AAC07; 346 | isa = PBXTextBookmark; 347 | name = "spaceDog.c: 17"; 348 | rLen = 0; 349 | rLoc = 460; 350 | rType = 0; 351 | vrLen = 1479; 352 | vrLoc = 0; 353 | }; 354 | 03F10871064DC1F000E32D07 = { 355 | uiCtxt = { 356 | sepNavIntBoundsRect = "{{0, 0}, {729, 18214}}"; 357 | sepNavSelRange = "{143, 0}"; 358 | sepNavVisRect = "{{0, 0}, {729, 714}}"; 359 | sepNavWindowFrame = "{{15, 269}, {750, 558}}"; 360 | }; 361 | }; 362 | 03F1087C064DC3BB00E32D07 = { 363 | fRef = 03F10871064DC1F000E32D07; 364 | isa = PBXTextBookmark; 365 | name = "chien.h: 1"; 366 | rLen = 0; 367 | rLoc = 0; 368 | rType = 0; 369 | vrLen = 2910; 370 | vrLoc = 0; 371 | }; 372 | 03FC269F069D9E3D00569520 = { 373 | fRef = 08FB7796FE84155DC02AAC07; 374 | isa = PBXTextBookmark; 375 | name = "spaceDog.c: 5"; 376 | rLen = 0; 377 | rLoc = 103; 378 | rType = 0; 379 | vrLen = 1479; 380 | vrLoc = 0; 381 | }; 382 | 08FB7793FE84155DC02AAC07 = { 383 | activeBuildStyle = 014CEA530018CE5811CA2923; 384 | activeExecutable = 03D905C3069D9A4600E9B2E6; 385 | activeTarget = 8DD76FA90486AB0100D96B5E; 386 | addToTargets = ( 387 | 8DD76FA90486AB0100D96B5E, 388 | ); 389 | breakpoints = ( 390 | ); 391 | codeSenseManager = 0307E14A0647FF60006C4C69; 392 | executables = ( 393 | 03D905C3069D9A4600E9B2E6, 394 | ); 395 | perUserDictionary = { 396 | PBXConfiguration.PBXFileTableDataSource3.PBXErrorsWarningsDataSource = { 397 | PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; 398 | PBXFileTableDataSourceColumnSortingKey = PBXErrorsWarningsDataSource_LocationID; 399 | PBXFileTableDataSourceColumnWidthsKey = ( 400 | 20, 401 | 469.8799, 402 | 257.2085, 403 | ); 404 | PBXFileTableDataSourceColumnsKey = ( 405 | PBXErrorsWarningsDataSource_TypeID, 406 | PBXErrorsWarningsDataSource_MessageID, 407 | PBXErrorsWarningsDataSource_LocationID, 408 | ); 409 | }; 410 | PBXConfiguration.PBXFileTableDataSource3.PBXExecutablesDataSource = { 411 | PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; 412 | PBXFileTableDataSourceColumnSortingKey = PBXExecutablesDataSource_NameID; 413 | PBXFileTableDataSourceColumnWidthsKey = ( 414 | 22, 415 | 728.7974, 416 | ); 417 | PBXFileTableDataSourceColumnsKey = ( 418 | PBXExecutablesDataSource_ActiveFlagID, 419 | PBXExecutablesDataSource_NameID, 420 | ); 421 | }; 422 | PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = { 423 | PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; 424 | PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID; 425 | PBXFileTableDataSourceColumnWidthsKey = ( 426 | 20, 427 | 495, 428 | 20, 429 | 90, 430 | 43, 431 | 43, 432 | 20, 433 | ); 434 | PBXFileTableDataSourceColumnsKey = ( 435 | PBXFileDataSource_FiletypeID, 436 | PBXFileDataSource_Filename_ColumnID, 437 | PBXFileDataSource_Built_ColumnID, 438 | PBXFileDataSource_ObjectSize_ColumnID, 439 | PBXFileDataSource_Errors_ColumnID, 440 | PBXFileDataSource_Warnings_ColumnID, 441 | PBXFileDataSource_Target_ColumnID, 442 | ); 443 | }; 444 | PBXConfiguration.PBXFileTableDataSource3.PBXSymbolsDataSource = { 445 | PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; 446 | PBXFileTableDataSourceColumnSortingKey = PBXSymbolsDataSource_SymbolNameID; 447 | PBXFileTableDataSourceColumnWidthsKey = ( 448 | 16, 449 | 231.8008, 450 | 259.0356, 451 | 236.2085, 452 | ); 453 | PBXFileTableDataSourceColumnsKey = ( 454 | PBXSymbolsDataSource_SymbolTypeIconID, 455 | PBXSymbolsDataSource_SymbolNameID, 456 | PBXSymbolsDataSource_SymbolTypeID, 457 | PBXSymbolsDataSource_ReferenceNameID, 458 | ); 459 | }; 460 | PBXConfiguration.PBXTargetDataSource.PBXTargetDataSource = { 461 | PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; 462 | PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID; 463 | PBXFileTableDataSourceColumnWidthsKey = ( 464 | 20, 465 | 421, 466 | 92, 467 | 20, 468 | 92, 469 | 43, 470 | 43, 471 | ); 472 | PBXFileTableDataSourceColumnsKey = ( 473 | PBXFileDataSource_FiletypeID, 474 | PBXFileDataSource_Filename_ColumnID, 475 | PBXTargetDataSource_PrimaryAttribute, 476 | PBXFileDataSource_Built_ColumnID, 477 | PBXFileDataSource_ObjectSize_ColumnID, 478 | PBXFileDataSource_Errors_ColumnID, 479 | PBXFileDataSource_Warnings_ColumnID, 480 | ); 481 | }; 482 | PBXPerProjectTemplateStateSaveDate = 110992941; 483 | PBXPrepackagedSmartGroups_v2 = ( 484 | { 485 | PBXTransientLocationAtTop = bottom; 486 | absolutePathToBundle = ""; 487 | activationKey = OldTargetSmartGroup; 488 | clz = PBXTargetSmartGroup; 489 | description = "Displays all targets of the project."; 490 | globalID = 1C37FABC04509CD000000102; 491 | name = Targets; 492 | preferences = { 493 | image = Targets; 494 | }; 495 | }, 496 | { 497 | PBXTransientLocationAtTop = bottom; 498 | absolutePathToBundle = ""; 499 | clz = PBXTargetSmartGroup2; 500 | description = "Displays all targets of the project as well as nested build phases."; 501 | globalID = 1C37FBAC04509CD000000102; 502 | name = Targets; 503 | preferences = { 504 | image = Targets; 505 | }; 506 | }, 507 | { 508 | PBXTransientLocationAtTop = bottom; 509 | absolutePathToBundle = ""; 510 | clz = PBXExecutablesSmartGroup; 511 | description = "Displays all executables of the project."; 512 | globalID = 1C37FAAC04509CD000000102; 513 | name = Executables; 514 | preferences = { 515 | image = Executable; 516 | }; 517 | }, 518 | { 519 | " PBXTransientLocationAtTop " = bottom; 520 | absolutePathToBundle = ""; 521 | clz = PBXErrorsWarningsSmartGroup; 522 | description = "Displays files with errors or warnings."; 523 | globalID = 1C08E77C0454961000C914BD; 524 | name = "Errors and Warnings"; 525 | preferences = { 526 | fnmatch = ""; 527 | image = WarningsErrors; 528 | recursive = 1; 529 | regex = ""; 530 | root = ""; 531 | }; 532 | }, 533 | { 534 | PBXTransientLocationAtTop = bottom; 535 | absolutePathToBundle = ""; 536 | clz = PBXFilenameSmartGroup; 537 | description = "Filters items in a given group (potentially recursively) based on matching the name with the regular expression of the filter."; 538 | globalID = 1CC0EA4004350EF90044410B; 539 | name = "Implementation Files"; 540 | preferences = { 541 | canSave = 1; 542 | fnmatch = ""; 543 | image = SmartFolder; 544 | isLeaf = 0; 545 | recursive = 1; 546 | regex = "?*\\.[mcMC]"; 547 | root = ""; 548 | }; 549 | }, 550 | { 551 | PBXTransientLocationAtTop = bottom; 552 | absolutePathToBundle = ""; 553 | clz = PBXFilenameSmartGroup; 554 | description = "This group displays Interface Builder NIB Files."; 555 | globalID = 1CC0EA4004350EF90041110B; 556 | name = "NIB Files"; 557 | preferences = { 558 | canSave = 1; 559 | fnmatch = "*.nib"; 560 | image = SmartFolder; 561 | isLeaf = 0; 562 | recursive = 1; 563 | regex = ""; 564 | root = ""; 565 | }; 566 | }, 567 | { 568 | PBXTransientLocationAtTop = no; 569 | absolutePathToBundle = ""; 570 | clz = PBXFindSmartGroup; 571 | description = "Displays Find Results."; 572 | globalID = 1C37FABC05509CD000000102; 573 | name = "Find Results"; 574 | preferences = { 575 | image = spyglass; 576 | }; 577 | }, 578 | { 579 | PBXTransientLocationAtTop = no; 580 | absolutePathToBundle = ""; 581 | clz = PBXBookmarksSmartGroup; 582 | description = "Displays Project Bookmarks."; 583 | globalID = 1C37FABC05539CD112110102; 584 | name = Bookmarks; 585 | preferences = { 586 | image = Bookmarks; 587 | }; 588 | }, 589 | { 590 | PBXTransientLocationAtTop = bottom; 591 | absolutePathToBundle = ""; 592 | clz = XCSCMSmartGroup; 593 | description = "Displays files with interesting SCM status."; 594 | globalID = E2644B35053B69B200211256; 595 | name = SCM; 596 | preferences = { 597 | image = PBXRepository; 598 | isLeaf = 0; 599 | }; 600 | }, 601 | { 602 | PBXTransientLocationAtTop = bottom; 603 | absolutePathToBundle = ""; 604 | clz = PBXSymbolsSmartGroup; 605 | description = "Displays all symbols for the project."; 606 | globalID = 1C37FABC04509CD000100104; 607 | name = "Project Symbols"; 608 | preferences = { 609 | image = ProjectSymbols; 610 | isLeaf = 1; 611 | }; 612 | }, 613 | { 614 | PBXTransientLocationAtTop = bottom; 615 | absolutePathToBundle = ""; 616 | clz = PBXFilenameSmartGroup; 617 | description = "Filters items in a given group (potentially recursively) based on matching the name with the regular expression of the filter."; 618 | globalID = PBXTemplateMarker; 619 | name = "Simple Filter SmartGroup"; 620 | preferences = { 621 | canSave = 1; 622 | fnmatch = "*.nib"; 623 | image = SmartFolder; 624 | isLeaf = 0; 625 | recursive = 1; 626 | regex = ""; 627 | root = ""; 628 | }; 629 | }, 630 | { 631 | PBXTransientLocationAtTop = bottom; 632 | absolutePathToBundle = ""; 633 | clz = PBXFilenameSmartGroup; 634 | description = "Filters items in a given group (potentially recursively) based on matching the name with the regular expression of the filter."; 635 | globalID = PBXTemplateMarker; 636 | name = "Simple Regular Expression SmartGroup"; 637 | preferences = { 638 | canSave = 1; 639 | fnmatch = ""; 640 | image = SmartFolder; 641 | isLeaf = 0; 642 | recursive = 1; 643 | regex = "?*\\.[mcMC]"; 644 | root = ""; 645 | }; 646 | }, 647 | ); 648 | PBXWorkspaceContents = ( 649 | { 650 | PBXProjectWorkspaceModule_StateKey_Rev39 = { 651 | PBXProjectWorkspaceModule_DEGV_Geometry = { 652 | _collapsingFrameDimension = 0; 653 | _indexOfCollapsedView = 0; 654 | _percentageOfCollapsedView = 0; 655 | isCollapsed = yes; 656 | sizes = ( 657 | "{{0, 0}, {774, 0}}", 658 | "{{0, 0}, {774, 746}}", 659 | ); 660 | }; 661 | PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = { 662 | BoundsStr = "{{0, 0}, {759, 30}}"; 663 | Rows = ( 664 | 0, 665 | ); 666 | VisibleRectStr = "{{0, 0}, {0, 0}}"; 667 | }; 668 | PBXProjectWorkspaceModule_EditorOpen = true; 669 | PBXProjectWorkspaceModule_EmbeddedNavigatorGroup = { 670 | PBXSplitModuleInNavigatorKey = { 671 | Split0 = { 672 | bookmark = 03FC269F069D9E3D00569520; 673 | history = ( 674 | 039085930663CDEF00FB7953, 675 | 0390859C0663D44100FB7953, 676 | 0364BAFA066F420300B2F0D8, 677 | 03A518980697C10700A7509F, 678 | 0389277606987446009AEC82, 679 | 03218240069C31B300F475DD, 680 | 03BB3DFD069D97AE00B731DA, 681 | 03BB3E09069D980400B731DA, 682 | 03A42E91069D9A2E00BFC1F2, 683 | 03A42E92069D9A2E00BFC1F2, 684 | 03A42E93069D9A2E00BFC1F2, 685 | 03D905C4069D9A5F00E9B2E6, 686 | ); 687 | prevStack = ( 688 | 036ED3B5064D777B00008B33, 689 | 036ED3B7064D777B00008B33, 690 | 03F1087C064DC3BB00E32D07, 691 | 039085960663CDEF00FB7953, 692 | 039085A70663D44100FB7953, 693 | 0364BAF0066F403F00B2F0D8, 694 | 03A518690697C0CE00A7509F, 695 | 03A5186F0697C0D100A7509F, 696 | 03A5189A0697C10700A7509F, 697 | 03A518A00697C10D00A7509F, 698 | 03BB3E0A069D980400B731DA, 699 | ); 700 | }; 701 | SplitCount = 1; 702 | }; 703 | }; 704 | PBXProjectWorkspaceModule_GeometryKey_Rev15 = { 705 | PBXProjectWorkspaceModule_SGTM_Geometry = { 706 | _collapsingFrameDimension = 0; 707 | _indexOfCollapsedView = 0; 708 | _percentageOfCollapsedView = 0; 709 | sizes = ( 710 | "{{0, 0}, {182, 746}}", 711 | "{{182, 0}, {774, 746}}", 712 | ); 713 | }; 714 | }; 715 | PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {774, 0}}"; 716 | PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 0}, {774, 746}}"; 717 | PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {774, 746}}"; 718 | PBXProjectWorkspaceModule_SGTM = { 719 | PBXBottomSmartGroupGIDs = ( 720 | 1C37FBAC04509CD000000102, 721 | 1C37FAAC04509CD000000102, 722 | 1C08E77C0454961000C914BD, 723 | 1CC0EA4004350EF90044410B, 724 | 1CC0EA4004350EF90041110B, 725 | 1C37FABC05509CD000000102, 726 | 1C37FABC05539CD112110102, 727 | E2644B35053B69B200211256, 728 | 1C37FABC04509CD000100104, 729 | ); 730 | PBXSmartGroupTreeModuleColumnData = { 731 | PBXSmartGroupTreeModuleColumnWidthsKey = ( 732 | 165, 733 | ); 734 | PBXSmartGroupTreeModuleColumnsKey_v4 = ( 735 | MainColumn, 736 | ); 737 | }; 738 | PBXSmartGroupTreeModuleOutlineStateKey_v7 = { 739 | PBXSmartGroupTreeModuleOutlineStateExpansionKey = ( 740 | 08FB7794FE84155DC02AAC07, 741 | 08FB7795FE84155DC02AAC07, 742 | C6A0FF2B0290797F04C91782, 743 | 1AB674ADFE9D54B511CA2CBB, 744 | 1C37FAAC04509CD000000102, 745 | ); 746 | PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( 747 | ( 748 | 19, 749 | ), 750 | ); 751 | PBXSmartGroupTreeModuleOutlineStateVisibleRectKey = "{{0, 0}, {165, 728}}"; 752 | }; 753 | PBXTopSmartGroupGIDs = ( 754 | ); 755 | }; 756 | }; 757 | }, 758 | ); 759 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXBuildResultsModule" = { 760 | }; 761 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXDebugCLIModule" = { 762 | }; 763 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXDebugSessionModule" = { 764 | Debugger = { 765 | HorizontalSplitView = { 766 | _collapsingFrameDimension = 0; 767 | _indexOfCollapsedView = 0; 768 | _percentageOfCollapsedView = 0; 769 | isCollapsed = yes; 770 | sizes = ( 771 | "{{0, 0}, {283, 208}}", 772 | "{{283, 0}, {462, 208}}", 773 | ); 774 | }; 775 | VerticalSplitView = { 776 | _collapsingFrameDimension = 0; 777 | _indexOfCollapsedView = 0; 778 | _percentageOfCollapsedView = 0; 779 | isCollapsed = yes; 780 | sizes = ( 781 | "{{0, 0}, {745, 208}}", 782 | "{{0, 208}, {745, 214}}", 783 | ); 784 | }; 785 | }; 786 | LauncherConfigVersion = 8; 787 | }; 788 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXNavigatorGroup" = { 789 | PBXSplitModuleInNavigatorKey = { 790 | SplitCount = 1; 791 | }; 792 | }; 793 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXProjectFindModule" = { 794 | }; 795 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXProjectWorkspaceModule" = { 796 | PBXProjectWorkspaceModule_StateKey_Rev39 = { 797 | PBXProjectWorkspaceModule_DEGV_Geometry = { 798 | _collapsingFrameDimension = 0; 799 | _indexOfCollapsedView = 0; 800 | _percentageOfCollapsedView = 0; 801 | isCollapsed = yes; 802 | sizes = ( 803 | "{{0, 0}, {600, 128}}", 804 | "{{0, 128}, {600, 194}}", 805 | ); 806 | }; 807 | PBXProjectWorkspaceModule_EditorOpen = true; 808 | PBXProjectWorkspaceModule_EmbeddedNavigatorGroup = { 809 | PBXSplitModuleInNavigatorKey = { 810 | SplitCount = 1; 811 | }; 812 | }; 813 | PBXProjectWorkspaceModule_GeometryKey_Rev15 = { 814 | GroupTreeCollapsed = yes; 815 | PBXProjectWorkspaceModule_SGTM_Geometry = { 816 | _collapsingFrameDimension = 182; 817 | _indexOfCollapsedView = 0; 818 | _percentageOfCollapsedView = 0.3033333; 819 | sizes = ( 820 | "{{0, 0}, {600, 322}}", 821 | ); 822 | }; 823 | }; 824 | PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {600, 128}}"; 825 | PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 128}, {600, 194}}"; 826 | PBXProjectWorkspaceModule_OldSuperviewFrame = "{{0, 0}, {600, 322}}"; 827 | PBXProjectWorkspaceModule_SGTM = { 828 | PBXBottomSmartGroupGIDs = ( 829 | ); 830 | PBXSmartGroupTreeModuleColumnData = { 831 | PBXSmartGroupTreeModuleColumnWidthsKey = ( 832 | 165, 833 | ); 834 | PBXSmartGroupTreeModuleColumnsKey_v4 = ( 835 | MainColumn, 836 | ); 837 | }; 838 | PBXSmartGroupTreeModuleOutlineStateKey_v7 = { 839 | PBXSmartGroupTreeModuleOutlineStateExpansionKey = ( 840 | ); 841 | PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( 842 | ); 843 | PBXSmartGroupTreeModuleOutlineStateVisibleRectKey = "{{0, 0}, {165, 304}}"; 844 | }; 845 | PBXTopSmartGroupGIDs = ( 846 | ); 847 | }; 848 | }; 849 | }; 850 | "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXRunSessionModule" = { 851 | LauncherConfigVersion = 3; 852 | Runner = { 853 | HorizontalSplitView = { 854 | _collapsingFrameDimension = 0; 855 | _indexOfCollapsedView = 0; 856 | _percentageOfCollapsedView = 0; 857 | isCollapsed = yes; 858 | sizes = ( 859 | "{{0, 0}, {363, 167}}", 860 | "{{0, 176}, {363, 267}}", 861 | ); 862 | }; 863 | VerticalSplitView = { 864 | _collapsingFrameDimension = 0; 865 | _indexOfCollapsedView = 0; 866 | _percentageOfCollapsedView = 0; 867 | isCollapsed = yes; 868 | sizes = ( 869 | "{{0, 0}, {405, 443}}", 870 | "{{414, 0}, {514, 443}}", 871 | ); 872 | }; 873 | }; 874 | }; 875 | PBXWorkspaceGeometries = ( 876 | { 877 | Frame = "{{0, 0}, {956, 746}}"; 878 | PBXProjectWorkspaceModule_GeometryKey_Rev15 = { 879 | }; 880 | RubberWindowFrame = "25 44 956 788 0 0 1280 832 "; 881 | }, 882 | ); 883 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXBuildResultsModule" = { 884 | Frame = "{{0, 0}, {480, 217}}"; 885 | PBXModuleWindowStatusBarHidden = YES; 886 | RubberWindowFrame = "400 465 480 238 0 0 1280 832 "; 887 | }; 888 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXDebugCLIModule" = { 889 | Frame = "{{0, 0}, {400, 201}}"; 890 | PBXModuleWindowStatusBarHidden = YES; 891 | RubberWindowFrame = "50 804 400 222 0 0 1280 832 "; 892 | }; 893 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXDebugSessionModule" = { 894 | DebugConsoleDrawerSize = "{100, 120}"; 895 | DebugConsoleVisible = None; 896 | DebugConsoleWindowFrame = "{{200, 200}, {500, 300}}"; 897 | DebugSTDIOWindowFrame = "{{200, 200}, {500, 300}}"; 898 | Frame = "{{0, 0}, {745, 422}}"; 899 | RubberWindowFrame = "267 352 745 464 0 0 1280 832 "; 900 | }; 901 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXNavigatorGroup" = { 902 | Frame = "{{0, 0}, {888, 725}}"; 903 | RubberWindowFrame = "326 65 888 767 0 0 1280 832 "; 904 | }; 905 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXProjectFindModule" = { 906 | Frame = "{{0, 0}, {614, 121}}"; 907 | PBXModuleWindowStatusBarHidden = YES; 908 | RubberWindowFrame = "333 631 614 142 0 0 1280 832 "; 909 | }; 910 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXProjectWorkspaceModule" = { 911 | Frame = "{{0, 0}, {600, 322}}"; 912 | PBXModuleWindowStatusBarHidden = YES; 913 | PBXProjectWorkspaceModule_GeometryKey_Rev15 = { 914 | }; 915 | RubberWindowFrame = "21 489 600 343 0 0 1280 832 "; 916 | }; 917 | "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXRunSessionModule" = { 918 | Frame = "{{0, 0}, {745, 443}}"; 919 | PBXModuleWindowStatusBarHidden = YES; 920 | RubberWindowFrame = "483 101 745 464 0 0 1280 832 "; 921 | }; 922 | PBXWorkspaceStateSaveDate = 110992941; 923 | }; 924 | perUserProjectItems = { 925 | 03218240069C31B300F475DD = 03218240069C31B300F475DD; 926 | 0364BAF0066F403F00B2F0D8 = 0364BAF0066F403F00B2F0D8; 927 | 0364BAFA066F420300B2F0D8 = 0364BAFA066F420300B2F0D8; 928 | 036ED3B5064D777B00008B33 = 036ED3B5064D777B00008B33; 929 | 036ED3B7064D777B00008B33 = 036ED3B7064D777B00008B33; 930 | 0389277606987446009AEC82 = 0389277606987446009AEC82; 931 | 039085930663CDEF00FB7953 = 039085930663CDEF00FB7953; 932 | 039085960663CDEF00FB7953 = 039085960663CDEF00FB7953; 933 | 0390859C0663D44100FB7953 = 0390859C0663D44100FB7953; 934 | 039085A70663D44100FB7953 = 039085A70663D44100FB7953; 935 | 03A42E91069D9A2E00BFC1F2 = 03A42E91069D9A2E00BFC1F2; 936 | 03A42E92069D9A2E00BFC1F2 = 03A42E92069D9A2E00BFC1F2; 937 | 03A42E93069D9A2E00BFC1F2 = 03A42E93069D9A2E00BFC1F2; 938 | 03A518690697C0CE00A7509F = 03A518690697C0CE00A7509F; 939 | 03A5186F0697C0D100A7509F = 03A5186F0697C0D100A7509F; 940 | 03A518980697C10700A7509F = 03A518980697C10700A7509F; 941 | 03A5189A0697C10700A7509F = 03A5189A0697C10700A7509F; 942 | 03A518A00697C10D00A7509F = 03A518A00697C10D00A7509F; 943 | 03BB3DFD069D97AE00B731DA = 03BB3DFD069D97AE00B731DA; 944 | 03BB3E09069D980400B731DA = 03BB3E09069D980400B731DA; 945 | 03BB3E0A069D980400B731DA = 03BB3E0A069D980400B731DA; 946 | 03D905C4069D9A5F00E9B2E6 = 03D905C4069D9A5F00E9B2E6; 947 | 03F1087C064DC3BB00E32D07 = 03F1087C064DC3BB00E32D07; 948 | 03FC269F069D9E3D00569520 = 03FC269F069D9E3D00569520; 949 | }; 950 | sourceControlManager = 0307E1490647FF60006C4C69; 951 | userBuildSettings = { 952 | }; 953 | }; 954 | 08FB7796FE84155DC02AAC07 = { 955 | uiCtxt = { 956 | sepNavIntBoundsRect = "{{0, 0}, {729, 18073}}"; 957 | sepNavSelRange = "{103, 0}"; 958 | sepNavVisRect = "{{0, 0}, {729, 714}}"; 959 | sepNavWindowFrame = "{{326, 9}, {888, 823}}"; 960 | }; 961 | }; 962 | 8DD76FA90486AB0100D96B5E = { 963 | activeExec = 0; 964 | executables = ( 965 | 03D905C3069D9A4600E9B2E6, 966 | ); 967 | }; 968 | 8F827A190629F4A80081C557 = { 969 | uiCtxt = { 970 | sepNavIntBoundsRect = "{{0, 0}, {729, 3177}}"; 971 | sepNavSelRange = "{5221, 0}"; 972 | sepNavVisRect = "{{0, 0}, {729, 714}}"; 973 | }; 974 | }; 975 | } 976 | -------------------------------------------------------------------------------- /SpaceDog/src_xcode/jpeglib.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jpeglib.h 3 | * 4 | * Copyright (C) 1991-1998, Thomas G. Lane. 5 | * This file is part of the Independent JPEG Group's software. 6 | * For conditions of distribution and use, see the accompanying README file. 7 | * 8 | * This file defines the application interface for the JPEG library. 9 | * Most applications using the library need only include this file, 10 | * and perhaps jerror.h if they want to know the exact error codes. 11 | */ 12 | 13 | #ifndef JPEGLIB_H 14 | #define JPEGLIB_H 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | /* 21 | * First we include the configuration files that record how this 22 | * installation of the JPEG library is set up. jconfig.h can be 23 | * generated automatically for many systems. jmorecfg.h contains 24 | * manual configuration options that most people need not worry about. 25 | */ 26 | 27 | #ifndef JCONFIG_INCLUDED /* in case jinclude.h already did */ 28 | #include "jconfig.h" /* widely used configuration options */ 29 | #endif 30 | #include "jmorecfg.h" /* seldom changed options */ 31 | 32 | 33 | /* Version ID for the JPEG library. 34 | * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60". 35 | */ 36 | 37 | #define JPEG_LIB_VERSION 62 /* Version 6b */ 38 | 39 | 40 | /* Various constants determining the sizes of things. 41 | * All of these are specified by the JPEG standard, so don't change them 42 | * if you want to be compatible. 43 | */ 44 | 45 | #define DCTSIZE 8 /* The basic DCT block is 8x8 samples */ 46 | #define DCTSIZE2 64 /* DCTSIZE squared; # of elements in a block */ 47 | #define NUM_QUANT_TBLS 4 /* Quantization tables are numbered 0..3 */ 48 | #define NUM_HUFF_TBLS 4 /* Huffman tables are numbered 0..3 */ 49 | #define NUM_ARITH_TBLS 16 /* Arith-coding tables are numbered 0..15 */ 50 | #define MAX_COMPS_IN_SCAN 4 /* JPEG limit on # of components in one scan */ 51 | #define MAX_SAMP_FACTOR 4 /* JPEG limit on sampling factors */ 52 | /* Unfortunately, some bozo at Adobe saw no reason to be bound by the standard; 53 | * the PostScript DCT filter can emit files with many more than 10 blocks/MCU. 54 | * If you happen to run across such a file, you can up D_MAX_BLOCKS_IN_MCU 55 | * to handle it. We even let you do this from the jconfig.h file. However, 56 | * we strongly discourage changing C_MAX_BLOCKS_IN_MCU; just because Adobe 57 | * sometimes emits noncompliant files doesn't mean you should too. 58 | */ 59 | #define C_MAX_BLOCKS_IN_MCU 10 /* compressor's limit on blocks per MCU */ 60 | #ifndef D_MAX_BLOCKS_IN_MCU 61 | #define D_MAX_BLOCKS_IN_MCU 10 /* decompressor's limit on blocks per MCU */ 62 | #endif 63 | 64 | 65 | /* Data structures for images (arrays of samples and of DCT coefficients). 66 | * On 80x86 machines, the image arrays are too big for near pointers, 67 | * but the pointer arrays can fit in near memory. 68 | */ 69 | 70 | typedef JSAMPLE FAR *JSAMPROW; /* ptr to one image row of pixel samples. */ 71 | typedef JSAMPROW *JSAMPARRAY; /* ptr to some rows (a 2-D sample array) */ 72 | typedef JSAMPARRAY *JSAMPIMAGE; /* a 3-D sample array: top index is color */ 73 | 74 | typedef JCOEF JBLOCK[DCTSIZE2]; /* one block of coefficients */ 75 | typedef JBLOCK FAR *JBLOCKROW; /* pointer to one row of coefficient blocks */ 76 | typedef JBLOCKROW *JBLOCKARRAY; /* a 2-D array of coefficient blocks */ 77 | typedef JBLOCKARRAY *JBLOCKIMAGE; /* a 3-D array of coefficient blocks */ 78 | 79 | typedef JCOEF FAR *JCOEFPTR; /* useful in a couple of places */ 80 | 81 | 82 | /* Types for JPEG compression parameters and working tables. */ 83 | 84 | 85 | /* DCT coefficient quantization tables. */ 86 | 87 | typedef struct { 88 | /* This array gives the coefficient quantizers in natural array order 89 | * (not the zigzag order in which they are stored in a JPEG DQT marker). 90 | * CAUTION: IJG versions prior to v6a kept this array in zigzag order. 91 | */ 92 | UINT16 quantval[DCTSIZE2]; /* quantization step for each coefficient */ 93 | /* This field is used only during compression. It's initialized FALSE when 94 | * the table is created, and set TRUE when it's been output to the file. 95 | * You could suppress output of a table by setting this to TRUE. 96 | * (See jpeg_suppress_tables for an example.) 97 | */ 98 | boolean sent_table; /* TRUE when table has been output */ 99 | } JQUANT_TBL; 100 | 101 | 102 | /* Huffman coding tables. */ 103 | 104 | typedef struct { 105 | /* These two fields directly represent the contents of a JPEG DHT marker */ 106 | UINT8 bits[17]; /* bits[k] = # of symbols with codes of */ 107 | /* length k bits; bits[0] is unused */ 108 | UINT8 huffval[256]; /* The symbols, in order of incr code length */ 109 | /* This field is used only during compression. It's initialized FALSE when 110 | * the table is created, and set TRUE when it's been output to the file. 111 | * You could suppress output of a table by setting this to TRUE. 112 | * (See jpeg_suppress_tables for an example.) 113 | */ 114 | boolean sent_table; /* TRUE when table has been output */ 115 | } JHUFF_TBL; 116 | 117 | 118 | /* Basic info about one component (color channel). */ 119 | 120 | typedef struct { 121 | /* These values are fixed over the whole image. */ 122 | /* For compression, they must be supplied by parameter setup; */ 123 | /* for decompression, they are read from the SOF marker. */ 124 | int component_id; /* identifier for this component (0..255) */ 125 | int component_index; /* its index in SOF or cinfo->comp_info[] */ 126 | int h_samp_factor; /* horizontal sampling factor (1..4) */ 127 | int v_samp_factor; /* vertical sampling factor (1..4) */ 128 | int quant_tbl_no; /* quantization table selector (0..3) */ 129 | /* These values may vary between scans. */ 130 | /* For compression, they must be supplied by parameter setup; */ 131 | /* for decompression, they are read from the SOS marker. */ 132 | /* The decompressor output side may not use these variables. */ 133 | int dc_tbl_no; /* DC entropy table selector (0..3) */ 134 | int ac_tbl_no; /* AC entropy table selector (0..3) */ 135 | 136 | /* Remaining fields should be treated as private by applications. */ 137 | 138 | /* These values are computed during compression or decompression startup: */ 139 | /* Component's size in DCT blocks. 140 | * Any dummy blocks added to complete an MCU are not counted; therefore 141 | * these values do not depend on whether a scan is interleaved or not. 142 | */ 143 | JDIMENSION width_in_blocks; 144 | JDIMENSION height_in_blocks; 145 | /* Size of a DCT block in samples. Always DCTSIZE for compression. 146 | * For decompression this is the size of the output from one DCT block, 147 | * reflecting any scaling we choose to apply during the IDCT step. 148 | * Values of 1,2,4,8 are likely to be supported. Note that different 149 | * components may receive different IDCT scalings. 150 | */ 151 | int DCT_scaled_size; 152 | /* The downsampled dimensions are the component's actual, unpadded number 153 | * of samples at the main buffer (preprocessing/compression interface), thus 154 | * downsampled_width = ceil(image_width * Hi/Hmax) 155 | * and similarly for height. For decompression, IDCT scaling is included, so 156 | * downsampled_width = ceil(image_width * Hi/Hmax * DCT_scaled_size/DCTSIZE) 157 | */ 158 | JDIMENSION downsampled_width; /* actual width in samples */ 159 | JDIMENSION downsampled_height; /* actual height in samples */ 160 | /* This flag is used only for decompression. In cases where some of the 161 | * components will be ignored (eg grayscale output from YCbCr image), 162 | * we can skip most computations for the unused components. 163 | */ 164 | boolean component_needed; /* do we need the value of this component? */ 165 | 166 | /* These values are computed before starting a scan of the component. */ 167 | /* The decompressor output side may not use these variables. */ 168 | int MCU_width; /* number of blocks per MCU, horizontally */ 169 | int MCU_height; /* number of blocks per MCU, vertically */ 170 | int MCU_blocks; /* MCU_width * MCU_height */ 171 | int MCU_sample_width; /* MCU width in samples, MCU_width*DCT_scaled_size */ 172 | int last_col_width; /* # of non-dummy blocks across in last MCU */ 173 | int last_row_height; /* # of non-dummy blocks down in last MCU */ 174 | 175 | /* Saved quantization table for component; NULL if none yet saved. 176 | * See jdinput.c comments about the need for this information. 177 | * This field is currently used only for decompression. 178 | */ 179 | JQUANT_TBL * quant_table; 180 | 181 | /* Private per-component storage for DCT or IDCT subsystem. */ 182 | void * dct_table; 183 | } jpeg_component_info; 184 | 185 | 186 | /* The script for encoding a multiple-scan file is an array of these: */ 187 | 188 | typedef struct { 189 | int comps_in_scan; /* number of components encoded in this scan */ 190 | int component_index[MAX_COMPS_IN_SCAN]; /* their SOF/comp_info[] indexes */ 191 | int Ss, Se; /* progressive JPEG spectral selection parms */ 192 | int Ah, Al; /* progressive JPEG successive approx. parms */ 193 | } jpeg_scan_info; 194 | 195 | /* The decompressor can save APPn and COM markers in a list of these: */ 196 | 197 | typedef struct jpeg_marker_struct FAR * jpeg_saved_marker_ptr; 198 | 199 | struct jpeg_marker_struct { 200 | jpeg_saved_marker_ptr next; /* next in list, or NULL */ 201 | UINT8 marker; /* marker code: JPEG_COM, or JPEG_APP0+n */ 202 | unsigned int original_length; /* # bytes of data in the file */ 203 | unsigned int data_length; /* # bytes of data saved at data[] */ 204 | JOCTET FAR * data; /* the data contained in the marker */ 205 | /* the marker length word is not counted in data_length or original_length */ 206 | }; 207 | 208 | /* Known color spaces. */ 209 | 210 | typedef enum { 211 | JCS_UNKNOWN, /* error/unspecified */ 212 | JCS_GRAYSCALE, /* monochrome */ 213 | JCS_RGB, /* red/green/blue */ 214 | JCS_YCbCr, /* Y/Cb/Cr (also known as YUV) */ 215 | JCS_CMYK, /* C/M/Y/K */ 216 | JCS_YCCK /* Y/Cb/Cr/K */ 217 | } J_COLOR_SPACE; 218 | 219 | /* DCT/IDCT algorithm options. */ 220 | 221 | typedef enum { 222 | JDCT_ISLOW, /* slow but accurate integer algorithm */ 223 | JDCT_IFAST, /* faster, less accurate integer method */ 224 | JDCT_FLOAT /* floating-point: accurate, fast on fast HW */ 225 | } J_DCT_METHOD; 226 | 227 | #ifndef JDCT_DEFAULT /* may be overridden in jconfig.h */ 228 | #define JDCT_DEFAULT JDCT_ISLOW 229 | #endif 230 | #ifndef JDCT_FASTEST /* may be overridden in jconfig.h */ 231 | #define JDCT_FASTEST JDCT_IFAST 232 | #endif 233 | 234 | /* Dithering options for decompression. */ 235 | 236 | typedef enum { 237 | JDITHER_NONE, /* no dithering */ 238 | JDITHER_ORDERED, /* simple ordered dither */ 239 | JDITHER_FS /* Floyd-Steinberg error diffusion dither */ 240 | } J_DITHER_MODE; 241 | 242 | 243 | /* Common fields between JPEG compression and decompression master structs. */ 244 | 245 | #define jpeg_common_fields \ 246 | struct jpeg_error_mgr * err; /* Error handler module */\ 247 | struct jpeg_memory_mgr * mem; /* Memory manager module */\ 248 | struct jpeg_progress_mgr * progress; /* Progress monitor, or NULL if none */\ 249 | void * client_data; /* Available for use by application */\ 250 | boolean is_decompressor; /* So common code can tell which is which */\ 251 | int global_state /* For checking call sequence validity */ 252 | 253 | /* Routines that are to be used by both halves of the library are declared 254 | * to receive a pointer to this structure. There are no actual instances of 255 | * jpeg_common_struct, only of jpeg_compress_struct and jpeg_decompress_struct. 256 | */ 257 | struct jpeg_common_struct { 258 | jpeg_common_fields; /* Fields common to both master struct types */ 259 | /* Additional fields follow in an actual jpeg_compress_struct or 260 | * jpeg_decompress_struct. All three structs must agree on these 261 | * initial fields! (This would be a lot cleaner in C++.) 262 | */ 263 | }; 264 | 265 | typedef struct jpeg_common_struct * j_common_ptr; 266 | typedef struct jpeg_compress_struct * j_compress_ptr; 267 | typedef struct jpeg_decompress_struct * j_decompress_ptr; 268 | 269 | 270 | /* Master record for a compression instance */ 271 | 272 | struct jpeg_compress_struct { 273 | jpeg_common_fields; /* Fields shared with jpeg_decompress_struct */ 274 | 275 | /* Destination for compressed data */ 276 | struct jpeg_destination_mgr * dest; 277 | 278 | /* Description of source image --- these fields must be filled in by 279 | * outer application before starting compression. in_color_space must 280 | * be correct before you can even call jpeg_set_defaults(). 281 | */ 282 | 283 | JDIMENSION image_width; /* input image width */ 284 | JDIMENSION image_height; /* input image height */ 285 | int input_components; /* # of color components in input image */ 286 | J_COLOR_SPACE in_color_space; /* colorspace of input image */ 287 | 288 | double input_gamma; /* image gamma of input image */ 289 | 290 | /* Compression parameters --- these fields must be set before calling 291 | * jpeg_start_compress(). We recommend calling jpeg_set_defaults() to 292 | * initialize everything to reasonable defaults, then changing anything 293 | * the application specifically wants to change. That way you won't get 294 | * burnt when new parameters are added. Also note that there are several 295 | * helper routines to simplify changing parameters. 296 | */ 297 | 298 | int data_precision; /* bits of precision in image data */ 299 | 300 | int num_components; /* # of color components in JPEG image */ 301 | J_COLOR_SPACE jpeg_color_space; /* colorspace of JPEG image */ 302 | 303 | jpeg_component_info * comp_info; 304 | /* comp_info[i] describes component that appears i'th in SOF */ 305 | 306 | JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]; 307 | /* ptrs to coefficient quantization tables, or NULL if not defined */ 308 | 309 | JHUFF_TBL * dc_huff_tbl_ptrs[NUM_HUFF_TBLS]; 310 | JHUFF_TBL * ac_huff_tbl_ptrs[NUM_HUFF_TBLS]; 311 | /* ptrs to Huffman coding tables, or NULL if not defined */ 312 | 313 | UINT8 arith_dc_L[NUM_ARITH_TBLS]; /* L values for DC arith-coding tables */ 314 | UINT8 arith_dc_U[NUM_ARITH_TBLS]; /* U values for DC arith-coding tables */ 315 | UINT8 arith_ac_K[NUM_ARITH_TBLS]; /* Kx values for AC arith-coding tables */ 316 | 317 | int num_scans; /* # of entries in scan_info array */ 318 | const jpeg_scan_info * scan_info; /* script for multi-scan file, or NULL */ 319 | /* The default value of scan_info is NULL, which causes a single-scan 320 | * sequential JPEG file to be emitted. To create a multi-scan file, 321 | * set num_scans and scan_info to point to an array of scan definitions. 322 | */ 323 | 324 | boolean raw_data_in; /* TRUE=caller supplies downsampled data */ 325 | boolean arith_code; /* TRUE=arithmetic coding, FALSE=Huffman */ 326 | boolean optimize_coding; /* TRUE=optimize entropy encoding parms */ 327 | boolean CCIR601_sampling; /* TRUE=first samples are cosited */ 328 | int smoothing_factor; /* 1..100, or 0 for no input smoothing */ 329 | J_DCT_METHOD dct_method; /* DCT algorithm selector */ 330 | 331 | /* The restart interval can be specified in absolute MCUs by setting 332 | * restart_interval, or in MCU rows by setting restart_in_rows 333 | * (in which case the correct restart_interval will be figured 334 | * for each scan). 335 | */ 336 | unsigned int restart_interval; /* MCUs per restart, or 0 for no restart */ 337 | int restart_in_rows; /* if > 0, MCU rows per restart interval */ 338 | 339 | /* Parameters controlling emission of special markers. */ 340 | 341 | boolean write_JFIF_header; /* should a JFIF marker be written? */ 342 | UINT8 JFIF_major_version; /* What to write for the JFIF version number */ 343 | UINT8 JFIF_minor_version; 344 | /* These three values are not used by the JPEG code, merely copied */ 345 | /* into the JFIF APP0 marker. density_unit can be 0 for unknown, */ 346 | /* 1 for dots/inch, or 2 for dots/cm. Note that the pixel aspect */ 347 | /* ratio is defined by X_density/Y_density even when density_unit=0. */ 348 | UINT8 density_unit; /* JFIF code for pixel size units */ 349 | UINT16 X_density; /* Horizontal pixel density */ 350 | UINT16 Y_density; /* Vertical pixel density */ 351 | boolean write_Adobe_marker; /* should an Adobe marker be written? */ 352 | 353 | /* State variable: index of next scanline to be written to 354 | * jpeg_write_scanlines(). Application may use this to control its 355 | * processing loop, e.g., "while (next_scanline < image_height)". 356 | */ 357 | 358 | JDIMENSION next_scanline; /* 0 .. image_height-1 */ 359 | 360 | /* Remaining fields are known throughout compressor, but generally 361 | * should not be touched by a surrounding application. 362 | */ 363 | 364 | /* 365 | * These fields are computed during compression startup 366 | */ 367 | boolean progressive_mode; /* TRUE if scan script uses progressive mode */ 368 | int max_h_samp_factor; /* largest h_samp_factor */ 369 | int max_v_samp_factor; /* largest v_samp_factor */ 370 | 371 | JDIMENSION total_iMCU_rows; /* # of iMCU rows to be input to coef ctlr */ 372 | /* The coefficient controller receives data in units of MCU rows as defined 373 | * for fully interleaved scans (whether the JPEG file is interleaved or not). 374 | * There are v_samp_factor * DCTSIZE sample rows of each component in an 375 | * "iMCU" (interleaved MCU) row. 376 | */ 377 | 378 | /* 379 | * These fields are valid during any one scan. 380 | * They describe the components and MCUs actually appearing in the scan. 381 | */ 382 | int comps_in_scan; /* # of JPEG components in this scan */ 383 | jpeg_component_info * cur_comp_info[MAX_COMPS_IN_SCAN]; 384 | /* *cur_comp_info[i] describes component that appears i'th in SOS */ 385 | 386 | JDIMENSION MCUs_per_row; /* # of MCUs across the image */ 387 | JDIMENSION MCU_rows_in_scan; /* # of MCU rows in the image */ 388 | 389 | int blocks_in_MCU; /* # of DCT blocks per MCU */ 390 | int MCU_membership[C_MAX_BLOCKS_IN_MCU]; 391 | /* MCU_membership[i] is index in cur_comp_info of component owning */ 392 | /* i'th block in an MCU */ 393 | 394 | int Ss, Se, Ah, Al; /* progressive JPEG parameters for scan */ 395 | 396 | /* 397 | * Links to compression subobjects (methods and private variables of modules) 398 | */ 399 | struct jpeg_comp_master * master; 400 | struct jpeg_c_main_controller * main; 401 | struct jpeg_c_prep_controller * prep; 402 | struct jpeg_c_coef_controller * coef; 403 | struct jpeg_marker_writer * marker; 404 | struct jpeg_color_converter * cconvert; 405 | struct jpeg_downsampler * downsample; 406 | struct jpeg_forward_dct * fdct; 407 | struct jpeg_entropy_encoder * entropy; 408 | jpeg_scan_info * script_space; /* workspace for jpeg_simple_progression */ 409 | int script_space_size; 410 | }; 411 | 412 | 413 | /* Master record for a decompression instance */ 414 | 415 | struct jpeg_decompress_struct { 416 | jpeg_common_fields; /* Fields shared with jpeg_compress_struct */ 417 | 418 | /* Source of compressed data */ 419 | struct jpeg_source_mgr * src; 420 | 421 | /* Basic description of image --- filled in by jpeg_read_header(). */ 422 | /* Application may inspect these values to decide how to process image. */ 423 | 424 | JDIMENSION image_width; /* nominal image width (from SOF marker) */ 425 | JDIMENSION image_height; /* nominal image height */ 426 | int num_components; /* # of color components in JPEG image */ 427 | J_COLOR_SPACE jpeg_color_space; /* colorspace of JPEG image */ 428 | 429 | /* Decompression processing parameters --- these fields must be set before 430 | * calling jpeg_start_decompress(). Note that jpeg_read_header() initializes 431 | * them to default values. 432 | */ 433 | 434 | J_COLOR_SPACE out_color_space; /* colorspace for output */ 435 | 436 | unsigned int scale_num, scale_denom; /* fraction by which to scale image */ 437 | 438 | double output_gamma; /* image gamma wanted in output */ 439 | 440 | boolean buffered_image; /* TRUE=multiple output passes */ 441 | boolean raw_data_out; /* TRUE=downsampled data wanted */ 442 | 443 | J_DCT_METHOD dct_method; /* IDCT algorithm selector */ 444 | boolean do_fancy_upsampling; /* TRUE=apply fancy upsampling */ 445 | boolean do_block_smoothing; /* TRUE=apply interblock smoothing */ 446 | 447 | boolean quantize_colors; /* TRUE=colormapped output wanted */ 448 | /* the following are ignored if not quantize_colors: */ 449 | J_DITHER_MODE dither_mode; /* type of color dithering to use */ 450 | boolean two_pass_quantize; /* TRUE=use two-pass color quantization */ 451 | int desired_number_of_colors; /* max # colors to use in created colormap */ 452 | /* these are significant only in buffered-image mode: */ 453 | boolean enable_1pass_quant; /* enable future use of 1-pass quantizer */ 454 | boolean enable_external_quant;/* enable future use of external colormap */ 455 | boolean enable_2pass_quant; /* enable future use of 2-pass quantizer */ 456 | 457 | /* Description of actual output image that will be returned to application. 458 | * These fields are computed by jpeg_start_decompress(). 459 | * You can also use jpeg_calc_output_dimensions() to determine these values 460 | * in advance of calling jpeg_start_decompress(). 461 | */ 462 | 463 | JDIMENSION output_width; /* scaled image width */ 464 | JDIMENSION output_height; /* scaled image height */ 465 | int out_color_components; /* # of color components in out_color_space */ 466 | int output_components; /* # of color components returned */ 467 | /* output_components is 1 (a colormap index) when quantizing colors; 468 | * otherwise it equals out_color_components. 469 | */ 470 | int rec_outbuf_height; /* min recommended height of scanline buffer */ 471 | /* If the buffer passed to jpeg_read_scanlines() is less than this many rows 472 | * high, space and time will be wasted due to unnecessary data copying. 473 | * Usually rec_outbuf_height will be 1 or 2, at most 4. 474 | */ 475 | 476 | /* When quantizing colors, the output colormap is described by these fields. 477 | * The application can supply a colormap by setting colormap non-NULL before 478 | * calling jpeg_start_decompress; otherwise a colormap is created during 479 | * jpeg_start_decompress or jpeg_start_output. 480 | * The map has out_color_components rows and actual_number_of_colors columns. 481 | */ 482 | int actual_number_of_colors; /* number of entries in use */ 483 | JSAMPARRAY colormap; /* The color map as a 2-D pixel array */ 484 | 485 | /* State variables: these variables indicate the progress of decompression. 486 | * The application may examine these but must not modify them. 487 | */ 488 | 489 | /* Row index of next scanline to be read from jpeg_read_scanlines(). 490 | * Application may use this to control its processing loop, e.g., 491 | * "while (output_scanline < output_height)". 492 | */ 493 | JDIMENSION output_scanline; /* 0 .. output_height-1 */ 494 | 495 | /* Current input scan number and number of iMCU rows completed in scan. 496 | * These indicate the progress of the decompressor input side. 497 | */ 498 | int input_scan_number; /* Number of SOS markers seen so far */ 499 | JDIMENSION input_iMCU_row; /* Number of iMCU rows completed */ 500 | 501 | /* The "output scan number" is the notional scan being displayed by the 502 | * output side. The decompressor will not allow output scan/row number 503 | * to get ahead of input scan/row, but it can fall arbitrarily far behind. 504 | */ 505 | int output_scan_number; /* Nominal scan number being displayed */ 506 | JDIMENSION output_iMCU_row; /* Number of iMCU rows read */ 507 | 508 | /* Current progression status. coef_bits[c][i] indicates the precision 509 | * with which component c's DCT coefficient i (in zigzag order) is known. 510 | * It is -1 when no data has yet been received, otherwise it is the point 511 | * transform (shift) value for the most recent scan of the coefficient 512 | * (thus, 0 at completion of the progression). 513 | * This pointer is NULL when reading a non-progressive file. 514 | */ 515 | int (*coef_bits)[DCTSIZE2]; /* -1 or current Al value for each coef */ 516 | 517 | /* Internal JPEG parameters --- the application usually need not look at 518 | * these fields. Note that the decompressor output side may not use 519 | * any parameters that can change between scans. 520 | */ 521 | 522 | /* Quantization and Huffman tables are carried forward across input 523 | * datastreams when processing abbreviated JPEG datastreams. 524 | */ 525 | 526 | JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]; 527 | /* ptrs to coefficient quantization tables, or NULL if not defined */ 528 | 529 | JHUFF_TBL * dc_huff_tbl_ptrs[NUM_HUFF_TBLS]; 530 | JHUFF_TBL * ac_huff_tbl_ptrs[NUM_HUFF_TBLS]; 531 | /* ptrs to Huffman coding tables, or NULL if not defined */ 532 | 533 | /* These parameters are never carried across datastreams, since they 534 | * are given in SOF/SOS markers or defined to be reset by SOI. 535 | */ 536 | 537 | int data_precision; /* bits of precision in image data */ 538 | 539 | jpeg_component_info * comp_info; 540 | /* comp_info[i] describes component that appears i'th in SOF */ 541 | 542 | boolean progressive_mode; /* TRUE if SOFn specifies progressive mode */ 543 | boolean arith_code; /* TRUE=arithmetic coding, FALSE=Huffman */ 544 | 545 | UINT8 arith_dc_L[NUM_ARITH_TBLS]; /* L values for DC arith-coding tables */ 546 | UINT8 arith_dc_U[NUM_ARITH_TBLS]; /* U values for DC arith-coding tables */ 547 | UINT8 arith_ac_K[NUM_ARITH_TBLS]; /* Kx values for AC arith-coding tables */ 548 | 549 | unsigned int restart_interval; /* MCUs per restart interval, or 0 for no restart */ 550 | 551 | /* These fields record data obtained from optional markers recognized by 552 | * the JPEG library. 553 | */ 554 | boolean saw_JFIF_marker; /* TRUE iff a JFIF APP0 marker was found */ 555 | /* Data copied from JFIF marker; only valid if saw_JFIF_marker is TRUE: */ 556 | UINT8 JFIF_major_version; /* JFIF version number */ 557 | UINT8 JFIF_minor_version; 558 | UINT8 density_unit; /* JFIF code for pixel size units */ 559 | UINT16 X_density; /* Horizontal pixel density */ 560 | UINT16 Y_density; /* Vertical pixel density */ 561 | boolean saw_Adobe_marker; /* TRUE iff an Adobe APP14 marker was found */ 562 | UINT8 Adobe_transform; /* Color transform code from Adobe marker */ 563 | 564 | boolean CCIR601_sampling; /* TRUE=first samples are cosited */ 565 | 566 | /* Aside from the specific data retained from APPn markers known to the 567 | * library, the uninterpreted contents of any or all APPn and COM markers 568 | * can be saved in a list for examination by the application. 569 | */ 570 | jpeg_saved_marker_ptr marker_list; /* Head of list of saved markers */ 571 | 572 | /* Remaining fields are known throughout decompressor, but generally 573 | * should not be touched by a surrounding application. 574 | */ 575 | 576 | /* 577 | * These fields are computed during decompression startup 578 | */ 579 | int max_h_samp_factor; /* largest h_samp_factor */ 580 | int max_v_samp_factor; /* largest v_samp_factor */ 581 | 582 | int min_DCT_scaled_size; /* smallest DCT_scaled_size of any component */ 583 | 584 | JDIMENSION total_iMCU_rows; /* # of iMCU rows in image */ 585 | /* The coefficient controller's input and output progress is measured in 586 | * units of "iMCU" (interleaved MCU) rows. These are the same as MCU rows 587 | * in fully interleaved JPEG scans, but are used whether the scan is 588 | * interleaved or not. We define an iMCU row as v_samp_factor DCT block 589 | * rows of each component. Therefore, the IDCT output contains 590 | * v_samp_factor*DCT_scaled_size sample rows of a component per iMCU row. 591 | */ 592 | 593 | JSAMPLE * sample_range_limit; /* table for fast range-limiting */ 594 | 595 | /* 596 | * These fields are valid during any one scan. 597 | * They describe the components and MCUs actually appearing in the scan. 598 | * Note that the decompressor output side must not use these fields. 599 | */ 600 | int comps_in_scan; /* # of JPEG components in this scan */ 601 | jpeg_component_info * cur_comp_info[MAX_COMPS_IN_SCAN]; 602 | /* *cur_comp_info[i] describes component that appears i'th in SOS */ 603 | 604 | JDIMENSION MCUs_per_row; /* # of MCUs across the image */ 605 | JDIMENSION MCU_rows_in_scan; /* # of MCU rows in the image */ 606 | 607 | int blocks_in_MCU; /* # of DCT blocks per MCU */ 608 | int MCU_membership[D_MAX_BLOCKS_IN_MCU]; 609 | /* MCU_membership[i] is index in cur_comp_info of component owning */ 610 | /* i'th block in an MCU */ 611 | 612 | int Ss, Se, Ah, Al; /* progressive JPEG parameters for scan */ 613 | 614 | /* This field is shared between entropy decoder and marker parser. 615 | * It is either zero or the code of a JPEG marker that has been 616 | * read from the data source, but has not yet been processed. 617 | */ 618 | int unread_marker; 619 | 620 | /* 621 | * Links to decompression subobjects (methods, private variables of modules) 622 | */ 623 | struct jpeg_decomp_master * master; 624 | struct jpeg_d_main_controller * main; 625 | struct jpeg_d_coef_controller * coef; 626 | struct jpeg_d_post_controller * post; 627 | struct jpeg_input_controller * inputctl; 628 | struct jpeg_marker_reader * marker; 629 | struct jpeg_entropy_decoder * entropy; 630 | struct jpeg_inverse_dct * idct; 631 | struct jpeg_upsampler * upsample; 632 | struct jpeg_color_deconverter * cconvert; 633 | struct jpeg_color_quantizer * cquantize; 634 | }; 635 | 636 | 637 | /* "Object" declarations for JPEG modules that may be supplied or called 638 | * directly by the surrounding application. 639 | * As with all objects in the JPEG library, these structs only define the 640 | * publicly visible methods and state variables of a module. Additional 641 | * private fields may exist after the public ones. 642 | */ 643 | 644 | 645 | /* Error handler object */ 646 | 647 | struct jpeg_error_mgr { 648 | /* Error exit handler: does not return to caller */ 649 | JMETHOD(void, error_exit, (j_common_ptr cinfo)); 650 | /* Conditionally emit a trace or warning message */ 651 | JMETHOD(void, emit_message, (j_common_ptr cinfo, int msg_level)); 652 | /* Routine that actually outputs a trace or error message */ 653 | JMETHOD(void, output_message, (j_common_ptr cinfo)); 654 | /* Format a message string for the most recent JPEG error or message */ 655 | JMETHOD(void, format_message, (j_common_ptr cinfo, char * buffer)); 656 | #define JMSG_LENGTH_MAX 200 /* recommended size of format_message buffer */ 657 | /* Reset error state variables at start of a new image */ 658 | JMETHOD(void, reset_error_mgr, (j_common_ptr cinfo)); 659 | 660 | /* The message ID code and any parameters are saved here. 661 | * A message can have one string parameter or up to 8 int parameters. 662 | */ 663 | int msg_code; 664 | #define JMSG_STR_PARM_MAX 80 665 | union { 666 | int i[8]; 667 | char s[JMSG_STR_PARM_MAX]; 668 | } msg_parm; 669 | 670 | /* Standard state variables for error facility */ 671 | 672 | int trace_level; /* max msg_level that will be displayed */ 673 | 674 | /* For recoverable corrupt-data errors, we emit a warning message, 675 | * but keep going unless emit_message chooses to abort. emit_message 676 | * should count warnings in num_warnings. The surrounding application 677 | * can check for bad data by seeing if num_warnings is nonzero at the 678 | * end of processing. 679 | */ 680 | long num_warnings; /* number of corrupt-data warnings */ 681 | 682 | /* These fields point to the table(s) of error message strings. 683 | * An application can change the table pointer to switch to a different 684 | * message list (typically, to change the language in which errors are 685 | * reported). Some applications may wish to add additional error codes 686 | * that will be handled by the JPEG library error mechanism; the second 687 | * table pointer is used for this purpose. 688 | * 689 | * First table includes all errors generated by JPEG library itself. 690 | * Error code 0 is reserved for a "no such error string" message. 691 | */ 692 | const char * const * jpeg_message_table; /* Library errors */ 693 | int last_jpeg_message; /* Table contains strings 0..last_jpeg_message */ 694 | /* Second table can be added by application (see cjpeg/djpeg for example). 695 | * It contains strings numbered first_addon_message..last_addon_message. 696 | */ 697 | const char * const * addon_message_table; /* Non-library errors */ 698 | int first_addon_message; /* code for first string in addon table */ 699 | int last_addon_message; /* code for last string in addon table */ 700 | }; 701 | 702 | 703 | /* Progress monitor object */ 704 | 705 | struct jpeg_progress_mgr { 706 | JMETHOD(void, progress_monitor, (j_common_ptr cinfo)); 707 | 708 | long pass_counter; /* work units completed in this pass */ 709 | long pass_limit; /* total number of work units in this pass */ 710 | int completed_passes; /* passes completed so far */ 711 | int total_passes; /* total number of passes expected */ 712 | }; 713 | 714 | 715 | /* Data destination object for compression */ 716 | 717 | struct jpeg_destination_mgr { 718 | JOCTET * next_output_byte; /* => next byte to write in buffer */ 719 | size_t free_in_buffer; /* # of byte spaces remaining in buffer */ 720 | 721 | JMETHOD(void, init_destination, (j_compress_ptr cinfo)); 722 | JMETHOD(boolean, empty_output_buffer, (j_compress_ptr cinfo)); 723 | JMETHOD(void, term_destination, (j_compress_ptr cinfo)); 724 | }; 725 | 726 | 727 | /* Data source object for decompression */ 728 | 729 | struct jpeg_source_mgr { 730 | const JOCTET * next_input_byte; /* => next byte to read from buffer */ 731 | size_t bytes_in_buffer; /* # of bytes remaining in buffer */ 732 | 733 | JMETHOD(void, init_source, (j_decompress_ptr cinfo)); 734 | JMETHOD(boolean, fill_input_buffer, (j_decompress_ptr cinfo)); 735 | JMETHOD(void, skip_input_data, (j_decompress_ptr cinfo, long num_bytes)); 736 | JMETHOD(boolean, resync_to_restart, (j_decompress_ptr cinfo, int desired)); 737 | JMETHOD(void, term_source, (j_decompress_ptr cinfo)); 738 | }; 739 | 740 | 741 | /* Memory manager object. 742 | * Allocates "small" objects (a few K total), "large" objects (tens of K), 743 | * and "really big" objects (virtual arrays with backing store if needed). 744 | * The memory manager does not allow individual objects to be freed; rather, 745 | * each created object is assigned to a pool, and whole pools can be freed 746 | * at once. This is faster and more convenient than remembering exactly what 747 | * to free, especially where malloc()/free() are not too speedy. 748 | * NB: alloc routines never return NULL. They exit to error_exit if not 749 | * successful. 750 | */ 751 | 752 | #define JPOOL_PERMANENT 0 /* lasts until master record is destroyed */ 753 | #define JPOOL_IMAGE 1 /* lasts until done with image/datastream */ 754 | #define JPOOL_NUMPOOLS 2 755 | 756 | typedef struct jvirt_sarray_control * jvirt_sarray_ptr; 757 | typedef struct jvirt_barray_control * jvirt_barray_ptr; 758 | 759 | 760 | struct jpeg_memory_mgr { 761 | /* Method pointers */ 762 | JMETHOD(void *, alloc_small, (j_common_ptr cinfo, int pool_id, 763 | size_t sizeofobject)); 764 | JMETHOD(void FAR *, alloc_large, (j_common_ptr cinfo, int pool_id, 765 | size_t sizeofobject)); 766 | JMETHOD(JSAMPARRAY, alloc_sarray, (j_common_ptr cinfo, int pool_id, 767 | JDIMENSION samplesperrow, 768 | JDIMENSION numrows)); 769 | JMETHOD(JBLOCKARRAY, alloc_barray, (j_common_ptr cinfo, int pool_id, 770 | JDIMENSION blocksperrow, 771 | JDIMENSION numrows)); 772 | JMETHOD(jvirt_sarray_ptr, request_virt_sarray, (j_common_ptr cinfo, 773 | int pool_id, 774 | boolean pre_zero, 775 | JDIMENSION samplesperrow, 776 | JDIMENSION numrows, 777 | JDIMENSION maxaccess)); 778 | JMETHOD(jvirt_barray_ptr, request_virt_barray, (j_common_ptr cinfo, 779 | int pool_id, 780 | boolean pre_zero, 781 | JDIMENSION blocksperrow, 782 | JDIMENSION numrows, 783 | JDIMENSION maxaccess)); 784 | JMETHOD(void, realize_virt_arrays, (j_common_ptr cinfo)); 785 | JMETHOD(JSAMPARRAY, access_virt_sarray, (j_common_ptr cinfo, 786 | jvirt_sarray_ptr ptr, 787 | JDIMENSION start_row, 788 | JDIMENSION num_rows, 789 | boolean writable)); 790 | JMETHOD(JBLOCKARRAY, access_virt_barray, (j_common_ptr cinfo, 791 | jvirt_barray_ptr ptr, 792 | JDIMENSION start_row, 793 | JDIMENSION num_rows, 794 | boolean writable)); 795 | JMETHOD(void, free_pool, (j_common_ptr cinfo, int pool_id)); 796 | JMETHOD(void, self_destruct, (j_common_ptr cinfo)); 797 | 798 | /* Limit on memory allocation for this JPEG object. (Note that this is 799 | * merely advisory, not a guaranteed maximum; it only affects the space 800 | * used for virtual-array buffers.) May be changed by outer application 801 | * after creating the JPEG object. 802 | */ 803 | long max_memory_to_use; 804 | 805 | /* Maximum allocation request accepted by alloc_large. */ 806 | long max_alloc_chunk; 807 | }; 808 | 809 | 810 | /* Routine signature for application-supplied marker processing methods. 811 | * Need not pass marker code since it is stored in cinfo->unread_marker. 812 | */ 813 | typedef JMETHOD(boolean, jpeg_marker_parser_method, (j_decompress_ptr cinfo)); 814 | 815 | 816 | /* Declarations for routines called by application. 817 | * The JPP macro hides prototype parameters from compilers that can't cope. 818 | * Note JPP requires double parentheses. 819 | */ 820 | 821 | #ifdef HAVE_PROTOTYPES 822 | #define JPP(arglist) arglist 823 | #else 824 | #define JPP(arglist) () 825 | #endif 826 | 827 | 828 | /* Short forms of external names for systems with brain-damaged linkers. 829 | * We shorten external names to be unique in the first six letters, which 830 | * is good enough for all known systems. 831 | * (If your compiler itself needs names to be unique in less than 15 832 | * characters, you are out of luck. Get a better compiler.) 833 | */ 834 | 835 | #ifdef NEED_SHORT_EXTERNAL_NAMES 836 | #define jpeg_std_error jStdError 837 | #define jpeg_CreateCompress jCreaCompress 838 | #define jpeg_CreateDecompress jCreaDecompress 839 | #define jpeg_destroy_compress jDestCompress 840 | #define jpeg_destroy_decompress jDestDecompress 841 | #define jpeg_stdio_dest jStdDest 842 | #define jpeg_stdio_src jStdSrc 843 | #define jpeg_set_defaults jSetDefaults 844 | #define jpeg_set_colorspace jSetColorspace 845 | #define jpeg_default_colorspace jDefColorspace 846 | #define jpeg_set_quality jSetQuality 847 | #define jpeg_set_linear_quality jSetLQuality 848 | #define jpeg_add_quant_table jAddQuantTable 849 | #define jpeg_quality_scaling jQualityScaling 850 | #define jpeg_simple_progression jSimProgress 851 | #define jpeg_suppress_tables jSuppressTables 852 | #define jpeg_alloc_quant_table jAlcQTable 853 | #define jpeg_alloc_huff_table jAlcHTable 854 | #define jpeg_start_compress jStrtCompress 855 | #define jpeg_write_scanlines jWrtScanlines 856 | #define jpeg_finish_compress jFinCompress 857 | #define jpeg_write_raw_data jWrtRawData 858 | #define jpeg_write_marker jWrtMarker 859 | #define jpeg_write_m_header jWrtMHeader 860 | #define jpeg_write_m_byte jWrtMByte 861 | #define jpeg_write_tables jWrtTables 862 | #define jpeg_read_header jReadHeader 863 | #define jpeg_start_decompress jStrtDecompress 864 | #define jpeg_read_scanlines jReadScanlines 865 | #define jpeg_finish_decompress jFinDecompress 866 | #define jpeg_read_raw_data jReadRawData 867 | #define jpeg_has_multiple_scans jHasMultScn 868 | #define jpeg_start_output jStrtOutput 869 | #define jpeg_finish_output jFinOutput 870 | #define jpeg_input_complete jInComplete 871 | #define jpeg_new_colormap jNewCMap 872 | #define jpeg_consume_input jConsumeInput 873 | #define jpeg_calc_output_dimensions jCalcDimensions 874 | #define jpeg_save_markers jSaveMarkers 875 | #define jpeg_set_marker_processor jSetMarker 876 | #define jpeg_read_coefficients jReadCoefs 877 | #define jpeg_write_coefficients jWrtCoefs 878 | #define jpeg_copy_critical_parameters jCopyCrit 879 | #define jpeg_abort_compress jAbrtCompress 880 | #define jpeg_abort_decompress jAbrtDecompress 881 | #define jpeg_abort jAbort 882 | #define jpeg_destroy jDestroy 883 | #define jpeg_resync_to_restart jResyncRestart 884 | #endif /* NEED_SHORT_EXTERNAL_NAMES */ 885 | 886 | 887 | /* Default error-management setup */ 888 | EXTERN(struct jpeg_error_mgr *) jpeg_std_error 889 | JPP((struct jpeg_error_mgr * err)); 890 | 891 | /* Initialization of JPEG compression objects. 892 | * jpeg_create_compress() and jpeg_create_decompress() are the exported 893 | * names that applications should call. These expand to calls on 894 | * jpeg_CreateCompress and jpeg_CreateDecompress with additional information 895 | * passed for version mismatch checking. 896 | * NB: you must set up the error-manager BEFORE calling jpeg_create_xxx. 897 | */ 898 | #define jpeg_create_compress(cinfo) \ 899 | jpeg_CreateCompress((cinfo), JPEG_LIB_VERSION, \ 900 | (size_t) sizeof(struct jpeg_compress_struct)) 901 | #define jpeg_create_decompress(cinfo) \ 902 | jpeg_CreateDecompress((cinfo), JPEG_LIB_VERSION, \ 903 | (size_t) sizeof(struct jpeg_decompress_struct)) 904 | EXTERN(void) jpeg_CreateCompress JPP((j_compress_ptr cinfo, 905 | int version, size_t structsize)); 906 | EXTERN(void) jpeg_CreateDecompress JPP((j_decompress_ptr cinfo, 907 | int version, size_t structsize)); 908 | /* Destruction of JPEG compression objects */ 909 | EXTERN(void) jpeg_destroy_compress JPP((j_compress_ptr cinfo)); 910 | EXTERN(void) jpeg_destroy_decompress JPP((j_decompress_ptr cinfo)); 911 | 912 | /* Standard data source and destination managers: stdio streams. */ 913 | /* Caller is responsible for opening the file before and closing after. */ 914 | EXTERN(void) jpeg_stdio_dest JPP((j_compress_ptr cinfo, FILE * outfile)); 915 | EXTERN(void) jpeg_stdio_src JPP((j_decompress_ptr cinfo, FILE * infile)); 916 | 917 | /* Default parameter setup for compression */ 918 | EXTERN(void) jpeg_set_defaults JPP((j_compress_ptr cinfo)); 919 | /* Compression parameter setup aids */ 920 | EXTERN(void) jpeg_set_colorspace JPP((j_compress_ptr cinfo, 921 | J_COLOR_SPACE colorspace)); 922 | EXTERN(void) jpeg_default_colorspace JPP((j_compress_ptr cinfo)); 923 | EXTERN(void) jpeg_set_quality JPP((j_compress_ptr cinfo, int quality, 924 | boolean force_baseline)); 925 | EXTERN(void) jpeg_set_linear_quality JPP((j_compress_ptr cinfo, 926 | int scale_factor, 927 | boolean force_baseline)); 928 | EXTERN(void) jpeg_add_quant_table JPP((j_compress_ptr cinfo, int which_tbl, 929 | const unsigned int *basic_table, 930 | int scale_factor, 931 | boolean force_baseline)); 932 | EXTERN(int) jpeg_quality_scaling JPP((int quality)); 933 | EXTERN(void) jpeg_simple_progression JPP((j_compress_ptr cinfo)); 934 | EXTERN(void) jpeg_suppress_tables JPP((j_compress_ptr cinfo, 935 | boolean suppress)); 936 | EXTERN(JQUANT_TBL *) jpeg_alloc_quant_table JPP((j_common_ptr cinfo)); 937 | EXTERN(JHUFF_TBL *) jpeg_alloc_huff_table JPP((j_common_ptr cinfo)); 938 | 939 | /* Main entry points for compression */ 940 | EXTERN(void) jpeg_start_compress JPP((j_compress_ptr cinfo, 941 | boolean write_all_tables)); 942 | EXTERN(JDIMENSION) jpeg_write_scanlines JPP((j_compress_ptr cinfo, 943 | JSAMPARRAY scanlines, 944 | JDIMENSION num_lines)); 945 | EXTERN(void) jpeg_finish_compress JPP((j_compress_ptr cinfo)); 946 | 947 | /* Replaces jpeg_write_scanlines when writing raw downsampled data. */ 948 | EXTERN(JDIMENSION) jpeg_write_raw_data JPP((j_compress_ptr cinfo, 949 | JSAMPIMAGE data, 950 | JDIMENSION num_lines)); 951 | 952 | /* Write a special marker. See libjpeg.doc concerning safe usage. */ 953 | EXTERN(void) jpeg_write_marker 954 | JPP((j_compress_ptr cinfo, int marker, 955 | const JOCTET * dataptr, unsigned int datalen)); 956 | /* Same, but piecemeal. */ 957 | EXTERN(void) jpeg_write_m_header 958 | JPP((j_compress_ptr cinfo, int marker, unsigned int datalen)); 959 | EXTERN(void) jpeg_write_m_byte 960 | JPP((j_compress_ptr cinfo, int val)); 961 | 962 | /* Alternate compression function: just write an abbreviated table file */ 963 | EXTERN(void) jpeg_write_tables JPP((j_compress_ptr cinfo)); 964 | 965 | /* Decompression startup: read start of JPEG datastream to see what's there */ 966 | EXTERN(int) jpeg_read_header JPP((j_decompress_ptr cinfo, 967 | boolean require_image)); 968 | /* Return value is one of: */ 969 | #define JPEG_SUSPENDED 0 /* Suspended due to lack of input data */ 970 | #define JPEG_HEADER_OK 1 /* Found valid image datastream */ 971 | #define JPEG_HEADER_TABLES_ONLY 2 /* Found valid table-specs-only datastream */ 972 | /* If you pass require_image = TRUE (normal case), you need not check for 973 | * a TABLES_ONLY return code; an abbreviated file will cause an error exit. 974 | * JPEG_SUSPENDED is only possible if you use a data source module that can 975 | * give a suspension return (the stdio source module doesn't). 976 | */ 977 | 978 | /* Main entry points for decompression */ 979 | EXTERN(boolean) jpeg_start_decompress JPP((j_decompress_ptr cinfo)); 980 | EXTERN(JDIMENSION) jpeg_read_scanlines JPP((j_decompress_ptr cinfo, 981 | JSAMPARRAY scanlines, 982 | JDIMENSION max_lines)); 983 | EXTERN(boolean) jpeg_finish_decompress JPP((j_decompress_ptr cinfo)); 984 | 985 | /* Replaces jpeg_read_scanlines when reading raw downsampled data. */ 986 | EXTERN(JDIMENSION) jpeg_read_raw_data JPP((j_decompress_ptr cinfo, 987 | JSAMPIMAGE data, 988 | JDIMENSION max_lines)); 989 | 990 | /* Additional entry points for buffered-image mode. */ 991 | EXTERN(boolean) jpeg_has_multiple_scans JPP((j_decompress_ptr cinfo)); 992 | EXTERN(boolean) jpeg_start_output JPP((j_decompress_ptr cinfo, 993 | int scan_number)); 994 | EXTERN(boolean) jpeg_finish_output JPP((j_decompress_ptr cinfo)); 995 | EXTERN(boolean) jpeg_input_complete JPP((j_decompress_ptr cinfo)); 996 | EXTERN(void) jpeg_new_colormap JPP((j_decompress_ptr cinfo)); 997 | EXTERN(int) jpeg_consume_input JPP((j_decompress_ptr cinfo)); 998 | /* Return value is one of: */ 999 | /* #define JPEG_SUSPENDED 0 Suspended due to lack of input data */ 1000 | #define JPEG_REACHED_SOS 1 /* Reached start of new scan */ 1001 | #define JPEG_REACHED_EOI 2 /* Reached end of image */ 1002 | #define JPEG_ROW_COMPLETED 3 /* Completed one iMCU row */ 1003 | #define JPEG_SCAN_COMPLETED 4 /* Completed last iMCU row of a scan */ 1004 | 1005 | /* Precalculate output dimensions for current decompression parameters. */ 1006 | EXTERN(void) jpeg_calc_output_dimensions JPP((j_decompress_ptr cinfo)); 1007 | 1008 | /* Control saving of COM and APPn markers into marker_list. */ 1009 | EXTERN(void) jpeg_save_markers 1010 | JPP((j_decompress_ptr cinfo, int marker_code, 1011 | unsigned int length_limit)); 1012 | 1013 | /* Install a special processing method for COM or APPn markers. */ 1014 | EXTERN(void) jpeg_set_marker_processor 1015 | JPP((j_decompress_ptr cinfo, int marker_code, 1016 | jpeg_marker_parser_method routine)); 1017 | 1018 | /* Read or write raw DCT coefficients --- useful for lossless transcoding. */ 1019 | EXTERN(jvirt_barray_ptr *) jpeg_read_coefficients JPP((j_decompress_ptr cinfo)); 1020 | EXTERN(void) jpeg_write_coefficients JPP((j_compress_ptr cinfo, 1021 | jvirt_barray_ptr * coef_arrays)); 1022 | EXTERN(void) jpeg_copy_critical_parameters JPP((j_decompress_ptr srcinfo, 1023 | j_compress_ptr dstinfo)); 1024 | 1025 | /* If you choose to abort compression or decompression before completing 1026 | * jpeg_finish_(de)compress, then you need to clean up to release memory, 1027 | * temporary files, etc. You can just call jpeg_destroy_(de)compress 1028 | * if you're done with the JPEG object, but if you want to clean it up and 1029 | * reuse it, call this: 1030 | */ 1031 | EXTERN(void) jpeg_abort_compress JPP((j_compress_ptr cinfo)); 1032 | EXTERN(void) jpeg_abort_decompress JPP((j_decompress_ptr cinfo)); 1033 | 1034 | /* Generic versions of jpeg_abort and jpeg_destroy that work on either 1035 | * flavor of JPEG object. These may be more convenient in some places. 1036 | */ 1037 | EXTERN(void) jpeg_abort JPP((j_common_ptr cinfo)); 1038 | EXTERN(void) jpeg_destroy JPP((j_common_ptr cinfo)); 1039 | 1040 | /* Default restart-marker-resync procedure for use by data source modules */ 1041 | EXTERN(boolean) jpeg_resync_to_restart JPP((j_decompress_ptr cinfo, 1042 | int desired)); 1043 | 1044 | 1045 | /* These marker codes are exported since applications and data source modules 1046 | * are likely to want to use them. 1047 | */ 1048 | 1049 | #define JPEG_RST0 0xD0 /* RST0 marker code */ 1050 | #define JPEG_EOI 0xD9 /* EOI marker code */ 1051 | #define JPEG_APP0 0xE0 /* APP0 marker code */ 1052 | #define JPEG_COM 0xFE /* COM marker code */ 1053 | 1054 | 1055 | /* If we have a brain-damaged compiler that emits warnings (or worse, errors) 1056 | * for structure definitions that are never filled in, keep it quiet by 1057 | * supplying dummy definitions for the various substructures. 1058 | */ 1059 | 1060 | #ifdef INCOMPLETE_TYPES_BROKEN 1061 | #ifndef JPEG_INTERNALS /* will be defined in jpegint.h */ 1062 | struct jvirt_sarray_control { long dummy; }; 1063 | struct jvirt_barray_control { long dummy; }; 1064 | struct jpeg_comp_master { long dummy; }; 1065 | struct jpeg_c_main_controller { long dummy; }; 1066 | struct jpeg_c_prep_controller { long dummy; }; 1067 | struct jpeg_c_coef_controller { long dummy; }; 1068 | struct jpeg_marker_writer { long dummy; }; 1069 | struct jpeg_color_converter { long dummy; }; 1070 | struct jpeg_downsampler { long dummy; }; 1071 | struct jpeg_forward_dct { long dummy; }; 1072 | struct jpeg_entropy_encoder { long dummy; }; 1073 | struct jpeg_decomp_master { long dummy; }; 1074 | struct jpeg_d_main_controller { long dummy; }; 1075 | struct jpeg_d_coef_controller { long dummy; }; 1076 | struct jpeg_d_post_controller { long dummy; }; 1077 | struct jpeg_input_controller { long dummy; }; 1078 | struct jpeg_marker_reader { long dummy; }; 1079 | struct jpeg_entropy_decoder { long dummy; }; 1080 | struct jpeg_inverse_dct { long dummy; }; 1081 | struct jpeg_upsampler { long dummy; }; 1082 | struct jpeg_color_deconverter { long dummy; }; 1083 | struct jpeg_color_quantizer { long dummy; }; 1084 | #endif /* JPEG_INTERNALS */ 1085 | #endif /* INCOMPLETE_TYPES_BROKEN */ 1086 | 1087 | 1088 | /* 1089 | * The JPEG library modules define JPEG_INTERNALS before including this file. 1090 | * The internal structure declarations are read only when that is true. 1091 | * Applications using the library should not include jpegint.h, but may wish 1092 | * to include jerror.h. 1093 | */ 1094 | 1095 | #ifdef JPEG_INTERNALS 1096 | #include "jpegint.h" /* fetch private declarations */ 1097 | #include "jerror.h" /* fetch error codes too */ 1098 | #endif 1099 | 1100 | #ifdef __cplusplus 1101 | } 1102 | #endif 1103 | 1104 | #endif /* JPEGLIB_H */ 1105 | --------------------------------------------------------------------------------