System for nested entropy encoding
Methods and systems for improving coding efficiency of video.
1. A method for decoding a current block in a current image comprising:
identifying a first adjacent block and a second adjacent block which are adjacent to the current block in the current image;
constructing a set of candidate motion vector predictors for the current block comprising motion vectors of the first and second adjacent blocks;
determining whether the motion vectors of the first and second adjacent blocks are identical;
when the motion vectors of the first and second adjacent blocks are identical:
removing the motion vector of the second adjacent block from the set of candidate motion vector predictors, and
adding a motion vector of a co-located block in a previously decoded picture to the set of candidate motion vector predictors for the current block, wherein the co-located block is co-located in the previously decoded picture relative to the current block in the current image, and wherein the co-located block in the previously decoded picture is larger than the current block;
selecting one of the motion vectors in the set of the candidate motion vector predictors as the motion vector predictor of the current block;
deriving the motion vector of the current block based on the selected motion vector predictor;
deriving a reference block of the current block from a reference image using the derived motion vector of the current block; and
deriving the current block using the reference block and a residual of the current block.