ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/tonemap.c
(Generate patch)

Comparing ray/src/common/tonemap.c (file contents):
Revision 3.38 by greg, Wed Jan 6 19:25:00 2021 UTC vs.
Revision 3.39 by greg, Wed Jan 6 20:34:10 2021 UTC

# Line 379 | Line 379 | int    wt
379                  if (newhist == NULL)
380                          returnErr(TM_E_NOMEM);
381                  if (oldlen) {                   /* copy and free old */
382 <                        memcpy((MEM_PTR)newhist+(oldorig-horig),
382 >                        memcpy((MEM_PTR)(newhist+(oldorig-horig)),
383                                  (MEM_PTR)tms->histo, oldlen*sizeof(HIST_TYP));
384                          free((MEM_PTR)tms->histo);
385                  }
# Line 457 | Line 457 | double Ldmax
457          HIST_TYP        *histo;
458          float   *cumf;
459          int     brt0, histlen;
460 <        HIST_TYP        threshold, ceiling, trimmings;
460 >        HIST_TYP        threshold, ceiling, trimmings, histot;
461          double  logLddyn, Ldmin, Ldavg, Lwavg, Tr, Lw, Ld;
462        HIST_TYP        histot;
462          double  sum;
463          double  d;
464          int     i, j;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines