Commit Graph
27 Commits
Author SHA1 Message Date
Jeremy Pritts bed45ee60e Rename IColorBase to IColor 2023-11-17 11:01:39 -05:00
Jeremy Pritts 1f1dd55e85 .NET 8 2023-11-16 18:42:55 -05:00
Jeremy Pritts c57303ff6b Simplify NumericConversion for signed integers 2023-10-06 23:22:05 -04:00
Jeremy Pritts bd834212ad Support nint, nuint, and NFloat 2023-10-06 23:16:16 -04:00
Jeremy Pritts c16bec4431 Generic color struct constructors 2023-10-06 13:56:34 -04:00
Jeremy Pritts b721294e62 Use safe min and max methods for generic colors 2023-09-30 12:20:30 -04:00
Jeremy Pritts 6980a32759 More efficient Yuy2 decoding
* Rename ColorExtensions to Color
* Remove constraints on NumericConversion.GetXXXValue()
2023-09-30 12:13:49 -04:00
Jeremy Pritts 81e2a38829 Refactor Color Metadata
* Remove RgbaAttribute
* Add IColorBase interface
* Add ChannelType static property
* Add ChannelsAreFullyUtilized static property
2023-09-30 11:39:15 -04:00
Jeremy Pritts 850f7f335a Formatting 2023-09-30 10:49:53 -04:00
Jeremy Pritts 061968eeb8 Bump nuget references 2023-09-16 19:09:49 -04:00
Jeremy Pritts f90871bd03 Support Int128 and UInt128 2023-08-02 20:00:50 -04:00
Jeremy Pritts c578ab204b Remove ColorRGB32Half
* Related: #17
2023-08-02 17:27:57 -04:00
Jeremy Pritts aea54da07a Generic Color Structs
* Resolves #42
* Removes many of the nongeneric structs
* Unit tests for ColorRGB32Half are disabled (#17)
2023-08-02 03:52:34 -04:00
Jeremy Pritts 18a5b27333 Fix bug in NumericConversion 2023-08-02 01:33:37 -04:00
Jeremy Pritts ddcb97be28 Support int, uint, long, ulong, and decimal in IColor<T> 2023-08-01 21:51:29 -04:00
Jeremy Pritts 959f6584b2 Remove HalfConstants 2023-08-01 17:58:11 -04:00
Jeremy Pritts 8f4390a315 Apply readonly to color properties and methods 2023-08-01 16:50:17 -04:00
Jeremy Pritts 20c835e821 Add static abstract properties to IColor<T> 2023-08-01 09:54:32 -04:00
Jeremy Pritts 7c6ac4ba0e Support double precision channels 2023-06-22 10:45:36 -04:00
Jeremy Pritts fb48fa3b94 Add back support for earlier .NET versions, which was previously removed in 92d1909562 2022-11-23 16:18:31 -05:00
Jeremy Pritts e2fba56e81 More optimized code generation:
* Use Half.One instead of (Half)1
* No generic instantiation for GetChannels or SetChannels
* In SetChannels, only set properties that are actually used
2022-11-17 19:47:13 -05:00
Jeremy Pritts 92d1909562 Bump to .NET 7 2022-11-17 19:27:19 -05:00
Jeremy Pritts 18abd1731b Standardize naming for floating point rgb formats 2022-11-07 09:58:53 -05:00
Naomi b4ad9bcb39 Add R11G11B10FloatToBGRA32 (#17)
* Add R11G11B10FloatToBGRA32 and ColorRGB32Half

* Requested changes.

* spaces to tabs

* Assert.Multiple
2022-11-06 23:26:54 -05:00
Jeremy Pritts 07c653873b Add an RgbaAttribute to all RGB formats 2022-11-05 00:03:58 -04:00
Jeremy Pritts 03373afddb Clean up the color source generator 2022-11-04 23:41:15 -04:00
Jeremy Pritts 35ed50dc26 Signed RGB color support with new source generation for standard RGB formats 2022-11-04 21:06:28 -04:00