主权项 |
1. A method of decoding video, the method comprising:
determining whether any one of neighboring blocks specified for deriving a motion vector predictor of a current block satisfies a first condition that a reference picture referred to the current block and a reference picture referred to a neighboring block is included in a same reference picture list and the reference picture referred to the current block is identical to the reference picture referred to the neighboring block; determining whether any one of the neighboring blocks satisfies a second condition that a reference picture referred to the current block and a reference picture referred to a neighboring block is not included in a same reference picture list and the reference picture referred to the current block is identical to the reference picture referred to the neighboring block; setting a block which is searched for as a block out of neighboring blocks of the current block and satisfied the first condition or the second condition as one of an available candidate block; selecting a motion vector of the candidate block as motion vector predictor candidates for the current block; and selecting the motion vector predictor of the current block out of the motion vector predictor candidates; wherein a first block group consists of two neighboring blocks among the neighboring blocks, the two neighboring blocks includes a lower left neighboring block and a left neighboring block, wherein a second block group consists of three neighboring blocks among the neighboring blocks, the three neighboring blocks includes an upper right neighboring block, an upper neighboring block, and an upper left neighboring block, wherein in the first block group, whether the first condition or the second condition is satisfied or not is checked from the lower left neighboring block to the left neighboring block, wherein in the second block group, whether the first condition or the second condition is satisfied or not is checked from the upper right neighboring block to the upper neighboring block to the upper left neighboring block. |