| 62 |
|
|
| 63 |
|
extern int checksymbolic(ROPMAT *rop); |
| 64 |
|
|
| 65 |
+ |
/* Split input matrices to allow for certain operations */ |
| 66 |
|
int |
| 67 |
|
split_input(ROPMAT *rop) |
| 68 |
|
{ |
| 301 |
|
return(1); |
| 302 |
|
} |
| 303 |
|
|
| 304 |
+ |
/* Set up color transform for matrix */ |
| 305 |
|
int |
| 306 |
|
get_component_xfm(ROPMAT *rop) |
| 307 |
|
{ |
| 385 |
|
return(1); |
| 386 |
|
} |
| 387 |
|
|
| 388 |
+ |
/* Apply the given color transform and/or scaling operation */ |
| 389 |
|
int |
| 390 |
|
apply_op(RMATRIX *dst, const RMATRIX *src, const RUNARYOP *ro) |
| 391 |
|
{ |
| 405 |
|
return(1); |
| 406 |
|
} |
| 407 |
|
|
| 408 |
+ |
/* Open the associated input file and load/check header */ |
| 409 |
|
int |
| 410 |
|
open_input(ROPMAT *rop) |
| 411 |
|
{ |
| 477 |
|
return(mop[mi].rmp->mtx[cur_col*in_ncomp + chan]); |
| 478 |
|
} |
| 479 |
|
|
| 480 |
+ |
/* Set up our operations and check consistency */ |
| 481 |
|
int |
| 482 |
|
initialize(RMATRIX *imp) |
| 483 |
|
{ |
| 525 |
|
return(1); |
| 526 |
|
} |
| 527 |
|
|
| 528 |
+ |
/* Copy input header information to output header, indented */ |
| 529 |
|
void |
| 530 |
|
output_headinfo(FILE *fp) |
| 531 |
|
{ |
| 549 |
|
} |
| 550 |
|
} |
| 551 |
|
|
| 552 |
+ |
/* Spawn the indicated number of children and return 1 in parent */ |
| 553 |
|
int |
| 554 |
|
spawned_children(int np) |
| 555 |
|
{ |
| 657 |
|
exit(1); |
| 658 |
|
} |
| 659 |
|
|
| 660 |
+ |
/* Run parental feeder loop */ |
| 661 |
|
int |
| 662 |
|
parent_loop(void) |
| 663 |
|
{ |
| 707 |
|
return(1); /* return success! */ |
| 708 |
|
} |
| 709 |
|
|
| 710 |
+ |
/* Main operation loop, may be run in each child */ |
| 711 |
|
int |
| 712 |
|
combine_input(void) |
| 713 |
|
{ |
| 803 |
|
return(0); |
| 804 |
|
} |
| 805 |
|
|
| 806 |
+ |
/* Run output process loop when #processes > 1 */ |
| 807 |
|
int |
| 808 |
|
output_loop(void) |
| 809 |
|
{ |
| 843 |
|
return(fflush(stdout) != EOF); |
| 844 |
|
} |
| 845 |
|
|
| 846 |
+ |
/* Check/convert floating-point arguments following this */ |
| 847 |
|
int |
| 848 |
|
get_factors(double da[], int n, char *av[]) |
| 849 |
|
{ |
| 854 |
|
return(ac); |
| 855 |
|
} |
| 856 |
|
|
| 857 |
+ |
/* Resize/reallocate the input array as requested */ |
| 858 |
|
void |
| 859 |
|
resize_inparr(int n2alloc) |
| 860 |
|
{ |