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, determining a subset of duplicate motion vectors, wherein each motion vector in the subset has an identical motion vector in the candidate set of motion vectors that is not included in the subset;
removing, from the subset, one or more motion vectors based on one or more predetermined rules;
following removal of one or more motion vectors from the subset, updating the candidate set of motion vectors by discarding, from the candidate set of motion vectors, motion vectors remaining in the subset;
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 removing, from the subset, one or more motion vectors based on one or more predetermined rules comprises:
removing, from the subset, one or more motion vectors preserving at least one of spatial independence or temporal independence of the candidate set of motion vectors.