CPC H04N 19/513 (2014.11) [H04N 19/105 (2014.11); H04N 19/172 (2014.11); H04N 19/46 (2014.11)] | 8 Claims |
1. A video decoding apparatus for performing Decoder side Motion Vector Refinement (DMVR) processing by using motion vectors mvL0 and mvL1 and two reference pictures, the video decoding apparatus comprising:
a DMVR circuit configured to derive a dmvrFlag indicating whether or not the DMVR processing is performed, and perform the DMVR processing in a case that the dmvrFlag is TRUE,
wherein the DMVR circuit
sets the dmvrFlag based on whether or not a flag, which is a flag of SPS and is a flag indicating that the DMVR processing is possible, is On,
sets the dmvrFlag based on whether or not gbiIdx is 0, and
sets the dmvrFlag based on whether or not both a luma_weight_l0_flag[refIdxL0] and a luma_weight_l1_flag[refIdxL1] are FALSE,
wherein the gbiIdx is an index that indicates a weight coefficient used in a target block out of multiple weight coefficient candidates included in a table gbiWLut
the luma_weight_l0_flag[refIdxL0] specifies whether or not a first weight coefficient and a first offset for luminance for an L0 reference picture indicated by a reference picture index refIdxL0 are present, and
the luma_weight_l1_flag[refIdxL1] specifies whether or not a second weight coefficient and a second offset for luminance for an L1 reference picture indicated by a reference picture index refIdxL1 are present.
|