CPC H04N 19/13 (2014.11) [H04N 19/105 (2014.11); H04N 19/147 (2014.11); H04N 19/15 (2014.11); H04N 19/176 (2014.11); H04N 19/196 (2014.11); H04N 19/44 (2014.11); H04N 19/463 (2014.11); H04N 19/513 (2014.11); H04N 19/547 (2014.11); H04N 19/577 (2014.11); H04N 19/61 (2014.11); H04N 19/625 (2014.11); H04N 19/70 (2014.11); H04N 19/182 (2014.11); H04N 19/184 (2014.11); H04N 19/186 (2014.11)] | 3 Claims |
1. An encoding method, comprising:
encoding a first denominator for a luma weighting factor;
encoding a first difference value that is equal to a value of a difference between the first denominator and a second denominator for a chroma weighting factor;
encoding a second difference value of the luma weighting factor, wherein the second difference value is equal to a value of a difference between the luma weighting factor and a first reference value of the luma weighting factor, wherein the second difference value is in a fixed range of −128 to +127 regardless of the first denominator, wherein the first reference value is equal to a value obtained by left shift of “1” by at least one binary digit specified by the first denominator; and
encoding a third difference value of a chroma offset, wherein the third difference value is equal to a value of a difference between the chroma offset and a second reference value, the third difference value is in a fixed range of −2n to +2n−1, n being an integer value according to a bit precision of the chroma offset, and the second reference value is equal to a value obtained by subtracting a value obtained by both multiplying a median value of a maximum pixel value by the chroma weighting factor and shifting to right for the at least one binary digit specified by the second denominator, from the median value.
|