KR100947065B1 - Lossless audio decoding/encoding method and apparatus - Google Patents

Lossless audio decoding/encoding method and apparatus Download PDF

Info

Publication number
KR100947065B1
KR100947065B1 KR1020070019155A KR20070019155A KR100947065B1 KR 100947065 B1 KR100947065 B1 KR 100947065B1 KR 1020070019155 A KR1020070019155 A KR 1020070019155A KR 20070019155 A KR20070019155 A KR 20070019155A KR 100947065 B1 KR100947065 B1 KR 100947065B1
Authority
KR
South Korea
Prior art keywords
context
frequency
decoded
bitplane
audio
Prior art date
Application number
KR1020070019155A
Other languages
Korean (ko)
Other versions
KR20070030878A (en
Inventor
김중회
레이 미아오
이시화
김상욱
오은미
김도형
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020070019155A priority Critical patent/KR100947065B1/en
Publication of KR20070030878A publication Critical patent/KR20070030878A/en
Application granted granted Critical
Publication of KR100947065B1 publication Critical patent/KR100947065B1/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/02Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using spectral analysis, e.g. transform vocoders or subband vocoders

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

무손실 오디오 부호화/복호화 방법 및 장치가 개시된다. 그 부호화 방법은 시간영역의 오디오 신호를 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호로 변환하는 신호변환단계; 주파수영역의 오디오 신호를 주파수에 따른 비트플레인 신호로 맵핑하는 맵핑단계; 및 비트플레인을 구성하는 이진 샘플에 대해, 소정의 문맥을 이용하여 결정된 확률모델을 통해 무손실부호화하는 무손실부호화단계를 포함함을 특징으로 한다. 그리고 그 복호화 방법은 오디오 비트스트림을 역다중화하여 소정의 손실부호화된 손실비트스트림과 상기 에러데이터의 에러비트스트림을 추출하는 단계; (bb) 상기 추출된 손실비트스트림을 소정의 손실복호화하는 단계; 추출된 에러비트스트림을 무손실복호화하는 단계; 복호화된 손실비트스트림과 에러비트스트림을 이용하여 주파수 스펙트럴 신호로 복원하는 단계; 및 주파수 스펙트럴 신호를 역 정수 시간/주파수변환하여 시간영역의 오디오 신호를 복원하는 단계를 포함함을 특징으로 한다.A method and apparatus for lossless audio encoding / decoding are disclosed. The encoding method includes a signal conversion step of converting an audio signal in a time domain into an audio spectral signal in a frequency domain having an integer value; A mapping step of mapping an audio signal of a frequency domain to a bitplane signal according to frequency; And a lossless encoding step of lossless encoding on the binary sample constituting the bitplane through a probability model determined using a predetermined context. The decoding method includes demultiplexing an audio bit stream to extract a predetermined loss coded loss bit stream and an error bit stream of the error data; (bb) predetermined loss decoding the extracted loss bitstream; Lossless decoding the extracted error bitstream; Restoring the frequency spectral signal using the decoded lost bitstream and the error bitstream; And restoring an audio signal in a time domain by performing inverse integer time / frequency conversion on the frequency spectral signal.

본 발명에 의하면, 입력의 분포에 관계없이 통계적인 분포를 통하여 만들어진 모델을 통해 최적의 성능을 제공하며, 문맥기반 부호화 방식을 통하여 BPGC보다 우월한 압축률 제공한다. According to the present invention, a model made through a statistical distribution is provided regardless of the input distribution, and a compression rate superior to BPGC is provided through a context-based encoding method.

Description

무손실 오디오 부호화/복호화 방법 및 장치{Lossless audio decoding/encoding method and apparatus}Lossless audio decoding / encoding method and apparatus

도 1은 본 발명에 의한 무손실 오디오 부호화 장치에 대한 일실시예의 구성을 블록도로 도시한 것이다.1 is a block diagram illustrating a configuration of an embodiment of a lossless audio encoding apparatus according to the present invention.

도 2는 무손실부호화부의 구성을 블록도로 도시한 것이다.2 is a block diagram illustrating a configuration of a lossless encoding unit.

도 3은 본 발명에 의한 무손실 오디오 부호화 장치의 다른 실시예의 구성을 블록도로 도시한 것이다.3 is a block diagram showing the configuration of another embodiment of a lossless audio encoding apparatus according to the present invention.

도 4는 상기 무손실부호화부(340)의 구성을 블록도로 도시한 것이다.4 is a block diagram illustrating the configuration of the lossless encoding unit 340.

도 5는 도 1에 도시된 본 발명에 의한 무손실오디오 부호화 장치의 일실시에에 대한 동작을 흐름도로 도시한 것이다.FIG. 5 is a flowchart illustrating an operation of an embodiment of a lossless audio encoding apparatus according to the present invention shown in FIG. 1.

도 6은 도 1에 도시된 무손실부호화부의 동작을 흐름도로 도시한 것이다.6 is a flowchart illustrating an operation of the lossless encoding unit illustrated in FIG. 1.

도 7은 도 3에 도시된 본 발명에 의한 무손실오디오 부호화 장치의 다른 실시에에 대한 동작을 흐름도로 도시한 것이다.FIG. 7 is a flowchart illustrating an operation of another embodiment of the lossless audio encoding apparatus according to the present invention shown in FIG. 3.

도 8은 주파수에 따른 비트플레인 데이터로의 매핑된 일 예를 도시한 것이다.8 shows an example of mapping to bitplane data according to frequency.

도 9는 본 발명에 의한 무손실 오디오 복호화 장치의 일실시예에 대한 구성을 블록도로 도시한 것이다.9 is a block diagram illustrating a configuration of an embodiment of a lossless audio decoding apparatus according to the present invention.

도 10은 도 9에 도시된 문맥계산부의 구성을 블록도로 도시한 것이다.FIG. 10 is a block diagram illustrating a configuration of the context calculator shown in FIG. 9.

도 11은 본 발명에 의한 무손실 오디오 복호화 장치의 다른 실시예에 대한 구성을 블록도로 도시한 것이다.11 is a block diagram illustrating a configuration of another embodiment of a lossless audio decoding apparatus according to the present invention.

도 12는 무손실복호화부의 구성을 블록도로 도시한 것이다.12 is a block diagram showing the configuration of a lossless decoding unit.

도 13은 도 9에 도시된 본 발명에 의한 무손실오디오 복호화 장치의 일실시예에 대한 동작을 흐름도로 도시한 것이다.FIG. 13 is a flowchart illustrating an operation of an embodiment of a lossless audio decoding apparatus according to the present invention shown in FIG. 9.

도 14는 도 11에 도시된 본 발명에 의한 무손실오디오 복호화 장치의 다른 실시예에 대한 동작을 흐름도로 도시한 것이다.FIG. 14 is a flowchart illustrating an operation of another embodiment of the lossless audio decoding apparatus according to the present invention shown in FIG. 11.

본 발명은 오디오신호 부호화/복호화에 관한 것으로서, 특히 비트율 조절이 가능한 무손실 오디오 부호화/복호화 방법 및 장치에 관한 것이다.The present invention relates to audio signal encoding / decoding, and more particularly, to a lossless audio encoding / decoding method and apparatus capable of adjusting a bit rate.

무손실 오디오 부호화 방식은 MLP(Meridian Lossless audio compression), Monkey's Audio, Free Lossless Audio Coding 등이 있으며, MLP의 경우에는 DVD-A에 적용되어 사용되고 있다. 인터넷의 네트워크 대역폭이 증가하면서 대용량의 멀티미디어 컨텐츠가 제공되어지고 있으며, 오디오의 경우 무손실 오디오 방식이 필요하다. EU에서는 이미 DAB(Digital Audio Broadcasting)을 통해 디지털 오디오 방송이 시작되었으며 이를 위한 방송국이나 컨텐츠 제공자들은 오디오 무손실 부호화 방식을 이용고 있다. 이에 MPEG 그룹에서도 ISO/IEC 14496-3:2001 / AMD 5, Audio Scalable to Lossless Coding(SLS)의 이름으로 무손실 오디오 압축방식에 대한 표준화가 진행중이다. 이는 FGS(Fine Grain Scalablity)를 제공하며 무손실 오디오 압축이 가능한 기술이다.Lossless audio coding methods include MLP (Meridian Lossless Audio Compression), Monkey's Audio, Free Lossless Audio Coding, and MLP is applied to DVD-A. As the network bandwidth of the Internet increases, a large amount of multimedia content is provided, and audio requires a lossless audio method. In the EU, digital audio broadcasting has already begun through DAB (Digital Audio Broadcasting), and broadcasting stations and content providers are using audio lossless coding. In the MPEG group, standardization of lossless audio compression is underway under the name of ISO / IEC 14496-3: 2001 / AMD 5, Audio Scalable to Lossless Coding (SLS). It provides Fine Grain Scalablity (FGS) and allows lossless audio compression.

무손실오디오 압축기술에서 가장 중요한 요소인 압축률은 데이터 간의 중복정보를 제거함으로써 개선될 수 있다. 상기 중복정보는 인접 데이터간의 예측을 통해 제거될 수 있으며 인접 데이터간의 문맥을 통해 제거될 수도 있다.Compression rate, the most important factor in lossless audio compression technology, can be improved by eliminating redundant information between data. The duplicated information may be removed through prediction between adjacent data or may be removed through a context between adjacent data.

정수(integer) MDCT 계수는 라플라시안 분포를 보이며, 이러한 분포에서는 골롬(Golomb) 코드라는 압축 방식이 최적의 결과를 보인다. FGS를 제공하기 위해서는 비트플레인 코딩이 필요한데 상기 Golomb 코드와 비트플레인 코딩을 조합한 것이 BPGC(Bit Plane Golomb Coding)이라 불리우며, 이는 최적의 압축률과 FGS를 제공한다. 그러나 상기 정수 MDCT 계수가 라플라시안 분포를 가진다는 가정은 실제 데이터 분포에서는 적절하지 않은 경우가 있다. 상기 BPGC는 정수 MDCT 계수가 라플라시안 분포를 한다고 가정하고 고안된 알고리즘이므로 상기 정수 MDCT 계수가 라플라시안 분포를 하지 않을 경우에는 최적의 압축률을 제공할 수 없다. 따라서 상기 정수 MDCT 계수가 라플라시안 분포를 한다는 가정에 관계없이 최적의 압축률을 제공할 수 있는 무손실 오디오 부호화 및 복호화방식이 필요하다.Integer MDCT coefficients show a Laplacian distribution, in which the best known compression method, called the Golomb code, is used. Bitplane coding is required to provide FGS. The combination of Golomb code and bitplane coding is called Bit Plane Golomb Coding (BPGC), which provides an optimal compression rate and FGS. However, the assumption that the integer MDCT coefficients have a Laplacian distribution may not be appropriate for the actual data distribution. Since the BPGC is an algorithm designed on the assumption that the integer MDCT coefficients have a Laplacian distribution, the BPGC cannot provide an optimal compression ratio when the integer MDCT coefficients do not have a Laplacian distribution. Therefore, there is a need for a lossless audio coding and decoding method that can provide an optimal compression ratio regardless of the assumption that the integer MDCT coefficients have a Laplacian distribution.

본 발명이 이루고자 하는 기술적 과제는 상기 정수 MDCT 계수가 라플라시안 분포를 한다는 가정에 관계없이 최적의 압축률을 제공할 수 있는 무손실 오디오 부호화 방법 및 장치를 제공하는 것이다.An object of the present invention is to provide a lossless audio encoding method and apparatus capable of providing an optimal compression ratio regardless of the assumption that the integer MDCT coefficients have a Laplacian distribution.

본 발명이 이루고자 하는 다른 기술적 과제는 상기 정수 MDCT 계수가 라플라시안 분포를 한다는 가정에 관계없이 최적의 압축률을 제공할 수 있는 무손실 오디오 복호화 방법 및 장치를 제공하는 것이다.Another object of the present invention is to provide a lossless audio decoding method and apparatus capable of providing an optimal compression ratio regardless of the assumption that the integer MDCT coefficients have a Laplacian distribution.

상기 기술적 과제를 이루기 위한 본 발명에 의한 무손실 오디오 부호화 방법은, 시간영역의 오디오 신호를 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호로 변환하는 신호변환단계; 상기 주파수영역의 오디오 신호를 주파수에 따른 비트플레인 신호로 맵핑하는 맵핑단계; 및 상기 비트플레인을 구성하는 이진 샘플에 대해, 소정의 문맥을 이용하여 결정된 확률모델을 통해 무손실부호화하는 무손실부호화단계를 포함함을 특징으로 한다. 상기 무손실부호화 단계는 상기 주파수 영역의 오디오 신호를 주파수에 따른 비트플레인 데이터로 매핑하는 단계; 비트플레인 별로 최상위비트와 골롬파라미터를 획득하는 단계; 최상위비트부터 최하위비트, 낮은 주파수성분부터 높은 주파수 순으로 부호화할 비트플레인 상의 이진샘플을 선택하는 단계; 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 이전 샘플들을 이용하여 상기 선택된 이진 샘플의 문맥을 계산하는 단계; 상기 획득된 골롬 파라미터와 상기 계산된 문맥들을 이용하여 확률모델을 선택하는 단계; 및 상기 선택된 확률모델을 이용하여 상기 이진샘플을 무손실 부호화하는 단계를 포함함이 바람직하다.According to an aspect of the present invention, there is provided a lossless audio encoding method comprising: a signal conversion step of converting an audio signal in a time domain into an audio spectral signal in a frequency domain having an integer value; A mapping step of mapping the audio signal in the frequency domain into a bitplane signal according to frequency; And a lossless encoding step of lossless encoding on the binary sample constituting the bitplane through a probability model determined using a predetermined context. The lossless encoding may include mapping an audio signal in the frequency domain to bitplane data according to frequency; Obtaining a most significant bit and a Golomb parameter for each bit plane; Selecting a binary sample on a bitplane to be encoded in order from most significant bit to least significant bit, and then from low frequency component to high frequency; For the selected binary sample, calculating a context of the selected binary sample using previous samples on the same bitplane; Selecting a probabilistic model using the obtained Golomb parameter and the calculated contexts; And lossless encoding the binary sample using the selected probability model.

상기 기술적 과제를 이루기 위한 본 발명에 의한 무손실 오디오 부호화 방법은, (a) 시간영역의 오디오 신호를 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호로 변환하는 단계; (b) 상기 주파수 영역의 오디오 스펙트럴 신호를 스케일링을 통해 손실부호화기의 입력신호로 정합시키는 단계; (c) 스케일링된 주파수 신호를 손실 압축 부호화하는 단계; (d) 상기 손실부호화된 데이터와 상기 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호의 차에 해당하는 에러매핑된 신호를 구하는 단계; (e) 상기 에러매핑된 신호를 문맥을 이용하여 무손실부호화하는 단계; 및 (f) 상기 무손실부호화된 신호와 상기 손실부호화된 신호를 다중화하여 비트스트림으로 생성하는 단계를 포함함을 특징으로 한다. 상기 (e) 단계는 (e1) 상기 (d)단계의 에러맵핑된 신호를 주파수에 따른 비트플레인 데이터로 매핑하는 단계; (e2) 상기 비트플레인의 최상위비트와 골롬파라미터를 획득하는 단계; (e3) 최상위비트부터 최하위비트, 낮은 주파수성분부터 높은 주파수 순으로 부호화할 비트플레인 상의 이진샘플을 선택하는 단계; (e4) 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 이전 샘플들을 이용하여 상기 선택된 이진 샘플의 문맥을 계산하는 단계; (e5) 상기 획득된 골롬 파라미터와 상기 계산된 문맥들을 이용하여 확률모델을 선택하는 단계; 및 (e6) 상기 선택된 확률모델을 이용하여 상기 이진샘플을 무손실 부호화하는 단계를 포함함이 바람직하다.According to an aspect of the present invention, there is provided a lossless audio encoding method comprising: (a) converting an audio signal in a time domain into an audio spectral signal in a frequency domain having an integer value; (b) matching the audio spectral signal in the frequency domain with an input signal of a lossy encoder through scaling; (c) lossy compression coding the scaled frequency signal; (d) obtaining an error mapped signal corresponding to a difference between the lossy coded data and an audio spectral signal in the frequency domain having the integer value; (e) lossless encoding the error mapped signal using a context; And (f) multiplexing the lossless coded signal and the lossy coded signal into a bitstream. The step (e) may include (e1) mapping the error mapped signal of the step (d) to bitplane data according to frequency; (e2) obtaining the most significant bit and the Golomb parameter of the bitplane; (e3) selecting a binary sample on a bitplane to be encoded in order from most significant bit to least significant bit, and then from low frequency component to high frequency; (e4) for the selected binary sample, calculating the context of the selected binary sample using previous samples on the same bitplane; (e5) selecting a probabilistic model using the obtained Golomb parameter and the calculated contexts; And (e6) lossless encoding the binary sample using the selected probability model.

상기 (e4)단계는 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 부호화된 이전 샘플들을 하나의 스칼라 값으로 만들어 상기 이진 샘플의 문맥값을 계산함이 바람직하다. 또한 상기 (e4)단계는 상기 선택된 이진 샘플에 대해, 같은 비트플레인에 존재하는 소정의 샘플들에 대해 '1'이 나올 확률을 구하여 상기 확률값에 소정의 정수값을 곱하여 정수로 나타낸 후 상기 정수를 이용하여 문맥값을 계 산함이 바람직하다. 또한 상기 (e4)단계는 상기 선택된 이진 샘플에 대해, 같은 주파수상의 이미 부호화된 상위 비트플레인 값을 이용하여 문맥값을 계산함이 바람직하다. 또한 상기 (e4)단계는 상기 선택된 이진 샘플에 대해, 같은 주파수상의 이미 부호화된 상위 비트플레인의 값이 존재하는지에 대한 정보를 이용하여 문맥값을 계산하되, 상기 상위 비트플레인에 '1'이 하나라도 존재하면 문맥값을 '1'로 하고, '1'이 하나라도 존재하지 않으면 문맥값을 '0'으로 함이 바람직하다.In the step (e4), it is preferable to calculate the context value of the binary sample by making the encoded previous samples on the same bitplane into one scalar value with respect to the selected binary sample. Also, in the step (e4), a probability of '1' is obtained for predetermined samples existing in the same bit plane for the selected binary sample, and the integer value is multiplied by a predetermined integer value to represent an integer, and then the integer is represented. It is preferable to calculate the context value by using. Also, in the step (e4), it is preferable to calculate a context value with respect to the selected binary sample by using an already encoded upper bitplane value on the same frequency. In addition, in step (e4), a context value is calculated for the selected binary sample by using information on whether there is a value of an already encoded upper bit plane on the same frequency, but one '1' is included in the upper bit plane. Even if it is present, it is preferable to set the context value to '1'.

상기 기술적 과제를 이루기 위한 본 발명에 의한 무손실 오디오 부호화 장치는, 시간영역의 오디오 신호를 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호로 변환하는 정수 시간/주파수 변환부; 및 상기 주파수영역의 오디오 신호를 주파수에 따른 비트플레인 데이터로 맵핑하고 상기 비트플레인을 구성하는 이진 샘플을 소정의 문맥을 이용하여 무손실부호화하는 무손실부호화부를 포함함을 특징으로 한다. 상기 무손실부호화부는 상기 주파수 영역의 오디오신호를 주파수에 따른 비트플레인 데이터로 매핑하는 비트플레인 매핑부; 상기 비트플레인의 최상위비트와 골롬파라미터를 획득하는 파라미터획득부; 최상위비트부터 최하위비트, 낮은 주파수성분부터 높은 주파수 순으로 부호화할 비트플레인 상의 이진샘플을 선택하는 이진샘플선택부; 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 이전 샘플들을 이용하여 상기 선택된 이진 샘플의 문맥을 계산하는 문맥계산부; 상기 획득된 골롬 파라미터와 상기 계산된 문맥들을 이용하여 확률모델을 선택하는 확률모델선택부; 및 상기 선택된 확률모델을 이용하여 상기 이진샘플을 무손실 부호화하는 이진샘플부호화부를 포함함을 특징으로 한다. 상기 정수 시간/주파수 변환부는 정수 MDCT 임이 바람직하다. According to an aspect of the present invention, there is provided a lossless audio encoding apparatus comprising: an integer time / frequency conversion unit converting an audio signal in a time domain into an audio spectral signal in a frequency domain having an integer value; And a lossless encoding unit for mapping the audio signal in the frequency domain into bitplane data according to frequency and losslessly encoding binary samples constituting the bitplane using a predetermined context. The lossless encoding unit includes: a bitplane mapping unit for mapping the audio signal in the frequency domain into bitplane data according to frequency; A parameter obtaining unit for obtaining a most significant bit and a Golomb parameter of the bit plane; A binary sample selection unit for selecting a binary sample on a bitplane to be encoded in order from most significant bit to least significant bit, and then from low frequency component to high frequency; A context calculator for calculating the context of the selected binary sample for the selected binary sample using previous samples on the same bitplane; A probability model selecting unit which selects a probability model using the obtained Golomb parameter and the calculated contexts; And a binary sample encoder for lossless encoding the binary sample using the selected probability model. Preferably, the integer time / frequency converter is an integer MDCT.

상기 기술적 과제를 이루기 위한 본 발명에 의한 무손실 오디오 부호화 장치는, 시간영역의 오디오 신호를 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호로 변환하는 정수 시간/주파수 변환부; 상기 정수 시간/주파수 변환부의 오디오 주파수 신호를 손실부호화부의 입력신호로 정합시키는 스케일링부; 상기 스케일링된 주파수 신호를 손실 압축 부호화하는 손실부호화부; 상기 손실부호화된 신호와 상기 정수 시간/주파수 변환부의 신호의 차를 구하는 에러맵핑부; 상기 에러맵핑된 신호를 문맥을 이용하여 무손실부호화하는 무손실부호화부; 상기 무손실부호화된 신호와 상기 손실부호화된 신호를 다중화하여 비트스트림으로 생성하는 멀티플렉서를 포함함을 특징으로 한다. 상기 무손실부호화부는 상기 에러맵핑부의 에러맵핑된 신호를 주파수에 따른 비트플레인 데이터로 매핑하는 비트플레인 매핑부; 상기 비트플레인의 최상위비트와 골롬파라미터를 획득하는 파라미터획득부; 최상위비트부터 최하위비트, 낮은 주파수성분부터 높은 주파수 순으로 부호화할 비트플레인 상의 이진샘플을 선택하는 이진샘플선택부; 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 이전 샘플들을 이용하여 상기 선택된 이진 샘플의 문맥을 계산하는 문맥계산부; 상기 획득된 골롬 파라미터와 상기 계산된 문맥들을 이용하여 확률모델을 선택하는 확률모델선택부; 및 상기 선택된 확률모델을 이용하여 상기 이진샘플을 무손실 부호화하는 이진샘플부호화부를 포함함이 바람직하다.According to an aspect of the present invention, there is provided a lossless audio encoding apparatus comprising: an integer time / frequency conversion unit converting an audio signal in a time domain into an audio spectral signal in a frequency domain having an integer value; A scaling unit for matching an audio frequency signal of the integer time / frequency conversion unit with an input signal of a lossy coding unit; A lossy coding unit for lossy compression encoding the scaled frequency signal; An error mapping unit obtaining a difference between the lossy coded signal and the signal of the integer time / frequency converter; A lossless encoding unit for losslessly encoding the error mapped signal using a context; And a multiplexer for multiplexing the lossless coded signal and the lossy coded signal to generate a bitstream. The lossless encoding unit may include: a bitplane mapping unit configured to map the error mapped signal of the error mapping unit into bitplane data according to a frequency; A parameter obtaining unit for obtaining a most significant bit and a Golomb parameter of the bit plane; A binary sample selecting unit which selects a binary sample on a bitplane to be encoded in order from most significant bit to least significant bit, and then from lowest frequency component to highest frequency; A context calculator for calculating the context of the selected binary sample for the selected binary sample using previous samples on the same bitplane; A probability model selecting unit which selects a probability model using the obtained Golomb parameter and the calculated contexts; And a binary sample encoder for lossless encoding the binary sample using the selected probability model.

상기 다른 기술적 과제를 이루기 위한 본 발명에 의한 무손실 오디오 복호화 방법은, 오디오데이터의 비트스트림으로부터 골롬파라미터를 획득하는 단계; 최상위비트로부터 최하위비트로, 낮은 주파수로부터 높은 주파수의 순서로 복호화할 이진 샘플을 선택하는 샘플선택단계; 이미 복호화된 샘플들을 이용하여 소정의 문맥을 계산하는 문맥계산단계; 상기 골롬파라미터와 문맥을 이용하여 확률모델을 선택하는 확률모델선택단계; 상기 선택된 확률모델을 이용하여 산술복호화하는 산술복호화단계; 및 모든 샘플이 복호화될 때까지 상기 샘플선택단계 내지 산술복호화단계를 반복 수행하는 단계를 포함함을 특징으로 한다. 상기 문맥계산단계는 같은 비트플레인상의 앞에 존재하는 이미 복호화된 샘플들을 이용하여 제1문맥을 계산하는 단계; 및 같은 주파수 상에서 이미 복호화된 상위 비트플레인의 샘플들을 이용하여 제2문맥을 계산하는 단계를 포함함이 바람직하다.According to another aspect of the present invention, there is provided a lossless audio decoding method comprising: obtaining a Golomb parameter from a bitstream of audio data; A sample selecting step of selecting a binary sample to be decoded in order from the most significant bit to the least significant bit, and then from a low frequency to a high frequency; A context calculation step of calculating a predetermined context using already decoded samples; A probability model selection step of selecting a probability model using the Golomb parameter and a context; An arithmetic decoding step of performing arithmetic decoding using the selected probability model; And repeating the sample selection to arithmetic decoding until all samples are decoded. The context calculating step includes calculating a first context using previously decoded samples existing on the same bitplane; And calculating a second context using samples of the upper bitplane already decoded on the same frequency.

상기 다른 기술적 과제를 이루기 위한 본 발명에 의한 무손실 오디오 복호화 방법은, 손실부호화된 오디오데이터와, 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호의 차를 에러데이터라 할 때, (aa) 오디오 비트스트림을 역다중화하여 소정의 손실부호화된 손실비트스트림과 상기 에러데이터의 에러비트스트림을 추출하는 단계; (bb) 상기 추출된 손실비트스트림을 소정의 손실복호화하는 단계; (cc) 상기 추출된 에러비트스트림을 무손실복호화하는 단계; (dd) 상기 복호화된 손실비트스트림과 에러비트스트림을 이용하여 주파수 스펙트럴 신호로 복원하는 단계; 및 (ee) 상기 주파수 스펙트럴 신호를 역 정수 시간/주파수변환하여 시간영역의 오디오 신호를 복원하는 단계를 포함함을 특징으로 한다. 상기 (cc) 단계는 (cc1) 오디오데이터의 비트스트림으로부터 골롬파라미터를 획득하는 단계; (cc2) 최상위비트로부터 최하위비트로, 낮은 주파수로부터 높은 주파수의 순서로 복호화할 이진 샘플을 선택하는 단계; (cc3) 이미 복호화된 샘플들을 이용하여 소정의 문맥을 계산하는 단계; (cc4) 상기 골롬파라미터와 문맥을 이용하여 확률모델을 선택하는 단계; (cc5) 상기 선택된 확률모델을 이용하여 산술복호화하는 단계; 및 (cc6) 모든 샘플이 복호화될 때까지 상기 (cc2)단계 내지 (cc5)단계를 반복 수행하는 단계를 포함함이 바람직하다. 상기 (cc3)단계는 같은 비트플레인상의 앞에 존재하는 이미 복호화된 샘플들을 이용하여 제1문맥을 계산하는 단계; 및 같은 주파수 상에서 이미 복호화된 상위 비트플레인의 샘플들을 이용하여 제2문맥을 계산하는 단계를 포함함이 바람직하다.In the lossless audio decoding method according to the present invention for achieving the above technical problem, when the difference between the loss coded audio data and the audio spectral signal in the frequency domain having an integer value is error data, (aa) an audio bitstream Demultiplexing and extracting a predetermined loss coded loss bit stream and an error bit stream of the error data; (bb) predetermined loss decoding the extracted loss bitstream; (cc) lossless decoding the extracted error bitstream; (dd) restoring a frequency spectral signal using the decoded lossy bitstream and error bitstream; And (ee) restoring the audio signal in the time domain by performing inverse integer time / frequency conversion on the frequency spectral signal. The (cc) step may include obtaining a Golomb parameter from a bitstream of (cc1) audio data; (cc2) selecting binary samples to be decoded from most significant bit to least significant bit, in order of low frequency to high frequency; (cc3) calculating a predetermined context using already decoded samples; (cc4) selecting a probabilistic model using the Golomb parameter and context; (cc5) performing arithmetic decoding using the selected probability model; And (cc6) repeating steps (cc2) to (cc5) until all samples are decoded. The step (cc3) may include calculating a first context using previously decoded samples existing on the same bitplane; And calculating a second context using samples of the upper bitplane already decoded on the same frequency.

상기 다른 기술적 과제를 이루기 위한 본 발명에 의한 무손실 오디오 복호화 장치는, 오디오데이터의 비트스트림으로부터 골롬파라미터를 획득하는 파라미터 획득부; 최상위비트로부터 최하위비트로, 낮은 주파수로부터 높은 주파수의 순서로 복호화할 이진 샘플을 선택하는 샘플선택부; 이미 복호화된 샘플들을 이용하여 소정의 문맥을 계산하는 문맥계산부; 상기 파라미터 획득부의 골롬파라미터와 상기 문맥계산부의 문맥을 이용하여 확률모델을 선택하는 확률모델선택부; 및 상기 선택된 확률모델을 이용하여 산술복호화하는 산술복호화부를 포함함을 특징으로 한다. 상기 문맥계산부는 같은 비트플레인상의 앞에 존재하는 이미 복호화된 샘플들을 이용하여 제1문맥을 계산하는 제1문맥계산부; 및 같은 주파수 상에서 이미 복호화된 상위 비트플레인의 샘플들을 이용하여 제2문맥을 계산하는 제2문맥계산부를 포함함이 바람직하다.According to another aspect of the present invention, there is provided a lossless audio decoding apparatus, including: a parameter obtaining unit configured to obtain a Golomb parameter from a bitstream of audio data; A sample selecting unit for selecting a binary sample to be decoded in order from the most significant bit to the least significant bit and then from a low frequency to a high frequency; A context calculator which calculates a predetermined context using samples that have already been decoded; A probabilistic model selection unit for selecting a probabilistic model using the Golomb parameter of the parameter obtaining unit and the context of the context calculating unit; And an arithmetic decoding unit for performing arithmetic decoding using the selected probabilistic model. The context calculator may include a first context calculator configured to calculate a first context using previously decoded samples existing on the same bit plane; And a second context calculator configured to calculate a second context using samples of the upper bitplane already decoded on the same frequency.

상기 다른 기술적 과제를 이루기 위한 본 발명에 의한 무손실 오디오 복호화 장치는, 손실부호화된 오디오데이터와, 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호의 차를 에러데이터라 할 때, 오디오 비트스트림을 역다중화하여 소정의 손실부호화된 손실비트스트림과 상기 에러데이터의 에러비트스트림을 추출하는 역다중화부; 상기 추출된 손실비트스트림을 소정의 손실복호화하는 손실복호화부; 상기 추출된 에러비트스트림을 무손실복호화하는 무손실복호화부; 상기 복호화된 손실비트스트림과 에러비트스트림을 합성하여 주파수 스펙트럴 신호로 복원하는 오디오신호 합성부; 및 상기 복원된 주파수 스펙트럴 신호를 역 정수 시간/주파수변환하여 시간영역의 오디오 신호를 복원하는 역 정수 시간/주파수변환부를 포함함을 특징으로 한다.The lossless audio decoding apparatus according to the present invention for achieving the above another technical problem is to demultiplex an audio bitstream when a difference between lossy encoded audio data and an audio spectral signal in a frequency domain having an integer value is error data. A demultiplexer for extracting a predetermined loss coded loss bit stream and an error bit stream of the error data; A lossy decoding unit for predetermined lossy decoding of the extracted lossy bitstream; A lossless decoding unit for lossless decoding the extracted error bitstream; An audio signal synthesizing unit for synthesizing the decoded lossy bitstream and the error bitstream to restore a frequency spectral signal; And an inverse integer time / frequency converter for restoring an audio signal in a time domain by performing inverse integer time / frequency conversion on the restored frequency spectral signal.

상기 손실복호화부는 AAC 복호화부임이 바람직하다. 상기 무손실 오디오 복호화장치는 상기 손실복호화부에서 복호화된 주파수 영역의 오디오 신호를 시간영역의 오디오 신호로 복원하는 역 시간/주파수 변환부를 더 구비함이 바람직하다. 상기 무손실복호화부는 오디오데이터의 비트스트림으로부터 골롬파라미터를 획득하는 파라미터획득부; 최상위비트로부터 최하위비트로, 낮은 주파수로부터 높은 주파수의 순서로 복호화할 이진 샘플을 선택하는 샘플선택부; 이미 복호화된 샘플들을 이용하여 소정의 문맥을 계산하는 문맥계산부; 상기 골롬파라미터와 문맥을 이용하여 확률모델을 선택하는 확률모델선택부; 및 상기 선택된 확률모델을 이용하여 산술복호화하는 산술복호화부를 포함함이 바람직하다. The lossy decoding unit is preferably an AAC decoding unit. The lossless audio decoding apparatus may further include an inverse time / frequency conversion unit for restoring the audio signal in the frequency domain decoded by the lossy decoding unit to the audio signal in the time domain. The lossless decoding unit comprises: a parameter acquisition unit for obtaining a Golomb parameter from a bitstream of audio data; A sample selecting unit for selecting a binary sample to be decoded in order from the most significant bit to the least significant bit and then from a low frequency to a high frequency; A context calculator which calculates a predetermined context using samples that have already been decoded; A probability model selection unit for selecting a probability model using the Golomb parameter and a context; And an arithmetic decoding unit for performing arithmetic decoding using the selected probability model.

상기 문맥계산부는 같은 비트플레인상의 앞에 존재하는 이미 복호화된 샘플들을 이용하여 제1문맥을 계산하는 제1문맥계산부; 및 같은 주파수 상에서 이미 복 호화된 상위 비트플레인의 샘플들을 이용하여 제2문맥을 계산하는 제2문맥계산부를 구비함이 바람직하다.The context calculator may include a first context calculator configured to calculate a first context using previously decoded samples existing on the same bit plane; And a second context calculator for calculating a second context using samples of the upper bitplane already decoded on the same frequency.

그리고 상기 기재된 발명을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체를 제공한다.A computer readable recording medium having recorded thereon a program for executing the invention described above is provided.

이하, 첨부된 도면들을 참조하여 본 발명에 따른 무손실 오디오 부호화/복호화 방법 및 장치를 상세히 설명한다. 오디오 부호화에 있어서, FGS(Fine Grain Scalability)를 제공하고 무손실 오디오 부호화를 위해서는 정수화된 MDCT(Integer Modified Discrete Cosine Transform)를 이용한다. 특히 상기 오디오 신호의 입력샘플 분포가 라플라시안(Laplacian) 분포를 따르면 BPGC(Bit Plane Golomb Coding) 방식이 최적의 압축결과를 보이며, 이는 Golomb 코드와 등가적인 결과를 제공하는 것으로 알려져 있다. Golomb 파라미터는 다음과 같은 과정에 의해 구해질 수 있다.Hereinafter, a lossless audio encoding / decoding method and apparatus according to the present invention will be described in detail with reference to the accompanying drawings. In audio coding, Fine Grain Scalability (GFS) is provided, and an integer modified discrete cosine transform (MDCT) is used for lossless audio coding. In particular, according to the Laplacian distribution of the input sample distribution of the audio signal, the Bit Plane Golomb Coding (BPGC) method has an optimal compression result, which is equivalent to the Golomb code. The Golomb parameter can be obtained by the following procedure.

For(L=0;(N<<L+1))<=A;L++); For (L = 0; (N << L + 1)) <= A; L ++);

을 통해 Golomb 파라미터 L을 구할 수 있으며, Golomb 코드의 특성상 L보다 작은 비트플레인에서는 0 또는 1이 나올 확률을 1/2로 볼 수 있다. 하지만 이러한 결과는 라플라시안 분포일 경우에는 최적이지만 그렇지 않을 경우에는 최적의 압축률을 제공할 수 없다. 따라서 본 발명의 기본 개념은 데이터 분포가 라플라시안 분포를 따르지 않더라도 통계적 분석을 통해 문맥을 이용하여 최적의 압축률을 제공하는 데 있다.The Golomb parameter L can be obtained by using. In the characteristics of the Golomb code, the probability of getting 0 or 1 in a bit plane smaller than L is 1/2. These results, however, are optimal for the Laplacian distribution, but cannot provide an optimal compression ratio. Therefore, the basic concept of the present invention is to provide the optimal compression ratio using the context through statistical analysis even if the data distribution does not follow the Laplacian distribution.

도 1은 본 발명에 의한 무손실 오디오 부호화 장치에 대한 일실시예의 구성을 블록도로 도시한 것으로서, 정수 시간/주파수 변환부(100) 및 무손실부호화 부(120)를 포함하여 이루어진다. 상기 정수 시간/주파수 변환부(100)는 시간영역의 오디오 신호를 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호로 변환하며, 바람직하게는 정수 MDCT를 사용한다. 상기 무손실부호화부(120)는 상기 주파수영역의 오디오 신호를 주파수에 따른 비트플레인 데이터로 맵핑하고 상기 비트플레인을 구성하는 이진 샘플을 소정의 문맥을 이용하여 무손실부호화하며, 비트플레인매핑부(200), 파라미터획득부(210), 이진샘플선택부(220), 문맥계산부 (230), 확률모델선택부(240), 이진샘플부호화부(250)를 포함하여 이루어진다.1 is a block diagram illustrating an embodiment of a lossless audio encoding apparatus according to the present invention, and includes an integer time / frequency conversion unit 100 and a lossless encoding unit 120. The integer time / frequency converter 100 converts an audio signal in a time domain into an audio spectral signal in a frequency domain having an integer value, and preferably uses an integer MDCT. The lossless encoding unit 120 maps an audio signal in the frequency domain to bitplane data according to frequency, and lossless encodes a binary sample constituting the bitplane using a predetermined context, and the bitplane mapping unit 200. , The parameter acquisition unit 210, the binary sample selecting unit 220, the context calculating unit 230, the probability model selecting unit 240, and the binary sample encoding unit 250.

상기 비트플레인 매핑부(200)는 상기 주파수 영역의 오디오신호를 주파수에 따른 비트플레인 데이터로 매핑한다. 도 8은 주파수에 따른 비트플레인 데이터로의 매핑된 일 예를 도시한 것이다.The bitplane mapping unit 200 maps the audio signal in the frequency domain into bitplane data according to frequency. 8 shows an example of mapping to bitplane data according to frequency.

상기 파라미터획득부(210)는 상기 비트플레인의 최상위비트(MSB)와 골롬파라미터를 획득한다. 상기 이진샘플선택부(220)는 최상위비트부터 최하위비트(LSB), 낮은 주파수성분부터 높은 주파수 순으로 부호화할 비트플레인 상의 이진샘플을 선택한다. The parameter acquisition unit 210 obtains the most significant bit (MSB) and the Golomb parameter of the bit plane. The binary sample selector 220 selects a binary sample on a bitplane to be encoded in order from the most significant bit to the least significant bit (LSB) and the lowest frequency component to the highest frequency.

상기 문맥계산부(230)는 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 이전 샘플들을 이용하여 상기 선택된 이진 샘플의 문맥을 계산한다. 상기 확률모델선택부(240)는 상기 획득된 골롬 파라미터와 상기 계산된 문맥들을 이용하여 확률모델을 선택한다. 상기 이진샘플부호화부(250)는 상기 선택된 확률모델을 이용하여 상기 이진샘플을 무손실 부호화한다.The context calculator 230 calculates a context of the selected binary sample using the previous samples on the same bitplane, for the selected binary sample. The probability model selector 240 selects a probability model using the obtained Golomb parameter and the calculated contexts. The binary sample encoder 250 losslessly encodes the binary sample using the selected probability model.

도 3은 본 발명에 의한 무손실 오디오 부호화 장치의 다른 실시예의 구성을 블록도로 도시한 것으로서, 정수 시간/주파수 변환부(300), 스케일링부(310), 손실부호화부(320), 에러매핑부(330),무손실부호화부(340) 및 멀티플렉서(350)를 포함하여 이루어진다.3 is a block diagram showing the configuration of another embodiment of a lossless audio encoding apparatus according to the present invention. The integer time / frequency conversion unit 300, the scaling unit 310, the loss encoding unit 320, and the error mapping unit ( 330, a lossless encoding unit 340, and a multiplexer 350.

상기 정수 시간/주파수 변환부(300)는 시간영역의 오디오 신호를 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호로 변환하며, 바람직하게는 정수 MDCT를 사용한다. 상기 스케일링부(310)는 상기 정수 시간/주파수 변환부(300)의 오디오 주파수 신호를 손실부호화부(320)의 입력신호로 정합시킨다. 상기 정수 시간/주파수 변환부(300)의 출력신호는 정수로 나타내지므로, 상기 손실부호화부(320)의 입력으로 직접 사용될 수 없다. 따라서 상기 스케일링부(310)를 통해 손실부호화부(320)의 입력신호로 사용될 수 있도록 상기 정수 시간/주파수 변환부(300)의 오디오 주파수 신호를 정합시킨다.The integer time / frequency converter 300 converts an audio signal in a time domain into an audio spectral signal in a frequency domain having an integer value, and preferably uses an integer MDCT. The scaling unit 310 matches the audio frequency signal of the integer time / frequency converter 300 with the input signal of the lossy encoder 320. Since the output signal of the integer time / frequency converter 300 is represented by an integer, it cannot be directly used as an input of the lossy encoder 320. Accordingly, the audio frequency signal of the integer time / frequency converter 300 is matched to be used as an input signal of the loss encoder 320 through the scaling unit 310.

상기 손실부호화부(320)는 상기 스케일링된 주파수 신호를 손실 압축 부호화하며, 바람직하게는 AAC core 부호화기를 사용한다. 상기 에러매핑부(330)는 상기 손실부호화된 신호와 상기 정수 시간/주파수 변환부(300)의 신호의 차에 해당하는 에러매핑된 신호를 구한다. 상기 무손실부호화부(340)는 상기 에러매핑된 신호를 문맥(context)을 이용하여 무손실부호화한다. 상기 멀티플렉서(350)는 상기 무손실부호화부(340)의 무손실부호화된 신호와 상기 손실부호화부(320)의 손실부호화된 신호를 다중화하여 비트스트림으로 생성한다.The lossy coding unit 320 performs lossy compression coding on the scaled frequency signal, and preferably uses an AAC core encoder. The error mapping unit 330 obtains an error mapped signal corresponding to a difference between the loss coded signal and the signal of the integer time / frequency conversion unit 300. The lossless encoding unit 340 losslessly encodes the error mapped signal using a context. The multiplexer 350 multiplexes the lossless coded signal of the lossless encoder 340 and the lossy coded signal of the lossy encoder 320 into a bitstream.

도 4는 상기 무손실부호화부(340)의 구성을 블록도로 도시한 것으로서, 비트플레인 매핑부(400),파라미터획득부(410), 이진샘플선택부(420), 문맥계산부(430), 확률모델선택부(440), 이진샘플부호화부(450)을 구비한다.4 is a block diagram illustrating the configuration of the lossless encoding unit 340, and includes a bitplane mapping unit 400, a parameter acquisition unit 410, a binary sample selection unit 420, a context calculation unit 430, and a probability. A model selector 440 and a binary sample coder 450 are provided.

상기 비트플레인 매핑부(400)는 상기 에러매핑부의 에러맵핑된 신호를 주파수에 따른 비트플레인 데이터로 매핑한다. 상기 파라미터획득부(410)는 상기 비트플레인의 최상위비트와 골롬(Golomb) 파라미터를 획득한다. 상기 이진샘플선택부(420)는 최상위비트부터 최하위비트, 낮은 주파수성분부터 높은 주파수 순으로 부호화할 비트플레인 상의 이진샘플을 선택한다. 상기 문맥계산부(430)는 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 이전 샘플들을 이용하여 상기 선택된 이진 샘플의 문맥을 계산한다. 상기 확률모델선택부(440)는 상기 획득된 골롬 파라미터와 상기 계산된 문맥들을 이용하여 확률모델을 선택한다. 상기 이진샘플부호화부(450)는 상기 선택된 확률모델을 이용하여 상기 이진샘플을 무손실 부호화한다.The bitplane mapping unit 400 maps the error mapped signal of the error mapping unit to bitplane data according to frequency. The parameter acquisition unit 410 obtains the most significant bit and the Golomb parameter of the bitplane. The binary sample selector 420 selects a binary sample on a bitplane to be encoded in order from the most significant bit to the least significant bit, and then the lowest frequency component to the highest frequency. The context calculator 430 calculates the context of the selected binary sample using the previous samples on the same bitplane for the selected binary sample. The probability model selection unit 440 selects a probability model using the obtained Golomb parameter and the calculated contexts. The binary sample encoder 450 losslessly encodes the binary sample using the selected probability model.

도 2 및 도 4에 도시된 문맥계산부(230, 430)는 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 부호화된 이전 샘플들을 하나의 스칼라 값으로 만들어 상기 이진 샘플의 문맥값을 계산할 수 있다. 또한 상기 문맥계산부(230, 430)는 상기 선택된 이진 샘플에 대해, 같은 비트플레인에 존재하는 소정의 샘플들에 대해 '1'이 나올 확률을 구하여 상기 확률값에 소정의 정수값을 곱하여 정수로 나타낸 후 상기 정수를 이용하여 문맥값을 계산할 수 있다. 상기 문맥계산부(230, 430)는 상기 선택된 이진 샘플에 대해, 같은 주파수상의 이미 부호화된 상위 비트플레인 값을 이용하여 문맥값을 계산할 수 있으며, 상기 선택된 이진 샘플에 대해, 같은 주파수상의 이미 부호화된 상위 비트플레인의 값이 존재하는지에 대한 정보를 이용 하여 문맥값을 계산하되, 상기 상위 비트플레인에 '1'이 하나라도 존재하면 문맥값을 '1'로 하고, '1'이 하나라도 존재하지 않으면 문맥값을 '0'으로 하여 문맥을 계산할 수도 있다.The context calculators 230 and 430 illustrated in FIGS. 2 and 4 may calculate the context value of the binary sample by making the encoded previous samples on the same bit plane into one scalar value with respect to the selected binary sample. In addition, the context calculators 230 and 430 obtain a probability that '1' appears for predetermined samples existing in the same bit plane for the selected binary sample, and multiply the probability value by a predetermined integer value to represent an integer. After that, the context value can be calculated using the integer. The context calculating units 230 and 430 may calculate a context value with respect to the selected binary sample by using an already encoded upper bitplane value on the same frequency, and with respect to the selected binary sample, the contextual value is already encoded on the same frequency. Calculate the context value using information on whether there is a value of the upper bitplane, but if there is at least one '1' in the upper bitplane, set the context value to '1' and not at least one '1'. Otherwise, the context can be calculated with the context value '0'.

도 5는 도 1에 도시된 본 발명에 의한 무손실오디오 부호화 장치의 일실시에에 대한 동작을 흐름도로 도시한 것으로서, 이를 참조하여 상기 무손실오디오 부호화 장치의 구성을 설명하기로 한다. 먼저, 시간영역의 오디오 신호에 해당하는 PCM 신호가 상기 정수 시간/주파수변환부(100)에 입력되면, 이를 정수값을 갖는 주파수 영역의 오디오 스펙트럴(spectral) 신호로 변환한다.(500단계) 여기서는 int MDCT를 사용하는 것이 바람직하다. 그리고 나서 도 8과 같이 상기 주파수영역의 오디오 신호를 주파수에 따른 비트플레인 신호로 맵핑한다.(520단계) 그 다음에 상기 비트플레인을 구성하는 이진 샘플에 대해, 소정의 문맥을 이용하여 결정된 확률모델을 통해 무손실부호화한다.(540단계)FIG. 5 is a flowchart illustrating an operation of one embodiment of the lossless audio encoding apparatus according to the present invention shown in FIG. 1, and the configuration of the lossless audio encoding apparatus will be described with reference to the flowchart. First, when a PCM signal corresponding to an audio signal in a time domain is input to the integer time / frequency converter 100, the PCM signal is converted into an audio spectral signal in a frequency domain having an integer value (step 500). It is preferable to use int MDCT here. Then, the audio signal in the frequency domain is mapped to a bitplane signal according to frequency as shown in FIG. 8 (step 520). A probability model determined by using a predetermined context for binary samples constituting the bitplane. Lossless coding through (step 540).

그리고 도 6은 도 1에 도시된 상기 무손실부호화부(120)의 동작을 흐름도로 도시한 것으로서, 도 6을 참조하여 그 동작을 설명한다. FIG. 6 is a flowchart illustrating an operation of the lossless encoding unit 120 illustrated in FIG. 1, and the operation thereof will be described with reference to FIG. 6.

먼저, 상기 주파수 영역의 오디오 신호가 비트플레인 매핑부(200)에 입력되면, 상기 주파수영역의 오디오 신호를 주파수에 따른 비트플레인 데이터로 매핑한다.(600단계) 또한 Golomb 파라미터 획득부(210)을 통해 비트플레인 별로 최상위비트와 골롬파라미터를 획득한다.(610단계) 그리고 나서 상기 이진샘플 선택부(220)를 통해 최상위비트부터 최하위비트, 낮은 주파수성분부터 높은 주파수 순으로 부호화할 비트플레인 상의 이진샘플을 선택한다.(610단계) 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 이전 샘플들을 이용하여 상기 이진 샘플 선택부(220)에서 선택된 이진 샘플의 문맥을 계산한다.(620단계) 상기 Golomb 파라미터 획득부(210)에서 구해진 골롬(Golomb) 파라미터와 상기 문맥계산부(230)에서 계산된 문맥들을 이용하여 확률모델을 선택한다.(630단계) 상기 확률모델 선택부(240)에서 선택된 확률모델을 이용하여 상기 이진샘플을 무손실 부호화한다.(640단계) First, when the audio signal of the frequency domain is input to the bitplane mapping unit 200, the audio signal of the frequency domain is mapped to bitplane data according to the frequency (step 600). The most significant bit and the Golomb parameter are obtained for each bitplane (step 610). The binary sample on the bitplane to be encoded in order from the most significant bit to the least significant bit, and then the lowest frequency component through the binary sample selector 220. In operation 610, the context of the binary sample selected by the binary sample selector 220 is calculated using the previous samples on the same bitplane. A probabilistic model is selected using the Golomb parameter obtained from the unit 210 and the contexts calculated by the context calculator 230. (Step 630) by using the probability model selected in the probability model selection unit 240 and a lossless coding the binary sample (step 640)

도 7은 도 3에 도시된 본 발명에 의한 무손실오디오 부호화 장치의 다른 실시에에 대한 동작을 흐름도로 도시한 것으로서, 이를 참조하여 상기 무손실오디오 부호화 장치의 다른 실시예에 대한 동작을 설명하기로 한다. 먼저, 정수 시간/주파수 변환부(300)를 통해 시간영역의 오디오 신호를 정수값을 갖는 주파수 영역의 오디오 스펙트럴(spectral) 신호로 변환한다.(710단계)FIG. 7 is a flowchart illustrating an operation of another embodiment of the lossless audio encoding apparatus according to the present invention shown in FIG. 3, and the operation of another embodiment of the lossless audio encoding apparatus will be described with reference to the flowchart. . First, the audio signal in the time domain is converted into an audio spectral signal in the frequency domain having an integer value through the integer time / frequency converter 300 (step 710).

그리고 나서 상기 주파수 영역의 오디오 스펙트럴 신호는 상기 스케일링부(310)에서 스케일링되어 손실부호화부(320)의 입력신호로 사용될 수 있도록 정합된다.(720단계) 상기 스케일링부(310)에서 스케일링된 주파수 신호는 손실압축부호화부(320)에서 손실 압축 부호화한다.(730단계) 상기 손실압축 부호화는 AAC Core 부호화기에 의해 수행됨이 바람직하다.Then, the audio spectral signal in the frequency domain is scaled by the scaling unit 310 and matched so that it can be used as an input signal of the lossy coding unit 320 (step 720). The signal is subjected to lossy compression encoding by the lossy compression encoder 320 (step 730). The lossy compression encoding is preferably performed by an AAC Core encoder.

상기 손실부호화부(320)에서 손실부호화된 데이터와 상기 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호의 차에 해당하는 에러매핑된 신호가 에러매핑부(330)에서 구해진다.(740단계) 상기 에러매핑된 신호는 무손실부호화부(340)에서 문맥을 이용하여 무손실부호화된다.(750단계)An error mapped signal corresponding to a difference between the data loss coded by the loss encoder 320 and the audio spectral signal in the frequency domain having the integer value is obtained by the error mapper 330 (step 740). The error mapped signal is losslessly encoded using the context in the lossless encoding unit 340 (step 750).

상기 무손실부호화부(340)에서 무손실부호화된 신호와 상기 손실부호화부(320)에서 손실부호화된 신호는 멀티플렉서(350)에서 다중화되여 비트스트림으로 생성된다.(760단계) 상기 무손실 부호화(750단계)는 에러매핑된 신호를 주파수에 따른 비트플레인 데이터로 매핑한다. 그리고 나서 최상위비트(MSB)와 골롬파라미터를 구하는 과정 이후는 도 6과 동일하므로 설명을 생략한다.The lossless encoding signal in the lossless coding unit 340 and the lossless coding signal in the lossy coding unit 320 are multiplexed by the multiplexer 350 to generate a bitstream. (Step 760) The lossless coding (step 750). Maps the error-mapped signal to bitplane data according to frequency. Since the process of obtaining the most significant bit (MSB) and the Golomb parameter is the same as in FIG. 6, description thereof is omitted.

도8은 부호화될 샘플이 비트플레인 상에서 문맥을 선택하는 샘플들의 범위를 나타낸 것이다. 점선으로 표시된 부분을 이용하여 이미 부호화된 샘플들로부터 현재 샘플의 확률분포를 계산한다.8 illustrates a range of samples in which a sample to be encoded selects a context on a bitplane. The probability distribution of the current sample is calculated from the already coded samples using the portion indicated by the dotted line.

일반적으로 MDCT에 의한 spectral leakage로 인해 주파수축상의 주변 샘플들의 상관관계(correlation)가 존재하게 된다. 즉 인접 샘플의 값이 X이면 현재 샘플의 값이 X부근의 값일 확률이 매우 높다는 것이다. 이에 주변 인접 샘플을 문맥으로 선택하면 상기 correlation을 이용하여 압축률 향상을 꾀할 수 있다.In general, due to spectral leakage by MDCT, there is a correlation between neighboring samples on the frequency axis. That is, if the value of the adjacent sample is X, the probability that the value of the current sample is the value of X is very high. In this case, if the neighboring adjacent sample is selected as the context, the compression ratio can be improved by using the correlation.

*또한 상위 비트플레인의 값은 하위 샘플의 확률분포에 correlation이 높은 것을 통계분석을 통해 알 수 있었으며 이에 주변 인접 샘플을 문맥으로 선택하면 correlation을 이용하여 압축률 향상을 꾀할 수 있다.* Also, statistical analysis showed that the upper bitplane value has a high correlation in the probability distribution of lower samples. If the neighboring adjacent samples are selected as the context, the correlation can be improved by using correlation.

상기 문맥을 계산하는 방식을 설명하면 다음과 같다. 먼저, 같은 비트플레인상에 존재하는, 이전에 이미 코딩된 샘플들을 이용하여 문맥을 계산하는 방식이 다. 상기 방식에는 여러 가지 방법이 있을 수 있으며, 그 중에 대표적인 방법은 다음과 같다.The method of calculating the context is as follows. First, the context is calculated using previously coded samples that exist on the same bitplane. There may be a number of methods in the above method, and representative methods are as follows.

첫 번째 방법은, 동일한 비트플레인 상에 소정의 길이 이전에 있는 이진 샘플들을 하나의 스칼라값으로 만들어 문맥으로 사용하는 것이다. 예를 들어 4개의 이전 이진샘플을 문맥으로 사용하기로 한다면, 상기 이전의 샘플들이 0100이라고 하면 이를 이진수로 보고 상기 0100(2)를 4로 하여 상기 4를 문맥값으로 한다. 일반적으로 0001(2)일 경우 현재 샘플이 '1'일 확률이 가장 높다. 경우에 따라 모델의 크기를 고려하여 문맥의 범위를 한정하는 경우도 있다. 보통 문맥은 8~16의 범위를 가진다.The first method is to make binary scalar values earlier than a predetermined length on the same bitplane and use them as context. For example, if four previous binary samples are to be used as the context, if the previous samples are 0100, this is regarded as binary and 4 is set as 4 with 0100 (2) as 4. In general, if 0001 (2), the probability that the current sample is '1' is the highest. In some cases, the scope of the context is limited in consideration of the size of the model. Usually the context is in the range of 8-16.

두 번째 방법은, 동일한 비트플레인 상에 존재하는 '1'을 카운트하여 부호화하고자 하는 샘플보다 먼저 부호화된 샘플들에 대해 상기 샘플이 '1'일 확률을 구하는 방법이다. 이를 문맥으로 표현하기 위해 상기 '1'이 나올 확률값에 정수 N을 곱하여 정수로 표현한다. 만일 이 값이 0일 경우 동일 비트플레인 상의 이전 샘플에 '1'이 하나도 나타나지 않은 경우이므로 현재의 샘플이 '1'일 확률이 상당히 높게 되며 N에 가까운 값을 보일 경우에는 이미 앞 샘플들이 '1'이 많이 나온 상태이므로 '0'일 확률이 높게 된다. 때에 따라 모델의 크기를 고려하여 문맥의 범위를 한정하는 경우도 있다. 보통 문맥은 8~16의 범위를 가진다.The second method is a method of calculating a probability that the sample is '1' for the encoded samples before the sample to be counted by counting '1' existing on the same bitplane. In order to express this in context, the probability value of '1' is multiplied by an integer N and expressed as an integer. If this value is 0, then there is no '1' in the previous sample on the same bitplane, so the probability that the current sample is '1' is very high. Since there are many ',' the probability of '0' is high. In some cases, the scope of the context is limited in consideration of the size of the model. Usually the context is in the range of 8-16.

상기 문맥을 계산하는 다음 방식으로는, 같은 주파수상에 상위 비트플레인의 샘플들을 이용하여 문맥을 계산하는 것이다. 상기 방식에도 여러 가지 방법이 있을 수 있으며 그 중에 대표적인 방법은 다음과 같다.The next way to calculate the context is to compute the context using samples of the upper bitplane on the same frequency. There may be various methods in the above method, and representative methods are as follows.

첫 번째 방법은, 이미 부호화된 상위 비트플레인의 값을 문맥으로 이용한다. 예를 들어 상위 비트플레인 샘플들이 0110이라면 이를 이진수로 계산하여 0110(2), 즉 6이라는 문맥으로 표현한다. 경우에 따라서는 모델의 크기를 고려하여 문맥의 범위를 한정하는 경우도 있다. 보통 문맥은 8~16의 범위를 가진다.The first method uses, as context, the value of a higher bitplane that has already been encoded. For example, if the upper bitplane samples are 0110, it is calculated as binary and expressed in the context of 0110 (2), that is, 6. In some cases, the scope of the context is limited in consideration of the size of the model. Usually the context is in the range of 8-16.

두 번째 방법은, 이미 부호화된 상위 비트플레인의 값이 존재하는지에 대한 정보를 이용한다. 같은 주파수 상의 상위 비트플레인에 '1'이 하나라도 있으면 문맥값은 '1'이며, '1'이 없는 경우에는 문맥값을 '0' 으로 한다. 이는 최상위비트(MSB)가 아직 부호화되지 않았다면 현재 샘플이 '1'일 확률이 매우 높다는 것을 의미한다.The second method uses information about whether there is a value of a higher bitplane that is already encoded. If there is any '1' in the upper bitplane on the same frequency, the context value is '1'. If there is no '1', the context value is '0'. This means that if the most significant bit (MSB) has not been encoded yet, the probability that the current sample is '1' is very high.

실제 부호화하는 예를 들어 보면, 3번째 비트플레인의 4번째 샘플을 부호화한다고 하자. 현재 부호화할 샘플은 '0'이다. 현재 부호화할 데이터들의 golomb parameter를 4라고 하면, 먼저 같은 비트플레인 상에 있는 샘플들의 문맥을 계산한다. 같은 비트플레인상에서 문맥을 구하는 방식 중 상기 첫 번째 방법에 따라 문맥을 구하면 상기 샘플의 값이 001(2)이므로 문맥값은 1이 된다. 그리고 같은 주파수의 상위 비트플레인 상에 있는 샘플들의 문맥을 계산한다고 하면 10(2)이므로 상기 첫 번째 방법에 따라 문맥값은 2가 된다. 따라서 확률모델은 위의 3개의 파라미터, 즉 Golomb parameter는 '4', 문맥1은 '1', 문맥2는 '2'를 이용하여 확률모델을 선택한다. 확률모델은 구현하기에 따라 다를 수 있지만 그 중의 한 방법은 삼차원 배열을 두어 Prob[Golomb][Context1][Context2] 로 하여 표현할 수 있다.As an example of the actual encoding, assume that the fourth sample of the third bitplane is encoded. The current sample to be encoded is '0'. If the golomb parameter of the data to be encoded is 4, first, the context of the samples on the same bitplane is calculated. If the context is obtained according to the first method among the methods of obtaining the context on the same bitplane, the context value is 1 since the sample value is 001 (2). If we calculate the context of the samples on the upper bitplane of the same frequency, 10 (2), the context value is 2 according to the first method. Therefore, the probabilistic model selects the probabilistic model using the above three parameters, that is, the Golomb parameter is '4', the context 1 is '1', and the context 2 is '2'. The probabilistic model may vary depending on the implementation, but one of them can be represented as Prob [Golomb] [Context1] [Context2] with a three-dimensional array.

이렇게 구해진 확률모델을 통해 무손실 부호화를 수행한다. 상기 무손실 부호화의 대표적인 것으로는 산술부호화가 사용될 수 있다.Lossless coding is performed using the stochastic model. Arithmetic coding may be used as a representative of the lossless coding.

한편, 본 발명에 의한 무손실 오디오 복호화 장치 및 방법을 설명하기로 한 다. 도 9는 본 발명에 의한 무손실 오디오 복호화 장치의 일실시예에 대한 구성을 블록도로 도시한 것으로서, 파라미터 획득부(900), 샘플선택부(910), 문맥계산부(920), 확률모델선택부(930), 산술복호화부(940)를 포함하여 이루어진다.Meanwhile, a lossless audio decoding apparatus and method according to the present invention will be described. 9 is a block diagram illustrating a configuration of an embodiment of a lossless audio decoding apparatus according to the present invention. The parameter obtaining unit 900, the sample selecting unit 910, the context calculating unit 920, and the probability model selecting unit are shown. 930, and includes an arithmetic decoding unit 940.

상기 파라미터 획득부(900)는 오디오데이터의 비트스트림이 입력되면, 상기 비트스트림으로부터 최상위비트(MSB)와 골롬(Golomb)파라미터를 구한다. 상기 샘플선택부(910)는 최상위비트(MSB)로부터 최하위비트(LSB)로, 낮은 주파수로부터 높은 주파수의 순서로 복호화할 이진 샘플을 선택한다.When the bitstream of the audio data is input, the parameter obtaining unit 900 obtains the most significant bit (MSB) and Golomb parameters from the bitstream. The sample selector 910 selects a binary sample to be decoded from the most significant bit (MSB) to the least significant bit (LSB) in order of low frequency to high frequency.

상기 문맥계산부(920)는 이미 복호화된 샘플들을 이용하여 소정의 문맥을 계산하며, 도 10에 도시된 바와 같이 제1문맥계산부(1000) 및 제2문맥계산부(1020)를 포함하여 이루어진다. 상기 제1문맥계산부(1000)는 같은 비트플레인 상에 존재하는 이미 복호화된 샘플들을 이용하여 제1문맥을 계산한다. 제2문맥계산부(1020)는 같은 주파수 상에서 이미 복호화된 상위 비트플레인의 샘플들을 이용하여 제2문맥을 계산한다.The context calculator 920 calculates a predetermined context by using the already decoded samples, and includes a first context calculator 1000 and a second context calculator 1020 as shown in FIG. 10. . The first context calculator 1000 calculates a first context using previously decoded samples existing on the same bitplane. The second context calculator 1020 calculates a second context by using samples of the upper bitplane already decoded on the same frequency.

상기 확률모델선택부(930)는 상기 파라미터 획득부(900)의 Golomb 파라미터와 상기 문맥계산부(920)에서 계산된 문맥을 이용하여 확률모델을 선택한다. 상기 산술복호화부(940)는 상기 확률모델선택부(930)에서 선택된 확률모델을 이용하여 산술복호화한다.The probability model selecting unit 930 selects a probability model using the Golomb parameter of the parameter obtaining unit 900 and the context calculated by the context calculating unit 920. The arithmetic decoding unit 940 performs arithmetic decoding using a probability model selected by the probability model selecting unit 930.

도 11은 본 발명에 의한 무손실 오디오 복호화 장치의 다른 실시예에 대한 구성을 블록도로 도시한 것으로서, 역다중화부(1100), 손실복호화부(1110), 무손실복호화부(1120), 오디오신호 합성부(1130), 역 정수 시간/주파수변환부(1140)를 포 함하여 이루어지고, 역 시간/주파수 변환부(1150)를 더 구비함이 바람직하다. 11 is a block diagram illustrating a configuration of another embodiment of a lossless audio decoding apparatus according to the present invention. The demultiplexer 1100, the lossy decoding unit 1110, the lossless decoding unit 1120, and the audio signal synthesis unit are shown. 1130, including an inverse integer time / frequency conversion unit 1140, and preferably further including an inverse time / frequency conversion unit 1150.

상기 역다중화부(1100)는 오디오 비트스트림이 입력되면 상기 오디오 비트스트림을 역다중화(demultiplex)하여, 상기 비트스트림이 부호화될 때 사용된 소정의 손실부호화 방식에 의해 형성된 손실비트스트림과 상기 에러데이터의 에러비트스트림을 추출한다.When the audio bitstream is input, the demultiplexer 1100 demultiplexes the audio bitstream, and the loss bitstream and the error data formed by a predetermined loss coding method used when the bitstream is encoded. Extract the error bitstream of.

상기 손실복호화부(1110)는 상기 역다중화부(1100)에서 추출된 손실비트스트림을 상기 비트스트림이 부호화될 때 사용된 소정의 손실 부호화 방식에 대응되는 소정의 손실 복호화 방식에 의해 손실복호화한다. 상기 무손실복호화부(1120)는 상기 역다중화부(1100)에서 추출된 에러비트스트림을 역시 무손실부호화에 대응되는 무손실복호화방식에 의해 무손실 복호화한다.The lossy decoder 1110 loss-decodes the lost bitstream extracted by the demultiplexer 1100 by a predetermined loss decoding scheme corresponding to the predetermined lossy coding scheme used when the bitstream is encoded. The lossless decoding unit 1120 losslessly decodes the error bitstream extracted by the demultiplexer 1100 by using a lossless decoding method corresponding to lossless encoding.

상기 오디오신호 합성부(1130)는 상기 복호화된 손실비트스트림과 에러비트스트림을 합성하여 주파수 스펙트럴 신호로 복원한다. 상기 역 정수 시간/주파수변환부(1140)는 상기 오디오신호 합성부(1130)에서 복원된 주파수 스펙트럴 신호를 역 정수 시간/주파수변환하여 시간영역의 오디오 신호를 복원한다.The audio signal synthesis unit 1130 synthesizes the decoded lossy bitstream and the error bitstream and restores the frequency spectral signal. The inverse integer time / frequency converter 1140 converts the frequency spectral signal restored by the audio signal synthesizer 1130 to inverse integer time / frequency to restore the audio signal in the time domain.

그리고 상기 역 시간/주파수 변환부(1150)는 상기 손실복호화부(1110)에서 복호화된 주파수 영역의 오디오 신호를 시간영역의 오디오 신호로 복원하며, 이렇게 복원된 신호는 손실 복호화된 신호이다.The inverse time / frequency converter 1150 restores the audio signal of the frequency domain decoded by the lossy decoder 1110 to an audio signal of the time domain, and the restored signal is a lossy decoded signal.

도 12는 상기 무손실복호화부(1120)의 구성을 블록도로 도시한 것으로서, 파라미터획득부(1200), 샘플선택부(1210), 문맥계산부(1220), 확률모델선택부(1230), 산술복호화부(1240)를 포함하여 이루어진다.12 is a block diagram showing the configuration of the lossless decoding unit 1120. The parameter obtaining unit 1200, the sample selecting unit 1210, the context calculating unit 1220, the probability model selecting unit 1230, and the arithmetic decoding It includes a portion 1240.

상기 파라미터획득부(1200)는 오디오데이터의 비트스트림으로부터 최상위비트(MSB) 및 Golomb 파라미터를 획득한다. 상기 샘플선택부(1210)는 최상위비트로부터 최하위비트로, 낮은 주파수로부터 높은 주파수의 순서로 복호화할 이진 샘플을 선택한다.The parameter acquisition unit 1200 obtains the most significant bit (MSB) and Golomb parameters from the bitstream of the audio data. The sample selector 1210 selects a binary sample to be decoded in order from the most significant bit to the least significant bit and from the lowest frequency to the highest frequency.

상기 문맥계산부(1220)는 이미 복호화된 샘플들을 이용하여 소정의 문맥을 계산하며, 제1문맥계산부와 제2문맥계산부를 구비한다. 상기 제1문맥계산부는 같은 비트플레인상의 앞에 존재하는 이미 복호화된 샘플들을 이용하여 제1문맥을 계산한다. 그리고 상기 제2문맥계산부는 같은 주파수 상에서 이미 복호화된 상위 비트플레인의 샘플들을 이용하여 제2문맥을 계산한다.The context calculator 1220 calculates a predetermined context by using the already decoded samples, and includes a first context calculator and a second context calculator. The first context calculator calculates a first context using previously decoded samples existing on the same bit plane. The second context calculator calculates a second context by using samples of the upper bitplane already decoded on the same frequency.

상기 확률모델선택부(1230)는 상기 골롬파라미터와 문맥을 이용하여 확률모델을 선택한다. 상기 산술복호화부(1240)는 상기 선택된 확률모델을 이용하여 산술복호화한다.The probability model selector 1230 selects a probability model using the Golomb parameter and context. The arithmetic decoding unit 1240 performs arithmetic decoding using the selected probability model.

도 13은 도 9에 도시된 본 발명에 의한 무손실오디오 복호화 장치의 일실시예에 대한 동작을 흐름도로 도시한 것으로서, 이를 참조하여 상기 무손실오디오 복호화 장치의 구성을 설명하기로 한다.FIG. 13 is a flowchart illustrating an operation of an embodiment of a lossless audio decoding apparatus according to the present invention shown in FIG. 9, and a configuration of the lossless audio decoding apparatus will be described with reference to the flowchart.

먼저, 오디오데이터의 비트스트림이 파라미터획득부(900)에 입력되면, 상기 오디오 데이터의 비트스트림으로부터 골롬파라미터를 획득한다.(1300단계) 그리고 나서 샘플선택부(910)를 통해 최상위비트로부터 최하위비트로, 낮은 주파수로부터 높은 주파수의 순서로 복호화할 이진 샘플을 선택한다.(1310단계) First, when a bitstream of audio data is input to the parameter acquisition unit 900, a Golomb parameter is obtained from the bitstream of the audio data (step 1300). Then, the sample selector 910 moves from the most significant bit to the least significant bit. In operation 1310, a binary sample to be decoded is selected in order from a low frequency to a high frequency.

상기 샘플선택부(910)에서 복호화할 샘플이 선택되면, 문맥계산부(920)를 통 해 이미 복호화된 샘플들을 이용하여 소정의 문맥을 계산한다.(1320단계) 여기서 상기 문맥은 제1문맥과 제2문맥으로 이루어지며, 도 10에 도시된 바와 같이 제1문맥계산부(1000)를 통해 같은 비트플레인 상에 존재하는 이미 복호화된 샘플들을 이용하여 제1문맥을 계산한다. 그리고 제2문맥계산부(1020)를 통해 같은 주파수 상에서 이미 복호화된 상위 비트플레인의 샘플들을 이용하여 제2문맥을 계산한다.When the sample to be decoded is selected by the sample selector 910, the context calculator 920 calculates a predetermined context using the samples that have already been decoded (step 1320). It is composed of the second context, and as shown in FIG. 10, the first context is calculated using the already decoded samples existing on the same bit plane through the first context calculator 1000. The second context calculator 1020 calculates a second context by using samples of the upper bitplane already decoded on the same frequency.

*그리고 나서 상기 확률모델 선택부(930)를 통해 상기 Golomb 파라미터와 상기 제1문맥과 제2문맥을 이용하여 확률모델을 선택한다.(1330단계) 상기 확률모델 선택부(930)에서 확률모델이 선택되면, 상기 선택된 확률모델을 이용하여 산술복호화한다.(1340단계) 상기 1310단계 내지 1340단계를 모든 샘플이 복호화될 때까지 반복 수행한다.(1350단계)Then, a probability model is selected using the Golomb parameter, the first context, and the second context through the probability model selecting unit 930. In operation 1330, a probability model is selected in the probability model selecting unit 930. When selected, the arithmetic decoding is performed using the selected probability model. (Step 1340) Steps 1310 to 1340 are repeated until all samples are decoded.

도 14는 도 11에 도시된 본 발명에 의한 무손실오디오 복호화 장치의 다른 실시예에 대한 동작을 흐름도로 도시한 것으로서, 이를 참조하여 상기 무손실오디오 복호화 장치의 동작을 설명하기로 한다. FIG. 14 is a flowchart illustrating an operation of another embodiment of the lossless audio decoding apparatus according to the present invention shown in FIG. 11, and the operation of the lossless audio decoding apparatus will be described with reference to the flowchart.

손실부호화된 오디오데이터와, 정수값을 갖는 주파수 영역의 오디오 스펙트럴(spectral) 신호의 차를 에러데이터라 정의하기로 한다. 먼저 오디오 비트스트림이 역다중화부(1100)에 입력되면, 상기 비트스트림을 역다중화(demultiplex)하여 소정의 손실부호화를 통해 생성된 손실비트스트림과 상기 에러데이터의 에러비트스트림을 추출한다.(1400단계)The difference between the lossy coded audio data and the audio spectral signal in the frequency domain having an integer value is defined as error data. First, when an audio bitstream is input to the demultiplexer 1100, the bitstream is demultiplexed to extract a lost bitstream generated through a predetermined loss encoding and an error bitstream of the error data. step)

상기 추출된 손실비트스트림은 손실복호화부(1110)에 입력되어, 부호화시의 손실부호화에 대응되는 소정의 손실복호화 방식에 의해 손실복호화한다.(1410단계) 또한 상기 추출된 에러비트스트림은 무손실복호화부(1120)에 입력되어 무손실복호화한다.(1420단계) 상기 무손실복호화(1420단계)의 보다 상세한 과정은 도 13에 도시된 것과 동일하다.The extracted loss bitstream is inputted to a lossy decoding unit 1110 and lossy decoded by a predetermined lossy decoding method corresponding to the lossy encoding at the time of encoding. (Step 1410) The extracted error bitstream is losslessly decoded. It is inputted to the unit 1120 to perform lossless decoding. (Step 1420) The detailed process of the lossless decoding (step 1420) is the same as that shown in FIG.

상기 손실복호화부(1110)에서 손실 복호화된 손실비트스트림과 상기 무손실복호화부(1120)에서 무손실 복호화된 에러비트스트림을 오디오신호 합성부(1130)로 입력시켜 주파수 스펙트럴(spectral) 신호로 복원한다.(1430단계) 상기 주파수 스펙트럴 신호는 상기 역 정수 시간/주파수변환부(1140)에 입력되어 시간영역의 오디오 신호를 복원된다.(1440단계)The lossy bitstream lost by the loss decoding unit 1110 and the error bitstream losslessly decoded by the lossless decoding unit 1120 are input to the audio signal synthesis unit 1130 to restore a frequency spectral signal. (Step 1430) The frequency spectral signal is input to the inverse integer time / frequency converter 1140 to restore the audio signal of the time domain (step 1440).

본 발명은 컴퓨터로 읽을 수 있는 기록 매체에 컴퓨터(정보 처리 기능을 갖는 장치를 모두 포함한다)가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록 매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록 장치를 포함한다. 컴퓨터가 읽을 수 있는 기록 장치의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크, 광데이터 저장장치 등이 있다. The present invention can be embodied as code that can be read by a computer (including all devices having an information processing function) in a computer-readable recording medium. The computer-readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored. Examples of computer-readable recording devices include ROM, RAM, CD-ROM, magnetic tape, floppy disks, optical data storage devices, and the like.

본 발명은 도면에 도시된 실시예를 참고로 설명되었으나 이는 예시적인 것에 불과하며, 본 기술 분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호 범위는 첨부된 등록청구범위의 기술적 사상에 의해 정해져야 할 것이다. Although the present invention has been described with reference to the embodiments shown in the drawings, this is merely exemplary, and it will be understood by those skilled in the art that various modifications and equivalent other embodiments are possible. Therefore, the true technical protection scope of the present invention will be defined by the technical spirit of the appended claims.

본 발명에 의한 무손실 오디오 부호화/복호화 방법 및 장치에 의하면, 입력의 분포에 관계없이 통계적인 분포를 통하여 만들어진 모델을 통해 최적의 성능을 제공한다. 즉 정수 MDCT 계수가 라플라시안 분포를 한다는 가정에 관계없이 최적의 압축률을 제공한다. 따라서 문맥기반 부호화 방식을 통하여 BPGC보다 우월한 압축률 제공한다. According to the method and apparatus for lossless audio encoding / decoding according to the present invention, an optimum performance is provided through a model made through a statistical distribution regardless of an input distribution. In other words, the optimal compression ratio is provided regardless of the assumption that integer MDCT coefficients have a Laplacian distribution. Therefore, it provides superior compression rate than BPGC through context-based coding.

Claims (40)

시간영역의 오디오 신호를 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호로 변환하는 신호변환단계; A signal conversion step of converting an audio signal in a time domain into an audio spectral signal in a frequency domain having an integer value; 상기 주파수영역의 오디오 신호를 주파수에 따른 비트플레인 신호로 맵핑하는 맵핑단계; 및A mapping step of mapping the audio signal in the frequency domain into a bitplane signal according to frequency; And 상기 비트플레인을 구성하는 이진 샘플에 대해, 소정의 문맥을 이용하여 결정된 확률모델을 통해 무손실부호화하는 무손실부호화단계를 포함함을 특징으로 하는 무손실 오디오 부호화 방법.And a lossless encoding step of lossless encoding the binary sample constituting the bitplane through a probability model determined using a predetermined context. 제1항에 있어서, 상기 무손실부호화 단계는The method of claim 1, wherein the lossless encoding step is 상기 주파수 영역의 오디오 신호를 주파수에 따른 비트플레인 데이터로 매핑하는 단계;Mapping the audio signal in the frequency domain to bitplane data according to frequency; 비트플레인 별로 최상위비트와 골롬파라미터를 획득하는 단계;Obtaining a most significant bit and a Golomb parameter for each bit plane; 최상위비트부터 최하위비트, 낮은 주파수성분부터 높은 주파수 순으로 부호화할 비트플레인 상의 이진샘플을 선택하는 단계;Selecting a binary sample on a bitplane to be encoded in order from most significant bit to least significant bit, and then from low frequency component to high frequency; 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 이전 샘플들을 이용하여 상기 선택된 이진 샘플의 문맥을 계산하는 단계;For the selected binary sample, calculating a context of the selected binary sample using previous samples on the same bitplane; 상기 획득된 골롬 파라미터와 상기 계산된 문맥들을 이용하여 확률모델을 선택하는 단계; 및Selecting a probabilistic model using the obtained Golomb parameter and the calculated contexts; And 상기 선택된 확률모델을 이용하여 상기 이진샘플을 무손실 부호화하는 단계를 포함함을 특징으로 하는 무손실 오디오 부호화 방법.And lossless encoding the binary sample using the selected probability model. (a) 시간영역의 오디오 신호를 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호로 변환하는 단계;(a) converting an audio signal in a time domain into an audio spectral signal in a frequency domain having an integer value; (b) 상기 주파수 영역의 오디오 스펙트럴 신호를 스케일링을 통해 손실부호화기의 입력신호로 정합시키는 단계;(b) matching the audio spectral signal in the frequency domain with an input signal of a lossy encoder through scaling; (c) 스케일링된 주파수 신호를 손실 압축 부호화하는 단계;(c) lossy compression coding the scaled frequency signal; (d) 상기 손실부호화된 데이터와 상기 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호의 차에 해당하는 에러매핑된 신호를 구하는 단계;(d) obtaining an error mapped signal corresponding to a difference between the lossy coded data and an audio spectral signal in the frequency domain having the integer value; (e) 상기 에러매핑된 신호를 문맥을 이용하여 무손실부호화하는 단계; 및(e) lossless encoding the error mapped signal using a context; And (f) 상기 무손실부호화된 신호와 상기 손실부호화된 신호를 다중화하여 비트스트림으로 생성하는 단계를 포함함을 특징으로 하는 무손실 오디오 부호화 방법.and (f) multiplexing the lossless coded signal and the lossy coded signal into a bitstream. 제3항에 있어서, 상기 (e) 단계는The method of claim 3, wherein step (e) (e1) 상기 (d)단계의 에러맵핑된 신호를 주파수에 따른 비트플레인 데이터로 매핑하는 단계;(e1) mapping the error mapped signal of step (d) to bitplane data according to frequency; (e2) 상기 비트플레인의 최상위비트와 골롬파라미터를 획득하는 단계;(e2) obtaining the most significant bit and the Golomb parameter of the bitplane; (e3) 최상위비트부터 최하위비트, 낮은 주파수성분부터 높은 주파수 순으로 부호화할 비트플레인 상의 이진샘플을 선택하는 단계;(e3) selecting a binary sample on a bitplane to be encoded in order from most significant bit to least significant bit, and then from low frequency component to high frequency; (e4) 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 이전 샘플들을 이용하여 상기 선택된 이진 샘플의 문맥을 계산하는 단계;(e4) for the selected binary sample, calculating the context of the selected binary sample using previous samples on the same bitplane; (e5) 상기 획득된 골롬 파라미터와 상기 계산된 문맥들을 이용하여 확률모델을 선택하는 단계; 및(e5) selecting a probabilistic model using the obtained Golomb parameter and the calculated contexts; And (e6) 상기 선택된 확률모델을 이용하여 상기 이진샘플을 무손실 부호화하는 단계를 포함함을 특징으로 하는 무손실 오디오 부호화 방법.and (e6) lossless encoding the binary sample using the selected probability model. 제4항에 있어서, 상기 (e4)단계는The method of claim 4, wherein step (e4) 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 부호화된 이전 샘플들을 하나의 스칼라 값으로 만들어 상기 이진 샘플의 문맥값을 계산함을 특징으로 하는 무손실 오디오 부호화 방법.And for the selected binary sample, calculate the context value of the binary sample by making the encoded previous samples on the same bitplane into a scalar value. 제4항에 있어서, 상기 (e4)단계는The method of claim 4, wherein step (e4) 상기 선택된 이진 샘플에 대해, 같은 비트플레인에 존재하는 소정의 샘플들에 대해 '1'이 나올 확률을 구하여 상기 확률값에 소정의 정수값을 곱하여 정수로 나타낸 후 상기 정수를 이용하여 문맥값을 계산함을 특징으로 하는 무손실 오디오 부호화 방법.With respect to the selected binary sample, a probability of '1' is obtained for predetermined samples existing in the same bitplane, and the probability value is multiplied by a predetermined integer value, expressed as an integer, and the context value is calculated using the integer. Lossless audio coding method characterized in that. 제4항에 있어서, 상기 (e4)단계는The method of claim 4, wherein step (e4) 상기 선택된 이진 샘플에 대해, 같은 주파수상의 이미 부호화된 상위 비트플 레인 값을 이용하여 문맥값을 계산함을 특징으로 하는 무손실 오디오 부호화 방법.And a context value is calculated for the selected binary sample using an already encoded upper bitplane value on the same frequency. 제4항에 있어서, 상기 (e4)단계는The method of claim 4, wherein step (e4) 상기 선택된 이진 샘플에 대해, 같은 주파수상의 이미 부호화된 상위 비트플레인의 값이 존재하는지에 대한 정보를 이용하여 문맥값을 계산하되, 상기 상위 비트플레인에 '1'이 하나라도 존재하면 문맥값을 '1'로 하고, '1'이 하나라도 존재하지 않으면 문맥값을 '0'으로 함을 특징으로 하는 무손실 오디오 부호화 방법.For the selected binary sample, a context value is calculated using information on whether there is a value of an already encoded higher bitplane on the same frequency, but if at least one '1' exists in the higher bit plane, the context value is' Lossy audio encoding method, wherein a context value is set to '0' if at least one '1' does not exist. 시간영역의 오디오 신호를 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호로 변환하는 정수 시간/주파수 변환부; 및An integer time / frequency converter for converting an audio signal in a time domain into an audio spectral signal in a frequency domain having an integer value; And 상기 주파수영역의 오디오 신호를 주파수에 따른 비트플레인 데이터로 맵핑하고 상기 비트플레인을 구성하는 이진 샘플을 소정의 문맥을 이용하여 무손실부호화하는 무손실부호화부를 포함함을 특징으로 하는 무손실 오디오 부호화 장치.And a lossless encoding unit for mapping the audio signal in the frequency domain into bitplane data according to frequency and losslessly encoding a binary sample constituting the bitplane using a predetermined context. 제9항에 있어서, 상기 무손실부호화부는The method of claim 9, wherein the lossless coding unit 상기 주파수 영역의 오디오신호를 주파수에 따른 비트플레인 데이터로 매핑하는 비트플레인 매핑부;A bitplane mapping unit for mapping the audio signal in the frequency domain into bitplane data according to frequency; 상기 비트플레인의 최상위비트와 골롬파라미터를 획득하는 파라미터획득부;A parameter obtaining unit for obtaining a most significant bit and a Golomb parameter of the bit plane; 최상위비트부터 최하위비트, 낮은 주파수성분부터 높은 주파수 순으로 부호화할 비트플레인 상의 이진샘플을 선택하는 이진샘플선택부;A binary sample selecting unit which selects a binary sample on a bitplane to be encoded in order from most significant bit to least significant bit, and then from lowest frequency component to highest frequency; 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 이전 샘플들을 이용하여 상기 선택된 이진 샘플의 문맥을 계산하는 문맥계산부;A context calculator for calculating the context of the selected binary sample for the selected binary sample using previous samples on the same bitplane; 상기 획득된 골롬 파라미터와 상기 계산된 문맥들을 이용하여 확률모델을 선택하는 확률모델선택부; 및A probability model selecting unit which selects a probability model using the obtained Golomb parameter and the calculated contexts; And 상기 선택된 확률모델을 이용하여 상기 이진샘플을 무손실 부호화하는 이진샘플부호화부를 포함함을 특징으로 하는 무손실 오디오 부호화 장치.And a binary sample encoder for lossless encoding the binary sample using the selected probability model. 제9항에 있어서, 상기 정수 시간/주파수 변환부는10. The method of claim 9, wherein the integer time / frequency converter 정수 MDCT 임을 특징으로 하는 무손실 오디오 부호화 장치.Lossless audio coding apparatus characterized in that the integer MDCT. 시간영역의 오디오 신호를 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호로 변환하는 정수 시간/주파수 변환부;An integer time / frequency converter for converting an audio signal in a time domain into an audio spectral signal in a frequency domain having an integer value; 상기 정수 시간/주파수 변환부의 오디오 주파수 신호를 손실부호화부의 입력신호로 정합시키는 스케일링부;A scaling unit for matching an audio frequency signal of the integer time / frequency conversion unit with an input signal of a lossy coding unit; 상기 스케일링된 주파수 신호를 손실 압축 부호화하는 손실부호화부;A lossy coding unit for lossy compression encoding the scaled frequency signal; 상기 손실부호화된 신호와 상기 정수 시간/주파수 변환부의 신호의 차를 구하는 에러맵핑부;An error mapping unit obtaining a difference between the lossy coded signal and the signal of the integer time / frequency converter; 상기 에러맵핑된 신호를 문맥을 이용하여 무손실부호화하는 무손실부호화부;A lossless encoding unit for losslessly encoding the error mapped signal using a context; 상기 무손실부호화된 신호와 상기 손실부호화된 신호를 다중화하여 비트스트림으로 생성하는 멀티플렉서를 포함함을 특징으로 하는 무손실 오디오 부호화 장 치.And a multiplexer for multiplexing the lossless coded signal and the lossy coded signal into a bitstream. 제12항에 있어서, 상기 무손실부호화부는 The method of claim 12, wherein the lossless coding unit 상기 에러맵핑부의 에러맵핑된 신호를 주파수에 따른 비트플레인 데이터로 매핑하는 비트플레인 매핑부;A bitplane mapping unit for mapping the error mapped signal of the error mapping unit to bitplane data according to a frequency; 상기 비트플레인의 최상위비트와 골롬파라미터를 획득하는 파라미터획득부;A parameter obtaining unit for obtaining a most significant bit and a Golomb parameter of the bit plane; 최상위비트부터 최하위비트, 낮은 주파수성분부터 높은 주파수 순으로 부호화할 비트플레인 상의 이진샘플을 선택하는 이진샘플선택부;A binary sample selection unit for selecting a binary sample on a bitplane to be encoded in order from most significant bit to least significant bit, and then from low frequency component to high frequency; 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 이전 샘플들을 이용하여 상기 선택된 이진 샘플의 문맥을 계산하는 문맥계산부;A context calculator for calculating the context of the selected binary sample for the selected binary sample using previous samples on the same bitplane; 상기 획득된 골롬 파라미터와 상기 계산된 문맥들을 이용하여 확률모델을 선택하는 확률모델선택부; 및A probability model selecting unit which selects a probability model using the obtained Golomb parameter and the calculated contexts; And 상기 선택된 확률모델을 이용하여 상기 이진샘플을 무손실 부호화하는 이진샘플부호화부를 포함함을 특징으로 하는 무손실 오디오 부호화 장치.And a binary sample encoder for lossless encoding the binary sample using the selected probability model. 제13항에 있어서, 상기 문맥계산부는The method of claim 13, wherein the context calculation unit 상기 선택된 이진 샘플에 대해, 동일한 비트플레인 상의 부호화된 이전 샘플들을 하나의 스칼라 값으로 만들어 상기 이진 샘플의 문맥값을 계산함을 특징으로 하는 무손실 오디오 부호화 장치.And for the selected binary sample, calculates a context value of the binary sample by making encoded previous samples on the same bitplane into one scalar value. 제13항에 있어서, 상기 문맥계산부는The method of claim 13, wherein the context calculation unit 상기 선택된 이진 샘플에 대해, 같은 비트플레인에 존재하는 소정의 샘플들에 대해 '1'이 나올 확률을 구하여 상기 확률값에 소정의 정수값을 곱하여 정수로 나타낸 후 상기 정수를 이용하여 문맥값을 계산함을 특징으로 하는 무손실 오디오 부호화 장치.With respect to the selected binary sample, a probability of '1' is obtained for predetermined samples existing in the same bitplane, and the probability value is multiplied by a predetermined integer value, expressed as an integer, and the context value is calculated using the integer. Lossless audio encoding device characterized in that. 제13항에 있어서, 상기 문맥계산부는The method of claim 13, wherein the context calculation unit 상기 선택된 이진 샘플에 대해, 같은 주파수상의 이미 부호화된 상위 비트플레인 값을 이용하여 문맥값을 계산함을 특징으로 하는 무손실 오디오 부호화 장치.And a context value is calculated for the selected binary sample by using an already encoded upper bitplane value on the same frequency. 제13항에 있어서, 상기 문맥계산부는The method of claim 13, wherein the context calculation unit 상기 선택된 이진 샘플에 대해, 같은 주파수상의 이미 부호화된 상위 비트플레인의 값이 존재하는지에 대한 정보를 이용하여 문맥값을 계산하되, 상기 상위 비트플레인에 '1'이 하나라도 존재하면 문맥값을 '1'로 하고, '1'이 하나라도 존재하지 않으면 문맥값을 '0'으로 함을 특징으로 하는 무손실 오디오 부호화 장치.For the selected binary sample, a context value is calculated using information on whether there is a value of an already encoded higher bitplane on the same frequency, but if at least one '1' exists in the higher bit plane, the context value is' Lossy audio encoding apparatus, characterized in that the context value is '0' if at least one is present. 오디오데이터의 비트스트림으로부터 골롬파라미터를 획득하는 단계;Obtaining a Golomb parameter from a bitstream of audio data; 최상위비트로부터 최하위비트로, 낮은 주파수로부터 높은 주파수의 순서로 복호화할 이진 샘플을 선택하는 샘플선택단계;A sample selecting step of selecting a binary sample to be decoded in order from the most significant bit to the least significant bit, and then from a low frequency to a high frequency; 이미 복호화된 샘플들을 이용하여 소정의 문맥을 계산하는 문맥계산단계;A context calculation step of calculating a predetermined context using already decoded samples; 상기 골롬파라미터와 문맥을 이용하여 확률모델을 선택하는 확률모델선택단계;A probability model selection step of selecting a probability model using the Golomb parameter and a context; 상기 선택된 확률모델을 이용하여 산술복호화하는 산술복호화단계; 및An arithmetic decoding step of performing arithmetic decoding using the selected probability model; And 모든 샘플이 복호화될 때까지 상기 샘플선택단계 내지 산술복호화단계를 반복 수행하는 단계를 포함함을 특징으로 하는 무손실 오디오 복호화 방법.And repeating the sample selection step and the arithmetic decoding step until all samples are decoded. 제18항에 있어서, 상기 문맥계산단계는 19. The method of claim 18, wherein the context calculation step 같은 비트플레인상의 앞에 존재하는 이미 복호화된 샘플들을 이용하여 제1문맥을 계산하는 단계; 및Calculating a first context using previously decoded samples existing on the same bitplane; And 같은 주파수 상에서 이미 복호화된 상위 비트플레인의 샘플들을 이용하여 제2문맥을 계산하는 단계를 포함함을 특징으로 하는 무손실 오디오 복호화 방법.And calculating a second context using samples of a higher bitplane already decoded on the same frequency. 손실부호화된 오디오데이터와, 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호의 차를 에러데이터라 할 때,When the difference between the lossy coded audio data and the audio spectral signal in the frequency domain having an integer value is error data, (aa) 오디오 비트스트림을 역다중화하여 소정의 손실부호화된 손실비트스트림과 상기 에러데이터의 에러비트스트림을 추출하는 단계;(aa) demultiplexing an audio bit stream to extract a predetermined loss coded loss bit stream and an error bit stream of the error data; (bb) 상기 추출된 손실비트스트림을 소정의 손실복호화하는 단계;(bb) predetermined loss decoding the extracted loss bitstream; (cc) 상기 추출된 에러비트스트림을 무손실복호화하는 단계;(cc) lossless decoding the extracted error bitstream; (dd) 상기 복호화된 손실비트스트림과 에러비트스트림을 이용하여 주파수 스펙트럴 신호로 복원하는 단계; 및(dd) restoring a frequency spectral signal using the decoded lossy bitstream and error bitstream; And (ee) 상기 주파수 스펙트럴 신호를 역 정수 시간/주파수변환하여 시간영역의 오디오 신호를 복원하는 단계를 포함함을 특징으로 하는 무손실 오디오 복호화 방법.(ee) restoring an audio signal in a time domain by inverse integer time / frequency transforming the frequency spectral signal. 제20항에 있어서, 상기 (cc) 단계는The method of claim 20, wherein the (cc) step (cc1) 오디오데이터의 비트스트림으로부터 골롬파라미터를 획득하는 단계;(cc1) obtaining the Golomb parameter from the bitstream of the audio data; (cc2) 최상위비트로부터 최하위비트로, 낮은 주파수로부터 높은 주파수의 순서로 복호화할 이진 샘플을 선택하는 단계;(cc2) selecting binary samples to be decoded from most significant bit to least significant bit, in order of low frequency to high frequency; (cc3) 이미 복호화된 샘플들을 이용하여 소정의 문맥을 계산하는 단계;(cc3) calculating a predetermined context using already decoded samples; (cc4) 상기 골롬파라미터와 문맥을 이용하여 확률모델을 선택하는 단계;(cc4) selecting a probabilistic model using the Golomb parameter and context; (cc5) 상기 선택된 확률모델을 이용하여 산술복호화하는 단계; 및(cc5) performing arithmetic decoding using the selected probability model; And (cc6) 모든 샘플이 복호화될 때까지 상기 (cc2)단계 내지 (cc5)단계를 반복 수행하는 단계를 포함함을 특징으로 하는 무손실 오디오 복호화 방법.and (cc6) repeating steps (cc2) to (cc5) until all samples are decoded. 제21항에 있어서, 상기 (cc3)단계는 The method of claim 21, wherein (cc3) is 같은 비트플레인상의 앞에 존재하는 이미 복호화된 샘플들을 이용하여 제1문맥을 계산함을 특징으로 하는 무손실 오디오 복호화 방법.A method for lossless audio decoding, characterized in that the first context is calculated using previously decoded samples existing on the same bitplane. 제21항에 있어서, 상기 (cc3)단계는 The method of claim 21, wherein (cc3) is 같은 주파수 상에서 이미 복호화된 상위 비트플레인의 샘플들을 이용하여 제 2문맥을 계산함을 특징으로 하는 무손실 오디오 복호화 방법.And a second context is calculated using samples of a higher bitplane already decoded on the same frequency. 제21항에 있어서, 상기 (cc3)단계는 The method of claim 21, wherein (cc3) is 같은 비트플레인상의 앞에 존재하는 이미 복호화된 샘플들을 이용하여 제1문맥을 계산하는 단계; 및Calculating a first context using previously decoded samples existing on the same bitplane; And 같은 주파수 상에서 이미 복호화된 상위 비트플레인의 샘플들을 이용하여 제2문맥을 계산하는 단계를 포함함을 특징으로 하는 무손실 오디오 복호화 방법.And calculating a second context using samples of a higher bitplane already decoded on the same frequency. 오디오데이터의 비트스트림으로부터 골롬파라미터를 획득하는 파라미터 획득부;A parameter obtaining unit which obtains a Golomb parameter from a bitstream of audio data; 최상위비트로부터 최하위비트로, 낮은 주파수로부터 높은 주파수의 순서로 복호화할 이진 샘플을 선택하는 샘플선택부;A sample selecting unit for selecting a binary sample to be decoded in order from the most significant bit to the least significant bit and then from a low frequency to a high frequency; 이미 복호화된 샘플들을 이용하여 소정의 문맥을 계산하는 문맥계산부;A context calculator which calculates a predetermined context using samples that have already been decoded; 상기 파라미터 획득부의 골롬파라미터와 상기 문맥계산부의 문맥을 이용하여 확률모델을 선택하는 확률모델선택부; 및A probabilistic model selection unit for selecting a probabilistic model using the Golomb parameter of the parameter obtaining unit and the context of the context calculating unit; And 상기 선택된 확률모델을 이용하여 산술복호화하는 산술복호화부를 포함함을 특징으로 하는 무손실 오디오 복호화 장치.And an arithmetic decoding unit configured to perform arithmetic decoding by using the selected probabilistic model. 제25항에 있어서, 상기 문맥계산부는 The method of claim 25, wherein the context calculation unit 같은 비트플레인상의 앞에 존재하는 이미 복호화된 샘플들을 이용하여 제1문 맥을 계산하는 제1문맥계산부; 및A first context calculator configured to calculate a first context using previously decoded samples existing on the same bitplane; And 같은 주파수 상에서 이미 복호화된 상위 비트플레인의 샘플들을 이용하여 제2문맥을 계산하는 제2문맥계산부를 포함함을 특징으로 하는 무손실 오디오 복호화 장치.And a second context calculator configured to calculate a second context using samples of an upper bitplane already decoded on the same frequency. 손실부호화된 오디오데이터와, 정수값을 갖는 주파수 영역의 오디오 스펙트럴 신호의 차를 에러데이터라 할 때,When the difference between the lossy coded audio data and the audio spectral signal in the frequency domain having an integer value is error data, 오디오 비트스트림을 역다중화하여 소정의 손실부호화된 손실비트스트림과 상기 에러데이터의 에러비트스트림을 추출하는 역다중화부;A demultiplexer for demultiplexing an audio bitstream to extract a predetermined loss coded loss bitstream and an error bitstream of the error data; 상기 추출된 손실비트스트림을 소정의 손실복호화하는 손실복호화부;A lossy decoding unit for predetermined lossy decoding of the extracted lossy bitstream; 상기 추출된 에러비트스트림을 무손실복호화하는 무손실복호화부;A lossless decoding unit for lossless decoding the extracted error bitstream; 상기 복호화된 손실비트스트림과 에러비트스트림을 합성하여 주파수 스펙트럴 신호로 복원하는 오디오신호 합성부; 및An audio signal synthesizing unit for synthesizing the decoded lossy bitstream and the error bitstream to restore a frequency spectral signal; And 상기 복원된 주파수 스펙트럴 신호를 역 정수 시간/주파수변환하여 시간영역의 오디오 신호를 복원하는 역 정수 시간/주파수변환부를 포함함을 특징으로 하는 무손실 오디오 복호화 장치.And an inverse integer time / frequency converter for restoring an audio signal in a time domain by performing inverse integer time / frequency conversion on the restored frequency spectral signal. 제27항에 있어서, 상기 손실복호화부는The method of claim 27, wherein the loss decoding unit AAC 복호화부임을 특징으로 하는 무손실 오디오 복호화 장치.Lossless audio decoding apparatus characterized in that the AAC decoder. 제27항에 있어서, The method of claim 27, 상기 손실복호화부에서 복호화된 주파수 영역의 오디오 신호를 시간영역의 오디오 신호로 복원하는 역 시간/주파수 변환부를 더 구비함을 특징으로 하는 무손실 오디오 복호화 장치. And an inverse time / frequency converting unit for restoring the audio signal in the frequency domain decoded by the lossy decoding unit to the audio signal in the time domain. 제27항에 있어서, 상기 무손실복호화부는The method of claim 27, wherein the lossless decoding unit 오디오데이터의 비트스트림으로부터 골롬파라미터를 획득하는 파라미터획득부;A parameter obtaining unit for obtaining a Golomb parameter from a bitstream of audio data; 최상위비트로부터 최하위비트로, 낮은 주파수로부터 높은 주파수의 순서로 복호화할 이진 샘플을 선택하는 샘플선택부;A sample selecting unit for selecting a binary sample to be decoded in order from the most significant bit to the least significant bit and then from a low frequency to a high frequency; 이미 복호화된 샘플들을 이용하여 소정의 문맥을 계산하는 문맥계산부;A context calculator which calculates a predetermined context using samples that have already been decoded; 상기 골롬파라미터와 문맥을 이용하여 확률모델을 선택하는 확률모델선택부; 및A probability model selection unit for selecting a probability model using the Golomb parameter and a context; And 상기 선택된 확률모델을 이용하여 산술복호화하는 산술복호화부를 포함함을 특징으로 하는 무손실 오디오 복호화 장치.And an arithmetic decoding unit configured to perform arithmetic decoding by using the selected probabilistic model. 제30항에 있어서, 상기 문맥계산부는 The method of claim 30, wherein the context calculation unit 같은 비트플레인상의 앞에 존재하는 이미 복호화된 샘플들을 이용하여 제1문맥을 계산하는 제1문맥계산부; 및A first context calculator configured to calculate a first context using already decoded samples existing in front of the same bitplane; And 같은 주파수 상에서 이미 복호화된 상위 비트플레인의 샘플들을 이용하여 제 2문맥을 계산하는 제2문맥계산부를 포함함을 특징으로 하는 무손실 오디오 복호화 장치.And a second context calculator configured to calculate a second context using samples of an upper bitplane already decoded on the same frequency. 제1항 내지 제8항, 제18항 내지 제24항 중 어느 한 항에 기재된 발명을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.A computer-readable recording medium having recorded thereon a program for executing the invention according to any one of claims 1 to 8 and 18 to 24 on a computer. 오디오데이터의 비트스트림으로부터 골롬 파라미터를 획득하는 단계; Obtaining a Golomb parameter from a bitstream of audio data; 기설정된 주파수 대역별로 최상위 비트 플레인으로부터 최하위비트 플레인으로, 낮은 주파수로부터 높은 주파수의 순서로 복호화할 비트 플레인 심볼을 선택하는 단계;Selecting a bit plane symbol to be decoded in order from a low frequency to a high frequency from a most significant bit plane to a least significant bit plane for each predetermined frequency band; 이미 복호화된 비트 플레인 심볼들을 이용하여 문맥을 결정하고, 상기 결정된 문맥을 이용하여 현재 디코딩될 비트 플레인 심볼의 확률모델을 선택하는 단계; 및Determining a context using the already decoded bit plane symbols, and selecting a probability model of the bit plane symbol to be currently decoded using the determined context; And 상기 선택된 확률모델을 이용하여 산술복호화하는 단계를 포함하는 것을 특징으로 하는 무손실 오디오 복호화 방법.And performing arithmetic decoding using the selected probabilistic model. 오디오데이터의 비트스트림으로부터 골롬 파라미터를 획득하는 단계; Obtaining a Golomb parameter from a bitstream of audio data; 기설정된 주파수 대역별로 최상위 비트 플레인으로부터 최하위비트 플레인순으로 복호화할 이진 샘플을 선택하는 단계;Selecting binary samples to be decoded in order from least significant bit plane to least significant bit plane for each predetermined frequency band; 이미 복호화된 이진 샘플들을 이용하여 문맥을 결정하고, 상기 결정된 문맥을 이용하여 현재 디코딩될 이진 샘플의 확률모델을 선택하는 단계; 및Determining a context using the already decoded binary samples and selecting a probabilistic model of a binary sample to be currently decoded using the determined context; And 상기 선택된 확률모델을 이용하여 산술복호화하는 단계를 포함하는 것을 특징으로 하는 무손실 오디오 복호화 방법.And performing arithmetic decoding using the selected probabilistic model. 오디오데이터의 비트스트림으로부터 골롬 파라미터를 획득하는 단계; Obtaining a Golomb parameter from a bitstream of audio data; 기설정된 주파수 대역별로 최상위 비트 플레인으로부터 최하위비트 플레인으로, 낮은 주파수로부터 높은 주파수의 순서로 복호화할 비트 플레인 심볼을 선택하는 단계;Selecting a bit plane symbol to be decoded in order from a low frequency to a high frequency from a most significant bit plane to a least significant bit plane for each predetermined frequency band; 이미 복호화된 비트 플레인 심볼들을 이용하여 문맥을 결정하고, 상기 결정된 문맥을 이용하여 현재 디코딩될 비트 플레인 심볼의 확률모델을 선택하는 단계;Determining a context using the already decoded bit plane symbols, and selecting a probability model of the bit plane symbol to be currently decoded using the determined context; 상기 선택된 확률모델을 이용하여 산술복호화하는 단계를 포함하고,Performing arithmetic decoding using the selected probability model, 상기 심볼을 선택하는 단계, 상기 확률모델을 선택하는 단계 및 상기 산술복호화하는 단계는 모든 비트 플레인 심볼이 복호화될 때까지 반복하여 수행되는 것을 특징으로 하는 무손실 오디오 복호화 방법.Selecting the symbol, selecting the probabilistic model, and performing the arithmetic decoding process are repeatedly performed until all the bit plane symbols are decoded. 오디오데이터의 비트스트림으로부터 골롬 파라미터를 획득하는 단계; Obtaining a Golomb parameter from a bitstream of audio data; 기설정된 주파수 대역별로 최상위 비트 플레인으로부터 최하위비트 플레인순으로 복호화할 이진 샘플을 선택하는 단계;Selecting binary samples to be decoded in order from least significant bit plane to least significant bit plane for each predetermined frequency band; 이미 복호화된 이진 샘플들을 이용하여 문맥을 결정하고, 상기 결정된 문맥을 이용하여 현재 디코딩될 이진 샘플의 확률모델을 선택하는 단계; 및Determining a context using the already decoded binary samples and selecting a probabilistic model of a binary sample to be currently decoded using the determined context; And 상기 선택된 확률모델을 이용하여 산술복호화하는 단계를 포함하고,Performing arithmetic decoding using the selected probability model, 상기 샘플을 선택하는 단계, 상기 확률모델을 선택하는 단계 및 상기 산술복호화하는 단계는 모든 샘플이 복호화될 때까지 반복하여 수행되는 것을 특징으로 하는 무손실 오디오 복호화 방법.Selecting the sample, selecting the probabilistic model, and performing the arithmetic decoding, which are performed repeatedly until all samples are decoded. 오디오데이터의 비트스트림으로부터 골롬 파라미터를 획득하는 단계; Obtaining a Golomb parameter from a bitstream of audio data; 기설정된 주파수 대역별로 최상위 비트 플레인으로부터 최하위비트 플레인순으로 복호화할 비트 플레인 심볼을 선택하는 단계;Selecting bit plane symbols to be decoded in order of least significant bit plane from most significant bit plane for each predetermined frequency band; 이미 복호화된 비트 플레인 심볼들을 이용하여 문맥을 결정하고, 상기 결정된 문맥을 이용하여 현재 디코딩될 비트 플레인 심볼의 확률모델을 선택하는 단계; 및Determining a context using the already decoded bit plane symbols, and selecting a probability model of the bit plane symbol to be currently decoded using the determined context; And 상기 선택된 확률모델을 이용하여 산술복호화하는 단계를 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.And a computer-readable recording medium having recorded thereon a program for executing the arithmetic decoding using the selected probability model. 오디오데이터의 비트스트림으로부터 골롬 파라미터를 획득하는 단계; Obtaining a Golomb parameter from a bitstream of audio data; 기설정된 주파수 대역별로 최상위 비트 플레인으로부터 최하위비트 플레인순으로 복호화할 이진 샘플을 선택하는 단계;Selecting binary samples to be decoded in order from least significant bit plane to least significant bit plane for each predetermined frequency band; 이미 복호화된 이진 샘플들을 이용하여 문맥을 결정하고, 상기 결정된 문맥을 이용하여 현재 디코딩될 이진 샘플의 확률모델을 선택하는 단계; 및Determining a context using the already decoded binary samples and selecting a probabilistic model of a binary sample to be currently decoded using the determined context; And 상기 선택된 확률모델을 이용하여 산술복호화하는 단계를 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.And a computer-readable recording medium having recorded thereon a program for executing the arithmetic decoding using the selected probability model. 오디오데이터의 비트스트림으로부터 골롬 파라미터를 획득하는 단계; Obtaining a Golomb parameter from a bitstream of audio data; 기설정된 주파수 대역별로 최상위 비트 플레인으로부터 최하위비트 플레인순으로 복호화할 비트 플레인 심볼을 선택하는 단계;Selecting bit plane symbols to be decoded in order of least significant bit plane from most significant bit plane for each predetermined frequency band; 이미 복호화된 비트 플레인 심볼들을 이용하여 문맥을 결정하고, 상기 결정된 문맥을 이용하여 현재 디코딩될 비트 플레인 심볼의 확률모델을 선택하는 단계;Determining a context using the already decoded bit plane symbols, and selecting a probability model of the bit plane symbol to be currently decoded using the determined context; 상기 선택된 확률모델을 이용하여 산술복호화하는 단계를 포함하고,Performing arithmetic decoding using the selected probability model, 상기 심볼을 선택하는 단계, 상기 확률모델을 선택하는 단계 및 상기 산술복호화하는 단계는 모든 비트 플레인 심볼이 복호화될 때까지 반복하여 수행되는 발명을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.The step of selecting the symbol, the step of selecting the probabilistic model and the arithmetic decoding step are computer readable recordings of programs for executing the invention repeatedly performed until all the bit plane symbols are decoded. media. 오디오데이터의 비트스트림으로부터 골롬 파라미터를 획득하는 단계; Obtaining a Golomb parameter from a bitstream of audio data; 기설정된 주파수 대역별로 최상위 비트 플레인으로부터 최하위비트 플레인순으로 복호화할 이진 샘플을 선택하는 단계;Selecting binary samples to be decoded in order from least significant bit plane to least significant bit plane for each predetermined frequency band; 이미 복호화된 이진 샘플들을 이용하여 문맥을 결정하고, 상기 결정된 문맥을 이용하여 현재 디코딩될 이진 샘플의 확률모델을 선택하는 단계; 및Determining a context using the already decoded binary samples and selecting a probabilistic model of a binary sample to be currently decoded using the determined context; And 상기 선택된 확률모델을 이용하여 산술복호화하는 단계를 포함하고,Performing arithmetic decoding using the selected probability model, 상기 샘플을 선택하는 단계, 상기 확률모델을 선택하는 단계 및 상기 산술복호화하는 단계는 모든 샘플이 복호화될 때까지 반복하여 수행되는 발명을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.Selecting the sample, selecting the probabilistic model, and performing the arithmetic decoding process, the computer-readable recording medium having recorded thereon a program for executing the invention repeatedly performed until all samples are decoded.
KR1020070019155A 2007-02-26 2007-02-26 Lossless audio decoding/encoding method and apparatus KR100947065B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070019155A KR100947065B1 (en) 2007-02-26 2007-02-26 Lossless audio decoding/encoding method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070019155A KR100947065B1 (en) 2007-02-26 2007-02-26 Lossless audio decoding/encoding method and apparatus

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020040013681A Division KR20050087956A (en) 2004-02-27 2004-02-27 Lossless audio decoding/encoding method and apparatus

Publications (2)

Publication Number Publication Date
KR20070030878A KR20070030878A (en) 2007-03-16
KR100947065B1 true KR100947065B1 (en) 2010-03-10

Family

ID=43655377

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070019155A KR100947065B1 (en) 2007-02-26 2007-02-26 Lossless audio decoding/encoding method and apparatus

Country Status (1)

Country Link
KR (1) KR100947065B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101047056B1 (en) * 2009-03-23 2011-07-06 (주)부리멀티미디어 Audio decoding apparatus with adjustable bit rate and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990066516A (en) * 1998-01-30 1999-08-16 전주범 Context-based Arithmetic Coding / Decoding Method and Apparatus
KR20030034409A (en) * 2001-10-23 2003-05-09 한국전자통신연구원 the method for enhancing the decoding performance of MPEG-1 audio file using Fixed point code converting and the recorded media

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990066516A (en) * 1998-01-30 1999-08-16 전주범 Context-based Arithmetic Coding / Decoding Method and Apparatus
KR20030034409A (en) * 2001-10-23 2003-05-09 한국전자통신연구원 the method for enhancing the decoding performance of MPEG-1 audio file using Fixed point code converting and the recorded media

Also Published As

Publication number Publication date
KR20070030878A (en) 2007-03-16

Similar Documents

Publication Publication Date Title
KR100561869B1 (en) Lossless audio decoding/encoding method and apparatus
JP5384780B2 (en) Lossless audio encoding method, lossless audio encoding device, lossless audio decoding method, lossless audio decoding device, and recording medium
CN1878001B (en) Apparatus and method of encoding audio data, and apparatus and method of decoding encoded audio data
KR101238239B1 (en) An encoder
KR101237413B1 (en) Method and apparatus for encoding/decoding audio signal
JP2005242363A5 (en)
JP2005260969A5 (en)
US20070078646A1 (en) Method and apparatus to encode/decode audio signal
KR20160015280A (en) Audio signal encoder
JPH1020897A (en) Adaptive conversion coding system and adaptive conversion decoding system
CN107077850B (en) Method and apparatus for encoding or decoding subband configuration data for a subband group
KR101381602B1 (en) Method and apparatus for scalable encoding and decoding
KR100947065B1 (en) Lossless audio decoding/encoding method and apparatus
US6549147B1 (en) Methods, apparatuses and recorded medium for reversible encoding and decoding
KR20040086879A (en) Method and apparatus for encoding/decoding audio data using bandwidth extension technology
KR100903109B1 (en) Lossless Coding/Decoding apparatus and method
JP3617804B2 (en) PCM signal encoding apparatus and decoding apparatus
JP7318645B2 (en) Encoding device and method, decoding device and method, and program
JP3361790B2 (en) Audio signal encoding method, audio signal decoding method, audio signal encoding / decoding device, and recording medium recording program for implementing the method
KR20080047837A (en) Bsac arithmetic decoding method based on plural probability model
JP2008268792A (en) Audio signal encoding device and bit rate converting device thereof
KR20100114484A (en) A method and an apparatus for processing an audio signal

Legal Events

Date Code Title Description
A107 Divisional application of patent
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130227

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20140227

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20150226

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20160226

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20170224

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee