Systems and methods for applying adaptive loop filters in video coding
A device may be configured to apply adaptive loop filters according to one or more of the techniques described herein.
1. A method of modifying a reconstructed sample value, the method comprising:
determining a current reconstructed sample value curr;
determining a variable alfShiftY for a shift operation according to a vertical position;
determining a sum value S;
determining a modified sum value being equivalent to a value of MS in the following equation,
MS =curr+(( S +(1<<alfShift Y >>1))>>alfShift Y ); and
calculating a modified reconstructed sample value by using the modified sum value.
2. The method of claim 1 , wherein the modified reconstructed sample value is a luma value.
3. The method of claim 1 , wherein the modified reconstructed sample value is a chroma value.
4. A device comprising one or more processors configured to:
determine a current reconstructed sample value curr;
determine a variable alfShiftY for a shift operation according to a vertical position;
determine a sum value S;
determine a modified sum value being equivalent to a value of MS in the following equation,
MS =curr+(( S +(1<<alfShift Y >>1))>>alfShift Y ); and
calculate a modified reconstructed sample value by using the modified sum value.