yuv

Crates.ioyuv
lib.rsyuv
version0.1.9
sourcesrc
created_at2020-09-06 20:15:25.017248
updated_at2024-10-17 11:55:12.804999
descriptionConversion between various YUV (YCbCr) formats and RGB
homepagehttps://lib.rs/crates/yuv
repositoryhttps://github.com/kornelski/yuv.git
max_upload_size
id285515
size26,715
maintainers (github:rust-bus:maintainers)

documentation

README

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?
Commit count: 19

cargo fmt