CPC H04N 19/433 (2014.11) [H04N 19/52 (2014.11); H04N 19/96 (2014.11)] | 17 Claims |
1. A method for deriving motion information for a current block, comprising:
determining, by a decoder, whether or not the current block and a top neighboring block of the current block are in a same coding tree unit (CTU);
obtaining, by the decoder, a position of a spatial motion information candidate for the current block;
obtaining, by the decoder, motion information corresponding to the position of the spatial motion information candidate, based on whether or not the current block and the top neighboring block of the current block are in the same CTU;
adding, by the decoder, the obtained motion information to a motion information candidate list for the current block;
obtaining, by the decoder, a value of a first index of a motion information candidate; and
deriving, by the decoder, motion information of the current block based on the motion information candidate list and the value of the first index, and
wherein the value of the first index is determined based on a formula:
((x+4)>>3)<<3
where x is the position of the spatial motion information candidate for the current block.
|