Video coding apparatus and video decoding apparatus
An adaptive motion vector prediction unit configured to adaptively perform spatial prediction that performs prediction using a motion vector around a target block and temporal prediction that performs prediction using a motion vector of a collocated picture is included, and in the temporal prediction performed by the adaptive motion vector prediction unit, the collocated picture to be referred to is designated on a per picture basis, and a reference list is designated on a per slice basis.
1. A video decoding apparatus comprising:
a merge candidate derivation circuit for deriving a merge candidate with reference to an adjacent block of a target block and deriving a merge candidate with reference to a collocated position, spatially located at a bottom right or a center relative to the target block, in a collocated picture; and
a parameter decoding circuit for receiving a picture header, a slice header and a picture parameter set, and, in a case that temporal motion vector prediction is enabled in a target sequence, decoding a first flag indicative of whether or not to use the temporal motion vector prediction from the picture header, wherein in a case that the first flag is true, the parameter decoding circuit decodes:
(i) a second flag, wherein a value of the second flag equal to 1 indicates that a collocated picture used for the temporal motion vector prediction is derived from a first reference picture list, and a value of the second flag equal to 0 indicates that a collocated picture used for the temporal motion vector prediction is derived from a second reference picture list; and
(ii) an index of the collocated picture used for the temporal motion vector prediction from the picture header, wherein the index is an index for referring to the collocated picture in the first reference picture list or the second reference picture list indicated by the second flag.