av1-grain
This crate contains helper functions for parsing and generating AV1 film grain data.
This code was originally created for use in rav1e. It has been moved to this crate so it can be shared with other AV1 crates that need to deal with film grain.
Examples
The generate_photon_noise_params and write_grain_table APIs live behind the
create feature. Enable it in your project to produce plain-text photon noise tables
compatible with svt-av1, aomenc, and similar encoders:
use ;
Running this program generates a photon noise table covering the entire video
(start_time 0 to end_time u64::MAX) and stores it in example.tbl. The
file extension is arbitrary; .tbl is a common choice.