ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/color.c
Revision 2.33 - (view) (download) (annotate) - [select for diffs]
Wed Jan 17 16:06:56 2024 UTC (2 months, 1 week ago) by greg
Branch: MAIN
CVS Tags: HEAD
Changes since 2.32: +16 -1 lines
Diff to previous 2.32
feat: added missing call for scolr2color()

Revision 2.32 - (view) (download) (annotate) - [select for diffs]
Thu Dec 7 23:16:58 2023 UTC (3 months, 2 weeks ago) by greg
Branch: MAIN
Changes since 2.31: +14 -4 lines
Diff to previous 2.31
feat: added support for runlength-encoded i/o using common spectral calls

Revision 2.31 - (view) (download) (annotate) - [select for diffs]
Mon Nov 27 21:00:14 2023 UTC (4 months ago) by greg
Branch: MAIN
Changes since 2.30: +9 -9 lines
Diff to previous 2.30
refactor: Added number of spectral samples and wavelength splits to arguments

Revision 2.30 - (view) (download) (annotate) - [select for diffs]
Tue Nov 21 01:30:20 2023 UTC (4 months, 1 week ago) by greg
Branch: MAIN
Changes since 2.29: +58 -3 lines
Diff to previous 2.29
feat(rmtxop): Added handling of Radiance spectral pictures as matrices

Revision 2.29 - (view) (download) (annotate) - [select for diffs]
Fri Nov 17 21:51:58 2023 UTC (4 months, 1 week ago) by greg
Branch: MAIN
Changes since 2.28: +7 -3 lines
Diff to previous 2.28
perf: minor optimization

Revision 2.28 - (view) (download) (annotate) - [select for diffs]
Fri Nov 17 20:02:07 2023 UTC (4 months, 1 week ago) by greg
Branch: MAIN
Changes since 2.27: +2 -2 lines
Diff to previous 2.27
fix: multiple bug fixes in hyperspectral code, added rvu, mkillum, rsensor, and ranimove to "working except photon map" status

Revision 2.27 - (view) (download) (annotate) - [select for diffs]
Wed Nov 15 18:02:52 2023 UTC (4 months, 1 week ago) by greg
Branch: MAIN
Changes since 2.26: +287 -25 lines
Diff to previous 2.26
feat(rpict,rtrace,rcontrib,rtpict): Hyperspectral rendering (except photon map)

Revision 2.26 - (view) (download) (annotate) - [select for diffs]
Sat Jul 1 01:31:17 2023 UTC (8 months, 4 weeks ago) by greg
Branch: MAIN
CVS Tags: rad5R4
Changes since 2.25: +6 -9 lines
Diff to previous 2.25
fix: Better fix to potential vulnerability from malicious/corrupted image

Revision 2.25 - (view) (download) (annotate) - [select for diffs]
Fri Jun 30 15:00:32 2023 UTC (8 months, 4 weeks ago) by greg
Branch: MAIN
Changes since 2.24: +3 -4 lines
Diff to previous 2.24
fix: undid last change, as the way freadcolrs calls oldreadcolrs can cause bug

Revision 2.24 - (view) (download) (annotate) - [select for diffs]
Fri Jun 30 00:58:47 2023 UTC (8 months, 4 weeks ago) by greg
Branch: MAIN
Changes since 2.23: +4 -3 lines
Diff to previous 2.23
fix: protection against malicious or corrupted input

Revision 2.23 - (view) (download) (annotate) - [select for diffs]
Sat Dec 3 21:37:26 2022 UTC (15 months, 3 weeks ago) by greg
Branch: MAIN
Changes since 2.22: +31 -3 lines
Diff to previous 2.22
docs: Randolph Fritz added some useful comments describing encoding

Revision 2.22 - (view) (download) (annotate) - [select for diffs]
Sat Mar 5 17:18:02 2022 UTC (2 years ago) by greg
Branch: MAIN
Changes since 2.21: +17 -8 lines
Diff to previous 2.21
refactor: changed char *tempbuffer() to void *tempbuffer()

Revision 2.21 - (view) (download) (annotate) - [select for diffs]
Mon May 27 15:44:26 2019 UTC (4 years, 10 months ago) by greg
Branch: MAIN
CVS Tags: rad5R3
Changes since 2.20: +4 -4 lines
Diff to previous 2.20
Fixed potential bug where RGB=(0.01953125 0.01953125 1)*2^N for any N could encode as an RLE start sequence

Revision 2.20 - (view) (download) (annotate) - [select for diffs]
Sat Feb 23 19:11:25 2019 UTC (5 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.19: +20 -19 lines
Diff to previous 2.19
Minor efficiency improvements and additional checks

Revision 2.19 - (view) (download) (annotate) - [select for diffs]
Tue Apr 10 23:42:52 2018 UTC (5 years, 11 months ago) by greg
Branch: MAIN
CVS Tags: rad5R2
Changes since 2.18: +3 -2 lines
Diff to previous 2.18
Forgot one #undef

Revision 2.18 - (view) (download) (annotate) - [select for diffs]
Tue Apr 10 23:38:40 2018 UTC (5 years, 11 months ago) by greg
Branch: MAIN
Changes since 2.17: +5 -6 lines
Diff to previous 2.17
Made reading uncompressed scanlines a bit faster

Revision 2.17 - (view) (download) (annotate) - [select for diffs]
Sat May 31 20:13:31 2014 UTC (9 years, 9 months ago) by greg
Branch: MAIN
CVS Tags: rad4R2, rad4R2P1, rad4R2P2, rad5R0, rad5R1
Changes since 2.16: +50 -41 lines
Diff to previous 2.16
Long overdue ANSIfication

Revision 2.16 - (view) (download) (annotate) - [select for diffs]
Wed Feb 9 00:00:17 2005 UTC (19 years, 1 month ago) by greg
Branch: MAIN
CVS Tags: rad3R7P1, rad3R7P2, rad3R8, rad3R9, rad4R0, rad4R1
Changes since 2.15: +7 -2 lines
Diff to previous 2.15
Added checks for overrun scanlines

Revision 2.15 - (view) (download) (annotate) - [select for diffs]
Tue Sep 14 02:53:50 2004 UTC (19 years, 6 months ago) by greg
Branch: MAIN
CVS Tags: rad3R6, rad3R6P1
Changes since 2.14: +3 -1 lines
Diff to previous 2.14
Added #undef for getc/putc where they were being replaced

Revision 2.14 - (view) (download) (annotate) - [select for diffs]
Tue Dec 9 15:51:42 2003 UTC (20 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.13: +6 -1 lines
Diff to previous 2.13
Added redirection for getc() and putc() on threaded C library

Revision 2.13 - (view) (download) (annotate) - [select for diffs]
Sun Jul 27 22:12:01 2003 UTC (20 years, 8 months ago) by schorsch
Branch: MAIN
Changes since 2.12: +3 -3 lines
Diff to previous 2.12
Added grouping parens to reduce ambiguity warnings.

Revision 2.12 - (view) (download) (annotate) - [select for diffs]
Wed Apr 23 00:52:33 2003 UTC (20 years, 11 months ago) by greg
Branch: MAIN
Changes since 2.11: +1 -1 lines
Diff to previous 2.11
Added (void *) cast to realloc calls

Revision 2.11 - (view) (download) (annotate) - [select for diffs]
Mon Apr 7 15:43:08 2003 UTC (20 years, 11 months ago) by greg
Branch: MAIN
Changes since 2.10: +13 -3 lines
Diff to previous 2.10
Updated man pages and fixed ages old bug in conversion of negative colors

Revision 2.10 - (view) (download) (annotate) - [select for diffs]
Tue Feb 25 02:47:21 2003 UTC (21 years, 1 month ago) by greg
Branch: MAIN
CVS Tags: rad3R5
Changes since 2.9: +1 -56 lines
Diff to previous 2.9
Replaced inline copyright notice with #include "copyright.h"

Revision 2.9 - (view) (download) (annotate) - [select for diffs]
Sat Feb 22 02:07:22 2003 UTC (21 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.8: +117 -50 lines
Diff to previous 2.8
Changes and check-in for 3.5 release
Includes new source files and modifications not recorded for many years
See ray/doc/notes/ReleaseNotes for notes between 3.1 and 3.5 release

Revision 2.8 - (view) (download) (annotate) - [select for diffs]
Sat Mar 26 13:44:38 1994 UTC (30 years ago) by greg
Branch: MAIN
Changes since 2.7: +1 -1 lines
Diff to previous 2.7
bug avoidance in setcolr()

Revision 2.7 - (view) (download) (annotate) - [select for diffs]
Fri Jun 4 14:51:39 1993 UTC (30 years, 10 months ago) by greg
Branch: MAIN
Changes since 2.6: +2 -4 lines
Diff to previous 2.6
removed incompatible atof(), ldexp() and frexp() defines

Revision 2.6 - (view) (download) (annotate) - [select for diffs]
Tue Mar 2 09:09:51 1993 UTC (31 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.5: +6 -5 lines
Diff to previous 2.5
minor efficiency improvement in freadcolrs()

Revision 2.5 - (view) (download) (annotate) - [select for diffs]
Fri Feb 26 10:08:50 1993 UTC (31 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.4: +4 -3 lines
Diff to previous 2.4
hopefully fixed problem for 2-byte int compilers

Revision 2.4 - (view) (download) (annotate) - [select for diffs]
Fri Oct 2 15:59:58 1992 UTC (31 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.3: +4 -1 lines
Diff to previous 2.3
Removed problematic math function declarations

Revision 2.3 - (view) (download) (annotate) - [select for diffs]
Mon Jun 29 22:40:28 1992 UTC (31 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.2: +1 -1 lines
Diff to previous 2.2
additional check in freadcolrs() for long scanline

Revision 2.2 - (view) (download) (annotate) - [select for diffs]
Tue Jun 23 10:59:34 1992 UTC (31 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.1: +4 -5 lines
Diff to previous 2.1
made longer scanlines possible by switching off RLE

Revision 2.1 - (view) (download) (annotate) - [select for diffs]
Tue Nov 12 16:55:34 1991 UTC (32 years, 4 months ago) by greg
Branch: MAIN
Changes since 1.15: +0 -0 lines
Diff to previous 1.15
updated revision number for release 2.0

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Wed Aug 28 08:39:47 1991 UTC (32 years, 7 months ago) by greg
Branch: MAIN
Changes since 1.14: +11 -1 lines
Diff to previous 1.14
slight improvement to run-length encoding

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Fri Aug 23 12:33:49 1991 UTC (32 years, 7 months ago) by greg
Branch: MAIN
Changes since 1.13: +131 -105 lines
Diff to previous 1.13
changed encoding of scanlines

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Fri Oct 19 11:13:02 1990 UTC (33 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.12: +0 -42 lines
Diff to previous 1.12
moved normcolrs() to colrops.c

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Sat Sep 22 10:45:42 1990 UTC (33 years, 6 months ago) by greg
Branch: MAIN
Changes since 1.11: +0 -138 lines
Diff to previous 1.11
removed spec_rgb.c and resolu.c for separate compilation

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Thu Aug 30 09:13:21 1990 UTC (33 years, 7 months ago) by greg
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10
fixed typo in comment (whew! -- I'll call it quits for today!)

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Fri Jan 26 08:21:45 1990 UTC (34 years, 2 months ago) by greg
Branch: MAIN
Changes since 1.9: +4 -3 lines
Diff to previous 1.9
added scale factor to normcolrs()

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Mon Nov 6 15:10:24 1989 UTC (34 years, 4 months ago) by greg
Branch: MAIN
Changes since 1.8: +10 -8 lines
Diff to previous 1.8
added rounding to normcolrs()

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Fri Oct 20 20:35:22 1989 UTC (34 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.7: +31 -28 lines
Diff to previous 1.7
second cut on color normalization

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Fri Oct 20 16:53:01 1989 UTC (34 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.6: +14 -0 lines
Diff to previous 1.6
moved bigdiff() from image.c to color.c (more logical)

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Fri Oct 20 16:45:26 1989 UTC (34 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.5: +37 -1 lines
Diff to previous 1.5
added macros and routines for normalized short colors

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Wed Sep 13 16:35:14 1989 UTC (34 years, 6 months ago) by greg
Branch: MAIN
Changes since 1.4: +46 -0 lines
Diff to previous 1.4
Added routines for getting and putting picture resolution

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Thu May 11 22:15:57 1989 UTC (34 years, 10 months ago) by greg
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3
Fixed overflow problem in setcolr with exponent assignment

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Thu May 11 21:22:38 1989 UTC (34 years, 10 months ago) by greg
Branch: MAIN
Changes since 1.2: +0 -30 lines
Diff to previous 1.2
deleted frexp() routine

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Wed Mar 15 13:48:37 1989 UTC (35 years ago) by greg
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1
added cast to unsigned value

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Thu Feb 2 10:34:29 1989 UTC (35 years, 2 months ago) by greg
Branch: MAIN
Initial revision

Convenience Links

Links to HEAD: (view) (download) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a