KR100365118B1 - Apparatus and method for dithering and compressing data of dynamic picture image - Google Patents

Apparatus and method for dithering and compressing data of dynamic picture image Download PDF

Info

Publication number
KR100365118B1
KR100365118B1 KR1020000056521A KR20000056521A KR100365118B1 KR 100365118 B1 KR100365118 B1 KR 100365118B1 KR 1020000056521 A KR1020000056521 A KR 1020000056521A KR 20000056521 A KR20000056521 A KR 20000056521A KR 100365118 B1 KR100365118 B1 KR 100365118B1
Authority
KR
South Korea
Prior art keywords
unit
compression
block
dithering
output
Prior art date
Application number
KR1020000056521A
Other languages
Korean (ko)
Other versions
KR20020024734A (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 KR1020000056521A priority Critical patent/KR100365118B1/en
Publication of KR20020024734A publication Critical patent/KR20020024734A/en
Application granted granted Critical
Publication of KR100365118B1 publication Critical patent/KR100365118B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • 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/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/96Tree coding, e.g. quad-tree coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

본 발명은 다중 레벨을 갖는 동영상 데이터를 보다 적은 레벨의 디스플레이만을 지원하는 단말기에 전송하여 표시되도록 하기 위해 다중 레벨의 동영상 데이터를 단말기에서 디스플레이 가능한 레벨로 디더링하고 압축하도록 하는 동영상 데이터의 디더링/압축 장치 및 방법에 관한 것으로서, 입력되는 블록을 지연하는 제1지연모듈(20); 상기 지연된 이전 블록(A2)과 현재 입력되는 블록(A1)간이 차이 정도에 따른 제어신호(E2)를 출력하는 파라미터 추출모듈(30); 상기 블록(A1)을 디더링하되, 그 디더링된 현재 블록과 복원된 이전 프레임의 블록(D2) 중 하나를 상기 제어신호(E2)에 따라 선택적으로 출력하는 디더링 모듈(40); 상기 디더링 모듈(40)의 출력 블록(B2)과 상기 블록(D2)간에 비트단위의 배타적 논리합 연산을 수행하고, 상기 연산된 블록 및 상기 디더링 수단의 출력 블록(B2)을 각각 압축한 후, 상기 각 압축된 프레임 데이터 중 하나를 선택적으로 출력하는 압축모듈(50); 상기 압축모듈의 출력(C2)을 복원하는 복원모듈(60); 및 상기 복원된 블록(F2)을 지연하여 상기 블록(D2)으로 상기 디더링 모듈(40) 및 상기 압축모듈(50)에 제공하는 제 2 지연모듈(70)로 구성되어, 화질 및 압축 효율을 현저히 개선한다.The present invention provides a dithering / compression apparatus for moving picture data that allows dithering and compressing moving picture data of multiple levels to a level that can be displayed on a terminal in order to display the moving picture data having multiple levels to a terminal supporting only a lower level of display. And a method comprising: a first delay module (20) for delaying an input block; A parameter extraction module (30) for outputting a control signal (E2) according to a degree of difference between the delayed previous block (A2) and the currently input block (A1); A dithering module 40 for dithering the block A1 and selectively outputting one of the dithered current block and a block D2 of a restored previous frame according to the control signal E2; After performing the bitwise exclusive OR operation between the output block B2 and the block D2 of the dither module 40 and compressing the calculated block and the output block B2 of the dithering means, respectively, A compression module 50 for selectively outputting one of each compressed frame data; Restoration module 60 for restoring the output (C2) of the compression module; And a second delay module 70 delaying the restored block F2 and providing the block D2 to the dithering module 40 and the compression module 50, thereby remarkably improving image quality and compression efficiency. Improve.

Description

동영상 데이터의 디더링/압축 장치 및 방법{Apparatus and method for dithering and compressing data of dynamic picture image}Apparatus and method for dithering and compressing data of dynamic picture image}

본 발명은 동영상 데이터의 디더링/압축 장치 및 방법에 관한 것으로서, 보다 상세하게는 다중 레벨을 갖는 동영상 데이터를 보다 적은 레벨의 디스플레이만을 지원하는 단말기에 전송하여 표시되도록 하기 위해 다중 레벨의 동영상 데이터를 단말기에서 디스플레이 가능한 레벨로 디더링하고 압축하도록 하는 동영상 데이터의 디더링/압축 장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for dithering / compressing video data, and more particularly, to transmit video data having multiple levels to a terminal supporting only a smaller level of display to display the video data having multiple levels. An apparatus and method for dithering / compressing video data for dithering and compressing to a displayable level in a.

일반적으로, 무선인터넷 단말기에 영상을 전송할 때 해당 통신망의 채널 용량이 저속이고 대부분의 단말기는 흑백만을 디스플레이 할 수 있으므로 영상 데이터의 양을 줄이기 위해 영상을 흑백화하여 전송하되, 그 흑백화된 영상내의 경계선 등을 자연스럽게 보이기 위해 디더링(dithering)하고 압축된 영상 데이터를 전송한다.In general, when transmitting a video to a wireless Internet terminal, the channel capacity of the communication network is low speed and most terminals can display only black and white, so that the black and white video is transmitted to reduce the amount of video data, Dithered and compressed image data is transmitted to make a boundary line look natural.

도 1은 동영상 데이터를 디더링하고 압축하기 위한 일반적인 시스템의 개괄적 블록도로서, 동영상의 각 프레임을 기존의 정지 영상용 디더링 모듈(11)을 통해 디더링하고, 그 디더링된 프레임을 압축모듈(12)을 통해 개별적으로 압축한 후 전송한다.FIG. 1 is a schematic block diagram of a general system for dithering and compressing video data. Each frame of a video is dithered through an existing dither module 11 for still images, and the dithered frame is converted into a compression module 12. FIG. Compress and send separately.

도 1과 같은 종래의 일반적인 동영상 데이터의 디더링 및 압축 시스템은, 상기 디더링 모듈(11)과 상기 압축 모듈(12)에 의해 동영상의 각 프레임이 독립적으로 디더링되고 압축되는 바, 이러한 방법은 디더링의 특성상 실제 움직이지 않는 배경 영역에서도 전·후의 각 프레임이 서로 다르게 디더링 될 수 있어 사람의 눈에 거슬릴 뿐 아니라 압축 성능에도 좋지않은 영향을 미치는 것은 물론, 디더링된 각 프레임이 독립적으로 무손실 압축됨으로써 충분히 높은 압축률을 기대할 수 없으며, 또한 디더링된 결과값이 픽셀단위로 압축되어 서로 다른 레벨의 디스플레이 능력을 갖는 각종 단말기에 전송하기 위해서는 각 단말기의 레벨에 맞도록 각각 디더링 및 압축된 정보를 여러번 전송해야 하는 단점이 있었다.In the conventional general video data dithering and compression system as shown in FIG. 1, each frame of the video is independently dithered and compressed by the dithering module 11 and the compression module 12. Each frame before and after can be dithered differently in the background area that is not actually moving, which is not only annoying to the human eye, but also adversely affects the compression performance. Compression ratio cannot be expected, and in order to transmit the dithered result in pixel units and transmit them to various terminals having different levels of display capability, the dithered and compressed information must be transmitted several times according to the level of each terminal. There was this.

본 발명은 상기와 같은 문제점을 해결하기 위하여 창작된 것으로서, 그 목적은 현재 프레임과 이전 프레임간의 차이 정보를 추출하여 이를 디더링 과정에 이용함으로써, 화질을 개선하고 압축률을 높이도록 된 동영상 데이터의 디더링 장치 및 방법을 제공하고자 하는 것이다.The present invention was created to solve the above problems, and its purpose is to extract the difference information between the current frame and the previous frame and use it in the dithering process, thereby dithering the video data to improve the image quality and to increase the compression ratio. And to provide a method.

본 발명의 다른 목적은 디더링된 영상 프레임과 복원된 이전 디더링된 프레임과의 차이만을 압축하거나, 압축 시 무손실 압축기법과 손실 압축기법을 선택적으로 적용함으로써 압축률을 높이도록 된 동영상 데이터의 압축 장치 및 방법을 제공하고자 하는 것이다.Another object of the present invention is to compress a difference between a dithered image frame and a reconstructed previous dithered frame, or to compress and compress video data by selectively applying a lossless compression method and a lossy compression method. It is to provide.

본 발명의 또 다른 목적은 다중 레벨 영상의 디더링 및 압축 시, 먼저 상대적으로 낮은 레벨의 디더링 영상을 생성한 후 이 정보를 이용하여 상대적으로 높은레벨의 디더링 영상을 생성함으로써, 하나의 전송 비트 스트림내에 여러 레벨에 맞도록 디더링 및 압축된 정보가 포함되도록 하여 전송 및 저장 효율을 높일 수 있도록 된 동영상 데이터의 스케일러블(Scalable) 디더링/압축 장치를 제공하고자 하는 것이다.It is still another object of the present invention to dither and compress a multilevel image by first generating a relatively low level dither image and then using this information to generate a relatively high level dither image, thereby generating a single bit stream. The present invention aims to provide a scalable dithering / compressing device for moving image data that can include dithered and compressed information for various levels to improve transmission and storage efficiency.

도 1은 동영상 데이터를 디더링하고 압축하기 위한 일반적인 시스템의 개괄적 블록도이고,1 is a schematic block diagram of a general system for dithering and compressing video data,

도 2는 본 발명의 바람직한 일 실시예에 따른 동영상 데이터의 디더링/압축 장치의 블록도이고,2 is a block diagram of an apparatus for dithering / compressing video data according to an exemplary embodiment of the present invention.

도 3은 도 2의 파라미터 추출모듈의 세부 블록도이고,3 is a detailed block diagram of the parameter extraction module of FIG.

도 4는 도 2의 디더링 모듈의 세부 블록도이고,4 is a detailed block diagram of the dithering module of FIG. 2;

도 5는 도 2의 압축모듈의 세부 블록도이고,5 is a detailed block diagram of the compression module of FIG.

도 6은 도 2의 복원모듈의 세부 블록도이고,6 is a detailed block diagram of the restoration module of FIG.

도 7은 도 2의 압축모듈에 적용되는 본 발명에 따른 압축방법의 흐름도이고,7 is a flowchart of a compression method according to the present invention applied to the compression module of FIG.

도 8은 본 발명의 다른 실시예에 따른 동영상 데이터의 스케일러블 디더링/압축 장치의 블록도이고,8 is a block diagram of a scalable dithering / compression apparatus of video data according to another embodiment of the present invention.

도 9의 (a)는 도 2의 디더링 모듈의 출력 블록(B2)의 일예이고, (b)는 도 2의 지연모듈의 출력 블록(D2)의 일예이며, (c)는 도 2의 압축모듈의 논리연산부의 출력 블록(E5)의 일예이고, (d)는 도 2의 압축모듈에서 상기 블록(E5)에 손실 압축기법을 적용한 경우의 블록의 일예를 나타낸 것이다.FIG. 9A illustrates an example of an output block B2 of the dithering module of FIG. 2, FIG. 9B illustrates an example of an output block D2 of the delay module of FIG. 2, and FIG. 2C illustrates an compression module of FIG. 2. An example of the output block E5 of the logic operation unit of FIG. 2 is an example of a block in which the lossy compressor method is applied to the block E5 in the compression module of FIG. 2.

※ 도면의 주요부분에 대한 부호의 설명※ Explanation of code for main part of drawing

20,70 : 지연모듈 30 : 파라미터 추출모듈20,70: delay module 30: parameter extraction module

31 : 블록간 차이 계산부 32 : 비교부31: difference calculation unit between blocks 32: comparison unit

40,81,84 : 디더링 모듈 41 : 정지영상용 디더링부40, 81, 84: dither module 41: dither unit for still images

42,54 : 선택출력부 50,82,85 : 압축모듈42,54: Selective output 50,82,85: Compression module

51,53 : 압축부 52,65 : 논리 연산부51,53: compression unit 52,65: logical operation unit

60,83 : 복원모듈 61,66 : 경로 선택부60,83: restoration module 61,66: path selector

62,63 : 복원부 64 : 지연부62,63: restoration unit 64: delay unit

86 : 전송부86: transmission unit

상기와 같은 목적을 달성하기 위하여 본 발명에 따른 동영상 데이터의 디더링/압축 장치는, 동영상을 프레임 또는 임의 개수로 나누어진 부분프레임인 단위블록으로 디더링 및 압축하는 장치에 있어서, 입력되는 프레임을 디더링하되, 현재 디더링된 프레임의 블록과 복원된 이전 프레임의 블록 중 하나를 선택적으로 출력하는 디더링 수단; 현재 프레임의 블록과 이전 프레임의 블록간의 차이 정보를 추출하고 그 추출된 정보에 따라 상기 디더링 수단의 선택을 제어하는 제어수단; 상기 디더링 수단의 출력과 상기 복원된 이전 프레임의 블록간에 비트단위의 배타적 논리합(Exclusive-OR) 연산을 수행하고, 상기 연산된 블록 및 상기 디더링 수단의 출력을 각각 압축한 후, 상기 각 압축된 블록 데이터를 상호 구분 표시하고 그 중 하나를 선택적으로 출력하는 압축수단; 및 상기 압축수단의 출력을 상기 구분 표시에 따라 복원하여 상기 복원된 이전 프레임으로 상기 디더링 수단 및 상기 압축수단에 궤환 제공하는 복원궤환수단을 포함하여 구성된다.In order to achieve the above object, a device for dithering / compressing video data according to the present invention is a device for dithering and compressing a video into a unit block, which is a partial frame divided into frames or arbitrary numbers, and dithering an input frame. Dithering means for selectively outputting one of a block of a current dithered frame and a block of a reconstructed previous frame; Control means for extracting difference information between a block of a current frame and a block of a previous frame and controlling selection of the dithering means according to the extracted information; After performing an exclusive-OR operation on a bit-by-bit basis between the output of the dithering means and the block of the restored previous frame, compressing the computed block and the output of the dithering means, respectively, and then compressing each of the compressed blocks Compression means for discriminating the data from each other and selectively outputting one of the data; And restoration restoring means for restoring the output of the compression means according to the division indication and providing feedback to the dithering means and the compression means to the restored previous frame.

상기와 같이 구성된 본 발명에서, 상기 디더링 수단은 현재 입력되는 프레임의 블록을 디더링하는 정지영상용 디더링부; 및 상기 제어수단의 제어신호에 따라상기 정지영상용 디더링부의 출력인 상기 현재 디더링된 프레임의 블록과 상기 복원궤환수단에 의해 복원되어 궤환 제공된 상기 복원된 이전 프레임의 블록 중 하나를 선택적으로 출력하는 출력선택부를 포함하여 구성되고, 상기 제어수단은 입력되는 프레임의 블록을 기설정된 시간동안 지연하는 지연부; 상기 지연된 이전 프레임의 블록과 현재 입력되는 프레임의 블록간의 상호 차이값을 구하는 차이 계산부; 및 상기 구해진 차이값을 기설정된 임계치와 비교하고 그 비교결과에 따라 상기 디더링 수단의 선택을 제어하기 위한 이진 제어신호를 출력하는 비교부를 포함하여 구성되며, 이와 같이 구성된 상기 디더링 수단 및 상기 제어수단에 의해 동영상에서 움직임이 없는 배경 영역 등의 화질이 기존보다 현저히 향상된다.In the present invention configured as described above, the dithering means includes a dithering unit for still image dithering a block of a currently input frame; And an output selection for selectively outputting one of a block of the current dithered frame, which is an output of the still image dithering unit, and a block of the restored previous frame restored and fed back by the recovery feedback means according to a control signal of the control means. And a control unit comprising: a delay unit for delaying a block of an input frame for a predetermined time; A difference calculator which calculates a mutual difference value between the block of the delayed previous frame and the block of the currently input frame; And a comparing unit for comparing the obtained difference value with a predetermined threshold value and outputting a binary control signal for controlling the selection of the dithering means according to the comparison result, wherein the dithering means and the control means As a result, the image quality of the motionless background area is significantly improved.

또한, 상기 압축수단은 상기 디더링 수단의 출력을 압축하는 제 1 압축부; 상기 디더링 수단의 출력과 상기 복원된 이전 프레임의 블록간에 비트단위의 배타적 논리합(Exclusive-OR) 연산을 수행하는 논리연산부; 상기 논리연산부의 출력을 압축하는 제 2 압축부; 및 상기 제 1 압축부 및 상기 제 2 압축부의 출력을 상호 비교하고 그 비교결과 데이터 량이 작은 쪽을 선택적으로 구분 출력하는 비교선택부를 포함하여 구성되고, 상기 제 1 및 제 2 압축부는 무손실 또는 손실 압축 방법을 선택적으로 적용하며, 이와 같이 구성된 상기 압축수단에 의해 기존보다 압축률을 현저히 향상시키게 된다.In addition, the compression means includes a first compression unit for compressing the output of the dithering means; A logic operation unit performing an exclusive-OR operation in units of bits between the output of the dithering means and the block of the restored previous frame; A second compression unit compressing an output of the logical operation unit; And a comparison selection unit for comparing the outputs of the first compression unit and the second compression unit with each other and selectively outputting the smaller ones as a result of the comparison, wherein the first and second compression units are lossless or lossy compression. The method is optionally applied, and the compression means thus configured significantly improves the compression ratio than the conventional one.

상기와 같은 목적을 달성하기 위하여 본 발명에 따른 동영상 데이터의 스케일러블 디더링/압축 장치는, 동영상을 프레임 또는 임의 개수로 나누어진 부분프레임인 단위블록으로 디더링 및 압축하는 장치에 있어서, 현재 입력되는 프레임의 블록을 정해진 비트 수의 하위 레벨 영상으로 디더링하는 제 1 디더링수단; 상기 디더링된 블록을 압축하는 제 1 압축수단; 상기 제 1 압축수단의 출력을 복원하는 복원수단; 상기 복원수단의 출력에 의거하여 현재 입력되는 프레임의 블록을 상기 정해진 비트 수보다 많은 비트 수의 상위 레벨 영상으로 디더링한 후, 그 상위 레벨 영상으로 디더링된 블록의 각 화소를 형성하는 비트 중 상기 제 1 압축수단의 출력에 의해 결정된 비트 값을 상위 값으로 하여 나머지 비트만을 출력하는 제 2 디더링수단; 상기 복원수단의 출력에 의거하여 상기 제 2 디더링 수단의 출력을 압축하는 제 2 압축수단; 및 상기 제 1 압축수단의 출력과 상기 제 2 압축수단의 출력 데이터를 서로 구분하여 하나의 영상에 대한 정보로서 저장하고, 단말기의 요청시 대응하는 수신 단말기의 디스플레이 레벨에 따라 상기 구분된 데이터를 단일로 또는 상호 결합하여 전송하는 전송수단을 포함하여 구성되며, 이와 같이 구성된 본 발명에 의해서 하나의 전송 비트 스트림내에 여러 레벨에 맞도록 디더링 및 압축된 정보가 포함되도록 하여 전송 및 저장 효율을 높인다.In order to achieve the above object, a scalable dithering / compression device for moving picture data according to the present invention is an apparatus for dithering and compressing a moving picture into a unit block, which is a frame or a partial frame divided into a random number, the frame being currently input. First dithering means for dithering a block of N into a lower level image of a predetermined number of bits; First compression means for compressing the dithered block; Restoring means for restoring the output of the first compression means; Dividing a block of a frame currently input based on the output of the restoring means into a higher level image having a greater number of bits than the predetermined number of bits, and then forming the pixel of each pixel of the block dithered into the higher level image. Second dithering means for outputting only the remaining bits by setting the bit value determined by the output of the first compression means as an upper value; Second compressing means for compressing an output of said second dithering means based on an output of said restoring means; And storing the output data of the first compression means and the output data of the second compression means as information on a single image, and storing the divided data according to the display level of the corresponding receiving terminal upon request of the terminal. The present invention is configured to include a transmission means for transmitting data in combination with each other or in combination with each other, and according to the present invention configured to include dithered and compressed information for various levels in one transport bit stream, the transmission and storage efficiency are improved.

상기와 같은 목적을 달성하기 위하여 본 발명에 따른 동영상 데이터의 디더링 방법은, 동영상을 프레임 또는 임의 개수로 나누어진 부분프레임인 단위블록으로 디더링 및 압축하는 방법에 있어서, 입력되는 프레임의 블록을 지연하는 제 1 단계; 상기 지연된 이전 프레임의 블록과 현재 입력되는 프레임의 해당 블록간의 상호 차이 정보를 추출하는 제 2 단계; 및 상기 추출된 정보에 의거하여, 상기 현재 입력되는 프레임의 블록을 디더링하여 출력하거나 또는 디더링된 이전 프레임의 블록을 출력하는 제 3 단계를 포함하여 구성되어, 동영상에서 움직임이 없는 배경영역 등의 화질이 기존보다 개선된다.In order to achieve the above object, a dithering method of moving picture data according to the present invention is a method of dithering and compressing a moving picture into a unit block which is a partial frame divided into frames or arbitrary numbers. First step; Extracting mutual difference information between the block of the delayed previous frame and the corresponding block of the currently input frame; And a third step of dithering and outputting the block of the currently input frame or outputting the block of the dithered previous frame based on the extracted information. This is improved than before.

상기와 같은 목적을 달성하기 위하여 본 발명에 따른 동영상 데이터의 압축 방법은, 디더링된 동영상 데이터를 각 프레임(또는 각 프레임을 나눈 블록) 단위로 나누어 압축하는 방법에 있어서, 현재 디더링된 프레임의 블록을 압축하는 제 1 단계; 상기 현재 디더링된 프레임의 블록과 기 압축되어 복원된 이전 디더링된 프레임의 해당 블록간에 비트단위의 배타적 논리합(Exclusive-OR) 연산을 수행하는 제 2 단계; 상기 제 2 단계를 통해 연산된 블록을 압축하는 제 3 단계; 및 상기 제 1 단계를 통해 압축된 블록과 상기 제 3 단계를 통해 압축된 블록을 상호 구분하고 그 구분된 블록 중 하나를 선택적으로 출력하는 제 4 단계를 포함하여 구성되며, 특히 상기 제 1 및 제 3 단계에서의 압축 시, 압축을 위한 프레임, 그 프레임을 나눈 블록, 및 그 블록을 나눈 부블록내 비트의 '0' 또는 '1'의 갯수가 기설정된 수 미만일 경우 손실 압축 방법을 수행하고, 이상일 경우 무손실 압축 방법을 수행함으로써, 기존보다 압축률을 현저히 향상시키게 된다.In order to achieve the above object, a method of compressing video data according to the present invention is a method of compressing divided video data by dividing each frame (or a block divided by a unit) into a block of a currently dithered frame. A first step of compressing; A second step of performing an exclusive-OR operation in units of bits between the block of the current dithered frame and the corresponding block of the previously dithered frame that has been previously compressed and reconstructed; Compressing a block computed through the second step; And a fourth step of dividing the block compressed through the first step and the block compressed through the third step and selectively outputting one of the divided blocks, in particular, the first and the second In the compression in the third step, if the number of frames for compression, the block divided by the frame, and the number of '0' or '1' of the bits in the sub-block divided by the block is less than the predetermined number, a lossy compression method is performed. In the above case, by performing a lossless compression method, the compression rate is remarkably improved.

이어, 첨부 도면을 참조하여 본 발명의 바람직한 실시예에 따른 동영상 데이터의 디더링/압축 장치 및 방법에 대하여 상세히 설명하기로 하되, 동영상은 각 프레임이 하나의 단위로 처리되거나 각 프레임이 블록단위로 나뉘어져 처리되므로, 이후 설명의 편의를 위하여 블록으로 나뉘어 처리되는 것을 예로서 설명하도록 한다.Next, a dithering / compression apparatus and method for moving picture data according to a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings. In the moving picture, each frame is processed as one unit or each frame is divided into block units. Since it is processed, it will be described as an example that the processing is divided into blocks for the convenience of the following description.

도 2는 본 발명의 바람직한 일 실시예에 따른 동영상 데이터의 디더링/압축장치의 블록도로서, 동 도면에 도시된 바와 같이, 입력되는 블록을 한 프레임 시간동안 지연하는 제 1 지연모듈(20); 상기 제 1 지연모듈(20)을 통해 지연된 이전 블록(A2)과 현재 입력되는 블록(A1)의 상호 차이를 추출하고 그 추출된 차이 정도에 따른 제어신호(E2)를 출력하는 선택 제어수단으로서의 파라미터 추출모듈(30); 상기 현재 입력되는 블록(A1)을 디더링하되, 그 디더링된 현재 블록과 복원된 이전 프레임의 블록(D2) 중 하나를 상기 제어신호(E2)에 따라 선택적으로 출력하는 디더링 모듈(40); 상기 디더링 모듈(40)을 통해 출력된 블록(B2)과 상기 복원된 이전 프레임의 블록(D2)간에 비트단위의 배타적 논리합(Exclusive-OR) 연산을 수행하고, 상기 연산된 블록 및 상기 디더링 수단의 출력 블록(B2)을 각각 압축한 후, 상기 각 압축된 프레임 데이터 중 하나를 선택적으로 출력하는 압축모듈(50); 상기 압축모듈의 출력(C2)을 복원하는 복원 모듈(60); 및 상기 복원모듈(60)을 통해 복원된 블록(F2)을 한 프레임 시간동안 지연하여 상기 복원된 이전 프레임의 블록(D2)으로 상기 디더링 모듈(40) 및 상기 압축모듈(50)에 제공하는 제 2 지연모듈(70)로 구성되어 있다.FIG. 2 is a block diagram of an apparatus for dithering / compressing video data according to an exemplary embodiment of the present invention. As shown in FIG. 1, a first delay module 20 delaying an input block for one frame time; A parameter as a selection control means for extracting a mutual difference between the previous block A2 delayed through the first delay module 20 and a block A1 currently input and outputting a control signal E2 according to the extracted difference degree. Extraction module 30; A dither module (40) for dithering the currently input block (A1) and selectively outputting one of the dithered current block and a block (D2) of the restored previous frame according to the control signal (E2); A bit-wise exclusive-OR operation is performed between the block B2 output through the dithering module 40 and the block D2 of the restored previous frame, and the operation of the calculated block and the dithering means is performed. A compression module 50 for compressing the output block B2 and selectively outputting one of the respective compressed frame data; A restoration module 60 for restoring the output C2 of the compression module; And delaying the block F2 restored through the restoration module 60 for one frame time and providing the dithering module 40 and the compression module 50 to the block D2 of the restored previous frame. It consists of two delay modules (70).

도 3은 도 2의 상기 파라미터 추출모듈(30)의 세부 블록도로서, 동 도면에 도시된 바와 같이, 상기 현재 블록(A1)과 상기 제 1 지연모듈(20)을 통해 지연 출력된 상기 이전 블록(A2)간의 상호 차이값을, 각 픽셀당 차이의 절대치의 합(SAD : Summed Absolute Difference) 방식을 이용하여 계산하거나, 또는 각 픽셀당 차이의 제곱합(SSD : Summed Squared Difference) 방식을 이용하여 계산하는 두 블록간 차이 계산부(31); 및 상기 차이 계산부(31)를 통해 계산된 차이값을 기 설정된 임계치와 비교하고 그 비교결과에 따라 상기 디더링 모듈(40)의 선택을 제어하기 위한 상기 제어신호(E2)를 출력하는 비교부(32)로 구성되어 있다.3 is a detailed block diagram of the parameter extraction module 30 of FIG. 2. As shown in the figure, the previous block delayed and outputted through the current block A1 and the first delay module 20 is shown. Calculate the mutual difference between (A2) using the Summed Absolute Difference (SAD) method, or the Summed Squared Difference (SSD) method. A difference calculation unit 31 between two blocks; And a comparison unit for comparing the difference value calculated by the difference calculation unit 31 with a preset threshold and outputting the control signal E2 for controlling the selection of the dither module 40 according to the comparison result. 32).

도 4는 도 2의 상기 디더링 모듈(40)의 세부 블록도로서, 동 도면에 도시된 바와 같이, 상기 현재 입력되는 블록(A1)을 디더링하는 정지영상용 디더링부(41); 및 상기 파라미터 추출모듈(30)의 상기 비교부(32)로부터 출력된 상기 제어신호(E2)에 따라 상기 정지영상용 디더링부(41)의 출력인 디더링된 현재 블록(D1)과 상기 제 2 지연모듈(70)의 출력인 상기 복원된 이전 프레임의 블록(D2) 중 하나를 선택적으로 출력하는 선택출력부(42)로 구성되어 있다.FIG. 4 is a detailed block diagram of the dither module 40 of FIG. 2, and as shown in the figure, a still image dithering unit 41 for dithering the currently input block A1; And a dithered current block D1 and the second delay module which are outputs of the still image dithering unit 41 according to the control signal E2 output from the comparing unit 32 of the parameter extraction module 30. And a selection output section 42 for selectively outputting one of the blocks D2 of the restored previous frame, which is the output of 70.

도 5는 도 2의 상기 압축모듈(50)의 세부 블록도로서, 동 도면에 도시된 바와 같이, 상기 디더링 모듈(40)의 상기 출력선택부(42)를 통해 출력된 상기 블록(B2)을 4진 나무 구조 압축 방식에 따라 압축하는 제 1 압축부(51); 상기 블록(B2)과 상기 복원된 이전 프레임의 블록(D2)간에 비트단위의 배타적 논리합(Exclusive-OR) 연산을 수행하는 논리연산부(52); 상기 논리연산부(52)를 통해 출력된 블록(E5)을 4진 나무 구조 압축 방식에 따라 압축하는 제 2 압축부(53); 및 상기 제 1 압축부(51)의 출력(F5) 및 상기 제 2 압축부(53)의 출력(G5)을 상호 비교하고 그 비교결과 데이터 량이 작은 쪽을 선택하여 구분 출력하는 선택출력부(54)로 구성되어 있다.FIG. 5 is a detailed block diagram of the compression module 50 of FIG. 2. As shown in the figure, the block B2 output through the output selection unit 42 of the dither module 40 is shown. A first compression unit 51 for compressing according to the quaternary tree structure compression method; A logic operation unit 52 for performing an exclusive-OR operation in units of bits between the block B2 and the block D2 of the restored previous frame; A second compression unit (53) for compressing the block (E5) output through the logical operation unit (52) according to a ternary tree structure compression method; And a selective output unit 54 which compares the output F5 of the first compression unit 51 and the output G5 of the second compression unit 53, and selects and outputs the smaller one of the comparison data. It consists of).

또한, 상기 제 1 및 제 2 압축부(51,53)는 해당 블록을 4진 나무 구조 압축 방식에 따라 압축하되, 그 압축을 위한 해당 블록과 그 블록의 하위 블록내 비트의 '0' 또는 '1'의 갯수가 기설정된 수 미만일 경우 손실 압축 방법을 적용하고, 이상일 경우 무손실 압축 방법을 적용함을 특징으로 하는 바, 이와 같은 압축 방법은 하기에서 도 7을 참조하여 상세히 설명하도록 한다.In addition, the first and second compression units 51 and 53 compress the corresponding block according to the ternary tree structure compression method, but the '0' or '' of the corresponding block for the compression and the bits in the lower block of the block are compressed. When the number of 1 'is less than the predetermined number is applied to the lossy compression method, if the above is characterized by applying a lossless compression method, such a compression method will be described in detail with reference to FIG.

도 6은 도 2의 상기 복원모듈(60)의 세부 블록도로서, 동 도면에 도시된 바와 같이, 상기 압축모듈(50)의 상기 선택출력부(54)의 출력을 그 구분에 따라 제 1 경로 또는 제 2 경로 중 하나로 선택하여 전달하는 제 1 경로선택부(61); 상기 제 1 경로를 통해 전달된 상기 선택출력부(54)의 출력을 4진 나무 구조 복원 방식에 의해 복원하는 제 1 복원부(62); 상기 제 2 경로를 통해 전달된 상기 선택출력부(54)의 출력을 4진 나무 구조 복원 방식에 의해 복원하는 제 2 복원부(63); 상기 복원모듈(60)의 최종 출력인 상기 복원된 블록(F2)을 한 프레임 시간동안 지연하는 지연부(64); 상기 제 2 복원부(63)의 출력 블록과 상기 지연부(64)의 출력 블록 즉, 이전 프레임의 동일 위치의 블록간에 비트단위의 배타적 논리합(Exclusive-OR) 연산을 수행하는 논리연산부(65); 및 상기 제 1 경로절환부(61)와 대응 동작하여 상기 제 1 복원부(62)의 출력 또는 상기 논리연산부(65)의 출력 중 하나를 선택하여 상기 복원된 블록(F2)으로 최종 출력하는 제 2 경로선택부(66)로 구성되어 있으며, 한편 수신 단말기 측에는 상기 복원모듈(60)과 동일 구성의 복원모듈이 구비되어 본 발명의 장치로부터 디더링되고 압축되어 전송된 비트스트림을 복원한다.FIG. 6 is a detailed block diagram of the restoration module 60 of FIG. 2. As shown in FIG. 2, a first path of the output of the selective output unit 54 of the compression module 50 is classified according to the division. Or a first path selector 61 which selects and transmits one of the second paths; A first restoring unit (62) for restoring the output of the selection output unit (54) transmitted through the first path by a quaternary tree restoring scheme; A second restoring unit (63) for restoring the output of the selection output unit (54) transmitted through the second path by a quadruple tree structure restoring method; A delay unit 64 for delaying the restored block F2, which is the final output of the restoration module 60, for one frame time; A logic operation unit 65 performing an exclusive-OR operation in units of bits between the output block of the second recovery unit 63 and the output block of the delay unit 64, that is, the block at the same position of the previous frame. ; And selecting one of an output of the first restoring unit 62 or an output of the logical operation unit 65 to perform a final operation to the restored block F2 in a corresponding operation with the first path switching unit 61. It consists of two path selector 66, on the other hand, the receiving terminal is provided with a restoring module having the same configuration as the restoring module 60 to recover the bitstream transmitted by dithering, compressed and transmitted from the apparatus of the present invention.

도 7은 도 2의 상기 압축모듈(50)의 상기 제 1 및 제 2 압축부(51,53)에 적용되는 본 발명에 따른 압축방법의 흐름도로서, 먼저, T값을 설정한 후(S71) 입력되는 해당 블록 즉, 상기 출력선택부(42)를 통해 출력된 상기 블록(B2) 또는 상기논리연산부(52)를 통해 출력된 상기 블록(E5)을 입력하여, 그 입력된 블록(B2 또는 E5)내 비트의 '1'의 갯수가 상기 설정된 수(T) 미만인가를 판단하고(S72), S72의 판단결과 만일 예스(Y)로 판단되면 그 '1'을 모두 '0'으로 간주하여 압축하는 손실압축기법으로 압축하므로써 그 손실 압축된 데이터 스트림(F5 또는 G5)이 '0'으로출력되며(S73), S72의 판단결과 노(N)라고 판단되면 그 입력된 블록(B2 또는 E5)내 비트의 '0'의 갯수가 상기 설정된 수(T) 미만인가를 판단하고(S74), S74의 판단결과 만일 예스(Y)라고 판단되면 그 '0'을 모두 '1'로 간주하여 압축하는 손실압축기법으로 압축하므로써 그 손실 압축된 데이터 스트림(F5 또는 G5)이 '10'으로 출력되도록 하며(S75), S74의 판단결과 노(N)라고 판단되면 그 입력된 블록(B2 또는 E5)에 '11'을 추가하여 상기 단계 S73 및 S75의 결과와 구분한 후 상기 단계 S71에서 설정된 T값을 T/4가 되도록 재설정하며(S76), 이어 상기 입력된 현재의 블록(B2 또는 E5)을 4개의 부블록으로 나누고서 나눠진 각 블록에 대해서 상기 단계 S72부터 다시 수행토록 한다(S77).7 is a flowchart of a compression method according to the present invention applied to the first and second compression units 51 and 53 of the compression module 50 of FIG. 2. First, after setting a T value (S71). The corresponding block to be input, that is, the block B2 output through the output selection unit 42 or the block E5 output through the logical operation unit 52, is inputted to the input block B2 or E5. In step S72, it is determined whether the number of bits' 1 'is less than the set number T (S72). If the result of the determination of S72 is YES, all the' 1's are regarded as' 0 'and compressed. The lossy compressed data stream (F5 or G5) is output as '0' by compressing by the lossy compression method (S73). If the result of the determination in S72 is no (N), it is determined in the input block (B2 or E5). It is determined whether the number of bits' 0 'is less than the set number T (S74). If the result of the determination of S74 is yes, all of the' 0's are regarded as' 1 '. The lossy compressed data stream (F5 or G5) is outputted as '10' by compressing by the lossy compression method of compression (S75). If it is determined that it is no (N), the input block (B2 or E5) is determined. ) By adding '11' to the result of steps S73 and S75 and resetting the T value set in step S71 to be T / 4 (S76), and then inputting the current block (B2 or E5). Is divided into four sub-blocks, and each block divided is performed again from the step S72 (S77).

또한, 상기 단계 S73 또는 상기 단계 S75의 수행 후, 현재 처리 중인 블록내에 부 블록이 남아 있는지를 판단하고(S78), 만일 예스(Y)라면 남아있는 각 블록에 대해서(S79) 상기 단계 S72부터 다시 수행토록 하고, 노(N)라면 종료(즉, 다음 입력되는 블록을 처리)토록 한다.In addition, after performing step S73 or step S75, it is determined whether a subblock remains in the block currently being processed (S78), and if yes (Y), for each remaining block (S79) from step S72 again. If no (N) is to be terminated (that is, processing the next block entered).

이상의 설명에서, 상기 각 지연모듈(20,70) 및 상기 지연부(64)의 지연시간은 프레임 단위로 한 프레임의 처리 시간을 바람직한 예로 설정하였으나, 본 발명에서 프레임간 차이 정보를 얻을 시 현재 프레임에 대한 바로 이전 프레임이 아닌그 이전의 프레임들 중 하나를 선택하여 사용할 수 있도록 상기 지연시간을 한 프레임 이상의 시간으로 설정할 수 있도록 하되, 이경우 각 프레임 및/또는 각 블록마다 선택비트로 표시하도록 하여 각각 식별하여 인지할 수 있도록 한다.In the above description, the delay time of each of the delay modules 20 and 70 and the delay unit 64 is set as a preferred processing time of one frame on a frame basis, but the present frame is obtained when the difference information between frames is obtained in the present invention. The delay time may be set to one or more frames to select and use one of frames before the previous frame, but in this case, each frame and / or block may be marked with a selection bit to identify each. To be recognized.

도 8은 본 발명의 다른 실시예에 따른 동영상 데이터의 스케일러블 디더링/압축 장치의 블록도로서, 동 도면에 도시된 바와 같이, 현재 입력되는 블록(A1)을 이진 레벨 영상으로 디더링하는 제 1 디더링 모듈(81); 상기 제 1 디더링 모듈(81)을 통해 디더링된 블록(B8)을 압축하는 제 1 압축모듈(82); 상기 제 1 압축모듈(82)의 출력(C8)을 복원하는 복원모듈(83); 상기 복원모듈(83)의 출력(D8)에 의거하여, 상기 현재 입력되는 블록(A1)을 사진 레벨 영상으로 디더링한 후, 그 사진 레벨 영상으로 디더링된 블록의 각 화소를 형성하는 비트 중 이에 대응하는 상기 복원모듈(83)을 통해 복원된 블록의 각 화소를 형성하는 비트 이외의 나머지 비트만을 출력하는 제 2 디더링 모듈(84); 상기 복원모듈(84)의 출력(D8)에 의거하여 상기 제 2 디더링 모듈(84)의 출력(E8)을 압축하는 제 2 압축모듈(85); 및 상기 제 1 압축모듈(82)의 출력(C8)과 상기 제 2 압축모듈(85)의 출력(F8)을 대응하는 수신 단말기의 디스플레이 레벨에 따라 저장 및/또는 상호 결합하여 전송하는 전송부(86)로 구성되어 있다.FIG. 8 is a block diagram of a scalable dithering / compression device for moving image data according to another embodiment of the present invention. As shown in FIG. 8, a first dithering dithering a block A1 currently input into a binary level image is shown in FIG. Module 81; A first compression module 82 for compressing the dither block B8 through the first dither module 81; A restoration module 83 for restoring the output C8 of the first compression module 82; Based on the output D8 of the restoration module 83, the currently input block A1 is dithered into a photo level image, and then corresponding bits among the pixels forming the pixels of the block dithered into the photo level image. A second dithering module 84 for outputting only the remaining bits other than the bits forming each pixel of the block restored through the restoration module 83; A second compression module (85) for compressing the output (E8) of the second dithering module (84) based on the output (D8) of the restoration module (84); And a transmitter for storing and / or mutually combining the output C8 of the first compression module 82 and the output F8 of the second compression module 85 according to the display level of the corresponding receiving terminal. 86).

이어, 본 발명의 동작에 대하여 설명하도록 한다.Next, the operation of the present invention will be described.

먼저 동영상은 각 프레임이 하나의 단위로 처리되거나 각 프레임이 블록단위로 나뉘어져 처리되는 바, 이하 동작 설명 시 설명의 편의 상 블록으로 나뉘어 처리되는 것을 일예로 설명한다.First, the video is processed by each frame as one unit or each frame is processed by being divided into block units. Hereinafter, the operation is divided into blocks for convenience of description in the following description.

현재 입력되는 n번째 프레임의 블록(A1)은 상기 지연모듈(20)에서 한 프레임시간 동안 지연된 블록 즉, n-1번째의 이전 프레임에서 상기 블록(A1)과 동일 위치에 있는 블록(A2)과 함께 상기 파라미터 추출모듈(30)로 입력된다.The block A1 of the nth frame currently input is the block delayed for one frame time in the delay module 20, that is, the block A2 at the same position as the block A1 in the n-1th previous frame. Together with the parameter extraction module 30 is input.

상기 파라미터 추출모듈(30)의 상기 차이 계산부(31)는 상기 입력된 두 개의 블록(A1,A2)간의 차이값(F3)을 계산하는 바, 그 차이값(F3)은 각 픽셀당 차이의 절대치의 합(SAD : Summed Absolute Difference) 방식 또는 각 픽셀당 차이의 제곱합(SSD : Summed Squared Difference) 방식을 이용하여 계산된다. 상기 계산된 차이값(F3)은 상기 비교부(32)에 입력되어 기 설정된 임계치(T3)와 비교되며, 그 비교 결과 만일 상기 차이값(F3)이 상기 임계치(T3) 보다 클 경우 상기 비교부(32)는 그 결과 제어신호(E2)로서 '1'을 출력하고 작을 경우 '0'을 출력한다.The difference calculating unit 31 of the parameter extraction module 30 calculates a difference value F3 between the two input blocks A1 and A2, and the difference value F3 corresponds to a difference for each pixel. It is calculated using the Summed Absolute Difference (SAD) method or the Summed Squared Difference (SSD) method of each pixel. The calculated difference value F3 is input to the comparison unit 32 and compared with a preset threshold value T3. As a result of the comparison, the difference value F3 is larger than the threshold value T3. 32 outputs '1' as a control signal E2 as a result, and outputs '0' when small.

상기 디더링 모듈(40)은 상기 현재 블록(A1) 및 복원된 이전 프레임의 블록(D2)를 입력으로 받는 데, 상기 디더링 모듈(40)의 상기 정지 영상용 디더링부(41)는 상기 입력된 현재 블록(A1)을 디더링하고, 상기 선택 출력부(42)는 상기 비교부(32)로부터 출력된 상기 제어신호(E2)에 의거하여 상기 정지 영상용 디더링부(41)에 의해 디더링된 현재 블록(D1)과 상기 입력된 복원된 이전 프레임의 블록(D2) 중 하나를 선택하여 출력한다. 즉, 상기 선택 출력부(42)는 상기 제어신호(E2)의 값이 '0'일 경우에는 상기 이전 프레임의 블록(D2)를 선택하여 출력하고, '1'일 경우에는 상기 디더링된 현재 블록(D1)을 선택하여 출력한다.The dither module 40 receives the current block A1 and the block D2 of the restored previous frame as inputs, and the dithering unit 41 for the still image of the dither module 40 receives the input current. The dither block A1, and the selection output unit 42 dithers the current block dithered by the still image dithering unit 41 based on the control signal E2 output from the comparing unit 32. D1) and one of the input block D2 of the restored previous frame are selected and output. That is, the selection output unit 42 selects and outputs the block D2 of the previous frame when the value of the control signal E2 is '0', and when the value is '1', the dithered current block. Select (D1) to output.

상기 압축모듈(50)은 상기 디더링 모듈(40)의 상기 선택 출력부(42)를 통해 선택 출력된 블록(B2) 및 상기 복원된 이전 프레임의 블록(D2)을 입력으로 하여 다음과 같은 동작을 수행한다. 먼저, 상기 입력된 블록(B2)를 상기 제 1 압축부(51)를 통해 4진 나무 구조 압축한다. 이어 상기 논리 연산부(52)는 상기 블록(B2)과 상기 블록(D2)간에 비트 단위의 배타적 논리합 연산을 수행하고, 상기 제 2 압축부(53)는 상기 논리 연산부(52)에 의해 연산 출력된 블록(E5)를 입력하여 4진 나무 구조 압축한 후 출력하는 데, 예를 들어, 상기 복원된 이전 프레임의 블록(D2)은 상기 디더링 모듈(40)의 현재 출력인 상기 블록(B2)보다 한 프레임 이전에 상기 디더링 모듈(40)을 통과한 결과이므로, 예컨데 상기 블록(B2)이 도 9의 (a)와 같을 때 통상적으로 상기 블록(D2)은 도 9의 (b)와 같이 상기 블록(B2)와 비교하여 매우 적은 비트 차이(여기서는 점원내의 1비트 차이만 남)가 나게 된다. 따라서, 상기 블록(B2)과 상기 블록(D2)간에 배타적 논리합 연산을 수행한 결과 블록(E5)은 도 9의 (c)의 점원내의 비트와 같이 도 9의 (a)와 (b) 블록을 상호 비교하여 서로 다른 비트 부분만 '1'로 나타나고 나머지는 모두 '0'으로 나타나게 되어, 상기 제 2 압축부(53)를 통해 4진 나무 구조 압축 결과 데이터 량이 매우 적어지게 된다.The compression module 50 inputs the block B2 selected and output through the selection output unit 42 of the dither module 40 and the block D2 of the restored previous frame as inputs. Perform. First, the input block B2 is compressed to a ternary tree structure through the first compression unit 51. Subsequently, the logical operation unit 52 performs an exclusive logical sum operation in units of bits between the block B2 and the block D2, and the second compression unit 53 is computed and output by the logical operation unit 52. A block E5 is input and compressed and outputted after the ternary tree structure. For example, the block D2 of the restored previous frame is smaller than the block B2 which is the current output of the dithering module 40. As a result of passing through the dither module 40 before the frame, for example, when the block B2 is the same as in FIG. 9A, the block D2 is typically the block (D) as shown in FIG. 9B. Compared with B2), there are very few bit differences (here only one bit difference in the point source). Accordingly, as a result of performing an exclusive OR operation between the block B2 and the block D2, the block E5 is the blocks in FIGS. 9A and 9B as shown in the bits in the point sources of FIG. 9C. Compared with each other, only the different bit parts are represented by '1' and the rest are all represented by '0'. Thus, the amount of data of the ternary tree structure compression resulted through the second compression unit 53 becomes very small.

즉, 기존과 같이 도 9(a)의 상기 블록(B2)를 그대로 4진 나무 구조 압축할 경우 그 압축 결과 데이터 스트림이 '111011110111101111011'로 되는데 비해 상기 논리 연산부(52)의 출력인 도 9(c)의 블록(E5)을 4진 나무 구조 압축할 경우 그 압축 결과 데이터 스트림이 '100010001'로 나타나게 되어 본 발명에 의하면 압축 효율이 향상되는 것이다.That is, when the block B2 of FIG. 9 (a) is compressed as it is, the compression resultant data stream is '111011110111101111011', whereas FIG. 9 (c) is the output of the logical operation unit 52. In the case of compressing the block (E5) of the hexadecimal tree structure, the data stream appears as '100010001' as a result of the compression, thereby improving the compression efficiency.

더 나아가, 본 발명의 새로운 압축 방법에 의하면, 상기 제 1 및 제 2 압축부(51,53)는 압축을 위한 프레임 또는 그 프레임을 나눈 블록 또는 그 블록의 부 블록내 비트의 '0' 또는 '1'의 개수가 기설정된 수(T), 예컨데 2개 미만 일 경우 손실 압축 방법을 적용하고, 이상일 경우 무손실 압축 방법을 적용 하는 바, 이와 같은 압축 방법에 의하면 상기 논리 연산부(52)의 출력인 도 9(c)의 블록(E5)의 점원내의 비트 '1'이 '0'으로 간주되어 도 9(d)의 블록과 같이 되고, 그 도 9(d)의 블록을 4진 나무 구조 압축할 경우 그 압축 결과 데이터 스트림이 '0'으로 나타나게 되어 무손실 압축 방법을 사용할 경우와 비교하여 압축 효율이 더욱 향상된다.Furthermore, according to the new compression method of the present invention, the first and second compression units 51 and 53 may use a '0' or '' of a frame for compression or a block divided therein or a bit in a sub-block of the block. If the number of 1 'is a predetermined number (T), for example, less than two, the lossy compression method is applied, and if it is abnormal, a lossless compression method is applied. According to this compression method, the output of the logical operation unit 52 Bit '1' in the point source of block E5 in Fig. 9 (c) is regarded as '0' and becomes like the block in Fig. 9 (d), and the block in Fig. 9 (d) is compressed to a ternary tree structure. In this case, the compression resulted in the data stream appearing as '0', which further improves the compression efficiency compared with the lossless compression method.

상기 본 발명의 압축 방법을 요약하면, 일반적인 기존의 4진 나무 구조 압축 모듈에 의해서는 블록내 모든 비트가 '0' 또는 '1'일 경우가 아니면 다음 단계의 부 블록으로 나뉘어져 압축되는 무손실 부호화 압축만을 적용하였으나, 본 발명의 상기 제 1 및 제 2 압축부(51,53)에 의하면 압축률을 높일 수 있도록 하기 위해 블록내 '0' 또는 '1'의 개수가 적을 경우 다음 단계의 부블록으로 넘어가지 않고 바로 현 블록의 압축을 마칠 수 있도록 하였으며, 상기 기설정된 수(T)로서의 파라미터 값을 조정함으로써 압축률과 화질을 조절할 수 있고 상기 파라미터(T)를 '0'으로 할 경우 무손실 4진 나무 구조 압축과 동일해 진다.Summarizing the compression method of the present invention, a lossless coding compression is performed by dividing and compressing a subblock of a next step unless all bits in a block are '0' or '1' by a conventional conventional quadrature tree compression module. Although only the first and second compression units 51 and 53 of the present invention are applied, in order to increase the compression ratio, when the number of '0' or '1' in the block is small, the subblock of the next step is skipped. Compression of the current block can be completed without going to it. Compression rate and image quality can be adjusted by adjusting the parameter value as the preset number T. If the parameter T is '0', the lossless ternary tree structure Same as compression.

이와 같이 본 발명에 따른 상기 제 1 압축부(51)의 출력 결과로서의 제 1 데이터 스트림(F5) 및 상기 제 2 압축부(53)의 출력 결과로서의 제 2 데이터 스트림(G5)은 상기 선택출력부(54)에 입력되어 상호 비교되고, 그 비교결과 양자(F5,G5) 중 데이터 량이 작은 쪽을 선택하여 출력하되, 상기 제 1 데이터 스트림(F5)의 데이터 량이 더 작을 경우 선택비트를 '0'을 그 제 1 데이터 스트림(F5)의 선단에 추가하여 선택 출력하며, 상기 제 2 데이터 스트림(G5)의 데이터 량이 더 작을 경우 선택비트를 '1'을 그 제 2 데이터 스트림(G5)의 선단에 추가하여 선택 출력함으로써, 선택 출력된 데이터 스트림의 종류가 상기 제 1 및 제 2 데이터 스트림(F5,G5) 중 어떤 것인지를 구분하여 출력하도록 한다. 이와 같이 상기 압축모듈(50)의 상기 선택 출력부(54)를 통해 출력된 데이터 스트림(C2)은 수신 단말기 측으로 전송되며 동시에 상기 복원모듈(60)로 입력된다.As such, the first data stream F5 as an output result of the first compression unit 51 and the second data stream G5 as an output result of the second compression unit 53 are the selective output unit. (54) are inputted to be compared with each other, and as a result of comparison, the smaller ones of the data amount are selected and output, but when the data amount of the first data stream F5 is smaller, the selection bit is '0'. Is added to the leading end of the first data stream F5, and if the amount of data of the second data stream G5 is smaller, the selection bit is set to '1' and the leading end of the second data stream G5. In addition, by selectively outputting, it is possible to distinguish whether the kind of the selectively outputted data stream is any of the first and second data streams F5 and G5. In this way, the data stream C2 output through the selection output unit 54 of the compression module 50 is transmitted to the receiving terminal and simultaneously input to the restoration module 60.

상기 압축모듈(50)의 출력인 상기 데이터 스트림(C2)은 상기 복원모듈(60)에서 복원되어 출력되고, 상기 복원모듈(60)의 출력(F2)은 상기 제 2 지연모듈(70)에 의해 한 프레임 시간동안 지연된 후 상기 복원된 이전 프레임의 블록(D2)으로 상기 디더링 모듈(40) 및 상기 압축 모듈(50)에 궤환 제공되어 상술된 바와 같이 이용된다.The data stream C2, which is the output of the compression module 50, is restored and output from the restoration module 60, and the output F2 of the restoration module 60 is driven by the second delay module 70. After a delay of one frame time, a feedback is provided to the dithering module 40 and the compression module 50 to the block D2 of the restored previous frame and used as described above.

상기 복원모듈(60)은 상기 압축모듈(50)의 출력(C2)을 입력으로 받아 다음과 같은 동작을 수행한다. 상기 복원모듈(50)의 출력 데이터 스트림(C2) 중 선단의 첫 비트는 상기 선택출력부(54)에서 부가된 선택비트로서, 상기 복원모듈(60)의 상기 제 1 경로 선택부(61)는 그 선택비트가 '0'일 경우 후속되는 나머지 비트 스트림을 상기 제 1 복원부(62)로 입력되도록 하여 복원한 후 그 결과 블록이 출력되도록 하고, 그 선택비트가 '1'일 경우 후속되는 나머지 비트 스트림을 상기 제 2 복원부(63)로 입력되도록 하여 복원되도록 하고, 상기 논리 연산부(65)는 상기 제 2 복원부(63)의 출력 블록과 상기 지연부(64)에 의해 상기 복원모듈(60)의 최종 출력(F2)이 한 프레임 동안 지연된 복원 블록, 즉 이전 프레임의 같은 위치의 복원블록을 입력하여 상호 비트 단위로 배타적 논리합 연산을 수행한 후 출력한다. 이어 상기 제 2 경로 선택부(66)는 상기 선택비트가 '0'이었을 경우 상기 제 1 복원부(62)의 출력을 상기 복원모듈(60)의 최종 출력(F2)으로 선택하여 출력하고, '1'이었을 경우 상기 논리연산부(65)의 출력을 상기 복원모듈(60)의 최종 출력(F2)으로 선택하여 출력한다.The restoration module 60 receives the output C2 of the compression module 50 as an input and performs the following operation. The first bit of the leading end of the output data stream C2 of the restoration module 50 is a selection bit added by the selection output unit 54. The first path selection unit 61 of the restoration module 60 If the selection bit is '0', the rest of the subsequent bit stream is input to the first restoring unit 62 to restore the resultant block, and if the selection bit is '1', the rest of the subsequent bit stream is output. The bit stream is input to the second restoring unit 63 to be restored, and the logical operation unit 65 is configured to be restored by the output block of the second restoring unit 63 and the delay unit 64. The final output F2 of 60) inputs a reconstruction block delayed for one frame, that is, a reconstruction block at the same position of the previous frame, and then performs an exclusive-OR operation in units of bits. Subsequently, when the selection bit is '0', the second path selector 66 selects and outputs the output of the first restoring unit 62 as the final output F2 of the restoring module 60, and 1 ', the output of the logical operation unit 65 is selected as the final output F2 of the restoration module 60 and output.

다음, 도 8과 같이 본 발명에 따른 동영상 데이터의 스케일러블 디더링/압축 장치의 동작에 대하여 설명한다.Next, the operation of the scalable dithering / compression apparatus for moving picture data according to the present invention will be described with reference to FIG. 8.

현재 입력블록(A1)은 상기 제 1 디더링 모듈(81)을 통해 이진 영상으로 디더링 되고, 상기 제 1 디더링 모듈(81)의 출력(B8)은 상기 제 1 압축모듈(82)을 통해 압축되며, 그 압축 결과 비트 스트림(C8)이 생성되어 상기 전송부(86)를 통해 그 응용에 따라 저장 또는 전송된다. 상기 비트스트림(C8)은 상기 복원모듈(83)을 통해 복원되고 그 복원된 이진 영상 블록(D8)이 상기 현재의 입력 블록(A1)과 함께 상기 제 2 디더링 모듈(84)로 입력된다. 상기 제 2 디더링 모듈(84)은 상기 블록(D8)의 각 화소값('0' 또는 '1')에 따라 상기 블록(A1)의 각 화소값을 사진 레벨 영상으로 디더링 한다. 상기 제 2 디더링 모듈(84)을 통해 출력되는 사진 영상 레벨은 각 화소마다 4개의 값('00', '01', '10', 및 '11') 중 하나를 가지므로 '00', '01', '10', 또는 '11'과 같이 2비트로 표시되는 것이 일반적이지만, 그 중 한 비트는 이미 상기 블록(D8)의 해당 화소값에 의해 미리 결정되어 있고 그 블록(D8)의 정보는 상기 비트스트림(C8)으로서 상기 전송부(86)에 의해 이미 저장 또는 전송되어 있으므로, 상기 제 2 디더링 모듈(84)은 상기 비트스트림(C8)으로서상기 전송부(86)에 의해 이미 저장 또는 전송된 1비트 이외의 나머지 정보(즉, 각 화소당 1비트)만 나타내는 블록(E8)을 출력하고, 그 출력된 블록(E8)은 상기 제 2 압축모듈(85)을 통해 압축되며, 그 압축 결과 비트 스트림(F8)이 생성되어 상기 전송부(86)를 통해 그 응용에 따라 저장 또는 전송되는 바, 상기 전송부(86)는 상기 제 1 압축모듈(82)의 출력(C8)과 상기 제 2 압축모듈(85)의 출력(F8)을 그 응용에 따라 예컨데, 대응하는 수신 단말기의 디스플레이 레벨에 따라 저장 및/또는 상호 결합하여 전송한다.The current input block A1 is dithered into a binary image through the first dither module 81, the output B8 of the first dither module 81 is compressed through the first compression module 82, As a result of the compression, the bit stream C8 is generated and stored or transmitted through the transmission unit 86 according to the application. The bitstream C8 is reconstructed through the reconstruction module 83, and the reconstructed binary image block D8 is input to the second dithering module 84 together with the current input block A1. The second dither module 84 dithers each pixel value of the block A1 into a photo level image according to each pixel value '0' or '1' of the block D8. The photographic image level output through the second dither module 84 has one of four values ('00', '01', '10', and '11') for each pixel. It is common to display two bits such as 01 ',' 10 ', or' 11 ', but one of the bits is already determined by the corresponding pixel value of the block D8, and the information of the block D8 is Since the bitstream C8 is already stored or transmitted by the transmitting unit 86, the second dither module 84 is already stored or transmitted by the transmitting unit 86 as the bitstream C8. Outputs a block E8 representing only the remaining information other than 1 bit (that is, 1 bit per pixel), and the output block E8 is compressed by the second compression module 85, and the compression result The bit stream F8 is generated and stored or transmitted through the transmitter 86 according to the application thereof. The output C8 of the first compression module 82 and the output F8 of the second compression module 85 are stored and / or mutually transmitted according to the application level, for example, according to the display level of the corresponding receiving terminal. .

상기와 같은 동작에 대하여 구체적 예를 들어 설명하면, 예컨데 상기 제 1 압축모듈(82)의 출력(C8)이 '1'일 경우, 상기 제 2 디더링 모듈(84)에 입력되는 상기 블록(A1)의 해당 화소값이 '01' 이더라도, 상기 제 2 디더링 모듈(84)은 상기 해당 화소값 '01'을 상기 출력(C8)된 비트 '1'에 가까운 '10'으로 한다음, 그 '10'으로된 두 비트 중 상기 제 1 압축모듈(82)의 출력(C8)에 의해 이미 결정된 비트인 '1'을 제외한 나머지 비트 '0'만을 압축되어 전송 또는 저장되도록 한다. 한편, 상기 제 1 압축모듈(82)의 출력(C8) 비트가 '0'일 경우, 상기 제 2 디더링 모듈(84)에 입력되는 상기 블록(A1)의 해당 화소값이 '10' 이더라도, 상기 제 2 디더링 모듈(84)은 상기 해당 화소값 '10'을 상기 출력(C8)된 비트 '0'에 가까운 '01'로 한다음, 그 '01'로된 두 비트 중 상기 제 1 압축모듈(82)의 출력(C8)에 의해 이미 결정된 비트인 '0'을 제외한 나머지 비트 '1'만을 압축되어 전송 또는 저장되도록 한다.For example, when the output C8 of the first compression module 82 is '1', the block A1 input to the second dither module 84 may be described. Even if the corresponding pixel value of is '01', the second dithering module 84 sets the corresponding pixel value '01' to '10' close to the output 'C8' bit '1', and then to '10'. Among the two bits, only the remaining bit '0' except for '1', which is a bit already determined by the output C8 of the first compression module 82, is compressed and transmitted or stored. On the other hand, when the output C8 bit of the first compression module 82 is '0', even if the corresponding pixel value of the block A1 input to the second dither module 84 is '10', The second dithering module 84 sets the corresponding pixel value '10' to '01' close to the bit '0' of the output C8, and the first compression module ( Only bit '1' other than '0' which is a bit determined by the output C8 of 82) is compressed to be transmitted or stored.

즉, 이진 레벨을 디스플레이 할 수 있는 특정 단말기를 위해서는 상기 전송부(86)를 통해 상기 제 1 압축모듈(82)을 통해 출력된 비트스트림(C8)만을 전송하여 해당 단말기에서 받아 복원되도록 하며, 이진 및/또는 사진 레벨을 디스플레이 할 수 있는 단말기를 위해서는, 종래와 같이 이진 레벨 영상을 위한 비트 스트림과 사진 레벨 영상을 위한 비트스트림을 각각 생성하여 전송하지 않고, 상기 전송부(86)를 통해 상기 제 1 압축모듈(82)을 통해 출력된 이진 레벨의 상기 비트스트림(C8)과 상기 제 2 압축모듈(85)을 통해 출력된 이진 레벨 데이터 크기의 상기 비트 스트림(F8)을 상호 직렬 결합하고, 그 결합된 다중(여기서는 이진과 사진) 레벨을 위한 비트스트림(C8+F8)을 전송하여 해당 단말기에서 받아 복원되도록(즉, 이진레벨을 디스플레이 할 수 있는 단말기는 상기 C8만 복원하고, 사진레벨을 디스플레이 할 수 있는 단말기는 상기 C8+F8을 복원하면 됨) 한다. 결과적으로, 상기 제 2 압축 모듈(85)을 통해 출력된 상기 비트 스트림(F8)은 이진 레벨 영상을 위한 비트스트림 데이터의 크기로 이루어져 이진 레벨 영상을 위한 상기 비트 스트림(C8)과 결합시 사진 레벨 영상을 위한 비트스트림이 됨으로써, 저장 및 전송 데이터의 량을 사진 레벨 영상을 위한 데이터 크기에서 이진 레벨을 위한 데이터 크기를 뺀 만큼 현저히 줄이게 되어 저장 효율 및 전송 효율을 크게 향상시키게 된다.That is, for a specific terminal capable of displaying a binary level, only the bitstream C8 outputted through the first compression module 82 is transmitted through the transmitter 86 to be received by the corresponding terminal and restored. And / or for the terminal capable of displaying the photo level, the bit stream for the binary level image and the bit stream for the photo level image are not generated and transmitted, respectively, as in the prior art. The bit stream C8 of the binary level output through the first compression module 82 and the bit stream F8 of the binary level data size output through the second compression module 85 are serially coupled to each other. A terminal capable of transmitting the bitstream (C8 + F8) for the combined multiple (in this case binary and photo) level to be received and restored by the terminal (i.e. display binary level) Terminal capable of restoring only the C8 and display the picture level is being restored when the C8 + F8). As a result, the bit stream F8 output through the second compression module 85 has a size of the bitstream data for the binary level image and is combined with the bit stream C8 for the binary level image. By being a bitstream for an image, the amount of storage and transmission data is significantly reduced by subtracting the data size for a binary level from the data size for a photo level image, thereby greatly improving storage efficiency and transmission efficiency.

이상 상세히 설명한 바와 같이 본 발명에 따른 동영상 데이터의 디더링/압축 장치 및 방법은, 프레임간의 정보를 디더링 및 압축에 이용하고 손실 압축 기법을도입함으로써, 각 프레임이 독립적으로 디더링 되고 무손실 압축되는 기존의 장치 및 방법에 비하여 디더링된 영상의 화질과 입축률을 높일 수 있으며, 또한 스케일러블 디더링 및 압축이 가능하므로 현재의 이동 통신 환경과 같이 단말기의 디스플레이 레벨이 다양한 경우 저장 비용 및 전송 비용을 현저히 줄일 수 있다. 따라서, 본 발명에 의하면 동영상에서 움직임이 없는 배경 영역 등의 화질이 기존보다 개선되고, 기존보다 압축률을 현저히 향상시키게 되며, 하나의 전송 비트 스트림내에 여러 레벨에 맞도록 디더링 및 압축된 정보가 포함되도록 하여 전송 및 저장 효율을 높이는 효과를 창출한다.As described in detail above, the apparatus and method for dithering / compressing moving image data according to the present invention use existing information in which each frame is independently dithered and losslessly compressed by using information between frames for dithering and compressing and introducing a lossy compression technique. Compared to the method, the image quality and the granularity of the dithered image can be improved, and scalable dithering and compression can be performed, thereby significantly reducing the storage cost and the transmission cost when the display level of the terminal is varied as in the current mobile communication environment. . Therefore, according to the present invention, the image quality of a motionless background region, etc. in the video is improved than before, and the compression rate is remarkably improved than before, and the information dithered and compressed to fit various levels in one transport bit stream is included. The effect is to increase the transmission and storage efficiency.

Claims (18)

동영상을 프레임 또는 임의 개수로 나뉘어진 부분 프레임인 단위 블록으로 디더링 및 압축하는 장치에 있어서,An apparatus for dithering and compressing a video into unit blocks that are frames or partial frames divided into any number, 입력되는 단위블록을 디더링하되, 현재 디더링된 프레임의 단위블록과 복원된 이전 프레임의 단위블록 중 하나를 선택적으로 출력하는 디더링 수단;Dithering means for dithering an input unit block, and selectively outputting one of a unit block of a currently dithered frame and a unit block of a previous frame to be restored; 현재 프레임의 단위블록과 이전 프레임의 단위블록 간의 차이 정보를 추출하고 그 추출된 정보에 따라 상기 디더링 수단의 선택을 제어하는 제어수단;Control means for extracting difference information between a unit block of a current frame and a unit block of a previous frame and controlling selection of the dithering means according to the extracted information; 상기 디더링 수단의 출력과 상기 복원된 이전 프레임의 단위블록 간에 비트단위의 배타적 논리합(Exclusive-OR) 연산을 수행하고, 상기 연산된 단위블록 및 상기 디더링 수단의 출력을 각각 압축한 후, 상기 각 압축된 단위블록 데이터를 상호 구분 표시하여 그 중 하나를 선택적으로 출력하는 압축수단; 및After performing an exclusive-OR operation in units of bits between the output of the dithering means and the unit block of the restored previous frame, compressing the calculated unit block and the output of the dithering means, respectively, Compression means for selectively displaying the divided unit block data and outputting one of them; And 상기 압축수단의 출력을 복원하여 상기 복원된 이전 프레임의 단위블록으로 상기 디더링 수단 및 상기 압축수단에 궤환 제공하는 복원궤환수단을 포함하여 구성된 것을 특징으로 하는 동영상 데이터의 디더링/압축 장치.Dithering / compressing apparatus for restoring the output of the compression means and including a recovery feedback means for feeding back to the dithering means and the compression means as a unit block of the restored previous frame. 제 1 항에 있어서,The method of claim 1, 상기 제어수단은 입력되는 단위블록을 기설정된 시간동안 지연하는 지연부;The control means includes a delay unit for delaying the input unit block for a predetermined time; 상기 지연된 이전 프레임의 단위블록과 현재 입력되는 프레임의 단위블록간의 상호 차이값을 구하는 차이 계산부; 및A difference calculator for obtaining a mutual difference value between the unit blocks of the delayed previous frame and the unit blocks of the currently input frame; And 상기 구해진 차이값을 기설정된 임계치와 비교하고 그 비교결과에 따라 상기 디더링 수단의 선택을 제어하기 위한 이진 제어신호를 출력하는 비교부를 포함하여 구성된 것을 특징으로 하는 동영상 데이터의 디더링/압축 장치.And a comparator for comparing the obtained difference value with a preset threshold and outputting a binary control signal for controlling the selection of the dithering means according to the comparison result. 제 2 항에 있어서,The method of claim 2, 상기 차이 계산부는 각 픽셀당 차이의 절대치의 합(SAD : Summed Absolute Difference) 또는 각 픽셀당 차이의 제곱합(SSD : Summed Squared Difference) 방식을 이용하여 상기 차이값을 구하는 것을 특징으로 하는 동영상 데이터의 디더링/압축 장치.The difference calculator dithers the video data using the sum of absolute values of the differences per pixel (SAD) or the summed squared difference (SSD) method for each pixel. / Compressor. 제 1 항에 있어서,The method of claim 1, 상기 디더링 수단은 현재 입력되는 프레임의 단위블록을 디더링하는 정지영상용 디더링부; 및The dithering means may include: a dithering unit for still image dithering a unit block of a currently input frame; And 상기 제어수단의 제어신호에 따라 상기 정지영상용 디더링부의 출력인 상기 현재 디더링된 프레임의 단위블록과 상기 복원궤환수단에 의해 복원되어 궤환 제공된 상기 복원된 이전 프레임 단위블록 중 하나를 선택적으로 출력하는 출력선택부를 포함하여 구성된 것을 특징으로 하는 동영상 데이터의 디더링/압축 장치.An output selection for selectively outputting one of a unit block of the current dithered frame, which is the output of the still image dithering unit, and the restored previous frame unit block provided by the restoration feedback means and supplied according to a control signal of the control means Dithering / compression device for moving picture data comprising a portion. 제 1 항에 있어서,The method of claim 1, 상기 압축수단은 상기 디더링 수단의 출력을 압축하는 제 1 압축부;The compression means includes a first compression unit for compressing the output of the dithering means; 상기 디더링 수단의 출력과 상기 복원된 이전 프레임의 단위블록 간에 비트단위의 배타적 논리합(Exclusive-OR) 연산을 수행하는 논리연산부;A logic operation unit performing an exclusive-OR operation in units of bits between the output of the dithering means and the unit block of the restored previous frame; 상기 논리연산부의 출력을 압축하는 제 2 압축부; 및A second compression unit compressing an output of the logical operation unit; And 상기 제 1 압축부 및 상기 제 2 압축부의 출력을 상호 비교하고 그 비교결과 데이터 량이 작은 쪽을 선택적으로 구분 출력하는 비교선택부를 포함하여 구성된 것을 특징으로 하는 동영상 데이터의 디더링/압축 장치.And a comparison selection unit for comparing the outputs of the first compression unit and the second compression unit with each other and selectively outputting the smaller ones as a result of the comparison. 제 5 항에 있어서,The method of claim 5, 상기 제 1 및 제 2 압축부는 4진 나무 구조 압축 방식을 사용하되, 무손실 또는 손실 압축 방법을 선택적으로 적용하는 것을 특징으로 하는 동영상 데이터의 디더링/압축 장치.And the first and second compression units use a quadruple tree structure compression method, and selectively apply a lossless or lossy compression method. 제 6 항에 있어서,The method of claim 6, 상기 제 1 및 제 2 압축부는 압축을 위한 프레임 또는 그 프레임을 나눈 블록과 그 블록의 부블록내 비트의 '0' 또는 '1'의 갯수가 기설정된 수 미만일 경우 손실 압축 방법을 적용하고, 이상일 경우 무손실 압축 방법을 적용 하는 것을 특징으로 하는 동영상 데이터의 디더링/압축 장치.The first and second compression units apply a lossy compression method when the number of '0' or '1' of the frame for compression or the divided block and the number of bits in the subblock of the block is less than a predetermined number. The dithering / compressing device of the video data, characterized by applying a lossless compression method. 제 1 항에 있어서,The method of claim 1, 상기 복원궤환수단은 상기 압축수단의 출력을 복원하는 복원수단; 및The restoration feedback means includes restoration means for restoring the output of the compression means; And 상기 복원수단에 의해 복원된 단위블록을 기 설정된 시간동안 지연하여 상기 복원된 이전 프레임의 단위블록으로 상기 디더링 수단 및 상기 압축수단에 제공하는 지연부를 포함하여 구성된 것을 특징으로 하는 동영상 데이터의 디더링/압축 장치.And a delay unit configured to delay the unit block restored by the restoration unit for a predetermined time period and provide the dithering unit and the compression unit to the unit block of the restored previous frame. Device. 제 8 항에 있어서,The method of claim 8, 상기 복원수단은 상기 압축수단의 출력을 복원하는 복원부;The restoring means includes: a restoring unit restoring an output of the compression means; 상기 복원수단의 출력을 기 설정된 시간동안 지연하는 지연부;A delay unit for delaying the output of the restoration means for a preset time; 상기 복원부의 출력과 상기 지연부의 출력 단위블록 간에 비트단위의 배타적 논리합(Exclusive-OR) 연산을 수행하는 논리연산부; 및A logic operation unit configured to perform an exclusive-OR operation in units of bits between the output of the recovery unit and the output unit block of the delay unit; And 상기 복원부의 출력과 상기 논리연산부의 출력 중 하나를 상기 압축수단의 출력 선택에 대응하도록 선택적으로 출력하는 출력선택부를 포함하여 구성된 것을 특징으로 하는 동영상 데이터의 디더링/압축 장치.And an output selection unit for selectively outputting one of the output of the restoration unit and the output of the logical operation unit to correspond to the output selection of the compression unit. 제 2항, 제 8항 또는 제 9항 중 한 항에 있어서,The method of claim 2, 8 or 9, 상기 기 설정된 시간은 프레임 단위로 한 프레임 이상의 설정 시간이고, 그 설정 시간이 한 프레임의 시간을 초과할 경우 각 프레임을 상호 구분할 수 있도록 구분비트로 표시하는 것을 특징으로 하는 동영상 데이터의 디더링/압축 장치.The preset time is a set time of one frame or more in units of frames, and when the set time exceeds the time of one frame, dithering / compression apparatus for moving picture data, characterized in that the respective bits are displayed as division bits so as to distinguish each other. 동영상을 프레임 또는 임의 개수로 나뉘어진 부분 프레임인 단위 블록으로디더링 및 압축하는 장치에 있어서,An apparatus for dithering and compressing a video into unit blocks that are frames or partial frames divided into any number, 현재 입력되는 영상의 단위블록을 정해진 비트 수로 디더링하는 제 1 디더링수단;First dithering means for dithering a unit block of a currently input image by a predetermined number of bits; 상기 디더링된 단위블록을 압축하는 제 1 압축수단;First compression means for compressing the dithered unit block; 상기 제 1 압축수단의 출력을 복원하는 복원수단;Restoring means for restoring the output of the first compression means; 상기 복원수단의 출력에 의거하여 현재 입력되는 영상의 단위블록을 상기 정해진 비트 수보다 많은 비트 수로 디더링하되,Dithering a unit block of an image currently input based on the output of the restoring means to a greater number of bits than the predetermined number of bits; 그 디더링된 단위블록의 각 화소를 형성하는 비트 중 상기 제 1 압축수단의 출력에 의해 결정된 비트 값을 상위값으로 하여 나머지 비트 값만을 출력하는 제 2 디더링수단;Second dithering means for outputting only the remaining bit values with the bit value determined by the output of the first compression means among the bits forming each pixel of the dithered unit block as an upper value; 상기 복원수단의 출력에 의거하여 상기 제 2 디더링 수단의 출력을 압축하는 제 2 압축수단; 및Second compressing means for compressing an output of said second dithering means based on an output of said restoring means; And 상기 제 1 압축수단의 출력과 상기 제 2 압축수단의 출력Output of the first compression means and output of the second compression means 데이터를 서로 구분하여 하나의 영상에 대한 정보로서 저장하고, 단말기의 요청 시 대응하는 수신 단말기의 디스플레이 레벨에 따라 상기 구분된 데이터를 단일로 또는 상호 결합하여 전송하는 전송수단을 포함하여 구성된 것을 특징으로 하는 동영상 데이터의 스케일러블 디더링/압축 장치.And transmitting means for distinguishing data from each other and storing the information as one image and transmitting the divided data singly or in combination with each other according to the display level of the corresponding receiving terminal upon request of the terminal. Scalable dithering / compressor for moving video data. 제 11 항에 있어서,The method of claim 11, 상기 정해진 비트 수는 하나이고, 상기 정해진 비트 수보다 많은 비트 수는2개인 것을 특징으로 하는 동영상 데이터의 스케일러블 디더링/압축 장치.And the predetermined number of bits is one, and the number of bits greater than the predetermined number of bits is two. 동영상을 프레임 또는 임의 개수로 나뉘어진 부분 프레임인 단위 블록으로 디더링하는 방법에 있어서,In a method of dithering a video into unit blocks that are frames or partial frames divided into any number, 입력되는 단위블록을 지연하는 제 1 단계;Delaying an input unit block; 상기 지연된 이전 프레임의 단위블록과 현재 입력되는 프레임의 단위블록 간의 상호 차이 정보를 추출하는 제 2 단계; 및Extracting mutual difference information between the unit blocks of the delayed previous frame and the unit blocks of the currently input frame; And 상기 추출된 정보에 의거하여, 상기 현재 입력되는 프레임의 단위블록을 디더링하여 출력하거나 또는 디더링된 이전 프레임의 단위블록을 출력하는 제 3 단계를 포함하여 구성됨을 특징으로 하는 동영상 데이터의 디더링 방법.And dithering and outputting the unit block of the currently input frame or outputting the unit block of the dithered previous frame based on the extracted information. 디더링된 동영상 데이터를 프레임 또는 임의 개수로 나뉘어진 부분 프레임인 단위 블록으로 압축하는 장치에 있어서,An apparatus for compressing dithered video data into unit blocks that are frames or partial frames divided into any number, 현재 디더링된 단위블록을 압축하는 제 1 단계;Compressing a currently dithered unit block; 상기 현재 디더링된 단위블록과 기 압축되어 복원된 이전 디더링된 프레임의 단위블록 간에 비트단위의 배타적 논리합(Exclusive-OR) 연산을 수행하는 제 2 단계;A second step of performing an exclusive-OR operation in units of bits between the current dithered unit block and a unit block of a previously dithered frame that is previously compressed and reconstructed; 상기 제 2 단계를 통해 연산된 단위블록을 압축하는 제 3 단계; 및A third step of compressing the unit block calculated through the second step; And 상기 제 1 단계를 통해 압축된 단위블록과 상기 제 3 단계를 통해 압축된 단위블록을 상호 구분하고 그 구분된 단위블록 중 하나를 선택적으로 출력하는 제 4단계를 포함하여 구성됨을 특징으로 하는 동영상 데이터의 압축 방법.And a fourth step of dividing the unit blocks compressed through the first step from the unit blocks compressed through the third step and selectively outputting one of the divided unit blocks. Compression method. 제 14 항에 있어서,The method of claim 14, 상기 제 1 및 제 3 단계에서의 압축은 4진 나무 구조 압축 방법을 이용함을 특징으로 하는 동영상 데이터의 압축 방법.Compression in the first and the third step is a compression method of moving picture data, characterized in that using the quaternary tree structure compression method. 제 14항 또는 제 15항에 있어서,The method according to claim 14 or 15, 상기 제 1 및 제 3 단계에서의 압축 시, 압축을 위한 프레임, 그 프레임을 나눈 블록, 및 그 블록을 나눈 부블록내 비트의 '0' 또는 '1'의 갯수가 기설정된 수 미만일 경우 손실 압축 방법을 수행하고, 이상일 경우 무손실 압축 방법을 수행함을 특징으로 하는 동영상 데이터의 압축 방법.In the compression in the first and third stages, lossy compression when the number of frames for compression, the block divided by the frame, and the number of '0' or '1' of the bits in the sub-block divided by the block is less than the predetermined number And a lossless compression method if abnormal. 제 14 항에 있어서,The method of claim 14, 상기 제 4 단계는 상기 압축된 각 프레임에 서로 다른 하나의 선택비트를 할당하여 상호 구분함과 아울러, 상기 구분된 각 프레임 중 데이터 량이 작은 쪽을 선택하여 출력함을 특징으로 하는 동영상 데이터의 압축 방법.In the fourth step, each of the compressed frames is allocated with one different selection bit to discriminate from each other, and the smaller amount of data among the divided frames is selected and output. . 디더링되고 압축되어 전송된 동영상 신호를 수신하여 프레임 또는 임의 개수로 나뉘어진 부분 프레임인 단위블록 데이터로 복원하는 단말기의 복원장치에 있어서,In the restoring apparatus of a terminal for receiving a dithered and compressed video signal to restore the unit block data which is a frame or a partial frame divided into any number, 수신되어 입력되는 동영상 신호를 단위블록 데이터로 복원하는 복원수단;Restoring means for restoring the received and input video signal into unit block data; 상기 복원수단의 출력과 이전 복원된 단위블록 데이터 간에 비트단위의 배타적 논리합(Exclusive-OR) 연산을 수행하는 논리연산수단;Logic operation means for performing an exclusive-OR operation in units of bits between the output of the recovery means and the previously restored unit block data; 상기 복원수단의 출력과 상기 논리연산수단의 출력 중 하나를 상기 전송 시 표시된 선택비트에 따라 선택하여 출력하는 출력선택수단; 및Output selection means for selecting one of the output of the recovery means and the output of the logical operation means according to the selection bit displayed at the time of transmission; And 상기 출력선택수단의 출력을 한 프레임 또는 그 이상의 시간동안 지연하여 상기 이전 복원된 단위블록 데이터로 상기 논리연산수단에 궤환 제공하는 지연수단을 포함하여 구성된 것을 특징으로 하는 동영상 데이터의 복원장치.And delay means for delaying the output of the output selection means for one frame or more time and providing feedback to the logical operation means with the previously restored unit block data.
KR1020000056521A 2000-09-26 2000-09-26 Apparatus and method for dithering and compressing data of dynamic picture image KR100365118B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020000056521A KR100365118B1 (en) 2000-09-26 2000-09-26 Apparatus and method for dithering and compressing data of dynamic picture image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020000056521A KR100365118B1 (en) 2000-09-26 2000-09-26 Apparatus and method for dithering and compressing data of dynamic picture image

Publications (2)

Publication Number Publication Date
KR20020024734A KR20020024734A (en) 2002-04-01
KR100365118B1 true KR100365118B1 (en) 2002-12-16

Family

ID=19690540

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020000056521A KR100365118B1 (en) 2000-09-26 2000-09-26 Apparatus and method for dithering and compressing data of dynamic picture image

Country Status (1)

Country Link
KR (1) KR100365118B1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100717026B1 (en) * 2005-09-05 2007-05-10 삼성전자주식회사 Apparatus and method for binary image compression
KR101158586B1 (en) * 2005-09-07 2012-06-22 주식회사 팬택 Method for generating and playing animations by using a run length coding in a mobile communication terminal
KR102167360B1 (en) * 2019-05-24 2020-10-19 서울과학기술대학교 산학협력단 Method and apparatus for transferring screen

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4594726A (en) * 1984-11-29 1986-06-10 Rca Corporation Dedithering circuitry in digital TV receiver
US5251046A (en) * 1991-03-12 1993-10-05 Kokusai Denshin Denwa Co., Ltd. Hierarchy encoding system of multi-level image through dither conversion
KR950033796A (en) * 1994-03-11 1995-12-26 미야기 고따로 Computer display system controller
US5751858A (en) * 1995-06-30 1998-05-12 Nec Corporation Moving picture coding apparatus
KR20000033017A (en) * 1998-11-19 2000-06-15 전주범 Apparatus for image processing using dithering circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4594726A (en) * 1984-11-29 1986-06-10 Rca Corporation Dedithering circuitry in digital TV receiver
US5251046A (en) * 1991-03-12 1993-10-05 Kokusai Denshin Denwa Co., Ltd. Hierarchy encoding system of multi-level image through dither conversion
KR950033796A (en) * 1994-03-11 1995-12-26 미야기 고따로 Computer display system controller
US5751858A (en) * 1995-06-30 1998-05-12 Nec Corporation Moving picture coding apparatus
KR20000033017A (en) * 1998-11-19 2000-06-15 전주범 Apparatus for image processing using dithering circuit

Also Published As

Publication number Publication date
KR20020024734A (en) 2002-04-01

Similar Documents

Publication Publication Date Title
US7016547B1 (en) Adaptive entropy encoding/decoding for screen capture content
US20060182274A1 (en) Method for ciphering a compressed audio or video stream with error tolerance
US6614939B1 (en) Image compression apparatus and decoding apparatus suited to lossless image compression
CN111163318B (en) Human-machine vision coding method and device based on feedback optimization
KR100612691B1 (en) Systems and Methods for Measurement of Video Quality
WO2008047865A1 (en) Image quality evaluation method, image quality evaluation system and image quality evaluation program
CN106488243A (en) A kind of many description screen content method for video coding
CN1119377A (en) Length changable decoding device for full loading byte data
CN105052040A (en) System and method for multi-stream compression and decompression
JP3794749B2 (en) Video signal encoding device
KR20190036328A (en) Frame selective encryption method for video data
US5710838A (en) Apparatus for encoding a video signal by using modified block truncation and contour coding methods
KR100365118B1 (en) Apparatus and method for dithering and compressing data of dynamic picture image
CN108347607B (en) Embedded video compression method with fixed code rate and based on lines and image processing equipment
EP0986264B1 (en) Determining visually noticeable differences between two images
US5699122A (en) Method and apparatus for encoding a video signal by using a modified block truncation coding method
CN114363638B (en) Video encryption method based on H.265 entropy coding binarization
CN114827617A (en) Video coding and decoding method and system based on perception model
KR100251048B1 (en) Context based scan inter leaving method that has single path coding structure
KR101997136B1 (en) Video data encryption method
CN115834926B (en) Video encryption method based on H.265 entropy coding binarization
KR100389702B1 (en) The method for compressing and expanding data-stream without loss by bit-substitution
JPH10289326A (en) Method and device for decoding contour line video signal
WO1999043161A1 (en) Determining visually noticeable differences between two images
US10505713B2 (en) Compression and/or encryption of a file

Legal Events

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

Payment date: 20121011

Year of fee payment: 11

FPAY Annual fee payment

Payment date: 20131101

Year of fee payment: 12

LAPS Lapse due to unpaid annual fee