CONTEXT INITIALIZATION BASED ON SLICE HEADER FLAG AND SLICE TYPE
Technique for initialization of encoders and decoders. In some cases, the decoder receives a slice and identifies if the slice is either a forward predicted B-slice or a backward predicted B-slice, and not both a forward and backward predicted B-slice, and based upon this identification initializes, using a P-slice technique, a context associated with the slice.
1 . An encoding apparatus comprising at least one processor configured to:
encode, in a bitstream, a presence flag indicating that an initialization flag is not included in the bitstream;
for a slice of a picture, select initialization values for initializing an arithmetic coding, wherein:
based on the presence flag indicating that the initialization flag is not included in the bitstream, select a first set of initialization values in response to a slice type of the slice being a B slice type, and select a second set of initialization values in response to the slice type of the slice being a P slice type;
initialize the arithmetic coding using the selected initialization values; and
encode one or more syntax elements of the slice using the arithmetic coding.