Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offset AR coefficients to get the AV1 range #116

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andrey-norkin
Copy link
Contributor

@andrey-norkin andrey-norkin commented Mar 7, 2024

Shift AR parameters to get them to AV1 range. An alternative would be to not subtract 128 in the film grain synthesis algorithm, but this would make the implementation slightly different from AV1.

@haasn
Copy link
Collaborator

haasn commented Mar 8, 2024

An alternative would be to not subtract 128 in the film grain synthesis algorithm, but this would make the implementation slightly different from AV1.

Strongly disapprove of deviating the synthesis implementation, so adding the +128 here seems like the best solution to me. Implementers in practice will know to skip the redundant addition/subtraction anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Derivation of ArCoeffsYPlus128 etc. doesn't make sense
2 participants