CPC H04N 19/119 (2014.11) [H04N 19/129 (2014.11); H04N 19/174 (2014.11); H04N 19/176 (2014.11)] | 8 Claims |
1. An image encoding apparatus for encoding an image including a rectangular region including at least one block row formed from a plurality of blocks, comprising:
an encoding unit configured to encode, into a bitstream, a first flag related to enablement of parallel processing, first information used for specifying a rectangular region to be processed first among a plurality of rectangular regions included in a slice in the image, second information used for specifying a rectangular region to be processed last among the plurality of rectangular regions, and third information corresponding to the number of blocks, in a vertical direction, of the rectangular region in the image; and
a specifying unit configured to specify, for a target slice, the number of pieces of information for specifying a start position of coded data of the block row, based on the first information, the second information, and the third information, in a state where a value of the first flag is 1, a second flag, which is decoded from a picture parameter set of the bitstream and is related to a mode of a slice, indicates that a mode in which a slice is rectangular is used, and the target slice in the image includes a plurality of rectangular regions in a horizontal direction or a vertical direction,
wherein the encoding unit configured to encode the information for specifying the start position, the number of pieces of which is as many as the number specified by the specifying unit.
|