4 releases
0.1.9 | Oct 17, 2024 |
---|---|
0.1.8 | Aug 4, 2024 |
0.1.7 | Jul 7, 2024 |
0.1.6 | Apr 25, 2024 |
0.1.0 |
|
#14 in Multimedia
89,885 downloads per month
Used in 14 crates
(7 directly)
26KB
517 lines
YUV formats
This crate implements conversions from YUV/YCbCr formats to RGB. It also contains enums/constants for describing color spaces common in video formats.
Currently it's in an early stage, implementing subset needed for decoding AV1/AVIF.
Implemented
- Matrix conversion for BT601, BT709, FCC, BT470BG, SMPTE240
- YCgCo (untested)
- Identity pass-through (GBR)
- Studio and full range colors
- 8-bit, and 10/12 to 16-bit conversions
Planned
- Gamma conversion
- Color primaries conversion
- Chroma upsampling
- RGB to YUV conversion
- YUV pixel convenience functions, like in
rgb
- 8-to-16-bit expanding conversion
- HDR to SDR conversion?
- Maybe HDR support?
lib.rs
:
This crate contains two things:
Dependencies
~290KB