Video signal encoding and decoding method, and apparatus therefor
View Patent ↗A video decoding method includes the steps of: generating a merge candidate list for a first block; selecting one among merge candidates included in the merge candidate list; and performing motion compensation for the first block based on motion information of the selected merge candidate. At this point, an inter-region merge candidate included in an inter-region motion information list may be added to the merge candidate list based on the number of spatial merge candidates and temporal merge candidates included in the merge candidate list.
1 . A video decoding method, comprising:
generating a merge candidate list for a first block;
selecting one among merge candidates included in the merge candidate list; and
performing motion compensation for the first block based on motion information of the selected merge candidate;
wherein an inter-region merge candidate included in an inter-region motion information list is added to the merge candidate list based on the number of spatial merge candidates and temporal merge candidates included in the merge candidate list;
the merge candidates comprise a first merge candidate and a second merge candidate, and a prediction block for the first block is generated based on the first merge candidate and the second merge candidate;
index information merge_idx of the first merge candidate and index information merge_2nd_idx of the second merge candidate are obtained by analyzing a bitstream; and a value of an index of the second merge candidate is obtained on the basis of a value of the index information merge_idx of the first merge candidate.
2 . The method according to claim 1 , wherein the inter-region motion information list includes an inter-region merge candidate derived based on motion information of a block decoded before the first block.
3 . The method according to claim 1 , wherein when the first block is included in a merge processing area, a temporary merge candidate derived based on motion information of the first block is added to a temporary motion information list, and when all blocks included in the merge processing area are decoded, the temporary merge candidate is added in the inter-region motion information list.
4 . The method according to claim 1 , wherein based on determination regarding whether one inter-region merge candidate included in the inter-region motion information list is the same as at least one merge candidate included in the merge candidate list, it is determined whether to add the one inter-region merge candidate to the merge candidate list.
5 . The method according to claim 4 , wherein the determination is performed by comparing at least one merge candidate of which the index value is smaller than or equal to a threshold value with the one inter-region merge candidate; or
the determination is performed by comparing at least one merge candidate of which the index value is larger than a threshold value with the one inter-region merge candidate.
6 . The method according to claim 4 , wherein when it is determined that there is a merge candidate the same as the one inter-region merge candidate, the one inter-region merge candidate is not added to the merge candidate list, and based on a result of determining whether another inter-region merge candidate included in the inter-region motion information list is the same as at least one merge candidate included in the merge candidate list, it is determined whether to add the another inter-region merge candidate to the merge candidate list, and no determination regarding whether the another inter-region merge candidate is the same as the merge candidate that is the same as the one inter-region merge candidate is performed.
7 . The method according to claim 1 , wherein when an inter-region merge candidate the same as motion information of the first block exists in the merge candidate list, an index assigned to an inter-region merge candidate in the inter-region motion information list is updated to a maximum value.
8 . The method according to claim 4 , wherein the determination is performed by comparing a merge candidate derived from a block at a specific position with the one inter-region merge candidate, wherein the specific position includes at least one of a top-right neighboring block or a bottom-left neighboring block of the first block.
9 . The method according to claim 1 , wherein performing motion compensation for the first block comprises:
performing motion compensation prediction for the first block using a plurality of merge candidates.
10 . The method according to claim 9 , wherein
the first merge candidate and the second merge candidate are included in the merge candidate list for the first block; and
a first prediction block is generated using the first merge candidate, a second prediction block is generated using a second merge candidate, and the prediction block for the first block is generated based on the first prediction block and the second prediction block.
11 . The method according to claim 10 , wherein the prediction block for the first block is generated based on a weighted sum operation of the first prediction block and the second prediction block.
12 . A video encoding method, comprising:
generating a merge candidate list for a first block;
selecting one among merge candidates included in the merge candidate list; and
performing motion compensation for the first block based on motion information of the selected merge candidate;
wherein an inter-region merge candidate included in an inter-region motion information list is added to the merge candidate list based on the number of spatial merge candidates and temporal merge candidates included in the merge candidate list;
the merge candidates comprise a first merge candidate and a second merge candidate, and a prediction block for the first block is generated based on the first merge candidate and the second merge candidate;
index information merge_idx of the first merge candidate and index information merge_2nd_idx of the second merge candidate are signaled through a bitstream, respectively, and a value of an index of the second merge candidate is obtained on the basis of a value of the index information merge_idx of the first merge candidate.
13 . The method according to claim 12 , wherein the inter-region motion information list includes an inter-region merge candidate derived based on motion information of a block encoded before the first block.
14 . The method according to claim 12 , wherein when the first block is included in a merge processing area, a temporary merge candidate derived based on motion information of the first block is added to a temporary motion information list, and when all blocks included in the merge processing area are encoded, the temporary merge candidate is added in the inter-region motion information list.
15 . The method according to claim 12 , wherein based on determination regarding whether one inter-region merge candidate included in the inter-region motion information list is the same as at least one merge candidate included in the merge candidate list, it is determined whether to add the one inter-region merge candidate to the merge candidate list.
16 . The method according to claim 15 , wherein the determination is performed by comparing at least one merge candidate of which the index value is smaller than or equal to a threshold value with the one inter-region merge candidate.
17 . The method according to claim 15 , wherein when it is determined that there is a merge candidate the same as the one inter-region merge candidate, the one inter-region merge candidate is not added to the merge candidate list, and based on a result of determining whether another inter-region merge candidate included in the inter-region motion information list is the same as at least one merge candidate included in the merge candidate list, it is determined whether to add the another inter-region merge candidate to the merge candidate list, and no determination regarding whether the another inter-region merge candidate is the same as the merge candidate that is the same as the one inter-region merge candidate is performed.
18 . A video decoding apparatus, comprising a memory and a processor, wherein the memory is configured to store a computer program capable of running in the processor; and
the processor is configured to run the computer program to execute a video decoding method, the method comprising:
generating a merge candidate list for a first block;
selecting one among merge candidates included in the merge candidate list; and
performing motion compensation for the first block based on motion information of the selected merge candidate,
wherein an inter-region merge candidate included in an inter-region motion information list is added to the merge candidate list based on the number of spatial merge candidates and temporal merge candidates included in the merge candidate list;
the merge candidates comprise a first merge candidate and a second merge candidate, and a prediction block for the first block is generated based on the first merge candidate and the second merge candidate;
index information merge_idx of the first merge candidate and index information merge_2nd_idx of the second merge candidate are obtained by analyzing a bitstream; and a value of an index of the second merge candidate is obtained on the basis of a value of the index information merge_idx of the first merge candidate.
19 . A video encoding apparatus, comprising a memory and a processor, wherein
the memory is configured to store a computer program capable of running in the processor; and
the processor is configured to run the computer program to execute the video encoding method of claim 12 .
20 . A non-transitory computer-readable storage medium, having a computer program and a bitstream stored thereon, wherein the computer program, when executed by a processor, enables the processor to perform the steps of the encoding method of claim 12 to generate the bitstream.