KR100225348B1 - A quantizing coefficient count apparatus for decision of quantizing number - Google Patents

A quantizing coefficient count apparatus for decision of quantizing number

Info

Publication number
KR100225348B1
KR100225348B1 KR1019960042341A KR19960042341A KR100225348B1 KR 100225348 B1 KR100225348 B1 KR 100225348B1 KR 1019960042341 A KR1019960042341 A KR 1019960042341A KR 19960042341 A KR19960042341 A KR 19960042341A KR 100225348 B1 KR100225348 B1 KR 100225348B1
Authority
KR
South Korea
Prior art keywords
quantization
coefficient
interval
quantization interval
quantizing
Prior art date
Application number
KR1019960042341A
Other languages
Korean (ko)
Other versions
KR19980022998A (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 KR1019960042341A priority Critical patent/KR100225348B1/en
Publication of KR19980022998A publication Critical patent/KR19980022998A/en
Application granted granted Critical
Publication of KR100225348B1 publication Critical patent/KR100225348B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

본 발명은 디지탈 기록/재생장치에 있어서, 디지탈 영상신호의 양자화 번호를 결정하기 위하여 굳이 이산여현변환 계수를 양자화한 다음 이 양자화 계수에 의해 0이 아닌 심볼의 갯수를 카운트하지 않고, 곧바로 기 정해진 양자화 간격과 이산여현변환 계수의 비교결과에 의하여 양자화된 이산여현변환 계수의 0이 아닌 심볼의 갯수를 카운트함으로써 각 세그먼트의 할당 비트량을 예측하여 손쉽게 양자화 번호를 설정하도록 하여 하드웨어의 구현이 보다 용이하도록 하는 양자화 번호 결정을 위한 양자화 계수 카운트 장치를 제공함에 그 목적이 있다.The present invention relates to a digital recording / reproducing apparatus, which quantizes a DCT coefficient to determine a quantization number of a digital video signal and then quantizes the number of non-zero symbols by the quantization coefficient, The number of non-zero symbols of the DCT coefficients quantized by the result of the comparison of the interval and the DCT coefficients is counted to estimate the allocated bit quantities of the respective segments to easily set the quantization numbers, And to provide a quantization coefficient counting apparatus for determining a quantization number.

이와 같은 목적을 달성하기 위한 본 발명은, 양자화 번호, 클래스 번호, 그리고 영역 번호를 인가받아 기 정해진 테이블에 의해 양자화 간격을 결정하는 양자화 간격 결정부; 상기 양자화 간격 결정부로부터 출력되는 양자화 간격과 이산여현변환 계수를 인가받아 이를 비교하여 양자화 간격보다 이산여현변환 계수가 작으면 1을, 반면에 양자화 간격이 이산여현변환 계수보다 작거나 같으면 0을 출력하는 비교부; 상기 비교부의 비교결과를 인가받아 0이 아닌 심볼만을 카운트하여 출력하는 카운터로 구성됨을 특징으로 한다.According to an aspect of the present invention, there is provided a quantization apparatus including: a quantization interval determining unit that determines a quantization interval based on a predetermined table obtained by receiving a quantization number, a class number, and a region number; And outputs 1 when the quantization interval is equal to or smaller than the discrete cosine transform coefficient. If the quantization interval is equal to or smaller than the discrete cosine transform coefficient, ; And a counter receiving the comparison result of the comparison unit and counting and outputting only non-zero symbols.

Description

양자화 번호 결정을 위한 양자화 계수 카운트 장치(A QUANTIZING COEFFICIENT COUNT APPARATUS FOR DECISION OF QUANTIZING NUMBER)A QUANTIZING COEFFICIENT COUNT APPARATUS FOR DECISION OF QUANTIZING NUMBER

본 발명은 디지탈 브이씨알에 있어서, 디지탈 영상신호의 양자화 번호를 결정하기 위하여 굳이 이산여현변환 계수를 양자화한 다음 이 양자화 계수에 의해 0이 아닌 심볼의 갯수를 카운트하지 않고, 곧바로 기 정해진 양자화 간격과 이산여현변환 계수의 비교결과에 의하여 양자화된 이산여현변환 계수의 0이 아닌 심볼의 갯수를 카운트하는 양자화 번호 결정을 위한 양자화 계수 카운트 장치에 관한것이다.In order to determine a quantization number of a digital video signal, the present invention is characterized in that a DCT coefficient is quantized to determine a quantization number of a digital video signal, and then the number of non-zero symbols is not counted by the quantization coefficient, To a quantization coefficient counting apparatus for quantizing a number of non-zero symbols of a DCT coefficient quantized according to a comparison result of DCT coefficients.

일반적으로, 프레임내 부호화(intraframe coding)기법을 사용하는 디지탈 기록/재생 장치에서의 영상 데이타 압축은 크게 이산여현변환(DCT : Discrete Cosine Transform)계수의 양자화와 양자화된 이산여현변환 계수의 가변길이 부호화(VLC : Variable Length Coding)에 의해서 이루어진다.In general, image data compression in a digital recording / reproducing apparatus using an intraframe coding technique is roughly divided into quantization of discrete cosine transform (DCT) coefficients and variable length coding of quantized DCT coefficients (VLC: Variable Length Coding).

이 중 이산여현변환 계수의 양자화는 디지탈 데이타의 압축률과 부호화 성능에 결정적인 영향을 미치는 요소로서, 양자화 간격(Quantizing step size)을 변화시킴으로써 압축된 영상 데이타의 비트량을 조절할 수 있다.The quantization of the DCT coefficients has a decisive influence on the compression rate and coding performance of the digital data, and the bit amount of the compressed image data can be adjusted by changing the quantizing step size.

이러한 양자화 간격은 8×8 크기의 이산여현변환 블럭내에서 양자화 간격은 클래스 번호(class number), 영역 번호(area number),그리고 양자화 번호(quantizing number)에 의해 결정된다.The quantization interval is determined by a class number, an area number, and a quantizing number in an 8 × 8 DCT block.

이중 클래스 번호는 이산여현변환 블럭내에서 AC 계수 크기에 따라 결정되며, 영역 번호는 블럭내의 위치에 따라 결정된다.The double class number is determined according to the AC coefficient size in the DCT block, and the area number is determined according to the position in the block.

그리고 양자화 번호는 매크로 블럭(macro block)단위로 설정되며, 5개의 압축된 매크로 블럭으로 구성된 하나의 비디오 세그먼트(video segment)내에서 발생하는 압축된 데이타량을 미리 설정해 놓은 일정한 비트량(385 바이트)로 제한하도록 설정해야 한다.The quantization number is set in a macro block unit. A fixed amount of data (385 bytes), which is a preset amount of compressed data generated in one video segment composed of five compressed macroblocks, Should be set.

여기서, 1세그먼트는 5매크로블럭으로 구성되고, 1매크로블럭은 6이산여현변환 블럭으로 구성되며, 1이산여현변환 블럭은 수평 8화소, 수직 8화소의 도합 64화소로 구성된다.Here, one segment is composed of 5 macroblocks, one macroblock is composed of 6 discrete cosine transform blocks, and one discrete cosine transform block is composed of 64 pixels each of 8 horizontal pixels and 8 vertical pixels.

덧붙여 말하면, 1세그먼트는 1920화소(1세그먼트 = 5매크로블럭 = 30이산여현블럭 = 1920화소)를 가진다.Incidentally, one segment has 1920 pixels (1 segment = 5 macroblock = 30 discrete cosine blocks = 1920 pixels).

이렇게 구성된 영상 데이타의 1 세크먼트의 1920 바이트의 데이타를 항상 385 바이트의 데이타로 일정하게 압축하여 기록한다.The 1920-byte data of one segment of the image data thus constructed is always compressed with 385-byte data.

상기 양자화 번호는 0에서 15까지의 값으로 표현되며, 양자화 번호값이 0으로부터 커질 수록 이산여현변환 계수를 양자화하기 위한 양자화 간격은 작아진다.The quantization number is represented by a value from 0 to 15. As the quantization number value becomes larger from 0, the quantization interval for quantizing the DCT coefficient becomes smaller.

즉, 양자화 번호가 커지면 발생하는 비트량은 증가하고, 양자화 번호가 작아지면 상대적으로 발생하는 비트량은 줄어든다.That is, when the quantization number increases, the amount of bits generated increases. When the quantization number decreases, the amount of bits that occur relatively decreases.

따라서, 한 비디오 세그먼트의 일정한 비트량을 맞추기 위해서는 매크로 블럭단위의 양자화 번호값을 적절히 조절하여야 한다.Accordingly, in order to match a constant bit amount of one video segment, a quantization number value in a macroblock unit should be appropriately adjusted.

이러한 양자화 번호는 매크로 블럭 단위로 설정되지만 가변길이 부호화(VLC)에 의해 발생된 비트열은 비디오 세그먼트의 비트 배열 방법에 따라 세그먼트 단위로 이루어진다.The quantization number is set in units of macroblocks, but the bit stream generated by the variable length coding (VLC) is segmented according to the bit arrangement method of the video segment.

따라서, 한 세그먼트의 비트 할당량인 385 바이트를 만족시키면서 전체적인 화질을 균등하게 유지하기 위해서는 5개의 매크로 블럭으로 구성된 세그먼트 단위로 각 매크로 블럭의 양자화 번호를 설정하는 것이 바람직하다.Therefore, in order to maintain the overall picture quality uniformly while satisfying the bit allocation amount of 385 bytes of one segment, it is preferable to set a quantization number of each macroblock in a segment unit composed of five macroblocks.

또 각 블럭의 양자화 간격은 블럭의 액티비티(activity)와 할당 비트량을 고려하여 선택되어야 하는데, 선택된 클래스 번호는 각 블럭의 액티비티를 반영하기 때문에 양자화 번호는 매크로 블럭과 세그먼트의 할당 비트량을 만족시키도록 설정하는 것이 바람직하다.In addition, the quantization interval of each block should be selected in consideration of the activity of the block and the allocated bit amount. Since the selected class number reflects the activity of each block, the quantization number satisfies the allocation amount of the macro block and the segment .

가장 이상적인 양자화 번호 설정방법은 16개의 모든 양자화 번호 각각을 적용하여 양자화와 가변길이 부호화를 수행한 후, 할당 비트량에 가장 가까운 양자화 번호를 선택하는 것이나, 16개의 양자화 번호 모두에 대해서 양자화기에 의해 양자화를 행하는 경우 하드웨어의 복잡도가 매우 증가하는 단점이 있다.The most ideal method of setting a quantization number is to perform quantization and variable length coding by applying each of all 16 quantization numbers and then to select a quantization number closest to the allocated bit amount. However, for all 16 quantization numbers, There is a disadvantage in that the hardware complexity is greatly increased.

도1은 양자화 번호의 결정을 위한 종래의 양자화 번호 결정을 위한 양자화 계수 카운트 장치를 나타낸 블럭도이다.1 is a block diagram showing a conventional quantization coefficient counting apparatus for quantization number determination for determining a quantization number.

도1을 참조하면, 양자화 번호(QNO), 클래스 번호(CNO), 영역 번호(ANO)에 의해 압축된 영상 데이타의 비트량을 결정하기 위한 양자화 간격을 결정하여 그에 대한 양자화 간격 크기 데이타(S)를 출력하는 양자화 간격 결정부(100); 입력되는 각 이산여현변환 계수(Di)를 상기 양자화 간격 크기 데이타(S)로 각각 나눔으로써 그에 따른 양자화 계수(Q)를 출력하는 양자화부(110); 상기 양자화 계수(Q)를 0과 비교함으로써 그에 따른 비교결과(Y)를 출력하는 비교부(120); 상기 비교부(120)로부터 출력되는 비교결과(Y)를 인가받아 0이 아닌 심볼만을 카운트하여 그 결과(C)를 출력하는 카운터(130)로 구성된다.Referring to FIG. 1, a quantization interval for determining a bit amount of image data compressed by a quantization number (QNO), a class number (CNO), and an area number (ANO) is determined and quantization interval size data S A quantization-interval determining unit (100) for outputting a quantization parameter; A quantization unit (110) for dividing each input DCT coefficient (Di) into the quantization interval size data (S) and outputting the quantization coefficient (Q); A comparison unit 120 for comparing the quantization coefficient Q with 0 and outputting a comparison result Y according to the comparison; And a counter 130 receiving only the comparison result Y output from the comparison unit 120 and counting only non-zero symbols and outputting the result C of the comparison result.

이와 같이 구성된 종래의 양자화 번호 결정을 위한 양자화 계수 카운트 장치는 잘 알려진 바와 같이, 양자화부(110)는 이산여현변환 계수(Di)를 기 결정된 양자화 간격 데이타(S)으로 나누어 그에 대한 양자화 계수(Q)를 비교부(120)에서 0과 비교하여 그 비교결과(Y)를 최종적으로 카운터(130)에서 0이 아닌 심볼만을 카운트하여 누적하고, 이 누적된 심볼 갯수와 미리 설정한 세그먼트 단위의 타켓 심볼(target symbol)의 갯수를 비교하여 실제 디지탈 영상을 양자화함에 있어서 그 타겟 심볼에 가장 근접하는 양자화 번호를 선택하기 위해 널리 이용된다.As is well known in the art for a quantization coefficient counting apparatus for determining the conventional quantization number thus configured, the quantization unit 110 divides the DCT coefficients Di into predetermined quantization interval data S, and outputs a quantization coefficient Q ) Is compared with 0 in the comparator 120 and the comparison result Y is finally counted and accumulated in the counter 130 only in the non-zero symbol, and the accumulated number of symbols and the target symbol and is used widely to select a quantization number closest to the target symbol in quantizing an actual digital image by comparing the number of target symbols.

이를 도1을 참조하여 구체적으로 설명하면, 먼저 양자화 간격 결정부(100)는 양자화 번호(QNO), 클래스 번호(CNO), 그리고 영역번호(ANO)를 인가받아 8×8의 이산여현변환 블럭내의 양자화 간격을 기 정해진 테이블에 의해 결정하여 그에 따른 양자화 간격 크기 데이타(S)를 출력하게 된다.1, the quantization interval determining unit 100 receives a quantization number (QNO), a class number (CNO), and a region number (ANO) The quantization interval is determined by the predetermined table, and the quantization interval size data S corresponding thereto is output.

이 중 클래스 번호(CNO)는 양자화 번호(QNO)를 설정하기에 앞서 먼저 결정하게 되는데, 각 블럭의 액티비티에 따라 블럭단위로 4 클래스(0-3)로 나누어진다.The class number CNO is determined prior to setting the quantization number QNO. The class number CNO is divided into four classes (0-3) on a block-by-block basis according to the activity of each block.

그리고 클래스 번호(CNO)가 결정되면 디지탈 기록/재생장치의 표준에 따라 AC계수는 초기 스케일링(initIal scaling)되며, 각 AC 계수는 10비트에서 9비트로 줄어든다.When the class number (CNO) is determined, the AC coefficient is initially scaled according to the standard of the digital recording / reproducing apparatus, and each AC coefficient is reduced from 10 bits to 9 bits.

양자화부(110)는 입력되는 이산여현변환 계수(Di)를 상기 양자화 간격 결정부(100)로부터 출력되는 양자화 간격크기 데이타(S)로 나눔으로써 간단한 양자화를 행하게 되는데, 이 과정을 좀 더 상세히 설명한다.The quantization unit 110 performs simple quantization by dividing the inputted DCT coefficient Di into the quantization interval size data S output from the quantization interval determination unit 100. This process is described in more detail do.

양자화는 세그먼트 단위로 5개의 매크로블럭 각각에 대한 효율적인 양자화 번호를 설정하기 위한 첫번째 과정으로서의, 6개의 양자화 번호값(3,5,7,9,11,13)에 대한 양자화 과정을 병렬로 수행한다.Quantization is performed in parallel on the quantization processes for the six quantization number values (3, 5, 7, 9, 11, 13) as the first process for setting efficient quantization numbers for each of the five macroblocks in units of segments .

이 과정은 부호화기의 가변길이 부호화 출력단의 비트 발생량을 예측하기 위한 양자화된 이산여현변환 계수의 0이 아닌 AC계수를 갯수를 계산하기 위한 선과정으로서, 실제의 양자화 과정보다는 간단한 다음 식(1)과 같은 임계치 설정 과정이라고 할 수 있다.This process is a linear process for calculating the number of non-zero AC coefficients of the quantized DCT coefficients for predicting the bit generation amount of the variable length coding output of the encoder. It can be said that the threshold setting process is the same.

여기서, AC는 초기 스케일링(scaling)된 이산여현변환 계수의 AC값으로 -255 ∼ 255의 값을 갖는다.Here, AC is an AC value of an initial scaled DCT coefficient having a value of -255 to 255.

또, QAC는 양자화후의 이산여현변환 계수의 AC값이며, T는 0이 아닌 AC 계수 즉, 심볼을 가려내기 위한 문턱값이다.QAC is an AC value of a DCT coefficient after quantization, and T is a threshold value for extracting an AC coefficient that is not 0, that is, a symbol.

실제 이산여현변환 계수의 AC값은 다음의 식(2)와 같은 양자화 과정을 거쳐 양자화 계수(Q)를 출력하게 된다.The AC value of the actual DCT coefficient is output as the quantization coefficient Q through a quantization process as shown in the following equation (2).

여기서, S는 각 블럭에서 주어진 양자화 번호(QNO), 클래스 번호(CNO), 영역 번호(ANO)에 따라 기 정해진 테이블에 의해서 구해진 양자화 간격이며, m은 양자화 기가 데드 존(dead-zone)을 갖도록 하기 위한 레벨 시프트 변수(quantizing level shift parameter)이다.Here, S is a quantization interval obtained by a table predetermined according to a quantization number (QNO), a class number (CNO), and a region number (ANO) given in each block, and m is an integer such that the quantizer has a dead- Quot; is a quantizing level shift parameter.

또, '/'는 소숫점 이하는 소거하라는 의미이다.In addition, '/' means to erase below decimal point.

상기 양자화부(110)로부터 출력되는 양자화 계수(Q)는 비교부(120)로 인가되어 0과 비교하여 그 비교결과(Y)를 다음 식(3)에 의해 출력하게 된다.The quantization coefficient Q output from the quantization unit 110 is applied to the comparison unit 120 and is compared with 0 to output the comparison result Y according to the following equation (3).

즉, 양자화 계수(Q)를 0과 비교하여 0보다 작거나 같으면 1을 출력하고, 반면에 '0보다 크면 0을 출력하게 되는 것이다.That is, when the quantization coefficient Q is compared with 0 and less than or equal to 0, 1 is output, while when it is greater than 0, 0 is output.

상기 비교부(120)로부터 출력되는 비교결과(Y)를 카운터(130)에서 인가받아 0이 아닌 심볼을 카운트하게 되고, 이 카운트된 결과(C)를 출력하게 되면, 다음 단의 누적기(미도시)에 의해 양자화 번호(QNO)가 3, 5, 7, 9, 11, 13일때의 0이 아닌 AC계수의 갯수를 매크로 블럭단위로, 그리고 이 매크로 블럭을 세그먼트 블럭단위로 누적하고, 이 누적된 값으로부터 줄 길이 부호화(RLC : Run Length Coding)과 가변 길이 코딩화(VLC : Variable Length Coding)를 거친 후에 발생할 비트량을 예측하여 각 매크로 블럭의 양자화 번호값을 설정하게 된다.The counter 130 receives the comparison result Y from the comparator 120 and counts non-zero symbols. When the counted result C is output, the next accumulator The number of non-zero AC coefficients when the quantization numbers QNO are 3, 5, 7, 9, 11, and 13 are accumulated in units of macroblocks and the macroblocks are accumulated in units of segment blocks, The quantization number value of each macroblock is set by predicting a bit amount to be generated after a run length coding (RLC) and a variable length coding (VLC) are performed.

그러나 이와 같은 종래의 양자화 번호 결정를 위한 양자화 계수 카운트 장치는 데이타를 일정하게 압축하기 위해서는 입력되는 디지탈 영상의 특성을 고려하여 미리 압축후의 데이타량을 예측한 양자화를 수행하기 위해, 16개의 양자화 번호 모두에 대해서 양자화기에 의해 양자화를 행하기 때문에 하드웨어로 구성하는 경우 그 복잡도가 매우 증가하는 단점이 있다.However, in order to constantly compress the data, the conventional quantization coefficient counting apparatus for quantization number determination has a problem in that all of 16 quantization numbers are used in order to quantize the amount of data after compression in consideration of the characteristics of the input digital image The quantization is performed by the quantizer, so that the complexity of the apparatus is increased when the apparatus is constructed by hardware.

따라서, 본 발명은 디지탈 영상신호의 양자화 번호를 결정하기 위하여 굳이 이산여현변환 계수를 양자화한 다음 이 양자화 계수에 의해 0이 아닌 심볼의 갯수를 카운트하지 않고, 곧바로 기 정해진 양자화 간격과 이산여현변환 계수의 비교결과에 의하여 양자화된 이산여현변환 계수의 0이 아닌 심볼의 갯수를 카운트함으로써 각 세그먼트의 할당 비트량을 예측하여 손쉽게 양자화 번호를 설정하도록 하여 하드웨어의 구현이 보다 용이하도록 하는 양자화 번호 결정을 위한 양자화 계수 카운트 장치를 제공함에 그 목적이 있다.Therefore, in order to determine a quantization number of a digital image signal, the present invention quantizes the DCT coefficients and then counts the number of non-zero symbols by the quantization coefficient. Then, immediately after the predetermined quantization interval and the DCT coefficients The number of non-zero symbols of the DCT coefficients quantized according to the comparison result is counted to estimate the allocated bit amount of each segment so that the quantization number is easily set, And an object thereof is to provide a quantization coefficient counting apparatus.

제1도는 종래의 양자화 번호 결정을 위한 양자화 계수 카운트 장치를 나타낸 블럭도.FIG. 1 is a block diagram showing a quantization coefficient counting apparatus for determining a conventional quantization number. FIG.

제2도는 본 발명 양자화 번호 결정을 위한 양자화 계수 카운트 장치를 나타낸 블럭도.FIG. 2 is a block diagram showing a quantization coefficient counting apparatus for quantization number determination according to the present invention. FIG.

* 도면의 주요부분에 대한 부호의 설명DESCRIPTION OF THE REFERENCE NUMERALS

100, 200 : 양자화 간격 결정부 110 : 양자화부100, 200: quantization interval determination unit 110: quantization unit

120, 210 : 비교부 130, 220 : 카운터120, 210: comparator 130, 220: counter

상기와 같은 목적을 달성하기 위한 본 발명에 따른 양자화 번호 결정를 위한 양자화 계수 카운트장치는 도2에 도시한 바와 같이, 양자화 번호(QNO), 클래스 번호(CNO), 그리고 영역 번호(ANO)를 인가받아 기 정해진 테이블에 의해 양자화 간격(S)을 결정하는 양자화 간격 결정부(200); 상기 양자화 간격 결정부(200)로부터 출력되는 양자화 간격(S)과 이산여현변환 계수(Di)를 인가받아 이를 비교하여 양자화 간격(S)보다 이산여현변환 계수(Di)가 작으면 1을, 반면에 양자화 간격(S)이 이산여현변환 계수(Di)보다 작거나 같으면 0을 출력(Y)하는 비교부(210); 상기 비교부(210)의 비교결과(Y)를 인가받아 0이 아닌 심볼만을 카운트하여 출력하는 카운터(220)로 구성됨을 특징으로 한다.According to an aspect of the present invention, there is provided a quantization coefficient counting apparatus for quantizing a quantization number according to the present invention. The quantization counting apparatus includes a quantization number (QNO), a class number (CNO), and a region number (ANO) A quantization interval determination unit (200) for determining a quantization interval (S) by a predetermined table; The quantization interval S output from the quantization interval determination unit 200 and the DCT coefficients Di are compared and compared. When the DCT coefficient Di is smaller than the quantization interval S, (Y) if the quantization interval S is less than or equal to the discrete cosine transform coefficient Di; And a counter 220 receiving the comparison result Y of the comparison unit 210 and counting only non-zero symbols and outputting the result.

그 결과 이산여현변환 계수를 바로 양자화 계수로하여 양자화 간격과 비교하여 이의 0이 아닌 심볼을 카운트함으로써 굳이 양자화기가 필요하지 않게 되어 하드웨어의 구현이 용이한 이점이 있다.As a result, the DCT coefficient is directly used as a quantization coefficient, and compared with a quantization interval, non-zero symbols are counted, so that a quantizer is not necessary, and hardware implementation is facilitated.

이하, 본 발명의 바람직한 실시예를 첨부한 도면에 의거 상세히 설명하면 다음과 같다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

본 실시예에 따르면, 양자화가 목적이 아니라 양자화후의 0이 아닌 이산여현변환 계수(Di)의 갯수를 카운팅하는 것이 목적이므로, 양자화 과정을 생략한다.According to the present embodiment, since the object is not to quantize but to count the number of non-zero discrete cosine transform coefficients Di after quantization, the quantization process is omitted.

양자화 간격 결정부(200)의 동작은 종래와 동일하므로 굳이 설명은 생략한다.Since the operation of the quantization interval determination unit 200 is the same as that of the conventional art, a description thereof will be omitted.

그러므로, 상기 양자화 간격 결정부(200)로부터 출력되는 양자화 간격(S)과 이산여현변환 계수(Di)를 비교부(210)에서 인가받아 이를 다음 식(4)에 의해 그에 따른 비교결과(Y)를 출력하게 된다.The comparison unit 210 receives the quantization interval S and the DCT coefficient Di output from the quantization interval determination unit 200 and outputs the comparison result Y according to the following equation (4) .

즉, 이산여현변환 계수(Di)를 양자화간격(S)과 비교하여 양자화 간격(S)이 이산여현변환 계수(Di)보다 크면 1을 출력하고, 반면에 양자화 간격(S)이 이산여현변환계수(Di)보다 작거나 같으면 0을 출력한다.That is, when the DCT coefficient Di is compared with the quantization interval S and the quantization interval S is larger than the DCT coefficient Di, 1 is output. On the other hand, when the quantization interval S is a discrete cosine transform coefficient (Di), " 0 " is output.

그러면, 카운터(220)에서는 이를 인가받아 0이 아닌 심볼을 카운트하여 다음 식(5)에 의하여 카운트 결과(C)를 출력하게 된다.Then, the counter 220 counts non-zero symbols received by the counter 220 and outputs the count result C according to the following equation (5).

즉, 비교결과(Y)가 0이면 카운트 출력(C)을 현재상태로 놔두고, 1이면 카운트 출력(C)을 1증가시킨다.That is, if the comparison result Y is 0, the count output C is left in the current state, and if it is 1, the count output C is incremented by 1.

그러므로, 종래와 동일하게 양자화 계수중 0이 아닌 심볼의 갯수를 카운트할 수 있게 된다.Therefore, it is possible to count the number of non-zero symbols among the quantization coefficients as in the conventional art.

이상에서 상세히 설명한 바와 같이 본 발명에 의한 양자화 번호 결정을 위한 양자화 계수 카운트 장치는 디지탈 영상신호의 양자화 번호 결정을 위해 굳이 단순한 양자화를 거치지 않고, 곧바로 이산여현변환 계수로부터 0이 아닌 (non-zero) 계수를 카운트함으로써 별도의 양자화기가 필요하지 않게 되어 하드웨어의 구현이 용이한 효과가 있게 된다.As described in detail above, according to the present invention, the quantization coefficient counting apparatus for quantization number counting determines a non-zero value from a DCT coefficient immediately without performing a simple quantization in order to determine a quantization number of a digital video signal. By counting the coefficients, there is no need for a separate quantizer, which facilitates hardware implementation.

Claims (2)

양자화 번호, 클래스 번호, 그리고 영역 번호를 인가받아 기 정해진 테이블에 의해 양자화 간격을 결정하는 양자화 간격 결정부; 상기 양자화 간격 결정부로부터 출력되는 양자화 간격과 이산여현변환 계수를 인가받아 이를 비교하여 그에 따른 비교결과를 출력하는 비교부; 상기 비교부의 비교결과를 인가받아 0이 아닌 심볼만을 카운트하여 출력하는 카운터로 구성됨을 특징으로 하는 양자화 번호 결정을 위한 양자화 계수 카운트장치.A quantization interval determination unit for determining a quantization interval based on a table obtained by receiving a quantization number, a class number, and an area number; A comparison unit which receives a quantization interval and a DCT coefficient output from the quantization interval determination unit, compares the quantization interval with a DCT coefficient, and outputs a comparison result; And a counter receiving the comparison result of the comparison unit and counting only non-zero symbols and outputting the counted value. 제1항에 있어서, 비교부는 양자화 간격보다 이산여현변환 계수가 작으면 1을, 반면에 양자화 간격이 이산여현변환 계수보다 작거나 같으면 0을 출력하는 것을 특징으로 하는 양자화 번호 결정을 위한 양자화 계수 카운트장치.The apparatus of claim 1, wherein the comparison unit outputs 1 when the DCT coefficient is smaller than the quantization interval, and outputs 0 when the DCT coefficient is less than or equal to the discrete cosine transform coefficient. Device.
KR1019960042341A 1996-09-25 1996-09-25 A quantizing coefficient count apparatus for decision of quantizing number KR100225348B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960042341A KR100225348B1 (en) 1996-09-25 1996-09-25 A quantizing coefficient count apparatus for decision of quantizing number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960042341A KR100225348B1 (en) 1996-09-25 1996-09-25 A quantizing coefficient count apparatus for decision of quantizing number

Publications (2)

Publication Number Publication Date
KR19980022998A KR19980022998A (en) 1998-07-06
KR100225348B1 true KR100225348B1 (en) 1999-10-15

Family

ID=19475286

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960042341A KR100225348B1 (en) 1996-09-25 1996-09-25 A quantizing coefficient count apparatus for decision of quantizing number

Country Status (1)

Country Link
KR (1) KR100225348B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100961760B1 (en) * 2002-08-13 2010-06-07 퀄컴 인코포레이티드 Motion Estimation Method and Apparatus Which Refer to Discret Cosine Transform Coefficients

Also Published As

Publication number Publication date
KR19980022998A (en) 1998-07-06

Similar Documents

Publication Publication Date Title
JP5524072B2 (en) Video encoding device
CN1146229C (en) Quantization circuitry as for video signal compression systems
EP1074148B1 (en) Moving pictures encoding with constant overall bit rate
US8509556B2 (en) Image coding apparatus and image coding method to generate a targeted amount of code
KR0150955B1 (en) Compressive and extensive method of an image for bit-fixing and the apparatus thereof
EP0677969B1 (en) Moving picture coding method and an apparatus therefor
KR100756596B1 (en) Video data encoder and video data encoding method
US5719632A (en) Motion video compression system with buffer empty/fill look-ahead bit allocation
EP0689360A2 (en) Variable transfer rate video coding apparatus
JPH10243399A (en) Code amount controller and moving image encoder provided with the same
KR960042669A (en) Quantum Number Determination Unit of Imaging System
JPH10191343A (en) Device and method for compressing video data
KR100225348B1 (en) A quantizing coefficient count apparatus for decision of quantizing number
JP3681828B2 (en) Code amount control method and apparatus for image data
US6657576B2 (en) Quantization unit setting apparatus, quantization unit setting method, coding apparatus, coding method, and information record medium
EP0758513B1 (en) Device and method for coding video pictures
KR100231591B1 (en) The quantizing number decision method and device of the digital video signal
EP1629675A2 (en) Fixed bit rate, intraframe compression and decompression of video
KR100231592B1 (en) The quantizing number decision method and apparatus
JP2931328B2 (en) Image signal compression coding device
KR100202391B1 (en) Device for determining quantized step size
KR100232307B1 (en) Method for determining segment unit quantization number of digital image
JPH04343578A (en) Image compressing/coding device
KR19980038608A (en) Method and apparatus for determining quantization number of digital image
JPH05300379A (en) Code quantity distribution circuit

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee