Image decoding method and apparatus for performing decoding on a reconstructed two or more context-independent and context-independent segments
An image decoding method for decoding an image using plural intra prediction modes, including decoding first binary data and second binary data, the first binary data indicating a first intra prediction mode to decode the image, the second binary data indicating a second intra prediction mode to decode the image, wherein in the decoding, coded data is obtained which includes a first context adaptive segment, a second context adaptive segment, a first bypass segment, and a second bypass segment. The first context adaptive segment and the second context adaptive segment are decoded by context adaptive binary arithmetic decoding which is arithmetic decoding using a variable probability updated based on decoded data, and the first bypass segment and the second bypass segment are decoded by bypass decoding which is arithmetic decoding using a predetermined fixed probability.
1. A method for decoding a bitstream into four luma binary data and one chroma binary data for an image block, each of the four luma binary data indicating a luma intra prediction mode used to predict luma samples in each of four subblocks constituting the image block and including a luma context-dependent segment and a luma context-independent segment, the one chroma binary data indicating a chroma intra prediction mode used to predict chroma samples in the image block and including a chroma context-dependent segment and a chroma context-independent segment, the method comprising:
obtaining first coded data including four coded luma context-dependent segments, second coded data including four coded luma context-independent segments and third coded data including a coded chroma context-dependent segment and a coded chroma context-independent segment in the bitstream;
reconstructing four of the luma context-dependent segments from the first coded data, separately, four of the luma context-independent segments from the second coded data and, separately, the chroma context-dependent segment and the chroma context-independent segment from the third data;
performing context adaptive binary arithmetic decoding on the reconstructed four luma context-dependent segments using a variable probability to generate four decoded luma context-dependent segments and, separately, performing context adaptive binary arithmetic decoding on the reconstructed chroma context-dependent segment to generate a decoded chroma context-dependent segment;
performing bypass decoding on the reconstructed four luma context-independent segments using a fixed probability to generate four decoded luma context-independent segments and, separately, performing bypass decoding on the reconstructed chroma context-independent segment to generate a decoded chroma context-independent segment;
deriving the luma intra prediction mode which includes one of the four decoded luma context-dependent segments and a corresponding one of the four decoded luma context-independent segments; and
deriving the chroma intra prediction mode which includes the decoded chroma context-dependent segment and the decoded chroma context-independent segment,
wherein the bitstream includes, in a following order, the first coded data, the second coded data, and the third coded data.
2. A decoding apparatus which decodes a bitstream into four luma binary data and one chroma binary data for an image block, each of the four luma binary data indicating a luma intra prediction mode used to predict luma samples in each of four subblocks constituting the image block and including a luma context-dependent segment and a luma context-independent segment, the one chroma binary data indicating a chroma intra prediction mode used to predict chroma samples in the image block and including a chroma context-dependent segment and a chroma context-independent segment, the decoding apparatus comprising:
an obtainer unit configured to obtain first coded data including four coded luma context-dependent segments, second coded data including four coded luma context-independent segments and third coded data including a coded chroma context-dependent segment and a coded chroma context-independent segment in the bitstream;
a reconstructer unit configured to reconstruct four of the luma context-dependent segments from the first coded data, separately, four of the luma context-independent segments from the second coded data and, separately, the chroma context-dependent segment and the chroma context-independent segment from the third data;
a context adaptive binary arithmetic decoder configured to perform context adaptive binary arithmetic decoding on the reconstructed four luma context-dependent segments using a variable probability to generate four decoded luma context-dependent segments and, separately, to perform context adaptive binary arithmetic decoding on the reconstructed chroma context-dependent segment to generate a decoded chroma context-dependent segment;
a bypass decoder configured to perform bypass decoding on the reconstructed four luma context-independent segments using a fixed probability to generate four luma context-independent segments and, separately, to perform bypass decoding on the reconstructed chroma context-independent segment to generate a decoded chroma context-independent segment;
a deriver unit configured to derive the luma intra prediction mode which includes one of the four decoded luma context-dependent segments and a corresponding one of the four decoded luma context-independent segments; and
the deriver unit configured to derive the chroma intra prediction mode which includes the decoded chroma context-dependent segment and the decoded chroma context-independent segment,
wherein the bitstream includes, in a following order, the first coded data, the second coded data, the third coded data.
3. A decoding apparatus which decodes a bitstream into four luma binary data and one chroma binary data for an image block, each of the four luma binary data indicating a luma intra prediction mode used to predict luma samples in each of four subblocks constituting the image block and including a luma context-dependent segment and a luma context-independent segment, the one chroma binary data indicating a chroma intra prediction mode used to predict chroma samples in the image block and including a chroma context-dependent segment and a chroma context-independent segment, the decoding apparatus comprising:
at least one processor; and
storage coupled to the at least one processor,
wherein using the storage, the at least one processor executes:
obtaining first coded data including four coded luma context-dependent segments, second coded data including four coded luma context-independent segments and third coded data including a coded chroma context-dependent segment and a coded chroma context-independent segment in the bitstream;
reconstructing four of the luma context-dependent segments from the first coded data, separately, four of the luma context-independent segments from the second coded data and, separately, the chroma context-dependent segment and the chroma context-independent segment from the third data;
performing context adaptive binary arithmetic decoding on the reconstructed four luma context-dependent segments using a variable probability to generate four decoded luma context-dependent segments and, separately, performing context adaptive binary arithmetic decoding on the reconstructed chroma context-dependent segment to generate a decoded chroma context-dependent segment;
performing bypass decoding on the reconstructed four luma context-independent segments using a fixed probability to generate four decoded luma context-independent segments and, separately, performing bypass decoding on the reconstructed chroma context-independent segment to generate a decoded chroma context-independent segment;
deriving the luma intra prediction mode which includes one of the four decoded luma context-dependent segments and a corresponding one of the four decoded luma context-independent segments; and
deriving the chroma intra prediction mode which includes the decoded chroma context-dependent segment and the decoded chroma context-independent segment,
wherein the bitstream includes, in a following order, the first coded data, the second coded data, and the third coded data.