Encoding method that encodes a first denominator for a luma weighting factor, transfer device, and decoding method
AssigneeKabushiki Kaisha Toshiba
InventorsAkiyuki Tanizawa, Takeshi Chujoh
Life of this patent
Estimating the term…
Abstract
According to an embodiment, an encoding device includes a deriving unit and an encoding unit. The deriving unit is configured to derive a first reference value based on fixed point precision representing roughness of a weighting factor that is used for multiplying a reference image. The encoding unit is configured to encode a first difference value that is a difference value between the weighting factor and the first reference value and the fixed point precision. The weighting factor is included in a first range of predetermined bit precision having the first reference value at approximate center. The first difference value is in the predetermined range.
Claims2
An encoding method, comprising:
- encoding a first denominator for a luma weighting factor of a target image;
- 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 of the target image;
- 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, 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, the second difference value is in a fixed range of −128 to +127 regardless of the first denominator, and the luma weighting factor is in a range of (the first reference value −128) to (the first reference value +127);
- encoding a third difference value of the chroma weighting factor, wherein the third difference value is equal to a value of a difference between the chroma weighting factor and a second reference value, the second reference value is equal to a value obtained by left shift of “1” by at least one binary digit specified by the second denominator, the third difference value is in a fixed range of −128 to +127 regardless of the second denominator, and the chroma weighting factor is in a range of (the second reference value −128) to (the second reference value +127);
- and
- encoding a fourth difference value of a chroma offset, wherein the fourth difference value is equal to a value of a difference between the chroma offset and a third reference value of the chroma offset, the third reference value is derived 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, the fourth difference value is in a fixed range of −2n to +2n−1, and the chroma offset is in a range of (the third reference value −2n) to (the third reference value +2n−1).
A storage device, comprising:
- one or more processors configured to generate encoded data in which
- data of a first denominator for a luma weighting factor of a target image is encoded;
- data of a first difference value is encoded, wherein the first difference value is equal to a value of a difference between the first denominator and a second denominator for a chroma weighting factor of the target image;
- data of a second difference value of the luma weighting factor is encoded, wherein the second difference value is equal to a value of a difference between the luma weighting factor and a first reference value, 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, the second difference value is in a fixed range of −128 to +127 regardless of the first denominator, and the luma weighting factor is in a range of (the first reference value −128) to (the first reference value +127);
- data of a third difference value of the chroma weighting factor is encoded, wherein the third difference value is equal to a value of a difference between the chroma weighting factor and a second reference value, the second reference value is equal to a value obtained by left shift of “1” by at least one binary digit specified by the second denominator, the third difference value is in a fixed range of −128 to +127 regardless of the second denominator, and the chroma weighting factor is in a range of (the second reference value −128) to (the second reference value +127);
- data of a fourth difference value of a chroma offset is encoded, wherein the fourth difference value is equal to a value of a difference between the chroma offset and a third reference value of the chroma offset, the third reference value is derived 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, the fourth difference value is in a fixed range of −2n to +2n−1, and the chroma offset is in a range of (the third reference value −2n) to (the third reference value +2n−1);
- and
- a memory configured to store the encoded data.
Dependencies are inferred from the claim text.