forked from haasn/libplacebo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shaders/av1: refactor and split up
pl_grain_params
Move the raw data (from the header itself) into a separate struct `pl_av1_grain_data` and, in libplacebo style, have the `params` include the fields that currently spill over into the parameter list. The split is intended to enable attaching `pl_av1_grain_data` as metadata to the renderer's `pl_image` struct without needing to introduce reduncancy with `repr`, `channels` etc. This also changes the signature (adds a return value) and introduces a new helper function for testing whether or not grain needs to be applied at all.
- Loading branch information
Showing
5 changed files
with
146 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.