KR0160616B1 - Digital image compressing method and device - Google Patents

Digital image compressing method and device Download PDF

Info

Publication number
KR0160616B1
KR0160616B1 KR1019920015589A KR920015589A KR0160616B1 KR 0160616 B1 KR0160616 B1 KR 0160616B1 KR 1019920015589 A KR1019920015589 A KR 1019920015589A KR 920015589 A KR920015589 A KR 920015589A KR 0160616 B1 KR0160616 B1 KR 0160616B1
Authority
KR
South Korea
Prior art keywords
block
code
data
sync
coefficients
Prior art date
Application number
KR1019920015589A
Other languages
Korean (ko)
Other versions
KR940005159A (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 KR1019920015589A priority Critical patent/KR0160616B1/en
Publication of KR940005159A publication Critical patent/KR940005159A/en
Application granted granted Critical
Publication of KR0160616B1 publication Critical patent/KR0160616B1/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/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
    • 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/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/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • 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/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/88Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving rearrangement of data among different coding units, e.g. shuffling, interleaving, scrambling or permutation of pixel data or permutation of transform coefficient data among different blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/78Television signal recording using magnetic recording
    • H04N5/782Television signal recording using magnetic recording on tape
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Discrete Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Television Signal Processing For Recording (AREA)
  • Color Television Systems (AREA)

Abstract

본 발명은 디지탈 영상 압축방법 및 그 장치에 관한 것으로, 화면의 영상데이타를 비트율 감소를 위해 압축부호화하고 압축된 데이타를 부호화단위의 최소단위인 싱크블럭을 형성하여 기록매체에 기록하고, 기록매체로부터 기록된 데이타를 재생하는 디지탈 영상 기록재생방법에 있어서, 소정수의 N×N블럭을 하나의 유니브인 싱크블럭으로 나누고, 각 블럭마다 지그재그 스캐닝하여 1차원 배열하며, 이 1차원 배열된 각각의 블럭에 대해 같은 위치의 계수들끼리 모아서 올림순으로 배열하여 가변장 부호화하여 싱크블럭의 데이타 영역을 휘도신호 및 색차신호의 저주파성분과 고주파성분을 별도로 기록하여 기록효율을 높일 수 있다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital image compression method and apparatus thereof, which compresses and encodes image data of a screen to reduce a bit rate, and forms compressed blocks, which are the minimum units of coding units, and records the compressed data on a recording medium. In a digital video recording / reproducing method of reproducing recorded data, a predetermined number of N × N blocks are divided into one block of uni-sync blocks, zigzag-scanned for each block, and arranged one-dimensionally. Coefficients of the same positions are collected in a block and arranged in ascending order so that the data area of the sync block can separately record the low frequency components and the high frequency components of the luminance signal and the color difference signal to increase the recording efficiency.

Description

디지털 영상 압축방법 및 그 장치Digital image compression method and device

제1도는 일반적인 디지털 영상 압축 부호화 및 복호화장치의 블럭도.1 is a block diagram of a general digital image compression encoding and decoding apparatus.

제2도는 JPEG에서 제안하는 허프만 코드표를 설명하기 위한 도면.2 is a diagram for explaining a Huffman code table proposed by JPEG.

제3도는 본 발명에서 제안하는 싱크블럭으로 테이프에 기록되는 기록포맷을 설명하기 위한 도면.3 is a diagram for explaining a recording format recorded on a tape by a sync block proposed in the present invention.

제4도는 본 발명에 의한 디지털 영상 압축장치의 일 실시예에 따른 블럭도.4 is a block diagram according to an embodiment of a digital image compression device according to the present invention.

제5도는 매크로 블럭을 설명하기 위한 도면.5 is a diagram for explaining a macro block.

제6도는 제4도에 도시된 디지털 영상 압축장치에서 사용되는 새로운 허프만 코드표를 설명하기 위한 도면.FIG. 6 is a diagram for explaining a new Huffman code table used in the digital image compression apparatus shown in FIG. 4. FIG.

제7도는 제3도에 도시된 싱크블럭이 테이프에 기록되는 예를 설명하기 위한 도면.FIG. 7 is a diagram for explaining an example in which the sync block shown in FIG. 3 is recorded on a tape. FIG.

제8도는 싱크 블럭의 다른 예를 설명하기 위한 도면.8 is a diagram for explaining another example of a sink block.

제9도는 제8도에 도시된 싱크블럭이 테이프에 기록되는 다른 예를 설명하기 위한 도면.FIG. 9 is a diagram for explaining another example in which the sync block shown in FIG. 8 is recorded on a tape.

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

100 : 지그재그 배열부 101-104,111,112 : 블럭메모리100: zigzag arrangement 101-104,111,112: block memory

105,113 : 멀티플렉서 106,107,114,115 : 카운터105,113: Multiplexer 106,107,114,115: Counter

108,116 : 버퍼메모리 120 : 엔트로피부호화부108,116 buffer memory 120 entropy coding unit

121 : 새허프만 테이블121: New Huffman table

본 발명은 디지털 영상기기에 있어서 디지털 영상 압축방법 및 그 장치에 관한 것으로, 디지털 영상 압축시킨 데이터를 기록매체에 기록하는데 적합한 기록 포맷을 결정하고, 이 기록 포맷에 적합한 디지털 영상 압축방법 및 그 장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital video compression method and apparatus therefor, the method comprising determining a recording format suitable for recording digital video compressed data on a recording medium, and a digital video compression method suitable for the recording format. It is about.

최근 여러 디지털 분야에서의 눈부신 기술발전은 디지털 영상의 응용분야를 확대시키고 있지만 디지털화된 영상을 사용하는데 제약이 되는 것은 영상을 직접 디지털로 나타내는데 필요한 막대한 데이터량 때문에 영상 압축기법들을 연구해오고 있다.Recently, remarkable technological advances in various digital fields have expanded the application of digital video, but the limitations in using digitalized video have been studying image compression methods due to the enormous amount of data required to display digital images directly.

최근까지 수년간 표준화 작업이 JPEG(Joint Photographic Experts Group)에 의해서 진행되어서 표준화 안의 이름이 통상적으로 JPEG이라고 불리는데 JPEG은 그레이 스케일(gray scale) 및 칼라 영상을 포함하는 연속 톤(continuos-tome) 정지 영상의 디지털 압축에 관한 국제표준이다.In recent years, standardization work has been undertaken by the Joint Photographic Experts Group (JPEG), so the name in standardization is commonly referred to as JPEG, which is a series of continuous-tome still images that contain grayscale and color images. International standard for digital compression.

이 JPEG은 베이스라인 시스템(base-line system)이라고 부르는 핵심동작 모드를 정의하고 있어서 이 동작 모드는 다른 동작 모드들을 구현할 때 쓰는 한편 많은 응용분야에서 베이스라인 모드 자체만으로도 유용성이 충분히 발휘되고 있다.This JPEG defines a core mode of operation called the base-line system, which is used to implement other modes of operation, while in many applications, the baseline mode alone is useful.

이러한 JPEG에서 사용되는 DCT를 이용한 부호화 및 복호화방식을 사용하고 있는 디지털 영상 압축 부호화 및 복호화장치는 제1도에 도시된 바와 같다.The digital video compression encoding and decoding apparatus using the encoding and decoding method using DCT used in such JPEG is as shown in FIG.

먼저, 아날로그 영상을 디지털로 변환시켜 입력한 후 영상을 8×8화소 크기의 블럭들로 분할한다. 만약 1화면의 크기가 480(세로)×720 (가로)이면 5400개의 블럭이 생긴다.First, an analog image is converted into digital input and then divided into 8 × 8 pixel blocks. If the size of one screen is 480 (vertical) x 720 (horizontal), there are 5400 blocks.

DCT 변환부(10)에서는 분할된 8×8블럭단위로 DCT변환시킨다 8×8 영상 블럭은 2개의 공간차원(즉, x와 y축)의 함수인 64화소 이산신호이다. 정방향 이산여현변환(FDCT)은 이러한 이산신호를 입력으로 취하여 64직교 기준(basis)신호로 분리하여 출력한다. 각 직교 기준 성분(즉, DCT 계수)은 입력신호의 주파수 성분을 64개의 2차원 공간 주파수 성분으로 나타낼 때 각각의 공간 주파수 성분을 나타낸다. 따라서 DCT 계수들은 64화소 입력 영상에 따라 결정되는 독특한 주파수성분의 표현이라고 볼 수 있다.The DCT converter 10 performs DCT conversion on a divided 8 × 8 block basis. The 8 × 8 image block is a 64 pixel discrete signal that is a function of two spatial dimensions (that is, the x and y axes). The forward discrete cosine transform (FDCT) takes these discrete signals as inputs and separates them into 64 quadrature basis signals. Each orthogonal reference component (ie, DCT coefficient) represents each spatial frequency component when the frequency component of the input signal is represented by 64 two-dimensional spatial frequency components. Therefore, DCT coefficients can be regarded as a representation of unique frequency components determined according to the 64 pixel input image.

x=0, y=0 일 때의 DCT계수는 양차원으로 영 주파수를 나타내기 때문에 DC계수라 불리고 나머지 63개의 계수들은 AC 계수라 불린다. 8×8 블럭내에 있는 화소값들이 보통 급격히 변화하지 않으므로 대부분의 에너지가 저주파수 성분들에 모이게 된다. 따라서 대부분의 공간주파수 성분들은 영이거나 또는 크기가 거의 영에 가까울 정도로 작아서 인코딩할 필요가 없게 된다.The DCT coefficients at x = 0 and y = 0 are called DC coefficients because they represent zero frequency in both dimensions. The remaining 63 coefficients are called AC coefficients. Pixel values within an 8x8 block usually do not change rapidly, so most of the energy is collected in low frequency components. Thus, most of the spatial frequency components are zero or small enough to be nearly zero in size, so there is no need to encode them.

양자화부(20)에서는 FDCT의 출력인 64개의 DCT 계수들은 64개의 값을 갖는 양자화 테이블(30)에 의해서 각각 선형(uniform)양자화를 거치게 된다. DCT계수의 양자화는 양자화 사이즈로 나눈 후에 결과를 가장 가까운 정수로 치환함으로써 이루어 진다.In the quantization unit 20, 64 DCT coefficients, which are outputs of the FDCT, are subjected to linear quantization by the quantization table 30 having 64 values, respectively. Quantization of the DCT coefficients is achieved by dividing the result by the quantization size and then substituting the result for the nearest integer.

양자화 이후에 DC(직류)계수는 63개의 AC계수와 분리되어 독립적으로 처리된다. DC계수는 한 블럭내의 64개 화소들의 평균값이므로 일반적으로 인접 블럭의 DC값들과 큰 상관 관계가 있어서 서로간의 차이를 분리하여 부호화하는 것이 더 효율적이다.After quantization, the DC (DC) coefficients are separated from the 63 AC coefficients and processed independently. Since the DC coefficient is an average value of 64 pixels in a block, it is generally correlated with the DC values of adjacent blocks, so it is more efficient to separate and encode the difference from each other.

또한, 나머지 63개의 AC계수들은 지그재그로 재배열되며 저주파수 영역에 분포하는 영이 아닌 AC계수들은 함께 보이게 한 다음에 엔트로피(entropy)부호화를 통해 압축률을 증가시킬 수 있다In addition, the remaining 63 AC coefficients are rearranged in a zigzag fashion and non-zero AC coefficients distributed in the low frequency region can be seen together and then increase in compression through entropy encoding.

엔트로피부호화부(40)에서는 양자화된 DCT 계수들의 통계적인 특성을 부호화에 이용함으로써 얻게 된다. 즉, 통계적으로 자주 나타나는 계수값들에 대해서는 짧은 코드워드를 부여하고, 흔치 않은 경우에는 긴 코드워드를 부여함으로써 계수들을 표현하는데 필요한 평균 데이터량을 감축시킨다.The entropy encoding unit 40 obtains by using statistical characteristics of the quantized DCT coefficients in the encoding. That is, a short codeword is given to coefficient values that appear statistically frequently, and a long codeword is provided in rare cases to reduce the average amount of data required to express coefficients.

이후, 이진코드로 부호화된 가변길이 부호화된 코드가 테이프에 기록되기 위해서는 오류 정정 코드가 부가되고 다시 디지털 변조 등의 과정을 거쳐 기록 매체(도시되지 않음)에 기록되거나 전송된다.Then, in order for the variable length coded code encoded with a binary code to be recorded on a tape, an error correction code is added and then recorded or transmitted to a recording medium (not shown) through digital modulation or the like.

모든 블럭들에 대하여 이 과정을 반복 수행한다. DCT계수를 양자화하고 가변길이 부호로써 표현하는 과정에서 데이터의 양이 크게 줄어들어 압축효과를 얻는 것이다.Repeat this process for all blocks. In the process of quantizing the DCT coefficient and expressing it as a variable length code, the amount of data is greatly reduced to obtain a compression effect.

엔트로피 복호화부(60)에서는 코딩된 데이터를 허프만 테이블(70)을 통해 복호화하며, 영약자화부(80)에서는 양자화테이블(90)을 이용하여 역양자화를 한다.The entropy decoding unit 60 decodes the coded data through the Huffman table 70, and the weakening unit 80 performs inverse quantization using the quantization table 90.

IDCT(100)에서는 FDCT가 한 처리를 역으로 하며, 64개의 DCT계수를 취하여 변환함으로써 64개의 공간영역 화소들을 재현시킨다. 수학적으로 DCT는 1:1 변환하기 때문에 원래의 64영상 샘플들이 재현될 수 있다.In the IDCT 100, FDCT reverses a process, and 64 spatial domain pixels are reproduced by taking and converting 64 DCT coefficients. Mathematically, since DCT performs a 1: 1 conversion, the original 64 image samples can be reproduced.

여기서, 가변길이부호는 상술한 JPEG(정지 칼라 영상의 국제표준안) 부호화 방식의 한 모드인 베이스라인 시스템에서 사용하는 허프만 코드를 응용하여 부호화 한다.Here, the variable length code is encoded by applying the Huffman code used in the baseline system, which is a mode of the above-described JPEG (International Standard for Still Color Image) coding scheme.

이때, 베이스라인 시스템에서 사용하는 허프만 코드의 형식은 제2도에 도시된 바와 같다.At this time, the format of the Huffman code used in the baseline system is shown in FIG.

NNNN은 영(zero)값이 연속되는 길이이며, SSSS는 영이 아닌 계수를 카테고리별로 분류하여 놓은 클래스값이며, SSSS=0일 때 NNNN=0이라는 것은 EOB(블럭의 끝을 나타내는 신호)이며, NNNN=1-14는 확장모드(extended mode)에서 사용되어지며, NNNN=15는 연속영의 길이가 16이상일 때 사용된다.NNNN is a continuous length of zero values, SSSS is a class value that categorizes non-zero coefficients by category, and NNNN = 0 when SSSS = 0 is EOB (signal indicating end of block), NNNN = 1-14 is used in extended mode, and NNNN = 15 is used when the length of continuous zero is 16 or more.

이 허프만 코드는 제2도에 도시된 바와 같이 베이스라인 시스템에서는 1/0, 2/0, … 14/0의 위치에는 부호를 할당하지 않고 있다.This Huffman code is shown in FIG. 2 in 1/0, 2/0,... No sign is assigned to the 14/0 position.

본 발명의 목적은 싱크블럭단위로 기록매체에 기록되는 영상압축장치에 있어서 싱크블럭의 데이터영역을 휘도신호 및 색신호의 저주파성분과 고주파성분을 별도로 기록하여 기록매체의 기록효율을 높이는 디지털 영상 압축방법을 제공하는데 있다.Disclosure of Invention An object of the present invention is a digital image compression method for increasing recording efficiency of a recording medium by separately recording low and high frequency components of a luminance signal and a color signal in a data area of a sink block in an image compression apparatus recorded on a recording medium in sync block units. To provide.

본 발명의 다른 목적은 JPEG에서 제안하고 있는 베이스라인 시스템에서 가변장 부호화시 사용되는 허프만 코드에서 부호가 할당되지 않은 일부영역에도 부호를 할당하여 기록매체의 기록효율을 높일 수 있는 디지털 영상 압축장치를 제공하는데 있다.Another object of the present invention is to provide a digital image compression apparatus capable of improving recording efficiency of a recording medium by assigning a code to a portion of the Huffman code which is used for variable length encoding in the baseline system proposed by JPEG. To provide.

상술한 목적을 달성하기 위하여, 본 발명에 의한 디지털 영상 압축방법은 화면의 영상데이타를 비트율 감소를 위해 압축부호하고 압축된 데이터를 부호화단위의 최소단위인 싱크블럭을 형성하여 기록매체에 기록하고, 기록매체로부터 기록된 데이터를 재생하는 디지털 영상 압축방법에 있어서, 소정수의 N×N블럭을 하나의 유니트로 한 싱크블럭으로 나누고, 각 블럭마다 지그재그 스캐닝하여 1차원 배열하며, 이 1차원 배열된 각각의 블럭에 대해 같은 위치의 계수들끼리 모아서 올림순으로 배열하여 가변장 부호화함을 특징으로 하고 있다.In order to achieve the above object, the digital image compression method according to the present invention compresses and encodes the image data of the screen to reduce the bit rate, and forms a sync block that is the minimum unit of the coding unit to record the compressed data to the recording medium, A digital image compression method for reproducing data recorded from a recording medium, comprising dividing a predetermined number of N × N blocks into one sync block as one unit, zigzag scanning for each block, and aligning one-dimensionally. Variable length coding is performed by collecting coefficients of the same position for each block and arranging them in ascending order.

또한, 본 발명에 의한 디지털 영상 압축장치는 입력되는 영상신호를 이산여현변환하는 이산여현변환수단; 상기 이산여현변환수단에서 출력되는 변환계수를 양자화하기 위한 양자화수단; 상기 양자화수단에서 출력되는 양자화된 데이터를 소정수의 N×N블럭을 하나의 유니트로 한 싱크블럭으로 나누고, 각 블럭마다 지그재그 스캐닝하여 1차원 배열하며, 이 1차원 배열된 각각의 블럭에 대해 같은 위치의 계수들끼리 모아서 올림순으로 배열하는 재배열수단; 및 상기 재배열수단으로부터 출력되는 데이터를 가변장부호화하여 기록매체에 전송하는 가변장부호화수단을 포함함을 특징으로 하고 있다.In addition, the digital image compression device according to the present invention comprises: discrete cosine converting means for discrete cosine transforming an input video signal; Quantization means for quantizing the transform coefficient output from the discrete cosine transform means; The quantized data output from the quantization means is divided into a sync block having a predetermined number of N × N blocks as one unit, and zigzag-scanned for each block, and arranged one-dimensionally. Rearrangement means for collecting coefficients of position and arranging them in ascending order; And variable length encoding means for variable length encoding the data outputted from the rearrangement means and transmitting the data to the recording medium.

이하, 첨부된 도면을 참조하여 본 발명에 의한 디지털 영상 압축 방법 및 그 장치의 바람직한 실시예를 설명하기로 한다.Hereinafter, with reference to the accompanying drawings will be described a preferred embodiment of a digital image compression method and apparatus according to the present invention.

영상 압축장치에서 가변길이부호를 테이프에 저장하기 위해서는 테이프 기록 포맷을 결정해야 한다.In order to store a variable length code on a tape in an image compression apparatus, a tape recording format must be determined.

본 발명에서는 제3도에 도시된 바와 같은 싱크블럭으로 기록되는 테이프 기록 포맷을 제안하고자 한다.The present invention proposes a tape recording format recorded in a sync block as shown in FIG.

또한, 제3도에 도시된 바와 같은 테이프 포맷은 IDC(Independently Decorable Code : 독립복호가능코드)와 DDC(Dependently Decorable Code : 종속복호 가능코드)영역에 효율적으로 데이터를 기록하기 위해 새로운 방식의 가변길이 부호표(허프만 테이블)를 사용하고자 한다.In addition, the tape format as shown in FIG. 3 has a new variable length for efficiently recording data in the IDC (Independently Decorable Code) and DDC (Dependently Decorable Code) areas. We want to use a sign table (Huffman table).

이에 대해 제4도에 도시된 본 발명에 의한 디지털 영상 압축 장치의 일 실시예에 따른 블럭도를 중심으로 상세히 설명하기로 한다.This will be described in detail with reference to a block diagram according to an embodiment of the digital image compression device according to the present invention shown in FIG.

우선, 양자화부(도시되지 않음)로부터 출력되는 양자화된 데이터의 부호화는 대개 일정한 크기의 부영상단위로 독립시켜 실행하게 된다. 8×8 화소 크기의 한 블럭마다 또는 4개의 휘도블럭과 1개씩의 색차신호블럭마다 이를 1개의 매크로 블럭(macro block)이라 고하며 또는 2개의 매크로 블럭마다 독립적으로 부호화를 할 수 있다.First, encoding of quantized data output from a quantization unit (not shown) is usually performed independently by sub-picture units having a constant size. Each block of 8x8 pixels or four luminance blocks and one chrominance signal block are referred to as one macro block or can be encoded independently for every two macro blocks.

여기서는 하나의 독립된 부호화단위를 싱크단위(sync unit)라고 부른다, 또한, 본 발명에서는 1개의 매크로블럭을 1싱크단위로 한다.One independent coding unit is referred to herein as a sync unit. In the present invention, one macroblock is one sync unit.

1개의 매크로 블럭이란, 많은 부호화 방식에서 제5도에 도시된 바와 같은 4개의 휘도신호블려(Yl, Y2, Y3, Y4)과 1개의 R-Y색차신호 블럭인 Cr블럭 , 1개의 B-Y색차신호 블럭인 Cb블럭으로 구성된 부영상(subimage)을 의미한다.One macro block is four luminance signal blurs (Y1, Y2, Y3, Y4), one RY color difference signal block Cr block, and one BY color difference signal block as shown in FIG. It means a subimage composed of Cb blocks.

이 블럭들은 이미 양자화를 마친 정수형 DCT계수이다. 여기서는 하나의 블럭을 8×8이 아닌 4×4 크기의 블럭으로 표현하였지만 제4도에 도시된 장치는 8×8블럭으로도 사용 가능하도록 하고 있다.These blocks are already quantized integer DCT coefficients. In this example, one block is expressed as a block of 4 × 4 size rather than 8 × 8, but the device shown in FIG. 4 can be used as an 8 × 8 block.

지그재그 배열부(100)에서는 제5도에 도시된 각 블럭마다 지그재그 스캐닝을 하여 1차원 배열한다.In the zigzag arrangement unit 100, zigzag scanning is performed for each block shown in FIG.

제1휘도블럭 Yl : 10 -2 3 0 1 0 0 1 EOB -(1)1st luminance block Yl: 10 -2 3 0 1 0 0 1 EOB-(1)

제2휘도블럭 Y2 : 11 2 -1 0 -2 0 0 0 0 0 0-1 EOB -(2)2nd luminance block Y2: 11 2 -1 0 -2 0 0 0 0 0 0-1 EOB-(2)

제3휘도블럭 Y3 : 8 0 3 1 -1 EOB -(3)3rd luminance block Y3: 8 0 3 1 -1 EOB-(3)

제4휘도블럭 Y4 : 11 1 EOB -(4)4th luminance block Y4: 11 1 EOB-(4)

R-Y 색차신호블럭 Cr : -4 1 EOB -(5)R-Y color difference signal block Cr: -4 1 EOB-(5)

B-Y 색차신호블럭 Cb : 2 -1 EOB -(6)B-Y chrominance signal block Cb: 2 -1 EOB-(6)

이렇게 1차원 배열된 각각의 블럭을 하나의 배열로 합치기 위해 같은 위치의 계수들끼리 모아서 올림순으로 배열한다.In order to combine the blocks of this one-dimensional array into an array, the coefficients of the same position are collected and arranged in ascending order.

4개의 휘도신호 블럭을 하나의 1차원 배열로 재구성한 것은 다음과 같다.The reconstruction of four luminance signal blocks into one one-dimensional array is as follows.

즉, 제1 내지 제4블럭메모리(101-104)에 위 (1) 내지 (4)에 나타난 바와 같이 4개의 휘도신호 블럭(Yl, Y2, Y3, Y4)의 1차원 지그재그 배열된 데이터를 저장한다. 제1카운터(106)에서는 0에서 3까지를 카운팅하는 4진 카운터로서 , 이 출력은 제1멀티플렉서(105)의 제1 및 제2 선택단자(SEL0, SEL1)에 입력된다.That is, one-dimensional zigzag-arranged data of four luminance signal blocks Y1, Y2, Y3, and Y4 is stored in the first to fourth block memories 101 to 104, as shown in (1) to (4) above. do. The first counter 106 is a four-counter counter that counts from 0 to 3, and this output is input to the first and second selection terminals SEL0 and SEL1 of the first multiplexer 105.

제1카운터(106)에서 3을 카운팅할 때마다 이 출력은 낸드게이트(G1)를 통해 0에서 63까지를 카운팅하는 64진 카운터인 제2카운터(107)의 클럭신호로 입력됨에 따라 제2카운터(107)의 출력은 1씩 증가하여 제1 내지 제4블럭메모리(101-104)의 독출어드레스신호(A0-A5)로 입 력된다.Each time counting 3 in the first counter 106, this output is inputted as a clock signal of the second counter 107, which is a 64-bit counter that counts from 0 to 63 through the NAND gate G1. The output of 107 is incremented by one and input as the read address signals A0-A5 of the first to fourth block memories 101-104.

제1멀티플렉서(105)에서는 제1카운터(106)의 출력선택신호에 따라 제2카운터(107)로부터 출력되는 어드레스에 저장된 제1 내지 제4블럭메모리(101-104)의 출력 중 하나씩 선택해서 제1버퍼메모리(108)에 저장한다.The first multiplexer 105 selects one of the outputs of the first to fourth block memories 101 to 104 stored at an address output from the second counter 107 according to the output selection signal of the first counter 106. 1 is stored in the buffer memory 108.

2개의 색차블럭에 대해서도 1차원 배열로 재구성한 것은 다음과 같다.The two color difference blocks are reconstructed as one-dimensional arrays as follows.

제5 및 제6블럭메모리(111-112)에 위 (5) 내지 (6)에 나타난 바와 같이 2개의 색차신호 블럭(Cr, Cb)의 1차원 지그재그 배열된 데이터를 저장한다, 제3카운터(114)에서는 0, 1을 카운팅하는 2진 카운터로서, 이 출력은 제2멀티플렉서(113)의 제1 및 제2 선택단자(SEL)에 입력된다.In the fifth and sixth block memories 111-112, one-dimensional zigzag-arranged data of two color difference signal blocks Cr and Cb is stored as shown in (5) to (6). In 114), it is a binary counter that counts 0 and 1, and this output is input to the first and second selection terminals SEL of the second multiplexer 113.

제3카운터(114)에서 1을 카운팅할 때마다 이 출력은 인버터(INV1)를 통해 0에서 63까지를 카운팅하는 64진 카운터인 제4카운터(115)의 클럭신호로 입력됨에 따라 제4카운터(115)의 출력은 1씩 증가하여 제5 및 제6블럭메모리(111-112)의 독출어드레스신호(A0-A5)로 입력된다.Whenever the third counter 114 counts 1, the output is inputted as a clock signal of the fourth counter 115, which is a 64-bit counter that counts from 0 to 63 through the inverter INV1. The output of 115 increases by 1 and is input as the read address signals A0-A5 of the fifth and sixth block memories 111-112.

제2멀티플렉서(113)에서는 제3카운터(114)의 출력선택신호에 따라 제4카운터(115)로부터 출력되는 어드레스에 저장된 제5 또는 제6블럭메모리(111-112)의 출력을 선택해서 제1버퍼메모리(116)에 저장한다.The second multiplexer 113 selects an output of the fifth or sixth block memories 111-112 stored at an address output from the fourth counter 115 according to the output selection signal of the third counter 114, and selects the first output. Stored in the buffer memory 116.

제1버퍼메모리(108)에 저장되는 데이터의 순서는 아래(7)와 같다.The order of data stored in the first buffer memory 108 is as follows (7).

휘도신호: 10 11 8 11 -2 2 0 1 3 -1 3 EOB 0 0 1 1 -2 -1 0 0 EOB 0 0 1 0 EOB 0 0 0 -1 EOB --(7)Luminance signal: 10 11 8 11 -2 2 0 1 3 -1 3 EOB 0 0 1 1 -2 -1 0 0 EOB 0 0 1 0 EOB 0 0 0 -1 EOB-(7)

제2버퍼메모리(116)에 저장되는 데이터의 순서는 아래 (8)와 같다.The order of data stored in the second buffer memory 116 is as follows (8).

색신호 : -4 2 1 -1 EOB EOB --(8)Color Signal: -4 2 1 -1 EOB EOB-(8)

휘도신호의 경우 블럭이 4개이므로 EOB(end of block)가 4개 존재한다. EOB가 발생할 때마다 그 앞에 연속되는 제로의 개수인 연속영 개수(zero run length)를 계산한다.In the case of the luminance signal, since there are four blocks, there are four EOBs. Whenever an EOB occurs, the zero run length, which is the number of consecutive zeros before it, is calculated.

이렇게 제1버퍼메모리(108) 및 제2버퍼메모리(116)에 저장된 데이터를 엔트로피부호화부(120)에서는 본 발명에서 제안하고 있는 새로운 허프만 테이블(121)을 이용하여 부호화한다. 이를 상세히 설명하면 다음과 같다.In this way, the data stored in the first buffer memory 108 and the second buffer memory 116 is encoded by the entropy encoding unit 120 using the new Huffman table 121 proposed in the present invention. This will be described in detail as follows.

제6도에 도시된 바와 같이 새로운 허프만 테이블(121)에서는 EOB란 SSSS=0이 되는 경우를 의미한다. 따라서 첫 번째 EOB는 zero run length가 2이므로 2/0으로 표시할 수 있다. 나머지 EOB들은 다음과 같다.As shown in FIG. 6, in the new Huffman table 121, EOB means SSSS = 0. Therefore, the first EOB can be marked as 2/0 because the zero run length is 2. The remaining EOBs are as follows.

휘도신호인 경우In case of luminance signal

first EOB : 0/0 --(9)first EOB: 0/0-(9)

second EOB : 2/0 --(10)second EOB: 2/0-(10)

third EOB : 1/0 --(11)third EOB: 1/0-(11)

fourth EOB : 1/0 --(12)fourth EOB: 1/0-(12)

색신호인 경우In case of color signal

first EOB : 0/0 --(13)first EOB: 0/0-(13)

second EOB : 0/0 --(14)second EOB: 0/0-(14)

만약, 어느 블럭의 1차원 계수 배열의 가장 끝의 값이 영이 아닌(non zero) 계수이면 당연히 그에 해당하는 EOB는 표시하지 않는다.If the end value of the one-dimensional coefficient array of a block is a non-zero coefficient, the corresponding EOB is not displayed.

제6도는 도시된 새로운 허프만 테이블(121)에서는 제2도에 도시된 테이블에서 베이스라인 시스템에서는 사용하지 않고 다른 목적으로 사용하는 1/0, 2/0, …, 14/0의 값들을 연속영갯수(zero run-length)/EOB(=0))의 표현을 위해서 사용할 수 있게 하였다.FIG. 6 shows the new Huffman table 121 shown in FIG. 6, which is not used in the baseline system but used for other purposes in the table shown in FIG. In addition, the values 14/0 can be used to represent zero run-length / EOB (= 0).

여기서, 14/0은 두 가지 의미를 가진다. 즉, 14개의 연속영 개수 다음에 EOB가 발생하는 경우와 15개의 연속영 개수 다음에 EOB가 발생하는 경우이다. 이를 구분하기 위해 부가 비트 1비트가 추가된다.Here, 14/0 has two meanings. In other words, EOB occurs after 14 consecutive zeros and EOB occurs after 15 consecutive zeros. One additional bit is added to distinguish this.

이상과 같은 DCT계수 배열과 새로운 허프만 테이블을 사용하는 이유는 DVCR의 고속 탐색과 같은 트랙 재생시에 일정한 저주파성분의 데이터만을 복원하여 디스플레이하는데 유리하기 때문이다.The reason for using the above-described DCT coefficient array and the new Huffman table is that it is advantageous to restore and display only data of a constant low frequency component during track reproduction such as high-speed search of DVCR.

따라서, 휘도블럭 4×N개와 색차블럭 2×N개로 구성된 N개의 매크로 블럭을 1 싱크단위라고 하고 휘도와 색차신호에 대하여 각각 1차원 배열을 한다. 1차원 배열시 여러 개의 EOB가 존재하는 문제는 앞에서 설명한 새로운 허프만 부호표에 의해 표현이 가능해진다.Therefore, N macroblocks composed of 4 x N luminance blocks and 2 x N chrominance blocks are referred to as one sync unit, and one-dimensional arrays of luminance and color difference signals are performed. The problem of multiple EOBs in one-dimensional arrays can be represented by the new Huffman code table described above.

이어서, 엔트로피부호화부(120)로부터 출력되는 부호화된 데이터를 본 발명에서 제안한 기록포맷에 따라 테이프에 기록시 테이프 기록 포맷 내의 한 싱크 블럭에 대하여 설명하면 다음과 같다.Next, a description will be given of one sync block in the tape recording format when the encoded data output from the entropy encoding unit 120 is recorded on the tape according to the recording format proposed by the present invention.

우선, DDC는 종속복호화가능코드로서 IDC가 복호화되어야만 복호될 수 있고 자체적으로는 복호가 불가능한 정보이다. 트릭 플레이를 위해서 IDC를 일정간격으로 기록한다. 1매크로블럭은 lIDC와 대응한다. 1프레임은 1350개의 매크로블럭단위로 비트를 고정하는 효과가 있다.First, DDC is subdecoding code that is decoded only when IDC is decoded and cannot be decoded by itself. Record the IDC at regular intervals for trick play. One macroblock corresponds to lIDC. One frame has the effect of fixing bits in units of 1350 macroblocks.

IDC영역에는 Y와 C의 DC계수와 낮은 주파수 영역으로부터 일정한 크기의 주파수 영역에 해당하는 AC계수들이 기록된다.In the IDC region, the DC coefficients of Y and C and the AC coefficients corresponding to the constant frequency region from the low frequency region are recorded.

이 IDC영역은 Y의 DC계수와 Y의 저주파영역 계수들이 기록되는 제1 독립복호가능코드(IDC1)영역과, C의 DC계수와 C의 저주파영역 계수들이 기록되는 제2독립복호가능코드(IDC2)영역으로 구성된다. IDC영역에서 기록하다 남은 Y와 C의 AC계수들이 기록된다. 일정 크기의 화면 데이터가 이 영역에 다 기록되지 못하고 남으면 그 다음 싱크블럭의 DDC 영역에 기록될 수 있다. 또한 S는 재싱크 코드(resync code)로서 16진수로 표시하면 ffff값이 되고 싱크블럭의 번호이다.This IDC region includes a first independent decodeable code (IDC1) region in which the DC coefficient of Y and the low frequency region coefficients of Y are recorded, and a second independent decodeable code (IDC2) in which the DC coefficient of C and the low frequency region coefficients of C are recorded. Area). The remaining Y and C AC coefficients are recorded in the IDC area. If the screen data of a certain size cannot be recorded in this area, it can be recorded in the next DDC area of the sync block. In addition, S is a resync code, which is ffff when expressed in hexadecimal, and is the number of sync blocks.

한편, M번째 싱크 단위의 DC성분들과 일정한 양의 저주파성분은 반드시 M 번째 싱크 블럭의 IDC영역에 기록되어야 한다. M번째 싱크 블럭의 IDC영역에 기록될 데이터는 향상 M번째 싱크단위의 데이터일 필요는 없다.On the other hand, the DC components of the Mth sink unit and a certain amount of low frequency components must be recorded in the IDC region of the Mth sink block. The data to be recorded in the IDC area of the Mth sink block need not be data in the enhancement Mth sink unit.

요약하면 싱크블럭은 싱크코드(S), 싱크블럭의 번호를 나타내는 식별코드(ID), Y의 DC계수와 Y의 저주파영역 계수들에 대해 독립적으로 복호가능한 제1독립복호가능코드(IDC1), C의 DC계수와 C의 저주파영역 계수들에 대해 독립적으로 복호 가능한 제2독립복호가능코드(IDC2), 제1 및 제2독립복호가능코드(IDC1, IDC2)의 에러정정을 위한 부가코드(P), 제1 및 제2 독립복호가능코드(IDC1, IDC2)에 대해 종속적으로 복호가능한 종속복호가능코드(DDC), 종속복호가능코드(DDC)의 에러정정을 위한 부가코드(P)로 이루어진다.In summary, the sync block includes a sync code (S), an identification code (ID) indicating the number of the sync block, a first independent decodable code (IDC1) independently decodable on the DC coefficient of Y and the low frequency region coefficients of Y, Additional code (P) for error correction of the second independent decodeable code (IDC2) and the first and second independent decodeable codes (IDC1, IDC2) independently decoded for the DC coefficient of C and the low frequency region coefficients of C. ), The sub-decoding code (DDC) which can be decoded dependently on the first and second independent decodeable codes (IDC1, IDC2), and the additional code (P) for error correction of the sub-decoding code (DDC).

가변 길이 코드인 허프만 코드를 사용하여 부호화한 네 개의 싱크 단위가 다음과 같은 데이터 길이를 가진다면 이에 해당하는 4개의 싱크 블럭은 제7도에 도시된 바와 같다.If four sync units encoded using the Huffman code, which is a variable length code, have the following data lengths, four sync blocks corresponding thereto are shown in FIG.

싱크단위1 = Y1(800bits) + C1(300bits)Sync Unit 1 = Y1 (800bits) + C1 (300bits)

싱크단위2 = Y2(750bits) + C2(200bits)Sync Unit2 = Y2 (750bits) + C2 (200bits)

싱크단위3 = Y3(300bits) + C3(70bits)Sync Unit 3 = Y3 (300bits) + C3 (70bits)

싱크단위4 = Y4(850bits) + C4(250bits)Sync Unit 4 = Y4 (850bits) + C4 (250bits)

여기서 , IDC1 영역은 400비트, IDC2 영역은 100비트, DDC영역은 550비트로 할당되어 있다.Here, the IDC1 area is allocated 400 bits, the IDC2 area 100 bits, and the DDC area 550 bits.

제7도에 도시된 바와 같이, 각 싱크블럭의 IDC에 반드시 휘도신호와 색차신호의 영역을 따로 배치하여(IDC1, IDC2) 기록이 어려웠지만 간단하게 기록하기 위해 IDC영역을 하나로 만들 수도 있다. 즉, 제8도에 도시된 바와 같이 IDC 영역에 휘도성분의 DC와 AC성분을 우선 기록한다. 색차신호의 DC와 AC는 기록할 여분이 없으면 DDC로 밀려나서 기록된다.As shown in FIG. 7, the recording of the luminance signal and the color difference signal must be separately arranged in the IDC of each sync block (IDC1, IDC2), but recording is difficult. That is, as shown in FIG. 8, the DC and AC components of the luminance component are first recorded in the IDC region. The DC and AC of the chrominance signal are pushed to the DDC and recorded when there is no spare to record.

요약하면, 싱크블럭은 싱크코드(S), 식별코드(ID), 독립적으로 복호가능한 독립복호가능코드(IDC), 독립복호가능코드의 에러정정을 위한 부가코드(P), 상기 독립복호가능코드에 대해 종속적으로 복호가능한 종속복호가능코드, 종속복호가능코드의 에러정정을 위한 부가코드(P)로 이루어진다.In summary, the sync block includes a sync code S, an identification code ID, an independently decodeable IDC, an additional code P for error correction of the independent decoding code, and the independent decoding code. Dependent decodable code that can be decoded dependently on the subcarrier, and additional code (P) for error correction of the subdecodable code.

이 데이터 기록형식은 제7도보다는 간단하지만 트릭재생시 색신호의 복원에 불리하다.This data recording format is simpler than that of Fig. 7, but is disadvantageous for the restoration of color signals during trick reproduction.

싱크 블럭내의 IDC 영역은 500비트, DDC영역은 550비트가 할당되어 있으며, 이 IDC와 DDC의 길이가 제6도에서 설명한 것과는 달라도 데이터는 앞에 설명한 바와 같이 IDC영역에 기록되는 순서는 Y의 DC계수, Y의 AC계수, C의 DC계수, C의 AC계수순이며, 이 IDC영역은 Y와 C의 DC계수와 낮은 주파수 영역으로부터 일정한 크기의 주파수 영역에 해당하는 AC계수들이 기록되며, DDC영역에는 IDC영역에서 기록하다 남은 Y와 C의 계수가 기록되며 일정 크기의 화면데이타 영역에 다 기록되지 못하고 남으면 그 다음 싱크블럭의 DDC 영역에 기록될 수 있다.500 bits are allocated for the IDC area in the sink block and 550 bits for the DDC area. Although the lengths of the IDC and DDC are different from those described in FIG. 6, the data is written in the IDC area as described above in the order of DC coefficient of Y. , AC coefficient of Y, DC coefficient of C, AC coefficient of C. This IDC area records the DC coefficients of Y and C and the AC coefficients corresponding to the constant frequency range from the low frequency area. The remaining Y and C coefficients recorded in the IDC area are recorded. If the remaining data cannot be recorded in the screen data area of a predetermined size, they may be recorded in the DDC area of the next sync block.

이상으로 상술한 바와 같이 본 발명에 의한 디지털 영상 압축방법 및 그 장치는 싱크블럭단위로 기록매체에 기록되는 D-VCR과 같은 디지털 영상기기에 있어서 이 싱크블럭의 데이터 영역을 휘도신호 및 색차신호의 저주파성분과 고주파성분을 별도로 기록하여 기록효율을 높이며, 이 기록포맷에 적합하게 가변장 부호화기에 위해서 허프만 코드에서 일부 부호화되지 않는 영역인 연속영 개수/EOB영역을 활용함으로써 기록효율을 높일 수 있다.As described above, in the digital image compression method and apparatus according to the present invention, in a digital imaging apparatus such as a D-VCR which is recorded on a recording medium in units of sync blocks, the data area of the sync block is divided into a luminance signal and a color difference signal. The recording efficiency can be increased by separately recording the low frequency component and the high frequency component, and the recording efficiency can be improved by utilizing the continuous zero count / EOB region, which is an area not partially encoded by the Huffman code, for a variable length encoder suitable for this recording format.

Claims (8)

화면의 영상 데이터를 비트율 감소를 위해 압축부호화하고 압축된 데이터를 부호화단위의 최소화단위인 싱크블럭을 형성하여 기록매체에 기록하고, 기록매체로부터 기록된 데이터를 재생하는 디지털 영상 기록재생방법에 있어서, 정수의 N×N블럭을 하나의 유니트인 싱크블럭으로 나누고, 각 블럭마다 지그재그 스캐닝하여 1차원 배열하며, 이 1차원 배열된 각각의 블럭에 대해 같은 위치의 계수들끼리 모아서 올림순으로 배열하여 가변장 부호화하는 디지털 영상 압축방법.In a digital video recording and reproducing method of compressing and encoding image data of a screen to reduce a bit rate, and forming the compressed data into a recording block by minimizing a coding unit, and reproducing the recorded data from the recording medium. Divide the N × N blocks of integers into a sync block, which is a unit, zigzag scan each block, and arrange them in one-dimensional order.The coefficients of the same position are collected and arranged in ascending order for each one-dimensional block. Digital video compression method for long coding. 제1항에 있어서 , 상기 가변장 부호화과정시 사용되는 허프만 테이블의 모든 영역을 활용하여 가변장 부호화함을 특징으로 하는 디지털 영상 압축방법.The digital image compression method of claim 1, wherein the variable length encoding is performed by using all regions of the Huffman table used in the variable length encoding process. 제1항에 있어서, 상기 싱크블럭은 싱크코드, 싱크블럭의 변호를 나타내는 식별코드, 휘도신호(Y)의 DC계수와 Y의 저주파영역 AC계수들에 대해 독립적으로 복호가능한 제1독립복호가능코드(IDC1), 색신호(C)의 DC계수와 C의 저주파영역 AC계수들에 대해 독립적으로 복호가능한 제2독립복호가능코드(IDC2), 제1 및 제2독립복호가능코드의 에러정정을 위한 부가코드, 제1 및 제2독립복호가능코드에 대해 종속적으로 복호가능한 종속복호 가능코드, 종속복호가능코드의 에러정정을 위한 부가 코드로 이루어진 것을 특징으로 하는 디지털 영상 압축방법.2. The independent independent decodable code according to claim 1, wherein the sync block is independently decoded with respect to a sync code, an identification code representing a representation of the sync block, a DC coefficient of the luminance signal Y, and a low frequency region AC coefficient of Y. (IDC1), addition for error correction of the second independent decodeable code (IDC2), the first and second independent decodeable codes independently decoded with respect to the DC coefficient of the color signal C and the low frequency region AC coefficients of C A code, a subdecodable code that can be decoded dependently on a first and a second independent decodable code, and an additional code for error correction of the subdecodable code. 제3항에 있어서, M번째 싱크 단위의 DC성분들과 일정한 양의 저주파성분은 반드시 M번째 싱크 블럭의 IDC1 및 IDC2 영역에 기록되며, DDC 영역은 상기 IDC1, IDC2영역에서 기록하다 남은 Y와 C의 AC계수들이 기록되며 일정크기의 화면 데이타가 이 영역에 다 기록되지 못하고 남으면 그 다음 싱크블럭의 DDC영역에 기록됨을 특징으로 하는 디지털 영상 압축방법.4. The DC component of the Mth sink unit and a predetermined amount of low frequency components are necessarily recorded in the IDC1 and IDC2 regions of the Mth sink block, and the DDC region is recorded in the IDC1 and IDC2 regions. The AC coefficients of the digital image compression method is characterized in that if a certain size of screen data is not recorded in this area, it is recorded in the next DDC area of the sync block. 제1항에 있어서, 상기 싱크코드는 싱크코드, 식별코드, 독립적으로 복호가능한 제1데이타코드, 제1데이타코드의 에러정정을 위한 제1부가코드, 상기 제1데이타코드에 대해 종속적으로 복호가능한 제2데이타코드, 제2데이타코드의 에러정정을 위한 제2부가코드로 이루어진 것을 특징으로 하는 디지털 영상 압축 부호화방법.The method of claim 1, wherein the sync code is a sync code, an identification code, a first data code that can be independently decoded, a first additional code for error correction of the first data code, and can be decoded dependently on the first data code. And a second additional code for error correction of the second data code and the second data code. 입력되는 영상신호를 이산여현변환하는 이산여현변환수단; 상기 이산여현변환수단에서 출력되는 변환계수를 양자화기 위한 양자화수단; 상기 양자화수단에서 출력되는 양자화된 데이터를 소정수의 N×N블럭을 하나의 유니트로 하는 싱크블럭으로 나누고, 각 블럭마다 지그재그 스캐닝하여 1차원 배열하며, 이 1차원 배열된 각각의 블럭에 대해 같은 위치의 계수들끼리 모아서 올림순으로 배열하는 재배열수단; 상기 재배열수단으로부터 출력되는 데이터를 독립복호가능코드와 종속복호가능코드 및 상기 코드들의 에러정정을 위한 부가코드들을 테이프의 기록포맷에 합당하게 기록할 수 있도록 새로운 호프만테이블을 이용하여 엔트로피 부호화하는 엔트로피부호화수단을 포함함을 특징으로 하는 디지털 영상 압축장치.Discrete cosine converting means for converting the input video signal into discrete cosine; Quantization means for quantizing the transform coefficient output from the discrete cosine transform means; The quantized data output from the quantization means is divided into a sync block having a predetermined number of N × N blocks as one unit, and zigzag scanning is performed for each block, and arranged one-dimensionally. Rearrangement means for collecting coefficients of position and arranging them in ascending order; Entropy that entropy-encodes the data output from the rearrangement means using a new Hoffman table to properly record the independent decodable code, the dependent decodable code, and additional codes for error correction of the codes in a tape recording format. Digital video compression apparatus comprising the encoding means. 상기 제6항에 있어서, 상기 재배열수단은 상기 양자화수단으로부터 양자화된 상기 소정수의 N×N 블럭의 싱크블럭의 데이터를 각 블럭에 대하여 지그재그 스캐닝을 하여 1차원 배열하는 지그재그 배열 수단; 상기 지그재그 배열수단으로부터 출력되는 상기 싱크블럭에 대하여 복수의 휘도신호 블럭의 지그재그 배열된 출력을 일시 저장하는 복수의 휘도신호 블럭메모리; 상기 복수의 휘도신호 블럭 메모리의 출력으로부터 같은 위치의 계수를 저주파에서 고주파계수의 올림순으로 선택하는 제1선택수단; 상기 복수의 색신호 블럭 메모리의 출력으로부터 같은 위치의 계수를 저주파에서 고주파계수의 올림순으로 선택하도록 제어하는 제2선택수단, 상기 제1선택수단에 의해 선택된 싱크블럭분의 휘도신호의 계수를 저장한 후 상기 가변장 부호화수단으로 출력하는 제1버퍼메모리; 상기 제2선택수단에 의해 선택된 싱크블럭분의 색신호를 저장한 후 상기 가변장 부호화수단으로 출력하는 제2버퍼메모리를 포함함을 특징으로 하는 영상 압축장치.7. The apparatus of claim 6, wherein the rearrangement means comprises: zigzag arrangement means for zigzag scanning one block of data of sync blocks of the predetermined number of NxN blocks quantized by the quantization means; A plurality of luminance signal block memories for temporarily storing zigzag arranged outputs of a plurality of luminance signal blocks with respect to the sync block output from the zigzag arrangement means; First selecting means for selecting coefficients of the same position from the outputs of the plurality of luminance signal block memories in ascending order of low frequency to high frequency coefficient; Second selection means for controlling to select coefficients of the same position from the outputs of the plurality of color signal block memories in ascending order of low frequency to high frequency coefficient, and storing coefficients of the luminance signal for the sync block selected by the first selection means; A first buffer memory which is then output to the variable length encoding means; And a second buffer memory for storing the color signal for the sync block selected by the second selecting means and outputting the color signal to the variable length encoding means. 제7항에 있어서, 상기 제1선택수단은 상기 복수의 휘도신호 블럭메모리로부터 출력되는 신호를 선택하는 스위칭수단, 상기 복수의 휘도신호 블럭메모리로부터 지그재그 배열된 양자화된 계수로부터 같은 위치의 계수에서 올림순으로 독출되도록 상기 복수개의 휘도신호 블럭메모리의 독출어드레스를 발생하는 제1어드레스 발생수단을 구비하고, 상기 제2선택수단은 상기 복수의 색신호 블럭메모리로부터 출력되는 신호를 선택하는 스위칭수단, 상기 복수의 색신호 블럭메모리에 지그재그 배열된 양자화된 계수로부터 같은 위치의 계수에서 올림순으로 독축되도록 상기 복수의 색신호 블럭메모리의 독출어드레스를 발생하는 제2어드레스 발생수단을 구비함을 특징으로 하는 디지털 영상 압축장치.8. The apparatus according to claim 7, wherein said first selecting means rounds up at a coefficient at the same position from switching means for selecting signals output from said plurality of luminance signal block memories, and quantized coefficients zigzag arranged from said plurality of luminance signal block memories; A first address generating means for generating a read address of said plurality of luminance signal block memories so as to be sequentially read out, said second selecting means being a switching means for selecting signals outputted from said plurality of color signal block memories; And a second address generating means for generating a read address of said plurality of color signal block memories to be read out in ascending order from the quantized coefficients zigzag arranged in said color signal block memory of said plurality of color signal block memories. .
KR1019920015589A 1992-08-28 1992-08-28 Digital image compressing method and device KR0160616B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019920015589A KR0160616B1 (en) 1992-08-28 1992-08-28 Digital image compressing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019920015589A KR0160616B1 (en) 1992-08-28 1992-08-28 Digital image compressing method and device

Publications (2)

Publication Number Publication Date
KR940005159A KR940005159A (en) 1994-03-16
KR0160616B1 true KR0160616B1 (en) 1999-01-15

Family

ID=19338653

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019920015589A KR0160616B1 (en) 1992-08-28 1992-08-28 Digital image compressing method and device

Country Status (1)

Country Link
KR (1) KR0160616B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000059527A (en) * 1999-03-04 2000-10-05 윤종용 Image data compression method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000059527A (en) * 1999-03-04 2000-10-05 윤종용 Image data compression method

Also Published As

Publication number Publication date
KR940005159A (en) 1994-03-16

Similar Documents

Publication Publication Date Title
JP3992303B2 (en) Signal compression apparatus, signal expansion apparatus, signal compression method, and signal expansion method
KR100335707B1 (en) Coding method, coding apparatus, decoding method and decoding apparatus of image signal
CN1153451C (en) A multiple format video signal processor
US5838597A (en) MPEG-2 decoding with a reduced RAM requisite by ADPCM recompression before storing MPEG-2 decompressed data
US9369733B2 (en) Method and apparatus for encoding and decoding image
US6157741A (en) Image processing apparatus and image processing method
JPH09162749A (en) Variable length code coder
JPH1118087A (en) Device and method for converting image data
US6396955B1 (en) Image compression and expansion device
JP3105906B2 (en) Image processing device
JP3469438B2 (en) Image signal processing method and apparatus, recording medium
JP2001119703A (en) Compression of digital video image by variable length prediction coding
KR0160616B1 (en) Digital image compressing method and device
JPH06276511A (en) Picture signal coding method and decoding method
JPH05227519A (en) Encoder and decoder for picture data
JP3689437B2 (en) Image signal encoding method and apparatus
JP2935320B2 (en) Image compression / decompression device
JP3559314B2 (en) Image compression device
JP2962537B2 (en) Scanning method and apparatus using energy distribution of two-dimensional data
JP2791410B2 (en) Compressed image data extraction device
KR960013232B1 (en) Fixed rate video signal compressing encoding/decoding method
EP3907994A2 (en) Method for processing transform coefficients
KR100215563B1 (en) The input data formatting method in run length decoder
WO2001017270A1 (en) Method and apparatus for decoding mpeg video data
KR950008640B1 (en) Image compression coding method and decoding method for bit fixation

Legal Events

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

Payment date: 20070727

Year of fee payment: 10

LAPS Lapse due to unpaid annual fee