Video coding method, video decoding method, video coding apparatus and video decoding apparatus
A moving picture coding method includes: making a determination as to whether or not to code all blocks in a current picture in the skip mode; setting, based on a result of the determination, a first flag indicating whether or not a temporally neighboring block is to be referenced, a value of a parameter for determining a total number of merging candidates, and a second flag for each block included in the current picture, the second flag indicating whether or not the block is to be coded in the skip mode; calculating, as a merging candidate, a neighboring block usable for merging; and coding an index which indicates a merging candidate to be used for coding of the current block and attaching the coded index to a bitstream.
1. A moving picture encoding apparatus using a candidate to encode a current block, the moving picture encoding apparatus comprising:
a processor; and
a non-transitory computer-readable recording medium having stored thereon executable instructions, which when executed by the processor, cause the moving picture encoding apparatus to perform:
selectively performing first processing or second processing;
when the first processing is to be performed, encoding information indicating whether or not a temporally neighboring block is to be referenced, the temporally neighboring block being included in a picture different from a current picture and temporally neighboring the current block;
when the second processing is to be performed, setting the information to indicate that temporally neighboring block is not to be referenced;
selecting a prediction motion vector candidate from among at least one prediction motion vector candidate; and
encoding the group of blocks using the selected prediction motion vector candidate,
wherein when the second processing is to be performed, (i) no residual is encoded for all the blocks included in the group of the blocks, (ii) the at least one prediction motion vector candidate includes a zero vector candidate having zero values for all components thereof, and (iii) the information is set to indicate that the temporally neighboring block is not to be referenced.
2. A moving picture encoding method using a candidate to encode a current block, the moving picture encoding method comprising:
selectively performing first processing or second processing;
when the first processing is to be performed, encoding information indicating whether or not a temporally neighboring block is to be referenced, the temporally neighboring block being included in a picture different from a current picture and temporally neighboring the current block;
when the second processing is to be performed, setting the information to indicate that temporally neighboring block is not to be referenced;
selecting a prediction motion vector candidate from among at least one prediction motion vector candidate; and
encoding the group of blocks using the selected prediction motion vector candidate,
wherein when the second processing is to be performed, (i) no residual is encoded for all the blocks included in the group of the blocks, (ii) the at least one prediction motion vector candidate includes a zero vector candidate having zero values for all components thereof, and (iii) the information is set to indicate that the temporally neighboring block is not to be referenced.