KR100224812B1 - Method for allocating bits in coding of audio signals - Google Patents

Method for allocating bits in coding of audio signals Download PDF

Info

Publication number
KR100224812B1
KR100224812B1 KR1019940028567A KR19940028567A KR100224812B1 KR 100224812 B1 KR100224812 B1 KR 100224812B1 KR 1019940028567 A KR1019940028567 A KR 1019940028567A KR 19940028567 A KR19940028567 A KR 19940028567A KR 100224812 B1 KR100224812 B1 KR 100224812B1
Authority
KR
South Korea
Prior art keywords
bits
bit
signal
subbands
masking
Prior art date
Application number
KR1019940028567A
Other languages
Korean (ko)
Other versions
KR960019240A (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 KR1019940028567A priority Critical patent/KR100224812B1/en
Publication of KR960019240A publication Critical patent/KR960019240A/en
Application granted granted Critical
Publication of KR100224812B1 publication Critical patent/KR100224812B1/en

Links

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/002Dynamic bit allocation
    • 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
    • G10L19/0204Speech 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 using subband decomposition

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (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)
  • Spectroscopy & Molecular Physics (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

본 발명은 오디오 신호의 부호화 시스템에 있어서 비트 할당방법에 관한 것으로 특히, 본 발명의 방법은 부호화 알고리즘을 수행하기 위한 변수들과 상수들을 초기화 하는 제1단계; 문턱값보다 작은 신호대 마스킹비(SMR)를 갖는 모든 서브밴드에 소정 갯수의 비트를 할당하는 제2단계; 서브밴드의 갯수와 상기 서브밴드에 해당하는 샘플수를 승산하는 제3단계; 제2단계에서 비트 할당이 수행된 후에 남아 있는 비트의 수를 제3단계의 결과값(ST)과 비교하는 제4단계; 제2단계에서 비트 할당이 수행된 후에 남아 있는 비트의 수가 제3단계의 결과값(ST)보다 크면 모든 서브밴드의 양자화 단계를 증가시키고, 그렇지 않으면 마스킹대 잡음비(MNR)가 최소인 서브밴드를 선택하여 할당할 비트가 남지 않을 때까지 한 비트씩 할당하는 제5단계로 이루어진 것을 특징으로 한다.The present invention relates to a bit allocation method in an encoding system of an audio signal. In particular, the method includes: a first step of initializing variables and constants for performing an encoding algorithm; A second step of allocating a predetermined number of bits to all subbands having a signal-to-masking ratio (SMR) smaller than a threshold; A third step of multiplying the number of subbands by the number of samples corresponding to the subbands; A fourth step of comparing the number of bits remaining after bit allocation is performed in the second step with the result value ST of the third step; If the number of bits remaining after bit allocation is performed in the second stage is larger than the result value ST of the third stage, the quantization stage of all subbands is increased, otherwise the subband having the minimum masking-to-noise ratio (MNR) is selected. A fifth step of selecting and allocating bit by bit until there are no bits to be allocated remains.

따라서, 본 발명은 신호대 마스킹비(SMR)가 문턱값보다 큰 서브밴드에 소정 비트를 할당하고, 남아 있는 비트가 서브밴드의 갯수와 서브밴드당 샘플수를 곱한 결과보다 많으면 모든 밴드의 양자화 단계를 증가시키고, 그렇지 않으면 최소 MNR을 갖는 서브밴드에 한 비트씩 할당함으로서 비트 할당 시간을 단축할 수 있다.Accordingly, the present invention allocates a predetermined bit to a subband whose signal-to-masking ratio (SMR) is larger than a threshold value, and if the remaining bits are larger than a result of multiplying the number of subbands by the number of samples per subband, the quantization step of all bands is performed. The bit allocation time can be shortened by increasing and assigning bit by bit to the subband having the minimum MNR.

Description

오디오 신호의 부호화에 있어서 비트 할당방법Bit Allocation Method in Encoding Audio Signals

제1도는 일반적인 오디오 신호의 부호화 시스템을 나타낸 블럭도.1 is a block diagram showing a coding system of a general audio signal.

제2도와 제3도는 종래의 오디오 신호의 부호화 시스템에 있어서 비트 할당방법을 설명하기 위한 플로우차트.2 and 3 are flowcharts for explaining a bit allocation method in a conventional audio signal coding system.

제4도는 본 발명에 의한 오디오 신호의 부호화 시스템에 있어서 비트 할당방법을 설명하기 의한 플로우차트.4 is a flowchart for explaining a bit allocation method in an audio signal encoding system according to the present invention.

본 발명은 오디오 신호의 부호화 시스템에 있어서 비트 할당방법에 관한 것으로 특히, 신호대 마스킹비(SMR)가 0 이상인 서브밴드에 소정 비트를 할당한 후에 남아 있는 비트의 수가 서브밴드의 갯수에 각 밴드당의 샘플수를 곱한 것보다 많으면, 모든 서브밴드의 양자화 단계를 증가시키고 그렇지 않으면 마스킹대 잡음비(MNR)가 최소인 서브밴드에 한 비트를 할당하는 오디오 신호의 부호화에 있어서 비트 할당방법에 관한 것이다.The present invention relates to a bit allocation method in an audio signal coding system. In particular, the number of bits remaining after allocating a predetermined bit to a subband having a signal-to-masking ratio (SMR) equal to or greater than zero is equal to the number of subbands. If the number is multiplied by more than one, it relates to a bit allocation method in encoding an audio signal that increases the quantization step of all subbands and otherwise allocates one bit to a subband having a minimum masking-to-noise ratio (MNR).

제1도는 일반적인 오디오 신호의 부호화 시스템을 나타낸 블럭도로서, 기존의 MPEG 오디오 신호를 비롯한 퍼셉츄얼 오디오 신호 부호화에서 사용되는 오디오 신호 압축 알고리즘을 나타낸다.FIG. 1 is a block diagram illustrating a general audio signal encoding system, and illustrates an audio signal compression algorithm used in perceptual audio signal encoding including an existing MPEG audio signal.

퍼셉츄얼 오디오 신호 부호화란 인간이 들을 수 있는 부분의 신호만을 부호화 하는 것을 말하는 것으로, 일반적인 오디오 신호의 부호화 시스템은 시간영역의 다중채널 오디오 신호들을 입력하여 주파수 영역의 신호로 변환하는 전처리 과정(10)과, 입력된 다중채널 오디오 신호들의 심리 음향적인 특성을 모델링하는 과정(20)과, 심리 음향적인 특성값들을 이용하여 소정의 비트를 할당하는 과정(30)과, 할당된 비트에 상응하여 양자화를 수행하는 과정(40)으로 이루어진다.The perceptual audio signal encoding refers to encoding only signals of a part that can be heard by a human. A general audio signal encoding system pre-processes a multi-channel audio signal in a time domain and converts the signal into a frequency domain signal. And (20) modeling psychoacoustic characteristics of the input multi-channel audio signals, assigning predetermined bits using psychoacoustic characteristic values (30), and quantization corresponding to the allocated bits. It consists of a process 40 to perform.

음향신호는 여러개의 크고 작은 오디오 신호로 이루어지며, 인접한 오디오 신호들의 영향으로 소정의 크기보다 작은 오디오 신호는 들리지 않게 된다.The sound signal is composed of several large and small audio signals, and audio signals smaller than a predetermined size are not heard due to the influence of adjacent audio signals.

이러한 현상 즉, 인접하여 있는 큰 오디오 신호의 영향으로 작은 오디오 신호가 들리지 않게 되는 현상을 마스킹 효과(Masking Effect)라 하며, 오디오 신호가 들리기 시작하는 소정의 크기를 마스킹 레벨이라고 한다.This phenomenon, that is, a phenomenon in which a small audio signal is not heard due to an adjacent large audio signal is called a masking effect, and a predetermined size at which an audio signal starts to be heard is called a masking level.

오디오 신호의 비트 할당장치는 각 서브밴드의 신호대 잡음비(SMR)를 적절히 조절하여 소장의 비트를 할당하는데, 마스킹대 잡음비(MNR)가 최대값이 될때 음질이 가장 좋다.The bit allocation device of the audio signal allocates the small bits by appropriately adjusting the signal-to-noise ratio (SMR) of each subband, and the sound quality is best when the masking-to-noise ratio (MNR) becomes the maximum value.

제1도에 도시된 심리음향적 특성을 모델링하는 과정(20)에서는 인간이 들을 수 있는 신호와 들을 수 없는 신호를 구별하여 각 주파수에서의 신호대 마스킹비(Signal To Masking Ratio : SMR)를 계산하며, 비트할당과정(30)에서는 각 서브밴드의 마스킹대 잡음비(MNR)가 최대값이 되도록 해당 서브밴드의 신호대 잡음비(SMR)를 적절히 조절하여 비트를 할당한다.In the process of modeling the psychoacoustic characteristics shown in FIG. 1, a signal to masking ratio (SMR) is calculated at each frequency by distinguishing between a human audible signal and an audible signal. In the bit allocation process 30, bits are allocated by appropriately adjusting the signal-to-noise ratio (SMR) of the corresponding subband so that the masking-to-noise ratio (MNR) of each subband is a maximum value.

제2도는 오디오 신호의 부호화 시스템에 있어서, 종래의 비트 할당방식을 설명하기 위한 플로우차트로서, 오디오신호의 부호화 알고리즘을 수행하기 위해 변수들을 초기화하고, 제1도의 심리음향적 특성 모델링 과정(20)에서 구한 신호대 마스킹비(SMR)를 근거로 하여 마스킹대 잡음비(Masking To Noise Ratio ; MNR)를 구한다.FIG. 2 is a flowchart illustrating a conventional bit allocation scheme in an audio signal encoding system. The variable initialization is performed to perform an encoding algorithm of an audio signal, and the psychoacoustic characteristic modeling process of FIG. Based on the signal-to-masking ratio (SMR) obtained from, the masking to noise ratio (MNR) is obtained.

마스킹대 잡음비(NMR)는 마스킹 레벨과 잡음 레벨의 비를 나타낸 것으로, 마스킹 레벨이 잡음 레벨보다 크면 사람의 귀에 잡음이 들리지 않게 된다.Masking-to-noise ratio (NMR) represents the ratio of masking level to noise level. If the masking level is greater than the noise level, the human ear will not hear noise.

즉, 마스킹대 잡음비(MNR)는 신호대 잡음비(SNR)에서 신호대 마스킹비(SMR)를 뺀 값이다.(MNR = SNR - SMR)That is, the masking-to-noise ratio (MNR) is obtained by subtracting the signal-to-masking ratio (SMR) from the signal-to-noise ratio (SNR). (MNR = SNR-SMR)

처음에는 모든 밴드에 하나의 비트도 할당되어 있지 않기 때문에 즉, 신호대 잡음비(SNR)가 0 이므로 모든 서브밴드의 마스킹대 잡음비(MNR)는 -신호대 마스킹비(SMR)가 된다.Since no band is initially assigned to all bands, that is, the signal-to-noise ratio (SNR) is zero, the masking-to-noise ratio (MNR) of all subbands is -signal-to-masking ratio (SMR).

종래의 비트 할당 알고리즘은 비트를 할당하는데 필요한 변수들을 초기화 하고, 마스킹대 잡음비(MNR)가 최소인 서브밴드를 선택(201)하여 양자화 단계를 하나 증가시키고(202), 이에따라 한 비트를 해당 서브밴드에 할당한(203) 후에, 할당한 비트가 남아 있는지 여부를 판단하여(204) 판단 결과에 따라 할당한 비트가 없으면 비트 할당 알고리즘을 종료시키고, 할당할 비트가 남아 있으면 증가된 양자화 단계에 상응하는 마스킹대 잡음비(MNR)를 갱신(205)하고 마스킹대 잡음비(MNR)가 최소인 서브밴드를 선택(201)하여 한 비트를 할당한다.The conventional bit allocation algorithm initializes the variables necessary to allocate bits, selects 201 the subbands with the minimum masking-to-noise ratio (MNR), increases the quantization step by one (202), and thus adds one bit to the corresponding subband. After assigning to 203, it is determined whether the allocated bits remain (204), and if there is no allocated bit according to the determination result, the bit allocation algorithm is terminated, and if the bits to be allocated remain, corresponding to the increased quantization step The masking-to-noise ratio (MNR) is updated (205), and the subband with the minimum masking-to-noise ratio (MNR) is selected (201) to allocate one bit.

이때, 마스킹대 잡음비(MNR)는 양자화 단계에 따른 신호대 잡음비(SNR)를 나타낸 표를 이용하여 업데이트하게 된다.At this time, the masking-to-noise ratio (MNR) is updated using a table showing the signal-to-noise ratio (SNR) according to the quantization step.

이와같이 종래의 방법에서는 최소의 마스킹대 잡음비(NMR)를 갖는 서브밴드를 선택하여 한 비트씩 할당하므로, 사용 가능한 비트를 모두 할당하려면 시간이 오래 걸리는 문제점이 있다.As described above, since the conventional method selects subbands having the minimum masking-to-noise ratio (NMR) and allocates them by one bit, it takes a long time to allocate all available bits.

제3도는 오디오 신호의 부호화에 있어서 종래의 비트 할당방식의 또다른 알고리즘을 나타낸 플로우차트로서, 제2도에 도시한 비트 할당방식의 문제점을 개선한 것이다.3 is a flowchart showing another algorithm of a conventional bit allocation method in encoding an audio signal, which improves the problem of the bit allocation method shown in FIG.

먼저, 비트 할당 알고리즘을 수행하기 위해 사용되는 변수들과 상수들을 초기화 시키고(301), 마스킹대 잡음비(MNR )가 소정의 문턱값(Threshold)보다 작은 서브밴드에 대해서 마스킹대 잡음비(NMR)가 상기 문턱값보다 크게 되도록 소정 갯수의 비트를 할당한다.(302)Initially, the variables and constants used to perform the bit allocation algorithm are initialized (301), and the masking-to-noise ratio (NMR) for the subband whose masking-to-noise ratio (MNR) is smaller than a predetermined threshold is shown. A predetermined number of bits are allocated to be larger than the threshold value (302).

비트 할당을 수행하고 난후에 남아 있는 비트가 있는지 여부를 판단하여(303) 할당할 비트가 없으면 알고리즘을 종료하고, 할당할 비트가 남아 있으면 마스킹대 잡음비(MNR)가 최소인 서브밴드를 선택(304)하여 양자화 단계를 하나 증가시키고(305), 이에따라 한 비트를 해당 서브밴드에 할당(306)한 후에 남아 있는 비트가 있는지 없는지 여부를 판단한다.(307)After performing bit allocation, it is determined whether there are any bits remaining (303), and if there are no bits to allocate, the algorithm is terminated. If the bits to be allocated remain, the subband having the minimum masking-to-noise ratio (MNR) is selected (304). In step 307, the quantization step is incremented by one (305), and thus a bit is allocated to the corresponding subband (306).

이때, 할당한 비트가 없으면 비트 할당 알고리즘을 종료하고, 할당한 비트가 남아 있으면 증가된 양자화 단계에 상응하는 마스킹대 잡음비(MNR)를 갱신(308)한 후에 마스킹대 잡음비(MNR)가 최소인 서브밴드를 선택(304)하여 비트 할당을 반복 수행한다.At this time, if there is no allocated bit, the bit allocation algorithm is terminated. If the allocated bit remains, the masking-to-noise ratio (MNR) corresponding to the increased quantization step is updated (308), and then the sub-masking-to-noise ratio (MNR) is the minimum. The band is selected 304 to repeat the bit allocation.

즉, 소정의 문턱값보다 작은 마스킹대 잡음비(MNR)를 갖는 서브밴드에 대해서 상기 마스킹대 잡음비(MNR)가 상기 문턱값보다 크도록 소정의 비트를 할당한 후에, 할당한 비트가 남아 있으면 제2도에 도시한 종래의 비트 할당 알고리즘(200)을 수행한다.That is, after allocating a predetermined bit so that the masking-to-noise ratio MNR is greater than the threshold value for a subband having a masking-to-noise ratio MNR smaller than a predetermined threshold value, the second bit if the allocated bit remains. The conventional bit allocation algorithm 200 shown in FIG.

이러한 기존의 비트 할당방식은 입력 오디오 신호와 심리 음향적 특성을 모델링 하는 부분(20)에 따라 문턱값을 변화시켜야 하기 때문에 문턱값을 설정하기 위하여 부가적인 계산을 해야하는 문제점이 있다.This conventional bit allocation method has a problem in that an additional calculation is required to set the threshold value because the threshold value needs to be changed according to the portion 20 for modeling the input audio signal and psychoacoustic characteristics.

이에 따라 일반적으로 문턱값을 0 으로 설정하는데, 이 경우 실제로 할당되어지는 비트수가 작아서 제2도에 도시된 방식과 속도상의 차이가 나지 않는다.This generally sets the threshold to 0, in which case the number of bits actually allocated is small so that there is no difference in speed from the scheme shown in FIG.

따라서, 본 발명의 목적은 상술한 문제점을 해결하기 위하여 신호대 마스킹비(SMR)가 0 이상인 서브밴드에 소정 비트를 할당한 후 남아 있는 비트의 수가 서브밴드의 갯수에 각 밴드당의 샘플수를 곱한 것보다 많으면, 모든 서브밴드의 양자화 단계를 하나씩 증가시키고 그렇지 않으면 마스킹대 잡음비(MNR)가 최소인 서브밴드를 선택하여 한 비트씩 할당하는 오디오 신호의 부호화에 있어서 비트 할당방법을 제공하는 데에 있다.Accordingly, an object of the present invention is to multiply the number of subbands by the number of samples per band after the number of bits remaining after allocating a predetermined bit to a subband having a signal-to-masking ratio (SMR) equal to or greater than 0 to solve the above problem. More, the present invention provides a bit allocation method in encoding an audio signal in which the quantization steps of all subbands are increased by one, otherwise, the subband having the minimum masking-to-noise ratio (MNR) is selected and allocated one bit at a time.

상기 목적을 달성하기 위하여 본 발명에 의한 오디오 신호의 부호화에 있어서 비트 할당방법은 오디오 신호의 부호화 알고리즘을 수행하기 위한 변수들과 상수들을 초기화하는 제1단계, 소정의 문턱값보다 큰 신호대 마스킹비(SMR)를 갖는 모든 서브밴드에 대해, 상기 신호대 마스킹비(SMR)가 상기 문턱값 보다 작게 되도록 양자화 단계를 증가시키고, 이에따라 소정 갯수의 비트를 할당하는 제2단계, 상기 서브밴드의 갯수와 상기 서브밴드에 해당해는 샘플수를 승산하는 제3단계, 상기 제2단계에서 비트 할당이 수행된 후에 남아 있는 비트의 수와 상기 제3단계의 결과값을 비교하는 제4단계, 상기 제2단계에서 비트 할당이 수행된 후에 남아 있는 비트의 수가 상기 제3단계의 결과값보다 크면 모든 서브밴드의 양자화 단계를 증가시키고, 상기 제2단계애서 비트 할당이 수행된 후에 남아 있는 비트의 수가 상기 제3단계의 결과값보다 작으면 마스킹대 잡음비(MNR)가 최소인 서브밴드를 선택하여 할당할 비트가 남지 않을 때까지 한 비트씩 할당하는 제5단계로 이루어진 것을 특징으로 한다.In order to achieve the above object, in the encoding of an audio signal according to the present invention, a bit allocation method includes a first step of initializing variables and constants for performing an encoding algorithm of an audio signal, and a signal-to-masking ratio greater than a predetermined threshold ( For all subbands having SMR), a second step of increasing the quantization step such that the signal-to-masking ratio SMR is smaller than the threshold value, and thus allocating a predetermined number of bits, the number of subbands and the subbands In the third step of multiplying the number of samples, the fourth step of comparing the result of the third step with the number of bits remaining after the bit allocation is performed in the second step, and in the second step If the number of bits remaining after the bit allocation is performed is larger than the result value of the third step, the quantization step of all subbands is increased, and in the second step, If the number of bits remaining after the network allocation is performed is smaller than the result value of the third step, the fifth sub-band is selected by assigning a subband having a minimum masking-to-noise ratio (MNR) and allocating bit by bit until there are no bits to allocate. Characterized in consisting of steps.

이하 첨부된 제4도를 참조하여 본 발명에 대하여 설명하기로 한다.Hereinafter, the present invention will be described with reference to FIG. 4.

제4도는 본 발명에 의한 비트 할당방법을 설명하기 위한 플로우차트로서, 양자화 단계(Quantizer Step Size), 서브밴드의 인덱스(SI), 마스킹대 잡음비(MNR) 등 오디오 신호의 부호화 알고리즘을 수행하기 위한 변수들을 초기화 하고, 할당하고자 하는 비트의 갯수, 서브밴드의 갯수 등 상수값들을 설정한다.(400)4 is a flowchart illustrating a bit allocation method according to the present invention, which is used to perform an encoding algorithm of an audio signal such as a quantization step (Quantizer Step Size), a subband index (SI), and a masking to noise ratio (MNR). Initialize the variables and set constants such as the number of bits to be allocated and the number of subbands (400).

변수의 초기화 및 상수값 설정을 수행한 다음, 신호대 마스킹비(SMR)가 0 이상인가를 판단하여(401) 신호대 마스킹비(SMR)가 0 보다 작으면 서브밴드 인덱스(SI)를 증가시킨후(402) 신호대 마스킹비(SMR)가 0 이상인가를 다시 판단하여(401) 신호대 마스킹비(SMR)가 0 이상인 모든 서브밴드에 대해 마스킹대 잡음비(MNR)가 0 보다 작게 되도록 소정 비트수를 할당한다.(403)After initializing the variable and setting the constant value, it is determined whether the signal-to-masking ratio SMR is greater than or equal to zero (401). If the signal-to-masking ratio SMR is less than zero, the subband index SI is increased ( 402) Re-determine whether the signal-to-masking ratio SMR is greater than or equal to zero (401), and allocate a predetermined number of bits so that the masking-to-noise ratio MNR is less than zero for all subbands where the signal-to-masking ratio SMR is greater than zero. (403)

신호대 마스킹비(SMR)가 0 이상인 모든 서브밴드에 대해 비트 할당작업이 완료되면(404), 서브밴드의 갯수와 각 서브밴드 당의 샘플수를 승산한 결과(ST)를 남아 있는 비트의 수와 비교한다.(406)When the bit allocation operation is completed for all subbands with a signal-to-masking ratio (SMR) equal to or greater than zero (404), the result of multiplying the number of subbands by the number of samples per subband (ST) is compared with the remaining number of bits. (406)

이때, 남아 있는 비트의 수가 서브밴드의 갯수와 각 서브밴드 당의 샘플수를 승산한 결과(ST)보다 많으면 모든 서브밴드의 양자화 단계를 증가시켜서 소정 비트수를 할당하고(407), 이 작업을 남아 있는 비트의 수가 ST 보다 적을 때까지 반복한다.If the number of remaining bits is greater than the result of multiplying the number of subbands and the number of samples per subband (ST), the quantization step of all subbands is increased to allocate a predetermined number of bits (407), and the operation remains. Repeat until there are fewer bits than ST.

할당할 비트의 수가 ST 보다 적으면, 최소의 마스킹대 잡음비(MNR)를 갖는 서브밴드에 한 비트를 할당하는 종래의 비트할당 알고리즘(200)을 수행한다.If the number of bits to be allocated is less than ST, a conventional bit allocation algorithm 200 is performed that assigns one bit to a subband with a minimum masking-to-noise ratio (MNR).

본 발명의 실시예는 신호대 마스킹비(SMR)의 문턱값을 0 으로 설정하였는데, 일반적으로는 소정의 양자화 단계에 상응하는 신호대 잡음비(SNR)를 선택하여 상기 신호대 잡음비(SNR)에 음의 부호를 붙인 값을 상기 문턱값으로 설정할 수 있다.In the embodiment of the present invention, the threshold of the signal-to-masking ratio (SMR) is set to 0. In general, a negative sign is assigned to the signal-to-noise ratio (SNR) by selecting a signal-to-noise ratio (SNR) corresponding to a predetermined quantization step. The pasted value may be set as the threshold.

상술한 바와 같이 본 발명에 따른 오디오 신호의 부호화에 있어서 비트 할당방법은 신호대 마스킹비(SMR)가 문턱값 이상인 서브밴드에 소정 비트를 할당한 후, 남아 있는 비트의 수가 서브밴드의 갯수에 각 밴드당의 샘플수를 곱한 것(ST)보다 많으면 모든 서브밴드의 양자화 단계를 하나씩 증가시키고, 남아 있는 비트의 수가 서브밴드의 갯수에 각 밴드당의 샘플수를 곱한 것(ST)보다 작으면 마스킹대 잡음비(MNR)가 최소인 서브밴드를 선택하여 한 비트씩 할당함으로서 비트 할당 시간을 단축할 수 있다.As described above, in the encoding of the audio signal according to the present invention, in the bit allocation method, after allocating a predetermined bit to a subband having a signal-to-masking ratio (SMR) equal to or greater than a threshold, the number of remaining bits corresponds to the number of subbands. If the number of sugars is more than the product (ST), the quantization step of all subbands is increased by one.If the number of bits remaining is less than the number of subbands multiplied by the number of samples per band (ST), the masking-to-noise ratio ( The bit allocation time can be shortened by selecting a subband having the smallest MNR and allocating bit by bit.

또한, 양자화 단계에 따른 신호대 잡음비(SNR)에 마이너스를 붙인 값을 문턱값으로 설정함으로서 문턱값 계산이 간단해지고, 신호대 마스킹비(SMR)를 사용하여 소정 비트를 할당하므로서 심리음향적 특성을 모델링 할때 발생하는 계산상의 오류에 대해 민감하지 않다.In addition, the threshold calculation is simplified by setting the negative value of the signal-to-noise ratio (SNR) according to the quantization step as the threshold value, and the psychoacoustic characteristics can be modeled by allocating predetermined bits using the signal-to-masking ratio (SMR). Insensitive to computational errors that occur when

Claims (3)

오디오 신호의 부호화 알고리즘을 수행하기 위한 변수들과 상수들을 초기화하는 제1단계, 소정의 문턱값보다 큰 신호대 마스킹비(SMR)를 갖는 모든 서브밴드에 대해, 상기 신호대 마스킹비(SMR)가 상기 문턱값 보다 작게 되도록 양자화 단계를 증가시키고, 이에따라 소성 갯수의 비트를 할당하는 제2단계, 상기 서브밴드의 갯수와 상기 서브밴드에 해당하는 샘플수를 승산하는 제3단계, 상기 제2단계에서 비트 할당이 수행된 후에 남아 있는 비트의 수와 상기 제3단계의 결과값을 비교하는 제4단계, 상기 제2단계에서 비트 할당이 수행된 후에 남아 있는 비트의 수가 상기 제3단계의 결과값보다 크면 모든 서브밴드의 양자화 단계를 증가시키고, 상기 제2단계에서 비트 할당이 수행된 후에 남아 있는 비트의 수가 상기 제3단계의 결과값보다 작으면 마스킹대 잡음비(MNR)가 최소인 서브밴드를 선택하여 할당할 비트가 남지 않을 때까지 한 비트씩 할당하는 제5단계로 이루어진 것을 특징으로 하는 오디오 신호의 부호화에 있어서 비트 할당방법.A first step of initializing variables and constants for performing an encoding algorithm of an audio signal, for all subbands having a signal-to-masking ratio (SMR) greater than a predetermined threshold, the signal-to-masking ratio (SMR) is the threshold A second step of increasing the quantization step to be smaller than the value, thereby allocating the number of bits of firing, a third step of multiplying the number of subbands by the number of samples corresponding to the subbands, and allocating bits in the second step The fourth step of comparing the number of bits remaining after the execution with the result value of the third step, and if the number of bits remaining after bit allocation is performed in the second step is larger than the result value of the third step, If the number of bits remaining after the bit allocation is performed in the second step is smaller than the result value of the third step, the quantization step of the subband is increased. And a fifth step of selecting a subband having a minimum MNR and allocating bit by bit until there are no bits to be allocated. 제1항에 있어서, 상기 제2단계는 양자화 단계에 따른 신호대 잡음비(SNR)를 나타낸 표에서 소성의 양자화 단계에 상응하는 신호대 잡음비(SNR)를 선택하여, 상기 신호대 잡음비(SNR)에 마이너스 부호를 붙인 값을 소정의 문턱값으로 설정하는 것을 특징으로 하는 오디오 신호의 부호화에 있어서 비트 할당방법.2. The method of claim 1, wherein the second step selects a signal-to-noise ratio (SNR) corresponding to the quantization step of plasticity from a table showing the signal-to-noise ratio (SNR) according to the quantization step, and adds a negative sign to the signal-to-noise ratio (SNR). A bit allocation method in encoding an audio signal, wherein the appended value is set to a predetermined threshold. 제1항에 있어서, 상기 제3단계는 낮은 주파수 밴드에서 부터 높은 주파수 밴드로 비트 할당을 수행하는 것을 특징으로 하는 오디오 신호의 부호화에 있어서 비트 할당방법.The method of claim 1, wherein the third step is to perform bit allocation from a low frequency band to a high frequency band.
KR1019940028567A 1994-11-01 1994-11-01 Method for allocating bits in coding of audio signals KR100224812B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019940028567A KR100224812B1 (en) 1994-11-01 1994-11-01 Method for allocating bits in coding of audio signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019940028567A KR100224812B1 (en) 1994-11-01 1994-11-01 Method for allocating bits in coding of audio signals

Publications (2)

Publication Number Publication Date
KR960019240A KR960019240A (en) 1996-06-17
KR100224812B1 true KR100224812B1 (en) 1999-10-15

Family

ID=19396864

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019940028567A KR100224812B1 (en) 1994-11-01 1994-11-01 Method for allocating bits in coding of audio signals

Country Status (1)

Country Link
KR (1) KR100224812B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104934034A (en) * 2014-03-19 2015-09-23 华为技术有限公司 Method and device used for signal processing

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104934034A (en) * 2014-03-19 2015-09-23 华为技术有限公司 Method and device used for signal processing
WO2015139477A1 (en) * 2014-03-19 2015-09-24 华为技术有限公司 Signal processing method and device
CN104934034B (en) * 2014-03-19 2016-11-16 华为技术有限公司 Method and apparatus for signal processing
RU2641466C1 (en) * 2014-03-19 2018-01-17 Хуавэй Текнолоджиз Ко., Лтд. Method and device for processing signals
US10134402B2 (en) 2014-03-19 2018-11-20 Huawei Technologies Co., Ltd. Signal processing method and apparatus
US10832688B2 (en) 2014-03-19 2020-11-10 Huawei Technologies Co., Ltd. Audio signal encoding method, apparatus and computer readable medium

Also Published As

Publication number Publication date
KR960019240A (en) 1996-06-17

Similar Documents

Publication Publication Date Title
JP3186292B2 (en) High efficiency coding method and apparatus
US5664056A (en) Digital encoder with dynamic quantization bit allocation
KR100288460B1 (en) Data compression apparatus and method using signal weighted quantization bit allocation
JP2906646B2 (en) Voice band division coding device
JP3153933B2 (en) Data encoding device and method and data decoding device and method
JP2000004163A (en) Method and device for allocating dynamic bit for audio coding
JPH07183818A (en) Method for coding audio signal and its device
US7650278B2 (en) Digital signal encoding method and apparatus using plural lookup tables
JP3927627B2 (en) Digital audio encoding method
EP0612160A2 (en) A bit allocation method for transform coder
Truman et al. Efficient bit allocation, quantization, and coding in an audio distribution system
KR100224812B1 (en) Method for allocating bits in coding of audio signals
WO2000008631A1 (en) System and method for implementing a refined psycho-acoustic modeler
KR100188924B1 (en) Bit division method of audio signal coder
JP3465341B2 (en) Audio signal encoding method
KR100300957B1 (en) Digital audio encoding method using lookup table and apparatus for the same
JP3342996B2 (en) Multi-channel audio encoder and encoding method
JPH08211899A (en) Method and device for encoding voice
KR0155823B1 (en) Subband coding bit rate method
KR100310325B1 (en) Method for high speed allocating bit in the digital audio coding system
JPH08204575A (en) Adaptive encoded system and bit assignment method
KR970006827B1 (en) Audio signal encoding apparatus
KR100351772B1 (en) Digital encoding device, digital recording signal derivation device and digital signal data derivation method
JP3134384B2 (en) Encoding device and method
KR100590340B1 (en) Digital audio encoding method and device thereof

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20080627

Year of fee payment: 10

LAPS Lapse due to unpaid annual fee