Method and an apparatus for processing a video signal based on inter-component reference
View Patent ↗A method and apparatus for processing a video signal according to the present invention derives a first prediction value of a chrominance block using a sample of a luminance block, calculates a compensation parameter based on a predetermined reference area, derives a second prediction value of a chrominance block, and reconstructs a chrominance block based on a second prediction value of a chrominance block.
1. A method of decoding a video signal, with a decoding apparatus, comprising:
receiving, with the decoding apparatus, a bitstream including a flag indicating whether to decode a chrominance block based on a luminance block corresponding to the chrominance block and a luminance reference region adjacent to the luminance block;
predicting, with the decoding apparatus, the chrominance block based on the luminance block and the luminance reference region according to the flag; and
reconstructing, with the decoding apparatus, the predicted chrominance block,
wherein the luminance reference region includes a top luminance reference region adjacent to a top boundary of the luminance block and a left luminance reference region adjacent to a left boundary of the luminance block,
wherein the top luminance reference region includes a plurality of horizontal sample lines,
wherein the left luminance reference region includes a plurality of vertical sample lines,
wherein a number of the horizontal sample lines belonging to the top luminance reference region is variably determined based on an availability of the top luminance reference region,
wherein a number of the vertical sample lines belonging to the left luminance reference region is variably determined based on an availability of the left luminance reference region,
wherein predicting the chrominance block comprises:
calculating a compensation parameter based on a representative value of a chrominance reference region adjacent to the chrominance block; and
deriving a prediction value of the chrominance block based on the compensation parameter, and
wherein the representative value is derived to be one of an average value, a minimum value, a maximum value or a median value of some of samples belonging to the chrominance reference region.
2. The method of claim 1 , wherein, when the luminance reference region is unavailable, the unavailable luminance reference region is replaced with an adjacent region of the unavailable luminance reference region in a right or bottom direction.
3. The method of claim 1 , wherein the number of the horizontal sample lines belonging to the top luminance reference region is different from the number of the vertical sample lines belonging to the left luminance reference region.
4. A method of encoding a video signal, with an encoding apparatus, comprising:
predicting, with the encoding apparatus, a chrominance block based on a luminance block corresponding to the chrominance block and a luminance reference region adjacent to the luminance block;
obtaining, with the encoding apparatus, a residual block of the chrominance block based on an original block of the chrominance block and a prediction block obtained by predicting the chrominance block; and
generating, with the encoding apparatus, a bitstream by encoding the residual block,
wherein the bitstream includes a flag indicating whether to encode the chrominance block based on the luminance block and the luminance reference region,
wherein the luminance reference region includes a top luminance reference region adjacent to a top boundary of the luminance block and a left luminance reference region adjacent to a left boundary of the luminance block,
wherein the top luminance reference region includes a plurality of horizontal sample lines,
wherein the left luminance reference region includes a plurality of vertical sample lines,
wherein a number of the horizontal sample lines belonging to the top luminance reference region is variably determined based on an availability of the top luminance reference region,
wherein a number of the vertical sample lines belonging to the left luminance reference region is variably determined based on an availability of the left luminance reference region,
wherein predicting the chrominance block comprises:
calculating a compensation parameter based on a representative value of a chrominance reference region adjacent to the chrominance block; and
deriving a prediction value of the chrominance block based on the compensation parameter, and
wherein the representative value is derived to be one of an average value, a minimum value, a maximum value or a median value of some of samples belonging to the chrominance reference region.
5. The method of claim 4 , wherein, when the luminance reference region is unavailable, the unavailable luminance reference region is replaced with an adjacent region of the unavailable luminance reference region in a right or bottom direction.
6. The method of claim 4 , wherein the number of the horizontal sample lines belonging to the top luminance reference region is different from the number of the vertical sample lines belonging to the left luminance reference region.
7. A non-transitory computer readable medium having stored thereon instructions that when executed by a processor of a decoding apparatus perform a decoding method, including:
receiving, with the decoding apparatus, a bitstream including a flag indicating whether to decode a chrominance block based on a luminance block corresponding to the chrominance block and a luminance reference region adjacent to the luminance block;
predicting, with the decoding apparatus, the chrominance block based on the luminance block and the luminance reference region according to the flag; and
reconstructing, with the decoding apparatus, the predicted chrominance block,
wherein the luminance reference region includes a top luminance reference region adjacent to a top boundary of the luminance block and a left luminance reference region adjacent to a left boundary of the luminance block,
wherein the top luminance reference region includes a plurality of horizontal sample lines,
wherein the left luminance reference region includes a plurality of vertical sample lines,
wherein a number of the horizontal sample lines belonging to the top luminance reference region is variably determined based on an availability of the top luminance reference region,
wherein a number of the vertical sample lines belonging to the left luminance reference region is variably determined based on an availability of the left luminance reference region,
wherein predicting the chrominance block comprises:
calculating a compensation parameter based on a representative value of a chrominance reference region adjacent to the chrominance block; and
deriving a prediction value of the chrominance block based on the compensation parameter, and
wherein the representative value is derived to be one of an average value, a minimum value, a maximum value or a median value of some of samples belonging to the chrominance reference region.
8. The non-transitory computer readable medium of claim 7 , wherein the number of the horizontal sample lines belonging to the top luminance reference region is different from the number of the vertical sample lines belonging to the left luminance reference region.