KR100507441B1 - Method for encoding video signals for reducing bitrate using feature of vlc inputs and video encoder for executing the method - Google Patents

Method for encoding video signals for reducing bitrate using feature of vlc inputs and video encoder for executing the method Download PDF

Info

Publication number
KR100507441B1
KR100507441B1 KR1020040109769A KR20040109769A KR100507441B1 KR 100507441 B1 KR100507441 B1 KR 100507441B1 KR 1020040109769 A KR1020040109769 A KR 1020040109769A KR 20040109769 A KR20040109769 A KR 20040109769A KR 100507441 B1 KR100507441 B1 KR 100507441B1
Authority
KR
South Korea
Prior art keywords
input
inputs
valid
vlc
macroblock
Prior art date
Application number
KR1020040109769A
Other languages
Korean (ko)
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 KR1020040109769A priority Critical patent/KR100507441B1/en
Application granted granted Critical
Publication of KR100507441B1 publication Critical patent/KR100507441B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
    • HELECTRICITY
    • 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/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/625Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]

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

본 발명은 영상 신호 압축 방법 및 상기 방법을 수행하는 비디오 인코더에 대한 것이다. 보다 구체적으로, 본 발명은 소정의 매크로블록이 시간적 또는 공간적으로 변화가 적고, 그 변화량 역시 크지 않은 경우에는 상기 매크로블록의 VLC 입력에는 유효한 입력이 상대적으로 작기 때문에 소정의 기준에 따라 상기 VLC 입력에는 유효한 영상 신호가 포함되어 있지 않다고 간주하여 인코딩함으로써 상기 비디오 인코더에서 출력되는 비트스트림의 비트레이트를 대폭 감소시킬 수 있는 영상 신호 압축 방법 및 상기 방법을 수행하는 비디오 인코더에 대한 것이다.The present invention relates to a video signal compression method and a video encoder performing the method. More specifically, according to the present invention, when a predetermined macroblock changes little in time or space, and the change amount is not large, an effective input is relatively small for the VLC input of the macroblock. The present invention relates to a video signal compression method and a video encoder performing the method, which can considerably reduce a bit rate of a bitstream output from the video encoder by encoding assuming that no valid video signal is included.

본 발명에 따른 비디오 인코더는, 영상 신호를 매크로블록 별로 변환 및 양자화하여 양자화 변환 계수를 출력하는 변환/양자화부, 상기 매크로블록에 대응하는 상기 양자화 변환 계수로부터 생성된 VLC 입력 중에서 유효 입력의 개수를 산출하는 유효 입력 개수 산출부, (1) 상기 산출된 유효 입력의 개수가 소정의 제1 문턱값 미만이고, (2) 상기 매크로블록에 대응하는 유효 입력의 축적값이 소정의 제2 문턱값 미만인 경우, 상기 매크로블록에 대한 양자화 변환 계수를 모두 0으로 설정하도록 제어하는 입력 처리 제어부, 및 상기 VLC 입력을 가변 부호화하여 출력하는 가변장 부호화부를 포함한다. The video encoder according to the present invention includes a transform / quantizer for outputting quantization transform coefficients by transforming and quantizing a video signal for each macroblock, and calculating the number of valid inputs among VLC inputs generated from the quantization transform coefficients corresponding to the macroblocks. A valid input number calculating unit for calculating, (1) the calculated number of valid inputs is less than a first predetermined threshold value, and (2) an accumulated value of valid inputs corresponding to the macroblock is less than a second predetermined threshold value. In this case, an input processing control unit for controlling to set all of the quantization transform coefficients for the macroblock to 0, and a variable length coding unit for variable encoding the VLC input and outputting the same.

Description

가변장 부호의 입력 특성을 이용한 영상 신호 압축 방법 및 상기 방법을 수행하는 비디오 인코더{Method For Encoding Video Signals For Reducing Bitrate Using Feature Of VLC Inputs And Video Encoder For Executing The Method}Method for Encoding Video Signals Using Reducing Bitrate Using Feature Of VLC Inputs And Video Encoder For Executing The Method

본 발명은 영상 신호 압축 방법 및 상기 방법을 수행하는 비디오 인코더에 대한 것이다. 보다 구체적으로, 본 발명은 소정의 매크로블록이 시간적 또는 공간적으로 변화가 적고, 그 변화량 역시 크지 않은 경우에는 상기 매크로블록의 VLC 입력에는 유효한 입력이 상대적으로 작기 때문에 소정의 기준에 따라 상기 VLC 입력에는 유효한 영상 신호가 포함되어 있지 않다고 간주하여 인코딩함으로써 상기 비디오 인코더에서 출력되는 비트스트림의 비트레이트를 대폭 감소시킬 수 있는 영상 신호 압축 방법 및 상기 방법을 수행하는 비디오 인코더에 대한 것이다.The present invention relates to a video signal compression method and a video encoder performing the method. More specifically, according to the present invention, when a predetermined macroblock changes little in time or space, and the change amount is not large, an effective input is relatively small for the VLC input of the macroblock. The present invention relates to a video signal compression method and a video encoder performing the method, which can considerably reduce a bit rate of a bitstream output from the video encoder by encoding assuming that no valid video signal is included.

널리 알려진 동영상 표준 규격에 따르는 비디오 인코더는 가변장 부호화를 이용하여 부호를 할당하는 것이 일반적이다. 가변장 부호화란, 출현 확률이 높은 값이 길이가 짧은 부호를 할당하고, 출현 확률이 낮은 값에 길이가 긴 부호를 할당하는 방식을 의미하며, 예를 들면 호프만 부호화(Huffman Coding), 산술 부호화(Arithmetic Coding) 등의 부호화 방식이 동영상 표준 규격 별로 각각 채택되고 있다. 본 명세서에서는 비디오 인코더의 가변장 부호화부로 입력되는 영상 신호를 모두 "VLC 입력"이라는 용어로 통칭한다.Video encoders conforming to the well-known moving picture standard are generally assigned codes using variable length coding. Variable-length coding refers to a method in which a value with a high probability of occurrence assigns a short code and a long code is assigned to a value with a low occurrence probability. For example, Huffman coding or arithmetic coding ( Arithmetic Coding) is adopted for each video standard. In the present specification, all video signals input to the variable length encoder of the video encoder are collectively referred to as "VLC input".

비디오 인코더는 소정의 영상 신호를 매크로블록 별로 변환 및 양자화하여 양자화 변환 계수를 산출하고, 상기 양자화 변환 계수를 가변장 부호화부에서 가변장 부호화한다. 또한, 동영상 압축 표준에 따라 상기 가변장 부호화부로 입력되는 영상 신호는 상기 양자화 변환 계수, 또는 상기 양자화 변환 계수를 가공한 영상 신호이다.The video encoder calculates quantization transform coefficients by transforming and quantizing a predetermined video signal for each macroblock, and variable length encodes the quantization transform coefficients in a variable length encoder. The video signal input to the variable length encoder according to a video compression standard is a video signal obtained by processing the quantization transform coefficient or the quantization transform coefficient.

예를 들면, 상기 가변장 부호화부에 입력되는 VLC 입력은, 상기 양자화 변환 계수를 소정의 스캔 모듈에 의해 처리한 신호일 수 있다. 또한, 상기 가변장 부호화부에 입력되는 VLC 입력은, 상기 양자화 변환 계수를 소정의 AC/DC 예측 모듈에 의해 처리한 신호일 수도 있다. 또는, 상기 가변장 부호화부에 입력되는 VLC 입력은, 상기 스캔 모듈 및 상기 AC/DC 예측 모듈에 의해 각각 처리된 신호일 수도 있다.For example, the VLC input input to the variable length encoder may be a signal obtained by processing the quantization transform coefficient by a predetermined scan module. The VLC input input to the variable length encoder may be a signal obtained by processing the quantization transform coefficient by a predetermined AC / DC prediction module. Alternatively, the VLC input input to the variable length encoder may be a signal processed by the scan module and the AC / DC prediction module, respectively.

스캔 모듈은 양자화 변환 계수의 유효 입력을 상기 매크로블록에서의 앞쪽으로 집중시키는 역할을 담당한다. 또한, AC/DC 예측 모듈은 Intra 블록에서 양자화된 DC 성분과, AC 성분에 대해 적응적인 예측 부호화를 수행하여, Intra 블록의 부호화 효율을 개선하는 역할을 담당한다.The scan module is responsible for concentrating the effective input of the quantization transform coefficients forward in the macroblock. In addition, the AC / DC prediction module performs adaptive prediction encoding on the quantized DC component and the AC component in the Intra block, and plays a role of improving the coding efficiency of the Intra block.

한편, 상기 비디오 인코더는 상기 매크로블록에 대한 VLC 입력 중 유효 입력을 부호화할 뿐만 아니라, 부호화 블록 패턴(CBP; Coded Block Pattern)을 더 부호화하여 출력한다. 상기 부호화 블록 패턴은 상기 매크로블록에 대한 VLC 입력 중 유효한 입력이 있었는지 여부를 나타낸다.The video encoder not only encodes a valid input among VLC inputs for the macroblock, but also encodes and outputs a coded block pattern (CBP). The coding block pattern indicates whether there is a valid input among VLC inputs for the macroblock.

그런데, 상기 매크로블록의 VLC 입력에 유효 입력이 없는 경우, 즉 모든 VLC 입력이 0인 경우, 상기 비디오 인코더는 상기 매크로블록의 VLC 입력은 부호화할 필요가 없다. 즉, 부호를 전혀 할당하지 않고, "이번 매크로블록에 대한 VLC 입력에는 유효 입력이 없음"을 의미하는 부호화 블록 패턴만을 부호화하여 출력한다. If the VLC input of the macroblock does not have a valid input, that is, all VLC inputs are zero, the video encoder does not need to encode the VLC input of the macroblock. That is, no code is assigned at all, and only the coded block pattern that means "there is no valid input for the VLC input for this macroblock" is output after coding.

일반적으로, 매크로블록의 VLC 입력 중 유효 입력을 부호화하는 과정에서 할당되는 부호가 많다는 점, 부호화 블록 패턴은 보통 2~6 bit 정도의 부호만을 할당하여 부호화가 가능하다는 점을 고려하면, VLC 입력에 유효 입력이 없는 경우에는 가변장 부호화기에서 출력되는 비트스트림의 비트레이트가 대폭 감소된다는 것을 알 수 있다.In general, considering that many codes are allocated in the process of encoding a valid input among the VLC inputs of a macroblock, and that a coding block pattern can be encoded by only assigning a code of about 2 to 6 bits, If there is no valid input, it can be seen that the bitrate of the bitstream output from the variable length encoder is greatly reduced.

한편, CCTV 등의 카메라를 이용하여 은행, 정부 기관 등에서 일정 지역을 감시하고자 하는 경우에는 DVR(Digital Video Recorder)을 포함하는 감시 시스템을 사용하는 경우가 많다. 감시 시스템에서는, 상기 카메라에서 촬영된 영상을 내부 또는 외부 네트워크를 통하여 연결된 DVR로 전송하여 상기 DVR에 저장할 수 있다. 또한, 실시간 감시를 위하여 상기 DVR을 경비실 등에 설치하고, 상기 DVR과 연결된 모니터, 또는 상기 DVR 자체에 설치된 모니터에 상기 촬영된 영상을 실시간으로 디스플레이 하는 경우가 많다.On the other hand, when a bank, a government agency, etc. wants to monitor a certain area by using a camera such as CCTV, a surveillance system including a DVR (Digital Video Recorder) is often used. In the surveillance system, an image captured by the camera may be transmitted to a DVR connected through an internal or external network and stored in the DVR. In addition, in order to monitor in real time, the DVR is installed in a security room or the like, and in many cases, the captured image is displayed in real time on a monitor connected to the DVR or a monitor installed in the DVR itself.

그런데, CCTV, DVR 등을 포함하는 경비 시스템을 이용하는 사용자들 중에서는 촬영된 영상의 품질을 고화질로 유지하는 것보다는 약간의 화질 저하가 있다 하더라도 비트레이트를 대폭 감소시킴으로써, DVR, CCTV, 내부 또는 외부 네트워크 등의 경비 시스템 부하를 최소화하고, 경비 시스템 구입/유지 비용을 최소화하면서도 영상을 실시간으로 촬영, 전송 및 디스플레이 하는 것에 더 관심이 많은 경우가 있다.However, among users of security system including CCTV, DVR, etc., even though there is a slight deterioration in image quality rather than maintaining the quality of the recorded image, the bit rate is greatly reduced, so that DVR, CCTV, internal or external There is a greater interest in capturing, transmitting and displaying images in real time while minimizing the cost of security systems such as networks and minimizing the cost of purchasing and maintaining security systems.

이와 같이, 고화질 영상 신호를 획득하는 것보다는 데이터 처리 속도를 증가시키고 데이터 처리량을 감소시킬 수 있는 영상 처리 방법에 대한 요구가 높다. As such, there is a high demand for an image processing method capable of increasing data processing speed and decreasing data throughput rather than acquiring a high quality image signal.

본 발명은 상기와 같은 종래 기술을 개선하기 위해 안출된 것으로서, 소정의 매크로블록에 대해 산출된 VLC 입력의 유효 입력의 개수가 소정값(제1 문턱값) 미만인 경우에는 상기 유효 입력을 모두 0으로 처리하여, 비디오 인코더에서 출력되는 비트스트림의 비트레이트를 감소시킬 수 있는 영상 신호 압축 방법 및 상기 방법을 수행하는 비디오 인코더를 제공하는 것을 목적으로 한다.The present invention has been made to improve the prior art as described above. When the number of valid inputs of a VLC input calculated for a predetermined macroblock is less than a predetermined value (first threshold), all of the valid inputs are zero. It is an object of the present invention to provide a video signal compression method capable of processing a bit rate of a bitstream output from a video encoder, and a video encoder performing the method.

또한, 본 발명은 소정의 매크로블록에 대해 산출된 VLC 입력의 유효 입력의 축적값이 소정값(제2 문턱값) 미만인 경우에는 상기 유효 입력을 모두 0으로 처리하여, 비디오 인코더에서 출력되는 비트스트림의 비트레이트를 감소시킬 수 있는 영상 신호 압축 방법 및 상기 방법을 수행하는 비디오 인코더를 제공하는 것을 목적으로 한다.In addition, the present invention treats all of the valid inputs as 0 when the accumulated value of the valid inputs of the VLC inputs calculated for a predetermined macroblock is less than a predetermined value (second threshold value), and outputs the bitstream output from the video encoder. An object of the present invention is to provide a video signal compression method capable of reducing the bit rate of a video encoder and a video encoder performing the method.

또한, 본 발명은 상기 제1 문턱값 또는 상기 제2 문턱값을 매크로블록 별로 적응적으로 선정하는 영상 신호 압축 방법 및 상기 방법을 수행하는 비디오 인코더를 제공하는 것을 목적으로 한다.Another object of the present invention is to provide a video signal compression method for adaptively selecting the first threshold value or the second threshold value for each macroblock and a video encoder performing the method.

또한, 본 발명은 비디오 인코더에서 출력되는 비트스트림의 비트레이트를 감소시킴으로써, 비디오 인코더, 네트워크, 비디오 디코더 등에서의 부하를 감소시키고 영상 신호 처리 시간을 감소시킬 수 있는 영상 신호 압축 방법 및 상기 방법을 수행하는 비디오 인코더를 제공하는 것을 목적으로 한다.In addition, the present invention is to reduce the bit rate of the bit stream output from the video encoder, to reduce the load on the video encoder, network, video decoder, etc. and to reduce the video signal processing time and video signal compression method and performing the method It is an object of the present invention to provide a video encoder.

또한, 본 발명은 유효한 영상 신호가 적은 VLC 입력은 모두 0으로 간주함으로써 랜덤 노이즈(Random Noise)를 효과적으로 제거할 수 있는 비디오 인코더를 제공하는 것을 목적으로 한다. Another object of the present invention is to provide a video encoder capable of effectively removing random noise by considering all VLC inputs having a small number of valid video signals as zero.

상기의 목적을 달성하고, 상술한 종래 기술의 문제점을 해결하기 위하여, 본 발명에 따른 비디오 인코더는, 영상 신호를 매크로블록 별로 변환 및 양자화하여 양자화 변환 계수를 출력하는 변환/양자화부, 상기 매크로블록에 대응하는 상기 양자화 변환 계수로부터 생성된 VLC 입력 중에서 유효 입력의 개수를 산출하는 유효 입력 개수 산출부, (1) 상기 산출된 유효 입력의 개수가 소정의 제1 문턱값 미만이고, (2) 상기 매크로블록에 대응하는 유효 입력의 축적값이 소정의 제2 문턱값 미만인 경우, 상기 매크로블록에 대한 양자화 변환 계수를 모두 0으로 설정하도록 제어하는 입력 처리 제어부, 및 상기 VLC 입력을 가변 부호화하여 출력하는 가변장 부호화부를 포함한다.In order to achieve the above object and to solve the above-mentioned problems of the prior art, the video encoder according to the present invention, the conversion / quantization unit for outputting the quantized transform coefficients by transforming and quantizing the video signal for each macroblock, the macroblock A valid input number calculator for calculating the number of valid inputs among the VLC inputs generated from the quantization transform coefficients corresponding to (1) the number of valid inputs calculated is less than a first predetermined threshold, and (2) the An input processing control unit for controlling to set all of the quantization transform coefficients for the macroblock to 0 when the accumulated value of the effective input corresponding to the macroblock is less than the second predetermined threshold value, and variably encoding and outputting the VLC input. It includes a variable length encoder.

또한, 본 발명의 일측에 따르면, 상기 입력 처리 제어부는, 상기 산출된 유효 입력의 개수가 상기 제1 문턱값 이상인 경우, 또는 상기 축적값이 상기 제2 문턱값 이상인 경우, 상기 매크로블록에 대한 양자화 변환 계수가 그 값의 변화 없이 상기 가변장 부호화부로 입력되도록 제어하는 것을 특징으로 한다.Further, according to one aspect of the present invention, the input processing control unit, if the calculated number of valid input is greater than or equal to the first threshold value, or if the accumulated value is greater than or equal to the second threshold value, the quantization of the macroblock It is characterized in that the control coefficient is controlled to be input to the variable length encoder without changing its value.

또한, 본 발명의 또 다른 일측에 따르면, 상기 제2 문턱값은, 상기 매크로블록에 대응하는 유효 입력의 제곱합의 평균, 또는 절대값합의 평균으로, 매크로블록 별로 결정될 수 있다.According to another aspect of the present invention, the second threshold value may be determined for each macroblock as an average of sums of squares of valid inputs corresponding to the macroblocks or an average of sums of absolute values.

이하, 본 명세서에서 사용되는 용어를 정리한 후, 첨부된 도면을 참조하여 본 발명을 상세히 설명하기로 한다.Hereinafter, after summarizing terms used in the present specification, the present invention will be described in detail with reference to the accompanying drawings.

용어의 정리Terminology

1. 매크로블록(macroblock or submacroblock)Macroblock or submacroblock

일반적으로 매크로블록은 16×16, 16×8, 8×16, 또는 8×8의 블록 모드를 갖는 블록을 매크로블록이라고 하고, 8×8, 8×4, 4×8, 또는 4×4의 블록 모드를 갖는 블록을 하위 매크로블록(sub macroblock)이라고 칭하나, 본 명세서에서는 블록 모드에 관계없이 영상 신호를 인코딩하는 단위로 사용된 블록은 모두 매크로블록이라고 칭한다.In general, a macroblock is a block having a block mode of 16 × 16, 16 × 8, 8 × 16, or 8 × 8, and is called a macroblock, and 8 × 8, 8 × 4, 4 × 8, or 4 × 4 A block having a block mode is called a sub macroblock, but in this specification, all blocks used as a unit for encoding a video signal regardless of the block mode are called macroblocks.

2. 화면내 예측(intra prediction)2. Intra prediction

화면내 예측은 인접 화소간의 상관관계를 이용한 압축 방법에 포함되며, 비디오 인코더로 입력된 영상 신호를 각 픽처의 매크로블록 별로 변환 및 양자화(Quantization)를 수행하여 양자화 변환 계수(Quantized Transformed Coefficients)를 산출하는 과정을 포함한다. 상기 변환은 이차원 이산여현변환(DCT; Discrete Cosine Transform), 정수 변환(Integer Transform) 등을 포함한다. Intra-picture prediction is included in a compression method using correlation between adjacent pixels, and a quantized transform coefficient is calculated by transforming and quantizing an image signal input to a video encoder for each macroblock of each picture. It includes the process of doing. The transform includes a two-dimensional Discrete Cosine Transform (DCT), an Integer Transform, and the like.

3. 화면간 예측(inter prediction)3. Inter prediction

화면간 예측은 매크로블록에 지정된 참조 픽처를 이용하여 움직임 벡터(motion vector)를 산출하는 움직임 추정(motion estimation), 및 상기 움직임 벡터를 이용하여 예측 픽처(prediction picture)를 생성하는 움직임 보상(motion compensation)을 수행하는 것을 포함한다. Inter prediction is motion estimation using a motion picture calculated using a reference picture assigned to a macroblock and motion compensation using a motion vector to generate a prediction picture. )).

4. 가변장 부호화(Variable Length Coding)4. Variable Length Coding

화면내 예측 결과 산출된 양자화 변환 계수 또는 화면간 예측 결과 산출된 움직임 벡터 등의 정보에 대해, 출현 확률이 높은 값에 길이가 짧은 부호를 할당하고 출현 확률이 낮은 값에 길이가 긴 부호를 할당하도록 하는 부호화 방식이다. For information such as a quantization transform coefficient calculated as a result of intra prediction or a motion vector calculated as a result of inter prediction, a short code is assigned to a value having a high probability of occurrence and a long code is assigned to a value having a low probability of occurrence. It is a coding method.

이때, 비디오 인코더에서 출력되는 비트스트림을 디코딩하는 비디오 디코더는 상기 비디오 인코더와 동일한 부호 체계를 사용해야만 한다. 예를 들면, MPEG 4는 화면내 예측 블록 또는 화면간 예측 블록 각각에 대해 한 개씩의 가변장 부호 테이블(VLC Table)을 마련하고 있다.In this case, the video decoder which decodes the bitstream output from the video encoder should use the same coding scheme as the video encoder. For example, MPEG 4 provides one variable length code table (VLC Table) for each intra picture prediction block or inter picture prediction block.

5. VLC 입력5. VLC input

본 명세서에서는 가변장 부호화를 수행하는 가변장 부호화기로 입력되는 영상 신호로서, 양자화 변환 계수로부터 생성된 영상 신호를 "VLC 입력"이라고 칭하며, 본 발명에 따른 비디오 인코더에서 VLC 입력은 매크로블록 별로 처리된다. 한편, VLC 입력은 소정의 매크로블록에 대한 양자화 변환 계수일 수도 있고, 상기 양자화 변환 계수를 스캔 또는 AC/DC 예측 처리하여 출력한 신호일 수도 있다.In the present specification, an image signal input to a variable length encoder that performs variable length encoding, and a video signal generated from quantization transform coefficients is referred to as a "VLC input", and the VLC input is processed for each macroblock in the video encoder according to the present invention. . The VLC input may be a quantization transform coefficient for a predetermined macroblock or a signal output by scanning or AC / DC prediction processing the quantization transform coefficient.

또한, 본 명세서에서는 "양자화 변환 계수로부터 VLC 입력을 생성한다"는 표현은, "양자화 변환 계수를 그대로 VLC 입력으로 사용하는 경우를 포함하는 개념으로 사용되었다. In addition, in this specification, the expression "generating a VLC input from a quantization transformation coefficient" was used by the concept including the case where the quantization transformation coefficient is used as a VLC input as it is.

본 발명에 따른 영상 신호 압축 방법은 H.261, H.262, H.263, H.264, MPEG 1, MPEG 2, MPEG 4, 또는 JPEG 등의 동영상 표준 규격을 사용하는 비디오 인코더에서 수행될 수 있다. 도 1a는 본 발명을 수행할 수 있는 비디오 인코더(100)의 일례를 도시한 도면이고, 도 1b는 비디오 인코더(100)의 유효 입력 제어부(109)의 일례를 도시한 도면이다.도 1a에 도시한 바와 같이, 비디오 인코더(100)는 영상 신호 입력부(101), 영상 메모리(102), 움직임 추정부(103), 움직임 보상 예측부(104), 화면내 변환 예측부(105), 변환/양자화부(106), 역변환부(107), 필터(108), 유효 입력 제어부(109), 및 가변장 부호화부(110)를 포함한다. 또한, 도 1b에 도시한 바와 같이, 유효 입력 제어부(109)는 유효 입력 개수 산출부(109a), 메모리 제어부(109b), 및 유효 입력 결정부(109c)를 포함한다.The video signal compression method according to the present invention can be performed in a video encoder using a video standard such as H.261, H.262, H.263, H.264, MPEG 1, MPEG 2, MPEG 4, or JPEG. have. FIG. 1A illustrates an example of a video encoder 100 capable of carrying out the present invention, and FIG. 1B illustrates an example of an effective input control unit 109 of the video encoder 100. As described above, the video encoder 100 includes an image signal input unit 101, an image memory 102, a motion estimator 103, a motion compensation predictor 104, an intra-picture transform predictor 105, and transform / quantization. A unit 106, an inverse transform unit 107, a filter 108, an effective input control unit 109, and a variable length encoding unit 110 are included. 1B, the valid input control unit 109 includes a valid input number calculating unit 109a, a memory control unit 109b, and a valid input determining unit 109c.

삭제delete

본 발명은 변환/양자화부(106)로부터 출력되는 양자화 변환 계수로부터 생성되고, 가변장 부호화부(110)로 입력되는 VLC 입력을 제어하는 과정에 특징이 있으므로, 변환/양자화부(106), 유효 입력 제어부(109) 및 가변장 부호화부(110)에서의 동작에 대해 구체적으로 설명하며, 그 외의 영상 신호 입력부(101) 등의 모듈에 대한 구체적인 설명은 생략한다. 영상 신호 입력부(101) 등의 각 모듈의 동작은 동영상 표준 규격 별로 잘 알려져 있으므로, 이에 대한 설명을 생략해도 당업자라면 본 발명에 따른 비디오 인코더, 또는 본 발명에 따라 상기 비디오 인코더에서 수행되는 영상 신호 압축 방법을 용이하게 구현 가능하다.Since the present invention is characterized in the process of controlling the VLC input generated from the quantized transform coefficients output from the transform / quantization unit 106 and input to the variable length encoder 110, the transform / quantization unit 106 is effective. The operation of the input control unit 109 and the variable length encoding unit 110 will be described in detail, and detailed description of other modules such as the video signal input unit 101 will be omitted. Since the operation of each module such as the video signal input unit 101 is well known for each video standard standard, a person skilled in the art can omit the video signal according to the present invention or the video signal compression performed by the video encoder according to the present invention even if the description thereof is omitted. The method can be easily implemented.

도 2는 비디오 인코더(100)에서 수행되는 영상 신호 압축 방법을 도시한 흐름도이다.2 is a flowchart illustrating a video signal compression method performed by the video encoder 100.

단계(S201)에서 변환/양자화부(106)는 영상 신호를 입력 받고, 상기 영상 신호를 변환 및 양자화하여 양자화 변환 계수를 출력한다.In operation S201, the transform / quantization unit 106 receives an image signal, converts and quantizes the image signal, and outputs a quantization transform coefficient.

상기 영상 신호는 비디오 인코더(100)로 입력되는 원래 픽처(Original Picture)의 매크로블록일 수 있다. 또한, 상기 영상 신호는 상기 매크로블록과 움직임 보상 예측부(104)에서 출력되는 상기 매크로블록에 대한 예측 매크로블록의 차분값일 수 있다.The video signal may be a macroblock of an original picture input to the video encoder 100. The video signal may be a difference value between the macroblock and the predictive macroblock with respect to the macroblock output from the motion compensation predictor 104.

또한, 상기 변환은 DCT 또는 정수 변환 등 실시예별로 상이한 변환 방식이 사용될 수 있으나, 본 실시예에서는 DCT를 사용하여 매크로블록을 변환하는 경우를 예로 들어 설명한다.In addition, the above-described transformation may use different transformation schemes for each embodiment, such as DCT or integer transformation. In this embodiment, a case of transforming a macroblock using DCT will be described as an example.

도 3의 (a)는 4 × 4 블록 모드의 매크로블록을 도시하고 있다. 다만, 설명의 편의를 위해서 도 3에서는 4 × 4의 크기를 갖는 매크로블록을 선정했으나, 상술한 바와 같이 본 발명의 비디오 인코더(100)는 매크로블록의 블록 모드에 따라 제한되지 않는다.FIG. 3A shows a macroblock in 4 × 4 block mode. For convenience of description, in FIG. 3, a macroblock having a size of 4 × 4 is selected, but as described above, the video encoder 100 of the present invention is not limited according to the block mode of the macroblock.

도 3의 (a)를 DCT 한 후의 매크로블록은 도 3의 (b)와 같다. 도시한 바와 같이, DCT 결과, 도 3의 (b)에서는 상기 매크로블록의 각 화소값이 저주파항에 편중된다. 다시, 도 3의 (b)의 매크로블록을 양자화하면 도 3의 (c)와 같이 고주파 성분이 제거된 매크로블록이 산출된다. The macroblock after DCT of FIG. 3A is the same as that of FIG. As shown, in the DCT result, in FIG. 3B, each pixel value of the macroblock is biased to the low frequency term. Again, when the macroblock of FIG. 3B is quantized, the macroblock from which the high frequency component is removed is calculated as shown in FIG.

양자화는 예를 들면, 도 3의 (b)와 같이 변환된 매크로블록의 각 화소값을 소정의 양자화 스텝 사이즈로 나눈 후, 그 나머지를 반올림 등으로 처리하는 과정이다. 따라서, 도 3의 (c)에서 알 수 있듯이, 변환 및 양자화 과정을 수행하면, 상기 매크로블록의 각 화소의 화소값이 대폭 감소한다. 특히, 매크로블록의 우하(右下)측에 위치한 화소들의 화소값은 0으로 되는 경우가 많다. Quantization is a process of, for example, dividing each pixel value of a transformed macroblock into a predetermined quantization step size as shown in FIG. Therefore, as shown in FIG. 3C, when the transform and quantization processes are performed, the pixel value of each pixel of the macroblock is greatly reduced. In particular, the pixel values of pixels located on the lower right side of the macroblock are often zero.

따라서, 변환 및 양자화에 의해 고주파 성분을 제거하고 저주파 성분은 데이터 손실을 적게 하면서 남길 수 있다. 대부분 자연계에서 카메라로 촬영하여 입력되는 영상 신호는 공간주파수가 낮은 경우가 대부분이다. 즉, 낮은 공간 주파수에 이미지를 표시하기 위한 정보가 다수 포함되어 있다. 따라서, 변환 및 양자화 과정을 통해 영상 신호의 화질을 유지하면서도 데이터 크기를 감소시키는 영상 신호 압축을 수행할 수 있다. Thus, high frequency components can be removed by conversion and quantization, while low frequency components can be left with less data loss. In most cases, video signals input by cameras in nature are low in spatial frequency. That is, a large amount of information for displaying an image at a low spatial frequency is included. Accordingly, the video signal compression may be performed to reduce the data size while maintaining the image quality of the video signal through the conversion and quantization process.

도 3의 (c)에 도시한 바와 같은, 변환 및 양자화 과정을 통해 산출되는 각 화소값을 양자화 변환 계수라고 한다. 또한, 상술한 바와 같이 VLC 입력은 양자화 변환 계수 자체, 또는 상기 양자화 변환 계수로부터 생성된 화소값들일 수 있다. As illustrated in FIG. 3C, each pixel value calculated through a transform and quantization process is referred to as a quantization transform coefficient. In addition, as described above, the VLC input may be a quantization transform coefficient itself or pixel values generated from the quantization transform coefficient.

이하, 도 3의 (c)에 도시한 양자화 변환 계수를 그대로 VLC 입력으로 사용하는 경우를 예로 들어 설명한다.Hereinafter, the case where the quantization transform coefficient shown in FIG. 3C is used as the VLC input as it is will be described.

단계(S202)에서 유효 입력 개수 산출부(109a)는 상기 VLC 입력 중에서 유효 입력의 개수를 산출한다. 본 발명의 일실시예에 따르면, 상기 유효 입력은 VLC 입력 중에서 0이 아닌 값을 가지는 화소를 의미한다. 즉, 도 3의 (c)에서 한 개의 79, 4개의 -1, 한 개의 -2는 유효 입력에 해당한다.In step S202, the effective input number calculator 109a calculates the number of valid inputs among the VLC inputs. According to an embodiment of the present invention, the valid input means a pixel having a non-zero value among the VLC inputs. That is, in FIG. 3C, one 79, four −1, and one −2 correspond to valid inputs.

또한, VLC 입력에 포함된 유효 입력의 개수를 산출하는 방법을 통상의 산출 방법에 따른다. 즉, 상기 매크로블록이 Intra 블록인 경우에는 DC 성분을 제외하고 유효 입력을 개수를 산출하고, Inter 블록인 경우에는 DC 성분을 포함하여 유효 입력의 개수를 산출한다.In addition, a method of calculating the number of valid inputs included in the VLC input follows a conventional calculation method. That is, when the macroblock is an intra block, the number of valid inputs is calculated except for the DC component, and when the interblock is an inter block, the number of valid inputs including the DC component is calculated.

도 3의 (c)는 Intra 블록을 도시하고 있으며 따라서 유효 입력의 개수는 4개의 -1, 한 개의 -2, 즉 5개로 산출된다.FIG. 3C illustrates an Intra block, and thus the number of valid inputs is calculated as four −1, one −2, or five.

단계(S203)에서 메모리 제어부(109b)는 상기 매크로블록에 대응하여 유효 입력의 개수와, 상기 유효 입력을 소정의 메모리(도시하지 않음)에 각각 저장한다. In step S203, the memory control unit 109b stores the number of valid inputs corresponding to the macroblock and the valid inputs in a predetermined memory (not shown), respectively.

또한, 본 발명의 또 다른 실시예에 따르면, 메모리 제어부(109b)는 상기 유효 입력을 그대로 상기 메모리에 저장하지 않고, 상기 유효 입력의 제곱합의 평균 또는 절대값합의 평균을 산출하고 그 값만 상기 메모리에 저장할 수도 있다. 이때, 제곱합의 평균과 절대값합의 평균 중에서 어떤 값을 저장할지 여부는, 후술하는 문턱값을 어떻게 산출하느냐와 관계된다.Further, according to another embodiment of the present invention, the memory control unit 109b does not store the valid input in the memory as it is, but calculates an average of the sum of the squares of the valid inputs or the sum of the absolute values and only the value in the memory. You can also save. At this time, which value is stored between the average of the sum of squares and the average of the sum of absolute values is related to how the threshold value described later is calculated.

예를 들어, 메모리 제어부(109a)는 제곱합의 평균을 저장하는 경우에, 을 통해 제곱합 8을 산출하고, 상기 제곱합 8의 평균인 1.6을 상기 메모리에 저장할 수 있다. 또한, 메모리 제어부(109a)는 절대값합의 평균을 저장하는 경우에, 의 식을 통해 절대값합 6을 산출하고, 상기 절대값합 6의 평균인 1.2 상기 메모리에 저장할 수 있다. 상기 유효 입력, 상기 유효 입력의 제곱합의 평균 또는 상기 유효 입력의 절대값합의 평균은, 상기 매크로블록에 대해 가변장 부호화부(110)로 입력되는 VLC 입력이 결정된 경우 상기 메모리에서 제거되도록 한시적으로 저장될 수도 있다.For example, when the memory controller 109a stores an average of sums of squares, The sum of squares 8 may be calculated and 1.6, which is an average of the sums of squares 8, may be stored in the memory. In addition, when the memory control unit 109a stores the average of the sum of absolute values, The absolute value sum 6 may be calculated through Equation 2 and stored in the 1.2 memory, which is an average of the absolute sum 6. The valid input, the average of the sum of squares of the valid input, or the average of the absolute value sum of the valid inputs are temporarily stored to be removed from the memory when a VLC input input to the variable length encoder 110 is determined for the macroblock. May be

본 명세서에서는 유효 입력의 제곱합의 평균 또는 유효 입력의 절대값합의 평균과 같이, 하나의 매크로블록에 대한 유효 입력의 절대값을 반영하여 가공한 값들의 합의 평균을 상기 매크로블록의 "유효 입력의 축적값"이라고 칭한다. In this specification, the average of sums of values processed by reflecting the absolute value of the valid input for one macroblock, such as the average of the sum of squares of the valid inputs or the sum of the absolute values of the valid inputs, is defined as the "accumulation of valid inputs" of the macroblock. Value ".

이하에서는, 상기 유효 입력의 제곱합의 평균을 상기 축적값으로 저장하는 경우를 예로 들어 설명한다. 단계(S204)에서 유효 입력 결정부(109c)는 상기 메모리에 저장된 상기 매크로블록에 대응하는 유효 입력의 개수가 소정의 제1 문턱값(Threshold Value) 이상인지 여부를 판단한다. Hereinafter, the case where the average of the sum of squares of the valid inputs is stored as the accumulated value will be described as an example. In operation S204, the valid input determiner 109c determines whether the number of valid inputs corresponding to the macroblock stored in the memory is equal to or greater than a first predetermined threshold value.

판단 결과 상기 산출된 유효 입력의 개수가 상기 제1 문턱값 이상인 경우, 단계(S207)에서 유효 입력 결정부(109c)는 상기 VLC 입력을 그대로 가변장 부호화부(110)로 입력한다. 예를 들면, 상기 제1 문턱값이 3인 경우, 상기 유효 입력의 개수는 5개이므로, 상기 양자화 변환 계수는 그대로 가변장 부호화부(110)로 입력된다.If it is determined that the calculated number of valid inputs is equal to or greater than the first threshold value, in step S207, the valid input determining unit 109c inputs the VLC input to the variable length encoder 110 as it is. For example, when the first threshold is 3, since the number of valid inputs is five, the quantization transform coefficients are input to the variable length encoder 110 as they are.

판단 결과 상기 산출된 유효 입력의 개수가 상기 제1 문턱값 미만인 경우, 단계(S205)에서 유효 입력 결정부(109c)는 상기 메모리에 저장된 상기 유효 입력의 제곱합의 평균이 소정의 제2 문턱값 이상인지 여부를 판단한다.As a result of the determination, when the calculated number of valid inputs is less than the first threshold value, in step S205, the valid input determining unit 109c determines that an average of the sums of squares of the valid inputs stored in the memory is greater than or equal to a predetermined second threshold value. Determine whether or not.

상기 유효 입력의 제곱합의 평균이 소정의 제2 문턱값 이상인 경우, 단계(S207)에서 유효 입력 결정부(109c)는 상기 VLC 입력을 그대로 가변장 부호화부(110)로 입력한다.If the average of the sums of squares of the valid inputs is equal to or greater than a predetermined second threshold, the valid input determiner 109c inputs the VLC input to the variable length encoder 110 as it is (S207).

상기 유효 입력의 제곱합의 평균이 소정의 제2 문턱값 미만인 경우, 단계(S206)에서 유효 입력 결정부(109c)는 상기 VLC 입력을 모두 0으로 설정하여 가변장 부호화부(110)로 입력한다. 즉, 상기 매크로블록에 대해 가변장 부호화부(110)에 입력되는 입력값은 도 4와 같다.If the average of the sum of squares of the valid inputs is less than a second predetermined threshold, the valid input determiner 109c sets the VLC inputs to all zeros and inputs the VLC inputs to the variable length encoder 110. That is, an input value input to the variable length encoder 110 with respect to the macroblock is shown in FIG. 4.

즉, 본 실시예에 따른 입력 처리 제어부(109c)는 상기 매크로블록에 대한 유효 입력의 개수가 상기 제1 문턱값 미만이고, 상기 매크로블록에 대한 축적값(본 실시예에서는, 상기 유효 입력들의 제곱합의 평균이 상기 제2 문턱값 미만인 경우에는 상기 매크로블록에 대한 VLC 입력을 모두 0으로 설정하여, 가변장 부호화부(110)로 입력한다.That is, the input processing control unit 109c according to the present embodiment has a number of valid inputs for the macroblock less than the first threshold value, and an accumulated value for the macroblock (in this embodiment, the sum of squares of the valid inputs). If the average is less than the second threshold, the VLC inputs for the macroblocks are all set to 0 and input to the variable length encoder 110.

본 발명의 일실시예에 따르면, 상기 제1 문턱값 및 상기 제2 문턱값은 매크로블록 별로 적응적으로(adaptively) 결정될 수 있다. 예를 들면, 상기 제2 문턱값은 상기 매크로블록의 유효 입력의 제곱값의 평균 또는 유효 입력의 절대값합의 평균을 반영하여 산출될 수 있다. 또한, 상기 제1 문턱값 및 상기 제2 문턱값은 각각 독립적으로 결정될 수도 있다.According to an embodiment of the present invention, the first threshold value and the second threshold value may be adaptively determined for each macroblock. For example, the second threshold value may be calculated by reflecting an average of the square of the effective input of the macroblock or the average of the sum of absolute values of the valid input. In addition, the first threshold value and the second threshold value may be independently determined.

입력 처리 제어부(109c)는 하나의 프레임 내에서 고주파 성분이 많은 부분과 그렇지 않은 부분을 매크로블록 단위로 프레임 특성 매트릭스를 저장해 둔다. 이러한 프레임 특성 매트릭스는 프레임 단위로 지속적으로 갱신된다.The input processing control unit 109c stores a frame characteristic matrix in macroblock units for a portion having a high frequency component and a portion having no high frequency component in one frame. This frame characteristic matrix is continuously updated in units of frames.

입력 처리 제어부(109c)는 고주파 성분이 많지 않았던 부분에 이전보다 많은 유효 입력이 존재하는 경우에는 그 개수가 상대적으로 작더라도 제1 문턱값을 적게 제어함으로써 그 유효 입력이 제거되지 않도록 한다.The input processing control unit 109c prevents the effective input from being removed by controlling the first threshold to be small even if the number of the valid inputs is smaller than the previous one in the portion where the high frequency component was not large.

반대로, 입력 처리 제어부(109c)는 고주파 성분이 많았던 부분에는 유효 입력의 개수가 상대적으로 많더라도 제1 문턱값을 크게 제어함으로써 유효 입력이 제거되도록 한다.On the contrary, the input processing control unit 109c controls the first threshold to be large so that the effective input is removed even though the number of the effective inputs is relatively large in the portion where the high frequency component is large.

유효 입력의 축적값에 대한 제2 문턱값도 동일한 방식을 사용하여, 적응적으로 결정될 수 있다.The second threshold for the accumulated value of the valid input may also be adaptively determined using the same scheme.

가변장 부호화부(110)는 상기 입력된 VLC 입력을 지그-재그 스캔(Zig-Zag Scanning) 또는 대체 스캔(Alternate Scanning) 등의 소정의 스캔 방식에 따라 스캔하여 나열한다.The variable length encoder 110 scans and lists the input VLC inputs according to a predetermined scan method such as Zig-Zag Scanning or Alternate Scanning.

또한, 가변장 부호화부(110)는 상기 나열된 VLC 입력을 가변장 부호화한다. In addition, the variable length encoder 110 variable length encodes the VLC inputs listed above.

예를 들면, MPEG 4를 따르는 경우, 가변장 부호화부(110)는 상기 VLC 입력 중에서 0인 양자화 변환 계수가 얼마나 연속되는지에 대한 정보인 런(Run), 0이 아닌 VLC 입력의 크기인 레벨(Level) 및 상기 나열된 VLC 입력 중에서 0이 아닌 VLC 입력의 마지막을 나타내는 라스트(Last)의 3차원 정보를 이용해 가변장 부호화한다.For example, in the case of MPEG 4, the variable length encoder 110 may include a run, which is information about how consecutive quantization transform coefficients, which are zero, are zero among the VLC inputs, and a level that is a size of a non-zero VLC input. Variable length coding using last three-dimensional information indicating the end of a non-zero VLC input.

상술한 바와 같이, 가변장 부호화부(110)는 런, 레벨, 라스트 등 각 값 별로 고정적인 부호를 할당하지 않고, 발생 빈도가 높은 값에 대해서는 짧은 부호를 할당한다. 예를 들면, 런이 1이고 레벨이 1인 경우가, 런이 2이고 레벨이 1인 경우에 비해 더 자주 발생된다고 판단되는 경우에는, 전자에는 011S와 같은 부호가, 전자에 비해 발생 빈도가 낮은 후자에는 0101S와 같이 보다 긴 부호가 할당될 수 있다. S는 레벨이 음의 값을 갖는지, 양의 값을 갖는지에 따라 결정되는 값으로서, 양의 레벨에는 0, 음의 레벨에는 1이 할당된다.As described above, the variable length encoder 110 does not allocate a fixed code for each value such as run, level, and last, but assigns a short code to a value having a high frequency of occurrence. For example, if it is determined that the run is 1 and the level is 1, it is generated more frequently than when the run is 2 and the level is 1, the former has a code like 011S, which is less frequent than the former. The latter may be assigned a longer sign, such as 0101S. S is a value determined depending on whether the level has a negative value or a positive value, and 0 is assigned to the positive level and 1 is assigned to the negative level.

이러한 가변장 부호화의 규칙은 동영상 표준 규격 별로 부호 체계가 서로 다를 수 있으며, 따라서 비디오 디코더에서 인코딩된 영상 신호를 인코딩하기 위해서는, 상기 비디오 디코더는 상기 영상 신호를 인코딩할 때 사용한 부호 체계와 동일한 부호 체계를 사용해야만 한다.The coding scheme of the variable length coding may be different from each other according to a video standard. Therefore, in order to encode a video signal encoded by a video decoder, the video decoder uses the same coding system as that used to encode the video signal. You must use

한편, 상기 유효 입력의 개수가 상기 제1 문턱값 미만이고, 상기 유효 입력의 축적값이 상기 제2 문턱값 미만인 경우, 다시 말해 유효 입력의 개수가 적고, 그 유효 입력의 값들이 크지 않을 경우, 입력 처리 제어부(109c)는 상기 VLC 입력을 모두 0으로 설정하여, 가변장 부호화부(110)로 입력한다. 이러한 경우에는 모든 VLC 입력이 0이기 때문에, 가변장 부호화부(110)는 상기 매크로블록의 VLC 입력에 별도의 부호를 할당하지 않고, 단지 부호화 블록 패턴(CBP; Coded Block Pattern)만을 출력한다. 따라서, 상기 본 발명에 따르면, 유효한 영상 신호가 적은 매크로블록을 인코딩할 때에는 VLC 입력에 대해서는 부호를 할당하지 않고, 단지 부호화 블록 패턴에만 부호를 할당하기 때문에, 비디오 인코더(100)에서 출력되는 비트스트림의 비트레이트가 감소될 수 있다.On the other hand, when the number of valid inputs is less than the first threshold and the accumulated value of the valid inputs is less than the second threshold, that is, when the number of valid inputs is small and the values of the valid inputs are not large, The input processing control unit 109c sets all of the VLC inputs to 0 and inputs them to the variable length encoding unit 110. In this case, since all VLC inputs are zero, the variable length encoder 110 outputs only a coded block pattern (CBP) without assigning a separate code to the VLC input of the macroblock. Therefore, according to the present invention, when encoding a macroblock having few valid video signals, the code is not assigned to the VLC input, but only a coded block pattern, so that the bitstream output from the video encoder 100 is output. The bit rate of can be reduced.

한편, 본 실시예에 따르면, 원래는 작은 값이나마 갖고 있던 유효 입력을, 그 수가 적다고 해도 모두 0으로 설정하여 인코딩했기 때문에, 이후 비디오 디코더에서 상기 매크로블록에 대한 비트스트림을 디코딩하는 경우 어느 정도의 화질 감소는 발생한다. 그러나, 유효 입력의 개수가 적고, 또한 그 유효 입력의 값들도 크지 않은 경우에만, 상기 VLC 입력을 모두 0으로 설정하기 때문에, 그 화질 감소폭은 그다지 크지 않다.On the other hand, according to the present embodiment, since a valid input that originally had a small value is encoded by setting all of them to 0 even if the number is small, the video decoder decodes the bitstream for the macroblock to some extent. Decrease in image quality occurs. However, since the VLC inputs are all set to 0 only when the number of valid inputs is small and the values of the valid inputs are not large, the quality reduction is not so large.

반면, 상기 VLC 입력을 모두 0으로 설정한 경우의 비트레이트는 획기적으로 감소하기 때문에, 영상 신호를 고화질로 인코딩하는 것보다는 어느 정도의 화질을 유지하되 그 비트레이트를 감소시키는 것이 더 필수적인 서비스에서는 본원 발명이 매우 유용하게 사용될 수 있음을 당업자라면 쉽게 예상할 수 있을 것이다.On the other hand, since the bit rate of all the VLC inputs set to 0 is dramatically reduced, the service is more essential in maintaining a certain quality of image but reducing the bit rate rather than encoding a video signal in high quality. It will be readily apparent to one skilled in the art that the invention can be used very usefully.

한편, 상술한 실시예에서는 상기 유효 입력의 축적값으로서 유효 입력의 제곱합의 평균을 사용했으나, 본 발명의 또 다른 실시예에 따르면, 상기 유효 입력의 축적값은 상기 유효 입력의 절대값합의 평균이 사용될 수 있다. 이때에는 상기 메모리에는 상기 절대값합의 평균이 저장되고, 상기 제2 문턱값 역시 상기 유효 입력의 절대값합의 평균을 반영하여 매크로블록 별로 적응적으로 결정될 수 있다.Meanwhile, in the above-described embodiment, the mean of the sum of squares of valid inputs is used as the accumulated value of the valid inputs. According to another embodiment of the present invention, the accumulated value of the valid inputs has an average of the sum of absolute values of the valid inputs. Can be used. In this case, the average of the sum of absolute values is stored in the memory, and the second threshold value may be adaptively determined for each macroblock by reflecting the average of the sum of absolute values of the valid inputs.

유효 입력의 축적값으로서 제곱합의 평균을 사용하는 경우에는 유효 입력의 경향을 더욱 명확하게 판단할 수 있다는 장점이 있고, 유효 입력의 축적값으로서 절대값합의 평균을 사용하는 경우에는 데이터 처리량을 감소시켜 비디오 인코더(100)의 로드를 감소시킬 수 있다는 장점이 있다.The use of the mean of the sum of squares as the accumulated value of the effective input has the advantage that the tendency of the effective input can be judged more clearly. When the average of the sum of the absolute values is used as the accumulated value of the effective input, the data throughput is reduced. There is an advantage that the load of the video encoder 100 can be reduced.

또한, 도 5를 참조하여 본 발명의 또 다른 실시예에 따른 영상 신호 압축 방법에 대해 설명한다. 본 실시예에 따른 영상 신호 압축 방법 역시 도 1의 비디오 인코더(100)에서 수행될 수 있다.In addition, a video signal compression method according to another embodiment of the present invention will be described with reference to FIG. 5. The video signal compression method according to the present embodiment may also be performed by the video encoder 100 of FIG. 1.

단계(S501)에서 변환/양자화부(106)는 영상 신호를 매크로블록 별로 변환 및 양자화하여 양자화 변환 계수를 산출한다.In operation S501, the transform / quantization unit 106 calculates a quantization transform coefficient by transforming and quantizing the image signal for each macroblock.

단계(S502)에서 유효 입력 개수 산출부(109a)는 상기 매크로블록에 대해, 상기 양자화 변환 개수로부터 생성된 VLC 입력에 포함된 유효 입력의 개수를 산출한다.In operation S502, the valid input number calculator 109a calculates the number of valid inputs included in the VLC input generated from the quantized transform number for the macroblock.

단계(S503)에서 메모리 제어부(109b)는 상기 산출된 유효 입력의 개수를 소정의 메모리에 저장한다.In step S503, the memory controller 109b stores the calculated number of valid inputs in a predetermined memory.

단계(S504)에서 유효 입력 결정부(109c)는 상기 메모리에 저장된 유효 입력의 개수가 소정의 제1 문턱값 이상인지 판단한다.In operation S504, the valid input determiner 109c determines whether the number of valid inputs stored in the memory is greater than or equal to a first predetermined threshold.

판단 결과 상기 유효 입력의 개수가 상기 제1 문턱값 미만인 경우, 단계(S505)에서 유효 입력 결정부(109c)는 상기 VLC 입력을 모두 0으로 변경하여 가변장 부호화부(110)에 입력한다.If it is determined that the number of valid inputs is less than the first threshold value, in step S505, the valid input determiner 109c changes all the VLC inputs to 0 and inputs the VLC inputs to the variable length encoder 110.

따라서, 이 경우에는 가변장 부호화부(110)는, 상기 매크로블록에 대해서는 별도의 부호를 할당하지 않고, 단지 CBP 값만을 부호화하여 출력하면 된다.Therefore, in this case, the variable length encoder 110 may encode and output only the CBP value without assigning a separate code to the macroblock.

한편, 판단 결과 상기 유효 입력의 개수가 상기 제1 문턱값 이상인 경우, 단계(S506)에서 유효 입력 결정부(109c)는 상기 VLC 입력을 그대로 가변장 부호화부(110)로 입력하여 가변장 부호화되도록 한다.On the other hand, if it is determined that the number of valid inputs is equal to or greater than the first threshold value, in step S506, the valid input determiner 109c inputs the VLC input to the variable length encoder 110 as it is so that the variable length is encoded. do.

따라서, 본 실시예에 따르면, 상기 매크로블록에 대한 VLC 입력에 포함된 유효 입력의 개수가 적은 경우에는 상기 매크로블록에 유효한 영상 신호가 포함되어 있지 않다고 간주하여 상기 VLC 입력을 모두 0으로 설정하기 때문에, 가변장 부호화부(110)에서 출력되는 비트스트림의 비트레이트를 대폭 감소할 수 있다.Therefore, according to the present embodiment, when the number of valid inputs included in the VLC input for the macroblock is small, it is assumed that no valid video signal is included in the macroblock. The bit rate of the bitstream output from the variable length encoder 110 may be greatly reduced.

한편, 적다고는 하나 유효 입력을 제거하여 상기 매크로블록을 인코딩하기 때문에, 인코딩된 영상 신호의 화질은 저하될 수 밖에 없다. 그러나, 상기 매크로블록에 대한 VLC 입력에 포함된 유효 입력의 수가 작은 경우에만 이를 제거하기 때문에, 애초에 유효한 영상 신호가 그다지 포함되어 있지 않은, 즉 화면간 예측 또는 화면내 예측 결과, 상기 매크로블록은 시간적 또는 공간적으로 그 변화가 작은 부분에 해당하기 때문에, 상술한 바와 같이 상기 매크로블록의 VLC 입력을 모두 0으로 설정하여 유효 입력을 제거한다고 해도, 그 화질 저하는 그리 크지 않다.On the other hand, since the macroblock is encoded by removing a small number of valid inputs, the quality of the encoded video signal is deteriorated. However, since only a small number of valid inputs included in the VLC input for the macroblock is removed, the first valid video signal does not contain much, i.e. as a result of the inter prediction or intra picture prediction, the macro block is temporal. Alternatively, since the change is spatially small, even if the VLC inputs of the macroblocks are all set to 0 and the effective inputs are removed, the quality deterioration is not so large.

따라서, 본원 발명은, 고화질 영상 신호를 얻는 것보다는 비디오 인코더, 비디오 디코더, 네트워크, 디스플레이 장치 등의 각 시스템 부하를 감소시키면서도 빠른 처리 속도를 원하는 사용자의 욕구를 충족시켜 줄 수 있다.Accordingly, the present invention can satisfy a user's desire for high processing speed while reducing the load of each system such as a video encoder, a video decoder, a network, a display device, etc., rather than obtaining a high quality video signal.

또한, 도 6을 참조하여 본 발명의 또 다른 실시예에 따른 영상 신호 압축 방법에 대해 설명한다. 본 실시예에 따른 영상 신호 압축 방법 역시 도 1의 비디오 인코더(100)에서 수행될 수 있다.In addition, a video signal compression method according to another embodiment of the present invention will be described with reference to FIG. 6. The video signal compression method according to the present embodiment may also be performed by the video encoder 100 of FIG. 1.

단계(S601)에서 변환/양자화부(106)는 영상 신호를 매크로블록 별로 변환 및 양자화하여 양자화 변환 계수를 산출한다.In operation S601, the transform / quantization unit 106 converts and quantizes the image signal for each macroblock to calculate a quantization transform coefficient.

단계(S602)에서 유효 입력 개수 산출부(109a)는 상기 매크로블록에 대해, 상기 양자화 변환 개수로부터 생성된 VLC 입력에 포함된 유효 입력의 축적값을 산출한다. 상술한 실시예에서와 마찬가지로 상기 축적값은 상기 유효 입력들의 제곱합의 평균, 또는 상기 유효 입력들의 절대값합의 평균 등으로 산출될 수 있다.In operation S602, the effective input number calculator 109a calculates, for the macroblock, an accumulated value of the valid inputs included in the VLC input generated from the quantized transform number. As in the above-described embodiment, the accumulated value may be calculated as an average of the sum of squares of the valid inputs, or an average of the sum of absolute values of the valid inputs.

단계(S603)에서 메모리 제어부(109b)는 상기 산출된 유효 입력의 축적값을 소정의 메모리에 저장한다.In step S603, the memory control unit 109b stores the calculated accumulated value of the valid input in a predetermined memory.

단계(S604)에서 유효 입력 결정부(109c)는 상기 메모리에 저장된 축적값이 소정의 제2 문턱값 이상인지 판단한다.In step S604, the valid input determination unit 109c determines whether the accumulated value stored in the memory is equal to or greater than a predetermined second threshold.

판단 결과 상기 유효 입력의 축적값이 상기 제2 문턱값 미만인 경우, 단계(S605)에서 유효 입력 결정부(109c)는 상기 VLC 입력을 모두 0으로 변경하여 가변장 부호화부(110)에 입력한다.If it is determined that the accumulated value of the valid input is less than the second threshold value, in step S605, the valid input determiner 109c changes all the VLC inputs to 0 and inputs the VLC input to the variable length encoder 110.

따라서, 이 경우에는 가변장 부호화부(110)는, 상기 매크로블록에 대해서는 별도의 부호를 할당하지 않고, 단지 CBP만을 부호화하여 출력한다.Therefore, in this case, the variable length encoder 110 encodes and outputs only the CBP without assigning a separate code to the macroblock.

한편, 판단 결과 상기 유효 입력의 축적값이 상기 제2 문턱값 이상인 경우, 단계(S606)에서 유효 입력 결정부(109c)는 상기 VLC 입력을 그대로 가변장 부호화부(110)로 입력하여 가변장 부호화되도록 한다.On the other hand, if it is determined that the accumulated value of the valid input is greater than or equal to the second threshold value, in step S606, the valid input determiner 109c inputs the VLC input to the variable length encoder 110 as it is and variable length encoding. Be sure to

따라서, 본 실시예에 따르면, 상기 매크로블록의 양자화 변환 계수에 포함된 유효 입력들의 값이 적은 경우에는 상기 매크로블록에 유효한 영상 신호가 포함되어 있지 않다고 간주하여 상기 양자화 변환 계수를 모두 0으로 설정하기 때문에, 가변장 부호화부(110)에서 출력되는 비트스트림의 비트레이트를 대폭 감소할 수 있다.Therefore, according to the present embodiment, when the values of the valid inputs included in the quantization transform coefficients of the macroblock are small, it is assumed that no valid video signal is included in the macroblock, and the quantization transform coefficients are all set to 0. Therefore, the bit rate of the bitstream output from the variable length encoder 110 can be greatly reduced.

한편, 그 크기가 작다고는 하나 유효 입력을 제거하여 상기 매크로블록을 인코딩하기 때문에, 인코딩된 영상 신호의 화질을 저하될 수 밖에 없다. 그러나, 상기 매크로블록에 대한 양자화 변환 계수에 포함된 유효 입력들의 크기가 작은 경우에만 상기 유효 입력들을 제거하기 때문에, 애초에 유효한 영상 신호로서 그다지 작용하지 않는, 즉 화면간 예측 또는 화면내 예측 결과 상기 매크로블록은 시간적 또는 공간적으로 변환가 있다고 해도 그 변화량이 크지 않은 부분에 해당하기 때문에, 상술한 바와 같이 상기 매크로블록의 양자화 계수를 모두 0으로 설정하여 유효 입력을 제거한다고 해도, 그 화질 저하는 그리 크지 않다.On the other hand, although the size is small, since the macroblock is encoded by removing the effective input, the quality of the encoded video signal is deteriorated. However, since the valid inputs are removed only when the sizes of the valid inputs included in the quantization transform coefficients for the macroblocks are small, the macros do not act as a valid video signal in the first place, i.e., the result of the inter prediction or the intra prediction. Since a block corresponds to a portion in which the variation is not large even if it is transformed temporally or spatially, even if the quantization coefficients of the macroblock are all set to 0 and the effective input is removed, the quality deterioration is not so great. .

따라서, 본원 발명은, 고화질 영상 신호를 얻는 것보다는 비디오 인코더, 비디오 디코더, 네트워크, 디스플레이 장치 등의 각 시스템 부하를 감소시키면서도 빠른 처리 속도를 원하는 사용자의 욕구를 충족시켜 줄 수 있다.Accordingly, the present invention can satisfy a user's desire for high processing speed while reducing the load of each system such as a video encoder, a video decoder, a network, a display device, etc., rather than obtaining a high quality video signal.

지금까지 본 발명에 따른 구체적인 실시예에 관하여 설명하였으나, 본 발명의 범위에서 벗어나지 않는 한도 내에서는 여러 가지 변형이 가능함은 물론이다.While specific embodiments of the present invention have been described so far, various modifications are possible without departing from the scope of the present invention.

그러므로, 본 발명의 범위는 설명된 실시예에 국한되어 정해져서는 안되며, 후술하는 특허 청구의 범위뿐 아니라 이 특허 청구의 범위와 균등한 것들에 의해 정해져야 한다.Therefore, the scope of the present invention should not be limited to the described embodiments, but should be defined not only by the claims below, but also by the equivalents of the claims.

이상과 같이 본 발명은 비록 한정된 실시예와 도면에 의해 설명되었으나, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 이는 본 발명이 속하는 분야에서 통상의 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다. As described above, the present invention has been described by way of limited embodiments and drawings, but the present invention is not limited to the above-described embodiments, which can be variously modified and modified by those skilled in the art to which the present invention pertains. Modifications are possible.

따라서, 본 발명 사상은 아래에 기재된 특허 청구 범위에 의해서만 파악되어야 하고, 이의 균등 또는 등가적 변형 모두는 본 발명 사상의 범주에 속한다고 할 것이다.Accordingly, the spirit of the present invention should be understood only by the claims set forth below, and all equivalent or equivalent modifications thereof will belong to the scope of the present invention.

본 발명에 따르면, 소정의 매크로블록에 대해 산출된 VLC 입력의 유효 입력의 개수가 소정값(제1 문턱값) 미만인 경우에는 상기 유효 입력을 모두 0으로 처리하여, 비디오 인코더에서 출력되는 비트스트림의 비트레이트를 감소시킬 수 있는 영상 신호 압축 방법 및 상기 방법을 수행하는 비디오 인코더가 제공된다.According to the present invention, when the number of valid inputs of a VLC input calculated for a predetermined macroblock is less than a predetermined value (first threshold value), all of the valid inputs are treated as 0, so that the bitstream output from the video encoder is processed. A video signal compression method capable of reducing bitrate and a video encoder for performing the method are provided.

또한, 본 발명에 따르면, 소정의 매크로블록에 대해 산출된 VLC 입력의 유효 입력의 축적값이 소정값(제2 문턱값) 미만인 경우에는 상기 유효 입력을 모두 0으로 처리하여, 비디오 인코더에서 출력되는 비트스트림의 비트레이트를 감소시킬 수 있는 영상 신호 압축 방법 및 상기 방법을 수행하는 비디오 인코더가 제공된다.According to the present invention, when the accumulated value of the effective input of the VLC input calculated for a predetermined macroblock is less than a predetermined value (second threshold value), all of the valid inputs are treated as 0 and output from the video encoder. A video signal compression method capable of reducing the bitrate of a bitstream and a video encoder for performing the method are provided.

또한, 본 발명에 따르면, 상기 제1 문턱값 또는 상기 제2 문턱값을 매크로블록 별로 적응적으로 선정하는 영상 신호 압축 방법 및 상기 방법을 수행하는 비디오 인코더가 제공된다. According to the present invention, there is provided a video signal compression method for adaptively selecting the first threshold value or the second threshold value for each macroblock, and a video encoder for performing the method.

또한, 본 발명에 따르면, 비디오 인코더에서 출력되는 비트스트림의 비트레이트를 감소시킴으로써, 비디오 인코더, 네트워크, 비디오 디코더 등에서의 부하를 감소시키고 영상 신호 처리 시간을 감소시킬 수 있는 영상 신호 압축 방법 및 상기 방법을 수행하는 비디오 인코더가 제공된다. In addition, according to the present invention, by reducing the bit rate of the bit stream output from the video encoder, a video signal compression method and the method that can reduce the load on the video encoder, network, video decoder, etc. and reduce the image signal processing time A video encoder is provided that performs this.

또한, 본 발명에 따르면, 유효한 영상 신호가 적은 VLC 입력은 모두 0으로 간주함으로써 랜덤 노이즈(Random Noise)를 효과적으로 제거할 수 있는 비디오 인코더가 제공된다. According to the present invention, a video encoder capable of effectively removing random noise by providing all VLC inputs having a small number of valid video signals as 0 is provided.

도 1a는 본 발명에 따른 영상 신호 압축 방법을 수행하는 비디오 인코더를 도시한 블록도이다. 도 1b는 비디오 인코더의 구성 중 유효 입력 제어부의 구성을 도시한 블록도이다.도 2는 본 발명에 따른 영상 신호 압축 방법을 도시한 흐름도이다. 1A is a block diagram illustrating a video encoder for performing a video signal compression method according to the present invention. FIG. 1B is a block diagram showing the configuration of an effective input control unit among the configurations of a video encoder. FIG. 2 is a flowchart illustrating a video signal compression method according to the present invention.

삭제delete

도 3은 본 발명에 따른 비디오 인코더에서, 상기 비디오 인코더의 가변장 부호화부로 입력되는 VLC 입력을 제어하는 과정을 설명하기 위한 도면이다. 3 is a diagram illustrating a process of controlling a VLC input input to a variable length encoder of the video encoder in the video encoder according to the present invention.

도 4는 본 발명에 따른 비디오 인코더의 가변장 부호화부로 입력되는 VLC 입력을 도시한 도면이다. 4 illustrates a VLC input input to a variable length encoder of a video encoder according to the present invention.

도 5는 본 발명의 또 다른 실시예에 따른 영상 신호 압축 방법을 도시한 도면이다. 5 is a diagram illustrating a video signal compression method according to another embodiment of the present invention.

도 6은 본 발명의 또 다른 실시예에 따른 영상 신호 압축 방법을 도시한 도면이다. 6 is a diagram illustrating a video signal compression method according to another embodiment of the present invention.

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

100: 비디오 인코더100: video encoder

101: 영상 신호 입력부 102: 영상 메모리101: video signal input unit 102: video memory

103: 움직임 추정부 104: 움직임 보상 예측부103: motion estimation unit 104: motion compensation prediction unit

105: 화면내 예측부 106: 변환/양자화부105: intra prediction unit 106: transform / quantization unit

107: 역변환부 108: 필터107: inverse transform unit 108: filter

109: 유효 입력 제어부 110: 가변장 부호화부109: valid input control unit 110: variable length encoding unit

Claims (12)

비디오 인코더에 있어서, In the video encoder, 영상 신호를 매크로블록 별로 변환 및 양자화하여 양자화 변환 계수를 출력하는 변환/양자화부;A transform / quantizer for outputting quantized transform coefficients by converting and quantizing an image signal for each macroblock; 상기 매크로블록에 대응하는 상기 양자화 변환 계수로부터 생성된 VLC 입력 중에서 유효 입력의 개수를 산출하는 유효 입력 개수 산출부;A valid input number calculator for calculating a number of valid inputs among VLC inputs generated from the quantization transform coefficients corresponding to the macroblocks; (1) 상기 산출된 유효 입력의 개수가 소정의 제1 문턱값 미만이고, (2) 상기 매크로블록에 대응하는 유효 입력의 축적값이 소정의 제2 문턱값 미만인 경우, 상기 매크로블록에 대한 양자화 변환 계수를 모두 0으로 설정하도록 제어하는 입력 처리 제어부; 및(1) when the calculated number of valid inputs is less than a first predetermined threshold, and (2) when the accumulated value of valid inputs corresponding to the macroblock is less than a second predetermined threshold, quantization of the macroblocks. An input processing control unit which controls to set all of the conversion coefficients to 0; And 상기 VLC 입력을 가변 부호화하여 출력하는 가변장 부호화부A variable length encoder for variable encoding and outputting the VLC input 를 포함하는 것을 특징으로 하는 비디오 인코더. The video encoder comprising a. 제1항에 있어서,The method of claim 1, 상기 입력 처리 제어부는,The input processing control unit, 상기 산출된 유효 입력의 개수가 상기 제1 문턱값 이상인 경우, 또는 상기 축적값이 상기 제2 문턱값 이상인 경우, 상기 매크로블록에 대한 VLC 입력이 그 값의 변화 없이 상기 가변장 부호화부로 입력되도록 제어하는 것을 특징으로 하는 비디오 인코더. When the calculated number of valid inputs is equal to or greater than the first threshold value, or when the accumulated value is equal to or greater than the second threshold value, the VLC input for the macroblock is controlled to be input to the variable length encoder without changing the value. Video encoder. 제1항에 있어서,The method of claim 1, 상기 제2 문턱값은, 상기 매크로블록에 대응하는 유효 입력의 제곱합의 평균, 또는 절대값합의 평균으로, 매크로블록 별로 결정되는 것을 특징으로 하는 비디오 인코더. The second threshold value is an average of sums of squares of valid inputs corresponding to the macroblocks or an average of sums of absolute values, and the video encoder is determined for each macroblock. 비디오 인코더에 있어서,In the video encoder, 영상 신호를 매크로블록 별로 DCT 부호화 및 양자화하여 양자화 변환 계수를 출력하는 변환/양자화부;A transform / quantization unit configured to output quantization transform coefficients by DCT encoding and quantizing the image signal for each macroblock; 상기 매크로블록에 대응하는 상기 양자화 변환 계수로부터 생성된 VLC 입력 중 유효 입력의 축적값을 산출하고, 상기 산출된 축적값이 소정의 문턱값 미만인 경우, 상기 VLC 입력을 모두 0으로 설정하도록 제어하는 입력 처리 제어부; 및An input for calculating an accumulated value of a valid input among the VLC inputs generated from the quantization transform coefficients corresponding to the macroblock, and if the calculated accumulated value is less than a predetermined threshold, controlling all of the VLC inputs to be set to 0 A processing control unit; And 상기 VLC 입력을 가변 부호화하여 출력하는 가변장 부호화부A variable length encoder for variable encoding and outputting the VLC input 를 포함하는 것을 특징으로 하는 비디오 인코더. The video encoder comprising a. 비디오 인코더에 있어서,In the video encoder, 영상 신호를 매크로블록 별로 DCT 부호화 및 양자화하여 양자화 변환 계수를 출력하는 변환/양자화부;A transform / quantization unit configured to output quantization transform coefficients by DCT encoding and quantizing the image signal for each macroblock; 상기 매크로블록에 대응하는 상기 양자화 변환 계수로부터 생성된 VLC 입력 중에서 유효 입력의 개수를 산출하는 유효 입력 개수 산출부;A valid input number calculator for calculating a number of valid inputs among VLC inputs generated from the quantization transform coefficients corresponding to the macroblocks; 상기 산출된 유효 입력의 개수가 소정의 문턱값 미만인 경우, 상기 매크로블록에 대한 VLC 입력을 모두 0으로 설정하도록 제어하는 입력 처리 제어부; 및An input processing control unit which controls to set all VLC inputs to the macroblock to 0 when the calculated number of valid inputs is less than a predetermined threshold; And 상기 VLC 입력을 가변 부호화하여 출력하는 가변장 부호화부A variable length encoder for variable encoding and outputting the VLC input 를 포함하는 것을 특징으로 하는 비디오 인코더. The video encoder comprising a. 제1항, 제4항 또는 제5항 중 어느 한 항에 있어서,The method according to any one of claims 1, 4 or 5, 상기 유효 입력은, 상기 매크로블록에 대응하는 VLC 입력 중에서 그 값이 0이 아닌 입력인 것을 특징으로 하는 비디오 인코더. And the valid input is a non-zero input among VLC inputs corresponding to the macroblocks. 제1항 또는 제4항에 있어서,The method according to claim 1 or 4, 상기 축적값은, 상기 매크로블록에 대응하는 VLC 입력 중 유효 입력의 제곱합, 또는 절대값합으로 산출되는 것을 특징으로 하는 비디오 인코더.Wherein the accumulated value is calculated as a sum of squares of valid inputs or a sum of absolute values among VLC inputs corresponding to the macroblocks. 삭제delete 삭제delete 제1항, 제4항 또는 제5항에 있어서,The method according to claim 1, 4 or 5, 상기 변환/양자화부로 입력되는 상기 영상 신호는, (1) 상기 비디오 인코더의 입력부로 입력된 픽처, 또는 (2) 상기 픽처와 상기 픽처에 대한 화면간 예측을 수행한 결과 생성된 예측 픽처의 차분인 것을 특징으로 하는 비디오 인코더. The video signal input to the transform / quantization unit may be (1) a picture input to an input unit of the video encoder, or (2) a difference between a predicted picture generated as a result of performing inter-picture prediction on the picture and the picture. Video encoder. 비디오 인코더에서의 영상 신호 압축 방법에 있어서, In the video signal compression method in a video encoder, 영상 신호를 입력 받는 단계;Receiving an image signal; 상기 영상 신호를 매크로블록 별로 DCT 부호화 및 양자화하는 단계; DCT encoding and quantizing the video signal for each macroblock; 상기 매크로블록에 대응하는 상기 양자화 변환 계수로부터 생성된 VLC 입력 중에서 유효 입력의 개수를 산출하는 단계;Calculating a number of valid inputs among VLC inputs generated from the quantization transform coefficients corresponding to the macroblocks; (1) 상기 산출된 유효 입력의 개수가 소정의 제1 문턱값 미만이고, (2) 상기 매크로블록에 대응하는 유효 입력의 축적값이 소정의 제2 문턱값 미만인 경우, 상기 매크로블록에 대한 양자화 변환 계수를 모두 0으로 설정하도록 제어하는 단계; 및(1) when the calculated number of valid inputs is less than a first predetermined threshold, and (2) when the accumulated value of valid inputs corresponding to the macroblock is less than a second predetermined threshold, quantization of the macroblocks. Controlling all of the transform coefficients to be set to zero; And 상기 VLC 입력을 가변 부호화하여 출력하는 단계Variable coding the VLC input 를 포함하는 것을 특징으로 하는 영상 신호 압축 방법. Image signal compression method comprising a. 제11항의 방법을 수행하기 위한 프로그램을 기록한 컴퓨터 판독 가능한 기록 매체. A computer-readable recording medium having recorded thereon a program for performing the method of claim 11.
KR1020040109769A 2004-12-21 2004-12-21 Method for encoding video signals for reducing bitrate using feature of vlc inputs and video encoder for executing the method KR100507441B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020040109769A KR100507441B1 (en) 2004-12-21 2004-12-21 Method for encoding video signals for reducing bitrate using feature of vlc inputs and video encoder for executing the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020040109769A KR100507441B1 (en) 2004-12-21 2004-12-21 Method for encoding video signals for reducing bitrate using feature of vlc inputs and video encoder for executing the method

Publications (1)

Publication Number Publication Date
KR100507441B1 true KR100507441B1 (en) 2005-08-09

Family

ID=37304038

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020040109769A KR100507441B1 (en) 2004-12-21 2004-12-21 Method for encoding video signals for reducing bitrate using feature of vlc inputs and video encoder for executing the method

Country Status (1)

Country Link
KR (1) KR100507441B1 (en)

Similar Documents

Publication Publication Date Title
US11089311B2 (en) Parameterization for fading compensation
US8331449B2 (en) Fast encoding method and system using adaptive intra prediction
KR100850705B1 (en) Method for adaptive encoding motion image based on the temperal and spatial complexity and apparatus thereof
US9420279B2 (en) Rate control method for multi-layered video coding, and video encoding apparatus and video signal processing apparatus using the rate control method
US7602851B2 (en) Intelligent differential quantization of video coding
KR100773761B1 (en) The apparatus and method of moving picture encoding
US7653129B2 (en) Method and apparatus for providing intra coding frame bit budget
US20070098067A1 (en) Method and apparatus for video encoding/decoding
US20050276323A1 (en) Real-time video coding/decoding
KR101263813B1 (en) Method and apparatus for selection of scanning mode in dual pass encoding
KR101482896B1 (en) Optimized deblocking filters
KR101712097B1 (en) Method and apparatus for encoding and decoding image based on flexible orthogonal transform
EP1359770A2 (en) Signaling for fading compensation in video encoding
KR20050031674A (en) Prediction method and apparatus in video encoder
EP1359765A2 (en) Fading estimation/compensation in video encoding
CN111164972A (en) System and method for controlling video encoding at frame level
WO2012006304A2 (en) Motion compensation using vector quantized interpolation filters
CN111164980A (en) System and method for controlling video encoding within image frames
WO2006074043A2 (en) Method and apparatus for providing motion estimation with weight prediction
JP5649296B2 (en) Image encoding device
KR100834625B1 (en) Real-time scene-change detection for rate control of video encoder
KR100366382B1 (en) Apparatus and method for coding moving picture
JP2009049969A (en) Device and method of coding moving image and device and method of decoding moving image
KR20150105347A (en) Intra prediction method and intra prediction apparatus using residual transform
KR100507441B1 (en) Method for encoding video signals for reducing bitrate using feature of vlc inputs and video encoder for executing the method

Legal Events

Date Code Title Description
A201 Request for examination
A302 Request for accelerated 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: 20120802

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20130802

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20140804

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20150803

Year of fee payment: 11

FPAY Annual fee payment

Payment date: 20160802

Year of fee payment: 12

FPAY Annual fee payment

Payment date: 20170802

Year of fee payment: 13

FPAY Annual fee payment

Payment date: 20180802

Year of fee payment: 14