| CPC H04N 19/13 (2014.11) [H04N 19/176 (2014.11)] | 4 Claims |

|
1. An encoder, comprising:
circuitry; and
memory coupled to the circuitry, wherein
the circuitry, in operation:
determines whether a first block is available and whether a second block is available, the first block and the second block being defined relative to a current block to be processed;
sets a value of a first parameter to a common value to specify a context model (i) when intra prediction is applied to the first block and inter prediction is applied to the second block in a case where the first block and the second block are both available and (ii) when inter prediction is applied to the first block and intra prediction is applied to the second block in the case where the first block and the second block are both available,
encodes, using the context model specified, a second parameter indicating which of intra prediction and inter prediction is to be applied to the current block, and
generates a bitstream including the encoded second parameter.
|