| CPC H04N 19/44 (2014.11) [H04N 19/105 (2014.11); H04N 19/172 (2014.11); H04N 19/1887 (2014.11); H04N 19/46 (2014.11)] | 23 Claims |

|
1. A method for decoding a current picture from a bitstream, the method comprising
decoding one or more code words specifying a number N of pictures, including both short-term and long-term pictures;
decoding one or more code words in a loop that is run N times by:
decoding an indication of whether a picture is a long-term picture or not;
deriving an integer K[i] for each long-term picture i, wherein the integer K[i] is derived by two code words A[i] and B[i], wherein B[i] is signaled using a fixed length code word of size n, and A[i] is signaled using a variable length code;
deriving an indicator value V[i] for at least one long-term picture based on the value of the integer K[i] and a picture indicator value P of the current picture; and
for each of the indicator values V[i], comparing the indicator value V[i] with values associated with pictures stored in the DPB,
keeping the pictures stored in the DPB that are marked as short-term or long-term for which there is a match with one of the indicator values V[i] in the DPB as long-term pictures, and
marking long-term pictures for which there is no match with any indicator value V[i] as unused for reference in the DPB.
|