comparison src/imgproc.c @ 3025:facf3239ba30

[xemacs-hg @ 2005-10-25 11:16:19 by ben] rename new->new_, convert 'foo to `foo' EmacsFrame.c, ExternalClient.c, ExternalShell.c, chartab.c, cmdloop.c, compiler.h, console.c, database.c, device-msw.c, device-x.c, device.c, doc.c, dragdrop.c, eval.c, event-msw.c, event-stream.c, events.c, extents.c, file-coding.c, fns.c, frame-tty.c, frame.c, gpmevent.c, gutter.c, hash.c, imgproc.c, indent.c, keymap.c, lisp-union.h, macros.c, malloc.c, marker.c, menubar-x.c, menubar.c, mule-charset.c, number.c, process.c, profile.h, ralloc.c, redisplay.c, select-common.h, select.c, syntax.c, sysfile.h, sysproc.h, systime.h, syswindows.h, toolbar.c, tooltalk.c, tparam.c, unexaix.c, unexalpha.c, unexconvex.c, unexec.c, unexhp9k800.c, unexmips.c, unicode.c, window.c: new -> new_. 'foo -> `foo'. lwlib-internal.h: redo assert macros to follow lisp.h and not trigger warnings. lwlib.c, xlwtabs.c: new -> new_.
author ben
date Tue, 25 Oct 2005 11:16:49 +0000
parents ecf1ebac70d8
children 16112448d484
comparison
equal deleted inserted replaced
3024:b7f26b2f78bd 3025:facf3239ba30
200 static void 200 static void
201 splitbox(quant_table *qt, Colorbox* ptr) 201 splitbox(quant_table *qt, Colorbox* ptr)
202 { 202 {
203 int hist2[B_LEN]; 203 int hist2[B_LEN];
204 int first = 0, last = 0; 204 int first = 0, last = 0;
205 register Colorbox *new; 205 register Colorbox *new_;
206 register int *iptr, *histp; 206 register int *iptr, *histp;
207 register int i, j; 207 register int i, j;
208 register int ir,ig,ib; 208 register int ir,ig,ib;
209 register int sum, sum1, sum2; 209 register int sum, sum1, sum2;
210 enum { RED, GREEN, BLUE } axis; 210 enum { RED, GREEN, BLUE } axis;
284 ; 284 ;
285 if (i == first) 285 if (i == first)
286 i++; 286 i++;
287 287
288 /* Create new box, re-allocate points */ 288 /* Create new box, re-allocate points */
289 new = qt->freeboxes; 289 new_ = qt->freeboxes;
290 qt->freeboxes = new->next; 290 qt->freeboxes = new_->next;
291 if (qt->freeboxes) 291 if (qt->freeboxes)
292 qt->freeboxes->prev = NULL; 292 qt->freeboxes->prev = NULL;
293 if (qt->usedboxes) 293 if (qt->usedboxes)
294 qt->usedboxes->prev = new; 294 qt->usedboxes->prev = new_;
295 new->next = qt->usedboxes; 295 new_->next = qt->usedboxes;
296 qt->usedboxes = new; 296 qt->usedboxes = new_;
297 297
298 histp = &hist2[first]; 298 histp = &hist2[first];
299 for (sum1 = 0, j = first; j < i; j++) 299 for (sum1 = 0, j = first; j < i; j++)
300 sum1 += *histp++; 300 sum1 += *histp++;
301 for (sum2 = 0, j = i; j <= last; j++) 301 for (sum2 = 0, j = i; j <= last; j++)
302 sum2 += *histp++; 302 sum2 += *histp++;
303 new->total = sum1; 303 new_->total = sum1;
304 ptr->total = sum2; 304 ptr->total = sum2;
305 305
306 new->rmin = ptr->rmin; 306 new_->rmin = ptr->rmin;
307 new->rmax = ptr->rmax; 307 new_->rmax = ptr->rmax;
308 new->gmin = ptr->gmin; 308 new_->gmin = ptr->gmin;
309 new->gmax = ptr->gmax; 309 new_->gmax = ptr->gmax;
310 new->bmin = ptr->bmin; 310 new_->bmin = ptr->bmin;
311 new->bmax = ptr->bmax; 311 new_->bmax = ptr->bmax;
312 switch (axis) 312 switch (axis)
313 { 313 {
314 case RED: 314 case RED:
315 new->rmax = i-1; 315 new_->rmax = i-1;
316 ptr->rmin = i; 316 ptr->rmin = i;
317 break; 317 break;
318 case GREEN: 318 case GREEN:
319 new->gmax = i-1; 319 new_->gmax = i-1;
320 ptr->gmin = i; 320 ptr->gmin = i;
321 break; 321 break;
322 case BLUE: 322 case BLUE:
323 new->bmax = i-1; 323 new_->bmax = i-1;
324 ptr->bmin = i; 324 ptr->bmin = i;
325 break; 325 break;
326 } 326 }
327 shrinkbox (qt, new); 327 shrinkbox (qt, new_);
328 shrinkbox (qt, ptr); 328 shrinkbox (qt, ptr);
329 } 329 }
330 330
331 331
332 static C_cell * 332 static C_cell *