KR20090018090A - Image data compression device, compression method, program, and image data decompression device, decompression method, and program - Google Patents

Image data compression device, compression method, program, and image data decompression device, decompression method, and program Download PDF

Info

Publication number
KR20090018090A
KR20090018090A KR20087029607A KR20087029607A KR20090018090A KR 20090018090 A KR20090018090 A KR 20090018090A KR 20087029607 A KR20087029607 A KR 20087029607A KR 20087029607 A KR20087029607 A KR 20087029607A KR 20090018090 A KR20090018090 A KR 20090018090A
Authority
KR
South Korea
Prior art keywords
pixel
value
image
image data
prediction
Prior art date
Application number
KR20087029607A
Other languages
Korean (ko)
Other versions
KR101037421B1 (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 후지쯔 가부시끼가이샤
Publication of KR20090018090A publication Critical patent/KR20090018090A/en
Application granted granted Critical
Publication of KR101037421B1 publication Critical patent/KR101037421B1/en

Links

Images

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
    • H04N19/436Methods 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 using parallelised computational arrangements
    • 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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • 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
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • 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
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • 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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/14Coding unit complexity, e.g. amount of activity or edge presence estimation
    • 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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/16Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter for a given display mode, e.g. for interlaced or progressive display 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/182Methods 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 a pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques

Abstract

A quantizer quantizes ''a prediction error'' as a difference between a pixel X to be compressed and a prediction value X'. A variable-length encoder inputs a quantization number obtained from a quantization table of the quantizer and outputs a variable-length code (compressed code). A prediction value candidate calculation module calculates prediction value candidates (1 to k) according to peripheral pixels A, C, B and transmits them to a multiplexer (MPX). A prediction value decision module decides which of the prediction value candidates (1 to k) is to be a predicted value according to an intermediate value correspondence table based on the image format and an intermediate value/image format correspondence table and transmits a control signal to a multiplexer (MPX). The multiplexer (MPX) outputs one of the decided prediction value candidates (1 to k) as a prediction value X'. Thus, by deciding a prediction value in accordance with the image format, it is possible to reduce the prediction error for each image format.

Description

화상 데이터 압축 장치, 압축 방법 및 프로그램 및 화상 데이터 복원 장치, 복원 방법 및 프로그램{IMAGE DATA COMPRESSION DEVICE, COMPRESSION METHOD, PROGRAM, AND IMAGE DATA DECOMPRESSION DEVICE, DECOMPRESSION METHOD, AND PROGRAM}Image data compression device, compression method and program, and image data restoration device, restoration method and program {IMAGE DATA COMPRESSION DEVICE, COMPRESSION METHOD, PROGRAM, AND IMAGE DATA DECOMPRESSION DEVICE, DECOMPRESSION METHOD, AND PROGRAM}

본 발명은 특성이 다른 2종류의 화상(영화 등의 자연 화상과, 디지털 지도 등의 CG 화상) 양방에 대하여 유효한, 고화질로 실시간 처리 가능한 화상 데이터 압축 장치, 압축 방법 및 상기 압축을 행하기 위한 프로그램 및 압축 화상 데이터를 복원하는 화상 데이터 복원 장치, 복원 방법 및 상기 복원을 행하기 위한 프로그램에 관한 것이다.The present invention provides an image data compression apparatus, a compression method, and a program for performing the compression, which can be processed in real time with high image quality, effective for both two kinds of images having different characteristics (natural images such as movies and CG images such as digital maps). And an image data decompression device for decompressing compressed image data, a decompression method, and a program for performing the decompression.

방대한 정보량을 포함하는 화상 정보를 전송하기 위해서는 데이터 압축이 필요하다. 특히 동화상의 경우는 1초 사이에 30∼60 프레임 정도의 화상 데이터가 송수신되기 때문에, 데이터 압축이 불가결해진다.In order to transmit image information including a large amount of information, data compression is required. In particular, in the case of moving images, image data of 30 to 60 frames is transmitted and received within one second, so data compression becomes indispensable.

그런데, 화상 정보로서는 일반 텔레비전 화상이나 영화 등으로 대표되는 자연 화상과, 카 내비게이션의 지도 등으로 대표되는 CG 화상(디지털 화상)이 알려져 있으며, 일반적으로 자연 화상에서는 저주파 성분이, 또한 디지털 화상에서는 고주파 성분이 많이 포함되어 있다. 최근의 차량탑재 단말이나 휴대 전화를 포함하는 휴대 단말에서는, 지도 등의 디지털 화상과, TV나 영화 등의 자연 화상의 양방을 취급하게 되어 오고 있으며, 양방의 화상 데이터를 효율적으로 전송하기 위해서는, 저주파 성분과 고주파 성분의 양방에 효과적인 데이터 압축 방식이 요망되고 있다.By the way, as the image information, a natural image represented by a general television image, a movie, or the like, and a CG image (digital image) represented by a map of a car navigation system or the like are known. Generally, a low frequency component is used in a natural image, and a high frequency is used in a digital image. Contains a lot of ingredients. Background Art In recent years, portable terminals including vehicle-mounted terminals and mobile phones have handled both digital images such as maps and natural images such as TVs and movies. In order to efficiently transmit both image data, low frequency There is a demand for an effective data compression method for both components and high frequency components.

종래의 화상 데이터 압축 방식으로서, 도 1에 도시하는 바와 같은 JPEG(Joint Photographic Experts Group), MPEG(Moving Picture Experts Group)에 의해 데이터 압축을 행하는 제1 종래 기술이 알려져 있다. 이 제1 종래 기술에 속하는 특허 문헌으로서, 하기 특허 문헌 1 및 2를 들 수 있다. 도 1에 도시하는 바와 같이, 제1 종래 기술은, 화상 데이터(110)를 블록(통상 8*8 화소)화(도시하지 않음)하고, 블록 화상에 대하여 주파수 변환(210)을 가하며, DCT 계수에 대하여 양자화(310)를 행하고, 출현 빈도에 따른 부호를 할당하는 가변 길이 부호화(410)하여 전송한다.As a conventional image data compression method, a first conventional technique is known in which data compression is performed by a Joint Photographic Experts Group (JPEG) and a Moving Picture Experts Group (MPEG) as shown in FIG. The following patent documents 1 and 2 are mentioned as patent documents which belong to this 1st prior art. As shown in FIG. 1, the first conventional technique blocks (normally 8 * 8 pixels) image data 110 (not shown), applies a frequency transform 210 to the block image, and applies DCT coefficients. The quantization 310 is performed for the quantization 310, and the variable length coding 410 for assigning a code according to the frequency of occurrence is transmitted.

여기서 주파수 변환이란 통상, DCT(Discrete Cosine Transfer)가 이용되며, 화상 데이터를 주파수 변환하는 것이다. 인간의 눈은 저주파 성분(화상 중의 평탄한 부분)에 민감하기 때문에, 저주파에 관한 DCT 계수는 미세하게, 고주파에 관한 DCT 계수는 개략적으로 양자화함으로써 자연 화상에 대해서는 화질 저하가 눈에 띄지 않도록 높은 압축률로 압축하는 것이 가능하다. 그러나, 인간의 눈에 검지되기 쉬운 저주파 성분을 미세하게 양자화하기 때문에 자연 화상의 압축에 대해서는 문제 없으나, 지도 화상(CG 화상) 중의 선, 문자와 같은 고주파 성분에 대해서는 화질 저하가 눈에 띄기 때문에, CG 화상에는 부적합하다는 문제가 있다.In this case, frequency conversion is usually DCT (Discrete Cosine Transfer), and frequency conversion of image data. Since the human eye is sensitive to low frequency components (flat parts of the image), the DCT coefficients for low frequencies are finely quantized and the DCT coefficients for high frequencies are roughly quantized, so that the image quality is not noticeable for natural images. It is possible to compress. However, since the low-frequency components that are easily detected by the human eye are finely quantized, there is no problem in the compression of the natural image, but the deterioration in image quality is noticeable for the high-frequency components such as lines and characters in the map image (CG image). There is a problem that the CG image is not suitable.

또한 종래의 화상 데이터 압축 방식으로서, 도 2에 도시하는 바와 같은 JPEG-LS(Lossless)를 이용한 제2 종래 기술이 알려져 있다. 이 제2 종래 기술은, 도 2에 도시하는 바와 같이, 화상 데이터(120)를 압축하는 경우, 압축 대상 화소의 레벨값으로부터 MED(Median Edge Detector) 예측기(이 예측기는 MAP: Median Adaptive Predictor의 일종)를 사용하여 레벨값 예측을 행하고, 그 예측 오차를 직접 부호화하는 것이다. 이 제2 종래 기술에서는 예측 오차의 출현 빈도는 기본적으로 0 근방에 집중하기 때문에, 0 근방의 예측 오차에는 짧은 부호, 값이 큰 예측 오차에는 긴 부호를 할당함으로써 압축한다. 압축률은 1/3 정도이지만, 고·저주파를 불문하고 화소 단위로 부호화하기 때문에, CG 화상에 대해서도 화질 저하는 발생하지 않는다.As a conventional image data compression method, a second conventional technique using JPEG-LS (Lossless) as shown in Fig. 2 is known. As shown in Fig. 2, when the image data 120 is compressed, the second conventional technology is a MED (Median Edge Detector) predictor (a type of MAP: Median Adaptive Predictor) from the level value of the pixel to be compressed. Is used to perform level value prediction and directly encode the prediction error. In this second prior art, the frequency of occurrence of the prediction error is basically concentrated around 0, so that a short code is assigned to the prediction error near 0 and a long code is assigned to the prediction error having a large value. Although the compression ratio is about 1/3, since image quality is encoded in units of pixels regardless of high and low frequencies, no degradation in image quality occurs even for CG images.

그러나, 인터레이스 화상이나 라인 간의 상관이 낮은 화상에서는 예측이 어려워 예측 오차가 증대하는 경향에 있다. 이 결과, 출현 빈도가 낮은(부호 길이가 긴) 가변 길이 부호를 할당하게 되고, 또한, 부호화 시에 계산 처리를 필요로 하는 등 각 처리가 느려, 실시간의 압축 처리에는 부적합하다는 문제가 있다.However, in an interlaced image or an image having a low correlation between lines, prediction is difficult and the prediction error tends to increase. As a result, a variable length code with a low appearance frequency (long code length) is assigned, and each process is slow, such as requiring a calculation process at the time of encoding, and thus there is a problem that it is unsuitable for real-time compression processing.

특허 문헌 1: 일본 특허 공개 제2001-061149호 공보Patent Document 1: Japanese Patent Application Laid-Open No. 2001-061149

특허 문헌 2: 일본 특허 공개 제2000-069479호 공보Patent Document 2: Japanese Patent Application Laid-Open No. 2000-069479

JPEG, MPEG와 같은 DCT에 의한 변환 부호화를 행하는 것에 관해서는, CG 화상에 대한 화질 저하가 눈에 띄고, JPEG-LS에 관해서는, 인터레이스 화상이나 가로 방향으로 긴 화상에 대한 예측 오차가 커지는 결과, 긴 부호를 많이 사용하지 않을 수 없어, 압축 효율이 악화된다.As for the conversion encoding by DCT such as JPEG and MPEG, the deterioration in image quality of the CG image is noticeable. As for JPEG-LS, the prediction error for the interlaced image and the image long in the horizontal direction becomes large. It is necessary to use a lot of long codes, which deteriorates the compression efficiency.

이러한 점에서, 자연 화상과 CG 화상의 양방을 취급하는 차량탑재 단말용 화상 데이터 압축 장치로서는, CG 화상에 대해서도 고화질로 압축하고, 또한 영화 등의 자연 화상에 보여지는 인터레이스 화상이나 가로 방향으로 긴 화상에 대해서도 압축 효율을 저하시키지 않는 것이 필요해진다.In view of this, as an image data compression device for a vehicle-mounted terminal that handles both natural and CG images, an interlaced image or a horizontally long image that is compressed to a high-quality CG image and also shown in a natural image such as a movie It is also necessary not to lower the compression efficiency.

상기와 같은 과제를 해결하기 위해서 본 발명의 목적은, 예측 대상 화소의 레벨값을 상기 예측 대상 화소의 주변 화소의 레벨값으로부터 예측하고, 그 예측 결과의 오차를 양자화함으로써 압축하는 화상 데이터 압축 장치, 압축 방법 및 상기 압축을 행하기 위한 프로그램 및 압축 화상 데이터를 복원하는 화상 데이터 복원 장치, 복원 방법 및 상기 복원을 행하기 위한 프로그램을 제공하는 것이다.SUMMARY OF THE INVENTION In order to solve the above problems, an object of the present invention is to predict a level value of a pixel to be predicted from a level value of neighboring pixels of the pixel to be predicted, and to compress it by quantizing the error of the prediction result; A compression method, a program for performing the compression, an image data decompression device for restoring compressed image data, a decompression method, and a program for performing the restoration are provided.

본 발명의 화상 데이터 압축 장치는, 예측기를 가지며, 상기 예측기로 압축 대상 화소의 화소 레벨값을 예측한다. 그 경우, 압축 대상 화소 주변의 화소 레벨값 및 화상 포맷에 기초하여 예측값을 결정한다. 이렇게 함으로써, 각각의 화상 포맷에 대하여 예측 오차를 경감시킬 수 있고, 압축 효율을 높일 수 있다. 또한 화상 포맷에 따라서 예측값을 전환하는 것만으로 충분하기 때문에, 실장 시의 프로그램, 회로 구성의 단순화를 도모할 수 있다.The image data compression device of the present invention has a predictor, and predicts the pixel level value of the pixel to be compressed by the predictor. In that case, the prediction value is determined based on the pixel level value and the image format around the compression target pixel. By doing so, the prediction error can be reduced for each image format, and the compression efficiency can be improved. In addition, since it is enough to switch the predicted value in accordance with the picture format, the program and circuit configuration at the time of mounting can be simplified.

또한 본 발명의 화상 데이터 압축 방법은, 유지된 상기 주변의 화소 A, B 및 C의 화소값을 기초로 복수의 예측값 후보를 산출하는 과정과, 중간값 대응표 및 중간값·화상 포맷 대응표를 기초로 상기 복수의 예측값 후보 중 어느 것을 예측값으로 할지를 결정하여, 제어 신호를 송신하는 과정을 포함하고 있다. 이와 같이 예측값 결정 모듈 및 예측값 산출 모듈의 각각에 있어서 병렬 처리하여, 각 예측값 후보의 산출을 종료한 단계에서, 어떤 예측값을 사용할지를 결정할 수 있기 때문에, 이 병렬 처리에 의해 고속으로 데이터 압축을 행하는 것이 가능해진다.The image data compression method of the present invention further comprises calculating a plurality of predicted candidates based on the retained pixel values of the pixels A, B, and C, and based on the intermediate value correspondence table and the intermediate value and image format correspondence table. Determining which of the plurality of predicted candidates is a predicted value, and transmitting a control signal. In this way, in each of the prediction value determining module and the prediction value calculating module, it is possible to determine which prediction value to use in the step of performing the parallel processing and calculating the respective prediction value candidates. It becomes possible.

또한 본 발명의 화상 데이터의 압축을 행하는 프로그램은, 압축 대상 화소의 화소 레벨값을 예측하면서 화상 데이터의 압축을 행하기 위한 프로그램으로서, 컴퓨터에, 부호화하기 전에 압축 대상 화소의 주변의 화소에 대하여, 좌측의 화소를 A, 위의 화소를 C, 좌측 위의 화소를 B로 하고, 상기 화소 A, B 및 C의 화소값 및 바로 근방 1라인분의 화소값을 유지하는 단계, 유지된 상기 주변의 화소 A, B 및 C의 화소값을 기초로 복수의 예측값 후보를 산출하는 단계, 중간값 대응표 및 중간값·화상 포맷 대응표를 기초로 상기 복수의 예측값 후보를 압축해서 하나의 예측값을 결정하여 출력하는 단계, 출력된 예측값과 압축 대상 화소로부터 예측 오차를 산출하고, 상기 예측 오차를 양자화 테이블에 입력하여 양자화 번호를 취득하며, 상기 양자화 번호를 부호화 테이블에 입력하여 압축 부호를 얻는 단계를 실행시킨다. 이렇게 함으로써, 예측값 결정 및 예측값 산출의 각 단계에서 병렬 처리하여, 각 예측값 후보의 산출을 종료한 단계에서, 어떤 예측값을 사용할지를 결정할 수 있기 때문에, 이 병렬 처리에 의해 고속으로 데이터 압축을 행할 수 있다.The program for compressing the image data of the present invention is a program for compressing the image data while predicting the pixel level value of the pixel to be compressed, with respect to the pixels around the pixel to be compressed before encoding to a computer. A pixel on the left, A on the C, and B on the left are maintained, and the pixel values of the pixels A, B, and C and the pixel value of the immediately adjacent line are maintained. Calculating a plurality of prediction value candidates based on pixel values of pixels A, B, and C; compressing the plurality of prediction value candidates based on a median value correspondence table and a median value / image format correspondence table to determine and output one prediction value; Calculating a prediction error from the output prediction value and the compression target pixel, inputting the prediction error to a quantization table to obtain a quantization number, and encoding the quantization number. Enter the table to get the compressed code. In this way, since it is possible to determine which predicted value to use in parallel processing at each stage of predictive value determination and predictive value calculation, and at the end of calculating the predictive value candidate, it is possible to perform data compression at high speed by this parallel processing. .

또한 본 발명의 화상 데이터 복원 장치 및 화상 데이터 복원 방법은, 상술한 화상 데이터 압축 장치로 압축된 화상 데이터를 역조작에 의해 복원하고 있기 때문에, 화상 데이터 압축 장치와 마찬가지로, 각각의 화상 포맷에 대하여 예측 오차를 경감시킬 수 있고, 압축 효율을 높일 수 있다. 또한 화상 포맷에 따라서 예측값을 전환하는 것만으로 충분하기 때문에, 실장 시의 프로그램, 회로 구성의 단순화를 도모할 수 있다. In addition, since the image data decompression device and the image data decompression method of the present invention restore the image data compressed by the image data compression device described above by reverse operation, similarly to the image data compression device, each image format is predicted. The error can be reduced and the compression efficiency can be increased. In addition, since it is enough to switch the predicted value in accordance with the picture format, the program and circuit configuration at the time of mounting can be simplified.

또한 본 발명의 화상 데이터의 복원을 행하는 프로그램은, 상술한 화상 데이터의 압축을 행하는 프로그램에 의한 조작과 반대의 조작을 행하는 것이기 때문에, 상술한 화상 데이터의 압축을 행하는 프로그램과 마찬가지로, 예측값 결정 및 예측값 산출의 각 단계에 있어서 병렬 처리하여, 각 예측값 후보의 산출을 종료한 단계에서, 어떤 예측값을 사용할지를 결정할 수 있기 때문에, 이 병렬 처리에 의해 고속으로 데이터 복원을 행할 수 있다.In addition, since the program for restoring the image data of the present invention performs the operation opposite to the operation by the program for compressing the image data described above, the predicted value determination and the predicted value are similar to those of the program for compressing the image data described above. In each step of the calculation, it is possible to determine which predicted value to use in the step of completing the calculation of each predictive value candidate in parallel, so that data can be restored at high speed by this parallel processing.

도 1은 JPEG, MPEG에 의해 데이터 압축을 행하는 제1 종래 기술을 도시하는 도면이다.BRIEF DESCRIPTION OF THE DRAWINGS It is a figure which shows the 1st prior art which performs data compression by JPEG and MPEG.

도 2는 JPEG-LS에 의해 데이터 압축을 행하는 제2 종래 기술을 도시하는 도면이다.FIG. 2 is a diagram showing a second conventional technique of performing data compression by JPEG-LS.

도 3은 본 발명의 실시형태에 따른 화상 데이터 압축 장치의 구성을 도시하는 블록도이다.3 is a block diagram showing a configuration of an image data compression device according to an embodiment of the present invention.

도 4는 본 발명의 실시형태에 따른 화상 데이터 압축 장치에서의 압축 대상 화소와 주변 화소의 배치 관계를 도시하는 도면이다.4 is a diagram showing an arrangement relationship between a compression target pixel and a peripheral pixel in the image data compression device according to the embodiment of the present invention.

도 5는 본 발명의 실시형태에 따른 양자화기에서의 양자화 테이블을 도시하는 도면이다.5 is a diagram illustrating a quantization table in a quantizer according to an embodiment of the present invention.

도 6은 본 발명의 실시형태에 따른 화상 데이터 압축 장치의 예측값 결정 모듈에서의 중간값 대응표를 도시하는 도면이다.6 is a diagram showing an intermediate value correspondence table in the predicted value determination module of the image data compression device according to the embodiment of the present invention.

도 7은 본 발명의 실시형태에 따른 화상 데이터 압축 장치의 예측값 결정 모듈에서의 중간값·화상 포맷 대응표를 도시하는 도면이다. It is a figure which shows the intermediate value / image format correspondence table in the predictive value determination module of the image data compression apparatus which concerns on embodiment of this invention.

도 8은 본 발명의 실시형태에 따른 화상 데이터 압축 장치의 제어 신호와 예측값 후보 1∼k의 대응 관계를 나타내는 대응 테이블을 도시하는 도면이다.8 is a diagram showing a correspondence table showing a correspondence relationship between a control signal of the image data compression device according to the embodiment of the present invention and predicted value candidates 1 to k.

도 9a는 본 발명의 실시형태에 따른 화상 데이터 압축(부호화) 장치의 동작을 설명하기 위한 플로우차트이다.9A is a flowchart for explaining the operation of the image data compression (encoding) device according to the embodiment of the present invention.

도 9b는 도 9a에서의 단계 S008에 있어서의 "로컬 디코더"의 처리를 설명하는 플로우차트이다.FIG. 9B is a flowchart for explaining the processing of the "local decoder" in step S008 in FIG. 9A.

도 10은 본 발명의 실시형태에 따른 화상 데이터 압축 장치에서의 압축 대상 화소 및 예측용 라인 버퍼의 어느 시점에서의 화소 레벨값을 도시하는 도면이다.Fig. 10 is a diagram showing pixel level values at any point in time of the compression target pixel and the prediction line buffer in the image data compression device according to the embodiment of the present invention.

도 11은 본 발명의 실시형태에 따른 화상 데이터 압축 장치에서의 인터레이스용 예측기의 양자화 결과를 도시하는 도면이다.11 is a diagram showing a quantization result of an interlace predictor in an image data compression device according to an embodiment of the present invention.

도 12는 본 발명의 실시형태에 따른 화상 데이터 압축 장치에서의 프로그레시브용 예측기의 양자화 결과를 도시하는 도면이다.12 is a diagram showing a quantization result of a progressive predictor in the image data compression device according to the embodiment of the present invention.

도 13은 본 발명의 실시형태에 따른 화상 데이터 압축 장치의 시스템 구성을 도시하는 기능 블록도이다.13 is a functional block diagram showing a system configuration of an image data compression device according to an embodiment of the present invention.

도 14는 본 발명의 실시형태에 따른 화상 데이터 복원 장치의 구성을 도시하는 블록도이다.14 is a block diagram showing the configuration of an image data decompression device according to an embodiment of the present invention.

도 15는 본 발명의 실시형태에 따른 역양자화기에서의 역양자화 테이블을 도시하는 도면이다.It is a figure which shows the inverse quantization table in the inverse quantizer which concerns on embodiment of this invention.

도 16은 본 발명의 실시형태에 따른 화상 데이터 복원 장치에서의 복원 대상 화소와 주변 화소의 배치 관계를 도시하는 도면이다.16 is a diagram illustrating an arrangement relationship between a restoration target pixel and a peripheral pixel in the image data restoration device according to the embodiment of the present invention.

도 17은 본 발명의 실시형태에 따른 화상 데이터 복원 장치의 예측값 결정 모듈에서의 중간값 대응표를 도시하는 도면이다.It is a figure which shows the median value correspondence table in the predictive value determination module of the image data decompression | restoration apparatus which concerns on embodiment of this invention.

도 18은 본 발명의 실시형태에 따른 화상 데이터 복원 장치의 예측값 결정 모듈에서의 중간값·화상 포맷 대응표를 도시하는 도면이다.It is a figure which shows the intermediate value / image format correspondence table in the prediction value determination module of the image data decompression | restoration apparatus which concerns on embodiment of this invention.

도 19는 본 발명의 실시형태에 따른 화상 데이터 복원 장치의 제어 신호와 예측값 후보 1∼k의 대응 관계를 나타내는 대응 테이블을 도시하는 도면이다.It is a figure which shows the correspondence table which shows the correspondence of the control signal of the image data decompression | restoration apparatus which concerns on embodiment of this invention, and predicted value candidates 1-k.

도 20a는 본 발명의 실시형태에 따른 화상 데이터 복원(복호화) 장치의 동작을 설명하기 위한 플로우차트이다.20A is a flowchart for explaining the operation of the image data restoration (decoding) apparatus according to the embodiment of the present invention.

도 20b는 도 20a에서의 단계 S027에 있어서의 "로컬 디코더"의 처리를 설명하는 플로우차트이다.20B is a flowchart for explaining the processing of the "local decoder" in step S027 in FIG. 20A.

도 21은 본 발명의 실시형태에 따른 화상 데이터 복원 장치에서의 예측용 라인 버퍼의 어느 시점에서의 화소 레벨값을 도시하는 도면이다.Fig. 21 is a diagram showing pixel level values at any point in the predictive line buffer in the image data decompression device according to the embodiment of the present invention.

도 22는 본 발명의 실시형태에 따른 화상 데이터 복원 장치에서의 인터레이스용 예측기의 양자화 결과를 도시하는 도면이다.22 is a diagram showing a quantization result of the interlace predictor in the image data decompression device according to the embodiment of the present invention.

도 23은 본 발명의 실시형태에 따른 화상 데이터 복원 장치에서의 프로그레시브용 예측기의 양자화 결과도이다.23 is a quantization result diagram of a progressive predictor in the image data decompression device according to the embodiment of the present invention.

도 24는 본 발명의 실시형태에 따른 화상 데이터 복원 장치의 시스템 구성을 도시하는 기능 블록도이다.24 is a functional block diagram showing a system configuration of an image data decompression device according to an embodiment of the present invention.

이하, 본 발명의 실시형태를, 도면을 참조하면서 설명한다.EMBODIMENT OF THE INVENTION Hereinafter, embodiment of this invention is described, referring drawings.

도 3은 본 발명의 실시형태에 따른 화상 데이터 압축(부호화) 장치의 구성을 도시하는 블록도이다. 도 3에서, 화상 데이터(001)는, 압축 대상이 되는 화소의 집합을 나타내며, 디지털로 화상을 처리하는 화상 처리 장치(도시하지 않음)에 의해 추출된다. 그리고 압축 대상 화소 X(002)는, 현단계에서 압축 대상이 되는 화소를 나타내고 있다. 도 4는 화상 포맷이 인터레이스 화상 또는 프로그레시브 화상일 때의 압축 대상 화소 X와 주변 화소의 배치 관계를 도시하는 도면이다. 또한 도 4에서 라인은 파선으로 나타나 있다. 양자화기(003)는, 압축 대상 화소 X(002)와 예측값 X'(006)의 차분값인 "예측 오차"를 양자화한다.3 is a block diagram showing the configuration of an image data compression (encoding) device according to an embodiment of the present invention. In Fig. 3, the image data 001 represents a set of pixels to be compressed, and is extracted by an image processing apparatus (not shown) that digitally processes the image. The compression target pixel X 002 represents a pixel to be compressed at this stage. 4 is a diagram showing the arrangement relationship between the compression target pixel X and the peripheral pixels when the image format is an interlaced image or a progressive image. Also, in FIG. 4, the line is shown as a broken line. The quantizer 003 quantizes "prediction error" which is a difference value between the compression target pixel X (002) and the predicted value X '(006).

도 5는 본 발명의 실시형태에 따른 예측 오차(X-X')에 대한 양자화값 및 양자화 번호의 대응을 나타내는 양자화 테이블예이다. 도 5에 도시하는 양자화 테이블에서는, 예측 오차(X-X')를 입력으로 해서, 예측 오차 양자화값(단순히 양자화값이라고도 말함)과 양자화 번호를 출력한다. 양자화 단계의 폭은, 예측 오차의 절대값이 작은 경우일수록 좁고, 예측 오차의 절대값이 큰 경우일수록 넓은 것이 바람직하다. 이것은, 일반적으로 예측 오차가 작은 경우는 예측이 맞기 쉬운 평탄한 화상이고, 반대로 예측 오차가 큰 경우는 예측이 빗나가기 쉬운 에지 근방인 경향이 있어, 평탄한 부분에 오차가 있으면 사람의 눈에 검지되기 쉽기 때문에, 예측 오차가 작은 경우에는 단계 폭을 좁게 할 필요가 있다. 적응 양자화를 행할지의 여부에 따르지만, 구체적으로는 최소 단계 폭은 1∼4가 바람직하다. 한편, 예측 오차가 큰 경우의 단계 폭은, 출현 빈도가 적은 것과, 압축 효율을 높이기 위해서 힘을 다해 많은 예측 오차를 하나의 양자화 단계로 통합하도록 하기 위하여, 24∼32가 바람직하다. 또한, 에지가 많은 복잡한 도안을 압축하면 소정의 압축률에 이르지 않는 경우가 있기 때문에, 양자화 단계 폭이 다른 복수의 양자화 테이블을 갖고, 소정의 압축률을 초과할 것 같은 경우에는 단계 폭이 전체적으로 개략적인 양자화 테이블을 선택하는 적응 양자화를 행해도 상관없다. 또한 도 5에 도시하는 양자화값과 양자화 번호의 대응은, 압축측, 복원측에서 동일한 대응으로 되어 있을 필요가 있다. 그 때문에 도 5에 대응하여 양자화값과 양자화 번호의 대응을 나타내는 역양자화 테이블(도 15 참조)을 복원측에 갖게 한다. 이것에 대해서는 후술한다.5 is a quantization table example showing a correspondence between a quantization value and a quantization number with respect to a prediction error (X-X ') according to an embodiment of the present invention. In the quantization table shown in FIG. 5, a prediction error quantization value (simply referred to as a quantization value) and a quantization number are output with the prediction error (X-X ') as an input. It is preferable that the width of the quantization step is smaller when the absolute value of the prediction error is smaller, and wider when the absolute value of the prediction error is larger. In general, when the prediction error is small, the prediction is a flat image that is easy to match. On the contrary, when the prediction error is large, the prediction tends to be near the edge where the prediction is easily missed. When there is an error in the flat portion, it is easy to be detected by the human eye. Therefore, when the prediction error is small, it is necessary to narrow the step width. Although it depends on whether adaptive quantization is to be performed, the minimum step width is preferably 1 to 4. On the other hand, the step width in the case where the prediction error is large is preferably 24 to 32 so that the frequency of occurrence is small, and in order to integrate many prediction errors into one quantization step with all the power to increase the compression efficiency. In addition, when compressing a complicated pattern with many edges, the predetermined compression rate may not be reached. Therefore, if the quantization step width has a plurality of quantization tables having different widths, and the predetermined compression rate is likely to exceed the predetermined compression rate, the overall step width is roughly quantized. You may perform adaptive quantization to select a table. In addition, the correspondence between the quantization value and the quantization number shown in FIG. 5 needs to be the same correspondence on the compression side and the reconstruction side. Therefore, corresponding to Fig. 5, the decompression quantization table (see Fig. 15) indicating the correspondence between the quantization value and the quantization number is provided on the restoration side. This will be described later.

가변 길이 부호화기(004)는, 도 5의 양자화 테이블로부터 얻어지는 양자화 번호를 입력으로 해서, 가변 길이 부호를 출력한다. 압축 부호 버퍼(005)는 가변 길이 부호화기(004)로부터 출력되는 가변 길이 부호, 다시 말하면 압축 부호를 일시 축적한다.The variable length encoder 004 inputs a quantization number obtained from the quantization table in FIG. 5 and outputs a variable length code. The compressed code buffer 005 temporarily accumulates a variable length code output from the variable length encoder 004, that is, a compressed code.

예측값 X'(006)는, 예측값 후보 산출 모듈(011)에 의해 산출된 예측값 후보 1∼k(본 실시형태의 설명에서는 k=6으로 함) 중에서 멀티플렉서[MPX](015)에 의해 선택된 예측값 후보 중 하나이다. 주변 화소 A(007)는, 도 4에 도시되어 있는 바와 같이, 압축 대상 화소 X(002)의 좌측의 화소, 즉, 동일한 라인 중에서 하나 이전에 처리한 화소이다. 예측용 라인 버퍼(008)는, 예측용으로서 양자화 결과를 약 1라인분 유지하는 버퍼이며, 예컨대 시프트 레지스터로 구성된다. 도 4에 도시되어 있는 바와 같이, 주변 화소 C(009)는, 압축 대상 화소 X 위의 화소, 즉, 하나 앞서 처리 한 라인 중에서 동일한 열의 화소이다. 주변 화소 B(010)는, 압축 대상 화소 X의 좌측 위의 화소, 즉, 하나 앞서 처리한 라인 중에서 C(009)의 하나 앞에서 처리한 화소이다. 원화상에서 보면, 주변 화소 C 및 주변 화소 B는, 압축 대상 화소 X에 있어서, 인터레이스 화상의 경우에는 2라인 위의 화소에 대응하고, 프로그레시브 화상의 경우에는 1라인 위의 화소에 대응한다.The predicted value X '006 is a predicted value candidate selected by the multiplexer [MPX] 015 among predicted value candidates 1 to k (k = 6 in the description of the present embodiment) calculated by the predicted value candidate calculating module 011. Is one of. As shown in FIG. 4, the peripheral pixel A 007 is a pixel on the left side of the compression target pixel X 002, that is, a pixel processed before one of the same lines. The predictive line buffer 008 is a buffer for holding about one line of quantization results for prediction, and is composed of, for example, a shift register. As shown in FIG. 4, the peripheral pixel C 009 is a pixel on the compression target pixel X, that is, a pixel of the same column among the lines processed one earlier. The peripheral pixel B 010 is the pixel on the upper left side of the compression target pixel X, that is, the pixel processed before one of the C 009 among the lines previously processed. In the original image, the peripheral pixels C and the peripheral pixels B correspond to pixels on two lines in the interlaced image and pixels on one line in the progressive image in the compression target pixel X.

예측값 X'(006)는, 주변 화소 A(007), C(009), B(010)를 기초로 예측값 후보 산출 모듈(011)에 의해 산출된 예측값 후보 중 하나인데, 처음에 화상 포맷이 프로그레시브 화상인 경우의 예측값 후보의 산출에 대해서 설명한다. 도 4에 도시하는 바와 같이 프로그레시브 화상인 경우에는, 1라인 앞서 처리한 화소 C, B의 화소 레벨값과 동일한 라인 중에서 하나 앞서 처리한 화소 A의 화소 레벨값을 이용하여 3개의 방향의 상관을 고려한 예측값 X'(006)의 예측값 후보는, A, C, (A+C-B)가 된다.The predicted value X '006 is one of the predicted value candidates calculated by the predicted value candidate calculating module 011 based on the peripheral pixels A 007, C 009, and B 010, and initially the picture format is progressive. The calculation of the predictive value candidate in the case of an image will be described. As shown in FIG. 4, in the case of a progressive image, correlation of three directions is taken into consideration by using the pixel level value of the pixel A processed before one of the same lines as the pixel level values of the pixels C and B processed before one line. The predicted value candidates of the predicted value X '006 are A, C, and (A + CB).

다음으로, 화상 포맷이 인터레이스 화상인 경우의 예측값 후보의 산출에 대해서 설명한다. 도 4에 도시하는 바와 같이 인터레이스 화상인 경우에는, 짝수 라인과 홀수 라인이 교대로 송신되기 때문에, 프레임 메모리 등을 갖지 않고서 라인 단위로 처리를 행하기 위해서는 상관이 낮은 2라인 이전에 처리한 화소를 사용하게 된다. 이 때문에, 직접 2라인 이전에 처리한 화소 C, B의 화소 레벨값을 사용하지 않고서, 2개의 라인 사이의 화소 C'(화소 X와 화소 C 사이에 있는 화소), B'(화소 A와 화소 B 사이에 있는 화소)를 상정한다. 상기한 프로그레시브 화상과 동일하게 처리하기 위해서 화소 C'의 화소 레벨값을 화소 A와 C의 보간값 "(A+C)/2"로 하고, 화소 B'의 레벨값을 화소 A와 B의 보간값 "(2A+C-B)/2"를 사용하여 산출한다. 또한 화소 C' 및 화소 B'에 더하여, 동일한 라인 중에서 하나 이전에 처리한 화소 A의 화소 레벨값을 이용하여 3개의 방향의 상관을 고려한 예측값 X'(006)의 예측값 후보는, A, (A+C)/2, (2A+C-B)/2가 된다. Next, the calculation of the prediction value candidate when the picture format is an interlaced picture will be described. In the case of an interlaced image as shown in Fig. 4, since even lines and odd lines are transmitted alternately, in order to perform processing on a line-by-line basis without a frame memory or the like, the pixels processed before two lines having low correlation are selected. Will be used. For this reason, the pixel C '(pixel between pixel X and pixel C) between two lines, and B' (pixel A and pixel) without using the pixel level values of pixels C and B processed directly before two lines. Pixel between B) is assumed. In order to process the same as the above-described progressive image, the pixel level value of the pixel C 'is made the interpolation value "(A + C) / 2" of the pixels A and C, and the level value of the pixel B' is the interpolation of the pixels A and B. It calculates using the value "(2A + CB) / 2". In addition to the pixel C 'and the pixel B', the prediction value candidates of the predicted value X '(006) in consideration of correlation in three directions using the pixel level value of the pixel A processed before one of the same lines are A, (A + C) / 2 and (2A + CB) / 2.

이와 같이 예측값 후보 산출 모듈(011)은, 주변 화소 A(007), C(009), B(010)를 기초로 이하에 나타내는 예측값 후보 1∼k를 산출하여 멀티플렉서[MPX](015)에 송신한다. 즉,In this way, the prediction value candidate calculation module 011 calculates the prediction value candidates 1 to k shown below based on the peripheral pixels A (007), C (009), and B (010) and transmits them to the multiplexer [MPX] 015. do. In other words,

예측값 후보 1: (A+C)/2Prediction candidate 1: (A + C) / 2

예측값 후보 2: APrediction candidate 2: A

예측값 후보 3: (2A+C-B)/2Prediction candidate 3: (2A + C-B) / 2

예측값 후보 4: CPrediction candidate 4: C

예측값 후보 5: APrediction candidate 5: A

예측값 후보 6: A+C-BPrediction candidate 6: A + C-B

상기에 있어서 예측값 후보 산출 모듈(011)은, 인터레이스 화상의 경우에 예측값으로서, 계수 m, n의 값이 모두 0을 취하지 않는 어떤 값(0을 포함하는 양의 정수)이고, 또한 시프트 연산에 의한 처리가 가능하도록 m+n의 값이 2의 i승인 계수 m, n을 이용하여, 3개의 예측값 후보 "A", "(m*A+n*C)/(m+n)", "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"의 중간값으로 할 수 있다. 이러한 예측값을 얻기 위해서는, 상기한 예측값 후보 산출 모듈(011)은, 상기 예측값 후보 1∼6 외에, 예측값 후보 7∼9로서의 3개의 예측값 후보 "A", "(m*A+n*C)/(m+n)", "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"을 산출한다. 그 결과, k의 값은 9가 된다. 즉 계수 m, n을 고려한 경우의 인터레이스 화상에 대해서는, 상술한 계수가 고려되어 있지 않은 인터레이스 화상 또는 프로그레시브가 화상 외에, 화상 포맷이 하나 더해지게 되기 때문에, k의 값은 9가 된다. 게다가 또한 화상 포맷수가 증가하게 되면 k는 화상 포맷수의 3배가 된다. 또한 계수 m, n으로서, 예컨대 m=1, n=3을 이용한 인터레이스용 예측값으로서, "A", "(A+3*C)/4" 및 "(4*A+3*C-3*B)/4"를 사용하여 세로 방향의 화소 레벨값의 변동에 강한 예측값을 산출하는 것이 가능하다. 즉, 세로 방향의 상관이 강한 화상에 대해서는, m보다도 n의 값을 크게 함으로써 대응한다. 또한 프로그레시브 화상의 경우에서의 상기 계수의 값으로서는, m=0, n=1로 미리 결정해 두고, 결과적으로 종래의 MAP 예측기와 동일한 예측값이 되도록 한다. In the above description, the predicted value candidate calculating module 011 is a predicted value in the case of an interlaced image, which is a value (positive integer including 0) in which the values of the coefficients m and n do not all take 0, Three prediction value candidates "A", "(m * A + n * C) / (m + n)", "A +" using coefficients m and n whose values of m + n are i's power of 2 to enable processing It can be set as an intermediate value of (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n) ". In order to obtain such a predicted value, the predicted value candidate calculating module 01 1 uses three predicted value candidates "A" and "(m * A + n * C) / as predicted value candidates 7-9 in addition to the predicted value candidates 1-6. (m + n) "," A + (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n) "is calculated. As a result, the value of k becomes 9. In other words, for an interlaced image in which the coefficients m and n are considered, the value of k becomes 9 since an interlaced image or progressive image in which the above-described coefficients are not considered is added in addition to the image. Furthermore, when the number of picture formats increases, k becomes three times the number of picture formats. Further, as the coefficients m and n, for example, prediction values for interlacing using m = 1 and n = 3, "A", "(A + 3 * C) / 4" and "(4 * A + 3 * C-3 *" Using B) / 4 ", it is possible to calculate the prediction value resistant to the fluctuation of the pixel level value in the vertical direction. That is, an image with strong correlation in the vertical direction is responded by increasing the value of n rather than m. In addition, as a value of the said coefficient in the case of a progressive image, m = 0 and n = 1 are predetermined, and as a result, it is set as the prediction value similar to the conventional MAP predictor.

화상 포맷(012)은, 화상 처리 장치(도시하지 않음)로부터 본 화상 데이터 압축 장치에 제공되지만, 일반적으로 화상 데이터 포맷은, 가로 방향으로 화소 상관이 강한 화상인지 세로 방향으로 화소 상관이 강한 화상인지를 나타내는 신호로서 지시된다. 즉 상기한 인터레이스 화상은 가로 방향으로 화소 상관이 강한 화상이고, 또한 상기한 프로그레시브 화상은 세로 방향으로 화소 상관이 강한 화상(가로 방향의 화소 상관이 세로 방향의 상관보다도 강하다고 하는 것은 아닌 화상)이라고 지시된다. 또한 화상 포맷이, 예컨대 화상 데이터의 샘플링 포맷을 나타내는 신호라고 해도 마찬가지이다.The image format 012 is provided to an image data compression device viewed from an image processing apparatus (not shown). In general, the image data format is an image having strong pixel correlation in the horizontal direction or an image having strong pixel correlation in the vertical direction. It is indicated as a signal indicating. In other words, the interlaced image is an image having strong pixel correlation in the horizontal direction, and the progressive image is an image having strong pixel correlation in the vertical direction (an image that does not say that the pixel correlation in the horizontal direction is stronger than the correlation in the vertical direction). Is directed. The same applies to the picture format as a signal indicating, for example, the sampling format of the picture data.

예측값 결정 모듈(013)은, 예측값 후보 1∼k 중 어느 것을 예측값으로 할지 를 이하의 도 6 및 도 7에 도시하는 2개의 대응표를 기초로 결정하여, 제어 신호(014)로서 멀티플렉서[MPX](015)에 송신한다. 도 6은 주변 화소 A, B 및 C의 화소 레벨값의 대소를 비교하여 주변 화소 A, B 및 C의 중간값을 산출한 결과를 기초로, 예측값 후보 (1)∼(3)으로 좁히기 위한 중간값 대응표이다. 도 6에 도시하는 예측값 후보 (1)∼(3)과 중간값의 대응은, 압축측, 복원측에서 동일한 대응으로 되어 있을 필요가 있다. 그 때문에 도 6에 대응하여 복원측에 예측값 후보 (1)∼(3)과 중간값의 대응을 나타내는 중간값 대응표(도 17 참조)를 갖게 한다. 이것에 대해서는 후술한다.The predicted value determining module 013 determines which of the predicted value candidates 1 to k is the predicted value based on the two correspondence tables shown in FIGS. 6 and 7 below, and the multiplexer [MPX] ( 015). FIG. 6 is an intermediate for narrowing to prediction value candidates (1) to (3) based on a result of comparing the magnitudes of pixel level values of peripheral pixels A, B and C by calculating the median value of peripheral pixels A, B and C. FIG. Value mapping table. The correspondence between the predicted value candidates (1) to (3) and the intermediate value shown in FIG. 6 needs to be the same correspondence on the compression side and the reconstruction side. Therefore, corresponding to FIG. 6, the restoration side has an intermediate value correspondence table (see FIG. 17) indicating correspondence between the predicted value candidates (1) to (3) and the intermediate value. This will be described later.

도 7은 도 6에서 좁힌 예측값 후보 (1)∼(3)과, 화상 포맷(012)이 가로 방향으로 화소 상관이 강한 화상(인터레이스 화상)인지 또는 세로 방향으로 화소 상관이 강한 화상(프로그레시브 화상)인지로, 최종적으로 예측값 후보 1∼k 중 어느 것을 예측값에 사용할지를 나타내는 제어 신호(014)를 멀티플렉서[MPX](015)에 송신하는 중간값·화상 포맷 대응표이다. 제어 신호(014)로서 출력되는 것은, 도 7의 대응표에 나타나는 바와 같이 (000∼101)의 3비트 신호이다. 또한, 상기한 바와 같이 예측값 후보 산출 모듈(011)로부터 계수 m, n이 고려된 인터레이스 화상에 대한 3개의 예측값 후보 "A", "(m*A+n*C)/(m+n)", "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"의 산출 출력이 추가되는 경우에는, 예측값 후보 (1)∼(3)에 대응하여 가로 방향 화소 상관이 강한 화상란에 제어 신호(이 경우는 4비트로 표현됨)에 의해 식별되는 예측값 후보 "A", "(m*A+n*C)/(m+n)", "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"이 부가되게 된다. 또한, 도 7에 도시하는 중간값과 화상 포맷의 대응은, 압축측, 복원 측에서 동일한 대응으로 되어 있을 필요가 있다. 그 때문에 도 7에 대응하여 복원측에 중간값과 화상 포맷의 대응을 나타내는 중간값·화상 포맷 대응표(도 18 참조)를 갖게 한다. 이것에 대해서는 후술한다.FIG. 7 shows the prediction value candidates (1) to (3) narrowed in FIG. 6, and the image format 012 is an image having strong pixel correlation in the horizontal direction (interlaced image) or an image having strong pixel correlation in the vertical direction (progressive image). Recognition is an intermediate value / image format correspondence table for finally transmitting to the multiplexer [MPX] 015 a control signal 014 indicating which of the predicted value candidates 1 to k are to be used for the predicted value. Output as the control signal 014 is a 3-bit signal of (000 to 101) as shown in the correspondence table of FIG. Further, as described above, the three predicted value candidates " A " and " (m * A + n * C) / (m + n) " for the interlaced image in which the coefficients m and n are considered from the predictive value candidate calculating module 011. , Predictive value candidates (1) to (a) when the calculated output of "A + (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n)" is added. Prediction value candidates " A " and " (m * A + n * C) / (m + n) identified by a control signal (in this case, represented by 4 bits) in an image column having strong horizontal pixel correlation corresponding to (3). "," A + (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n) "is added. In addition, the correspondence between the intermediate value and the image format shown in Fig. 7 needs to be the same correspondence on the compression side and the reconstruction side. Therefore, corresponding to FIG. 7, the restoration side has an intermediate value and image format correspondence table (see FIG. 18) indicating correspondence between the intermediate value and the image format. This will be described later.

멀티플렉서[MPX](015)는, 제어 신호(014)를 기초로, 예측값 후보 1∼k 중 어느 것을 예측값으로서 선택할지를 결정한다. 도 8은 제어 신호(014)와 상술한 예측값 후보 1∼6의 대응 관계를 도시하는 대응 테이블이다. 즉, 제어 신호(000)는 예측값 후보 1에 대응하고, 제어 신호(001)는 예측값 후보 2에 대응하며, 제어 신호(010)는 예측값 후보 3에 대응하고, 제어 신호(011)는 예측값 후보 4에 대응하며, 제어 신호(100)는 예측값 후보 5에 대응하고, 제어 신호(101)는 예측값 후보 6에 대응하게 된다. 또한, 상기한 바와 같이 예측값 후보 산출 모듈(011)로부터 계수 m, n이 고려된 인터레이스 화상에 대한 3개의 예측값 후보 "A", "(m*A+n*C)/(m+n)", "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"의 산출 출력이 추가되는 경우에는, 도 8의 표에 있어서 사용하는 예측값 후보로서 예측값 후보 "A", "(m*A+n*C)/(m+n)", "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"이 부가되게 된다. 게다가 제어 신호도 추가된 3개의 예측값 후보를 식별할 수 있는 비트폭의 제어 신호(이 경우는 4비트 신호)가 필요해진다. 그리고 도 8에 도시하는 제어 신호와 예측값 후보의 대응은, 압축측, 복원측에서 동일한 대응으로 되어 있을 필요가 있다. 도 8에 대응하여 복원측에 제어 신호와 예측값 후보의 대응을 나타내는 대응 테이블(도 19 참조)을 갖게 한다. 이것에 대해서는 후술한다. 또한, 본 실시형태에서는 제어 신호(014)로서 3비트의 제어 신호(000) 내지 제어 신호(101)를 대응시키고 있 으나, 예측값 후보 1∼6에 대응시킬 수 있는 것이면 이러한 형식의 제어 신호가 아니어도 상관없다.The multiplexer [MPX] 015 determines which of the predicted value candidates 1 to k is selected as the predicted value based on the control signal 014. 8 is a correspondence table showing a correspondence relationship between the control signal 014 and the above-described predicted candidates 1-6. That is, the control signal (000) corresponds to the predicted value candidate 1, the control signal (001) corresponds to the predicted value candidate 2, the control signal (010) corresponds to the predicted value candidate 3, and the control signal (011) to the predicted value candidate 4 The control signal 100 corresponds to the predicted value candidate 5, and the control signal 101 corresponds to the predicted value candidate 6. Further, as described above, the three predicted value candidates " A " and " (m * A + n * C) / (m + n) " for the interlaced image in which the coefficients m and n are considered from the predictive value candidate calculating module 011. , The calculation output of "A + (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n)" is added, in the table of FIG. As predicted candidates to use, predicted candidates "A", "(m * A + n * C) / (m + n)", "A + (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n) "is added. In addition, a control signal of a bit width (in this case, a 4-bit signal) capable of identifying three predicted candidates to which the control signal is added is required. The correspondence between the control signal and the predicted candidate candidate shown in FIG. 8 needs to be the same correspondence on the compression side and the reconstruction side. Corresponding to Fig. 8, the restoration side has a correspondence table (see Fig. 19) indicating the correspondence between the control signal and the predicted candidate. This will be described later. In addition, in the present embodiment, the control signal 014 and the control signal 101 of three bits are associated as the control signal 014. However, the control signal of this type is not a control signal if it can correspond to the predicted candidates 1 to 6. It doesn't matter.

또한, 인터레이스인지 프로그레시브인지에 한하지 않고, 화상 데이터의 샘플링 포맷을 나타내는 신호로 어떤 예측값을 사용할지를 나타내는 대응표를 예측값 결정 모듈(013)에 유지해 두고, 이것을 기초로 예측값을 결정할 수도 있다.In addition, the prediction value determination module 013 may maintain a correspondence table indicating which prediction value to use as a signal indicating a sampling format of the image data, not only whether it is interlace or progressive, but also determine the prediction value based on this.

또한 도시하지 않으나 예측값 결정 모듈(013)로부터 화상 데이터의 샘플링 포맷을 나타내는 제어 신호를 예측값 후보 산출 모듈(011)에 송신하고, 이것을 기초로 예측값 후보 산출 모듈(011)은, 상술한 계수 m, n의 값을 결정하도록 해도 좋다.Although not shown, the predictive value candidate calculating module 011 transmits a control signal indicating the sampling format of the image data from the predictive value determining module 013 to the predictive value candidate calculating module 011 based on the coefficients m and n described above. May be determined.

도 9a는 본 발명의 실시형태에 따른 화상 데이터 압축(부호화) 장치의 동작을 설명하기 위한 플로우차트이다. 도 9b는 도 9a에서의 단계 S008에 있어서의 "로컬 디코더"의 처리를 설명하는 플로우차트이다. 도 9a 및 도 9b에서는 단계를 S라고 약기한다.9A is a flowchart for explaining the operation of the image data compression (encoding) device according to the embodiment of the present invention. FIG. 9B is a flowchart for explaining the processing of the "local decoder" in step S008 in FIG. 9A. 9A and 9B, the step is abbreviated as S.

도 9a에서의 단계의 설명에 들어가기 전에 본 예에서는 전체 화상 데이터분에 대해서 처리가 종료될 때까지 루프하는 것을 전제로 하고 있는 것에 주의해 주길 바란다.Before entering the description of the steps in FIG. 9A, it should be noted that this example assumes looping until the processing is completed for all the image data.

S001: 화상 데이터(001)로부터 압축 대상 화소 X(002)를 취득한다.S001: The compression target pixel X (002) is obtained from the image data 001.

S002: 예측값 결정 모듈(013)로, 주변 화소 A(007), C(009), B(010)에 있어서의 화소 레벨값의 대소 관계를 비교한다. 이 대소 관계와 화상 포맷(012)을 기초로 도 6 및 도 7에 도시한 대응표를 참조하여, 제어 신호(014)를 멀티플렉 서[MPX](015)에 송신한다.S002: The prediction value determination module 013 compares the magnitude relationship of the pixel level values in the peripheral pixels A (007), C (009), and B (010). Based on the magnitude relationship and the image format 012, the control signal 014 is transmitted to the multiplexer [MPX] 015 with reference to the correspondence tables shown in Figs.

S003: 예측값 후보 산출 모듈(011)로, 주변 화소 A(007), C(009), B(010)를 기초로 예측값 후보 1∼6을 산출한다. 이 경우, 정수 연산 및 시프트 연산으로 예측값을 산출한다. 그리고 정수 연산 시에는 (2A+C-B+1)/2 및 (A+C+1)/2의 소수점 이하는 버린다. 실수 연산 시에는, 1 가산하여 버리지 않고 (2A+C-B)/2 및 (A+C)/2의 값을 그대로 사용한다.S003: The prediction value candidate calculation module 011 calculates the prediction value candidates 1 to 6 based on the peripheral pixels A (007), C (009), and B (010). In this case, the predicted value is calculated by the integer operation and the shift operation. In the integer operation, the decimal point of (2A + C-B + 1) / 2 and (A + C + 1) / 2 is discarded. In real-time calculation, the values of (2A + C-B) / 2 and (A + C) / 2 are used as they are without adding one.

S004: MPX(015)로, 예측값 후보 1∼6 및 제어 신호(014)를 기초로 예측값을 결정한다.S004: The MPX 015 determines the predicted value based on the predicted candidates 1 to 6 and the control signal 014.

S005: 압축 대상 화소(002)의 화소 레벨값으로부터 예측값(006)을 감산하여, 예측 오차를 산출한다.S005: The prediction value 006 is subtracted from the pixel level value of the compression target pixel 002 to calculate a prediction error.

S006: 예측 오차를 양자화기(003)로 양자화하여, 양자화값과 양자화 번호를 취득한다.S006: Quantize the prediction error with the quantizer 003 to obtain a quantization value and a quantization number.

S007: 가변 길이 부호화기(004)로 양자화 번호를 기초로 가변 길이 부호를 생성한다. 이 부호는 Golomb 부호여도 산술 부호여도 상관 없는 것으로 한다. S007: The variable length encoder 004 generates a variable length code based on the quantization number. This code may be a Golomb code or an arithmetic code.

S008: 다음 화소를 압축하기 위해서, 주변 화소 A, B 및 C와 예측용 라인 버퍼(008)를 갱신(로컬 디코더)한다.S008: In order to compress the next pixel, the peripheral pixels A, B, and C and the prediction line buffer 008 are updated (local decoder).

S009: 주변 화소 C(009)를 다음 압축 대상 화소의 주변 화소 B(010)로서 대입한다.S009: The peripheral pixel C 009 is substituted as the peripheral pixel B 010 of the next compression target pixel.

S010: 예측용 라인 버퍼(008)로부터 다음 압축 대상 화소의 주변 화소 C(009)를 취득한다.S010: The peripheral pixel C 009 of the next compression target pixel is obtained from the prediction line buffer 008.

S011: 주변 화소 A(007)를 예측용 라인 버퍼(008)에 대입한다.S011: The peripheral pixel A 007 is substituted into the prediction line buffer 008.

S012: 양자화값과 예측값을 가산하여, 다음 압축 대상 화소의 주변 화소 A(007)로서 대입한다.S012: The quantized value and the predicted value are added and substituted as the peripheral pixel A 007 of the next compression target pixel.

또한, 예컨대 예측용 라인 버퍼(008)와 압축 대상 화소 X(002)가 도 10에 도시되는 바와 같은 값인 경우, 인터레이스용 예측기 및 프로그레시브용 예측기의 양자화 결과는 도 11 및 도 12에 도시하는 표와 같이 나타난다. 예측용 라인 버퍼(008)와 압축 대상 화소 X(002)가 도 10에 도시하는 바와 같은 픽셀값을 취할 때, 도 11 및 도 12에 도시하는 표는, 상술한 도 9a 및 도 9b에 도시한 본 발명의 실시형태에 따른 화상 데이터 압축(부호화) 장치의 동작으로부터 간단히 도출할 수 있다. 이 경우, 이전회 압축 시의 화소 C(009)는 이번회 압축 시의 화소 B(010)가 되고, 이전회의 "예측값+예측 오차 양자화값"은 이번회의 화소 A(007)가 된다.For example, when the prediction line buffer 008 and the compression target pixel X 002 have values as shown in FIG. 10, the quantization results of the interlaced predictor and the progressive predictor are shown in the tables shown in FIGS. Appears together. When the predictive line buffer 008 and the compression target pixel X 002 take pixel values as shown in Fig. 10, the tables shown in Figs. 11 and 12 are shown in Figs. 9A and 9B described above. It can be derived simply from the operation of the image data compression (encoding) device according to the embodiment of the present invention. In this case, the pixel C 009 at the time of the previous compression becomes the pixel B 010 at the time of this compression, and the previous "prediction value + prediction error quantization value" becomes the pixel A 007 at this time.

도 13은 본 발명의 실시형태에 따른 화상 데이터 압축 장치의 시스템 구성을 도시하는 기능 블록도이며, 상기에서 설명한 내용을 기능화하여 블록으로 표현한 것이다. 도 13에서 본 발명의 실시형태에 따른 화상 데이터 압축 장치는, 압축 처리해야 할 화상 데이터(102)를 압축 처리부(110)에 입력하고, 압축 처리부(110)에서는, 우선 입력된 화상 데이터(102)를 라인마다 판독부(111)로 판독하여 압축 대상 화소를 추출하며, 추출한 압축 대상 화소에 대하여 예측 처리부(112)에서는, 도 6에 도시한 바와 같은 중간값 대응 테이블(113), 도 7에 도시한 바와 같은 중간값·화상 포맷 대응 테이블(114)을 참조하여, 도 3의 예측값 후보 산출 모듈(011)에 상당하는 예측값 후보 산출부(115)로 예측값 후보를 산출하고, 또한, MPX(015)에 상당하는 예측값 결정부(116)에서는 화상 포맷(104)을 기초로 산출되는 예측값 후보 중에서 예측값을 결정하며, 결정한 예측값과 압축 대상 화소의 차분으로부터 예측 오차를 구하고, 이 예측 오차를 양자화부(003)에 상당하는 양자화 처리부(115)에 입력하며, 양자화 처리부(117)에서는 도 5에 도시한 바와 같은 양자화 테이블(118)을 참조하여 예측 오차로부터 예측 오차 양자화값과 양자화 번호를 얻으며 양자화 번호를 입력하고, 가변 길이 부호화기(004)에 상당하는 부호화 처리부(119)로부터 가변 길이 부호(압축 부호)를 얻어 이것을 압축 처리부(110)의 출력으로서 축적하여 압축 데이터(106)를 얻는 것이다.Fig. 13 is a functional block diagram showing the system configuration of the image data compression device according to the embodiment of the present invention, in which the above-described contents are functionalized and expressed in blocks. In FIG. 13, the image data compression device according to the embodiment of the present invention inputs image data 102 to be compressed into the compression processing unit 110, and the compression processing unit 110 first inputs the image data 102. Is read out by the reading unit 111 for each line to extract the compression target pixel, and the prediction processing unit 112 shows the intermediate value correspondence table 113 as shown in FIG. With reference to the intermediate value / image format correspondence table 114 as described above, the predicted value candidate calculating unit 115 corresponding to the predicted value candidate calculating module 01 1 of FIG. 3 is used to calculate the predicted value candidate, and the MPX 015 The predictive value determination unit 116 corresponding to the control unit determines a predicted value from among predicted value candidates calculated based on the image format 104, obtains a prediction error from the difference between the determined predicted value and the compression target pixel, and calculates the predicted error from the quantization unit 003. )on Input to the corresponding quantization processing unit 115, the quantization processing unit 117 refers to the quantization table 118 as shown in FIG. 5, obtains a prediction error quantization value and quantization number from the prediction error, inputs a quantization number, The variable length code (compression code) is obtained from the coding processor 119 corresponding to the variable length coder 004 and accumulated as an output of the compression processor 110 to obtain the compressed data 106.

이와 같이 본 발명의 화상 데이터 압축 장치에 따르면, 화상 포맷에 따라서 예측값을 구별하여 사용함으로써, 각각의 화상 포맷에 대하여 예측 오차를 경감시키는 것이 가능해지기 때문에, 압축 효율을 높일 수 있다. 또한 화상 포맷에 따라서 예측값을 전환하는 것만으로 충분하기 때문에, 실장 시의 프로그램, 회로 구성의 단순화를 도모할 수 있다.As described above, according to the image data compression apparatus of the present invention, it is possible to reduce the prediction error for each image format by distinguishing and using the prediction values in accordance with the image format, thereby increasing the compression efficiency. In addition, since it is enough to switch the predicted value in accordance with the picture format, the program and circuit configuration at the time of mounting can be simplified.

상기에서는, A, B 및 C의 중간값을 구하고, 중간값 대응표를 기초로 어떤 예측값 후보를 선택할지를 결정하고 있었으나, 예측값 후보를 산출하고 나서 예측값 후보의 중간값을 구하도록 해도 좋다. In the above, the median value of A, B, and C was obtained, and it was determined which prediction value candidate to select based on the median value correspondence table. However, the median value of the prediction value candidate may be obtained after calculating the prediction value candidate.

또한, 상기에서는, 인터레이스용 예측값은 (A+C)/2, A 및 (2A+C-B)/2였으나, 예측값 후보 산출 모듈(011)에 있어서, 화소 레벨값 A, B 및 C로부터 계수 m, n을 이용하여, "A", "(m*A+n*C)/(m+n)" 및 "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"을 산출하고, 계수 m, n은 모두 0을 취하지 않는 어떤 값(0을 포함하는 양의 정수)이며, 또한 시프트 연산에 의한 처리가 가능하도록 m+n의 값이 2의 i승인 값을 대입해서, 예컨대 인터레이스용 예측값으로서 "A", "(A+3*C)/4" 및 "(4*A+3*C-3*B)/4"를 사용하여 세로 방향의 화소 레벨값의 변동에 강한 예측값의 산출이 가능하다. In the above description, the predicted values for interlacing were (A + C) / 2, A and (2A + CB) / 2, but in the predicted value candidate calculating module 011, coefficient m, With n, "A", "(m * A + n * C) / (m + n)" and "A + (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n) ", and the coefficients m and n are both non-zero values (positive integers including 0), and m + n to enable processing by a shift operation. Is assigned an i-approved value of 2, for example, "A", "(A + 3 * C) / 4" and "(4 * A + 3 * C-3 * B) / 4" as predicted values for interlacing. It is possible to calculate the predicted value resistant to the fluctuation of the pixel level value in the vertical direction by using.

또한 인터레이스인지 프로그레시브인지의 화상 포맷에 한하지 않고, 화상 데이터의 샘플링 포맷을 나타내는 신호로 예측값을 구별하여 사용해도 동일한 효과가 발생된다. In addition, the same effect is generated even when the prediction value is distinguished by a signal representing the sampling format of the image data, not only an interlaced or progressive image format.

예컨대, 일반적인 DVD에 저장되어 있는 화상 데이터의 샘플링 포맷은, 통상, 4:2:2 포맷으로 되어 있다. 이것은, Y 성분(휘도 성분)의 화상 사이즈는 720×480, C 성분(색 성분)의 가로 화상 사이즈는 Y 성분의 절반으로 되어 있다. 이 때문에, C 성분은 세로 방향으로 상관이 강한 화상 데이터로 되어 있으므로, 이 때문에 계수 m, n에 관해서는 m보다 n의 값을 크게 취함으로써 대응이 가능하다. 다시 말하면, 세로 방향의 상관이 강한 주변 화소에 대한 비중을 무겁게 함으로써(n의 값을 크게 함), 예측 오차의 악화를 방지하는 것이 가능해진다. 예컨대, 화상 데이터의 샘플링 포맷 4:2:2, 화상 사이즈 720×480의 인터레이스 화상에 대하여, C 성분의 경우에는, m=1, n=3으로 해서 세로 방향으로 상관이 있는 화상 데이터로서의 대응을 행하고, Y 성분에 대해서는 화상 사이즈 720×480의 경우에는, m=1, n=1로 함으로써, 가로 방향으로 상관이 있는 화상 데이터로서의 대응을 행한다. 가로 방향으로 상관이 있는 화상 데이터의 경우에서의 계수 m, n에 관해서는 m과 n을 동일한 값으로 하고, 그런데도 예측 오차의 악화가 보여지면 n보다 m의 값을 크게 취함으로써 대응이 가능하다. 또한 다른 예로서 화상 데이터의 샘플링 포맷이 4:4:4 포맷 이고, 화상 사이즈가 800×480인 프로그레시브 화상의 경우에는, m=0, n=1로 한다.For example, the sampling format of image data stored in a general DVD is usually 4: 2: 2 format. This means that the image size of the Y component (luminance component) is 720x480, and the horizontal image size of the C component (color component) is half of the Y component. For this reason, since the C component is image data having a strong correlation in the vertical direction, the countermeasures m and n can therefore be made by taking n larger than m. In other words, it is possible to prevent the deterioration of the prediction error by increasing the specific gravity with respect to the peripheral pixel with strong longitudinal correlation (by increasing the value of n). For example, for an interlaced image of sampling format 4: 2: 2 and image size 720x480 of image data, in the case of the C component, m = 1 and n = 3 correspond to the image data correlated in the vertical direction. In the case of the image size 720x480, the m component is set to m = 1 and n = 1, so that the correspondence as the image data correlated in the horizontal direction is performed. Regarding the coefficients m and n in the case of image data correlated in the lateral direction, m and n are set to the same value. However, if deterioration of the prediction error is observed, the response is possible by taking the value of m larger than n. As another example, for a progressive image in which the sampling format of the image data is 4: 4: 4 format and the image size is 800x480, m = 0 and n = 1.

또한 필드 메모리(1라인분의 버퍼)만을 이용하고, 프레임 메모리가 불필요하기 때문에, 실장 시 비용을 삭감할 수 있다.In addition, since only the field memory (a buffer for one line) is used and no frame memory is required, the cost can be reduced at the time of mounting.

또한, 상기에서는, 예측값 후보 산출 모듈(011)이, 예측값 후보를 k개(상술한 설명에서는 6개) 산출하고, 도 6, 도 7을 기초로 압축된 제어 신호를 기초로 멀티플렉서[MPX](015)로 하나의 예측값을 선택하고 있다. 이러한 처리 순서에 따르면, 예측값 후보를 도 6, 도 7에서 압축하는 것과, 예측값 산출을 동일한 타이밍으로 실행하는 것이 가능해져, 처리 속도를 향상시킬 수 있다. 즉, 예측값 결정 모듈 및 예측값 산출 모듈의 각각에 있어서 병렬 처리하여, 각 예측값 후보의 산출을 종료한 단계에서, 어떤 예측값을 사용할지를 결정할 수 있기 때문에, 이 병렬 처리에 의해 고속으로 데이터 압축을 행하는 것이 가능해진다. 또한 예측값 결정 모듈 및 예측값 산출 모듈에 있어서는 테이블을 이용하여 연산 처리하기 때문에, 프로그램 처리를 고속화하는 것이 가능하다.In addition, in the above description, the predictive value candidate calculation module 011 calculates k predictive value candidates (six in the above description) and multiplexer [MPX] (based on the compressed control signal based on FIGS. 6 and 7 ( 015) selects one prediction value. According to this processing procedure, it is possible to compress the predictive value candidate in FIGS. 6 and 7 and to execute the predictive value calculation at the same timing, thereby improving the processing speed. That is, since each of the predicted value determining module and the predicted value calculating module can be processed in parallel and the calculation of each predicted value candidate is finished, it is possible to determine which predicted value to use. It becomes possible. In the predicted value determining module and the predicted value calculating module, arithmetic processing is performed using a table, so that the program processing can be speeded up.

한편, 처리 속도를 중시하지 않고 구성 규모를 삭감하는 경우의 실장으로서는, 도 6의 중간값 대응표를 구성에서 제외시키고, 도 7을 기초로 미리 아는 화상 포맷에 따라서 먼저 3개의 예측값을 산출하며, 3개의 예측값 중에서 중간값을 직접 구한다고 하는 구성도 고려된다. 또한, 다른 패턴으로서, 도 6의 중간값 대응표에서 어떤 예측값 후보식에 의해 산출하면 좋을지를 결정하고, 상기 결정한 하나의 식만 계산 처리를 실행함으로써, 복수 산출한 예측값 중에서 채용해야 할 하나를 선택하는 구성을 삭감하는 방법도 고려된다.On the other hand, as an implementation in the case of reducing the construction scale without placing importance on the processing speed, the intermediate value correspondence table of FIG. 6 is excluded from the configuration, and three predicted values are first calculated based on the image format known in advance on the basis of FIG. It is also contemplated that the median of the two predicted values is directly obtained. In addition, as another pattern, a structure for selecting which one to adopt from a plurality of calculated predicted values is determined by determining which predicted candidate formula should be calculated from the intermediate value correspondence table of FIG. 6 and executing only the above-described determined calculation process. A method of cutting down is also considered.

또한, 본 발명의 화상 데이터 압축 장치는, 처리 대상으로 하는 화상이 프로그레시브 화상인 경우에는 프레임 단위로, 인터레이스 화상인 경우에는 필드 단위로 화면의 상부로부터 하부를 향한 순서로, 스트림 형상으로 흘러 오는 화상 데이터를 처리 대상으로 한다. 또한, 압축 부호화 후의 압축 데이터는, 본 장치가 접속하고 있는 전송로의 전송 규약에 따라서, 일정한 사이즈마다 패킷화되어 전송되게 된다.In addition, the image data compression apparatus of the present invention is an image flowing in a stream form in the order from the top to the bottom of the screen in units of frames when the image to be processed is a progressive image, or in units of fields in the case of an interlaced image. The data is to be processed. In addition, the compressed data after compression encoding is packetized and transmitted for each fixed size according to the transmission protocol of the transmission path to which the apparatus is connected.

도 14는 본 발명의 실시형태에 따른 화상 데이터 복원(복호화) 장치의 구성을 도시하는 블록도이다. 도 14에서, 압축 부호(021)는, 상기 도 3에 도시한 본 발명의 실시형태에 따른 화상 데이터 압축(부호화) 장치의 출력인 가변 길이 부호화된 화상 데이터의 압축 부호를 나타내고 있다. 그리고 역부호화기(022)는, 화상 데이터의 압축된 부호를 입력으로 해서, 그 부호에 해당하는 양자화 번호를 출력한다. 역양자화기(023)는, 양자화 번호를 입력으로 해서, 예측 오차의 양자화값 X(024)를 출력한다.14 is a block diagram showing the configuration of an image data decompression (decoding) device according to an embodiment of the present invention. In FIG. 14, the compressed code 021 shows the compressed code of the variable length coded image data which is the output of the image data compression (encoding) apparatus according to the embodiment of the present invention shown in FIG. The decoder 022 receives the compressed code of the image data, and outputs a quantization number corresponding to the code. The inverse quantizer 023 takes a quantization number as an input and outputs a quantized value X (024) of the prediction error.

도 15는 역양자화기(023)에 구비된 상기 양자화 번호에 대한 예측 오차 양자화값의 대응을 나타내는 역양자화 테이블이다. 도 15에 도시하는 역양자화 테이블에서는, 양자화 번호를 입력으로 해서, 예측 오차 양자화값을 출력한다. 도 15에 도시하는 예측 오차 양자화값과 양자화 번호의 대응은, 복원측, 압축측에서 동일한 대응으로 되어 있을 필요가 있다. 그 때문에 도 15에 대응하여 압축측에 예측 오차 양자화값과 양자화 번호의 대응을 나타내는 양자화 테이블(도 5 참조)을 구비하고 있다. FIG. 15 is an inverse quantization table showing correspondence of prediction error quantization values with respect to the quantization number included in the inverse quantizer 023. FIG. In the inverse quantization table shown in FIG. 15, a prediction error quantization value is output by inputting a quantization number. The correspondence between the prediction error quantization value and the quantization number shown in FIG. 15 needs to be the same correspondence on the reconstruction side and the compression side. Therefore, corresponding to FIG. 15, the compression side is provided with a quantization table (refer FIG. 5) which shows the correspondence of a prediction error quantization value and a quantization number.

또한 도 16은 화상 포맷(032)이, 예컨대, 인터레이스 화상, 또는, 프로그레시브 화상일 때의 복원 대상 화소 X와 주변 화소의 배치 관계를 도시하는 도면이다. 또한 도 15에서 라인은 파선으로 나타나 있다.FIG. 16 is a diagram showing an arrangement relationship between the restoration target pixel X and the peripheral pixels when the image format 032 is, for example, an interlaced image or a progressive image. Also, in FIG. 15, the line is shown as a broken line.

예측 오차 양자화값 X(024)는 예측값 X'(026)와 가산하여 복원 화상 데이터(025)를 얻으며, 다음 복원 대상 화소의 주변 화소 A(027)로도 된다.The prediction error quantization value X (024) is added to the prediction value X '026 to obtain reconstructed image data 025, and may be the peripheral pixel A 027 of the next reconstruction target pixel.

주변 화소 A(027)는, 도 16에 도시되어 있는 바와 같이, 복원 대상 화소의 좌측의 화소이다. 예측용 라인 버퍼(028)는, 예측용으로서 양자화 결과 약 1라인분을 유지하는 버퍼이며, 예컨대 시프트 레지스터로 구성된다. 도 16에 도시되어 있는 바와 같이, 주변 화소 C(029)는, 복원 대상 화소 위(이전 라인)의 화소이고, 주변 화소 B(030)는, 복원 대상 화소의 좌측 위(이전 라인)의 화소이다. The peripheral pixel A 027 is a pixel on the left side of the restoration target pixel, as shown in FIG. 16. The predictive line buffer 028 is a buffer that holds about one line of the quantization result for prediction, and is configured of, for example, a shift register. As shown in FIG. 16, the peripheral pixel C (029) is a pixel on the restoration target pixel (previous line), and the peripheral pixel B 030 is a pixel on the left upper side (previous line) of the restoration target pixel. .

예측값 X'(026)는, 주변 화소 A(027), C(029), B(030)를 기초로 예측값 후보 산출 모듈(031)에 의해 산출된 예측값 후보 중 하나인데, 처음에 화상 포맷이 프로그레시브 화상인 경우의 예측값 후보의 산출에 대해서 설명한다. 도 16에 도시하는 바와 같이 프로그레시브 화상의 경우에는, 1라인 앞서 처리한 화소 C, B의 화소 레벨값과 동일한 라인 중에서 하나 앞서 처리한 화소 A의 화소 레벨값을 이용하여 3개의 방향의 상관을 고려한 예측값 X'(026)의 예측값 후보는, A, C, (A+C-B)가 된다.The predicted value X '026 is one of the predicted value candidates calculated by the predicted value candidate calculating module 031 based on the neighboring pixels A 027, C (029), and B 030, and initially the picture format is progressive. The calculation of the predictive value candidate in the case of an image will be described. As shown in Fig. 16, in the case of a progressive image, correlation in three directions is taken into consideration by using the pixel level value of the pixel A processed before one of the same lines as the pixel level values of the pixels C and B processed before one line. The predicted value candidates of the predicted value X '026 are A, C, and (A + CB).

다음으로, 화상 포맷이 인터레이스 화상인 경우의 예측값 후보의 산출에 대해서 설명한다. 도 16에 도시하는 바와 같이 인터레이스 화상의 경우는, 짝수 라인과 홀수 라인이 교대로 송신되기 때문에, 프레임 메모리 등을 갖지 않고서 라인 단 위로 처리를 행하기 위해서는 상관이 낮은 2라인 앞서 처리한 화소를 사용하게 된다. 이 때문에, 직접 2라인 앞서 처리한 화소 C, B의 화소 레벨값을 사용하지 않고서, 2개의 라인 사이의 화소로서, 화소 C와 화소 X 사이의 화소 C', 및 화소 B와 화소 A 사이의 화소 B'를 상정하여 상기한 프로그레시브 화상과 동일하게 처리하기 위해서 화소 C', B'의 화소 레벨값을 화소 A와 C의 보간값 "(A+C)/2" 및 화소 A와 B의 보간값 "(2A+C-B)/2"를 사용하고, 또한 동일한 라인 중에서 하나 앞서 처리한 화소 A의 화소 레벨값을 이용하여 3개의 방향의 상관을 고려한 예측값 X'(026)의 예측값 후보는, A, (A+C)/2, (2A+C-B)/2가 된다.Next, the calculation of the prediction value candidate when the picture format is an interlaced picture will be described. As shown in Fig. 16, in the case of an interlace image, even lines and odd lines are transmitted alternately, so that two lines of low correlation have been used to perform processing on line units without a frame memory or the like. Done. For this reason, the pixel C 'between the pixel C and the pixel X, and the pixel between the pixel B and the pixel A as a pixel between two lines, without using the pixel level value of the pixels C and B which were processed directly before two lines. The pixel level values of the pixels C 'and B' are interpolated with the interpolation values "(A + C) / 2" of the pixels A and C and the interpolation values of the pixels A and B in order to assume B 'and the same processing as the above-described progressive image. The prediction value candidate of the predicted value X '026 which takes into account correlation of three directions using "(2A + CB) / 2" and using the pixel level value of the pixel A processed one earlier in the same line is A, (A + C) / 2, (2A + CB) / 2.

이와 같이 예측값 후보 산출 모듈(031)은, 주변 화소 A(027), C(029), B(030)를 기초로 이하에 나타내는 예측값 후보 1∼k(본 실시형태의 설명에서는 k=6으로 함)를 산출하여 멀티플렉서[MPX](035)에 송신한다. 즉,In this way, the predictive value candidate calculation module 031 uses the predictive value candidates 1 to k described below based on the peripheral pixels A 027, C (029), and B 030 (k = 6 in the description of the present embodiment). ) Is transmitted to the multiplexer [MPX] 035. In other words,

예측값 후보 1: (A+C)/2Prediction candidate 1: (A + C) / 2

예측값 후보 2: APrediction candidate 2: A

예측값 후보 3: (2A+C-B)/2Prediction candidate 3: (2A + C-B) / 2

예측값 후보 4: CPrediction candidate 4: C

예측값 후보 5: APrediction candidate 5: A

예측값 후보 6: A+C-BPrediction candidate 6: A + C-B

상기에 있어서 예측값 후보 산출 모듈(031)은, 인터레이스 화상의 경우에 예측값으로서, 계수 m, n의 값이 모두 0을 취하지 않는 어떤 값(0을 포함하는 양의 정수)이며, 또한 시프트 연산에 의한 처리가 가능하도록 m+n의 값이 2의 i승인 계 수 m, n을 이용하여, 인터레이스 화상의 예측값으로서는, 3개의 예측값 후보 "A", "(m*A+n*C)/(m+n)", "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"의 중간값으로 할 수 있다. 이러한 예측값을 얻기 위해서는, 상기한 예측값 후보 산출 모듈(031)은, 상기 예측값 후보 1∼6 외에, 예측값 후보 7∼9로서의 3개의 예측값 후보 "A", "(m*A+n*C)/(m+n)", "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"을 산출한다. 그 결과, k의 값은 9가 된다. 즉 계수 m, n이 고려된 인터레이스 화상의 경우에는, 상술한 계수가 고려되어 있지 않은 인터레이스 화상 또는 프로그레시브가 화상 외에, 화상 포맷이 하나 더해지게 되기 때문에, k의 값은 9가 된다. 게다가 또한 화상 포맷수가 증가하게 되면 k는 화상 포맷수의 3배가 된다.In the above description, the predicted value candidate calculating module 031 is a predicted value in the case of an interlaced image, which is a value (positive integer including 0) in which the values of the coefficients m and n do not all take 0, In order to enable processing, three predicted candidates "A" and "(m * A + n * C) / (m are used as predicted values of an interlaced image by using the coefficients m and n whose m + n values are i's power of 2. + n) "and" A + (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n) ". In order to obtain such a predicted value, the predicted value candidate calculation module 031 is provided with three predicted value candidates " A " and " (m * A + n * C) / " (m + n) "," A + (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n) "is calculated. As a result, the value of k becomes 9. That is, in the case of an interlaced image in which coefficients m and n are considered, the value of k becomes 9 since an interlaced image or progressive image in which the above-described coefficients are not considered is added to the image format other than the image. Furthermore, when the number of picture formats increases, k becomes three times the number of picture formats.

또한 계수 m, n으로서, 예컨대 m=1, n=3을 이용한 인터레이스용 예측값으로서, "A", "(A+3*C)/4" 및 "(4*A+3*C-3*B)/4"를 사용하여 세로 방향의 화소 레벨값의 변동에 강한 예측값을 산출하는 것이 가능하다. 또한 프로그레시브 화상의 경우에 있어서의 상기 계수의 값으로서는, m=0, n=1로 미리 결정해 두고, 결과적으로 종래의 MAP 예측기와 동일한 예측값이 되도록 한다.Further, as the coefficients m and n, for example, prediction values for interlacing using m = 1 and n = 3, "A", "(A + 3 * C) / 4" and "(4 * A + 3 * C-3 *" Using B) / 4 ", it is possible to calculate the prediction value resistant to the fluctuation of the pixel level value in the vertical direction. In addition, as a value of the said coefficient in the case of a progressive image, m = 0 and n = 1 are predetermined, and as a result, it is set as the predicted value similar to the conventional MAP predictor.

화상 포맷(032)은, 화상 처리 장치(도시하지 않음)로부터 본 화상 데이터 복원 장치에 제공되지만, 일반적으로 화상 데이터 포맷은, 가로 방향으로 화소 상관이 강한 화상인지 세로 방향으로 화소 상관이 강한 화상인지를 나타내는 신호로서 지시된다. 즉 상기한 인터레이스 화상은, 가로 방향으로 화소 상관이 강한 화상이고, 또한 상기한 프로그레시브 화상은 세로 방향으로 화소 상관이 강한 화상이라고 해서 지시된다. 또한 화상 포맷이, 예컨대 화상 데이터의 샘플링 포맷을 나타내는 신호라고 해도 마찬가지이다.The image format 032 is provided to an image data decompression device viewed from an image processing apparatus (not shown). In general, the image data format is an image having strong pixel correlation in the horizontal direction or an image having strong pixel correlation in the vertical direction. It is indicated as a signal indicating. In other words, the interlaced image is an image with strong pixel correlation in the horizontal direction, and the progressive image is indicated as an image with strong pixel correlation in the vertical direction. The same applies to the picture format as a signal indicating, for example, the sampling format of the picture data.

예측값 결정 모듈(033)은, 예측값 후보 1∼k 중 어느 것을 예측값으로 할지를 이하의 도 17 및 도 18에 도시하는 2개의 대응표를 기초로 결정하고, 제어 신호(034)로서 멀티플렉서[MPX](035)에 송신한다. 도 17은 주변 화소 A, B 및 C의 화소 레벨값의 대소를 비교하여 주변 화소 A, B 및 C의 중간값을 산출한 결과를 기초로, 예측값 후보 (1)∼(3)으로 좁히기 위한 중간값 대응표이다. 도 17에 대응하여 압축측에 예측값 후보 (1)∼(3)과 중간값의 대응을 나타내는 중간값 대응표(도 6 참조)를 갖게 하고 있다.The prediction value determination module 033 determines which of the prediction value candidates 1 to k is to be a prediction value based on the two correspondence tables shown in FIGS. 17 and 18 below, and as a control signal 034, a multiplexer [MPX] 035. To send). FIG. 17 shows the intermediate value for narrowing to predicted value candidates (1) to (3) based on the result of comparing the magnitude of pixel level values of peripheral pixels A, B and C by calculating the median value of peripheral pixels A, B and C. FIG. Value mapping table. In response to FIG. 17, the compression side has an intermediate value correspondence table (see FIG. 6) indicating correspondence between the predicted value candidates (1) to (3) and the median value.

도 18은 도 17에서 좁힌 예측값 후보 (1)∼(3)과, 화상 포맷(032)이 인터레이스 화상인지 또는 프로그레시브 화상인지의 구별로, 최종적으로 예측값 후보 1∼k 중 어느 것을 예측값으로 사용할지를 나타내는 제어 신호(034)를 멀티플렉서[MPX](035)에 송신하는 중간값·화상 포맷 대응표이다. 제어 신호(034)로서 출력되는 것은, 도 18의 대응표에 나타나는 바와 같이 (000∼101)의 3비트 신호이다. 또한, 상기한 바와 같이 예측값 후보 산출 모듈(031)로부터 계수 m, n이 고려된 인터레이스 화상에 대한 3개의 예측값 후보 "A", "(m*A+n*C)/(m+n)", "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"의 산출 출력이 추가되는 경우에는, 예측값 후보 (1)∼(3)에 대응하여 가로 방향 화소 상관이 강한 화상란에 제어 신호(이 경우는 4비트로 표현됨)에 의해 식별되는 예측값 후보 "A", "(m*A+n*C)/(m+n)", "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"이 부가되게 된다. 또한, 도 18에 대응하여 압축측에 중간값과 화상 포맷의 대응을 나타내는 중간값·화상 포맷 대응표(도 7 참조)를 갖게 하고 있다.FIG. 18 is a distinction between prediction value candidates (1) to (3) narrowed in FIG. 17 and whether the picture format 032 is an interlaced or progressive image, and finally, which of the prediction value candidates 1 to k is used as a prediction value. An intermediate value / image format correspondence table for transmitting the control signal 034 to the multiplexer [MPX] 035. The output as the control signal 034 is a 3-bit signal of (000 to 101) as shown in the correspondence table of FIG. Further, as described above, three prediction value candidates " A " and " (m * A + n * C) / (m + n) " for the interlaced image in which coefficients m and n are considered from the prediction value candidate calculation module 031. , Predictive value candidates (1) to (a) when the calculated output of "A + (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n)" is added. Prediction value candidates " A " and " (m * A + n * C) / (m + n) identified by a control signal (in this case, represented by 4 bits) in an image column having strong horizontal pixel correlation corresponding to (3). "," A + (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n) "is added. In addition, corresponding to FIG. 18, the compression side has an intermediate value and image format correspondence table (see FIG. 7) indicating correspondence between the intermediate value and the image format.

멀티플렉서[MPX](035)는, 제어 신호(034)를 기초로, 예측값 후보 1∼k 중 어느 것을 예측값으로서 선택할지를 결정한다. 도 19는 제어 신호(034)와 상술한 예측값 후보 1∼6의 대응 관계를 나타내는 대응 테이블이다. 즉, 제어 신호(000)는 예측값 후보 1에 대응하고, 제어 신호(001)는 예측값 후보 2에 대응하며, 제어 신호(010)는 예측값 후보 3에 대응하고, 제어 신호(011)는 예측값 후보 4에 대응하며, 제어 신호(100)는 예측값 후보 5에 대응하고, 제어 신호(101)는 예측값 후보 6에 대응하게 된다.The multiplexer [MPX] 035 determines which of the predicted value candidates 1 to k is selected as the predicted value, based on the control signal 034. 19 is a correspondence table showing a correspondence relationship between the control signal 034 and the predicted candidates 1 to 6 described above. That is, the control signal (000) corresponds to the predicted value candidate 1, the control signal (001) corresponds to the predicted value candidate 2, the control signal (010) corresponds to the predicted value candidate 3, and the control signal (011) to the predicted value candidate 4 The control signal 100 corresponds to the predicted value candidate 5, and the control signal 101 corresponds to the predicted value candidate 6.

또한, 상기한 바와 같이 예측값 후보 산출 모듈(031)로부터 계수 m, n이 고려된 인터레이스 화상에 대한 3개의 예측값 후보 "A", "(m*A+n*C)/(m+n)", "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"의 산출 출력이 추가되는 경우에는, 도 19의 표에 있어서 사용하는 예측값 후보로서 예측값 후보 "A", "(m*A+n*C)/(m+n)", "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"이 부가되게 된다. 게다가 제어 신호도 추가된 3개의 예측값 후보를 식별할 수 있는 비트폭의 제어 신호(이 경우는 4비트 신호)가 필요해진다. 도 19에 대응하여 압축측에 제어 신호와 예측값 후보의 대응을 나타내는 대응 테이블(도 8 참조)을 갖게 하고 있다. 또한, 본 실시형태에서는 제어 신호(034)로서 3비트의 제어 신호(000) 내지 제어 신호(101)를 대응시키고 있으나, 예측값 후보 1∼6에 대응시킬 수 있는 것이면 이러한 형식의 제어 신호가 아니어도 상관없다.Further, as described above, three prediction value candidates " A " and " (m * A + n * C) / (m + n) " for the interlaced image in which coefficients m and n are considered from the prediction value candidate calculation module 031. , The calculation output of "A + (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n)" is added, in the table of FIG. As predicted candidates to use, predicted candidates "A", "(m * A + n * C) / (m + n)", "A + (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n) "is added. In addition, a control signal of a bit width (in this case, a 4-bit signal) capable of identifying three predicted candidates to which the control signal is added is required. Corresponding to FIG. 19, the compression side has a correspondence table (see FIG. 8) indicating correspondence between control signals and predicted candidates. In the present embodiment, the control signal 034 corresponds to the three-bit control signal (000) to the control signal (101). However, as long as the control signal (034) can correspond to the prediction value candidates 1 to 6, the control signal of the present invention may not be a control signal of this type. Does not matter.

또한, 인터레이스인지 프로그레시브인지에 한하지 않고, 화상 데이터의 샘플 링 포맷을 나타내는 신호로 어떤 예측값을 사용할지를 나타내는 대응표를 예측값 결정 모듈(033)에 유지해 두고, 이것을 기초로 예측값을 결정할 수도 있다.In addition, the prediction value determination module 033 may maintain a corresponding table indicating which prediction value to use as a signal indicating a sampling format of the image data, not only whether it is interlace or progressive, but also determine the prediction value based on this.

또한 개시하지는 않았지만 예측값 결정 모듈(033)로부터 화상 데이터의 샘플링 포맷을 나타내는 제어 신호를 예측값 후보 산출 모듈(031)에 송신하고, 이것을 기초로 예측값 후보 산출 모듈(031)은, 상술한 계수 m, n의 값을 결정하도록 해도 좋다.Although not disclosed, the control signal indicating the sampling format of the image data is transmitted from the predictive value determination module 033 to the predictive value candidate calculating module 031, and based on this, the predictive value candidate calculating module 031 calculates the coefficients m and n described above. May be determined.

도 20a는 본 발명의 실시형태에 따른 화상 데이터 복원(복호화) 장치의 동작을 설명하기 위한 플로우차트이다. 도 20b는 도 20a에서의 단계 S027에 있어서의 "로컬 디코더"의 처리를 설명하는 플로우차트이다. 도 20a 및 도 20b에서는 단계를 S라고 약기한다.20A is a flowchart for explaining the operation of the image data restoration (decoding) apparatus according to the embodiment of the present invention. 20B is a flowchart for explaining the processing of the "local decoder" in step S027 in FIG. 20A. 20A and 20B, the step is abbreviated as S.

도 20a에서의 단계의 설명에 들어가기 전에 본 예에서는 전체 화상 데이터분에 대해서 처리가 종료될 때까지 루프하는 것을 전제로 하고 있는 것에 주의해 주길 바란다.Before entering the description of the steps in FIG. 20A, it should be noted that in this example, the premise is to loop until the processing is completed for all the image data.

S021: 부호 데이터(021)를 역부호화기(022)에 입력하여, 양자화 번호를 출력한다.S021: The code data 021 is input to the decoder 022, and a quantization number is output.

S022: 양자화 번호를 역양자화기(023)에 입력하여, 예측 오차의 양자화값(024)을 출력한다.S022: A quantization number is input to the inverse quantizer 023, and a quantization value 024 of the prediction error is output.

S023: 예측값 결정 모듈(033)로, 주변 화소 A(027), C(029), B(030)에 있어서의 화소 레벨값의 대소 관계를 비교한다. 이 대소 관계와 화상 포맷(032)을 기초로 도 17 및 도 18에 도시한 대응표를 참조하여, 제어 신호(034)를 멀티플렉 서[MPX](035)에 송신한다.S023: The prediction value determination module 033 compares the magnitude relationship of pixel level values in the peripheral pixels A 027, C (029), and B (030). The control signal 034 is transmitted to the multiplexer [MPX] 035 with reference to the correspondence tables shown in FIGS. 17 and 18 on the basis of the magnitude relationship and the image format 032.

S024: 예측값 후보 산출 모듈(031)로, 주변 화소 A(027), C(029), B(030)를 기초로 예측값 후보 1∼6을 산출한다. 이 경우, 정수 연산 및 시프트 연산으로 예측값을 산출한다. 그리고 정수 연산 시에는 (2A+C-B+1)/2 및 (A+C+1)/2의 소수점 이하는 버린다. 실수 연산 시에는, 1 가산하여 버리지 않고 (2A+C-B)/2 및 (A+C)/2의 값을 그대로 사용한다.S024: The prediction value candidate calculation module 031 calculates the prediction value candidates 1 to 6 based on the peripheral pixels A 027, C (029), and B (030). In this case, the predicted value is calculated by the integer operation and the shift operation. In the integer operation, the decimal point of (2A + C-B + 1) / 2 and (A + C + 1) / 2 is discarded. In real-time calculation, the values of (2A + C-B) / 2 and (A + C) / 2 are used as they are without adding one.

S025: MPX(035)로, 예측값 후보 1∼6 및 제어 신호(034)를 기초로 예측값을 결정한다.S025: The MPX 035 determines the predicted value based on the predicted value candidates 1 to 6 and the control signal 034.

S026: S022에서 취득한 예측 오차의 양자화값과 S024에서 취득한 예측값을 가산하여, 복원 대상 화소[복원 화상 데이터(025)]를 산출한다.S026: The quantized value of the prediction error acquired in S022 and the predicted value obtained in S024 are added to calculate a restoration target pixel (restored image data 025).

S027: 다음 화소를 복원하기 위해서, 주변 화소 A, B 및 C와 예측용 라인 버퍼(028)를 갱신(로컬 디코더)한다.S027: In order to recover the next pixel, the peripheral pixels A, B, and C and the predictive line buffer 028 are updated (local decoder).

S028: 주변 화소 C(029)를 다음 복원 대상 화소의 주변 화소 B(030)로서 대입한다.S028: The peripheral pixel C (029) is substituted as the peripheral pixel B 030 of the next restoration target pixel.

S029: 예측용 라인 버퍼(028)로부터 다음 복원 대상 화소의 주변 화소 C(029)를 취득한다.S029: Peripheral pixels C (029) of the next reconstruction target pixel are obtained from the predictive line buffer 028.

S030: 주변 화소 A(027)를 예측용 라인 버퍼(028)에 대입한다.S030: The peripheral pixel A 027 is substituted into the predictive line buffer 028.

S031: 양자화값과 예측값을 가산하여, 다음 복원 대상 화소의 주변 화소 A(027)로서 대입한다.S031: The quantized value and the predicted value are added and substituted as the peripheral pixel A 027 of the next restoration target pixel.

또한, 예컨대 예측용 라인 버퍼(028)가 도 21에 도시되는 바와 같은 값인 경 우, 인터레이스용 예측기 및 프로그레시브용 예측기의 양자화 결과는 도 22 및 도 23에 도시하는 표와 같이 나타난다. 예측용 라인 버퍼(028)가 도 21에 도시하는 바와 같은 픽셀값을 취할 때, 도 22 및 도 23에 도시하는 표는, 상술한 도 20a 및 도 20b에 도시한 본 발명의 실시형태에 따른 화상 데이터 복원(복호화) 장치의 동작으로부터 간단히 도출할 수 있다. 이 경우, 이전회 복원 시의 화소 C(029)는 이번회 복원 시의 화소 B(030)가 되고, 이전회의 "예측값+예측 오차 양자화값"은 이번회의 화소 A(027)가 된다.For example, when the predictive line buffer 028 is a value as shown in Fig. 21, the quantization results of the interlace predictor and the progressive predictor are shown in the tables shown in Figs. When the predictive line buffer 028 takes a pixel value as shown in Fig. 21, the table shown in Figs. 22 and 23 shows an image according to the embodiment of the present invention shown in Figs. 20A and 20B. It can be simply derived from the operation of the data recovery (decoding) device. In this case, the pixel C (029) at the time of the previous restoration becomes the pixel B 030 at the time of the restoration, and the previous "prediction value + prediction error quantization value" becomes the pixel A (027) at this time.

도 24는 본 발명의 실시형태에 따른 화상 데이터 복원 장치의 시스템 구성을 도시하는 기능 블록도이며, 상기에서 설명한 내용을 기능화하여 블록으로 표현한 것이다. 도 24에서 본 발명의 실시형태에 따른 화상 데이터 복원 장치는, 상술한 화상 데이터 압축 장치의 출력인 압축 데이터(202)를 복원 처리부(210)에 입력하고, 복원 처리부(210)에서는, 우선 입력된 화상 데이터(202)를 도 14의 역부호화기(022)에 상당하는 역부호화 처리부(211)에 입력하며, 역부호화 처리부(211)로부터 양자화 번호를 얻는다. 이어서 양자화 번호를 역양자화기(023)에 상당하는 역양자화 처리부(212)에 입력한다. 역양자화 처리부(212)에서는 도 15에 도시한 바와 같은 역양자화 테이블(213)을 참조하여 양자화 번호로부터 예측 오차 양자화값을 얻는다. 얻어진 예측 오차 양자화값을 예측 처리부(214)에 입력한다. 예측 처리부(214)에서는, 도 17에 도시한 바와 같은 중간값 대응 테이블(215), 도 18에 도시한 바와 같은 중간값·화상 포맷 대응 테이블(216)을 참조하여, 예측값 후보 산출 모듈(031)에 상당하는 예측값 후보 산출부(217)에서 예측값 후보를 산출하고, 또한 MPX(035)에 상당하는 예측값 결정부(218)에서는 화상 포맷(204)을 기초로 예측값 후보 산출부(217)에서 산출된 예측값 후보 중에서 예측값을 결정한다. 그리고, 예측 처리부(214)는, 출력으로서 예측값 후보 산출부(217)에서 산출한 예측 오차 양자화값과 예측값 결정부(218)에서 결정한 예측값을 출력하고, 출력한 예측값과 예측 오차 양자화값을 복원값 산출부(219)에 입력한다. 복원값 산출부(219)는 입력된 예측값과 예측 오차 양자화값을 가산하여 복원 화소값을 얻고 이것을 축적하여 복원(화상) 데이터(206)를 얻는 것이다.24 is a functional block diagram showing the system configuration of the image data decompression device according to the embodiment of the present invention, in which the above-described contents are functionalized and expressed in blocks. In FIG. 24, the image data decompression device according to the embodiment of the present invention inputs the compressed data 202, which is the output of the above-described image data compression device, into the decompression processing unit 210, and the decompression processing unit 210 first inputs the decompression processing unit 210. The image data 202 is input to the decoding processing unit 211 corresponding to the decoder 022 of Fig. 14, and the quantization number is obtained from the decoding processing unit 211. Subsequently, the quantization number is input to the inverse quantization processing unit 212 corresponding to the inverse quantizer 023. The inverse quantization processing unit 212 obtains a prediction error quantization value from the quantization number with reference to the inverse quantization table 213 as shown in FIG. 15. The obtained prediction error quantization value is input to the prediction processing unit 214. The prediction processing unit 214 refers to the intermediate value correspondence table 215 as shown in FIG. 17 and the intermediate value / image format correspondence table 216 as shown in FIG. The predicted value candidate calculator 217 calculates the predicted value candidate, and the predicted value determiner 218 corresponding to the MPX 035 is calculated by the predicted value candidate calculator 217 based on the image format 204. A prediction value is determined from the prediction value candidates. The prediction processing unit 214 outputs the prediction error quantization value calculated by the prediction value candidate calculation unit 217 and the prediction value determined by the prediction value determination unit 218 as output, and restores the output prediction value and the prediction error quantization value. Input to calculation unit 219. The reconstruction value calculator 219 adds the inputted prediction value and the prediction error quantization value to obtain a reconstructed pixel value and accumulates it to obtain reconstructed (image) data 206.

이와 같이 본 발명의 화상 데이터 복원 장치는, 화상 포맷에 따라서 예측값을 구별하여 사용함으로써, 각각의 화상 포맷에 대하여 예측 오차를 경감시키는 것이 가능해지기 때문에, 복원 효율을 높일 수 있다. 또한 화상 포맷에 따라서 예측값을 전환하는 것만으로 충분하기 때문에, 실장 시의 프로그램, 회로 구성의 단순화를 도모할 수 있다.As described above, the image data decompression device of the present invention can reduce the prediction error in each image format by distinguishing and using the predicted values according to the image format, thereby improving the restoration efficiency. In addition, since it is enough to switch the predicted value in accordance with the picture format, the program and circuit configuration at the time of mounting can be simplified.

또한 상기에서는, A, B 및 C의 중간값을 구하고, 중간값 대응표를 기초로 어떤 예측값 후보를 선택할지를 결정하고 있었으나, 예측값 후보를 산출하고 나서 예측값 후보의 중간값을 구하도록 해도 좋다.In the above description, the median of A, B, and C is obtained, and it is determined which prediction value candidate to select based on the median value correspondence table. However, the median value of the prediction value candidate may be obtained after calculating the prediction value candidate.

또한, 상기에서는, 인터레이스 화상용 예측값은 (A+C)/2, A 및 (2A+C-B)/2였으나, 예측값 후보 산출 모듈에 있어서, 화소 레벨값 A, B 및 C로부터 계수 m, n을 이용하여, "A", "(m*A+n*C)/(m+n)" 및 "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"을 산출하고, 계수 m, n은 모두 0을 취하지 않는 어떤 값을 대입해서, 인터레이스용 예측값으로서 "A", "(A+3*C)/4" 및 "(4*A+3*C-3*B)/4"를 사용하여 세로 방향의 화소 레벨값의 변동에 강한 예측값의 산출이 가능하다. 또한, 예측값 결정 모듈 및 예측값 산출 모듈의 각각에 있어서 병렬 처리하여, 각 예측값 후보의 산출을 종료한 단계에서, 어떤 예측값을 사용할지를 결정할 수 있기 때문에, 이 병렬 처리에 의해 고속으로 데이터 복원을 행하는 것이 가능해진다.In the above description, the predicted values for the interlaced image were (A + C) / 2, A and (2A + CB) / 2. However, in the predictive value candidate calculating module, coefficients m and n are calculated from the pixel level values A, B and C. "A", "(m * A + n * C) / (m + n)" and "A + (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n) ", and the coefficients m and n are substituted for any value that does not take all zeros, and" A "," (A + 3 * C) / 4 "and" By using (4 * A + 3 * C-3 * B) / 4 ", it is possible to calculate a prediction value that is resistant to fluctuations in the pixel level value in the vertical direction. In addition, since it is possible to determine which prediction value to use in the step of performing parallel processing in each of the prediction value determination module and the prediction value calculation module and completing the calculation of each prediction value candidate, it is important to perform data restoration at high speed by this parallel processing. It becomes possible.

또한 인터레이스인지 프로그레시브인지의 화상 포맷에 한하지 않고, 화상 데이터의 샘플링 포맷을 나타내는 신호로 예측값을 구별하여 사용해도 동일한 효과가 발생된다.In addition, the same effect is generated even when the prediction value is distinguished by a signal representing the sampling format of the image data, not only an interlaced or progressive image format.

예컨대, 일반적인 DVD에 저장되어 있는 화상 데이터의 샘플링 포맷은, 통상, 4:2:2 포맷으로 되어 있다. 이것은, Y 성분(휘도 성분)의 화상 사이즈는 720×480, C 성분(색 성분)의 가로 화상 사이즈는 Y 성분의 절반으로 되어 있다. 이 때문에, C 성분은 세로 방향으로 상관이 있는 화상 데이터로 되어 있으므로, 이 때문에 계수 m, n에 관해서는 m보다 n의 값을 크게 취함으로써 대응이 가능하다. 다시 말하면, 세로 방향의 상관이 강한 주변 화소에 대한 비중을 무겁게 함으로써(n의 값을 크게 함), 예측 오차의 악화를 방지하는 것이 가능해진다. 예컨대, 화상 데이터의 샘플링 포맷 4:2:2, 화상 사이즈 720×480의 인터레이스 화상에 대하여, C 성분의 경우에는, m=1, n=3으로 해서 세로 방향으로 상관이 있는 화상 데이터로서의 대응을 행하고, Y 성분에 대해서는 화상 사이즈 720×480의 경우에는, m=1, n=1로 함으로써, 가로 방향으로 상관이 있는 화상 데이터로서의 대응을 행한다. 가로 방향으로 상관이 있는 화상 데이터의 경우에 있어서의 계수 m, n에 관해서는 m과 n을 동일한 값으로 하고, 그런데도 예측 오차의 악화가 보여지면 n보다 m의 값을 크게 취 함으로써 대응이 가능하다. 또 다른 예로서 화상 데이터의 샘플링 포맷이, 4:4:4 포맷이고, 화상 사이즈가 800×480인 프로그레시브 화상의 경우에는, m=0, n=1로 한다. For example, the sampling format of image data stored in a general DVD is usually 4: 2: 2 format. This means that the image size of the Y component (luminance component) is 720x480, and the horizontal image size of the C component (color component) is half of the Y component. For this reason, since the C component is image data correlated in the vertical direction, it is possible to cope with the coefficients m and n by taking the value of n larger than m. In other words, it is possible to prevent the deterioration of the prediction error by increasing the specific gravity with respect to the peripheral pixel with strong longitudinal correlation (by increasing the value of n). For example, for an interlaced image of sampling format 4: 2: 2 and image size 720x480 of image data, in the case of the C component, m = 1 and n = 3 correspond to the image data correlated in the vertical direction. In the case of the image size 720x480, the m component is set to m = 1 and n = 1, so that the correspondence as the image data correlated in the horizontal direction is performed. Coefficients m and n in the case of image data correlated in the lateral direction can be made by setting m and n to the same value and taking a larger value of m than n if the prediction error is deteriorated. . As another example, in the case of a progressive image in which the sampling format of the image data is 4: 4: 4 format and the image size is 800x480, m = 0 and n = 1.

또한 필드 메모리(1라인분의 버퍼)만을 이용하고, 프레임 메모리가 불필요하기 때문에, 실장 시의 비용을 삭감할 수 있다. 또한, 예측값을 전환하는 것만으로, 인터레이스/프로그레시브의 양방에 대응할 수 있기 때문에, 회로 규모의 단순화를 도모할 수 있다. In addition, since only the field memory (a buffer for one line) is used and no frame memory is required, the cost in mounting can be reduced. In addition, since only the predicted value is switched, both of the interlace / progressive device can be supported, so that the circuit scale can be simplified.

또한, 상기에서는, 예측값 후보 산출 모듈(031)이, 예측값 후보를 k개(상술한 설명에서는 6개) 산출하고, 도 17, 도 18을 기초로 좁힌 제어 신호를 기초로 멀티플렉서[MPX](035)로 하나의 예측값을 선택하고 있다. 이러한 처리 순서에 따르면, 예측값 후보를 도 17, 도 18에서 좁히는 것과, 예측값 산출을 동일한 타이밍으로 실행하는 것이 가능해져, 처리 속도를 향상시킬 수 있다. 즉, 예측값 결정 모듈 및 예측값 산출 모듈의 각각에 있어서 병렬 처리하여, 각 예측값 후보의 산출을 종료한 단계에서, 어떤 예측값을 사용할지를 결정할 수 있기 때문에, 이 병렬 처리에 의해 고속으로 데이터 압축을 행하는 것이 가능해진다. 또한 예측값 결정 모듈 및 예측값 산출 모듈에 있어서는 테이블을 이용하여 연산 처리하기 때문에, 프로그램 처리를 고속화하는 것이 가능하다.In addition, in the above description, the predictive value candidate calculating module 031 calculates k predictive value candidates (six in the above description) and multiplexer [MPX] based on the control signal narrowed based on FIGS. 17 and 18. Selects one prediction value. According to this processing procedure, it is possible to narrow the predicted value candidate in FIGS. 17 and 18 and to execute the predicted value calculation at the same timing, thereby improving the processing speed. That is, since each of the predicted value determining module and the predicted value calculating module can be processed in parallel and the calculation of each predicted value candidate is finished, it is possible to determine which predicted value to use. It becomes possible. In the predicted value determining module and the predicted value calculating module, arithmetic processing is performed using a table, so that the program processing can be speeded up.

한편, 처리 속도를 중시하지 않고 구성 규모를 삭감하는 경우의 실장으로서는, 도 17의 중간값 대응표를 구성에서 제외시키고, 도 18을 기초로 미리 아는 화상 포맷에 따라서 먼저 3개의 예측값을 산출하며, 3개의 예측값 중에서 중간값을 직접 구한다고 하는 구성도 고려된다. 또한, 다른 패턴으로서, 도 17의 중간값 대응표에서 어떤 예측값 후보식에 의해 산출하면 좋을지를 결정하고, 상기 결정한 하나의 식만 계산 처리를 실행함으로써, 복수 산출한 예측값 중에서 채용해야 할 하나를 선택하는 구성을 삭감하는 방법도 고려된다.On the other hand, as an implementation in the case of reducing the construction scale without placing importance on the processing speed, the intermediate value correspondence table of FIG. 17 is excluded from the configuration, and three predicted values are first calculated based on the image format known in advance on the basis of FIG. It is also contemplated that the median of the two predicted values is directly obtained. In addition, as another pattern, a structure for selecting which one to adopt from a plurality of calculated predicted values is determined by determining which predicted candidate expression should be calculated from the intermediate value correspondence table of FIG. A method of cutting down is also considered.

본 발명의 화상 데이터 압축 장치 및 화상 데이터 복원 장치는, 1칩 LSI 화되어 원하는 애플리케이션 기기에 탑재 가능하고, 예컨대 카 내비게이션을 포함하는 차내 영상 데이터 전송 시스템이나 각종 오락(게임, 애니메이션 등) 기기에의 적용이 고려된다. 일례로서 차내 영상 데이터 전송 시스템에서는, 리어측에도 디스플레이가 설치되어, 프론트측과는 다른 영상을 감상할 수 있는 것이 요망된다. 그 때문에, 프론트측에 실장된 영상 데이터 처리 장치로 처리한 화상 데이터를 압축하여 리어측에 전송하고, 리어측에서는 그것을 복원하여 화상 데이터를 표시한다. 화상 데이터를 중계하는 경우에는 각 중계점에서 압축, 복원이 반복되게 된다. The image data compression device and the image data decompression device of the present invention can be mounted on a desired application device by converting them into a single-chip LSI, for example, to an in-vehicle video data transmission system including car navigation system or to various entertainment (game, animation, etc.) devices. Application is considered. As an example, in the in-vehicle video data transmission system, a display is also provided on the rear side, and it is desired to be able to watch a different image from the front side. Therefore, the image data processed by the video data processing apparatus mounted on the front side is compressed and transferred to the rear side, and the rear side is restored to display the image data. In the case of relaying image data, compression and decompression are repeated at each relay point.

Claims (14)

화상 데이터를 압축할 때에, 압축 대상 화소의 화소 레벨값을 예측하는 예측기를 가지며, 상기 예측기의 예측 결과와 실제의 화소 레벨값의 차분값을 양자화하고 나서 부호화 또는 차분값을 기초로 부호화하는 화상 데이터 압축 장치로서, 상기 예측기는, 압축 대상 화소 주변의 화소 레벨값 및 화상 포맷에 기초하여 예측값을 결정하는 것을 특징으로 하는 화상 데이터 압축 장치. When compressing the image data, the image data has a predictor for predicting the pixel level value of the pixel to be compressed, and then quantizes the difference between the prediction result of the predictor and the actual pixel level value, and then encodes the image data based on the encoding or the difference value. The compression apparatus, wherein the predictor determines the prediction value based on the pixel level value and the image format around the compression target pixel. 제1항에 있어서, 상기 화상 포맷은 가로 방향 화소 상관이 강한 화상과 세로 방향 화소 상관이 강한 화상 중 어느 하나를 지시하는 것을 특징으로 하는 화상 데이터 압축 장치.2. The image data compression apparatus as claimed in claim 1, wherein the image format indicates one of an image having strong horizontal pixel correlation and an image having strong vertical pixel correlation. 제2항에 있어서, 가로 방향 화소 상관이 강한 화상은 인터레이스 화상이고, 세로 방향 화소 상관이 강한 화상은 프로그레시브 화상인 것을 특징으로 하는 화상 데이터 압축 장치. 3. The image data compression device according to claim 2, wherein the image having strong horizontal pixel correlation is an interlaced image, and the image having strong vertical pixel correlation is a progressive image. 제2항에 있어서, 상기 가로 방향 화소 상관이 강한 화상과 세로 방향 화소 상관이 강한 화상 중 어느 하나가 샘플링 포맷에 의해 규정되어 있는 것을 특징으로 하는 화상 데이터 압축 장치. The image data compression device according to claim 2, wherein any one of the image having strong horizontal pixel correlation and the image having strong vertical pixel correlation is defined by a sampling format. 제2항에 있어서, 상기 압축 대상 화소에 대하여, 좌측의 화소를 A, 위의 화소를 C, 좌측 위의 화소를 B, 계수 m과 n이 모두 0을 취하지 않는 어떤 값으로 하고, 상기 예측값은, 3개의 예측값 후보 "A", "(m*A+n*C)/(m+n)", "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"의 중간값으로 하는 것을 특징으로 하는 화상 데이터 압축 장치. The pixel of claim 2, wherein the left pixel is A, the upper pixel is C, the upper left pixel is B, and the coefficients m and n do not all take 0, and the predicted value is , Three predicted candidates "A", "(m * A + n * C) / (m + n)", "A + (m * A + n * C) / (m + n)-(m * A + and n * B) / (m + n) ". 제5항에 있어서, 상기 화상 데이터가 프로그레시브 화상일 때에는 m을 0, n을 1로 하고, 상기 화상 데이터가 인터레이스 화상일 때에는 m을 1, n을 1 또는 3으로 하는 것을 특징으로 하는 화상 데이터 압축 장치.6. The image data compression according to claim 5, wherein m is 0 and n is 1 when the image data is a progressive image, and m is 1, n is 1 or 3 when the image data is an interlaced image. Device. 제2항에 있어서, 상기 압축 대상 화소에 대하여, 좌측의 화소를 A, 위의 화소를 C, 좌측 위의 화소를 B, 계수 m과 n이 모두 0을 취하지 않는 어떤 값으로 하고, 상기 압축 대상 화소의 주변의 화소 A, B 및 C의 중간값을 구하며, 상기 중간값이 A일 때에는 예측값을 "A"로 하고, 상기 중간값이 C일 때에는 예측값을 "(m*A+n*C)/(m+n)"으로 하며, 상기 중간값이 B일 때에는 예측값을 "A+(m*A+n*C)/(m+n)-(m*A+n*B)/(m+n)"으로 하는 것을 특징으로 하는 화상 데이터 압축 장치. The pixel to be compressed according to claim 2, wherein the pixel on the left side is A, the pixel on the left side is C, the pixel on the left side is B, the coefficients m and n are not all zeros. An intermediate value of pixels A, B and C around the pixel is obtained. When the intermediate value is A, the predicted value is " A ", and when the intermediate value is C, the predicted value is " (m * A + n * C). / (m + n) ", and when the intermediate value is B, the predicted value is " A + (m * A + n * C) / (m + n)-(m * A + n * B) / (m + n) ". 제5항에 있어서, 상기 계수 m과 n은 상기 샘플링 포맷에 따라서 규정되는 것을 특징으로 하는 화상 데이터 압축 장치.6. The image data compression device as claimed in claim 5, wherein the coefficients m and n are defined according to the sampling format. 제1항 내지 제8항 중 어느 한 항에 있어서, 상기 예측기는, 상기 압축 대상 화소의 주변의 화소에 대하여, 좌측의 화소를 A, 위의 화소를 C, 좌측 위의 화소를 B로 하고, 상기 화소 A, C 및 B의 화소값을 기초로 복수의 예측값 후보를 산출하는 예측값 후보 산출 모듈과, 중간값 대응표 및 중간값·화상 포맷 대응표를 기초로 상기 복수의 예측값 후보 중 어느 것을 예측값으로 할지를 결정하여, 제어 신호로서 멀티플렉서에 송신하는 예측값 결정 모듈과, 상기 제어 신호에 기초하여 복수의 예측값 후보 중 어느 하나를 예측값으로서 출력하는 멀티플렉서와, 상기 주변의 화소 A, B 및 C의 화소값을 유지하는 복수의 레지스터와, 1라인분의 화소값을 유지하는 라인 버퍼로 이루어지는 것을 특징으로 하는 화상 데이터 압축 장치. 9. The predictor according to any one of claims 1 to 8, wherein the predictor is set to A on the left, C on the left, C on the left, and B on the pixel around the compression target pixel. A prediction value candidate calculation module that calculates a plurality of prediction value candidates based on pixel values of the pixels A, C, and B, and which of the plurality of prediction value candidates is a prediction value based on an intermediate value correspondence table and an intermediate value / image format correspondence table. A prediction value determination module for determining and transmitting as a control signal to the multiplexer, a multiplexer for outputting any one of a plurality of prediction value candidates as a prediction value based on the control signal, and pixel values of the pixels A, B and C in the periphery thereof. And a line buffer for holding pixel values for one line. 압축 대상 화소의 화소 레벨값을 예측하는 예측기를 구비한 화상 데이터 압축 장치에 있어서,In the image data compression device having a predictor for predicting pixel level values of a compression target pixel, 부호화하기 전에 압축 대상 화소의 주변의 화소에 대하여, 좌측의 화소를 A, 위의 화소를 C, 좌측 위의 화소를 B로 하고, 상기 화소 A, C 및 B의 화소값 및 바로 근방 1라인분의 화소값을 유지하는 과정과,Before encoding, the pixel on the left side of the compression target pixel is A, the upper pixel is C, the upper left pixel is B, the pixel values of the pixels A, C, and B and just one line in the immediate vicinity. Maintaining the pixel value of 유지된 상기 주변의 화소 A, C 및 B의 화소값을 기초로 복수의 예측값 후보를 산출하는 과정과,Calculating a plurality of candidate candidates based on the pixel values of the surrounding pixels A, C, and B; 중간값 대응표 및 중간값·화상 포맷 대응표를 기초로 상기 복수의 예측값 후보 중 어느 것을 예측값으로 할지를 결정하여, 제어 신호를 송신하는 과정과,Determining which of the plurality of predicted candidates is a predicted value based on the intermediate value correspondence table and the intermediate value / image format correspondence table, and transmitting a control signal; 상기 제어 신호를 수신하여 복수의 예측값 후보 중 어느 하나를 예측값으로서 출력하는 과정과,Receiving the control signal and outputting any one of a plurality of prediction value candidates as a prediction value; 출력된 예측값과 압축 대상 화소로부터 예측 오차를 산출하고, 산출한 예측 오차를 양자화기에 입력하여 양자화 번호를 취득하며, 상기 양자화 번호를 부호기에 입력하여 압축 부호를 얻는 과정A process of calculating a prediction error from the output prediction value and the compression target pixel, inputting the calculated prediction error to a quantizer to obtain a quantization number, and inputting the quantization number to an encoder to obtain a compressed code. 을 포함하는 것을 특징으로 하는 화상 데이터 압축 방법. Image data compression method comprising a. 압축 대상 화소의 화소 레벨값을 예측하면서 화상 데이터의 압축을 행하기 위한 프로그램으로서, 컴퓨터에,A program for compressing image data while predicting a pixel level value of a compression target pixel, the program comprising: 부호화하기 전에 압축 대상 화소의 주변의 화소에 대하여, 좌측의 화소를 A, 위의 화소를 C, 좌측 위의 화소를 B로 하고, 상기 화소 A, C 및 B의 화소값 및 바로 근방 1라인분의 화소값을 유지하는 단계,Before encoding, the pixel on the left side of the compression target pixel is A, the upper pixel is C, the upper left pixel is B, the pixel values of the pixels A, C, and B and just one line in the immediate vicinity. Maintaining the pixel value of, 유지된 상기 주변의 화소 A, C 및 B의 화소값을 기초로 복수의 예측값 후보를 산출하는 단계,Calculating a plurality of prediction value candidates based on the retained pixel values of the pixels A, C, and B, 중간값 대응표 및 중간값·화상 포맷 대응표를 기초로 상기 복수의 예측값 후보를 압축해서 하나의 예측값을 결정하여 출력하는 단계,Compressing the plurality of candidate candidates based on the intermediate value correspondence table and the intermediate value / image format correspondence table to determine and output one prediction value; 출력된 예측값과 압축 대상 화소로부터 예측 오차를 산출하고, 상기 예측 오차를 양자화 테이블에 입력하여 양자화 번호를 취득하며, 상기 양자화 번호를 부호화 테이블에 입력하여 압축 부호를 얻는 단계Calculating a prediction error from the output prediction value and the compression target pixel, inputting the prediction error to a quantization table to obtain a quantization number, and inputting the quantization number to a coding table to obtain a compressed code 를 실행시키기 위한 프로그램. Program to run. 압축 대상 화소 주변의 화소 레벨값 및 화상 포맷에 기초하여 예측값을 결정하는 예측기를 구비한 화상 데이터 압축 장치로 압축된 화상 데이터를 복원하는 화상 데이터 복원 장치로서, 압축 대상 화소 주변의 화소 레벨값 및 화상 포맷에 기초하여 예측값을 결정하는 예측기를 가지며, 상기 예측기로 결정된 예측값과 상기 압축된 화상 데이터를 역부호화기 및 역양자화기를 통해 얻은 예측 오차 양자화값을 가산하여 복원 화소 데이터를 얻으며 다음 주변 화소값을 얻는 것을 특징으로 하는 화상 데이터 복원 장치.An image data decompression device for decompressing image data compressed by an image data compression device having a predictor for determining a prediction value based on a pixel level value and an image format around a compression target pixel, comprising: a pixel level value and an image around a compression target pixel A predictor that determines a prediction value based on a format, and adds the predicted value determined by the predictor and the prediction error quantization value obtained by the decoder and the dequantizer to obtain reconstructed pixel data and obtains the next neighboring pixel value. An image data restoration apparatus, characterized in that. 압축 대상 화소 주변의 화소 레벨값 및 화상 포맷에 기초하여 예측값을 결정하는 예측기를 구비한 화상 데이터 압축 장치로 압축된 화상 데이터를 복원하는 화상 데이터 복원 장치로서,An image data decompression device for decompressing image data compressed by an image data compression device having a predictor that determines a prediction value based on a pixel level value and an image format around a compression target pixel, 압축된 부호를 복원하기 전에 복원 대상 화소의 주변의 화소에 대하여, 좌측의 화소를 A, 위의 화소를 C, 좌측 위의 화소를 B로 하고, 상기 화소 A, C 및 B의 화소값 및 바로 근방 1라인분의 화소값을 유지하는 과정과,Before restoring the compressed code, the pixel on the left side of the pixel to be restored is A, the upper pixel is C, the upper left pixel is B, the pixel values of the pixels A, C, and B and the Maintaining the pixel value for the vicinity of one line; 유지된 상기 주변의 화소 A, C 및 B의 화소값을 기초로 복수의 예측값 후보를 산출하는 과정과,Calculating a plurality of candidate candidates based on the pixel values of the surrounding pixels A, C, and B; 중간값 대응표 및 중간값·화상 포맷 대응표를 기초로 상기 복수의 예측값 후보 중 어느 것을 예측값으로 할지를 결정하여, 제어 신호를 송신하는 과정과,Determining which of the plurality of predicted candidates is a predicted value based on the intermediate value correspondence table and the intermediate value / image format correspondence table, and transmitting a control signal; 상기 제어 신호를 수신하여 복수의 예측값 후보 중 어느 하나를 예측값으로 서 출력하는 과정과,Receiving the control signal and outputting any one of a plurality of prediction value candidates as a prediction value; 압축된 부호 데이터를 역부호화기에 입력하여 양자화 번호를 취득하고, 양자화 번호를 역양자화기에 입력하여 예측 오차 양자화값을 취득하며, 취득한 예측 오차 양자화값과 상기 예측값으로부터 화소값을 복원하는 과정Inputting the compressed code data to the inverse encoder to obtain a quantization number, inputting the quantization number to the inverse quantizer to obtain a prediction error quantization value, and restoring a pixel value from the obtained prediction error quantization value and the prediction value 을 포함하는 것을 특징으로 하는 화상 데이터 복원 방법.Image data restoration method comprising a. 압축 대상 화소 주변의 화소 레벨값 및 화상 포맷에 기초하여 예측값을 결정하는 예측기를 구비한 화상 데이터 압축 장치로 압축된 화상 데이터를 복원하기 위한 프로그램으로서, 컴퓨터에,A program for decompressing image data compressed by an image data compression device having a predictor that determines a prediction value based on a pixel level value and an image format around a pixel to be compressed, the computer comprising: 압축된 부호를 복원하기 전에 복원 대상 화소의 주변의 화소에 대하여, 좌측의 화소를 A, 위의 화소를 C, 좌측 위의 화소를 B로 하고, 상기 화소 A, C 및 B의 화소값 및 바로 근방 1라인분의 화소값을 유지하는 단계,Before restoring the compressed code, the pixel on the left side of the pixel to be restored is A, the upper pixel is C, the upper left pixel is B, the pixel values of the pixels A, C, and B and the Maintaining pixel values for the vicinity of one line; 유지된 상기 주변의 화소 A, C 및 B의 화소값을 기초로 복수의 예측값 후보를 산출하는 단계,Calculating a plurality of prediction value candidates based on the retained pixel values of the pixels A, C, and B, 중간값 대응표 및 중간값·화상 포맷 대응표를 기초로 상기 복수의 예측값 후보를 압축해서 하나의 예측값을 결정하여 출력하는 단계,Compressing the plurality of candidate candidates based on the intermediate value correspondence table and the intermediate value / image format correspondence table to determine and output one prediction value; 압축된 부호 데이터를 역부호화기에 입력하여 양자화 번호를 취득하고, 양자화 번호를 역양자화기에 입력하여 예측 오차 양자화값을 취득하며, 취득한 예측 오차 양자화값과 상기 예측값으로부터 화소값을 복원하는 단계Inputting the compressed code data to an inverse encoder to obtain a quantization number, inputting the quantization number to the inverse quantizer to obtain a prediction error quantization value, and restoring a pixel value from the obtained prediction error quantization value and the prediction value 를 실행시키기 위한 프로그램. Program to run.
KR20087029607A 2006-05-17 2006-08-16 Image data compression device, compression method, recording medium having program recorded, and image data decompression device, decompression method, and recording medium having program recorded KR101037421B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2006138070 2006-05-17
JPJP-P-2006-138070 2006-05-17

Publications (2)

Publication Number Publication Date
KR20090018090A true KR20090018090A (en) 2009-02-19
KR101037421B1 KR101037421B1 (en) 2011-05-30

Family

ID=38693641

Family Applications (1)

Application Number Title Priority Date Filing Date
KR20087029607A KR101037421B1 (en) 2006-05-17 2006-08-16 Image data compression device, compression method, recording medium having program recorded, and image data decompression device, decompression method, and recording medium having program recorded

Country Status (6)

Country Link
US (1) US8311107B2 (en)
EP (1) EP2034740B1 (en)
JP (1) JP4985645B2 (en)
KR (1) KR101037421B1 (en)
CN (1) CN101438597B (en)
WO (1) WO2007132538A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101491864B1 (en) * 2009-11-30 2015-02-11 한국전자통신연구원 hybrid predicting apparatus for entropy encoding, and method therefor

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5529685B2 (en) * 2010-09-03 2014-06-25 パナソニック株式会社 Image encoding method, image decoding method, image encoding device, and image decoding device
CN102055974B (en) * 2010-10-14 2013-04-17 华为技术有限公司 Data compressing and uncompressing method, data compressing and uncompressing device and data compressing and uncompressing system
GB2486726B (en) * 2010-12-23 2017-11-29 British Broadcasting Corp Compression of pictures
CN110198450B (en) * 2011-11-08 2021-12-31 韩国电子通信研究院 Method and apparatus for sharing a candidate list
CN103577338B (en) * 2013-11-14 2016-06-29 华为技术有限公司 A kind of method reclaiming junk data and storage device
JP6221820B2 (en) * 2014-02-25 2017-11-01 株式会社Jvcケンウッド Encoding apparatus, encoding method, and encoding program
CN109936740B (en) * 2017-12-15 2023-04-18 中国科学院深圳先进技术研究院 Pixel value prediction method for lossless compression of image
US11044466B2 (en) 2018-01-26 2021-06-22 Samsung Electronics Co., Ltd. Image processing device
JP2020042726A (en) * 2018-09-13 2020-03-19 株式会社東芝 Ogm compression circuit, ogm compression extension system, and moving body system

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5836090A (en) * 1981-08-27 1983-03-02 Kokusai Denshin Denwa Co Ltd <Kdd> Estimating and encoding system for median of television signal
US4633325A (en) * 1983-09-01 1986-12-30 Nec Corporation Adaptive predictive encoding and/or decoding apparatus
JPH088642B2 (en) * 1989-07-27 1996-01-29 富士通株式会社 Halftone image data compression device
JPH11234683A (en) * 1998-02-12 1999-08-27 Fuji Xerox Co Ltd Image coding method and system
JP2000069479A (en) 1998-08-24 2000-03-03 Sony Corp Picture encoding device/method
JP3804745B2 (en) 1999-08-20 2006-08-02 Kddi株式会社 Frame structure / field structure switching type image coding apparatus
EP1328113A1 (en) * 2000-10-20 2003-07-16 Sony Corporation Image processor
CN1190755C (en) * 2002-11-08 2005-02-23 北京工业大学 Colour-picture damage-free compression method based on perceptron
CN1241149C (en) * 2003-04-07 2006-02-08 西安交通大学 Compression rate pre-allocation algorithm for JPEG 2000 multi-picture photo
KR100994771B1 (en) * 2003-12-29 2010-11-16 삼성전자주식회사 Motion vector searching method and apparatus by block matching
US7650039B2 (en) * 2005-03-03 2010-01-19 Canon Kabushiki Kaisha Image encoding apparatus, image decoding apparatus, control method therefor, computer program, and computer-readable storage medium
JP4587175B2 (en) * 2005-05-19 2010-11-24 キヤノン株式会社 Image encoding apparatus and method, computer program, and computer-readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101491864B1 (en) * 2009-11-30 2015-02-11 한국전자통신연구원 hybrid predicting apparatus for entropy encoding, and method therefor

Also Published As

Publication number Publication date
KR101037421B1 (en) 2011-05-30
JP4985645B2 (en) 2012-07-25
EP2034740A4 (en) 2011-03-02
US8311107B2 (en) 2012-11-13
US20090052530A1 (en) 2009-02-26
JPWO2007132538A1 (en) 2009-09-17
CN101438597B (en) 2011-05-11
CN101438597A (en) 2009-05-20
WO2007132538A1 (en) 2007-11-22
EP2034740A1 (en) 2009-03-11
EP2034740B1 (en) 2013-07-17

Similar Documents

Publication Publication Date Title
KR101037421B1 (en) Image data compression device, compression method, recording medium having program recorded, and image data decompression device, decompression method, and recording medium having program recorded
KR100980354B1 (en) Image compression device, compression method, recording medium having program recorded, and image decompression device, decompression method, and recording medium having program recorded
RU2720975C2 (en) Method of encoding and decoding images, an encoding and decoding device and corresponding computer programs
KR101138392B1 (en) Color image encoding and decoding method and apparatus using a correlation between chrominance components
KR100913088B1 (en) Method and apparatus for encoding/decoding video signal using prediction information of intra-mode macro blocks of base layer
KR20060088461A (en) Method and apparatus for deriving motion vectors of macro blocks from motion vectors of pictures of base layer when encoding/decoding video signal
KR20060109249A (en) Method and apparatus for predicting motion vector of a macro block using motion vectors of a picture of base layer when encoding/decoding video signal
JP4592562B2 (en) Image decoding device
KR100813001B1 (en) Video Encoding and Decoding Apparatus and Methods using Separation of Amplitude and Sign of a differential image signal
KR20060059774A (en) Method and apparatus for encoding/decoding a video signal using motion vectors of pictures at different temporal decomposition level
KR20060085150A (en) Method and apparatus for encoding/decoding video signal using prediction information of intra-mode macro blocks of base layer
KR100906473B1 (en) Advanced Method for coding and decoding motion vector and apparatus thereof
KR20060069227A (en) Method and apparatus for deriving motion vectors of macro blocks from motion vectors of pictures of base layer when encoding/decoding video signal
KR20060043050A (en) Method for encoding and decoding video signal
CN116982262A (en) State transition for dependent quantization in video coding
KR102020953B1 (en) Image Reencoding Method based on Decoding Data of Image of Camera and System thereof
KR100832872B1 (en) Method and apparatus for image coding efficiency improvement using geometric transformation
US20060120457A1 (en) Method and apparatus for encoding and decoding video signal for preventing decoding error propagation
RU2808075C1 (en) Method for image coding and decoding, coding and decoding device and corresponding computer programs
US20060133488A1 (en) Method for encoding and decoding video signal
JP2010288070A (en) Image coding apparatus
KR20060059764A (en) Method and apparatus for encoding a video signal using previously-converted h-pictures as references and method and apparatus for decoding the video signal
WO2005062623A1 (en) Moving image reproducing method, apparatus and program
KR100627493B1 (en) Moving picture encoder and method for coding using the same
CN114900693A (en) Image compression method, decompression method and device based on block truncation coding

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

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee