| CPC H04N 19/46 (2014.11) [H04N 19/137 (2014.11); H04N 19/174 (2014.11); H04N 19/70 (2014.11)] | 2 Claims |

|
1. A decoding apparatus for an image decoding, the decoding apparatus comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
parse a first flag related to whether weighted prediction is applied to P slices referring to a picture parameter set, from the picture parameter set of a bitstream;
parse a second flag related to whether the weighted prediction is applied to B slices referring to the picture parameter set, from the picture parameter set;
parse a third flag related to whether information on the weighted prediction is present in a picture header of the bitstream or in a slice header of the bitstream, from the picture parameter set, based on the first flag or the second flag;
parse a prediction weighted table syntax from the picture header or the slice header;
generate prediction samples for a current block by performing the weighted prediction on the current block in a current picture based on syntax elements in the prediction weighted table syntax; and
generate reconstructed samples based on the prediction samples,
wherein the prediction weighted table syntax is parsed from the picture header based on the third flag,
wherein whether L0 number information for the weighted prediction is parsed from the prediction weighted table syntax is determined based on the third flag,
wherein whether L1 number information for the weighted prediction is parsed from the prediction weighted table syntax is determined based on the third flag,
wherein the L0 number information represents a number of weighted reference pictures in a reference picture list 0, and
wherein the L1 number information represents a number of weighted reference pictures in a reference picture list 1.
|