Method for encoding and decoding images, encoding and decoding device, and corresponding computer programs
A method for coding includes; segmenting an image into blocks; grouping blocks into a number of subsets; coding, using an entropy coding module, each subset, by associating digital information with symbols of each block of a subset, including, for the first block of the image, initializing state variables of the coding module; and generating a data sub-stream representative of at least one of the coded subsets of blocks. Where a current block is the first block to be coded of a subset, symbol occurrence probabilities for the first current block are determined based on those for a coded and decoded predetermined block of at least one other subset. Where the current block is the last coded block of the subset: writing, in the sub-stream representative of the subset, the entire the digital information associated with the symbols during coding of the blocks of the subset, and implementing the initializing sub-step.
1. An apparatus comprising:
a non-transitory computer-readable medium storing a bitstream of image data, the bitstream comprising:
data representing a plurality of context adaptive entropy encoded sub-streams for a subset of blocks of a coded image,
where each of the plurality of context adaptive entropy encoded sub-streams comprise a row of consecutive blocks of coefficients;
wherein,
a first context adaptive entropy encoded sub-stream comprises a first row of consecutive blocks within a first subset of blocks, and
a second context adaptive entropy encoded sub-stream comprises a second row of consecutive blocks within a second subset of blocks; and
wherein,
the second row of consecutive blocks is immediately after the first row of consecutive blocks in a raster order of an image decoded from the coded image, and
the second row of consecutive blocks is not immediately after the first row of consecutive blocks in the bitstream.