CPC H04N 19/513 (2014.11) [H04N 19/176 (2014.11); H04N 19/182 (2014.11)] | 16 Claims |
1. An apparatus, comprising:
a non-transitory memory storing instructions; and
at least one processor in communication with the memory, the at least one processor being configured to execute the instructions, and the instructions including instructions for:
obtaining a predicted pixel value of a current affine block;
parsing or deriving a candidate index from a bitstream;
obtaining a local illumination compensation (LIC) flag of the current affine block, wherein the LIC flag of the current affine block indicates whether LIC is applied to the current affine block, and obtaining the LIC flag of the current affine block comprises determining a candidate from a list based on the candidate index, wherein the candidate comprises a candidate multi-tuple motion vector and a candidate LIC flag, the list comprises a candidate list, and wherein the candidate LIC flag is the LIC flag of the current affine block, or the LIC flag of the current affine block is inherited from the candidate LIC flag, wherein the candidate multi-tuple motion vector represents motion vectors of a plurality of control points of an adjacent affine block of the current affine block, or the candidate multi-tuple motion vector represents motion vectors of a plurality of control points of the current affine block, and when motion information of an Nth control point in the plurality of control points of the current affine block comes from a temporally adjacent picture block of the current affine block, it is determined that an LIC flag of the Nth control point is a preset value, or when motion information of an Nth control point in the plurality of control points of the adjacent affine block of the current affine block comes from a temporally adjacent picture block of the adjacent affine block, it is determined that an LIC flag of the Nth control point in the plurality of control points of the adjacent affine block of the current affine block is a preset value;
determining an LIC update coefficient based on a reference pixel set, wherein the reference pixel set comprises at least one reconstructed pixel adjacent to a left boundary of the current affine block or at least one reconstructed pixel adjacent to a top boundary of the current affine block, wherein the reference pixel set is obtained according to motion information of one or more subblocks of the current affine block; and
in response to determining that the LIC flag of the current affine block indicates that LIC is applied to the current affine block, updating the predicted pixel value of the current affine block based on the LIC update coefficient, to obtain an updated predicted pixel value of the current affine block.
|