ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/Development/ray/src/util/rcomb.c
(Generate patch)

Comparing ray/src/util/rcomb.c (file contents):
Revision 2.33 by greg, Sat Aug 2 20:37:52 2025 UTC vs.
Revision 2.34 by greg, Tue Aug 5 16:40:10 2025 UTC

# Line 62 | Line 62 | int            inchild = -1;                   /* our child ID (-1: parent) */
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   {
# Line 300 | Line 301 | checksymbolic(ROPMAT *rop)
301          return(1);
302   }
303  
304 + /* Set up color transform for matrix */
305   int
306   get_component_xfm(ROPMAT *rop)
307   {
# Line 383 | Line 385 | get_component_xfm(ROPMAT *rop)
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   {
# Line 402 | Line 405 | apply_op(RMATRIX *dst, const RMATRIX *src, const RUNAR
405          return(1);
406   }
407  
408 + /* Open the associated input file and load/check header */
409   int
410   open_input(ROPMAT *rop)
411   {
# Line 473 | Line 477 | l_chanin(char *nam)
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   {
# Line 520 | Line 525 | initialize(RMATRIX *imp)
525          return(1);
526   }
527  
528 + /* Copy input header information to output header, indented */
529   void
530   output_headinfo(FILE *fp)
531   {
# Line 543 | Line 549 | output_headinfo(FILE *fp)
549          }
550   }
551  
552 + /* Spawn the indicated number of children and return 1 in parent */
553   int
554   spawned_children(int np)
555   {
# Line 650 | Line 657 | memerror:
657          exit(1);
658   }
659  
660 + /* Run parental feeder loop */
661   int
662   parent_loop(void)
663   {
# Line 699 | Line 707 | parent_loop(void)
707          return(1);                              /* return success! */
708   }
709  
710 + /* Main operation loop, may be run in each child */
711   int
712   combine_input(void)
713   {
# Line 794 | Line 803 | multerror:
803          return(0);
804   }
805  
806 + /* Run output process loop when #processes > 1 */
807   int
808   output_loop(void)
809   {
# Line 833 | Line 843 | output_loop(void)
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   {
# Line 843 | Line 854 | get_factors(double da[], int n, char *av[])
854          return(ac);
855   }
856  
857 + /* Resize/reallocate the input array as requested */
858   void
859   resize_inparr(int n2alloc)
860   {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)