| CPC H04N 19/159 (2014.11) [H04N 19/176 (2014.11)] | 20 Claims |

|
1. A method for coding a video based on a long-term reference frame, comprising:
setting a long-term reference frame according to attribute information of an image frame;
determining a reference index of a to-be-coded image frame based on a normal reference frame and the long-term reference frame; and
acquiring a target matching block by performing inter prediction based on the reference index, so as to achieve coding of the to-be-coded image frame;
wherein setting the long-term reference frame according to the attribute information of the image frame comprises:
setting the long-term reference frame based on a degree of redundancy in a time domain and a degree of redundancy in a spatial domain of the image frame, the degree of redundancy in the time domain indicating a degree of having a same coding macroblock in the image frame and a neighboring image frame thereof, and the degree of redundancy in the spatial domain indicating a degree of having a same coding macroblock within the image frame.
|