A lossless audio coding and/or decoding method and apparatus are provided.
The coding method includes: mapping the audio signal in the frequency
domain having an integer value into a bit-plane signal with respect to
the frequency; obtaining a most significant bit and a Golomb parameter
for each bit-plane; selecting a binary sample on a bit-plane to be coded
in the order from the most significant bit to the least significant bit
and from a lower frequency component to a higher frequency component;
calculating the context of the selected binary sample by using
significances of already coded bit-planes for each of a plurality of
frequency lines existing in the vicinity of a frequency line to which the
selected binary sample belongs; selecting a probability model by using
the obtained Golomb parameter and the calculated contexts; and
lossless-coding the binary sample by using the selected probability
model. According to the method and apparatus, a compression ratio better
than that of the bit-plane Golomb code (BPGC) is provided through
context-based coding method having optimal performance.