Encoding device, decoding device, encoding method, and decoding method
According to an embodiment, an encoding device includes an index setting unit and an encoding unit. The index setting unit generates a common index in which reference indices of one or more reference images included in a first index and a second index are sorted in a combination so as not to include a same reference image in accordance with a predetermined scanning order. The first index representing a combination of the one or more reference images referred to by a first reference image. The second index representing a combination of the one or more reference images referred to by a second reference image. The encoding unit encodes the common index.
1. A decoding method comprising:
receiving encoded data, the encoded data including:
a syntax describing a first syntax element including a first number of reference images in a first reference image list and a second syntax element including a second number of reference images in a second reference image list,
a syntax describing a plurality of parameters that are obtained by using a common index commonly used for the first reference image list and the second reference image list, and
a syntax describing a third syntax element including a maximum number of values taken by the common index; and
performing a decoding process that uses common index and the first syntax element.
2. A decoding device comprising:
circuitry configured to
receive encoded data, the encoded data including:
a syntax describing a first syntax element including a first number of reference images in a first reference image list and a second syntax element including a second number of reference images in a second reference image list,
a syntax describing a plurality of parameters that are obtained by using a common index commonly used for the first reference image list and the second reference image list, and
a syntax describing a third syntax element including a maximum number of values taken by the common index; and
perform a decoding process that uses the common index and the first syntax element.