System for nested entropy encoding
Methods and systems for improving coding efficiency of video.
1. A method for encoding a motion vector of a current block of a picture in a sequence of pictures, the method comprising:
retrieving a candidate set of motion vectors;
determining that trimming is to be applied to the candidate set of motion vectors;
in response to determining that that trimming is to be applied, identifying a motion vector that will be trimmed from the candidate set of motion vectors, wherein the motion vector that will be trimmed from the candidate set is a duplicate of another motion vector in the candidate set;
updating the candidate set of motion vectors by discarding, from the candidate set of motion vectors, the motion vector identified to be trimmed;
encoding, in a bitstream corresponding to the sequence of pictures, the motion vector of the current block based on one or more motion vectors remaining the updated candidate set of motion vectors; and
encoding, in the bitstream, a flag indicating that candidate motion vector trimming is to be applied when decoding the sequence of pictures coded in the bitstream.
2. The method of claim 1 , wherein the motion vector that will be trimmed is a spatially located neighboring block of the current block.