Patent ID: 11876983
Assignee: INDUSTRY ACADEMY COOPERATION FOUNDATION OF SEJONG UNIVERSITY
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 2:
3. A non-transitory computer-readable medium storing a bitstream generated by an encoding method, the method comprising:
obtaining a first prediction sample of a current block by performing inter prediction on the current block;
determining one or more weight prediction parameter candidates for the current block;
determining a weight prediction parameter of the current block from the one or more weight prediction parameter candidates;
obtaining a second prediction sample of the current block by applying the weight prediction parameter to the first prediction sample;
obtaining a prediction block of the current block based on the second prediction sample;
obtaining a residual block of the current block based on the prediction block of the current block and an original block of the current block; and
encoding the residual block,
wherein a number of the one or more weight prediction parameter candidates is variably determined based on a size of the current block,
wherein when the size of the current block is equal to a first block size, the number of the one or more weight prediction parameter candidates available for the current block is five,
wherein when the size of the current block is equal to a second block size, the number of the one or more weight prediction parameter candidates available for the current block is less than five,
wherein when the number of the one or more weight prediction parameter candidates is greater than one, index information specifying the weight prediction parameter of the current block among the weight prediction parameter candidates is encoded, and
wherein the index information is encoded into a bitstream in units of blocks.