| CPC H04N 19/119 (2014.11) [H04N 19/176 (2014.11); H04N 19/50 (2014.11); H04N 19/60 (2014.11)] | 5 Claims |

|
1. An encoder that encodes a block of an image, the encoder comprising:
a processor; and
memory connected to the processor,
wherein, using the memory, the processor:
determines prediction mode information;
determines a set of partition modes in accordance with the prediction mode information, wherein the determining the set of partition modes includes:
in response to the prediction mode information indicating an inter prediction mode, determining a first set of partition modes; and
in response to the prediction mode information indicating an intra prediction mode, determining a second set of partition modes;
selects a partition mode from the determined set of partition modes in accordance with the prediction mode information;
writes a parameter into a bitstream;
partitions a block into a plurality of sub blocks using the selected partition mode; and
encodes a sub block included in the plurality of sub blocks in an encoding process, wherein the processor:
partitions the block into three sub blocks, each having a width and a height that are powers of two, and sets the parameter to a first value in response; and
partitions the block into an even number of sub blocks, each of the even number of sub blocks having a same size, and sets the parameter to a second value in response, the second value being different from the first value.
|