Systems and methods for reference offset signaling in video coding
A device for deriving prediction sample values for encoding data is provided. The device includes one or more processors, and one or more non-transitory computer-readable media coupled to the one or more processors and storing one or more computer-executable instructions. When the computer-executable instructions are executed by at least one of the one or more processors, the computer-executable instructions cause the device to encode a reference wraparound offset syntax specifying an offset used for computing a horizontal wrap-around position, to derive a luma location based on a product of a value of the reference wraparound offset syntax and a minimum coding block size, and to derive a predicted luma sample value by using the luma location. A maximum value of the reference wraparound offset syntax is determined based on a quotient obtained by dividing a width of each decoded picture by the minimum coding block size.
1. A device for deriving prediction sample values for encoding data, the device comprising:
one or more processors; and
one or more non-transitory computer-readable media coupled to the one or more processors and storing one or more computer-executable instructions that, when executed by at least one of the one or more processors, cause the device to:
encode a reference wraparound offset syntax specifying an offset used for computing a horizontal wrap-around position, wherein a maximum value of the reference wraparound offset syntax is determined based on a quotient obtained by dividing a width of each decoded picture by a minimum coding block size;
derive a luma location based on a product of a value of the reference wraparound offset syntax and the minimum coding block size; and
derive a predicted luma sample value by using the luma location.
2. The device of claim 1 , wherein the luma location is derived for a luma sample bilinear interpolation process.
3. The device of claim 1 , wherein the one or more computer-executable instructions, when executed by the at least one of the one or more processors, further cause the device to:
set an offset variable equal to a value obtained by dividing the product of the value of the reference wraparound offset syntax and the minimum coding block size by a width value; and
derive a chroma location by using the offset variable,
wherein the width value is specified based on a chroma format.
4. The device of claim 3 , wherein the chroma format includes one of a 4:2:0 format, a 4:2:2 format, and a 4:4:4 format.
5. The device of claim 1 , wherein the maximum value of the reference wraparound offset syntax is further determined by subtracting a positive number from the quotient.