Allocate an AVFilmGrainParams structure and set its fields to default values. The resulting struct can be freed using av_freep(). If size is not NULL it will be set to the number of bytes allocated.
Allocate a complete AVFilmGrainParams and add it to the frame.
This structure describes how to handle film grain synthesis for AOM codecs.
This structure describes how to handle film grain synthesis in video for specific codecs. Must be present on every frame where film grain is meant to be synthesised for correct presentation.