Method and apparatus for setting reference picture index of temporal merging candidate
The present invention relates to a method and apparatus for setting a reference picture index of a temporal merging candidate. An inter-picture prediction method using a temporal merging candidate can include the steps of determining a reference picture index for a current block; and inducing a temporal merging candidate block of the current block and calculating a temporal merging candidate from the temporal merging candidate block, wherein the reference picture index of the temporal merging candidate can be calculated regardless of whether a block other than the current block is decoded. Accordingly, a video processing speed can be increased and video processing complexity can be reduced.
1 . A method for decoding a video signal comprising:
determining whether a first sub-block and a second sub-block included in a current coding block share a single merge candidate list based on a size of the current coding block;
deriving a temporal merge candidate and a spatial merge candidate based on the size and a position of the current coding block, when the first sub-block and the second sub-block share the single merge candidate list;
generating a merge candidate list for the first sub-block and the second sub-block based on the temporal merge candidate and the spatial merge candidate;
deriving at least one merge index on the current coding block; and
obtaining a prediction sample on the current coding block by using the merge candidate list and the at least one merge index,
wherein the at least one merge index indicates a merge candidate used to obtain the prediction sample on the current coding block from the single merge candidate list,
wherein a reference picture index for the temporal merge candidate is set to a fixed value, and
wherein the temporal merge candidate is derived using a neighboring block which is located in a picture different from a picture including the current coding block and at a location collocated with the current coding block.
2 . The method of claim 1 , wherein whether the first sub-block and the second sub-block share the single merge candidate list, is determined based on a result of comparison between the size of the current coding block and a predefined size.
3 . A method for encoding a video signal comprising:
determining whether a first sub-block and a second sub-block included in a current coding block share a single merge candidate list based on a size of the current coding block;
deriving a temporal merge candidate and a spatial merge candidate based on the size and a position of the current coding block, when the first sub-block and the second sub-block share the single merge candidate list;
generating a merge candidate list for the first sub-block and the second sub-block based on the temporal merge candidate and the spatial merge candidate;
deriving at least one merge index on the current coding block by using the merge candidate list; and
encoding the at least one merge index,
wherein the at least one merge index indicates a merge candidate used to obtain the prediction sample on the current coding block from the single merge candidate list,
wherein a reference picture index for the temporal merge candidate is set to a fixed value, and
wherein the temporal merge candidate is derived using a neighboring block which is located in a picture different from a picture including the current coding block and at a location collocated with the current coding block.
4 . The method of claim 3 , wherein whether the first sub-block and the second sub-block share the single merge candidate list, is determined based on a result of comparison between the size of the current coding block and a predefined size.
5 . A method of transmitting a bitstream, the method comprising:
determining whether a first sub-block and a second sub-block included in a current coding block share a single merge candidate list based on a size of the current coding block;
deriving a temporal merge candidate and a spatial merge candidate based on the size and a position of the current coding block, when the first sub-block and the second sub-block share the single merge candidate list;
generating a merge candidate list for the first sub-block and the second sub-block based on the temporal merge candidate and the spatial merge candidate;
deriving at least one merge index on the current coding block by using the merge candidate list; and
encoding the at least one merge index, wherein a reference picture index for the temporal merge candidate is set to a fixed value, and
wherein the at least one merge index indicates a merge candidate used to obtain the prediction sample on the current coding block from the single merge candidate list,
wherein the temporal merge candidate is derived using a neighboring block which is located in a picture different from a picture including the current coding block and at a location collocated with the current coding block.
6 . The method of claim 5 , wherein whether the first sub-block and the second sub-block share the single merge candidate list, is determined based on a result of comparison between the size of the current coding block and a predefined size.