KR20000045076A - Compression coder and decoder of video signal and method thereof - Google Patents

Compression coder and decoder of video signal and method thereof Download PDF

Info

Publication number
KR20000045076A
KR20000045076A KR1019980061602A KR19980061602A KR20000045076A KR 20000045076 A KR20000045076 A KR 20000045076A KR 1019980061602 A KR1019980061602 A KR 1019980061602A KR 19980061602 A KR19980061602 A KR 19980061602A KR 20000045076 A KR20000045076 A KR 20000045076A
Authority
KR
South Korea
Prior art keywords
step size
quantization step
code amount
mquant
screen
Prior art date
Application number
KR1019980061602A
Other languages
Korean (ko)
Other versions
KR100335435B1 (en
Inventor
김재현
Original Assignee
윤종용
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 윤종용, 삼성전자 주식회사 filed Critical 윤종용
Priority to KR1019980061602A priority Critical patent/KR100335435B1/en
Publication of KR20000045076A publication Critical patent/KR20000045076A/en
Application granted granted Critical
Publication of KR100335435B1 publication Critical patent/KR100335435B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/129Scanning of coding units, e.g. zig-zag scan of transform coefficients or flexible macroblock ordering [FMO]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/625Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]

Landscapes

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

Abstract

PURPOSE: A compression coder and a decoder of a video signal and a method thereof are provided to compress digital input images in image units and have compatibility with MPEG application products. CONSTITUTION: A compression coder and a decoder of a video signal and a method for the same comprise a discrete cosine transform unit(104), an initial quantizer(108), a code capacity controller(112) and a real quantizer(122). The discrete cosine transform unit performs a discrete cosine transform for input signals in order to provide a discrete cosine transform coefficient. The initial quantizer quantizes the discrete cosine transform coefficient by using a quantization matrix in order to provide an initial quantization data. The code capacity controller quantizes in parallel the initial quantization data by a quantization step size and outputs a code capacity near to a target code capacity of code capacities. The real quantizer provides compressed data by quantizing the initial quantization data.

Description

영상 신호의 압축 부호화기 및/또는 복호화기와 그 방법Compression coder and / or decoder of video signal and method thereof

본 발명은 영상 신호의 압축 부호화 및/또는 복호화 분야에 관한 것으로, 특히 디지털 기록재생장치에 있어서 고성능의 압축 부호화 체계를 갖는 부호화기 및/또는 복호화기와 그 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the field of compression encoding and / or decoding of video signals, and more particularly, to an encoder and / or decoder having a high performance compression encoding scheme in a digital recording / reproducing apparatus.

MPEG(Moving Picture Experts Group)-1의 표준화가 완성된 후에 더욱 높은 비트율에서 고화질을 실현하는 표준안이 요구되어 MPEG-2 표준안이 탄생했다. 이 MPEG-2 표준안은 저장 미디어 분야 뿐만 아니라 방송 미디어 분야에의 적용도 고려되었고, 현재 텔레비젼(TV) 품질 이상의 고품질을 대상으로 하며, 고해상도 텔레비젼(HDTV) 품질까지 확장 가능하다. 따라서, 통신, 가전, 컴퓨터, 방송 등 각 분야에서 광범위한 응용 가능성을 갖는다. 이처럼 동영상 압축에 관한 표준안인 MPEG의 중요성이 날로 증가함과 동시에 이를 이용한 응용 제품 또한 매우 다양해졌다. 그러나, 이러한 압축 부호화 방식은 한 개 또는 수 개의 화면 단위로 압축된 데이터량을 고정시켜야 하는 응용 제품에는 쉽게 적용하기가 어렵게 되어 있다. 따라서, 이러한 응용 제품의 압축 부호화기의 성능을 최대한으로 높게 하려면 목표 데이터량에 최대한 근접하게 하는 압축 부호화기가 필수적이다.After the completion of the Moving Picture Experts Group (MPEG-1) standardization, the MPEG-2 standard was born, which required a standard for realizing high image quality at higher bit rates. This MPEG-2 standard is considered for application not only to storage media but also to broadcast media, and currently targets higher quality than television (TV) quality, and can be extended to high definition television (HDTV) quality. Therefore, it has a wide range of applications in various fields such as communication, home appliances, computers, and broadcasting. As the importance of MPEG, which is a standard for video compression, has been increasing day by day, the application products using it have also become very diverse. However, such a compression coding scheme is difficult to apply to an application product that needs to fix the amount of data compressed in one or several screen units. Therefore, in order to maximize the performance of the compression encoder of such an application product, a compression encoder that is as close as possible to the target data amount is essential.

고품질을 요구하는 추세에 맞추어 카메라로부터 제공되는 디지털 동화상을 비디오 테이프에 기록하고 재생하는 디지털 비디오 캠코더(Digital Video Camcorder: DVC)의 압축 부호화 방식이 일본의 주도하에 독자적인 표준안이 개발되었지만 이는 MPEG과의 호환성이 없으므로 녹화된 내용을 향후 보급될 MPEG 부호화 방식을 채택한 디지털 텔레비젼이나 멀티미디어 시스템에서는 볼 수 없게 된다. 그러나, 차세대 디지털 비디오카세트레코더((Video Cassette Recorder: VCR)와 캠코더의 세계 규격이 결정된 후 SD(Standard Definition)급의 캠코더가 일본업체를 중심으로 빠른 속도로 보급되고 있다. DVC의 압축부호화 방식도 화면 단위로 이루어지므로 이것의 화질 또한 압축된 부호량에 크게 좌우된다고 볼 수 있다. 이러한 제품에 화면 단위로 압축된 데이터량을 목표치에 최대한 근접하게 부호화하는 방식을 적용할 경우 그 부호화기의 성능은 높아질 것이다.In accordance with the trend of demanding high quality, an independent standard was developed by Japan's leading compression coding method of digital video camcorder (DVC), which records and plays digital video from cameras on videotape. As a result, the recorded content cannot be viewed on a digital television or a multimedia system adopting the MPEG encoding method that will be spread in the future. However, after the world standards of next-generation digital video cassette recorders (VCRs) and camcorders have been decided, SD (standard definition) class camcorders are rapidly spreading among Japanese companies. Since the picture quality is made in units of screens, the quality of the picture depends on the amount of compressed code. will be.

한편, 디지털 비디오 포맷의 기본 사양에 대한 제안을 하고 이 기본 사양을 기초로하여 HDTV 사양을 논의하기 위하여 1993년 HD 디지털 VCR협의회가 설립되었고, 이 곳에서 SD급의 사양과 HD급의 사양이 표준안으로 제정되었다. 이 표준안의 주요 사항으로는, 회전 헤드방식(헬리컬 스캔), DCT(Digital Cosine Transform)를 기본으로하는 압축방식, 1/4 인치폭의 비디오 테이프 등이 기본사양이며, HD 기저대역 포맷은 HDTV의 표본화 주파수를 SD급의 표본화 주파수(13.5MHz)의 3배인 50.4MHz로 하고, 비디오 데이터의 기록율은 SD급의 25Mbps의 2배인 50Mbps로 한다는 것이다. 현재 이러한 표준안에 의한 SD급의 디지털 비디오 캠코더는 시판중에 있다.On the other hand, the HD Digital VCR Council was established in 1993 to propose the basic specifications of the digital video format and to discuss the HDTV specifications based on these basic specifications. Was enacted. The main points of this standard are the rotating head method (helical scan), the compression method based on the Digital Cosine Transform (DCT), the 1/4 inch wide video tape, etc., and the HD baseband format is the standard for HDTV. The sampling frequency is 50.4 MHz, which is three times the SD class sampling frequency (13.5 MHz), and the video data recording rate is 50 Mbps, which is twice the SD class 25 Mbps. Currently, SD class digital video camcorders are commercially available.

또한, 1994년 미국에서는 DTV 신호를 기록하기 위한 포맷을 의논하기 위한 DTV WG(Working Group)가 발족했고, 유럽에서도 DVB(Digital Video Broadcasting) 신호를 기록하기 위한 포맷을 의논하기 위한 DVB WG도 발족했다.In 1994, the DTV Working Group (WG) was launched in the United States to discuss the format for recording DTV signals, and in Europe, the DVB WG was launched to discuss the format for recording DVB (Digital Video Broadcasting) signals. .

데이터율을 19.3Mbps급으로 압축한 DTV 신호를 SD 포맷의 비디오 테이프에 기록할 때는 SD급의 비디오 데이터율 25Mbps급으로 기록한다. 또한, DVB 신호의 데이터율은 10Mbps 이하로 제어하여 이 DVB 신호를 SD 포맷의 비디오 테이프에 기록할 때는 SD급의 비디오 데이터율의 절반인 12.5Mbps 또는 1/4인 6.25Mbps급으로 기록한다. DTV는 MPEG-2를 채용하고 있으므로, MPEG-2 방식으로 압축된 데이터를 그대로 기록하는 포맷을 사용하는 디지털 기록재생장치를 사용할 필요가 있다. 여기서, DTV 신호는 19.3Mbps급의 MPEG-2로 압축된 데이터와 고속 탐색용으로 특정 영역에 반복 기록할 압축 데이터로 구성되어 비디오 테이프에 기록된다. 반복 기록될 고속 탐색용 데이터는 기록율과 압축율과의 차분(25Mbps-19.3Mbps)만큼의 여유분을 고속탐색에 이용한다.When recording a DTV signal compressed at a data rate of 19.3 Mbps to a video tape in SD format, a 25 Mbps video data rate in SD is recorded. In addition, the data rate of the DVB signal is controlled to 10 Mbps or less, and when the DVB signal is recorded on an SD format video tape, it is recorded at 12.5 Mbps, which is half of the SD data rate, or 6.25 Mbps, which is 1/4. Since DTV adopts MPEG-2, it is necessary to use a digital recording and reproducing apparatus using a format for recording data compressed by the MPEG-2 method as it is. Here, the DTV signal is composed of data compressed in MPEG-2 of 19.3 Mbps and compressed data to be repeatedly recorded in a specific area for high-speed search and recorded on a video tape. The high-speed search data to be repeatedly recorded uses a margin equal to the difference between the recording rate and the compression rate (25 Mbps to 19.3 Mbps) for the high-speed search.

이러한 DTV 신호를 기록하는 디지털 VCR과는 별도로, 현재의 DVC는 MPEG-1, MPEG-2와의 호환성이 전혀 없이 독자적인 포맷으로 압축 부호화하여 고속 탐색 및 화면 단위의 편집 등 주요 기능을 담당하고 있는 데, 이는 화면 단위의 압축 부호화 기법과 세그먼트라는 고정된 크기의 독립된 부호화 데이터 구조를 갖고 있기 때문에 가능하다. 즉, 고화질을 유지하면서도 화면 단위의 편집과 고속 탐색을 가능하게 하는 압축 부호화 기법을 사용하기에 가능하게 되었다. 하지만 동영상 압축 표준안인 MPEG의 사용이 증가하면서 그 중요성과 응용 제품이 개발이 더 증가되고 있으므로 DVC에 있어서도 이러한 표준안을 이용하면 상대적으로 더 많은 소비자를 갖게 될 것이다. 즉, MPEG-2의 압축 방식을 채택한 DTV나 멀티미디어 응용 제품 등과의 호환성이 있으면서 DVC의 주요 기능인 고속 탐색 및 화면 단위의 편집이 가능한 DVC를 구현하게 되면 디지털 비디오 캠코더의 활용이 더욱 높아지게 될 것이다.Apart from digital VCRs that record these DTV signals, the current DVC compresses and encodes to its own format without any compatibility with MPEG-1 and MPEG-2, and plays a major role such as high-speed search and screen unit editing. This is possible because it has a compression coding scheme of a unit of picture and an independent encoded data structure of fixed size called a segment. That is, it is possible to use a compression coding technique that enables high-speed search and editing of screen units while maintaining high quality. However, as the use of MPEG, the video compression standard, increases, its importance and application are increasing, so the use of this standard in DVC will have relatively more consumers. In other words, the digital video camcorder will be further utilized if the DVC which is compatible with the DTV or multimedia application products adopting the MPEG-2 compression method and the DVC, which is the main function of the DVC, enables high-speed navigation and picture-by-screen editing.

이 경우 MPEG의 압축 부호화 방식만으론 화면 단위의 부호량 제어가 어렵게 되므로 이를 보완할 방법이 필요하다. 왜냐하면 MPEG-2는 여러개의 화면으로 구성되는 GOP(group of picture) 단위로 여러 화면에 걸쳐 화면간의 상관 관계를 이용하여 고압축을 하기 때문에 이러한 구조로 된 압축 데이터를 단순하게 그대로 테이프에 기록하면 가변속 재생(고속 탐색)시에 화면의 구성이 어렵고 제대로 재생되지 않는다.In this case, it is difficult to control the code amount of a screen unit only by the MPEG encoding method, and thus a method for compensating for this is necessary. Because MPEG-2 compresses by using the correlation between screens in GOP (group of picture) unit consisting of several screens, if the compressed data of such structure is simply recorded on tape as it is, variable speed playback The composition of the screen is difficult and does not play properly during (High Speed Search).

요약하면, MPEG-2로 압축된 데이터와 반복 기록할 압축 데이터로 구성된 DTV 신호를 비디오 테이프에 기록하는 경우 디지털 VCR의 주요 기능중의 하나인 고속 탐색은 가능하나 여러 화면으로 구성된 GOP라 불리우는 하나의 독립된 단위로 압축 부호화하기 때문에 화면 단위의 편집은 불가능하고 SD급보다 재생 화질이 저하되는 문제점이 있었다.In summary, when recording a DTV signal composed of MPEG-2 compressed data and compressed data to be repeatedly recorded on videotape, one of the main functions of a digital VCR is fast navigation, but a single screen called a GOP composed of multiple screens. Since compression coding is performed in an independent unit, editing of the screen unit is impossible and the reproduction quality is lower than that of the SD class.

또한, 기존의 SD급의 디지털 비디오 캠코더는 화면단위로 압축하고 소정수(대표적인 예로서 5개)의 매크로블록으로 구성된 세그먼트 단위로 독립된 압축을 하여 화면 단위 및 고속 탐색은 가능하였으나 MPEG-2를 이용하는 기기와는 호환성이 없는 문제점이 있었다.In addition, the existing SD class digital video camcorder compresses by screen unit and compresses independently by segment unit consisting of a predetermined number (typically 5 macroblocks), and enables screen unit and high speed search. There was a problem that is not compatible with the device.

상기한 문제점을 해결하기 위하여, 본 발명의 목적은 디지털 입력 영상 신호를 화면 단위로 압축하고, MPEG 응용 제품과의 호환성을 가지는 부호화기 및/또는 복호화기를 제공하는 데 있다.In order to solve the above problems, it is an object of the present invention to provide an encoder and / or decoder that compresses a digital input video signal on a screen basis and is compatible with MPEG application products.

본 발명의 다른 목적은 화면 단위의 영상 처리가 필요한 디지털 캠코더 또는 디지털 VCR 등의 디지털 기록재생장치를 위한 영상 신호의 압축 부호화 및/또는 복호화 방법을 제공하는 데 있다.Another object of the present invention is to provide a compression encoding and / or decoding method of a video signal for a digital recording / reproducing apparatus such as a digital camcorder or a digital VCR, which requires image processing in units of screens.

상기의 목적들을 달성하기 위하여, 본 발명에 의한 부호화기는 입력되는 영상 신호를 이산 변환하여 이산 변환 계수를 제공하는 이산변환 유니트, 이산 변환 계수를 초기화 양자화 매트릭스를 이용하여 양자화하여 초기 양자화된 데이터를 제공하는 초기 양자화기, 초기 양자화된 데이터를 다수의 양자화 스텝사이즈를 이용하여 병렬로 양자화하여 얻어지는 각각의 부호량 중에서 목표 부호량에 가장 근접한 결과를 출력하는 양자화 스텝사이즈를 실제 양자화 스텝사이즈로서 제공하는 부호량 조절기 및 실제 양자화 스텝사이즈에 의해 초기 양자화된 데이터를 양자화하여 압축된 데이터를 제공하는 실제 양자화기를 포함함을 특징으로 한다.In order to achieve the above objects, the encoder according to the present invention performs discrete conversion of an input video signal to provide discrete transform coefficients, and quantizes discrete transform coefficients using an initializing quantization matrix to provide initial quantized data. An initial quantizer and a code that provides a quantization step size that outputs the result closest to the target code amount among the respective code amounts obtained by quantizing the initial quantized data in parallel using a plurality of quantization step sizes, as a real quantization step size. And a real quantizer for quantizing the initial quantized data by the amount controller and the actual quantization step size to provide compressed data.

또한, 본 발명의 부호화기는 부호량 조절기에서 실제 양자화 스텝사이즈를 결정하는 동안 초기 양자화된 데이터를 일시 저장해서 실제 양자화기에 제공하는 프레임 버퍼, 압축된 데이터를 연속장 및 가변장 부호화하여 가변장 부호화된 데이터를 제공하는 연속장 및 가변장 부호화기 및 가변장 부호화된 데이터를 부가 헤더를 부가하여 기본스트림을 생성하여 비트스트림으로서 출력하는 기본스트림 부호화기를 더 포함함을 특징으로 한다.In addition, the coder of the present invention performs variable length coding by temporarily storing the initial quantized data while providing the actual quantized step size in the code amount controller, and performing continuous length and variable length coding on the compressed data. The apparatus may further include a continuous and variable length encoder for providing data, and a basestream encoder for generating a basestream by adding an additional header and outputting the basestream as a bitstream.

본 발명에 의한 복호화기는 전송되는 비트스트림으로부터 기본스트림을 추출하고, 기본스트림으로부터 부가 헤더를 제거하여 비디오 스트림을 제공하는 기본스트림 복호화기, 비디오 스트림을 가변장 및 연속장 복호화하여 연속장 복호화된 데이터를 제공하는 가변장 및 연속장 복호화기, 연속장 복호화된 데이터를 부호화시 사용한 양자화 스텝사이즈에 의해 역 양자화하여 역 양자화된 데이터를 제공하는 역 양자화기 및 역 양자화된 데이터를 역 이산 변환하여 원 영상 데이터로 출력하는 역 이산 변환 유니트를 포함함을 특징으로 한다.The decoder according to the present invention extracts the elementary stream from the transmitted bitstream, removes the additional header from the elementary stream, and provides a video stream, and continuously decoded data by variable-length and continuous-length decoding the video stream. Variable- and continuous-length decoders to provide the inverse quantizer and inverse quantized data to inversely quantize the inverse quantized data using the quantization step size used for encoding the inverse quantized data. And an inverse discrete conversion unit for outputting data.

또한, 본 발명에 의한 부호화 방법은 입력되는 영상 신호를 이산 변환하여 이산 변환 계수를 제공하는 단계, 이산 변환 계수를 초기화 양자화 매트릭스를 이용하여 양자화하여 초기 양자화된 데이터를 제공하는 단계, 초기 양자화된 데이터를 다수의 양자화 스텝사이즈를 이용하여 병렬로 양자화하여 얻어지는 각각의 부호량 중에서 목표 부호량에 가장 근접한 결과를 출력하는 양자화 스텝사이즈를 실제 양자화 스텝사이즈로 결정하는 단계 및 결정된 실제 양자화 스텝사이즈에 의해 초기 양자화된 데이터를 양자화하여 압축된 데이터를 제공하는 단계를 포함함을 특징으로 한다.In addition, the encoding method according to the present invention comprises the steps of providing discrete transform coefficients by discretely transforming an input video signal, quantizing the discrete transform coefficients using an initializing quantization matrix to provide initial quantized data, initial quantized data Determining the quantization step size that outputs the result closest to the target code amount from each code amount obtained by quantizing in parallel using a plurality of quantization step sizes as the actual quantization step size and the initial by the determined actual quantization step size Quantizing the quantized data to provide compressed data.

또한, 본 발명의 부호화 방법은 압축된 데이터를 연속장 및 가변장 부호화하여 가변장 부호화된 데이터를 제공하는 단계와 가변장 부호화된 데이터를 부가 헤더를 부가하여 기본스트림을 생성하여 비트스트림으로서 출력하는 단계를 더 포함함을 특징으로 한다.In addition, the encoding method of the present invention provides continuous-length and variable-length encoding of compressed data to provide variable-length encoded data, and generates a basestream by adding an additional header to output the variable-length encoded data as a bitstream. It further comprises a step.

본 발명에 의한 복호화 방법은 전송되는 비트스트림으로부터 기본스트림을 추출하고, 기본스트림으로부터 부가 헤더를 제거하여 비디오 스트림을 제공하는 단계, 비디오 스트림을 가변장 및 연속장 복호화하여 연속장 복호화된 데이터를 제공하는 단계, 연속장 복호화된 데이터를 부호화시 사용한 양자화 스텝사이즈에 의해 역 양자화하여 역 양자화된 데이터를 제공하는 단계 및 역 양자화된 데이터를 역 이산 변환하여 원 영상 데이터로 출력하는 단계를 포함함을 특징으로 한다.The decoding method according to the present invention extracts an elementary stream from a transmitted bitstream, removes an additional header from the elementary stream, and provides a video stream, and provides variable-length decoded data by variable-length and continuous-length decoding of the video stream. And inversely quantizing the continuous-length decoded data by the quantization step size used for encoding to provide inverse quantized data, and inversely discretely transforming the inverse quantized data and outputting the original image data. It is done.

도 1은 본 발명에 의한 부호화기의 일 실시예에 따른 블록도이다.1 is a block diagram according to an embodiment of an encoder according to the present invention.

도 2는 입력 영상 포맷의 일 예를 보인 도면이다.2 illustrates an example of an input image format.

도 3은 입력 영상 포맷의 다른 예를 보인 도면이다.3 illustrates another example of an input image format.

도 4는 입력 영상 포맷의 또 다른 예를 보인 도면이다.4 illustrates another example of an input image format.

도 5는 도 1에 도시된 부호량 조절기의 상세 블록도이다.FIG. 5 is a detailed block diagram of the code amount controller shown in FIG. 1.

도 6은 도 1에 도시된 I/D 스캔 유니트에서 수행되는 I-스캔과 D-스캔의 개념을 설명하기 위한 도면이다.FIG. 6 is a view for explaining the concept of I-scan and D-scan performed in the I / D scan unit shown in FIG. 1.

도 7의 (a)와 (b)는 도 1에 도시된 I/D 스캔 유니트의 I-스캔과 D-스캔 순서의 일 예를 설명하기 위한 도면이다.7 (a) and 7 (b) are diagrams for explaining an example of an I-scan and a D-scan order of the I / D scan unit shown in FIG.

도 8은 본 발명에 의한 복호화기의 일 실시예에 따른 블록도이다.8 is a block diagram according to an embodiment of a decoder according to the present invention.

이하, 첨부된 도면을 참조하여 본 발명에 의한 영상 신호의 압축 부호화기 및/또는 복호화기와 그 방법의 바람직한 실시예를 설명하기로 한다.Hereinafter, with reference to the accompanying drawings will be described a preferred embodiment of the compression encoder and / or decoder and the method of the video signal according to the present invention.

먼저, 본 발명의 이해를 돕기 위하여 MPEG-2에 관한 영상 압축 부호화 및 복호화하는 과정은 ISO/IEC 13818-2에 정의되어 있다. 이 ISO/IEC 13818-2에는 복호화 과정을 설명하기 위한 용어의 의미, 비트열의 문법과 계층적 구조, 각종 파라미터의 의미, 가변장 복호화(VLD), 역 스캔(ISCAN), 역 양자화(IQ), 역 이산 변환(IDCT), 움직임 보상(MC)등의 프로세스(process)에 대한 설명이 포함되어 있다.First, in order to assist in understanding the present invention, a video compression encoding and decoding process for MPEG-2 is defined in ISO / IEC 13818-2. This ISO / IEC 13818-2 describes the meanings of terms used to describe the decoding process, the grammar and hierarchical structure of bit strings, the meaning of various parameters, variable length decoding (VLD), inverse scan (ISCAN), inverse quantization (IQ), A description of processes such as Inverse Discrete Transform (IDCT) and Motion Compensation (MC) is included.

또한, MPEG-2에서는 이전 프레임과의 시간적 중복성을 제거하여 압축률을 높이기 위하여, 이전 프레임에서 현재 프레임의 매크로블록(기준블록)과 가장 닯은 블록(정합 블록)을 찾은 후 기준블록과 정합블록의 위치 차이인 움직임 벡터와 기준블록과 정합블록의 화소값의 차이인 예측 오차를 생성하여 이를 부호화하는 움직임 예측 방법을 사용한다. 따라서, MPEG-2의 양자화기는 움직임 예측을 사용하지 않는 매크로블록(인트라 매크로블록), 움직임 예측이 사용된 매크로블록(인터 매크로블록), 휘도신호 및 색신호에 따라 서로 다른 가중치를 가진 양자화 간격이 저장된 양자화 테이블이 사용된다.In addition, in order to increase the compression rate by eliminating temporal redundancy with the previous frame, the MPEG-2 finds the macroblock (reference block) and the closest block (matching block) of the current frame in the previous frame, and then A motion prediction method of generating and encoding a prediction error that is a difference between a motion vector that is a position difference and a pixel value of a reference block and a matching block is used. Accordingly, the MPEG-2 quantizer stores macroblocks (intra macroblocks) that do not use motion prediction, macroblocks that use motion prediction (inter macroblocks), quantization intervals having different weights according to luminance signals and color signals. Quantization table is used.

그러나, 본 발명에서는 화면 단위의 편집 때문에 현재 화면과 이전 화면간의 상관 관계를 이용하는 기법을 사용하지 않기 때문에 이러한 움직임 예측 및 보상에 대한 부호화 기법은 사용하지 않는다. 즉, I(intra) 픽쳐만을 사용하여 화면 단위의 편집 기능이 가능하게 한다. 본 발명의 부호화기에서 출력되는 비트열(bitstream)은 MPEG-2의 시스템 레이어 포맷의 비트열로서 출력할 수 있으므로 MPEG-2와의 호환성을 유지할 수 있다.However, since the present invention does not use a technique that uses the correlation between the current screen and the previous screen because of the editing of the screen unit, such a coding method for motion prediction and compensation is not used. That is, the screen-based editing function is enabled using only I (intra) pictures. The bitstream output from the encoder of the present invention can be output as a bitstream of the MPEG-2 system layer format, thereby maintaining compatibility with MPEG-2.

본 발명에 의한 부호화기의 일 실시예에 따른 블록도인 도 1에 있어서, 전처리기(102)는 입력되는 영상 신호의 포맷이 4:2:2일 경우 4:2:0의 포맷으로 서브샘플링하기 위하여 저역필터링을 수행하고 칼라 성분에 대해 서브샘플링을 수행한다. 즉, 입력되는 화면 단위의 영상 데이터에서 인간의 눈으로 의미를 파악할 수 있는 대부분의 정보를 포함하는 휘도 신호와는 달리 칼라 신호는 저주파 성분이 대부분이므로 부호화하기 전에 저역 필터링을 수행하고 서브샘플링을 하는 것은, 압축 과정시 칼라 성분이 휘도 성분에 비해 상대적으로 덜 중요하기 때문이며, 그 결과로 압축 과정의 압축비에 대한 부담을 덜어주어 성능이 높은 압축기를 구현할 수 있게 된다.In FIG. 1, which is a block diagram according to an embodiment of the present invention, the preprocessor 102 subsamples a 4: 2: 0 format when an input video signal has a format of 4: 2: 2. Low-pass filtering is performed to perform subsampling on the color components. In other words, unlike the luminance signal that includes most of the information that can be understood by the human eye in the input image data, the color signal has low frequency components, so low-pass filtering and subsampling are performed before encoding. This is because the color component is less important than the luminance component in the compression process, and as a result, a high performance compressor can be realized by reducing the burden on the compression ratio of the compression process.

여기서, 전처리기(102)에 입력되는 영상 포맷은 다양할 수 있으며 입력 영상 포맷의 일 예는 도 2에 도시되어 있으며, 입력 영상의 크기가 720픽셀 × 480라인이고, 하나의 DCT 블록 크기는 8픽셀 × 8라인이고, 매크로블록(MB)은 휘도 성분의 4개의 DCT 블록과 칼라 성분의 2개의 DCT 블록으로 이루어지고, 슬라이스(SMB)는 5개의 매크로블록으로 구성되는 경우의 입력 데이터의 형태를 보이고 있으며, 따라서 1 프레임은 270개(= 9 × 30)의 슬라이스로 이루어진다. 슬라이스 구조는 일반적인 크기와는 달리 고속 탐색을 위하여 본 발명에서는 적은 수의 매크로블록으로 구성되어 압축부호화된다.Here, the image format input to the preprocessor 102 may vary. An example of the input image format is illustrated in FIG. 2, and the size of the input image is 720 pixels. × 480 lines, one DCT block size is 8 pixels × 8 lines, the macro block (MB) is composed of four DCT blocks of the luminance component and two DCT blocks of the color component, and the slice (SMB) shows the form of the input data in the case of five macro blocks. , So 1 frame equals 270 (= 9 × 30). Unlike the general size, the slice structure is composed of a small number of macroblocks and compressed by the present invention for fast searching.

입력 영상의 포맷의 다른 예는 도 3에 도시되어 있으며, 입력 영상의 크기가 720픽셀 × 480라인이고, 슬라이스(SMB)는 3개의 매크로블록으로 구성되는 경우의 입력 데이터 형태를 보이고 있으며, 따라서 1 프레임은 450개(= 15 × 30)의 슬라이스로 이루어진다.Another example of the format of the input image is shown in FIG. 3, and the size of the input image is 720 pixels. × 480 lines, the slice (SMB) shows the form of input data in the case of three macroblocks, so one frame is 450 (= 15 × 30).

입력 영상의 포맷의 또 다른 예는 도 4에 도시되어 있으며, 입력 영상의 크기가 640픽셀 × 480라인이고, 슬라이스(SMB)는 5개의 매크로블록으로 구성되는 경우의 입력 데이터 형태를 보이고 있으며, 따라서 1 프레임은 240개(= 8 × 30)의 슬라이스로 이루어진다.Another example of the format of the input image is shown in FIG. 4, where the size of the input image is 640 pixels. × 480 lines, the slice (SMB) shows the form of input data in the case of five macroblocks, so one frame is 240 (= 8 × 30).

DCT 및 ZZ(Zig Zag) 스캔 유니트(104)는 전처리기(102)로부터 제공되는 영상 데이터에 대해 DCT를 수행해서 얻어진 DCT 계수를 지그재그 스캔한다. 저주파 영역에 에너지를 집중시키는 변환인 DCT는 MPEG-1, MPEG-2 뿐만 아니라 다른 많은 영상 신호 압축 국제 표준으로 사용되고 있으며, 사람의 눈은 고주파 성분보다는 저주파 성분에 더 민감하기 때문에 고주파 영역을 많이 제거하여도 사람이 느끼는 화질 저하는 크지 않은 시각 특성을 이용한다. DCT에 의해 공간상의 화소값을 주파수 영역으로 변환시키며 DCT 자체로는 영상 데이터의 압축이 불가능하고 항상 양자화 과정과 함께 사용된다.The DCT and ZZ (Zig Zag) scanning unit 104 performs a zigzag scan of the DCT coefficients obtained by performing DCT on the image data provided from the preprocessor 102. DCT, a transformation that concentrates energy in the low frequency region, is used not only for MPEG-1 and MPEG-2 but also for many other international video signal compression standards. Since the human eye is more sensitive to low frequency components than high frequency components, it eliminates many high frequency regions. However, the image quality deteriorated by a person uses a small visual characteristic. DCT converts spatial pixel values into the frequency domain. DCT itself cannot compress image data and is always used with quantization.

본 발명에서는 움직임 예측(motion estimation:ME)을 사용하지 않기 때문에 양자화기는 휘도 신호와 칼라 신호에 대한 양자화 테이블만 갖고 있으면 된다. 또한, 본 발명에서는 움직임 예측을 사용하지 않기 때문에 연산량이 큰 움직임 예측기가 필요없으며, 움직임 예측을 위한 프레임 메모리와 별도의 복호화기를 사용하지 않기 때문에 하드웨어량이 감소한다.Since the present invention does not use motion estimation (ME), the quantizer only needs to have a quantization table for the luminance signal and the color signal. In addition, since the present invention does not use motion prediction, a motion predictor having a large amount of computation is unnecessary, and the amount of hardware is reduced since a frame memory and a separate decoder for motion prediction are not used.

한편, 캠코더의 특성상 화면 단위로 부호량을 고정하며, 입력 영상 데이터를 약 1/5 이상으로 압축하는 부호화기에 있어서 부호량을 조절하는 양자화 과정이 재생시의 화질을 좌우하는 가장 중요한 부분이 된다. MPEG-2에서 사용하는 부호화기의 여러 변수들 중에서 본 발명에서 사용한 주요 변수들의 내용을 살펴보면 다음과 같다. 먼저 intra_dc_precision은 인트라 블록 DC 계수의 코딩 비트수를 나타낸다. DC 프리시젼(precision)의 경우 MPEG-1에서는 DC의 양자화시의 정밀도를 8비트로 표현하였지만 MPEG-2에서는 8/9/10/11 비트의 정밀도를 선택할 수 있고 이것을 매 픽쳐마다 변경 가능하다. 본 발명의 부호화기는 하드웨어를 간단하게 하기 위하여 10비트의 정밀도로 고정하였지만 실제로 8비트를 사용하는 것과 11비트를 사용하는 것의 부호량에는 어느 정도의 차이가 있으나 화질 측면에서는 그리 크게 차이가 나지 않으므로 8비트를 사용하기도 한다.On the other hand, due to the characteristics of the camcorder, the code amount is fixed in units of screens, and the quantization process of adjusting the code amount is the most important part in determining the image quality during playback. Among the various parameters of the encoder used in MPEG-2, the contents of the main variables used in the present invention are as follows. First, intra_dc_precision represents the number of coding bits of an intra block DC coefficient. In the case of DC precision, the precision of DC quantization is expressed by 8 bits in MPEG-1, but the precision of 8/9/10/11 bits can be selected in MPEG-2 and this can be changed for each picture. In order to simplify the hardware, the encoder of the present invention is fixed with a precision of 10 bits, but there is some difference in the amount of code between using 8 bits and 11 bits, but there is no significant difference in terms of image quality. It also uses bits.

DCT 블록에 대응하는 양자화 매트릭스의 변경은 MPEG-1에서는 시퀀스(sequence) 단위로만 허용되지만 MPEG-2에서는 픽쳐 단위로 변경이 가능하며, 전송(downloading)도 가능하다. 본 발명에서는 MPEG-2에서 사용하는 초기(default) 양자화 매트릭스만을 사용한다. 양자화 스텝사이즈를 바꿔주는 q_scale_type이 "0"의 값을 가지면 선형적으로 스텝사이즈[2-62]가 변하는 테이블을 취하며 이는 MPEG-1과 호환이 가능하다. 한편, "1"의 값을 가지면 비선형적 [1-112]으로 스텝사이즈가 변하며 양자화 스텝사이즈가 미세하게 조정될 경우 그 효과가 크다. 이러한 비선형 스텝 구조는 고비트율 부호화기에서 사용되며 본 발명에서는 q_scale_type을 "1"로 고정하여 부호화한다.The change of the quantization matrix corresponding to the DCT block is allowed only in a sequence unit in MPEG-1, but can be changed in units of pictures in MPEG-2 and can be downloaded. In the present invention, only the default quantization matrix used in MPEG-2 is used. If q_scale_type, which changes the quantization step size, has a value of "0", it takes a table in which the step size [2-62] is changed linearly, which is compatible with MPEG-1. On the other hand, if the value is "1", the step size changes nonlinearly [1-112], and the effect is great when the quantization step size is finely adjusted. Such a nonlinear step structure is used in a high bit rate encoder. In the present invention, q_scale_type is fixed by encoding "1".

따라서, 본 발명에서는 DCT 변환 계수를 양자화하여 압축률을 높이는 과정인 양자화 과정을 하드웨어 간소화를 위하여 두 단계로 나누어 수행한다. 첫 번째 단계는 MPEG-2에서 사용되는 양자화 매트릭스를 이용한 양자화 단계로서, 즉, 양자화기(106)는 DCT 및 ZZ 스캔 유니트(104)로부터 인가되는 DCT 계수와 미리 정해진 초기 양자화 테이블(108)에 저장된 초기화(default) 양자화 매트릭스를 이용하여 한 화면 전체에 걸쳐 일률적으로 양자화하고, 그 출력은 부호량 조절기(bitrate controller: 112)를 위한 처리 기간동안 프레임 버퍼(110)에 저장된다. 입력된 영상이 복잡한 경우 부호화되는 비트열이 정해진 부호량을 초과하게 되므로 양자화 스텝사이즈의 계수를 크게 하여 압축 부호량을 줄이고 반대의 경우에는 양자화 스텝사이즈의 계수를 적게하여 상대적으로 압축 부호량을 늘리는 조정이 필요하다.Therefore, in the present invention, the quantization process, which is a process of increasing the compression rate by quantizing the DCT transform coefficients, is performed in two steps for hardware simplification. The first step is the quantization step using the quantization matrix used in MPEG-2, ie the quantizer 106 is stored in the predetermined initial quantization table 108 and the DCT coefficients applied from the DCT and ZZ scan units 104. Quantize uniformly throughout the screen using the default quantization matrix, and its output is stored in frame buffer 110 during processing for the bitrate controller 112. If the input image is complex, the coded bit stream exceeds the predetermined code amount, so that the coefficient of quantization step size is increased to reduce the compressed code amount, and in the opposite case, the coefficient of the quantization step size is decreased to increase the compressed code amount relatively. Adjustment is necessary.

한편, 부호화기에 입력된 디지털 영상 신호는 그 부호량을 전송하거나 기록 매체에 기록하기에는 데이터량이 너무 많기 때문에 보통 압축이라는 과정을 거치게 된다. 디지털 캠코더와 같이 화면 단위의 편집이나 고속 탐색과 같은 기능을 위하여 화면 단위의 압축 기법을 사용하는 압축 부호화 방식은 MPEG 등에서 사용되는 압축 기법과는 판이하게 다를 수밖에 없다. 즉, 프레임 단위로 부호량을 고정하는 부호화 방식의 부호량 조절은 일반적인 부호량 제어와는 많은 차이를 보인다.On the other hand, the digital video signal input to the encoder is usually compressed because the amount of data is too large to transmit the code amount or to record on the recording medium. Like a digital camcorder, a compression encoding method using a compression unit of a screen unit for functions such as screen unit editing or high-speed search is very different from the compression technique used in MPEG. That is, the code amount control of the encoding method of fixing the code amount on a frame basis shows a lot of difference from the general code amount control.

또한, 압축된 데이터를 비디오 테이프에 기록시 프레임 단위로 압축된 부호량을 일정한 목표치 이하로 유지하여 기록한다. NTSC의 경우 1 프레임에 10개의 트랙을 할당하고, PAL의 경우 12 트랙을 할당한다. 따라서, 부호량 예측이 빗나가 압축된 부호량이 목표치에 크게 모자라거나 남게 되면 화질에 많은 영향을 준다. 즉, 압축된 부호량이 목표치에 많이 부족하면 그만큼 재생시 화질의 열화가 발생하고, 부호량이 목표치보다 많이 발생하면 강제로 압축이 끝나게 되어 화면의 마지막 부분이 짤리는 현상이 발생한다.In addition, when the compressed data is recorded on a video tape, the code amount compressed in units of frames is kept at a predetermined target value or less and recorded. In the case of NTSC, 10 tracks are allocated to one frame, and in the case of PAL, 12 tracks are allocated. Therefore, if the code amount prediction is deficient and the compressed code amount falls short of the target value or remains, the image quality is greatly affected. In other words, if the compressed code amount is insufficient to the target value, deterioration of the image quality occurs during playback. If the code amount is larger than the target value, compression is forcibly terminated and the last part of the screen is cut off.

이러한 특징으로 인하여 입력되는 영상의 특성(예를 들어, 활동도(activity))과 출력 버퍼의 부호량 정도에 따라 조절되는 일반적인 비트량 제어 방법을 바로 이용하거나 응용하는 정도의 부호량 조절은 SD급 이상의 고화질을 재생하는 데 한계성을 보여준다. 실험에 의하면, 화면 단위로 압축 부호화하는 경우에 있어서 한 화면의 목표 부호량을 넘지 않는 최대한의 부호량이 출력되도록 하는 것이 주관적 및 객관적 측면에 있어서의 최선의 압축 방식임을 보여준다.Due to these characteristics, the code amount adjustment of the degree of application or application of a general bit rate control method that is adjusted according to the characteristics of the input image (for example, activity) and the amount of code of the output buffer is immediately applied. It shows the limitation in playing the higher picture quality. According to the experiment, it is shown that the best compression method in terms of subjective and objective is to output the maximum code amount that does not exceed the target code amount of one screen in the case of compression coding on a screen basis.

한편, DVC 표준안의 경우 주로 고속 탐색의 목적을 위하여 5개의 매크로 블록으로 구성되는 세그먼트 단위로 부호량을 고정하기 때문에 다음 세그먼트는 부호량의 영향을 받지 않는다. 본 발명의 압축 방식에서는 캠코더에서 필수 기능인 고속 탐색을 위하여 슬라이스 단위를 일반적인 크기보다 적은 소정수(일 예로서 5개)의 매크로블록으로 구성하여 SD급의 세그먼트 단위의 역할을 대신한다.On the other hand, in the DVC standard, since the code amount is fixed in units of segments composed of five macro blocks mainly for the purpose of fast searching, the next segment is not affected by the code amount. In the compression method of the present invention, a slice unit is composed of a predetermined number of macroblocks smaller than a general size (for example, five) for fast search, which is an essential function of a camcorder, to replace the role of an SD class segment unit.

그러나, SD급의 세그먼트의 경우 그 크기가 일정하지만 본 발명의 압축 방식은 가변적이다. 독립적으로 복호화가 가능한 단위인 세그먼트의 크기가 일정할 경우 고속 탐색 및 에러 은닉시 보다 효율적인 성능을 발휘할 수 있으나 압축 재생시의 효율면에서 있어서는 가변 부호화방식 보다 떨어짐을 알 수 있다. 또한, SD급의 DVC인 경우 양자화가 DCT 블록 단위로 수행되므로 매크로블록 단위로 수행되는 MPEG의 압축 방식과는 그 특성이 조금 다르게 나타난다. 즉, DCT 블록 단위로 양자화를 조절해야 하는 복잡한 영상(mobile)의 에지 성분에서 SD급의 DVC가 주관적 특성이 조금 더 우세하게 나타날 수 있다.However, although the size of the SD class segment is constant, the compression scheme of the present invention is variable. If the size of the segment, which is an independently decodable unit, is constant, it can show more efficient performance during fast searching and error concealment, but it is inferior to the variable coding method in terms of efficiency in compression reproduction. In addition, in the case of SD-class DVC, since the quantization is performed in units of DCT blocks, its characteristics are slightly different from those of MPEG compression, which is performed in units of macroblocks. In other words, the subjective characteristics of SD-class DVC may appear more predominantly in the edge component of a complex mobile in which quantization must be controlled in units of DCT blocks.

다음, 기존 부호화기와 가장 구별되는 본 발명의 부호량 조절에 의한 실제 양자화 스텝사이즈를 구해서 양자화하는 두 번째 양자화 단계를 중심으로 설명하기로 한다. 두 번째 양자화 단계는 기준 양자화 스텝사이즈와 이와 이웃하는 양자화 스텝사이즈를 사용하여 초기 양자화 스텝사이즈에 의해 양자화된 데이터를 병렬 양자화를 수행해서 얻어진 각각의 부호량 중에서 가장 목표 부호량에 근접한 양자화 스텝사이즈를 이용하여 실제 양자화 스텝사이즈를 생성한다.Next, a description will be given based on a second quantization step of obtaining and quantizing the actual quantization step size by the code amount control of the present invention, which is most distinguished from the existing encoder. The second quantization step uses the reference quantization step size and the neighboring quantization step size to determine the quantization step size closest to the target code amount among the respective code amounts obtained by performing parallel quantization on the data quantized by the initial quantization step size. To generate the actual quantization step size.

즉, 부호량 조절기(112)는 다수의 양자화기(114), 다수의 부호 길이 카운터(116), 조정기(118)로 구성되고, 상세 블록도는 도 5에 도시되어 있다. 도 5에 있어서, 다수의 양자화기(114)의 일 예로서 제1 내지 제3 양자화기(142,144,146)는 양자화기(106)로부터 제공되는 초기 양자화 스텝사이즈에 의해 양자화된 데이터를 기준 양자화 스텝사이즈보다 "1"이 큰 스텝사이즈(mquant+1), 기준 양자화 스텝사이즈(mquant), 기준 양자화 스텝사이즈보다 "1"이 작은 스텝사이즈(mquant-1)에 의해 병렬로 각각 양자화한다.That is, the code amount adjuster 112 is composed of a plurality of quantizers 114, a plurality of code length counters 116, and an adjuster 118, and a detailed block diagram is shown in FIG. In FIG. 5, as an example of the plurality of quantizers 114, the first to third quantizers 142, 144, and 146 may store data quantized by the initial quantization step size provided from the quantizer 106 than the reference quantization step size. Quantization is performed in parallel by a step size mquant + 1 having a large " 1 ", a reference quantization step size mquant and a step size mquant-1 having a " 1 " smaller than a reference quantization step size.

다수의 부호 길이 카운터(116)의 제1 내지 제3 카운터(162,164,166))는 제1 내지 제3 양자화기(142,144,146)로부터 제공되는 양자화된 데이터를 카운트해서 각 양자화 스텝사이즈를 사용했을 때의 부호량을 나타내는 카운트값을 조정기(118)에 제공한다. 여기서, 제1 카운터(162)로부터 제공되는 기준 양자화 스텝사이즈보다 한 단계(여기서는 "1") 큰 양자화 스텝사이즈(mquant+1)를 사용한 경우의 제1 부호량을 sum_P, 제2 카운터(164)로부터 제공되는 기준 양자화 스텝사이즈(mquant)를 사용한 경우의 제2 부호량을 sum, 제3 카운터(166)로부터 제공되는 기준 양자화 스텝사이즈보다 "1"이 작은 양자화 스텝사이즈(mquant-1)을 사용한 경우의 제3 부호량을 sum_M이라고 한다.The first to third counters 162, 164, and 166 of the plurality of code length counters 116 count the quantized data provided from the first to third quantizers 142, 144, and 146, and use the amount of code when each quantization step size is used. A count value indicative of is provided to the regulator 118. Here, sum_P and the second counter 164 are the sum of the first code amount in the case of using the quantization step size mquant + 1 which is one step (here, "1") larger than the reference quantization step size provided from the first counter 162. Sum the second code amount in the case of using the reference quantization step size (mquant) provided from, and use the quantization step size (mquant-1) that is "1" smaller than the reference quantization step size provided from the third counter 166. The third code amount in the case is called sum_M.

이때, 조정기(118)는 제1 내지 제3 카운터(162,164,166)로부터 제공되는 제1 내지 제3 부호량과 목표 부호량에 근거하여 다음 입력되는 화면에서 사용할 기준 양자화 스텝사이즈를 조정해서 갱신된 기준 양자화 스텝사이즈(updated mquant)를 다수의 양자화기(114)에 피드백 입력한다. 이러한 과정을 통하여 입력된 영상의 화면이 변하는 장면 변화(scene change)가 발생하더라도 곧바로 해당 장면에 적합한 기준 양자화 스텝사이즈를 추출할 수 있다.At this time, the adjuster 118 adjusts the reference quantization step size to be used in the next input screen based on the first to third code amounts and the target code amounts provided from the first to third counters 162, 164, and 166. The feedback size is fed back into the plurality of quantizers 114. Through this process, even if a scene change occurs when the screen of the input image changes, a reference quantization step size suitable for the scene can be extracted immediately.

또한, 조정기(114)는 제1 내지 제3 카운터(162,164,166)에 의해 계산된 제1 내지 제3 부호량(sum_P, sum, sum_M)에 따라 실제 양자화 스텝사이즈를 결정하는 데, 도 1에 도시된 I(Increasing)/D(Decreasing) 스캔 유니트(120)에 의해 I/D 스캔을 수행하면서 양자화하는 경우와 I/D 스캔을 수행하지 않고 양자화하는 경우로 구분된다.In addition, the adjuster 114 determines the actual quantization step size according to the first to third code amounts sum_P, sum, and sum_M calculated by the first to third counters 162, 164, and 166. It is divided into a case of performing quantization while performing an I / D scan by the I (Increasing) / D (Decreasing) scan unit 120 and a case of quantizing without performing an I / D scan.

즉, 부호량 조절기(112)는 기준 양자화 스텝사이즈(mquant), 기준 양자화 스텝사이즈보다 스텝사이즈가 하나 더 큰 것과 하나 더 작은 것(mquant+1, mquant-1)을 갖고 병렬 양자화를 수행해서 얻어지는 각각에 해당하는 한 화면의 부호량을 기준으로 아래의 수학식 1에 주어진 바와 같이 I/D 스캔 여부를 결정할 수 있다. 즉, 목표 부호량(TB)이 기준 양자화 스텝사이즈보다 하나 작은 것과 큰 것에 의한 부호량 사이(Bm>TB>Bp)에 있게 되면 I/D 스캔 유니트(120)에서 I/D 스캔을 수행하면서 기준 양자화 스텝사이즈가 화면의 위치에 따라 조절된 실제 양자화 스텝사이즈를 이용하여 실제 양자화를 수행한다.That is, the code amount controller 112 is obtained by performing parallel quantization with a reference quantization step size (mquant), one step size larger than the reference quantization step size, and one smaller size (mquant + 1, mquant-1). Based on the code amount of one screen corresponding to each, it may be determined whether to scan the I / D as given in Equation 1 below. That is, when the target code amount TB is between one less than the reference quantization step size and the code amount due to a large amount (Bm> TB> Bp), the I / D scan unit 120 performs the I / D scan while performing the reference. The actual quantization is performed using the actual quantization step size whose quantization step size is adjusted according to the position of the screen.

그 외의 경우는 기준 양자화 스텝사이즈에 옵셋을 가감하여 얻어진 실제 양자화 스텝사이즈를 이용하여 실제 양자화를 수행한다. 즉, 목표 부호량(TB:Target Bit)이 기준 양자화 스텝사이즈보다 "1"이 작은 양자화 스텝사이즈를 사용한 경우의 부호량(Bm)과 기준 양자화 스텝사이즈보다 "1"이 큰 양자화 스텝사이즈를 사용한 경우의 부호량(Bp) 사이에 있지 않는 오버플로우(overflow)나 언더플로우(underflow)인 경우에는 옵셋을 가감한 기준 양자화 스텝사이즈(mquant)의 변경이 필요하다.In other cases, actual quantization is performed using the actual quantization step size obtained by adding or subtracting an offset to the reference quantization step size. That is, the code amount Bm when the target code amount TB is less than "1" than the reference quantization step size and the quantization step size that is "1" larger than the reference quantization step size are used. In the case of overflow or underflow not between the code amounts Bp in the case, it is necessary to change the reference quantization step size mquant by adding or subtracting the offset.

TB > Bm > Bp : change mquant to [mquant - offset_M]TB> Bm> Bp: change mquant to [mquant-offset_M]

Bm > TB > Bp : I/D scanBm> TB> Bp: I / D scan

Bm > Bp > TB : change mquant to [mquant + offset_P]Bm> Bp> TB: change mquant to [mquant + offset_P]

where, Bm : sum_M, Bp: sum_P, TB: Target Bit Numberwhere, Bm: sum_M, Bp: sum_P, TB: Target Bit Number

아래 수학식 2는 오버플로우가 발생하여 기준 양자화 스텝사이즈에 옵셋을 가산하여 생성된 실제 양자화 스텝사이즈(re_mq)의 예를 보이고 있고, 수학식 3은 언더플로우가 발생하여 기준 양자화 스텝사이즈에 옵셋을 감산하여 생성된 실제 양자화 스텝사이즈의 예를 보이고 있다.Equation 2 below shows an example of the actual quantization step size (re_mq) generated by adding an offset to the reference quantization step size due to overflow, and Equation 3 shows an offset to the reference quantization step size by underflow. An example of the actual quantization step size generated by subtracting is shown.

Tgap = B - TB, Pgap = B - BpTgap = B-TB, Pgap = B-Bp

if Tgap/2 > Pgap re_mq = i_mqaunt + 8if Tgap / 2> Pgap re_mq = i_mqaunt + 8

else if Tgap/1 > Pgap re_mq = i_mquant + 4else if Tgap / 1> Pgap re_mq = i_mquant + 4

else re_mq = i_mquant + 1else re_mq = i_mquant + 1

where, Bm; Bit amount by mquant-1, B: Bit amount by mquant, Bp: Bit amount by mquant+1, re_mq: real quantization stepsizewhere, Bm; Bit amount by mquant-1, B: Bit amount by mquant, Bp: Bit amount by mquant + 1, re_mq: real quantization stepsize

Tgap = TB - B, Mgap = Bm - BTgap = TB-B, Mgap = Bm-B

if Tgap/32 > Mgap re_mq = i_mquant - 8if Tgap / 32> Mgap re_mq = i_mquant-8

else if Tgap/16 > Mgap re_mq = i_mquant - 5else if Tgap / 16> Mgap re_mq = i_mquant-5

else if Tgap/8 > Mgap re_mq = i_mquant - 3else if Tgap / 8> Mgap re_mq = i_mquant-3

else if Tgap/4 > Mgap re_mq = i_mquant - 2else if Tgap / 4> Mgap re_mq = i_mquant-2

else re_mq = i_mquant - 1else re_mq = i_mquant-1

where, Bm; Bit amount by mquant-1, B: Bit amount by mquant, Bp: Bit amount by mquant+1, re_mq: real quantization stepsizewhere, Bm; Bit amount by mquant-1, B: Bit amount by mquant, Bp: Bit amount by mquant + 1, re_mq: real quantization stepsize

따라서, 두 번째 단계의 양자화 과정은 부호량 조절기(112)에 의해 얻어진 최종 부호량과 목표 부호량과의 차이값으로 조정된 새로운 매크로블록 단위의 양자화 스텝사이즈(실제 양자화 스텝사이즈)에 의해 프레임 메모리(110)로부터 독출되는 데이터를 양자화를 수행한다. 즉, 위 수학식 1에서도 설명된 바와 같이 목표 부호량이 기준 양자화 스텝사이즈보다 "1"이 작은 양자화 스텝사이즈를 사용한 경우의 제3 부호량과 기준 양자화 스텝사이즈보다 "1"이 큰 양자화 스텝사이즈를 사용한 경우의 제1 부호량 사이에 있으면 I/D 스캔 유니트(120)에 의해 I-스캔 또는 D-스캔을 수행하면서 실제 양자화기(122)는 결정된 기준 양자화 스텝사이즈를 변화시켜가면서 양자화할 수도 있고, 그렇지 않고 오버플로우 또는 언더플로우가 발생하면 수학식 2 또는 수학식 3에 의해 결정된 실제 양자화 스텝사이즈에 의해 I/D 스캔 유니트(120)를 거치지 않고 실제 양자화기(122)에서 프레임 버퍼(110)로부터 독출되는 데이터를 양자화한다. 이러한 과정을 거치면 입력 영상이 장면이 변하는 경우에도 압축된 부호량이 목표 부호량에 근접한 결과를 갖는 양자화 과정을 수행할 수 있게 된다.Therefore, the quantization process of the second step is performed by the frame memory based on the new macroblock quantization step size (actual quantization step size) adjusted to the difference between the final code amount obtained by the code amount controller 112 and the target code amount. Quantize the data read from 110. That is, as described in Equation 1 above, the third code amount and the quantization step size in which "1" is larger than the reference quantization step size when the target code amount is less than "1" than the reference quantization step size are used. If it is between the first code amount in the case of use, the actual quantizer 122 may quantize while changing the determined reference quantization step size while performing I-scan or D-scan by the I / D scan unit 120. Otherwise, if overflow or underflow occurs, the frame buffer 110 in the actual quantizer 122 without passing through the I / D scan unit 120 by the actual quantization step size determined by Equation 2 or 3 below. Quantize the data read from Through this process, even if the scene of the input image changes, the quantization process having the result that the compressed code amount approaches the target code amount can be performed.

한편, I/D 스캔 유니트(120)에서 사용되는 I-스캔 또는 D-스캔은 한 개의 화면 또는 수 개의 화면 단위로 부호량을 고정하여 압축 부호화하는 경우에 목표 부호량에 가장 근접하게 압축된 데이터를 출력하기 위하여 화면의 가장 자리나 중앙 부분 등과 같이 특정 부분을 목표 부호량에 도달할 때까지 재부호화하는 경우에 사용되는 스캔 방식이다. I-스캔은 발생된 부호량을 감소시키기 위한 매크로블록 단위의 스캔 순서를, D-스캔은 발생된 부호량을 증가시키기 위한 매크로블록 단위의 스캔 순서를 의미한다.On the other hand, the I-scan or D-scan used in the I / D scan unit 120 compresses the data that is most closely compressed to the target code amount when the code amount is fixed and encoded by one screen or several screen units. This is a scan method used to re-encode a specific part such as the edge of the screen or the center part of the screen until the target code amount is output. I-scan means a scanning order in units of macroblocks for decreasing the amount of generated code, and D-scan means a scanning order in units of macroblocks for increasing the amount of generated code.

따라서, 두 번째 양자화 단계는 좀 더 세밀한 부호량 조절을 수행하게끔 해주는 양자화 과정이다. 첫 번째 단계의 양자화 과정을 수행하여도 그 부호량은 목표치를 크게 초과하거나 미달되는 경우가 자주 발생하게 된다. 따라서, 각각의 경우에 대응하는 부호량 조절을 화면 단위 또는 매크로블록 단위로 양자화 스텝 사이즈를 변화시켜가며 양자화 과정을 수행하고, 결론적으로 화면 단위의 목표 부호량에 넘지 않는 한도내에서 가장 근접하게 부호량을 출력시킬 수 있게 끔 실제 양자화 스텝사이즈를 조절하여 양자화한다.Therefore, the second quantization step is a quantization process that allows finer code amount control. Even when the first step of quantization is performed, the code amount often exceeds or falls short of the target value. Therefore, the quantization process is performed by varying the quantization step size in screen units or macroblock units in order to adjust the corresponding code amount in each case. Quantize by adjusting the actual quantization step size to output the amount.

한편, DCT와 양자화를 거친 변환 계수는 양자화에 의해서 "0"의 값을 갖는 계수를 많이 포함하고 있으므로, 연속장 부호화기(RLC:124)는 실제 양자화기(122)로부터 제공되는 양자화 계수를 연속장 부호화하여 압축률을 높인다. 이 연속장 부호화는 "0" 이 많은 DCT 변환 계수의 특성을 이용하여 연속한 "0"의 개수와 바로 다음에 나오는 "0"이 아닌 값을 갖는 계수의 값을 하나의 심볼로 출력한다.On the other hand, since the transform coefficients that have undergone quantization with DCT include many coefficients having a value of "0" by quantization, the continuous field coder (RLC) 124 continuously stores the quantization coefficients provided from the actual quantizer 122. Encoding increases the compression rate. This continuous field coding outputs the number of consecutive "0" s and the value of the coefficient which has a non-zero value immediately following one symbol by using the characteristic of DCT transform coefficients with many "0" s.

가변장 부호화기(VLC: 126)는 코드 테이블(128)을 이용하여 연속장 부호화된 심볼중에서 확률적으로 가장 많이 나타나는 데이터에 가장 짧은 코드워드를 할당하고 상대적으로 발생확률이 적은 심볼에는 긴 코드워드를 할당하여 확률적인 방법으로 압축률을 높인다. 그리고, 기본스트림(Elementary Sream: ES) 부호화기(130)는 VLC(126)로부터 제공되는 가변장 부호화된 데이터를 코드 버퍼(132)에 일시 저장하고, 저장된 데이터에 부가 헤더를 부가하여 기본스트림을 생성해서 비트스트림형태로 출력한다.The variable length coder (VLC) 126 uses the code table 128 to allocate the shortest codeword to the data that appears most probably among the continuous-length coded symbols, and to assign a long codeword to a symbol having a relatively low probability of occurrence. Allocate it to increase the compression rate in a stochastic way. The elementary stream (ES) encoder 130 temporarily stores the variable length coded data provided from the VLC 126 in the code buffer 132 and adds an additional header to the stored data to generate the elementary stream. To output in bitstream form.

도 6은 도 1에 도시된 I/D 스캔 유니트(120)에서 수행되는 I/D 스캔의 개념을 설명하기 위한 도면이다. 먼저, I-스캔은 부호량 조절기(112)에서 계산된 부호량이 실제로 기록할 수 있는 목표 부호량보다 적은 경우에 해당하며, 매크로블록 단위의 부호화 순서이다. 즉, 결정된 기준 양자화 스텝 사이즈에 의한 압축된 부호량이 목표 부호량보다 적은 경우 해당 화면의 압축된 부호량을 목표 부호량에 맞추기 위하여 시각적으로 더 중요한 화면의 중앙 부분부터 매크로블록단위로 결정된 기준 양자화 스텝사이즈를 변화시켜가면서 양자화 과정을 다시 수행하여 목표 부호량에 근접할 때까지 부호화 과정을 수행한다. 이때, 재부호화하는 양자화 스텝사이즈는 결정된 기준 양자화 스텝사이즈보다 한 단계 낮은 것을 사용하여 실제 양자화기(122)로부터 출력되는 부호량을 늘린다.FIG. 6 is a diagram for describing a concept of an I / D scan performed by the I / D scan unit 120 illustrated in FIG. 1. First, I-scan corresponds to a case where the code amount calculated by the code amount adjuster 112 is smaller than the target code amount that can be actually recorded, and is an encoding order in units of macroblocks. That is, if the compressed code amount by the determined reference quantization step size is smaller than the target code amount, the reference quantization step determined in macroblock units from the central part of the visually more important screen to fit the compressed code amount of the screen to the target code amount. The quantization process is performed again while changing the size, and the encoding process is performed until the target code amount is approached. At this time, the quantization step size to be re-encoded increases the amount of code output from the actual quantizer 122 by using one step lower than the determined reference quantization step size.

D-스캔은 부호량 조절기(112)에서 계산된 부호량이 목표 부호량보다 많을 경우에 해당하는 매크로블록 단위의 부호화 순서이다. 즉, 결정된 기준 양자화 스텝사이즈에 의한 압축된 부호량이 목표 부호량보다 많을 경우 해당 화면의 압축된 부호량을 목표 부호량에 맞추기 위해서 시각적으로 덜 중요한 화면의 가장 자리부터 매크로블록 단위로 결정된 기준 양자화 스텝사이즈를 변화시켜가면서 양자화 과정을 다시 수행하여 목표 부호량에 근접할 때까지 부호화 과정을 수행한다. 이때 재부호화하는 양자화 스텝사이즈는 결정된 기준 양자화 스텝사이보다 한 단계 높은 것을 사용하여 실제 양자화기(122)로부터 출력되는 부호량을 줄인다.The D-scan is a coding order in macroblock units corresponding to the case where the code amount calculated by the code amount controller 112 is larger than the target code amount. That is, if the compressed code amount by the determined reference quantization step size is larger than the target code amount, the reference quantization step determined in macroblock units from the edge of the screen which is less visually important to fit the compressed code amount of the screen to the target code amount. The quantization process is performed again while changing the size, and the encoding process is performed until the target code amount is approached. In this case, the quantization step size to be re-encoded is one step higher than the determined reference quantization step to reduce the amount of code output from the actual quantizer 122.

도 7의 (a)와 (b)는 하나의 화면내에 44(row) × 30(col)개의 매크로블록이 있는 경우의 D-스캔과 I-스캔의 순서의 일 예를 보인 도면이다. 도 7의 (a)에 도시된 바와 같이 D-스캔은 실제 부호량이 목표 부호량에 근접하도록 가장 자리부터 양자화 스텝사이즈를 결정된 기준 양자화 스텝사이즈보다 한 단계 높은 것을 사용하고, 도 7의 (b)에 도시된 바와 같이 I-스캔은 중앙 부분부터 양자화 스텝사이즈를 결정된 기준 양자화 스텝사이즈보다 한 단계 낮은 것을 사용해서 실제 양자화한다.7 (a) and 7 (b) show 44 rows in one screen. × FIG. 1 shows an example of a sequence of D-scan and I-scan when there are 30 (col) macroblocks. As shown in (a) of FIG. 7, the D-scan uses a step higher than the reference quantization step size in which the quantization step size is determined from the edge so that the actual code amount approaches the target code amount. As shown in FIG. 1, the I-scan actually quantizes the quantization step size from the center portion using one step lower than the determined reference quantization step size.

도 8은 본 발명에 의한 복호화기의 일 실시예에 따른 블록도로서, 기본스트림 복호화기(202)는 전송되는 비트스트림으로부터 기본스트림을 추출하고 추출된 기본스트림에 부가된 부가 헤더를 제거해서 비디오 스트림을 제공한다. 가변장 복호화기(VLD: 204)는 비디오 스트림을 코드 테이블(206)를 이용하여 가변장 복호화한다. 연속장 복호화기(RLD: 208)는 가변장 복호화된 데이터를 연속장 복호화하고, 역 양자화기(IQ: 210)는 연속장 복호화된 데이터에 양자화 테이블(212)에 저장된 부호화시 사용한 양자화 스텝사이즈를 곱하여 역 양자화된 데이터를 제공한다.8 is a block diagram according to an embodiment of the decoder according to the present invention. The basestream decoder 202 extracts a basestream from a transmitted bitstream and removes an additional header added to the extracted basestream to remove the video. Provide a stream. The variable length decoder (VLD) 204 variable length decodes the video stream using the code table 206. The continuous field decoder (RLD) 208 continuously decodes the variable length decoded data, and the inverse quantizer (IQ) 210 uses the quantization step size used during encoding stored in the quantization table 212 in the continuous field decoded data. Multiply to give inverse quantized data.

IZZ/IDCT 유니트(214)는 역 양자화된 데이터를 지그재그 스캔의 역과정을 수행하고, 역 지그재그 스캔된 데이터를 역 이산 변환해서 원 영상 데이터를 라인 버퍼(216)에 일시 저장한 후 소정수의 라인 단위로 후처리기(218)에 제공한다. 후처리기(218)는 도 1에 도시된 전처리기(102)의 역과정을 수행하는 데, 전처리기(102)에서 4:2:2 포맷의 신호를 4:2:0 포맷으로 다운 샘플링하였기 때문에 후처리기(218)는 이에 대응하는 업 샘플링을 수행하여 원래의 4:2:2 포맷의 영상 신호로 출력한다.The IZZ / IDCT unit 214 performs an inverse process of the zigzag scan on the inverse quantized data, inverse discrete transforms the inverse zigzag scanned data, and temporarily stores the original image data in the line buffer 216, and then selects a predetermined number of lines. The unit is provided to the post-processor 218. The postprocessor 218 performs the reverse process of the preprocessor 102 shown in FIG. 1 because the preprocessor 102 downsampled the 4: 2: 2 format signal to the 4: 2: 0 format. The post processor 218 outputs a video signal of the original 4: 2: 2 format by performing a corresponding upsampling.

본 발명은 양자화 과정을 양자화 매트릭스로 나누는 과정과 실제 양자화 스텝사이즈로 나누는 과정으로 둘로 나누고, 먼저 입력 영상 신호를 초기 양자화 매트릭스로 한번만 나누면 병렬로 양자화하는 부분이나 실제로 양자화 과정을 수행하는 부분에서 초기 양자화 매트릭스로 나누는 과정을 생략할 수 있으므로 하드웨어의 복잡도를 줄일 수 있다.The present invention divides the quantization process into a quantization matrix and a process of dividing the actual quantization step size into two, and first divides the input image signal into an initial quantization matrix once, and then performs the initial quantization in the part of quantizing in parallel or the part of actually performing the quantization process. The process of dividing into matrices can be omitted, which reduces the complexity of the hardware.

또한, 본 발명에서는 화면 단위의 편집과 고속 탐색 기능을 수행하기 위해서, 압축된 부호량을 한 화면마다 일정한 크기 이하로 고정시켜 기록하며, 고속 탐색을 위하여 독립적인 복호화가 가능한 단위도 그 크기가 작아야 하므로 슬라이스 단위를 수개의 매크로블록으로 구성한다. 본 발명의 실시예에서는 실제 양자화 스텝사이즈를 매크로블록 단위로 설명되어 있으나 수개의 매크로블록으로 구성된 슬라이스 단위가 될 수도 있다.In addition, in the present invention, in order to perform the screen unit editing and the fast search function, the compressed code amount is fixed to a fixed size or less for each screen, and the unit capable of independent decoding for the fast search must be small in size. Therefore, the slice unit is composed of several macroblocks. In an embodiment of the present invention, the actual quantization step size is described in macroblock units, but may be a slice unit composed of several macroblocks.

본 발명은 입력된 디지털 영상 신호를 프레임(화면) 단위로 일정한 크기내로 압축할 수 있는 영상 신호 압축 부호화 방식을 채용해서 화면 단위의 영상 처리가 필요한 디지털 카메라, 캠코더 또는 디지털 VCR 등에 효과적으로 적용 가능하다.The present invention can be effectively applied to digital cameras, camcorders or digital VCRs that require image processing on a screen basis by adopting a video signal compression coding scheme that can compress an input digital video signal into a predetermined size on a frame (screen) basis.

상술한 바와 같이, 본 발명은 디지털 VCR에 적용하는 경우에는 화면(인트라 픽쳐) 단위로 압축 부호화 및 복호화함으로써 화면 단위의 영상 처리가 가능하고, DVC에 적용하는 경우에는 영상 신호를 MPEG-2의 표준안에 적합하도록 압축 부호화 및 복호화해서 MPEG을 이용하는 모든 기기와 호환할 수 있는 효과가 있다. 또한, 본 발명은 압축 부호화기의 압축 성능이 향상되면서 화질이 개선되고 하드웨어가 간단한 효과가 있다.As described above, in the present invention, when applied to a digital VCR, the video processing can be performed on a screen basis by compression encoding and decoding on a screen (intra picture) basis. When applying to a DVC, the video signal is a standard of MPEG-2. There is an effect that is compatible with all devices using MPEG by compression encoding and decoding so as to be suitable for. In addition, the present invention improves the compression performance of the compression encoder, the image quality is improved and the hardware has a simple effect.

Claims (34)

입력되는 영상 신호를 압축 부호화 및/또는 복호화하는 방법에 있어서:In the method of compression encoding and / or decoding the input video signal: (a) 입력되는 영상 신호를 이산 변환하여 이산 변환 계수를 제공하는 단계;(a) discrete converting an input video signal to provide a discrete transform coefficient; (b) 상기 이산 변환 계수를 양자화하여 초기화 양자화 매트릭스를 이용하여 초기 양자화된 데이터를 제공하는 단계;(b) quantizing the discrete transform coefficients to provide initial quantized data using an initialization quantization matrix; (c) 상기 초기 양자화된 데이터를 다수의 양자화 스텝사이즈를 이용하여 병렬로 양자화하여 얻어지는 각각의 부호량 중에서 목표 부호량에 가장 근접한 결과를 출력하는 양자화 스텝사이즈를 실제 양자화 스텝사이즈로 결정하는 단계; 및(c) determining, as the actual quantization step size, a quantization step size that outputs a result closest to a target code amount among the respective code amounts obtained by quantizing the initial quantized data in parallel using a plurality of quantization step sizes; And (d) 결정된 실제 양자화 스텝사이즈에 의해 초기 양자화된 데이터를 양자화하여 압축된 데이터를 제공하는 단계를 포함하는 방법.(d) quantizing the initial quantized data by the determined actual quantization step size to provide compressed data. 제1항에 있어서, 상기 (c) 단계는The method of claim 1, wherein step (c) (c1) 상기 초기 양자화된 데이터를 기준 양자화 스텝사이즈, 이보다 한 단계 큰 양자화 스텝사이즈와 한 단계 작은 양자화 스텝사이즈를 이용하여 병렬로 양자화하여 제1 내지 제3 양자화된 데이터를 제공하는 단계;(c1) quantizing the initial quantized data in parallel using a reference quantization step size, one step larger quantization step size, and one step smaller quantization step size to provide first to third quantized data; (c2) 상기 제1 내지 제3 양자화된 데이터를 소정 크기 단위로 카운트하여 제1 내지 제3 부호량을 제공하는 단계; 및(c2) counting the first to third quantized data by a predetermined size unit to provide first to third code amounts; And (c3) 상기 제1 내지 제3 부호량 중 목표 부호량에 가장 근접한 결과를 출력하는 양자화 스텝사이즈를 이용하여 실제 양자화 스텝사이즈를 결정하는 단계를 포함하는 방법.(c3) determining an actual quantization step size using a quantization step size that outputs a result closest to a target code amount among the first to third code amounts. 제2항에 있어서, 상기 (c3) 단계에서는 목표 부호량이 상기 기준 양자화 스텝사이즈보다 한 단계 큰 양자화 스텝사이즈를 사용하여 얻어진 제1 부호량과 상기 기준 양자화 스텝사이즈보다 한 단계 작은 양자화 스텝사이즈를 사용하여 얻어진 제3 부호량 사이에 있고, 상기 기준 양자화 스텝사이즈에 의해 얻어진 제2 부호량이 상기 목표 부호량보다 크면 상기 기준 양자화 스텝사이즈를 실제 양자화 스텝사이즈로 결정하고, 제2 부호량이 목표 부호량에 근접할 때까지 시각적으로 덜 중요한 화면의 가장 자리의 양자화 스텝사이즈를 변화시키는 것을 특징으로 하는 방법.3. The method of claim 2, wherein the step (c3) uses a first code amount obtained by using a quantization step size larger than the reference quantization step size and a quantization step size one step smaller than the reference quantization step size. The reference quantization step size is determined as the actual quantization step size if the second code amount obtained by the reference quantization step size is larger than the target code amount, and the second code amount is set to the target code amount. Varying the quantization step size of the edge of the screen that is less visually significant until it is close. 제3항에 있어서, 상기 (c3) 단계에서는 상기 화면의 가장 자리의 양자화 스텝사이즈를 결정된 기준 양자화 스텝사이즈보다 한 단계 큰 값으로 변화시키는 것을 특징으로 하는 방법.The method of claim 3, wherein in step (c3), the quantization step size of the edge of the screen is changed to a value one step larger than the determined reference quantization step size. 제3항에 있어서, 상기 (d) 단계는,The method of claim 3, wherein step (d) (d1) 상기 초기 양자화된 데이터를 매크로블록 단위로 화면의 가장 자리부터 스캔하는 단계; 및(d1) scanning the initial quantized data from the edge of the screen in macroblock units; And (d2) 스캔된 초기 양자화된 데이터를 결정된 기준 양자화 스텝사이즈를 이용하여 양자화하되, 화면의 가장 자리의 양자화 스텝사이즈는 결정된 기준 양자화 스텝사이즈보다 큰 양자화 스텝사이즈를 이용하는 단계를 포함하는 방법.(d2) quantizing the scanned initial quantized data using the determined reference quantization step size, wherein the edge of the screen uses a quantization step size larger than the determined reference quantization step size. 제2항에 있어서, 상기 (c3) 단계에서는 목표 부호량이 상기 기준 양자화 스텝사이즈보다 한 단계 큰 양자화 스텝사이즈를 사용하여 얻어진 제1 부호량과 상기 기준 양자화 스텝사이즈보다 한 단계 작은 양자화 스텝사이즈를 사용하여 얻어진 제3 부호량 사이에 있고, 상기 기준 양자화 스텝사이즈에 의해 얻어진 제2 부호량이 상기 목표 부호량보다 작으면 상기 기준 양자화 스텝사이즈를 실제 양자화 스텝사이즈로 결정하고, 상기 제2 부호량이 목표 부호량에 근접할 때까지 시각적으로 중요한 화면의 중앙 부분부터 양자화 스텝사이즈를 변화시키는 것을 특징으로 하는 방법.3. The method of claim 2, wherein the step (c3) uses a first code amount obtained by using a quantization step size larger than the reference quantization step size and a quantization step size one step smaller than the reference quantization step size. The reference quantization step size is determined as the actual quantization step size if the second code amount obtained by the reference quantization step size is smaller than the target code amount, and the second code amount is the target code. Varying the quantization step size from the center of the visually important screen until it is close to the quantity. 제6항에 있어서, 상기 (c3) 단계에서는 상기 화면의 중앙 부분의 양자화 스텝사이즈를 결정된 기준 양자화 스텝사이즈보다 한 단계 작은 값으로 변화시키는 것을 특징으로 하는 방법.7. The method of claim 6, wherein in step (c3), the quantization step size of the center portion of the screen is changed to a value one step smaller than the determined reference quantization step size. 제6항에 있어서, 상기 (d) 단계는,The method of claim 6, wherein step (d) (d1) 상기 초기 양자화된 데이터를 매크로블록 단위로 화면의 중앙 부분부터 스캔하는 단계; 및(d1) scanning the initial quantized data from the center of the screen in units of macroblocks; And (d2) 스캔된 상기 초기 양자화된 데이터를 결정된 기준 양자화 스텝사이즈를 이용하여 양자화하되, 화면의 중앙 부분의 양자화 스텝사이즈는 결정된 기준 양자화 스텝사이즈보다 작은 양자화 스텝사이즈를 이용하는 단계를 포함하는 방법.(d2) quantizing the scanned initial quantized data using the determined reference quantization step size, wherein the quantization step size of the center portion of the screen uses a quantization step size smaller than the determined reference quantization step size. 제2항에 있어서, 상기 (c3) 단계에서는 목표 부호량이 상기 기준 양자화 스텝사이즈보다 한 단계 큰 양자화 스텝사이즈를 사용하여 얻어진 제1 부호량과 상기 기준 양자화 스텝사이즈보다 한 단계 작은 양자화 스텝사이즈를 사용하여 얻어진 제3 부호량 사이에 있지 않고, 상기 기준 양자화 스텝사이즈에 의해 얻어진 제2 부호량이 상기 목표 부호량보다 크면 상기 기준 양자화 스텝사이즈에 옵셋값이 가산된 실제 양자화 스텝사이즈를 제공하는 것을 특징으로 하는 방법.3. The method of claim 2, wherein the step (c3) uses a first code amount obtained by using a quantization step size larger than the reference quantization step size and a quantization step size one step smaller than the reference quantization step size. If the second code amount obtained by the reference quantization step size is not larger than the target code amount, the offset is added to the reference quantization step size to provide the actual quantization step size. How to. 제9항에 있어서, 상기 옵셋값은 아래 수식에 의해 얻어지는 것을 특징으로 하는 방법.10. The method of claim 9, wherein the offset value is obtained by the following formula. Tgap = B - TB, Pgap = B - BpTgap = B-TB, Pgap = B-Bp if Tgap/2 > Pgap re_mq = i_mqaunt + 8if Tgap / 2> Pgap re_mq = i_mqaunt + 8 else if Tgap/1 > Pgap re_mq = i_mquant + 4else if Tgap / 1> Pgap re_mq = i_mquant + 4 else re_mq = i_mquant + 1else re_mq = i_mquant + 1 where, Bm; Bit amount by mquant-1, B: Bit amount by mquant, Bp: Bit amount by mquant+1, re_mq: real quantization stepsizewhere, Bm; Bit amount by mquant-1, B: Bit amount by mquant, Bp: Bit amount by mquant + 1, re_mq: real quantization stepsize 제2항에 있어서, 상기 (c3) 단계에서는 목표 부호량이 상기 기준 양자화 스텝사이즈보다 한 단계 큰 양자화 스텝사이즈를 사용하여 얻어진 제1 부호량과 상기 기준 양자화 스텝사이즈보다 한 단계 작은 양자화 스텝사이즈를 사용하여 얻어진 제3 부호량 사이에 있지 않고, 상기 기준 양자화 스텝사이즈에 의해 얻어진 제2 부호량이 상기 목표 부호량보다 작으면 상기 기준 양자화 스텝사이즈에 옵셋값을 감산한 실제 양자화 스텝사이즈를 제공하는 것을 특징으로 하는 방법.3. The method of claim 2, wherein the step (c3) uses a first code amount obtained by using a quantization step size larger than the reference quantization step size and a quantization step size one step smaller than the reference quantization step size. If the second code amount obtained by the reference quantization step size is smaller than the target code amount, not between the third code amounts obtained by the reference code amount, an actual quantization step size is obtained by subtracting an offset value from the reference quantization step size. How to. 제11항에 있어서, 상기 옵셋값은 아래 식에 의해 얻어지는 것을 특징으로 하는 방법.The method of claim 11, wherein the offset value is obtained by the following equation. Tgap = TB - B, Mgap = Bm - BTgap = TB-B, Mgap = Bm-B if Tgap/32 > Mgap re_mq = i_mquant - 8if Tgap / 32> Mgap re_mq = i_mquant-8 else if Tgap/16 > Mgap re_mq = i_mquant - 5else if Tgap / 16> Mgap re_mq = i_mquant-5 else if Tgap/8 > Mgap re_mq = i_mquant - 3else if Tgap / 8> Mgap re_mq = i_mquant-3 else if Tgap/4 > Mgap re_mq = i_mquant - 2else if Tgap / 4> Mgap re_mq = i_mquant-2 else re_mq = i_mquant - 1else re_mq = i_mquant-1 where, Bm; Bit amount by mquant-1, B: Bit amount by mquant, Bp: Bit amount by mquant+1, re_mq: real quantization stepsizewhere, Bm; Bit amount by mquant-1, B: Bit amount by mquant, Bp: Bit amount by mquant + 1, re_mq: real quantization stepsize 제1항에 있어서, 상기 입력 영상은 소정수의 매크로블록으로 구성된 슬라이스들로 이루어지고, 상기 (a) 단계에서는 입력 영상중 화면(인트라 픽쳐) 단위로 이산 변환하는 것을 특징으로 하는 방법.The method of claim 1, wherein the input image comprises slices composed of a predetermined number of macroblocks, and in step (a), the input image is discretely converted in units of a screen (intra picture) of the input image. 제1항에 있어서, 상기 실제 양자화 스텝사이즈는 매크로블록 단위 또는 수개의 매크로블록으로 구성된 슬라이스 단위 중 하나인 것을 특징으로 하는 방법.The method of claim 1, wherein the actual quantization step size is one of macroblock units or slice units of several macroblocks. 제1항에 있어서, 상기 목표 부호량은 화면 단위인 것을 특징으로 하는 방법.The method of claim 1, wherein the target code amount is a screen unit. 제1항에 있어서,The method of claim 1, (e) 상기 압축된 데이터를 연속장 및 가변장 부호화하여 가변장 부호화된 데이터를 제공하는 단계; 및(e) continuously and variable length encoding the compressed data to provide variable length encoded data; And (f) 상기 가변장 부호화된 데이터를 부가 헤더를 부가하여 기본스트림을 생성하여 비트스트림으로서 출력하는 단계를 더 포함하는 방법.and (f) generating the elementary stream by adding an additional header and outputting the variable length coded data as a bitstream. 제16항에 있어서,The method of claim 16, (g) 전송되는 비트스트림으로부터 기본스트림을 추출하고, 상기 기본스트림으로부터 부가 헤더를 제거하여 비디오 스트림을 제공하는 단계;(g) extracting an elementary stream from the transmitted bitstream and removing an additional header from the elementary stream to provide a video stream; (h) 상기 비디오 스트림을 가변장 및 연속장 복호화하여 연속장 복호화된 데이터를 제공하는 단계;(h) variable length and continuous length decoding the video stream to provide continuous length decoded data; (i) 상기 연속장 복호화된 데이터를 부호화시 사용한 양자화 스텝사이즈에 의해 역 양자화하여 역 양자화된 데이터를 제공하는 단계; 및(i) inversely quantizing the continuous-length decoded data by the quantization step size used for encoding to provide inverse quantized data; And (j) 상기 역 양자화된 데이터를 역 이산 변환하여 원 영상 데이터로 출력하는 단계를 더 포함하는 방법.(j) inversely discrete-converting the inverse quantized data and outputting the original image data. 입력되는 영상 신호를 압축 부호화 및/또는 복호화하는 장치에 있어서:In the apparatus for compression encoding and / or decoding the input video signal: 입력되는 영상 신호를 이산 변환하여 이산 변환 계수를 제공하는 이산변환 유니트;A discrete conversion unit for performing discrete conversion of the input video signal to provide discrete conversion coefficients; 상기 이산 변환 계수를 초기화 양자화 매트릭스를 이용하여 양자화하여 초기 양자화된 데이터를 제공하는 초기 양자화기;An initial quantizer for quantizing the discrete transform coefficients using an initializing quantization matrix to provide initial quantized data; 상기 초기 양자화된 데이터를 다수의 양자화 스텝사이즈를 이용하여 병렬로 양자화하여 얻어지는 각각의 부호량 중에서 목표 부호량에 가장 근접한 결과를 출력하는 양자화 스텝사이즈를 실제 양자화 스텝사이즈로서 제공하는 부호량 조절기; 및A code amount adjuster for providing a quantization step size for outputting a result closest to a target code amount among respective code amounts obtained by quantizing the initial quantized data in parallel using a plurality of quantization step sizes; And 상기 실제 양자화 스텝사이즈에 의해 초기 양자화된 데이터를 양자화하여 압축된 데이터를 제공하는 실제 양자화기를 포함하는 장치.And a real quantizer for quantizing the initial quantized data by the actual quantization step size to provide compressed data. 제18항에 있어서, 상기 부호량 조절기는19. The apparatus of claim 18, wherein the code amount regulator 상기 초기 양자화된 데이터를 기준 양자화 스텝사이즈, 이보다 한 단계 큰 양자화 스텝사이즈와 한 단계 작은 양자화 스텝사이즈를 이용하여 병렬로 양자화하여 제1 내지 제3 양자화된 데이터를 제공하는 다수의 양자화기;A plurality of quantizers for providing first to third quantized data by quantizing the initial quantized data in parallel using a reference quantization step size, one step larger quantization step size, and one step smaller quantization step size; 상기 제1 내지 제3 양자화된 데이터의 길이를 소정 크기 단위로 카운트하여 제1 내지 제3 부호량을 제공하는 다수의 부호 길이 카운터; 및A plurality of code length counters for counting the lengths of the first to third quantized data in predetermined size units to provide first to third code amounts; And 상기 제1 내지 제3 부호량 중 목표 부호량에 가장 근접한 결과를 출력하는 양자화 스텝사이즈를 실제 양자화 스텝사이즈로서 제공함과 동시에 갱신된 기준 양자화 스텝사이즈로서 상기 다수의 양자화기에 피드백 입력하는 조정기를 포함하는 장치.An adjuster for providing a quantization step size for outputting a result closest to a target code amount among the first to third code amounts as an actual quantization step size and feedback input to the plurality of quantizers as an updated reference quantization step size. Device. 제19항에 있어서, 상기 조정기는 목표 부호량이 상기 기준 양자화 스텝사이즈보다 한 단계 큰 양자화 스텝사이즈를 사용하여 얻어진 제1 부호량과 상기 기준 양자화 스텝사이즈보다 한 단계 작은 양자화 스텝사이즈를 사용하여 얻어진 제3 부호량 사이에 있고, 상기 기준 양자화 스텝사이즈에 의해 얻어진 제2 부호량이 상기 목표 부호량보다 크면 상기 기준 양자화 스텝사이즈를 실제 양자화 스텝사이즈로 결정하고, 제2 부호량이 목표 부호량에 근접할 때까지 시각적으로 덜 중요한 화면의 가장 자리의 양자화 스텝사이즈를 변화시키는 것을 특징으로 하는 장치.20. The apparatus of claim 19, wherein the adjuster comprises: a first code amount obtained by using a quantization step size that is one step larger than the reference quantization step size and a quantization step size that is obtained by using a quantization step size one step smaller than the reference quantization step size. When the second code amount obtained by the reference quantization step size is greater than the target code amount, the reference quantization step size is determined as the actual quantization step size, and when the second code amount approaches the target code amount. Device characterized in that changing the quantization step size of the edge of the screen less visually important. 제20항에 있어서, 상기 조정기는 상기 화면의 가장 자리의 양자화 스텝사이즈를 결정된 기준 양자화 스텝사이즈보다 한 단계 큰 값으로 변화시키는 것을 특징으로 하는 장치.21. The apparatus of claim 20, wherein the adjuster changes the quantization step size of the edge of the screen to a value one step larger than the determined reference quantization step size. 제20항에 있어서, 상기 초기 양자화된 데이터를 화면의 가장 자리부터 스캔하는 스캔 유니트를 더 포함하고, 상기 실제 양자화기는 스캔되는 상기 초기 양자화된 데이터를 결정된 기준 양자화 스텝사이즈를 이용하여 양자화하되, 화면의 가장 자리의 양자화 스텝사이즈는 결정된 기준 양자화 스텝사이즈보다 큰 양자화 스텝사이즈를 이용하는 것을 특징으로 하는 장치.21. The apparatus of claim 20, further comprising a scan unit for scanning the initial quantized data from the edge of the screen, wherein the actual quantizer quantizes the initial quantized data to be scanned using a determined reference quantization step size, wherein the screen And the quantization step size of the edge uses a quantization step size that is larger than the determined reference quantization step size. 제19항에 있어서, 상기 조정기는 목표 부호량이 상기 기준 양자화 스텝사이즈보다 한 단계 큰 양자화 스텝사이즈를 사용하여 얻어진 제1 부호량과 상기 기준 양자화 스텝사이즈보다 한 단계 작은 양자화 스텝사이즈를 사용하여 얻어진 제3 부호량 사이에 있고, 상기 기준 양자화 스텝사이즈에 의해 얻어진 제2 부호량이 상기 목표 부호량보다 작으면 상기 기준 양자화 스텝사이즈를 실제 양자화 스텝사이즈로 결정하고, 상기 제2 부호량이 목표부호량에 근접할 때까지 시각적으로 중요한 화면의 중앙 부분부터 양자화 스텝사이즈를 변화시키는 것을 특징으로 하는 장치.20. The apparatus of claim 19, wherein the adjuster comprises: a first code amount obtained by using a quantization step size that is one step larger than the reference quantization step size and a quantization step size that is obtained by using a quantization step size one step smaller than the reference quantization step size. If the second code amount obtained by the reference quantization step size is smaller than the target code amount, the reference quantization step size is determined as the actual quantization step size, and the second code amount is close to the target code amount. Device that varies the quantization step size from the center of the visually important screen until 제23항에 있어서, 상기 조정기는 상기 화면의 중앙 부분의 양자화 스텝사이즈를 결정된 기준 양자화 스텝사이즈보다 한 단계 큰 값으로 변화시키는 것을 특징으로 하는 장치.24. The apparatus of claim 23, wherein the adjuster changes the quantization step size of the center portion of the screen to a value one step larger than the determined reference quantization step size. 제23항에 있어서, 상기 초기 양자화된 데이터를 화면의 중앙 부분부터 스캔하는 스캔 유니트를 더 포함하고, 상기 실제 양자화기는 스캔되는 상기 초기 양자화된 데이터를 결정된 기준 양자화 스텝사이즈로 양자화하되, 화면의 중앙 부분의 양자화 스텝사이즈는 결정된 기준 양자화 스텝사이즈보다 큰 양자화 스텝사이즈를 이용하는 것을 특징으로 하는 장치.24. The apparatus of claim 23, further comprising a scan unit for scanning the initial quantized data from a central portion of the screen, wherein the actual quantizer quantizes the initial quantized data to be scanned to a determined reference quantization step size, the center of the screen. And the quantization step size of the portion uses a quantization step size that is larger than the determined reference quantization step size. 제19항에 있어서, 상기 조정기는 목표 부호량이 상기 기준 양자화 스텝사이즈보다 한 단계 큰 양자화 스텝사이즈를 사용하여 얻어진 제1 부호량과 상기 기준 양자화 스텝사이즈보다 한 단계 작은 양자화 스텝사이즈를 사용하여 얻어진 제3 부호량 사이에 있지 않고, 상기 기준 양자화 스텝사이즈에 의해 얻어진 제2 부호량이 상기 목표 부호량보다 크면 상기 기준 양자화 스텝사이즈에 옵셋값이 가산된 실제 양자화 스텝사이즈를 제공하는 것을 특징으로 하는 장치.20. The apparatus of claim 19, wherein the adjuster comprises: a first code amount obtained by using a quantization step size that is one step larger than the reference quantization step size and a quantization step size that is obtained by using a quantization step size one step smaller than the reference quantization step size. And an actual quantization step size in which an offset value is added to the reference quantization step size if the second code amount obtained by the reference quantization step size is not greater than three code quantities, and is larger than the target code amount. 제26항에 있어서, 상기 옵셋값은 아래 수식에 의해 얻어지는 것을 특징으로 하는 장치.27. The apparatus of claim 26, wherein the offset value is obtained by the formula below. Tgap = B - TB, Pgap = B - BpTgap = B-TB, Pgap = B-Bp if Tgap/2 > Pgap re_mq = i_mqaunt + 8if Tgap / 2> Pgap re_mq = i_mqaunt + 8 else if Tgap/1 > Pgap re_mq = i_mquant + 4else if Tgap / 1> Pgap re_mq = i_mquant + 4 else re_mq = i_mquant + 1else re_mq = i_mquant + 1 where, Bm; Bit amount by mquant-1, B: Bit amount by mquant, Bp: Bit amount by mquant+1, re_mq: real quantization stepsizewhere, Bm; Bit amount by mquant-1, B: Bit amount by mquant, Bp: Bit amount by mquant + 1, re_mq: real quantization stepsize 제19항에 있어서, 상기 조정기는 목표 부호량이 상기 기준 양자화 스텝사이즈보다 한 단계 큰 양자화 스텝사이즈를 사용하여 얻어진 제1 부호량과 상기 기준 양자화 스텝사이즈보다 한 단계 작은 양자화 스텝사이즈를 사용하여 얻어진 제3 부호량 사이에 있지 않고, 상기 기준 양자화 스텝사이즈에 의해 얻어진 제2 부호량이 상기 목표 부호량보다 작으면 상기 기준 양자화 스텝사이즈에 옵셋값을 감산한 실제 양자화 스텝사이즈를 제공하는 것을 특징으로 하는 장치.20. The apparatus of claim 19, wherein the adjuster comprises: a first code amount obtained by using a quantization step size that is one step larger than the reference quantization step size and a quantization step size that is obtained by using a quantization step size one step smaller than the reference quantization step size. An apparatus for providing an actual quantization step size obtained by subtracting an offset value from the reference quantization step size if the second code amount obtained by the reference quantization step size is smaller than the target code amount, not between three code quantities. . 제28항에 있어서, 상기 옵셋값은 아래 식에 의해 얻어지는 것을 특징으로 하는 장치.29. The apparatus of claim 28, wherein the offset value is obtained by the following equation. Tgap = TB - B, Mgap = Bm - BTgap = TB-B, Mgap = Bm-B if Tgap/32 > Mgap re_mq = i_mquant - 8if Tgap / 32> Mgap re_mq = i_mquant-8 else if Tgap/16 > Mgap re_mq = i_mquant - 5else if Tgap / 16> Mgap re_mq = i_mquant-5 else if Tgap/8 > Mgap re_mq = i_mquant - 3else if Tgap / 8> Mgap re_mq = i_mquant-3 else if Tgap/4 > Mgap re_mq = i_mquant - 2else if Tgap / 4> Mgap re_mq = i_mquant-2 else re_mq = i_mquant - 1else re_mq = i_mquant-1 where, Bm; Bit amount by mquant-1, B: Bit amount by mquant, Bp: Bit amount by mquant+1, re_mq: real quantization stepsizewhere, Bm; Bit amount by mquant-1, B: Bit amount by mquant, Bp: Bit amount by mquant + 1, re_mq: real quantization stepsize 제18항에 있어서, 상기 입력 영상은 소정수의 매크로블록으로 구성된 슬라이스들로 이루어지고, 상기 이산 변환 유니트는 입력 영상중 화면(인트라 픽쳐) 단위로 이산 변환하는 것을 특징으로 하는 장치.19. The apparatus of claim 18, wherein the input image is composed of slices composed of a predetermined number of macroblocks, and the discrete conversion unit performs discrete conversion on a screen (intra picture) unit of the input image. 제18항에 있어서, 상기 실제 양자화 스텝사이즈는 매크로블록 단위 또는 수개의 매크로블록으로 구성된 슬라이스 단위 중 하나인 것을 특징으로 하는 장치.19. The apparatus of claim 18, wherein the actual quantization step size is one of macroblock units or slice units composed of several macroblocks. 제18항에 있어서, 상기 목표 부호량은 화면 단위인 것을 특징으로 하는 장치.19. The apparatus of claim 18, wherein the target code amount is a screen unit. 제18항에 있어서,The method of claim 18, 상기 부호량 조절기에서 실제 양자화 스텝사이즈를 결정하는 동안 상기 초기 양자화된 데이터를 일시 저장해서 상기 실제 양자화기에 제공하는 프레임 버퍼;A frame buffer which temporarily stores the initial quantized data and provides the actual quantizer while the code amount controller determines the actual quantization step size; 상기 압축된 데이터를 연속장 및 가변장 부호화하여 가변장 부호화된 데이터를 제공하는 연속장 및 가변장 부호화기; 및A continuous-length and variable-length encoder that provides variable-length encoded data by performing continuous-length and variable-length encoding on the compressed data; And 상기 가변장 부호화된 데이터를 부가 헤더를 부가하여 기본스트림을 생성하여 비트스트림으로서 출력하는 기본스트림 부호화기를 더 포함하는 장치.And a basestream encoder for generating the basestream by adding an additional header to the variable length coded data and outputting the basestream as a bitstream. 제33항에 있어서,The method of claim 33, wherein 전송되는 비트스트림으로부터 기본스트림을 추출하고, 상기 기본스트림으로부터 부가 헤더를 제거하여 비디오 스트림을 제공하는 기본스트림 복호화기;An elementary stream decoder for extracting an elementary stream from the transmitted bitstream and removing an additional header from the elementary stream to provide a video stream; 상기 비디오 스트림을 가변장 및 연속장 복호화하여 연속장 복호화된 데이터를 제공하는 가변장 및 연속장 복호화기;A variable-length and continuous-length decoder configured to provide continuous-length decoded data by variable-length and continuous-length decoding the video stream; 상기 연속장 복호화된 데이터를 부호화시 사용한 양자화 스텝사이즈에 의해 역 양자화하여 역 양자화된 데이터를 제공하는 역 양자화기; 및An inverse quantizer for inversely quantizing the continuous-length decoded data by a quantization step size used for encoding to provide inverse quantized data; And 상기 역 양자화된 데이터를 역 이산 변환하여 원 영상 데이터로 출력하는 역 이산 변환 유니트를 더 포함하는 장치.And an inverse discrete conversion unit for inverse discrete conversion of the inverse quantized data and outputting the original image data.
KR1019980061602A 1998-12-30 1998-12-30 Compression coder and / or decoder of video signal and method thereof KR100335435B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980061602A KR100335435B1 (en) 1998-12-30 1998-12-30 Compression coder and / or decoder of video signal and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980061602A KR100335435B1 (en) 1998-12-30 1998-12-30 Compression coder and / or decoder of video signal and method thereof

Publications (2)

Publication Number Publication Date
KR20000045076A true KR20000045076A (en) 2000-07-15
KR100335435B1 KR100335435B1 (en) 2002-06-20

Family

ID=19568331

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980061602A KR100335435B1 (en) 1998-12-30 1998-12-30 Compression coder and / or decoder of video signal and method thereof

Country Status (1)

Country Link
KR (1) KR100335435B1 (en)

Also Published As

Publication number Publication date
KR100335435B1 (en) 2002-06-20

Similar Documents

Publication Publication Date Title
US6862402B2 (en) Digital recording and playback apparatus having MPEG CODEC and method therefor
US7170938B1 (en) Rate control method for video transcoding
US6441754B1 (en) Apparatus and methods for transcoder-based adaptive quantization
KR100253931B1 (en) Approximate mpeg decoder with compressed reference frames
KR100599017B1 (en) Image data compression device and method
US7787541B2 (en) Dynamic pre-filter control with subjective noise detector for video compression
US6956899B2 (en) Precise bit control apparatus with look-ahead for MPEG encoding
US6961377B2 (en) Transcoder system for compressed digital video bitstreams
KR100386583B1 (en) Apparatus and method for transcoding video
US6963609B2 (en) Image data compression
US7079578B2 (en) Partial bitstream transcoder system for compressed digital video bitstreams
US6160847A (en) Detection mechanism for video channel underflow in MPEG-2 video decoding
US7869500B2 (en) Video encoder and method for detecting and encoding noise
KR100364748B1 (en) Apparatus for transcoding video
US20080253447A1 (en) Video Transcoding with Selection of Data Portions to be Processed
US8798135B2 (en) Video stream modifier
KR100394014B1 (en) Apparatus for transcoding video
KR100335435B1 (en) Compression coder and / or decoder of video signal and method thereof
KR100338725B1 (en) Pictures coding method approximating coding bits to target coding bits and apparatus therefor
EP0927954B1 (en) Image signal compression coding method and apparatus
JPH1066092A (en) Video data compressor and its method
KR20060024609A (en) Apparatus and method for encoding of real-time moving image
JPH10174101A (en) Image compression coding and decoding device and image compression coding and decoding method
JPH0767113A (en) Inter-frame band compressing signal switching circuit

Legal Events

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

Payment date: 20120329

Year of fee payment: 11

FPAY Annual fee payment

Payment date: 20130328

Year of fee payment: 12

FPAY Annual fee payment

Payment date: 20160330

Year of fee payment: 15

LAPS Lapse due to unpaid annual fee