KR940000680B1 - Picture signal decoding method by using runfield - Google Patents

Picture signal decoding method by using runfield Download PDF

Info

Publication number
KR940000680B1
KR940000680B1 KR1019910022375A KR910022375A KR940000680B1 KR 940000680 B1 KR940000680 B1 KR 940000680B1 KR 1019910022375 A KR1019910022375 A KR 1019910022375A KR 910022375 A KR910022375 A KR 910022375A KR 940000680 B1 KR940000680 B1 KR 940000680B1
Authority
KR
South Korea
Prior art keywords
coefficient
decoding
zero
coefficients
read
Prior art date
Application number
KR1019910022375A
Other languages
Korean (ko)
Other versions
KR930014484A (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 KR1019910022375A priority Critical patent/KR940000680B1/en
Publication of KR930014484A publication Critical patent/KR930014484A/en
Application granted granted Critical
Publication of KR940000680B1 publication Critical patent/KR940000680B1/en

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The method reduces a quantity of data by improving an efficiency of AC coefficient (ACC) and reducing an average length of coded language. The system comprises a CPU (10), a ROM (20), a scan section (30) and a RAM (40). The method involves 10 steps of; step for initializing, step for checking all the ACC, step for reading the run field, step for checking a MSB, step for decoding a coded language, step for outputting an ACC, step for checking a decoding process of nonzero coefficient, step for checking an end of decoding process, step for returnning to the 4th step, and step for outputting the ACC and increasing the frequency one step.

Description

영상신호의 수신 및 재생시 런필드를 이용한 복호화 방식Decoding method using run field when receiving and playing video signal

제1도는 종래의 블럭도.1 is a conventional block diagram.

제2도는 인버스 지그재그 스캐닝 설명도.2 is an inverse zigzag scanning explanatory diagram.

제3도는 본 발명에 따른 블럭도.3 is a block diagram according to the present invention.

제4도는 본 발명에 따른 흐름도.4 is a flow chart according to the present invention.

제5도는 제4도중 0이 아닌 계수의 부호어 리드 흐름도.5 is a codeword read flow diagram of a nonzero coefficient in FIG.

제6도는 제4도중 부호어 복호화 흐름도.6 is a codeword decoding flowchart of FIG.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

10 : CPU 20 : 롬(ROM)10: CPU 20: ROM

30 : 인버스 지그재그 스캔부(Inverse Zigzag Scan Part) 40 : 램(RAM)30: Inverse Zigzag Scan Part 40: RAM

본 발명은 영상신호의 수신 및 재생시 런필드(Runfield)를 이용한 복호화 방식에 관한 것으로, 특히 데이타의 양을 감축할 수 있는 복호화 방식에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a decoding method using runfield when receiving and playing video signals, and more particularly, to a decoding method capable of reducing the amount of data.

수신시에 감축 부호화되어 있는 영상 신호를 재생하기 위하여 부호어에 포함되어 있는 부호어의 길이와 DCT(Discrete Cosine Transform) 계수의 값에 따라 허프만(Huffman) 복호화를 행한 뒤 이러한 주파수영역에서의 계수를 인버스(Inverse) DCT를 이용하여 시간 영역으로 변환한 디지탈 데이타를 아나로그 영상 신호를 복원하는 시스템은 허프만 복호화시의 RLC(Run-Length Coding)를 고려하여야 한다. 즉 부호화 과정에서는 덧붙여진 런렝스가 과다하게 포함되어 가변길이 런필드의 각 비트(bit)상에 표시되어 있으므로 각 비트의 정보에 따라 0인 계수와 0이 아닌 계수를 구분하여 복호화 하여야만 그 양이 감축된 영상 데이타를 복호화할 수 있게 된다.In order to reproduce the video signal that is reduced-coded at the time of reception, Huffman decoding is performed according to the length of the codeword included in the codeword and the value of the Discrete Cosine Transform (DCT) coefficient. A system for reconstructing an analog video signal of digital data converted into a time domain using an inverse DCT should consider RLC (Run-Length Coding) during Huffman decoding. That is, in the encoding process, the added run length is excessively included and displayed on each bit of the variable length run field. Therefore, the amount is reduced only by dividing and decoding the zero coefficient and the nonzero coefficient according to the information of each bit. Image data can be decoded.

제1도는 종래의 RLC 방식에 따른 블럭도이고 제2도는 상기 제1도중 인버스 지그재그 스캐닝부(4)의 설명도이다.FIG. 1 is a block diagram according to a conventional RLC method, and FIG. 2 is an explanatory view of the inverse zigzag scanning unit 4 in the first diagram.

종래의 RLC 방식에서는 수신/재생계를 거쳐 들어온 부호어를 허프만 복호기 (1)에서 복호화하여 런 렝스(Run length)와 카테고리(category)를 구한다. 여기서 런 렝스는 DCT AC계수(DCT계수 64개중 0번은 DC계수이고 1∼63번은 AC계수)가 연속적으로 몇개의 0으로 되어 있는가를 나타내고 카테고리는 0인 AC계수 뒤에 0이 아닌 AC계수가 오는 범위 (계수의 값이 0, ±1, ±2∼±3,…등에 따라 카테고리는 0,1,2,…로 분류한다)를 나타낸다. 런렝스 카운터부(2)에서는 런 렝스의 값에 대응되는 수만큼의 0을 인버스 지그재그 스캔부(4)에 보낸다. 계수 디코딩부(3)에서는 상기 카테고리의 값에 따른 범위 내에서 수신/재생계를 통하여 인가되는 부가어 (Additional bits)와 부호(sign)에 의한 소정의 값을 결정하여 인버스 지그재그 스캔부(4)로 출력한다.In the conventional RLC scheme, the codeword introduced through the reception / reproduction system is decoded by the Huffman decoder 1 to obtain a run length and a category. Here, run length indicates how many DCT AC coefficients (0 of 64 DC coefficients are DC coefficients and 1 to 63 AC coefficients) are consecutively 0, and the category is 0, followed by a non-zero AC coefficient. The categories are classified into 0, 1, 2, ... according to the values of the coefficients 0, ± 1, ± 2 to ± 3, ...). The run length counter unit 2 sends as many zeros as the number corresponding to the run length value to the inverse zigzag scan unit 4. The coefficient decoding unit 3 determines a predetermined value based on additional bits and signs applied through the reception / reproducing system within the range corresponding to the value of the category, and determines the predetermined value by the inverse zigzag scan unit 4. Output

따라서 인버스 지그재그 스캔부(4)에서는 부호화시 런 렝스의 값을 크게 하기 위하여 지그재그 스캐닝이 되어 있는 AC계수를 원래의 위치로 복원하게 된다.Therefore, the inverse zigzag scan unit 4 restores the AC coefficient, which has been zigzag scanned, to the original position in order to increase the run length during encoding.

한편 전술한 바와 같은 복호화 과정은 데이타 압축에 관한 권고안 JPEG에 규정되어 있다.Meanwhile, the decoding process as described above is defined in the recommendation JPEG regarding data compression.

상기한 바와 같은 RLC방식은 각 카테고리에 대하여 0∼15개의 런 렝스에 해당되는 많은 부호어가 필요하게 되는 문제점이 있다. 따라서 런 렝스와 카테고리 각 쌍마다 해당하는 부호어를 정의하는 테이블(table)이 커질 수 밖에 없고 그에 따른 평균 부호어의 길이도 길어진다. 그리고 이에 따라 복호화 로직(Logic)도 복잡하게 된다.The RLC scheme as described above has a problem in that many codewords corresponding to 0 to 15 run lengths are required for each category. Therefore, a table defining a codeword corresponding to each pair of run lengths and categories is large, and the length of the average codeword is long accordingly. As a result, the decryption logic is complicated.

따라서 본 발명의 목적은 본원 출원인에 의해 선출원된 특허 90-13673호의 부호화 방식에 대한 복호화방식으로서 영상신호의 수신 및 재생시 런필드를 이용한 복호화 방식에 있어서, 영상 데이타 DCT AC계수에 대한 런 렝스는 별도의 가별길이의 런필드를 채용하여 복호화하여 0이 아닌 AC계수는 자체 정보로만 하여 그 효율을 높이고 부호어의 평균 길이도 줄임으로써 데이타의 양을 감축할 수 있는 복호화 방법을 제공함에 있다.Accordingly, an object of the present invention is a decoding method for the encoding method of Patent No. 90-13673, filed by the applicant of the present application, in the decoding method using the run field when receiving and playing the video signal, the run length for the image data DCT AC coefficient It is possible to provide a decoding method that can reduce the amount of data by adopting a separate run field having a separate length and decoding the non-zero AC coefficient by using its own information to increase its efficiency and reduce the average length of codewords.

이하 본 발명을 첨부하 도면을 참조하여 설명한다.Hereinafter, the present invention will be described with reference to the accompanying drawings.

제2도는 본 발명에 따른 블럭도로서, 시스템을 전반적으로 제어하는 CPU(Central Processing Unit)(10)와, 상기 CPU(10)의 수행 프로그램 및 복호화를 위한 테이블(table)을 저장하는 롬(20)과, 상기 CPU(10)의 제어에 의해 복호된 AC계수가 인버스 지그재그 스캐닝되어 램 (40)으로 출력되도록 제어하는 인버스 지그재그 스캔부(30)와, 상기 DCT AC계수를 소정 제어에 의해 저장하는 램 (40)으로 구성한다.FIG. 2 is a block diagram according to the present invention, and includes a CPU (Central Processing Unit) 10 for controlling the system as a whole, and a ROM 20 for storing a table for executing and decoding the CPU 10. And an inverse zigzag scan unit 30 for controlling the AC coefficient decoded by the control of the CPU 10 to be inverse zigzag scanned and output to the RAM 40, and storing the DCT AC coefficient under predetermined control. It consists of the RAM 40.

제4도는 본 발명에 따른 흐름도로서, 0이 아닌 계수의 갯수를 나타내는 카운터 (C)와 AC계수의 주파수(N)를 나타내는 값을 초기화하는 제 1과정과, 상기 제 1과정 수행후 0이 아닌 계수의 부호어를 리드하여 모든 AC 계수가 0인지 판단하는 제 2과정과, 상가 재 2과정에서 0이 아닐 경우에 런 필드를 리드하는 제 3과정과, 상기 런 필드의 최상위 비트의 값이 1인가를 판단하는 제 4과정과, 상기 제 4과정에서 1일 경우 0이 아닌 계수를 복호화한후 0이 아닌 복원된 AC계수를 출력하고 상기 주파수(N)를 하나 증가시키는 제 5과정과, 상기 제 4과정에서 런 필드의 최상인 비트가 0일 경우 그 해당 주파수 값에서의 AC계수값을 0으로 출력하고 상기 주파수(N)를 하나 증가시키는 제 6과정과, 상기 제 5과정 수행후 0이 아닌 계수의 복호화가 끝났는가를 판단하는 제 7과정과, 상기 제 7과정에서 복호화가 끝나지 않았을 경우나 상기 제 6과정 수행후 상기 AC계수를 모두 복호화 했는지를 판단하는 제 8과정과, 상기 제 8과정에서 복호화가 끝나지 않았을 경우 런 필드의 다음 주파수에 해당하는 비트를 최상위로 이동하여 제 4과정으로 돌아가는 제 9과정과, 상기 제 7과정에서 0이 아닌 AC계수의 복호화가 끝났을 경우 나머지 주파수에 대한 AC계수를 0으로 출력하고 주파수를 하나 증가시키는 제10과정과, 제10과정에서 상기 나머지 주파수에 대한 AC계수가 0으로 모두 출력되는지를 체크하는 제11과정으로 이루어진다.4 is a flowchart according to the present invention, the first process of initializing the value indicating the frequency (N) of the counter (C) indicating the number of non-zero coefficients, and the non-zero after performing the first process A second step of reading a codeword of a coefficient to determine whether all AC coefficients are zero; a third step of reading a run field when the value is not zero in a second re-addition process; and a value of the most significant bit of the run field is 1; A fourth process of determining whether to be authorized; and a fifth process of outputting a restored non-zero AC coefficient by increasing the frequency N by decoding a non-zero coefficient if it is 1 in the fourth process, and In the fourth process, if the most significant bit of the run field is 0, the sixth process of outputting the AC coefficient value at the corresponding frequency value to 0 and increasing the frequency N by one; A seventh process of determining whether the decoding of the coefficients is finished; When the decoding is not finished in the seventh process or after performing the sixth process, the eighth process of determining whether the AC coefficient is decoded, and if the decoding is not finished in the eighth process corresponds to the next frequency of the run field A ninth process of moving the bit to the highest level and returning to the fourth process; and if the decoding of the non-zero AC coefficient is completed in the seventh process, a tenth process of outputting an AC coefficient for the remaining frequencies to 0 and increasing the frequency by one And an eleventh step of checking whether all AC coefficients for the remaining frequencies are output as 0 in the tenth step.

제5도는 상기 제4도중 제 2과정 (A1단계)에 대한 세부 제어흐름도로서, 0이 아닌 계수의 부호어를 리드하는 제 1단계와, 상기 제 1단계에서 리드한 부호어가 0이 아닌 계수의 끝을 나타내는 EONZ(End-of-Non Zero)인지를 판단하는 제 2단계와, 상기 제 2단계에서 EONZ가 아닐 결우 리드된 부호어를 AC계수로 복원하기 위해 기억시키기 위한 제 3단계와, 상기 제 3단계 수행후 0이 아닌 계수의 부호어 갯수를 카운트하는 제 4단계로 이루어진다.FIG. 5 is a detailed control flow diagram for the second process (Step A1) of FIG. 4, wherein the first step of reading codewords of nonzero coefficients and the codewords read in the first step of non-zero coefficients are shown. A second step of determining whether it is an end-of-non zero (EONZ) indicating an end; a third step of storing a codeword read if the non-EONZ in the second step is not restored to the AC coefficient; After performing the third step, a fourth step of counting the number of codewords of nonzero coefficients is performed.

제6도는 상기 제4도중 제 5과정의 부호어 복호화(A5단계)의 상세 제어흐름도로서, 미리 기억된 부호어를 리드하는 리드단계와, 상기 리드 단계에서 리드된 부호어로 허프만 디코딩 테이블을 통해서 카테고리를 산출하는 산출단계와, 상기 산출단계 수행후 상기 카테고리에 해당되는 범위내의 AC계수의 값을 복원하기위해 수신/재생계로 전송되는 부가어를 리드하는 부가어리드 단계와, 상기 부가어 리드 단계 수행후 사인을 리드하여 상기 AC계수의 부호를 정하기 위한 사인 리드단계와, 상기 사인 리드단계 수행후 0이 아닌 AC계수의 남은 수를 카운트하는 카운팅 단계로 이루어진다.FIG. 6 is a detailed control flow diagram of codeword decoding (step A5) of the fifth process in FIG. 4, which is classified into categories through a read step of reading a codeword stored in advance and a codeword read from the read step. A calculation step of calculating a; and an additional read step of reading an additional word transmitted to a receiving / reproducing system to restore a value of an AC coefficient within a range corresponding to the category after performing the calculating step; And a counting step of counting the remaining number of non-zero AC coefficients after performing the sign reading step.

이하 본 발명은 상술한 구성에 의거 동작의 일실시예를 제3도-제6도를 참조하여 상세히 설명한다.Hereinafter, an embodiment of the operation based on the above-described configuration will be described in detail with reference to FIGS. 3 to 6.

먼저 수신/재생계로 입력되는 영상신호는 감축 부호화된 신호이다. 따라서 이를 재생하기 위해서는 상기감축부호화된 부호어에 포함되어 있는 부호어의 길이와 DCT계수의 값에 따라 허프만 복호화를 행한뒤 이러한 주파수 영역에서의 계수를 인버스 DCT를 이용하여 시간 영역으로 변환하여야 한다.First, the video signal input to the receiving / reproducing system is a reduced coded signal. Therefore, to reproduce this, Huffman decoding is performed according to the length of the codeword included in the reduced coded codeword and the value of the DCT coefficient, and then the coefficients in the frequency domain are converted into the time domain using the inverse DCT.

따라서 본 발명에서의 복호화 방식은 본원 출원인에 의해 선출원된 특허 제90-13673호의 부호화 방식에 대한 역과정으로 처리됨을 이해하여야 한다. 예를들어 전송측에서 8×8 화소의 서브 블럭 단위로 DCT를 행하였다면 수신측에서는 인버스 지그재그 스캔부(20)에 의해 DCT계수중 하나의 DC계수를 제외한 63개의 AC계수가 제3도의 램 (30)에 저장될 것이다.Therefore, it should be understood that the decoding scheme in the present invention is processed in the reverse process to the coding scheme of Patent No. 90-13673 filed by the applicant of the present application. For example, if DCT is performed on a sub-block unit of 8x8 pixels on the transmitting side, 63 AC coefficients except for the DC coefficient of one of the DCT coefficients by the inverse zigzag scanning unit 20 on the receiving side. Will be stored).

여기서 상기 CPU(10)는 상기 롬(20)내의 프로그램 및 상기 복호화를 위한 테이블에 따라 제4도와 같은 제어 흐름을 수행하여 DCT AC계수를 출력하게 되는데 이를 설명한다.Here, the CPU 10 outputs a DCT AC coefficient by performing a control flow as shown in FIG. 4 according to a program in the ROM 20 and a table for decoding.

제4도에서, 상기 AC계수중에서 0이 아닌 계수의 갯수를 나타내는 카운터 (여기서는 “C”로 칭함)을 상기CPU(10)는 (A0)단계에서 초기화한다. 여기서 상기 (A0)단계는 상기 제 1과정에 대응됨을 알 수 있다. 상기 제 1과정 수행후 (A1)단계에서 0이 아닌(비제로) 계수의 부호어를 리드하여 (A2)단계에서 모든 AC은 계수가 0인가를 판단한다. 여기서 상기 (A1-A2)단계는 상기 제2과정에 대응되며 상기 (A1)단계의 세부 제어흐름은 제5도의 (B1→B2)단계는 상기 제 2과정에 대응되며 상기 (A1)단계의 세부 제어흐름은 제5도의(B1→B4)단계로 이루어짐을 이해하여야 한다. 상기 런필드는 수신된 각 비트가 자기의 주파수에 해당하는 AC계수가 0인지 아닌지를 나타내기 위한 것이고, 상기 카운트 c 는 예를들어 63개의 AC계수중 0이 아닌 계수의 차를 카운팅하기 위한 것이며, 상기 주파수값(N)은 63개의 AC계수중 몇개의 AC계수가 복호화 되는가를 나타내기 위한 계수값임을 알아야 한다.In FIG. 4, the CPU 10 initializes a counter (referred to herein as “C”) indicating the number of non-zero coefficients in the AC coefficient. Here, it can be seen that step (A0) corresponds to the first process. After performing the first process, in step (A1), a codeword of a nonzero (nonzero) coefficient is read, and in step (A2), all ACs determine whether the coefficient is zero. The steps (A1-A2) correspond to the second process and the detailed control flow of the step (A1) corresponds to the second process and the step (B1 → B2) of FIG. 5 corresponds to the second process and the details of the step (A1). It should be understood that the control flow consists of the steps of FIG. 5 (B1 → B4). The run field is for indicating whether or not each received bit is an AC coefficient corresponding to its frequency, and the count c is for counting a difference of nonzero coefficients among 63 AC coefficients, for example. It should be noted that the frequency value N is a coefficient value for indicating how many AC coefficients among the 63 AC coefficients are decoded.

따라서 상기 런 필드는 부호(sign)없는 최대 63비트수를 나타내는 것이된다. (A3)단계 수행후 상기 CPU(10)는 상기 런 필드의 최상위비트(MSB)의 값이 1인가를 (A4)단계에서 판단한다. 즉 상기 (A4)단계는 상기 제 4과정에 대응되며, 상기 런 필드의 최상위 비트의 값에 따라 해당되는 주파수 값(N)의 AC계수가 0인지 1인지를 판단하는 것이다. 상기 (A4)단계에서 0이 아닌 “1”이면 (A5)단계에서 0이 아닌 계수의 부호어를 복호화하는데, 이는 제6도의 (C1→C5)단계의 수행에 의해 달성되어진다. 상기 (A5)단계 수행이 완료되면 (A6)단계에서 0이 아닌 복원된 AC계수를 출력하고 상기 주파수값을 하나 증가시킨다.Thus, the run field represents the maximum number of 63 bits without sign. After performing step (A3), the CPU 10 determines whether the value of the most significant bit (MSB) of the run field is 1 in step (A4). That is, step (A4) corresponds to the fourth process and determines whether the AC coefficient of the corresponding frequency value N is 0 or 1 according to the value of the most significant bit of the run field. In step (A4), if "1" is non-zero, in step (A5), the codeword of the non-zero coefficient is decoded. This is achieved by performing step (C1? C5) of FIG. When the step A5 is completed, the restored AC coefficient other than zero is output in step A6, and the frequency value is increased by one.

한편 여기서 상기 (A5-A6)단계는 상기 제 5과정에 대응됨을 알 수 있다. 상기 (A4)단계에서 상기 런필드의 최상위 비트가 0일 경우에는 (A7)단계를 이행하여 그 해당 주파수 값(N)에서의 AC계수값을 0으로 출력하고 상기 주파수값(N)을 하나 증가시킨다. 상기 (A6)단계 수행후, (A8)단계에서 상기 CPU(10)는 0이 아닌 상기 AC계수의 복호화가 모두 끝났는가를 상기 카운터 (C)의 값에 의해 체크하는데, 이는 상기 제7과정에 대응된다. 상기 (A8)단계에서 복호화의 완료가 아니면 (A9)단계에서 상기 AC계수를 모두 복호화 하였는지를 상기 주파수값(N)에 의해 체크하는데, 이는 상기 제 8과정에 대응된다. 상기 (A9)단계에서 모든 상기 AC계수에 대한 복호화가 완료되지 않았을 경우에는 (A10)단계를 수행하는데, 상기 CPU(10)는 상기 런 필드의 다음 주파수값에 해당하는 비트를 최상위 (MSB)로 시프트(이동)시킨후 상기 (A4)단계로 리턴한다. 이는 상기 제 9과정에 대응된다. 상기 (A8)단계에서 0이 아닌 AC계수의 복호화가 완료되면(A11)단계에서 나머지 주파수에 대한 AC계수를 0으로 출력하고 상기 값(N)을 하나 증가시키는데, 이는 상기 제10과정에 대응된다. 상기 (A11)단계 수행후 (A12)단계에서 상기 나머지 주파수에 대한 AC계수가 0으로 모두 출력되었는가를 체크하여 모두 출력이면 완료하고, 아니면 상기 (A11)단계로 리턴한다. 이는 상기 제11과정에 대응됨을 알 수 있다.On the other hand, it can be seen that step (A5-A6) corresponds to the fifth process. If the most significant bit of the run field is 0 in step (A4), the process proceeds to step (A7) to output the AC coefficient value at the corresponding frequency value (N) to 0 and increases the frequency value (N) by one. Let's do it. After performing step (A6), in step (A8), the CPU 10 checks whether the decoding of the non-zero AC coefficient is completed by the value of the counter (C), which corresponds to the seventh process. do. If the decoding is not completed in step (A8), it is checked by the frequency value (N) whether all AC coefficients are decoded in step (A9), which corresponds to the eighth process. If the decoding of all the AC coefficients is not completed in step (A9), step (A10) is performed, and the CPU 10 sets the bit corresponding to the next frequency value of the run field to the highest level (MSB). After shifting, the process returns to step (A4). This corresponds to the ninth process. When the decoding of the non-zero AC coefficient in step (A8) is completed (A11), the AC coefficient for the remaining frequencies is output as 0 and the value N is increased by one, which corresponds to step 10. . After performing step (A11), it is checked whether all AC coefficients for the remaining frequencies are output as 0 in step (A12), and if all outputs are completed, otherwise, the method returns to step (A11). It can be seen that this corresponds to the eleventh process.

상기한 바와 같이 본 실시예에서는 서브 블럭 하나에 대한 AC계수 63개중 런 렝스가 최대 63비트의 런필드에 종합되어 있으므로, 런 필드를 체크함에 의해 각 계수들이 0인지 아닌지를 그 주파수에 따라 알 수있고, 또한 0이 아닌 계수가 몇 개인지도 알 수 있으므로 0이 아닌 계수 중에서 마지막으로 오는 계수에 대한 런 필드의 해당 비트까지만 있으면 된다. 따라서 런 필드는 필요한 만큼의 비트수만 있으면 된다.As described above, in this embodiment, since the run length of the 63 AC coefficients for one sub-block is synthesized in the run field of up to 63 bits, it is possible to know whether or not each coefficient is 0 by checking the run field according to the frequency. It also knows how many nonzero coefficients it has, so you only need to have the corresponding bits of the run field for the last nonzero coefficient. Therefore, the run field needs only as many bits as necessary.

한편 본 발명은 영상 데이타를 감축 코딩하여 기록/재생하는 매체인 디지탈 CTR, CDI(Compact Disc Interactive), 디지탈 카메라, 전자 게임기등에 이용할 수 있고, 영상 데이타를 감축 코딩 및 디코딩하여 전송/수신할 수 있는 칼라 팩시밀리, 영상전화기, 영상회의 시스템, 전자 사서함, 디지탈 TV용 방송기기와 튜너 등에 응용할 수 있다.Meanwhile, the present invention can be used for digital CTR, compact disc interactive (CDI), digital camera, electronic game machine, etc., which is a medium for recording / reproducing and recording / reproducing image data, and can transmit / receive image data by reducing coding and decoding. Applications include color fax machines, video phones, video conferencing systems, electronic mailboxes, digital TV broadcast equipment and tuners.

상술한 바와 같이 본 발명은 영상신호의 수신 및 재생시 RLC 방식으로 데이타의 양을 감축하는 복호화방식에 있어서, 영상 데이타의 DCT AC계수에 대한 런 렝스는 별도의 가별길이 런 필드를 채용하여 복호화하며 0이 아닌 AC계수는 자체 정보만으로 복호화하는 방식임을 알 수 있다. 따라서 0이 아닌 AC계수를 런 렝스와 무관하게 복호화 함으로써 코딩 테이블을 작게할 수 있음과 동시에 복호어의 평균길이를 줄일 수 있으며 부호와 및 복호화를 간단하게 할 수 있는 이점이 있다. 또한 런 렝스를 가변길이 런 필드에 종합하여 복호화 함으로써 런 렝스 정보를 크게 줄일 수 있는 이점이 있다.As described above, according to the present invention, in the decoding method of reducing the amount of data by the RLC method when the video signal is received and reproduced, the run length for the DCT AC coefficient of the video data is decoded by using a separate length field. It can be seen that non-zero AC coefficient is a method of decoding only its own information. Therefore, by decoding the non-zero AC coefficient irrespective of the run length, the coding table can be reduced, the average length of the decoded word can be reduced, and the sign and decoding can be simplified. In addition, the run length information can be greatly reduced by decoding the run length by combining the variable length run field.

Claims (3)

영상신호의 수신 및 재생시 런 필드를 이용한 복호화 방식에 있어서, 0이 아닌 계수의 갯수를 나타내는 카운터와 AC계수의 주파수를 나타내는 값을 초기화하는 제 1과정과, 상기 제 1과정 수행후 0이 아닌 계수의 부호어를 리드하여 모든 AC계수가 0인지 판단하는 제 2과정과, 상기 제 2과정에서 0이 아닐 경우에 런 필드를 리드하는 제 3과정과, 상기 런 필드의 최상위 비트의 값이 1인가를 판단하는 제 4과정과, 상기 제 4과정에서 1일 경우 0이 아닌 계수를 복호화한 후 0이 아닌 복원된 AC계수를 출력하고 상기 주파수를 하나 증가시키는 제 5과정과, 상기 제 4과정에서 런 필드의 최상위 비트가 0일 경우 그 해당 주파수값에서의 AC계수값을 0으로 출력하고 상기 주파수를 하나 증가시키는 제 6과정과, 상기 제 5과정정 수행후 0이아닌 계수의 복호화가 끝났는지를 판단하는 제 7과정과, 상기 제 7과정에서 복호화가 끝나지 않았을 경우나 상기 제 6과정 수행후 상기 AC계수를 모두 복호화 했는지를 판단하는 제 8과정과, 상기 제 8과정에서 복호화가 끝나지 않았을 경우 런 필드의 다음 주파수에 해당하는 비트를 최상위로 이동하여 제 4과정으로 돌아가는 제 9과정과, 상기 제 7과정에서 0이 아닌 AC계수의 복호화가 끝났을 경우 나머지 주파수에 대한 AC계수를 0으로 출력하고 주파수를 하나 증가시키는 제10과정으로 이루어짐을 특징으로 하는 영상신호의 수신및 재생시 런 필드를 이용한 복호화 방식.In the decoding method using the run field when receiving and reproducing a video signal, a first process of initializing a counter indicating the number of nonzero coefficients and a frequency representing an AC coefficient, and a nonzero operation after the first process is performed. A second step of reading a codeword of a coefficient and determining whether all AC coefficients are zero; a third step of reading a run field when the second step is not 0; and a value of the most significant bit of the run field is 1; A fourth process of determining whether to approve, a fifth process of outputting a non-zero restored AC coefficient after decoding a non-zero coefficient if it is 1 in the fourth process, and increasing the frequency by one; In step 6, if the most significant bit of the run field is 0, the 6th process of outputting the AC coefficient value at the corresponding frequency value as 0 and increasing the frequency by one, and after the fifth process is performed, decoding of the non-zero coefficient is completed. To A seventh process of judging, a process of judging whether the decoding has not been completed in the process of the seventh process or whether the decoding of all the AC coefficients is performed after the process of the process of the sixth process, and The ninth step of returning to the fourth step by moving the bit corresponding to the next frequency of the field to the highest level; and if the decoding of the non-zero AC coefficient is completed in the seventh step, the AC coefficient of the remaining frequencies is output as 0 and the frequency is output. The decoding method using the run field when receiving and playing the video signal, characterized in that the step 10 to increase the one. 제 1항에 있어서, 상기 제 2과정이 0이 아닌 계수의 부호어를 리드하는 제 1단계와, 상기 제 1단계에서 리드한 부호어가 0이 아닌 계수의 끝을 나타내는 EONZ(End-of-Non Zero)인지를 판단하는 제 2단계와, 상기 제 2단계에서 EONZ가 아닐 경우 리드된 부호어를 AC계수로 복원하기 위해 기억시키기 위한 제3단계와, 상기 제 3단계 수행후 0이 아닌 계수의 부호어 갯수를 카운트하는 제 4단계로 이루어짐을 특징으로 하는 영상신호의 수신 및 재생시 런 필드를 이용한 복호화 방식.The end-of-non of claim 1, wherein the second process reads a codeword of a non-zero coefficient and the codeword read in the first stage represents an end of a non-zero coefficient. A second step of determining whether or not zero), a third step of storing the codeword read in order to restore the AC code when the codeword is not EONZ in the second step, and a nonzero coefficient after performing the third step. And a fourth step of counting the number of codewords. 제 1항에 있어서, 제 5과정이 미리 기억된 부호어를 리드하는 리드단계와, 상기 리드 단계에서 리드된 부호어로 허프만 디코딩 테이블을 통해서 카테고리를 산출하는 산출단계와, 상기 산출단계 수행후 상기 카테고리에 해당되는 범위내의 AC계수의 값을 복원하기 위해 수신/재생계로 전송되는 부가어를 리드하는 부가어 리드 단계와, 상기 부가어 리드 단계 수행후 사인을 리드하여 상기 AC계수의 부호를 정하기 위한 사인 리드 단계와, 상기 사인 리드단계 수행후 0이 아닌 AC계수의 남은 수를 카운트하는 카운팅 단계로 이루어짐을 특징으로 하는 영상신호의 수신 및 재생시 런 필드를 이용한 복호화 방식.The method of claim 1, wherein the fifth process includes: a step of reading a code word stored in advance; a step of calculating a category through a Huffman decoding table with the code word read in the read step; A supplementary read step of reading an adjunct transmitted to a receiving / reproducing system to restore the value of the AC coefficient within a range corresponding to and a sine read step of determining a sign of the AC coefficient by reading a sine after performing the adjunct reading step; And a counting step of counting the remaining number of non-zero AC coefficients after the sign read step is performed.
KR1019910022375A 1991-12-07 1991-12-07 Picture signal decoding method by using runfield KR940000680B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019910022375A KR940000680B1 (en) 1991-12-07 1991-12-07 Picture signal decoding method by using runfield

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019910022375A KR940000680B1 (en) 1991-12-07 1991-12-07 Picture signal decoding method by using runfield

Publications (2)

Publication Number Publication Date
KR930014484A KR930014484A (en) 1993-07-23
KR940000680B1 true KR940000680B1 (en) 1994-01-27

Family

ID=19324335

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019910022375A KR940000680B1 (en) 1991-12-07 1991-12-07 Picture signal decoding method by using runfield

Country Status (1)

Country Link
KR (1) KR940000680B1 (en)

Also Published As

Publication number Publication date
KR930014484A (en) 1993-07-23

Similar Documents

Publication Publication Date Title
US4454546A (en) Band compression device for shaded image
US6219457B1 (en) Method and system for decoding data encoded in a variable length code word
US5227789A (en) Modified huffman encode/decode system with simplified decoding for imaging systems
US7411526B2 (en) Variable length coding method and variable length decoding method
EP0776569B1 (en) Method and system for encoding and decoding image data
US5805226A (en) Method and apparatus for encoding a video signal by using a block truncation coding method
US5706001A (en) Run-length decoding apparatus for use in a video signal decoding system
US5694127A (en) Method and apparatus for efficiently generating variable length code data
US5995171A (en) Coding and/or decoding apparatus for decoding variable-length coded image information
KR930003964B1 (en) Coding system
US7050645B2 (en) Image processing apparatus and image processing method
US6157327A (en) Encoding/decoding device
US5162908A (en) Coding method for increasing data compression efficiency in transmitting or storing picture signals
KR100329091B1 (en) Image Compressor, Image Reproducing Device and Drawing Device
KR940000680B1 (en) Picture signal decoding method by using runfield
JPH07153195A (en) Digital recording device
JP2925047B2 (en) Data compression device and data decompression device
KR0171443B1 (en) Apparatus and method of variable length code decoding of digital video cassette recorder
JP3093485B2 (en) Decryption device
KR0162307B1 (en) High density recording method of high quality vcr
JPH089373A (en) Picture compression device
JPH06189286A (en) Digital video signal encoder and decoder
JPH06113276A (en) Reception/reproduction device for digital picture signal
KR0134358B1 (en) Coding and decoding system of variable scan method
KR0134359B1 (en) Coding and decoding system of variable scan region

Legal Events

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

Payment date: 20021230

Year of fee payment: 10

LAPS Lapse due to unpaid annual fee