主权项 |
1. A method of decoding a video signal, comprising:
determining whether a spatial merge candidate block is not decoded yet; determining whether the spatial merge candidate block is included in a same MER as a current prediction block; when the spatial merge candidate block is already decoded and is not included in the same MER as the current prediction block, determining that the spatial merge candidate block is an available merge candidate block for inter prediction of the current prediction block; generating a merge candidate list of the current prediction block, the merge candidate list including the available merge candidate block and a temporal merge candidate block, the temporal merge candidate block being included in a picture having a different temporal order from a current picture including the current prediction block; and performing inter prediction of the current prediction block based on the merge candidate list, wherein the spatial merge candidate block includes at least one of neighboring blocks adjacent to the current prediction block, the neighboring blocks including a left neighboring block, a top neighboring block, a top-right neighboring block, a left-bottom neighboring block, and a top-left neighboring block, wherein when a size of the MER is 8×8 and a size of a coding block is 8×8, at least one of the neighboring blocks is replaced to a replacement block located outside the MER, wherein when the size of the MER is not 8×8 and the size of coding block is not 8×8, none of the neighboring blocks is replaced to the replacement block located outside the MER, and wherein the coding block includes the current prediction block whose a size of 8×4 or 4×8. |