Image coding method, image decoding method, image coding apparatus, image decoding apparatus, and image coding and decoding apparatus
An image coding method using arithmetic coding. The method includes: performing arithmetic coding on a first flag that indicates whether or not an absolute value of a target coefficient in a target coefficient block is greater than 1; and performing arithmetic coding on a second flag that indicates whether or not the absolute value is greater than 2. In the arithmetic coding on the first flag and the arithmetic coding on the second flag, it is determined whether or not an immediately-prior coefficient block that has been coded immediately prior to the target coefficient block includes a coefficient having an absolute value greater than a threshold value. Based on a result of the determination, respective contexts to be used in the arithmetic coding on the first and second flags are selected.
1. An image coding method using arithmetic coding, the image coding method comprising:
performing arithmetic coding on a first flag that indicates whether or not an absolute value of a target coefficient in a target coefficient block is greater than 1; and
performing arithmetic coding on a second flag that indicates whether or not the absolute value is greater than 2,
wherein, in the performing of the arithmetic coding on the first flag and the performing of the arithmetic coding on the second flag, it is determined whether or not an immediately-prior coefficient block that has been coded immediately prior to the target coefficient block includes a coefficient having an absolute value greater than a threshold value, and a context to be used in the arithmetic coding on the first flag and a context to be used in the arithmetic coding on the second flag are selected based on a result of the determination.
2. An image coding apparatus that performs arithmetic coding, the image coding apparatus comprising:
control circuitry; and
storage accessible from the control circuitry,
wherein the control circuitry executes the image coding method according to claim 1 .