KR0147617B1 - Decoder for inverse scan and run length code using memory address of dct - Google Patents

Decoder for inverse scan and run length code using memory address of dct

Info

Publication number
KR0147617B1
KR0147617B1 KR1019950000950A KR19950000950A KR0147617B1 KR 0147617 B1 KR0147617 B1 KR 0147617B1 KR 1019950000950 A KR1019950000950 A KR 1019950000950A KR 19950000950 A KR19950000950 A KR 19950000950A KR 0147617 B1 KR0147617 B1 KR 0147617B1
Authority
KR
South Korea
Prior art keywords
output
scan
quantization
run
address
Prior art date
Application number
KR1019950000950A
Other languages
Korean (ko)
Other versions
KR960030707A (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 KR1019950000950A priority Critical patent/KR0147617B1/en
Publication of KR960030707A publication Critical patent/KR960030707A/en
Application granted granted Critical
Publication of KR0147617B1 publication Critical patent/KR0147617B1/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/129Scanning of coding units, e.g. zig-zag scan of transform coefficients or flexible macroblock ordering [FMO]
    • 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/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/48Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using compressed domain processing techniques other than decoding, e.g. modification of transform coefficients, variable length coding [VLC] data or run-length data
    • 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/625Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]

Abstract

본 발명은 역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치를 공개한다. 그 장치는 동화상 부호화장치에서 런신호, 부호신호 및 계수값을 입력하여 이산코사인변환(이하 DCT)계수를 출력하는 역양자화부에서, 런신호를 입력후 축적하여 축적된 수만큼 어드레스를 증가하도록 하는 제1제어신호를 발생하는 어드레스제어수단과, 동화상 부호화장치에서 DCT계수들이 스캔되는 순서의 역순으로 어드레스들을 저장하고, 제1제어신호에 제어되어 저장된 순서대로 어드레스를 출력하는 스캔 테이블수단과, 스캔 테이블수단의 출력에 제어되어 양자화메트릭스 값들을 출력하는 양자화테이블수단과, 부호신호 및 계수값과 양자화메트릭스 값을 입력하여 DCT계수들을 복호화하는 계수복호수단과, DCT블럭의 계수들을 출력하고, 런-길이 복호를 수행하기 위해, 입력전에 소정의 수로 패딩(Padding)되어 있고 스캔 테이블수단의 출력에 제어되어 계수복호수단의 출력을 저장하는 출력버퍼수단을 구비하는 것을 특징으로 하고, 스캔 테이블부에 어드레스가 역으로 저장되어 있기 때문에 이 어드레스를 읽어서 양자화 테이블부로 출력함에 의하여 자동적으로 역 스캔 과정이 이루어지도록 하고, 런-길이 복호화를 위한 별도의 회로가 필요없이 어드레스 제어부에서 출력버퍼의 입력을 조절하여 런-길이 복호를 수행하는 효과가 있다.The present invention discloses an inverse scan and run-length decoding apparatus using memory addressing of an inverse quantization unit. In the inverse quantization unit which inputs a run signal, a code signal and a coefficient value and outputs a discrete cosine transform (hereinafter, referred to as DCT) coefficient in the moving picture encoding apparatus, the device accumulates and stores the run signal and increases the address by the accumulated number. Address control means for generating a first control signal, scan table means for storing the addresses in the reverse order of the DCT coefficients being scanned in the video encoding apparatus, and outputting the addresses in the order controlled and stored in the first control signal, and scanning A quantization table means for controlling the output of the table means to output quantization matrix values, coefficient decoding means for inputting a code signal, a coefficient value and a quantization matrix value to decode DCT coefficients, outputting coefficients of the DCT block, and In order to perform length decoding, padding is carried out by a predetermined number before input and control of the output of the scan table means. And an output buffer means for storing the output of the coefficient coefficient decoding means. Since the address is stored in the scan table portion inversely, the reverse scanning process is automatically performed by reading the address and outputting the address to the quantization table portion. In addition, there is an effect of performing run-length decoding by adjusting the input of the output buffer in the address controller without the need for a separate circuit for run-length decoding.

Description

역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치Reverse scan and run-length decoder using memory addressing of inverse quantizer

제1a도는 하나의 역스캔 방식에서 역스캔 테이블을 나타내는 표이다FIG. 1A is a table showing a reverse scan table in one reverse scan method. FIG.

제1b도는 다른 하나의 역스캔 방식에서 역스캔 테이블을 나타내는 표이다1B is a table showing a reverse scan table in another reverse scan scheme.

제2도는 본 발명에 의한 역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치를 설명하기 위한 블럭도이다2 is a block diagram illustrating an inverse scan and run-length decoding apparatus using memory addressing of an inverse quantization unit according to the present invention.

제3도는 제2도에 도시된 복호장치를 세부적으로 설명하기 위한 본 발명에 의한 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호의 블럭도이다3 is a block diagram of inverse scan and run-length decoding using memory addressing according to the present invention for explaining the decoding apparatus shown in FIG. 2 in detail.

제4a도는 제3도에 도시된 제1스캔 테이블부에 저장되는 스캔 테이블을 나타내는 표이다FIG. 4A is a table showing a scan table stored in the first scan table unit shown in FIG.

제4b도는 제3도에 도시된 제2스캔 테이블부에 저장되는 스캔 테이블을 나타내는 표이다FIG. 4B is a table showing a scan table stored in the second scan table portion shown in FIG.

제5도는 본 발명에 의한 역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치의 바람직한 일실시예를 설명하기 위한 회로도이다5 is a circuit diagram for explaining a preferred embodiment of the inverse scan and run-length decoding apparatus using the memory addressing of the inverse quantization unit according to the present invention.

본 발명은 동화상 복호화장치에 관한 것으로, 특히 그 장치에서 역양자화부의 메모리 어드레싱을 이용하여 역 스캔(Inverse Scan) 및 런-길이-복호화(RLD:Run-Length-Decoding)를 수행하는 장치에 관한 것이다.The present invention relates to a video decoding apparatus, and more particularly, to an apparatus for performing inverse scan and run-length-decoding (RLD) using memory addressing of an inverse quantization unit in the apparatus. .

동화상 전문가 그룹(MPEG:Moving Picture Expert Group)2의 비디오 국제표준안은 1994년 4월에 발표된 동화상 압축 및 복원에 관한 규격으로서, 여러 회사에서 규격의 실제적 구현을 위해 노력하고 있다. 디지틀 영상 신호의 압축은 디지틀 영상데이타의 전송 및 디지탈 영상 기억 장치등의 여러 응용분야에서 그 수요가 늘어나고 있다.Moving Picture Expert Group (MPEG) 2, the international standard for video compression, was released in April 1994. It is a specification for moving picture compression and decompression, and several companies are working to make it possible. Digital video signal compression is increasing in many applications such as digital image data transmission and digital image storage.

영상정보의 부호화시에 영상정보는 8 × 8 이산코사인변환(DCT:Discret Cosine Tranform 이하 DCT)되고, 양자화부에서 압축된 후 지그재그(Zig-Zag) 방식으로 읽혀져(스캔) 2차원의 신호가 1차원로 변환된다. 지그재그 방식으로 읽혀진 결과, 영상정보는 주파수크기별로 배열되므로서, 고주파 성분이 거의 '0'으로 되며, 따라서, 연속되는 '0'의 갯수를 나타내는 런신호와 계수값(Level)으로 부호화되는 런-길이 부호기의 압축 효과를 높이게 된다.When encoding image information, the image information is 8 × 8 Discrete Cosine Tranform (DCT: DCT), compressed by the quantization unit, and then read in a Zig-Zag method (scan). Are converted to dimensions. As a result of being read in a zigzag manner, the image information is arranged by frequency size, so that the high frequency component is almost '0', and thus the run signal and the value encoded by the run value indicating the number of consecutive '0's are encoded. This increases the compression effect of the length encoder.

본 발명의 목적은 복호부에 입력된 런신호를 이용하여 메모리에 저장된 양자화 행렬값들을 어드레싱하여 역 스캔 및 런-길이-복호화의 기능을 수행하는 역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치를 제공하는데 있다.It is an object of the present invention to perform inverse scan and run-length using memory addressing of an inverse quantizer to perform inverse scan and run-length-decoding functions by addressing quantization matrix values stored in a memory using a run signal input to a decoder. It is to provide a decoding device.

상기 목적을 달성하기 위하여 본 발명에 의한 역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치는 동화상 부호화장치에서 런신호, 부호신호 및 계수값을 입력하여 이산코사인변환계수를 출력하는 역양자화부에서, 상기 런신호를 입력후 축적하여 축적된 수만큼 어드레스를 증가하도록 하는 제1제어신호를 발생하는 어드레스제어수단과, 상기 동화상 부호화장치에서 상기 이산코사인변환계수들이 스캔되는 순서의 역순으로 상기 어드레스들을 저장하고, 제1제어신호에 제어되어 저장된 순서대로 어드레스를 출력하는 스캔 테이블수단과, 상기 스캔 테이블수단의 출력에 제어되어 양자화메트릭스 값들을 출력하는 양자화테이블수단과, 상기 부호신호 및 상기 계수값과 상기 양자화메트릭스 값을 입력하여 이산코사인변환계수들을 복호화하는 계수복호수단과, 상기 이산코사인변환블럭의 계수들을 출력하고, 런-길이 복호화를 수행하기 위해, 입력전에 소정의 수로 패딩(Padding)되어 있고 상기 스캔 테이블수단의 출력에 제어되어 상기 계수복호수단의 출력을 저장하는 출력버퍼수단을 구비하는 것을 특징으로 한다.In order to achieve the above object, an inverse scan and run-length decoder using memory addressing of an inverse quantizer according to the present invention inputs a run signal, a code signal, and a coefficient value in a moving picture encoding apparatus to output a discrete cosine transform coefficient. And address control means for generating a first control signal for accumulating and storing the run signal after inputting the run signal, and in the reverse order of scanning the discrete cosine transform coefficients in the video encoding apparatus. Scan table means for storing addresses and outputting addresses in an order stored and controlled by a first control signal, quantization table means controlled at the output of the scan table means for outputting quantization metrics values, the code signal and the coefficients Discrete cosine transform coefficients by inputting a value and the quantization matrix Coefficient decoding means for outputting the coefficients of the discrete cosine transform block and outputting the coefficients of the discrete cosine transform block and padding with a predetermined number before input and controlling the coefficient decoding by controlling the output of the scan table means. And output buffer means for storing the output of the means.

제1a도는 하나의 역스캔 방식에서 역스캔 테이블을 나타내는 표이다FIG. 1A is a table showing a reverse scan table in one reverse scan method. FIG.

제1b도는 다른 하나의 역스캔 방식에서 역스캔 테이블을 나타내는 표이다1B is a table showing a reverse scan table in another reverse scan scheme.

제2도는 본 발명에 의한 역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치를 설명하기 위한 블럭도로서, 계수복호부(200), 어드레스 제어부(202), 스캔 테이블부(204), 양자화 테이블부(206) 및 출력버퍼(208)로 구성된다.2 is a block diagram illustrating an inverse scan and run-length decoding apparatus using memory addressing of the inverse quantization unit according to the present invention, and includes a coefficient decoding unit 200, an address control unit 202, a scan table unit 204, It consists of a quantization table section 206 and an output buffer 208.

제3도는 제2도에 도시된 복호장치를 세부적으로 설명하기 위한 본 발명에 의한 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치의 블럭도로서, 계수복호부(200), 어드레스 제어부(202), 출력버퍼(208), 스캔 테이블부(204)를 구성하는 제1스캔 테이블부(400)와 제2스캔 테이블부(402)와 제1선택부(404), 및 양자화 테이블부(206)를 구성하는 제1양자화 테이블부(406)와 제2양자화 테이블부(408)와 제2선택부(410)로 구성된다.3 is a block diagram of an inverse scan and run-length decoding apparatus using memory addressing according to the present invention for explaining the decoding apparatus shown in FIG. 2 in detail, and includes a coefficient decoding unit 200 and an address control unit 202. The first scan table 400, the second scan table 402, the first selector 404, and the quantization table 206 constituting the output buffer 208, the scan table 204. The first quantization table unit 406, the second quantization table unit 408, and the second selection unit 410 are configured.

제4a도는 제3도에 도시된 제1스캔 테이블부(400)에 저장되는 스캔 테이블을 나타내는 표이다.4A is a table illustrating a scan table stored in the first scan table 400 shown in FIG. 3.

제4b도는 제3도에 도시된 제2스캔 테이블부(402)에 저장되는 스캔 테이블을 나타내는 표이다.FIG. 4B is a table showing a scan table stored in the second scan table portion 402 shown in FIG.

이하, 본 발명에 의한 역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치의 동작을 도면 제1a-1b도, 제2, 제3 및 제4a-4b도를 참조하여 다음과 같이 상세히 설명한다.Hereinafter, operations of the inverse scan and run-length decoding apparatus using the memory addressing of the inverse quantization unit according to the present invention will be described in detail with reference to FIGS. 1A-1B, 2, 3, and 4A-4B. do.

제2도에 도시된 스캔 테이블부(204)는 어드레스 제어부(202)에서 발생되는 제1제어신호에 제어되어 출력되는 제1스캔 방식에 해당하는 어드레스를 저장하는 제1스캔 테이블부(400)와, 마찬가지로 제1제어신호에 제어되어 출력되는 제2스캔 방식에 해당하는 어드레스를 저장하는 제2 스캔 테이블부(402)와, 입력단자 IN3을 통해 입력되는 제2제어신호에 제어되어 제1 또는 제2스캔 테이블부들(400 및 402)에 저장된 어드레스의 값들을 선택하여 출력하는 제1선택부(404)로 구성되고, 양자화테이블부(206)는 입력단자 IN5를 통해 입력되는 제3제어신호에 제어되어 입력단자 IN4를 통해 동화상 부호화장치로부터 양자화 메트릭스를 입력하고, 저장후 제1선택부(404)의 출력에 제어되어 양자화메트릭스를 제2선택부(410)로 출력하는 제1양자화테이블부(406)와, 제1선택부(404)의 출력에 제어되어 내부적으로 미리 저장된 양자화 메트릭스를 제2선택부(410)로 출력하는 제2양자화테이블부(408)와, 입력단자 IN6을 통해 입력되는 제4제어신호에 제어되어 제1 또는 제2양자화 테이블부들(406 및 408)에 저장된 양자화메트릭스들을 선택하여 계수복호부(200)로 출력하는 제2선택부(410)로 구성된다.The scan table unit 204 shown in FIG. 2 includes a first scan table unit 400 for storing an address corresponding to a first scan method controlled and output by a first control signal generated by the address controller 202. Similarly, the second scan table unit 402 for storing an address corresponding to the second scan method controlled and output to the first control signal and the second control signal input through the input terminal IN3 are controlled to be the first or the second. The first selection unit 404 selects and outputs values of addresses stored in the two scan table units 400 and 402, and the quantization table unit 206 controls the third control signal input through the input terminal IN5. The first quantization table unit 406 for inputting the quantization matrix from the moving picture encoding apparatus through the input terminal IN4, and storing and controlling the output of the first selection unit 404 to output the quantization matrix to the second selection unit 410. ) And the first selector 404 A second quantization table unit 408 which is controlled by an output and outputs a quantization matrix internally stored in advance to the second selection unit 410, and is controlled by a fourth control signal input through the input terminal IN6, thereby controlling the first or second The second selector 410 selects and outputs the quantization matrices stored in the quantization table units 406 and 408 to the coefficient decoding unit 200.

동화상 부호화장치에서 지그재그 방식으로 읽혀진 신호는 복호부에서 제1a도 및 제1b도와 같은 순서로 읽혀짐(역 스캔)으로서, 지그재그방식의 행렬을 8 × 8의 원래의 신호배열로 바꿀 수 있다.The signals read in the video encoding apparatus in a zigzag manner are read in the same order as those in FIGS. 1a and 1b by the decoder (inverse scan), so that the zigzag matrix can be replaced with the original 8 × 8 signal array.

제2도에 도시된 계수복호부(200)는 입력단자 IN1을 통해 입력한 12비트의 부호화 값을 이용해 DCT블럭의 에이시(이하 AC) 및 디시(이하 DC)계수값에 대한 복호를 수행하여 복호된 계수값을 출력한다.The coefficient decoding unit 200 shown in FIG. 2 decodes the AC (hereinafter referred to as AC) and DC (hereinafter referred to as DC) coefficient values of the DCT block by using the 12-bit encoded value input through the input terminal IN1. Output the count value.

제2 및 제3도에 도시된 어드레스 제어부(202)는 입력단자 IN2를 통해 입력한 연속되는 '0'의 갯수를 나타내는 런 길이 만큼을 축적하여 제1제어신호를 발생한다. 여기서 제1 및 제2스캔 테이블부부(400 및 402)에 저장되는 어드레스값들은 부호부에서 스캔되는 계수에 해당하는 어드레스와 반대의 순서로 저장되고, 이로써 저장된 어드레스들은 제1제어신호에 의해 제어되어 양자화테이블부(206)로 출력함으로서 자동적으로 역스캔이 수행된다. 역 스캔 및 런-길이 복호기의 기능을 수행하기 위해 스캔 테이블부(204)를 구성하는 제3도에 도시된 제1 및 제2스캔 테이블부(400 및 402)는 롬(ROM)으로 구현되어 제1스캔 테이블부(400)에는 제4a도에 도시된 바와 같은 순서로 하나의 스캔 방식에서의 스캔 테이블의 각 어드레스에 해당하는 값을 저장하고, 제2스캔 테이블부(402)에는 제4b도에 도시된 바와 같은 순서로 다른 하나의 스캔 방식에서의 스캔 테이블의 각 어드레스에 해당하는 값을 저장하고 있으며, 입력단자 IN3으로 입력되는 제2제어신호에 제어되어 제1선택부(404)에서 그 출력중에서 하나가 선택되어 제1 및 제2양자화 테이블부(406 및 408)로 입력된다.The address control unit 202 shown in FIGS. 2 and 3 accumulates as many run lengths as the number of consecutive '0' input through the input terminal IN2 and generates the first control signal. In this case, the address values stored in the first and second scan table units 400 and 402 are stored in the reverse order of the addresses corresponding to the coefficients scanned by the code unit, and the stored addresses are controlled by the first control signal. The reverse scan is automatically performed by outputting to the quantization table unit 206. The first and second scan table portions 400 and 402 shown in FIG. 3 constituting the scan table portion 204 to perform the functions of the reverse scan and the run-length decoder are implemented in ROM. The first scan table 400 stores the values corresponding to each address of the scan table in one scan method in the order as shown in FIG. 4a, and the second scan table 402 in FIG. 4b. A value corresponding to each address of the scan table in another scan method is stored in the order as shown in the figure, and is controlled by a second control signal input to the input terminal IN3 and outputted from the first selector 404. One is selected and input to the first and second quantization table units 406 and 408.

IS(International Standard)13818-2에서는, 제1양자화테이블부(406)에 전송되는 어드레스는 항상 제4a도에 도시된 스캔 방식이다.In the International Standard (IS) 13618-2, the address transmitted to the first quantization table section 406 is always the scan method shown in FIG. 4A.

제1선택부(404)에서 출력되는 신호는 제1 및 제2양자화테이블부들(406 및 408)이 저장하고 있는 양자화메트릭스를 출력하도록 제어한다.The signal output from the first selector 404 controls the first and second quantization table units 406 and 408 to output the quantization matrix stored therein.

한편, 램(RAM)으로 구현될 수 있는 출력버퍼(208)는 입력을 받아들이기 전에 메모리를 '0'의 값으로 패딩(Padding)하고, 상기 스캔 테이블부(204)에 제1선택부(404)의 출력에 응답하여 계수복호부(200)의 출력을 입력하여 런-길이 복호화를 수행한다. 런-길이 복호화를 수행한 후에 출력버퍼(208)는 DCT블럭의 계수들을 출력한다.On the other hand, the output buffer 208, which may be implemented as RAM, pads the memory to a value of '0' before accepting an input, and firstly selects the first selection unit 404 in the scan table unit 204. In response to the output of n), the output of the coefficient decoding unit 200 is input to perform run-length decoding. After performing run-length decoding, the output buffer 208 outputs the coefficients of the DCT block.

상기의 런-길이 복호화의 수행과정을 다음과 같이 상세히 설명한다.The process of performing run-length decoding will be described in detail as follows.

연속되는 '0'의 갯수를 나타내는 런 만큼은 '0'을 출력버퍼(208)에 입력해야 하지만 미리 '0'의 값이 패딩되어 있기 때문에 '0'을 입력할 필요가 없고, 계수복호부(200)로부터 AC 및 DC계수값이 입력될 경우는, 제1 및 제2양자화테이블부들(406 및 408)의 출력을 제어하는 제1선택부(404)로부터 출력되는 신호를 런신호에서 축적된 어드레스만큼 '0'으로 채워넣어 주도록 설계된 출력버퍼(208)의 입력제어신호로 사용하여, 그 계수값들을 출력버퍼(208)에서 임시 저장함으로서, 런-길이 복호화가 자동적으로 메모리 어드레싱을 이용하여 수행됨을 알 수 있다.'0' should be input to the output buffer 208 for as many runs as the number of consecutive '0's, but since' 0 'is padded in advance, it is not necessary to input' 0 'and the coefficient decoding unit 200 When the AC and DC coefficient values are inputted, the signal output from the first selector 404 for controlling the output of the first and second quantization table parts 406 and 408 is increased by the address accumulated in the run signal. By using the input control signal of the output buffer 208, which is designed to fill it with '0', and temporarily storing the coefficient values in the output buffer 208, it can be seen that run-length decoding is automatically performed using memory addressing. Can be.

제5도는 본 발명에 의한 역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치의 바람직한 일실시예를 설명하기 위한 회로도로서, 디코더(600), 어드레스 선택부(602), 제1롬(ROM)(604), 제1램(RAM)(606), 제2롬(608), 제3롬(610), 멀티플렉서(612) 및 제2램(614)으로 구성된다.5 is a circuit diagram illustrating a preferred embodiment of an inverse scan and run-length decoding apparatus using memory addressing of the inverse quantization unit according to the present invention, and includes a decoder 600, an address selector 602, and a first ROM ( ROM) 604, a first RAM 606, a second ROM 608, a third ROM 610, a multiplexer 612, and a second RAM 614.

이하, 본 발명에 의한 역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치의 바람직한 일실시예의 동작을 도면 제5도를 참조하여 다음과 같이 설명한다.Hereinafter, an operation of a preferred embodiment of the inverse scan and run-length decoding apparatus using the memory addressing of the inverse quantization unit according to the present invention will be described with reference to FIG.

동화상부호화장치로부터 계수값, 런신호, 부호신호를 각각 입력하여 이산코사인변환계수를 출력하는 역양자화부에서, 제5도에 도시된 입력단자 IN2를 통해서 런(RUN)신호를 입력후 축적하여 축적된 수만큼 어드레스를 증가하도록 하는 제1제어신호를 발생하는 어드레스 선택부(602)와, 동화상부호화장치에서 상기 이산코사인변환계수를 스캔하는 순서에 반대되는 순서로 상기 어드레스를 저장하고, 상기 제1제어신호에 응답하여 어드레스를 출력하는 제1롬(604)과, 양자화메트릭스를 입력단자 IN5를 통해 입력되는 제2제어신호에 응답하여 입력단자 IN4를 통해 동화상부호화장치로부터 입력하고, 제1롬(604)의 출력에 응답하여 출력하는 제1램(606)과, 양자화메트릭스를 내부적으로 저장하고, 제1롬(604)의 출력에 응답하여 출력하는 제2롬(608)과, 일정한 양자화메트릭스값인 16을 저장하는 제3롬(610)과, 제3롬(610), 제2롬(608) 또는 제1램(606)에 각각 저장된 양자화메트릭스들을 입력후 제5도에 도시된 입력단자 IN6을 통해서 입력되는 제3제어신호에 응답하여 선택하여 출력하는 멀티플렉서(612)와, 제5도에 도시된 입력단자 IN1으로 입력되는 계수값, 부호신호 및 멀티플렉서(612)의 출력을 입력하여 이산코사인변환계수를 복호화하는 디코더(600)와, 런-길이 복호화를 수행하기 위하여, 내부적으로 소정의 수로 패딩(Padding)되어 있고 제1롬(604)의 출력에 응답하여 디코더(600)의 출력을 입력하여 이산코사인변환계수들을 출력하는 제2램(614)으로 구성되어 있다.In the inverse quantizer which inputs the coefficient value, the run signal, and the code signal from the moving picture encoding apparatus, respectively, and outputs a discrete cosine transform coefficient, the run signal is input and accumulated through the input terminal IN2 shown in FIG. An address selector 602 for generating a first control signal for increasing the number of addresses by a predetermined number; and storing the address in an order opposite to the order of scanning the discrete cosine transform coefficients in a moving picture encoding apparatus, The first ROM 604 outputs an address in response to the control signal, and the quantization matrix is input from the video encoding apparatus through the input terminal IN4 in response to the second control signal input through the input terminal IN5. The first RAM 606 outputs in response to the output of the 604, the second ROM 608 internally stores the quantization matrix and outputs in response to the output of the first ROM 604, and the constant quantization. The input shown in FIG. 5 after inputting the quantization metrics stored in the third ROM 610 and the third ROM 610, the second ROM 608, or the first RAM 606, respectively, storing the 16 value. A multiplexer 612 which selects and outputs in response to the third control signal input through the terminal IN6, and inputs a coefficient value, a code signal, and an output of the multiplexer 612, which are input to the input terminal IN1 shown in FIG. Decoder 600 for decoding the discrete cosine transform coefficients, and padding with a predetermined number internally to perform run-length decoding and outputting the decoder 600 in response to the output of the first ROM 604. And a second RAM 614 for outputting the discrete cosine transform coefficients.

제1롬(604)은 동화상 부호장치에서 이산코사인변환계수를 스캔하는 제1스캔방식과 반대되는 순서로 스캔 테이블을 저장하는 제1스캔롬과, 동화상 부호장치에서 이산코사인변환계수를 수캔하는 제2스캔방식과 반대되는 순서로 스캔 테이블을 저장하는 제2스캔롬과, 제1 및 제2스캔롬들의 출력을 입력하여 입력단자 IN3으로 입력되는 제4제어신호에 제어되어 선택하여 출력하는 선택수단으로 구성되어 있다.The first ROM 604 includes a first scan ROM storing scan tables in an order opposite to the first scan method of scanning a discrete cosine transform coefficient in a moving picture encoding apparatus, and a first scan ROM storing a discrete cosine transform coefficient in a moving picture encoding apparatus. Selection means for controlling and selecting and outputting the second scan ROM storing the scan table in the reverse order of the two scan method, and the fourth control signal inputted to the input terminal IN3 by inputting the outputs of the first and second scan ROMs; It consists of.

한편, 제5도에 도시된 어드레스 선택부(602)는 입력단자 IN2를 통해서 이.오.비.(E.O.B. :End Of Block)신호가 입력되면 런-신호를 입력하는 것을 종료한다.On the other hand, the address selector 602 shown in FIG. 5 terminates the input of the run signal when the E.O.B.:End Of Block signal is input through the input terminal IN2.

제5도에 도시된 입력단자 IN6을 통해 입력되는 제3제어신호가 멀티플렉서(612)를 제어하는 방법은 다음과 같다.A third control signal input through the input terminal IN6 shown in FIG. 5 controls the multiplexer 612 as follows.

제3제어신호는 인트라(Intra)-양자화메트릭스 부하신호인 제1신호와, 논-인트라(Non-Intra)-양자화메트릭스 부하신호인 제2신호와 및 매크로 블럭인트라 부하신호인 제3신호로 이루어져 있다.The third control signal includes a first signal that is an intra-quantization matrix load signal, a second signal that is a non-intra-quantization matrix load signal, and a third signal that is a macro block intra load signal. have.

상기 제3제어신호중 제1, 제2 및 제3신호가 저레벨인 경우에는, 일정한 양자화메트릭스값인 16이 저장되어 있는 제3롬(610)의 양자화메트릭스가 멀티플렉서(612)를 통해서 디코더(600)로 출력되고, 상기 제3제어신호중 제1 및 제2신호가 저레벨이고, 제3신호가 고레벨인 경우에는 제2롬(608)에 디폴트(Default)로 저장된 양자화메트릭스가 멀티플렉서(612)를 통해서 디코더(600)로 출력된다.When the first, second and third signals of the third control signal are at a low level, the quantization matrix of the third ROM 610 in which the constant quantization matrix value 16 is stored is decoded by the multiplexer 612. When the first and second signals of the third control signal is low level and the third signal is high level, the quantization matrix stored in the second ROM 608 as a default is decoded through the multiplexer 612. Is outputted at 600.

런신호와 제1롬(604)의 출력신호의 조합에 따른 순서로 제3제어신호가 발생되어 동화상 부호화장치에서 보내진 양자화메트릭스가 멀티플렉서(612)를 통해서 디코더(600)로 전송된다.The third control signal is generated in the order according to the combination of the run signal and the output signal of the first ROM 604, and the quantization matrixes sent from the moving picture encoding apparatus are transmitted to the decoder 600 through the multiplexer 612.

이상에서 살펴본 바와 같이 스캔 테이블부(204)에 어드레스가 역으로 저장되어 있기 때문에 이 어드레스를 읽어서 양자화 테이블부로 출력함에 의하여 자동적으로 역 스캔 과정이 이루어지도록 하고, 런-길이 복호화를 위한 별도의 회로가 필요없이 어드레스 제어부(202)에서 출력버퍼(208)의 입력을 조절하여 계수복호부(208 또는 디코더)로부터 입력되는 복호화된 계수를 입력하는 것만으로 런-길이 복호화를 수행하는 효과가 있다.As described above, since the address is stored in the scan table 204 in reverse, the reverse scan process is automatically performed by reading the address and outputting the address to the quantization table, and a separate circuit for run-length decoding is provided. There is an effect of performing run-length decoding by simply inputting the decoded coefficients input from the coefficient decoding unit 208 by adjusting the input of the output buffer 208 in the address control unit 202 without the need.

Claims (5)

동화상 부호화장치에서 런신호, 부호신호 및 계수값을 입력하여 이산코사인변환계수를 출력하는 역양자화부에서, 상기 런신호를 입력후 축적하여 축적된 수만큼 어드레스를 증가하도록 하는 제1제어신호를 발생하는 어드레스제어수단과, 상기 동화상 부호화장치에서 상기 이산코사인변환계수들이 스캔되는 순서의 역순으로 상기 어드레스들을 저장하고, 제1제어신호에 제어되어 저장된 순서대로 어드레스를 출력하는 스캔 테이블수단과, 상기 스캔 테이블수단의 출력에 제어되어 양자화메트릭스 값들을 출력하는 양자화테이블수단과, 상기 부호신호 및 상기 계수값과 상기 양자화메트릭스 값을 입력하여 이산코사인변환계수들을 복호화하는 계수복호수단과, 상기 이산코사인변환블럭의 계수들을 출력하고, 런-길이 복호화를 수행하기 위해, 입력전에 소정의 수로 패딩(Padding)되어 있고 상기 스캔 테이블수단의 출력에 제어되어 상기 계수복호수단의 출력을 저장하는 출력버퍼수단을 구비하는 것을 특징으로 하는 역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치.The inverse quantizer which inputs a run signal, a code signal, and a coefficient value to output a discrete cosine transform coefficient in a moving picture encoding apparatus, generates a first control signal for increasing the address by the accumulated number after inputting the run signal. An address control means for storing the address in reverse order of scanning of the discrete cosine transform coefficients in the moving picture encoding apparatus, and scan table means for outputting the addresses in an order stored and controlled by a first control signal; Quantization table means for controlling the output of the table means and outputting quantization matrix values, coefficient decoding means for inputting the code signal, the coefficient value and the quantization matrix value to decode discrete cosine transform coefficients, and the discrete cosine transform block Before input to output coefficients of and perform run-length decoding. And an output buffer means padded by a predetermined number at a predetermined number and controlled by an output of the scan table means to store an output of the coefficient decoding means. Length decoder. 제1항에 있어서, 상기 스캔 테이블수단은 상기 제1제어신호에 제어되어 출력되는 제1스캔 방식에 해당하는 어드레스를 저장하는 제1스캔 테이블수단; 상기 제1제어신호에 제어되어 출력되는 제2스캔 방식에 해당하는 어드레스를 저장하는 제2스캔 테이블수단; 제2제어신호에 제어되어 상기 제1 또는 제2스캔 테이블수단에 저장된 어드레스의 값들을 선택하여 출력하는 제1선택수단을 구비하는 것을 특징으로 하는 역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치.2. The apparatus of claim 1, wherein the scan table means comprises: first scan table means for storing an address corresponding to a first scan method controlled and output to the first control signal; Second scan table means for storing an address corresponding to a second scan method controlled and output by the first control signal; And a first selecting means controlled by a second control signal to select and output values of addresses stored in the first or second scan table means. The reverse scan and the run-length using the memory addressing of the inverse quantization unit. Decryptor. 제1항 또는 제2항에 있어서, 상기 양자화테이블수단은 제3제어신호에 제어되어 상기 동화상 부호화장치로부터 양자화메트릭스를 입력하고, 저장후 상기 제1선택수단의 출력에 제어되어 상기 양자화메트릭스를 출력하는 제1양자화테이블수단; 상기 제1선택수단의 출력에 제어되어 내부적으로 미리 저장된 양자화메트릭스를 출력하는 제2양자화테이블수단; 제4제어신호에 제어되어 상기 제1 또는 제2양자화테이블수단에 저장된 양자화메트릭스들을 선택하여 출력하는 제2선택수단을 구비하는 것을 특징으로 하는 역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치.3. The apparatus according to claim 1 or 2, wherein the quantization table means is controlled by a third control signal to input quantization metrics from the video encoding apparatus, and is stored and controlled by an output of the first selection means to output the quantization metrics. First quantization table means; Second quantization table means which is controlled by an output of the first selection means and outputs internally stored quantization metrics; And a second selection means controlled by a fourth control signal to select and output quantization matrices stored in the first or second quantization table means. Inverse scan and run-length decoding using memory addressing of the inverse quantization unit Device. 동화상부호화장치로부터 계수값, 런신호, 부호신호를 각각 입력하여 이산코사인변환계수를 출력하는 역양자화부에서, 상기 런신호를 입력후 축적하여 축적된 수만큼 어드레스를 증가하도록 하는 제1제어신호를 발생하는 어드레스 선택수단; 상기 동화상부호화장치에서 상기 이산코사인변환계수를 스캔하는 순서에 반대되는 순서로 상기 어드레스를 저장하고, 상기 제1제어신호에 응답하여 상기 어드레스를 출력하는 제1롬; 양자화메트릭스를 제2제어신호에 응답하여 상기 동화상부호화장치로부터 입력하고, 상기 제1롬의 출력에 응답하여 출력하는 제1램; 상기 양자화메트릭스를 내부적으로 저장하고, 상기 제1롬의 출력에 응답하여 출력하는 제2롬; 일정한 양자화메트릭스값을 저장하는 제3롬; 상기 제3롬, 상기 제2롬 또는 제1램에 각각 저장된 상기 양자화메트릭스를 입력후 제3제어신호에 응답하여 선택하여 출력하는 멀티플렉서; 상기 계수값, 상기 부호신호 및 상기 멀티플렉서의 출력을 입력하여 상기 이산코사인변환계수를 복호화하는 디코더; 런-길이 복호화를 수행하기 위하여, 내부적으로 소정의 수로 패딩(Padding)되어 있고 상기 제1롬의 출력에 응답하여 상기 디코더의 출력을 입력하여 상기 이산코사인변환계수들을 출력하는 제2램을 구비하는 것을 특징으로 하는 역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치.A dequantizer for inputting a coefficient value, a run signal, and a code signal from a moving picture encoding apparatus, respectively, and outputting a discrete cosine transform coefficient, wherein the first control signal accumulates after the run signal and increases an address by the accumulated number. Generating address selection means; A first ROM storing the address in an order opposite to the order of scanning the discrete cosine transform coefficients in the moving picture encoding apparatus, and outputting the address in response to the first control signal; A first RAM configured to input a quantization matrix from the video encoding apparatus in response to a second control signal and output the quantization matrix in response to an output of the first ROM; A second ROM internally storing the quantization matrix and outputting the quantization matrix in response to an output of the first ROM; A third ROM storing a constant quantization matrix value; A multiplexer configured to select and output the quantization metrics stored in the third ROM, the second ROM, or the first RAM, respectively, in response to a third control signal; A decoder which decodes the discrete cosine transform coefficient by inputting the coefficient value, the code signal and the output of the multiplexer; In order to perform run-length decoding, a second RAM which is padded internally by a predetermined number and inputs the output of the decoder in response to the output of the first ROM to output the discrete cosine transform coefficients. An inverse scan and run-length decoder using memory addressing of the inverse quantization unit. 제4항에 있어서, 상기 제1롬은 상기 동화상 부호장치에서 이산코사인변환계수를 스캔하는 제1방식과 반대되는 순서로 스캔 테이블을 저장하는 제1스캔롬; 상기 동화상 부호장치에서 상기 이산코사인변환계수를 스캔하는 제2방식과 반대되는 스캔 테이블을 저장하는 제2스캔롬; 상기 제1 및 제2스캔롬들의 출력을 입력하여 제4제어신호에 제어되어 선택하여 출력하는 선택수단을 구비하는 것을 특징으로 하는 역양자화부의 메모리 어드레싱을 이용한 역스캔 및 런-길이 복호장치.5. The apparatus of claim 4, wherein the first ROM comprises: a first scan ROM storing scan tables in a reverse order to a first method of scanning a discrete cosine transform coefficient in the video encoding apparatus; A second scan ROM storing a scan table opposite to a second method of scanning the discrete cosine transform coefficients in the video encoding apparatus; And a selection means for inputting the outputs of the first and second scan ROMs to control and select and output the fourth control signal. The reverse scan and run-length decoding apparatuses using the memory addressing of the inverse quantization unit are provided.
KR1019950000950A 1995-01-20 1995-01-20 Decoder for inverse scan and run length code using memory address of dct KR0147617B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950000950A KR0147617B1 (en) 1995-01-20 1995-01-20 Decoder for inverse scan and run length code using memory address of dct

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950000950A KR0147617B1 (en) 1995-01-20 1995-01-20 Decoder for inverse scan and run length code using memory address of dct

Publications (2)

Publication Number Publication Date
KR960030707A KR960030707A (en) 1996-08-17
KR0147617B1 true KR0147617B1 (en) 1998-09-15

Family

ID=19407001

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950000950A KR0147617B1 (en) 1995-01-20 1995-01-20 Decoder for inverse scan and run length code using memory address of dct

Country Status (1)

Country Link
KR (1) KR0147617B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100979057B1 (en) * 2010-05-17 2010-08-30 최희철 Apparatus for collecting fallen leaves

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100979057B1 (en) * 2010-05-17 2010-08-30 최희철 Apparatus for collecting fallen leaves

Also Published As

Publication number Publication date
KR960030707A (en) 1996-08-17

Similar Documents

Publication Publication Date Title
US8422809B2 (en) Image encoding method, image decoding method, image encoding apparatus, image decoding apparatus, image encoding program, and image decoding program
CA2130479C (en) Lower resolution hdtv receivers
JP3069455B2 (en) Quantization and dequantization circuits in image data compression and decompression equipment
EP0778709A1 (en) MPEG-2 decoding with a reduced RAM requisite by ADPCM recompression before storing MPEG decompressed data
EP1925150B1 (en) Image encoding apparatus and image encoding method
JP3814321B2 (en) Quantization parameter determination apparatus and method
JP2008099322A (en) Video signal compression apparatus
KR930018878A (en) Digital image signal transmission device and frame method
JPH0686262A (en) Apparatus for encoding of image
US5838834A (en) Image processing apparatus and method for quantizing image data and quantization errors using single quantizing unit and pluralities of quantization tables
US5694127A (en) Method and apparatus for efficiently generating variable length code data
JP3816204B2 (en) Run-length level encoding / decoding system and method
US5748795A (en) Image decoder using adjustable filtering
JPH07222164A (en) Digital video bit stream coder
KR0147617B1 (en) Decoder for inverse scan and run length code using memory address of dct
EP0808069A2 (en) A Quantizer for video signal encoding system
JPH10271016A (en) Encoder/decoder
JPH0487460A (en) Picture processor
US5654704A (en) Video variable length code encoder with EOB insertion responsive to word length
JP2918360B2 (en) Inverse quantization method and image data restoration device
JP2962537B2 (en) Scanning method and apparatus using energy distribution of two-dimensional data
KR0160616B1 (en) Digital image compressing method and device
JPH0937261A (en) Coding system and coder
KR0148155B1 (en) Esc coding apparatus and method of image coding
JP3937471B2 (en) Encoding device, decoding device, and image processing device

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: 20100429

Year of fee payment: 13

LAPS Lapse due to unpaid annual fee