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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 07.bitstream.semantics.md
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ luma and chroma.
The values of auto-regressive coefficients plus 128 for the luma component ArCoeffsYPlus128[ i ] are derived as follows
~~~~~ c
for ( i = 0; i < numPosLuma; i++ )
ArCoeffsYPlus128[ i ] = ar_coeffs_y[ i ] - (1<<(BitsArY - 1)).
ArCoeffsYPlus128[ i ] = ar_coeffs_y[ i ] - (1<<(BitsArY - 1)) + 128.
~~~~~

**bits_per_ar_coeff_cb_minus5** plus 5 specifies the number of bits used to signal ar_coeffs_cb[ i ].
Expand All @@ -546,7 +546,7 @@ for ( i = 0; i < numPosLuma; i++ )
The values of the auto-regressive coefficients plus 128 for the Cb component ArCoeffsCbPlus128[ i ] are derived as follows:
~~~~~ c
for ( i = 0; i < numPosChroma; i++ )
ArCoeffsCbPlus128[ i ] = ar_coeffs_cb[ i ] - (1<<(BitsArCb - 1)).
ArCoeffsCbPlus128[ i ] = ar_coeffs_cb[ i ] - (1<<(BitsArCb - 1)) + 128.
~~~~~

**bits_per_ar_coeff_cr_minus5** plus 5 specifies the number of bits used to signal ar_coeffs_cr[ i ].
Expand All @@ -556,7 +556,7 @@ for ( i = 0; i < numPosChroma; i++ )
The values of the auto-regressive coefficients plus 128 for the Cr component ArCoeffsCrPlus128[ i ] are derived as follows:
~~~~~ c
for ( i = 0; i < numPosChroma; i++ )
ArCoeffsCrPlus128[ i ] = ar_coeffs_cr[ i ] - (1<<(BitsArCr - 1)).
ArCoeffsCrPlus128[ i ] = ar_coeffs_cr[ i ] - (1<<(BitsArCr - 1)) + 128.
~~~~~

**ar_coeff_shift_minus6** specifies the range of the auto-regressive coefficients. Values of 0, 1, 2, and 3
Expand Down