KR950010764B1 - Vld subtract method of position information - Google Patents

Vld subtract method of position information Download PDF

Info

Publication number
KR950010764B1
KR950010764B1 KR1019930024557A KR930024557A KR950010764B1 KR 950010764 B1 KR950010764 B1 KR 950010764B1 KR 1019930024557 A KR1019930024557 A KR 1019930024557A KR 930024557 A KR930024557 A KR 930024557A KR 950010764 B1 KR950010764 B1 KR 950010764B1
Authority
KR
South Korea
Prior art keywords
code
vlc
length
zero
zero length
Prior art date
Application number
KR1019930024557A
Other languages
Korean (ko)
Other versions
KR950016012A (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 KR1019930024557A priority Critical patent/KR950010764B1/en
Priority to CN94118704A priority patent/CN1118972A/en
Priority to JP28361794A priority patent/JPH07212753A/en
Publication of KR950016012A publication Critical patent/KR950016012A/en
Application granted granted Critical
Publication of KR950010764B1 publication Critical patent/KR950010764B1/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/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/40Conversion to or from variable length codes, e.g. Shannon-Fano code, Huffman code, Morse code

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Image Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The method for contracting variable length code according to position information that if a zero length and a discrete cosine transform value are not recorded at a variable length code table, an escape coder, the zero length and the discrete cosine transform coefficient are all added to assign a new code is characterized in that the zero length representing the number of "0" is coded by selectively changing the number of the bits according to the zig-zag scanning sequence position of the right-before-coded variable length code.

Description

위치 정보에 따른 가변 길이 부호의 축약 방법Shortening Method of Variable Length Codes According to Position Information

제 1 도는 영상부호화 장치에서 지그-재그 스캔닝 방식으로 스캔닝하는 순서를 나타내는 도면.1 is a diagram illustrating a scanning sequence in a zigzag scanning method in an image encoding apparatus.

제 2 도는 본 발명에 따른 가변 길이 코드의 측약 방형을 나타낸 블럭도.2 is a block diagram illustrating a survey rectangle of a variable length code according to the present invention.

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

101 : 이산 코사인 변환부 102 : 양자화부101: discrete cosine transform unit 102: quantization unit

103 : 지그-재그 스캔닝부 104 : 가변 길이 코드 테이블103: zig-zag scanning unit 104: variable length code table

105 : 코드 할당부 106 : 비트 제어부105: code allocation unit 106: bit control unit

107 : 가변 길이 부호화부107 variable length encoder

본 발명은 MPEG(Moving Picture Experts Group) II에서의 위치정보에 따른 가변 길이 부호(Variable Length Code, VLC)의 축약 방법에 관한 것으로서, 더욱 상세하게는 VLC테이블에 입력되는 쌍이 VLC테이블에 기재되어 있지 않은 예외적인 경우가 발생할 경우 바로 이전에 부호화된 VLC의 지그-재그(Zig-Zag) 스캔닝 순서에 따라 선택적으로 제로 길이(Zero Length)를 부호화하기 위한 비트의 갯수를 변화시킴으로써 비트의 양을 줄이는 위치 정보에 따른 VLC의 축약 방법에 관한 것이다.The present invention relates to a method of shortening a variable length code (VLC) according to position information in a moving picture expert group (MPEG) II. More specifically, a pair input to a VLC table is not described in a VLC table. When an exceptional case occurs, the amount of bits is reduced by selectively changing the number of bits for encoding a zero length according to the Zig-Zag scanning order of the VLC coded immediately before. It relates to a method of shortening the VLC according to the location information.

일반적으로, 공간상의 상관도를 이용하여 부호의 중복성을 줄이기 위한 변화 분호화 방식에서 (8 ×8) 단위로 이산 코사인 변환(Discrete Cosine Transform Quantization Parameter: QP ; 이하, DCT라 칭함.)을 수행하고 기설정된 양자화 파라메타(Quantization Parameter, QP) 단위로 양자화를 수행한 후, 부호화의 효율을 향상시키기 위하여 각 계수들에 대해 지그-재그 스캔닝을 수행한다.In general, a Discrete Cosine Transform Quantization Parameter (QP; hereinafter referred to as DCT) is performed in (8 × 8) units in a change encoding scheme for reducing code redundancy using spatial correlation. After quantization is performed in units of a predetermined quantization parameter (QP), zig-zag scanning is performed on each coefficient to improve coding efficiency.

제 1 도는 영상 부호화 장치에서 지그-재그 스캔닝 방식으로 스캔닝하는 순서를 나타낸 도면으로써, VLC코드는 도시된 바와 같은 순서로 각 위치를 스캔닝할 때 '0'이 아닌 유효값이 나올 때까지 연속하여 이어지는 '0'의 길이와 유효값의 쌍에 대응하여 가장 빈도수가 높은쌍에 대하여 짧은 길이의 부호가 할당된다. 만약, VLC테이블에 입력되는 쌍이 VLC테이블에 기재되어 있지 않은 예외적인 것에 대해서는 다음과 같은 부호가 대응적으로 사용된다. (확장 부호(escape code) ; 6비트)+(제로 길이, 6비트)+(유효값 ; 8 내지 16비트) 즉, 예외적인 것임을 알려주는 확장 부호가 선두에 서고, 다음에 '0'의 갯수를 나타내기 위해 6비트가 할당되어 0 내지 63의 범위내에 오는 모든 경우를 나타내 준다. 그리고, 마지막으로 유효값에 대해서는 절대값의 크기가 129 이하의 경우에는 8비트가, 그 이상일 경우에는 16비트가 할당되어 나타내어진다. 즉, 지그-재그 스캔닝 방식을 통해 구성되는 정보에는 '0'의 길이 정보가 첨가되어 있기 때문에, 8 ×8 DCT블럭에서의 각 부호에 대응하는 위치 정보는 해당 부호와 바로 이전에 구성되어진 VLC부호의 위치 정보를 이용하여 구할 수 있다.FIG. 1 is a diagram illustrating an order of scanning by a zigzag scanning method in an image encoding apparatus, wherein the VLC code has a valid value other than '0' when scanning each position in the order as shown. A short length code is assigned to the pair with the highest frequency corresponding to successive pairs of '0' lengths and valid values. If the pair input to the VLC table is exceptional in which the VLC table is not described, the following code is used correspondingly. (Escape code; 6 bits) + (zero length, 6 bits) + (valid values; 8 to 16 bits), i.e., an extension code indicating that it is exceptional, followed by the number of '0's 6 bits are allocated to represent all cases in the range of 0 to 63. Finally, for the valid value, 8 bits are allocated when the absolute value is 129 or less, and 16 bits are allocated and more than that. That is, since the length information of '0' is added to the information configured through the zig-zag scanning method, the position information corresponding to each code in the 8 × 8 DCT block has the VLC immediately formed before the corresponding code. Can be obtained by using the position information of the sign.

그런데, 서술한 방법은 예외적인 경우가 발생할 경우에도 항상 일정한 비트를 할당하여 부호화하게 되는데, 이러한 선행하는 부호화 방식은 '제로 길이'부분이 위치정보를 가지고 있음을 간과하고 있으므로 데이타 량의 축약 가능성을 배제하고 있는 문제점이 있었다.However, the described method always encodes a certain bit even when an exceptional case occurs. Such a prior art coding method ignores the fact that the 'zero length' part has location information, thus reducing the possibility of reducing the amount of data. There was a problem excluding.

따라서 본 발명은 상기와 같은 문제점을 해결하기 위한 것으로서, 본 발명의 목적은 예외적인 경우가 발생할 경우 바로 이전에 부호화된 VLC의 지그-재그 스캔닝 순서에 따라 선택적으로 제로 길이를 부호화하기 위한 비트의 갯수를 변화시킴으로써 VLC축약에 따른 영상 압축의 효율을 증대시키는 위치 정보에 따른 VCL축약 방법을 제공함에 있다.Accordingly, an object of the present invention is to solve the above problems, and an object of the present invention is to select a bit for selectively encoding a zero length according to a zigzag-jag scanning order of a VLC coded immediately before an exceptional case occurs. The present invention provides a VCL shortening method based on location information which increases the efficiency of image compression according to VLC shortening by changing the number.

상기와 같은 목적을 달성하기 위한 본 발명의 위치 정보에 따른 VLC축약 방법은 DCT와 양자화 및 지그-재그 스캔닝을 수행하여 얻어진 제로 길이와 DCT값이 VLC테이블에 지재되어 있지 않은 예외적인 쌍이라면, 예외적인 것임을 알려주는 확장 부호와 0의 갯수를 나타내는 제로 길이와 DCT값의 크기를 모두 가산하여 새로이 부호를 할당하는 위치 정보에 따른 VLC축약 방법으로, 바로 이전에 부호화된 VLC의 지그-재그 스캔닝 순서 위치에 따라 상기 0의 갯수를 나타내는 제로 길이에 대해서 비트의 갯수를 선택적으로 변화시켜 부호화함을 특징으로 한다.In the VLC reduction method according to the position information of the present invention for achieving the above object, if the zero length and DCT value obtained by performing quantization and zigzag scanning with DCT are exceptional pairs not listed in the VLC table, ZLC-Zag scanning of the VLC coded just before, using VLC abbreviation method according to the location information that newly adds both the extension code indicating the exception and the zero length indicating the number of zeros and the magnitude of the DCT value. And encoding the number of bits selectively with respect to the zero length indicating the number of zeros according to the order position.

이하, 본 발명의 위치 정보에 따른 VLC축약 방법의 바람직한 실시예에 대하여 첨부 도면을 참조하여 상세히 설명한다.Hereinafter, a preferred embodiment of the VLC reduction method according to the positional information of the present invention will be described in detail with reference to the accompanying drawings.

제 1 도는 본 발명의 위치 정보에 따른 VLC축약 방법을 수행하기 위한 블럭도로써, 공간상의 상관도를 이용하여 압축 부호화하는 DCT부(101)와, 상기 DCT부(101)로부터의 DCT변환 계수들을 유한한 갯수의 값으로 근사화하는 양자화부(102)와, 부호화의 효율을 높이기 위하여 상기 양자화의 계수들을 지그-재그 스캔닝 방식을 이용하여 스캔닝하는 지그-재그 스캔닝부(103)와, 상기 지그-재그 스캔닝부(103)의 결과(제로 길이, DCT값)가 입력되면 제로 길이와 DCT값에 대응하여 가장 빈도수가 높은 쌍에 대하여 짧은 길이의 부호를 할당하는 VLC테이블(104)과, 상기 지그-재그 스캔닝부(103)에서 출력되는 제로 길이와 DCT변환계수 값이 VLC테이블(104)에 기재되어 있지 않은 예외적인 쌍이라면, VLC부호를 새로이 할당하는 부호 할당부(105)와, 상기 부호 할당부(105)의 제로 길이를 부호화하가 위한 비트의 갯수를 바로 이전에 부호화한 VLC의 지그-재그 스캔닝 순서에 따라 변화시키는 비트 제어부(106)와, 상기 부호 할당부(106)에 의해 할당된 부호 또는 VLC테이블(104)에서 할당된 부호에 대해 VLC를 수행하여 전송될 데이타의 양을 줄이는 VLC부(107)로 이루어진다.1 is a block diagram for performing a VLC reduction method according to the positional information of the present invention. The DCT unit 101 compresses and encodes using spatial correlation and the DCT transform coefficients from the DCT unit 101. A quantization unit 102 for approximating a finite number of values, a zigzag-scanning unit 103 for scanning the coefficients of the quantization using a zig-zag scanning method in order to improve coding efficiency, and the jig -When the result (zero length, DCT value) of the zigzag scanning unit 103 is input, the VLC table 104 which assigns a short length code to the pair having the highest frequency corresponding to the zero length and the DCT value, and the jig If the zero length and the DCT transform coefficient value output from the zag scanning unit 103 are exceptional pairs not listed in the VLC table 104, a code assignment unit 105 for newly allocating a VLC code and the code assignment Zero length of the part 105 The bit control unit 106 for changing the number of bits to be coded according to the zig-zag scanning order of the VLC just encoded, and the code or VLC table 104 assigned by the code assignment unit 106. The VLC unit 107 reduces the amount of data to be transmitted by performing VLC on the code assigned by the.

이와같이 구성된 본 발명은 DCT부(101)에서 공간상의 상관도를 이용한 DCT가 8 ×8 블럭단위로 수행되고, 양자화부(102)에서 양자화된 후 지그-재그 스캔닝부(103)에서 지그-재그 스캔닝 방식으로 스캔닝이 이루어진다.According to the present invention configured as described above, the DCT using the spatial correlation in the DCT unit 101 is performed in units of 8 × 8 blocks, and is quantized in the quantization unit 102, and then zigzag-scanned in the zigzag scanning unit 103. Scanning is done in a ning manner.

이때, 상기 지그-재그 스캔닝부(103)에서 VLC테이블(104)로 입력되는 제로 길이와 DCT변환계수 값이 VLC테이블(104)에 기재되어 있는 쌍이라면 VLC테이블(104)에서 제로 길이와 DCT변환계수 값의 쌍에 대응하여 가장 빈도수가 높은 쌍에 대하여 짧은 길이의 부호를 할당한 후 VLC부(107)에서 VLC를 수행한다.At this time, if the zero length and the DCT conversion coefficient values input from the zig-zag scanning unit 103 to the VLC table 104 are pairs described in the VLC table 104, the zero length and DCT conversion in the VLC table 104 are performed. The VLC unit 107 performs a VLC after assigning a short-length code to the pair with the highest frequency corresponding to the pair of coefficient values.

한편, 상기 VLC테이블(104)로 입력되는 제로 길이와 DCT변환계수 값이 VLC테이블에 기재되어 있지 않은 예외적인 쌍이라면, 부호 할당부(105)에서 상기 제로 길이와 DCT값에 대하여 다음과 같이 새로운 부호가 할당된다.On the other hand, if the zero length and the DCT transform coefficient value input to the VLC table 104 are exceptional pairs not described in the VLC table, then the code assignment unit 105 is as follows with respect to the zero length and the DCT value. The sign is assigned.

즉, (확장부호 ; 6비트) + (제로 길이 ; 6비트) + (DCT값 ; 8 내지 16비트)로 할당된다. 이때, 예외적인 경우가 발생된 위치에서 가질 수 있는 최대 '제로 길이'는 이전 VLC의 지그-재그 스캔닝 순서 위치를 이용하여 다음과 같이 용이하게 예측할 수가 있다. 가능한 제로 길이 =63-(이전 VLC의 지그-재그 스캔닝 순서 위치)That is, they are allocated as (extension code; 6 bits) + (zero length; 6 bits) + (DCT value; 8 to 16 bits). At this time, the maximum 'zero length' that can be obtained at the position where the exceptional case occurs can be easily estimated using the zigzag-jagging scanning sequence position of the previous VLC as follows. Possible zero length = 63- (Zig-zag scanning sequence position of previous VLC)

따라서, 바로 이전에 부호화된 VLC의 지그-재그 스캔닝 순서 위치의 범위에 따라 '제로 길이' 크기 및 '제로 길이'를 부호화하기 위해 필요한 비트의 크기는 다음과 같다.Accordingly, the sizes of bits required for encoding the 'zero length' size and the 'zero length' according to the range of the zig-zag scanning order positions of the VLC just encoded are as follows.

따라서, 예외적인 경우가 발생하더라도 바로 이전에 부호화된 VLC의 지그-재그 스캔닝 순서 위치에 따라 선택적으로 '제로 길이'를 코딩하기 위한 비트의 갯수를 비트 제어부(106)에 의해 변화시킴으로서 선행하는 방법에 비해 보다 효율적으로 비트의 양을 줄일수 있다.Thus, even if an exception occurs, the bit control unit 106 changes the number of bits for selectively coding a 'zero length' according to the zig-zag scanning order position of the immediately-encoded VLC. Compared to this, the amount of bits can be reduced more efficiently.

이상에서와 같이 본 발명의 위치 정보에 따른 VLC축약 방법에 의하면, 예외적인 경우가 많이 발생할수록 전체적으로 생성되는 비트의 갯수는 종전의 방법에 비해 많이 줄어들 수 있으므로 부호화의 효율을 높여주는 효과가 있다.As described above, according to the VLC shortening method according to the positional information of the present invention, as the number of exceptional cases occurs, the number of bits generated as a whole can be greatly reduced compared to the conventional method, thereby improving the coding efficiency.

Claims (1)

이산 코사인 변환과 양자화 및 지그-재그 스캔닝을 수행하여 얻어진 제로 길이와 이산 코사인 변환값이 가변 길이 부호 테이블에 기재되어 있지 않은 예외적인 쌍이라면 예외적인 것임을 알려주는 확장 부호(Escape Code)와 0의 갯수를 나타내는 제로 길이와 이산 코사인 변환 계수 값의 크기를 모두 가산하여 새로이 부호를 할당하는 위치 정보에 따른 가변 길이 부호 축약 방법에 있어서, 상기 0의 갯수를 나타내는 제로 길이는 바로 이전에 부호화된 가변 길이 부호의 지그-재그 스캔닝 순서 위치에 따라 선택적으로 비트의 갯수를 변화시켜서 부호화함을 특징으로 하는 위치 정보에 따른 가변 길이 부호 축약 방법.If the zero length and discrete cosine transforms obtained by performing discrete cosine transform and quantization and zig-zag scanning are exceptional pairs not listed in the variable-length code table, then the escape code and zero indicate that they are exceptional. In the variable length code shortening method according to the position information of adding a zero length representing a number and a magnitude of a discrete cosine transform coefficient value and newly assigning a code, the zero length representing the number of zeros is a variable length previously encoded. Zig-zag scanning order of code A variable length code shortening method according to position information, characterized by selectively changing the number of bits according to the position.
KR1019930024557A 1993-11-17 1993-11-17 Vld subtract method of position information KR950010764B1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR1019930024557A KR950010764B1 (en) 1993-11-17 1993-11-17 Vld subtract method of position information
CN94118704A CN1118972A (en) 1993-11-17 1994-11-17 Variable length coding method for use in a digitized video encoding system
JP28361794A JPH07212753A (en) 1993-11-17 1994-11-17 Variable length coding method to be used in digitized video coding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019930024557A KR950010764B1 (en) 1993-11-17 1993-11-17 Vld subtract method of position information

Publications (2)

Publication Number Publication Date
KR950016012A KR950016012A (en) 1995-06-17
KR950010764B1 true KR950010764B1 (en) 1995-09-22

Family

ID=19368363

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019930024557A KR950010764B1 (en) 1993-11-17 1993-11-17 Vld subtract method of position information

Country Status (3)

Country Link
JP (1) JPH07212753A (en)
KR (1) KR950010764B1 (en)
CN (1) CN1118972A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100585710B1 (en) * 2002-08-24 2006-06-02 엘지전자 주식회사 Variable length coding method for moving picture
JP4642620B2 (en) * 2004-09-29 2011-03-02 富士フイルム株式会社 Method and apparatus for determining the location of run-length compressed data

Also Published As

Publication number Publication date
JPH07212753A (en) 1995-08-11
KR950016012A (en) 1995-06-17
CN1118972A (en) 1996-03-20

Similar Documents

Publication Publication Date Title
KR930009872B1 (en) Changing coding apparatus
US7454071B2 (en) System and method for using pattern vectors for video and image coding and decoding
CA2450360A1 (en) Variable length coding method and variable length decoding method
JPH0377477A (en) Method and apparatus for variable length coding
CN111083476A (en) Method for encoding and decoding video data, and video data encoder and decoder
JP3016456B2 (en) Adaptive variable length coding method
US7330598B2 (en) Image encoding apparatus and method
EP0635807A1 (en) Coding apparatus for image compression
KR950010764B1 (en) Vld subtract method of position information
US6084913A (en) Method for compressing dynamic image information and system and device therefor
JPH06189140A (en) Image compression device
JP3114796B2 (en) Variable length coding apparatus and method
JP3624450B2 (en) Image data encoding method and image data encoding apparatus
JPH06217288A (en) Method and device for motion vector encoding
KR100292521B1 (en) Image Data Encoding Method
JPH06178282A (en) Picture coder
KR100327364B1 (en) Image compression device using multiple huffman table
JPH10163880A (en) Data decoder
KR0148155B1 (en) Esc coding apparatus and method of image coding
JP2503698B2 (en) Transform coding method
KR100245788B1 (en) Video coding apparatus
JPH03238970A (en) Conversion coding system
JPH07222152A (en) Picture processor and compressed data control method in the picture processor
JPH07274169A (en) Coding/decoding device and method therefor
JP3044514B2 (en) Quantizer for image compression

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

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee