The processor 1710 may obtain the affine parameter group candidates of the current block based on whether adjacent blocks of the current block including at least a right block of the current block are decoded. An affine parameter is determined according to an x component and a y component of a motion vector. The affine parameter group indicates a group of affine parameters required to predict the current block, and the affine parameter group candidate indicates an affine parameter group applicable to the current block. A method of determining the affine parameter group candidate will be described below with reference to
The processor 1710 may determine the affine parameter group candidate used in the affine mode from several sample locations of the current block. In particular, the processor 1710 may determine an upper left coordinate of the current block as a first affine parameter extraction location, and determine an upper right coordinate of the current block as a second affine parameter extraction location. Also, the processor 1710 may obtain a first motion vector from at least one adjacent block adjacent to the first affine parameter extraction location, and obtain a second motion vector from at least one adjacent block adjacent to the second affine parameter extraction location.
When right and left blocks of the current block are both not decoded, the processor 1710 may obtain a third motion vector from the first and second motion vectors. Alternatively, when the current block is in a 4 parameter affine mode or a 3 parameter affine mode, the processor 1710 may obtain the third motion vector from the first and second motion vectors.