主权项 |
1. An apparatus for decoding a video, the apparatus comprising:
a syntax element decoder configured to obtain an x coordinate prefix bitstring of a last significant coefficient in a transformation block by performing context-based-arithmetic decoding on a bitstream, obtain a y coordinate prefix bitstring of the last significant coefficient by performing context-based-arithmetic decoding on the bitstream, obtain an x coordinate suffix bitstring of the last significant coefficient by performing bypass mode decoding on the bitstream, obtain a y coordinate suffix bitstring of the last significant coefficient by performing bypass mode decoding on the bitstream, obtain an inverse-binarized x coordinate prefix, an inverse-binarized x coordinate suffix, an inverse-binarized y coordinate prefix and an inverse-binarized y coordinate suffix by performing inverse binarization on the x coordinate prefix bitstring, the x coordinate suffix bitstring, the y coordinate prefix bitstring and the y coordinate suffix bitstring, reconstruct an x coordinate of the last significant coefficient based on the inverse-binarized x coordinate prefix and the inverse-binarized x coordinate suffix, and reconstruct a y coordinate of the last significant coefficient based on the inverse-binarized y coordinate prefix and the inverse-binarized y coordinate suffix, wherein, after the x coordinate prefix bitstring and the y coordinate prefix bitstring are obtained via the context-based-arithmetic decoding, the x coordinate suffix bitstring and the y coordinate suffix bitstring are obtained via the bypass mode decoding. |