Patent attributes
Aspects of the disclosure provide a method and an apparatus for video decoding. Processing circuitry of the apparatus decodes prediction information of a current block from a coded video bitstream. The prediction information indicates an inter prediction mode. The processing circuitry calculates at least one hash value based on motion information of a previously decoded block and determines whether the motion information is different from one or more motion information candidates in a candidate list for the current block based on the at least one hash value of the previously decoded block and at least one hash value of each of the one or more motion information candidates. The processing circuitry adds the motion information to the candidate list when the motion information is different from the one or more motion information candidates and reconstructs at least one sample of the current block based on the candidate list.