KR101539045B1 - Quantization Parameter Determination Method and Apparatus and Video Encoding/Decoding Method and Apparatus - Google Patents

Quantization Parameter Determination Method and Apparatus and Video Encoding/Decoding Method and Apparatus Download PDF

Info

Publication number
KR101539045B1
KR101539045B1 KR1020080094494A KR20080094494A KR101539045B1 KR 101539045 B1 KR101539045 B1 KR 101539045B1 KR 1020080094494 A KR1020080094494 A KR 1020080094494A KR 20080094494 A KR20080094494 A KR 20080094494A KR 101539045 B1 KR101539045 B1 KR 101539045B1
Authority
KR
South Korea
Prior art keywords
block
quantization coefficient
quantization
complexity
current block
Prior art date
Application number
KR1020080094494A
Other languages
Korean (ko)
Other versions
KR20100035243A (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 KR1020080094494A priority Critical patent/KR101539045B1/en
Publication of KR20100035243A publication Critical patent/KR20100035243A/en
Application granted granted Critical
Publication of KR101539045B1 publication Critical patent/KR101539045B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/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/103Selection of coding mode or of prediction mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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/117Filters, e.g. for pre-processing or post-processing
    • 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/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • H04N19/122Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type

Abstract

본 발명은 양자화 계수 결정 방법 및 장치와 그를 이용한 영상 부호화/복호화 방법 및 장치에 관한 것이다.The present invention relates to a quantization coefficient determination method and apparatus, and a method and apparatus for image coding / decoding using the same.

본 발명은 양자화 계수를 결정하는 장치에 있어서, 주변 블록의 복잡도를 계산하는 복잡도 계산부; 복잡 정도를 판단하기 위한 임계값을 설정하는 임계값 설정부; 및 복잡도가 임계값 이하인 경우에는 기 설정된 기본 양자화 계수를 현재 블록의 양자화 계수로서 결정하고, 복잡도가 임계값을 초과하는 경우에는 기본 양자화 계수보다 작은 값의 양자화 계수를 현재 블록의 양자화 계수로서 결정하는 양자화 계수 결정부를 포함하는 것을 특징으로 하는 양자화 계수 결정 장치를 제공한다.An apparatus for determining quantization coefficients, the apparatus comprising: a complexity calculator for calculating a complexity of a neighboring block; A threshold value setting unit for setting a threshold value for determining the degree of complexity; And determines a predetermined basic quantization coefficient as a quantization coefficient of the current block if the complexity is less than or equal to a threshold value and determines a quantization coefficient smaller than the basic quantization coefficient as a quantization coefficient of the current block if the complexity exceeds the threshold value And a quantization coefficient determination unit.

본 발명에 의하면, 영상의 특성에 따라 양자화 계수를 적응적으로 결정할 수 있어서, 블록별로 다른 양자화 계수를 이용하여 양자화할 수 있으며, 그를 통해 영상의 특성을 고려한 부호화를 수행할 수 있으므로, 영상의 하나의 픽처 내에 복잡한 특성을 갖는 블록과 평이한 특성을 갖는 블록이 혼재되어 있는 경우에도, 효율적으로 부호화할 수 있어 압축 성능을 향상시킬 수 있다.According to the present invention, a quantization coefficient can be adaptively determined according to characteristics of an image, and quantization can be performed using different quantization coefficients for each block, and coding considering characteristics of an image can be performed through the quantization coefficient. Even if a block having a complex characteristic and a block having a plain characteristic are mixed in the picture of FIG. 5A, the coding can be efficiently performed, and the compression performance can be improved.

영상, 부호화, 복호화, 양자화, 계수, 블록, 복잡도, 적응적 Image, coding, decoding, quantization, coefficient, block, complexity, adaptive

Description

양자화 계수 결정 방법 및 장치와 그를 이용한 영상 부호화/복호화 방법 및 장치{Quantization Parameter Determination Method and Apparatus and Video Encoding/Decoding Method and Apparatus}[0001] The present invention relates to a quantization coefficient determination method and apparatus, and a video encoding / decoding method and apparatus using the same.

본 발명은 양자화 계수 결정 방법 및 장치와 그를 이용한 영상 부호화/복호화 방법 및 장치에 관한 것이다. 더욱 상세하게는, 영상을 부호화하고 복호화하는 데 있어서, 부호화하고자 하는 블록의 특성을 고려하여 블록별로 양자화 계수를 적응적으로 결정하고 결정된 양자화 주파수 계수를 이용하여 부호화함으로써 압축 효율을 향상시키는 방법 및 장치에 관한 것이다.The present invention relates to a quantization coefficient determination method and apparatus, and a method and apparatus for image coding / decoding using the same. More particularly, the present invention relates to a method and an apparatus for improving compression efficiency by encoding quantized coefficients by adaptively determining quantization coefficients on a block-by-block basis in consideration of characteristics of blocks to be encoded, .

MPEG(Moving Picture Experts Group)과 VCEG(Video Coding Experts Group)은 기존의 MPEG-4 Part 2와 H.263 표준안보다 더욱 우수하고 뛰어난 비디오 압축 기술을 개발하였다. 이 새로운 표준안은 H.264/AVC(Advanced video Coding)이라 하며, MPEG-4 Part 10 AVC와 ITU-T Recommendation H.264로 공동 발표되었다.The Moving Picture Experts Group (MPEG) and the Video Coding Experts Group (VCEG) have developed superior video compression techniques that are superior to the existing MPEG-4 Part 2 and H.263 standards. This new standard is called H.264 / AVC (Advanced Video Coding) and is jointly announced as MPEG-4 Part 10 AVC and ITU-T Recommendation H.264.

H.264/AVC(이하 'H.264'라 약칭함)에서는 직교 변환한 성분을 더욱 작은 정수값으로 표현할 수 있으며, 더욱 적은 비트수로 부호화하기 위해서 양자화 과정을 적용하여 압축을 수행한다. 종래의 양자화를 통한 부호화를 부호화기 측면에서 살 펴보면, 현재 부호화하고자 하는 블록의 화소 정보를 예측하고 부호화하고자 하는 실제 블록의 화소 정보와의 차이(Difference) 정보를 이산 코사인 변환(DCT: Discrete Cosine Transform)하여 주파수 계수를 생성하고, 주파수 계수를 다시 주어진 양자화 계수(QP: Quantization Parameter)에 따라 양자화하여 양자화 주파수 계수를 생성한다. 양자화 주파수 계수는 부호화되어 비트스트림의 형태로 복호화기로 전송된다.In H.264 / AVC (hereinafter, abbreviated as H.264), orthogonally transformed components can be represented by a smaller integer value, and compression is performed by applying a quantization process for encoding with a smaller number of bits. The conventional quantization coding is performed on the encoder side to predict pixel information of a current block to be coded and to perform a DCT (Discrete Cosine Transform) operation on difference information between pixel information of an actual block to be coded, ), Generates a frequency coefficient, and quantizes the frequency coefficient according to a given quantization parameter (QP) to generate a quantization frequency coefficient. The quantization frequency coefficients are encoded and transmitted to the decoder in the form of a bitstream.

이때, H.264에서는 블록들을 양자화할 때, 고정된 양자화 계수만을 이용하는데, 고정된 양자화 계수만을 이용하여 양자화하면, 영상의 한 픽처 내에 복잡한 영상 특성을 갖는 블록과 평이한 영상 특성을 갖는 블록이 섞여 있는 경우, 블록마다 다른 영상의 특성을 반영하지 못하여 효율적으로 양자화하기 어려우며, 그로 인해 부호화 효율 또는 압축 효율을 저하하는 문제점이 있다.In this case, in H.264, only a fixed quantization coefficient is used when quantizing the blocks. When quantization is performed using only a fixed quantization coefficient, a block having a complex image characteristic and a block having a normal image characteristic are mixed in one picture of the image , It is difficult to efficiently quantize the characteristics of different images for each block, thereby reducing the coding efficiency or the compression efficiency.

전술한 문제점을 해결하기 위해 본 발명은, 부호화하고자 하는 블록의 특성을 고려하여 블록별로 양자화 계수를 적응적으로 결정하고 결정된 양자화 주파수 계수를 이용하여 부호화함으로써, 영상의 특성을 고려하여 부호화하고 그를 통해 압축 효율을 향상시키는 데 주된 목적이 있다.According to an aspect of the present invention, there is provided a method of encoding an image, comprising the steps of: determining a quantization coefficient for each block in consideration of characteristics of a block to be encoded and encoding the quantization coefficient using the determined quantization frequency coefficient; The main purpose is to improve compression efficiency.

전술한 목적을 달성하기 위해 본 발명은, 양자화 계수를 결정하는 장치에 있어서, 주변 블록의 복잡도를 계산하는 복잡도 계산부; 복잡 정도를 판단하기 위한 임계값을 설정하는 임계값 설정부; 및 복잡도가 임계값 이하인 경우에는 기 설정된 기본 양자화 계수를 현재 블록의 양자화 계수로서 결정하고, 복잡도가 임계값을 초과하는 경우에는 기본 양자화 계수보다 작은 값의 양자화 계수를 현재 블록의 양자화 계수로서 결정하는 양자화 계수 결정부를 포함하는 것을 특징으로 하는 양자화 계수 결정 장치를 제공한다.According to an aspect of the present invention, there is provided an apparatus for determining a quantization coefficient, the apparatus including: a complexity calculator for calculating a complexity of a neighboring block; A threshold value setting unit for setting a threshold value for determining the degree of complexity; And determines a predetermined basic quantization coefficient as a quantization coefficient of the current block if the complexity is less than or equal to a threshold value and determines a quantization coefficient smaller than the basic quantization coefficient as a quantization coefficient of the current block if the complexity exceeds the threshold value And a quantization coefficient determination unit.

또한, 본 발명의 다른 목적에 의하면, 양자화 계수를 결정하는 방법에 있어서, 주변 블록의 복잡도를 계산하는 복잡도 계산 단계; 복잡도를 기 설정된 임계값과 비교하는 비교 단계; 복잡도가 기 설정된 임계값 이하인 경우에는, 기 설정된 기본 양자화 계수를 현재 블록의 양자화 계수로 결정하는 양자화 계수 유지 단계; 및 복잡도가 기 설정된 임계값을 초과하는 경우에는, 기 설정된 기본 양자화 계수보다 작은 값을 현재 블록의 양자화 계수로서 결정하는 양자화 계수 변경 단계를 포함하는 것을 특징으로 하는 양자화 계수 결정 방법을 제공한다.According to another aspect of the present invention, there is provided a method of determining a quantization coefficient, the method comprising: calculating a complexity of a neighboring block; A comparison step of comparing the complexity with a predetermined threshold value; A quantization coefficient holding step of determining a predetermined basic quantization coefficient as a quantization coefficient of the current block if the complexity is equal to or less than a preset threshold value; And a quantization coefficient determination step of determining a value smaller than a predetermined basic quantization coefficient as a quantization coefficient of the current block when the complexity exceeds a preset threshold value.

또한, 본 발명의 또 다른 목적에 의하면, 영상을 부호화하는 장치에 있어서, 현재 블록을 예측하여 예측 블록을 생성하는 예측부; 현재 블록과 예측 블록을 감산하여 잔차 블록을 생성하는 감산부; 잔차 블록을 주파수 영역으로 변환하는 변환부; 주변 블록의 복잡도에 따라 현재 블록의 양자화 계수를 결정하여 변환된 잔차 블록을 양자화하는 양자화부; 및 양자화된 잔차 블록을 부호화하여 부호화 데이터를 생성하는 부호화부를 포함하는 것을 특징으로 하는 영상 부호화 장치를 제공한다.According to another aspect of the present invention, there is provided an apparatus for encoding an image, the apparatus comprising: a prediction unit for predicting a current block to generate a prediction block; A subtractor for subtracting the current block from the predicted block to generate a residual block; A transform unit for transforming the residual block into a frequency domain; A quantization unit for determining a quantization coefficient of a current block according to a complexity of a neighboring block and quantizing the transformed residual block; And an encoding unit encoding the quantized residual block to generate encoded data.

또한, 본 발명의 또 다른 목적에 의하면, 영상을 부호화하는 방법에 있어서, 현재 블록을 예측하여 예측 블록을 생성하는 예측 단계; 현재 블록과 예측 블록을 감산하여 잔차 블록을 생성하는 감산 단계; 잔차 블록을 주파수 영역으로 변환하는 변환 단계; 주변 블록의 복잡도에 따라 현재 블록의 양자화 계수를 결정하여 변환된 잔차 블록을 양자화하는 양자화 단계; 및 양자화된 잔차 블록을 부호화하여 부호화 데이터를 생성하는 부호화 단계를 포함하는 것을 특징으로 하는 영상 부호화 방법을 제공한다.According to another aspect of the present invention, there is provided a method of encoding an image, the method comprising: a prediction step of generating a prediction block by predicting a current block; A subtraction step of subtracting a current block from a prediction block to generate a residual block; A transforming step of transforming the residual block into a frequency domain; A quantization step of quantizing the transformed residual block by determining a quantization coefficient of a current block according to a complexity of a neighboring block; And a coding step of coding the quantized residual block to generate coded data.

또한, 본 발명의 또 다른 목적에 의하면, 영상을 복호화하는 장치에 있어서, 부호화 데이터를 복호화하여 잔차 블록을 추출하는 복호화부; 주변 블록의 복잡도에 따라 현재 블록의 양자화 계수를 결정하고 결정된 현재 블록의 양자화 주파수 계수를 이용하여 잔차 블록을 역 양자화하는 역 양자화부; 역 양자화된 잔차 블록을 역 변환하는 역 변환부; 현재 블록을 예측하여 예측 블록을 생성하는 예측부; 및 역 변환된 잔차 블록과 예측 블록을 가산하여 현재 블록을 복원하는 가산부를 포함하는 것을 특징으로 하는 영상 복호화 장치를 제공한다.According to still another aspect of the present invention, there is provided an apparatus for decoding an image, comprising: a decoding unit decoding a coded data to extract a residual block; A dequantizer for determining a quantization coefficient of a current block according to a complexity of a neighboring block and dequantizing the residual block using the determined quantization frequency coefficient of the current block; An inverse transform unit for inversely transforming the dequantized residual block; A prediction unit for generating a prediction block by predicting a current block; And an adder for adding the inverse transformed residual block and the predicted block to reconstruct the current block.

또한, 본 발명의 또 다른 목적에 의하면, 영상을 복호화하는 방법에 있어서, 부호화 데이터를 복호화하여 잔차 블록을 추출하는 복호화 단계; 주변 블록의 복잡도에 따라 현재 블록의 양자화 계수를 결정하고 잔차 블록을 역 양자화하는 역 양자화 단계; 역 양자화된 잔차 블록을 역 변환하는 역 변환 단계; 현재 블록을 예측하여 예측 블록을 생성하는 예측 단계; 및 역 변환된 잔차 블록과 예측 블록을 가산하여 현재 블록을 복원하는 가산 단계를 포함하는 것을 특징으로 하는 영상 복호화 방법을 제공한다.According to still another aspect of the present invention, there is provided a method of decoding an image, the decoding method comprising: a decoding step of decoding encoded data and extracting a residual block; A dequantization step of determining a quantization coefficient of a current block according to a complexity of a neighboring block and dequantizing the residual block; An inverse transform step of inversely transforming the dequantized residual block; A prediction step of generating a prediction block by predicting a current block; And an addition step of adding the inversely transformed residual block and the prediction block to reconstruct the current block.

이상에서 설명한 바와 같이 본 발명에 의하면, 영상의 특성에 따라 양자화 계수를 적응적으로 결정할 수 있어서, 블록별로 다른 양자화 계수를 이용하여 양자화할 수 있으며, 그를 통해 영상의 특성을 고려한 부호화를 수행할 수 있다. 따라서, 영상의 하나의 픽처 내에 복잡한 특성을 갖는 블록과 평이한 특성을 갖는 블록이 혼재되어 있는 경우에도, 효율적으로 부호화할 수 있어 압축 성능을 향상시킬 수 있다.As described above, according to the present invention, quantization coefficients can be adaptively determined according to characteristics of an image, and quantization can be performed using different quantization coefficients on a block-by-block basis. have. Therefore, even when a block having a complex characteristic and a block having a plain characteristic are mixed in one picture of an image, efficient coding can be performed, and compression performance can be improved.

또한, 본 발명에 의하면, 블록별로 다른 양자화 계수를 이용하여 양자화하는 경우에도 부호화 데이터에 변경된 양자화 계수를 식별하기 위한 비트를 추가로 포함하지 않을 수 있어, 압축 성능을 향상시킬 수 있다.According to the present invention, even when quantization is performed using different quantization coefficients on a block-by-block basis, it is unnecessary to further include bits for identifying quantized coefficients changed in the encoded data, thereby improving compression performance.

이하, 본 발명의 일부 실시예들을 예시적인 도면을 통해 상세하게 설명한다. 각 도면의 구성요소들에 참조부호를 부가함에 있어서, 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 발명을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.Hereinafter, some embodiments of the present invention will be described in detail with reference to exemplary drawings. It should be noted that, in adding reference numerals to the constituent elements of the drawings, the same constituent elements are denoted by the same reference numerals whenever possible, even if they are shown in different drawings. In the following description of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear.

또한, 본 발명의 구성 요소를 설명하는 데 있어서, 제 1, 제 2, A, B, (a), (b) 등의 용어를 사용할 수 있다. 이러한 용어는 그 구성 요소를 다른 구성 요소와 구별하기 위한 것일 뿐, 그 용어에 의해 해당 구성 요소의 본질이나 차례 또는 순 서 등이 한정되지 않는다. 어떤 구성 요소가 다른 구성요소에 "연결", "결합" 또는 "접속"된다고 기재된 경우, 그 구성 요소는 그 다른 구성요소에 직접적으로 연결되거나 접속될 수 있지만, 각 구성 요소 사이에 또 다른 구성 요소가 "연결", "결합" 또는 "접속"될 수도 있다고 이해되어야 할 것이다.In describing the components of the present invention, terms such as first, second, A, B, (a), and (b) may be used. These terms are intended to distinguish the components from other components, and the term does not limit the nature, order or order of the components. When a component is described as being "connected", "coupled", or "connected" to another component, the component may be directly connected or connected to the other component, Quot; may be "connected," "coupled," or "connected. &Quot;

도 1은 본 발명의 일 실시예에 따른 영상 부호화 장치의 구성을 간략하게 나타낸 블록 구성도이다.1 is a block diagram schematically illustrating a configuration of an image encoding apparatus according to an embodiment of the present invention.

본 발명의 일 실시예에 따른 영상 부호화 장치(100)는 영상을 부호화하는 장치로서, 예측부(110), 감산부(120), 변환부(130), 양자화부(140), 부호화부(150), 역 양자화부(160), 역 변환부(170) 및 가산부(180)를 포함하여 구성될 수 있다. 이러한 영상 부호화 장치(100)는 개인용 컴퓨터(PC: Personal Computer), 노트북 컴퓨터, 개인 휴대 단말기(PDA: Personal Digital Assistant), 휴대형 멀티미디어 플레이어(PMP: Portable Multimedia Player), 플레이스테이션 포터블(PSP: PlayStation Portable), 이동통신 단말기(Mobile Communication Terminal) 등일 수 있으며, 각종 기기 또는 유무선 통신망과 통신을 수행하기 위한 통신 모뎀 등의 통신 장치, 영상을 부호화하기 위한 각종 프로그램과 데이터를 저장하기 위한 메모리, 프로그램을 실행하여 연산 및 제어하기 위한 마이크로프로세서 등을 구비하는 다양한 장치를 의미한다.The image encoding apparatus 100 according to an embodiment of the present invention encodes an image and includes a prediction unit 110, a subtractor 120, a transform unit 130, a quantization unit 140, an encoding unit 150 ), An inverse quantization unit 160, an inverse transform unit 170, and an adder 180. The image encoding apparatus 100 may be a personal computer (PC), a notebook computer, a personal digital assistant (PDA), a portable multimedia player (PMP), a PlayStation Portable ), A mobile communication terminal, and the like, and may be a communication device such as a communication modem for performing communication with various devices or wired / wireless communication networks, a memory for storing various programs for encoding an image and data, a program And a microprocessor for calculating and controlling the microprocessor.

예측부(110)는 영상의 현재 블록을 예측하여 예측 블록을 생성한다. 즉, 예측부(110)는 인트라 예측(Intra Prediction) 또는 인터 예측(Inter Prediction) 등을 이용하여 영상에서 부호화하고자 하는 현재 블록(Current Block)을 예측함으로 써 예측 화소값(Predicted Pixel Value)을 각 화소의 화소값으로 갖는 예측 블록(Predicted Block)을 생성한다.The prediction unit 110 generates a prediction block by predicting a current block of an image. That is, the predicting unit 110 predicts a current block to be encoded in an image using Intra Prediction or Inter Prediction, thereby calculating a predicted pixel value (Predicted Pixel Value) And generates a predicted block having pixel values of the pixels.

감산부(120)는 현재 블록에서 예측 블록을 감산하여 잔차 블록(Residual Block)을 생성한다. 즉, 감산부(120)는 현재 블록의 각 화소의 원 화소값(Original Pixel Value)과 예측 블록의 각 화소의 예측 화소값의 차이값을 계산하여 잔차 신호(Residual Signal)를 갖는 잔차 블록을 생성한다.Subtraction unit 120 subtracts the prediction block from the current block to generate a residual block. That is, the subtraction unit 120 calculates a difference value between the original pixel value of each pixel of the current block and the predicted pixel value of each pixel of the prediction block, and generates a residual block having a residual signal do.

변환부(130)는 잔차 블록을 주파수 영역으로 변환한다. 즉, 변환부(130)는 감산부(120)에 의해 생성된 잔차 블록의 잔차 신호를 주파수 영역으로 변환하여 주파수 계수를 갖는 잔차 블록을 생성한다. 여기서, 변환부(130)는 하다마드 변환(Hadamard Transform), 이산 코사인 변환 기반 변환(Discrete Cosine Transform Based Transform) 등과 같은 공간 영역의 화상 신호를 주파수 영역으로 변환하는 다양한 변환 기법을 이용하여 잔차 신호를 주파수 영역으로 변환할 수 있는데, 주파수 영역으로 변환된 잔차 신호가 주파수 계수가 된다.The transforming unit 130 transforms the residual block into the frequency domain. That is, the transform unit 130 transforms the residual signal of the residual block generated by the subtraction unit 120 into a frequency domain, and generates a residual block having a frequency coefficient. Here, the transform unit 130 transforms the residual signal using a variety of transform techniques for transforming a spatial domain image signal, such as Hadamard Transform, Discrete Cosine Transform Based Transform, Frequency domain, and the residual signal transformed into the frequency domain becomes the frequency coefficient.

양자화부(140)는 변환부(130)에 의해 주파수 영역으로 변환된 주파수 계수를 갖는 잔차 블록을 양자화(Quantization)한다. 여기서, 양자화부(140)는 변환된 잔차 블록을 데드존 균일 경계 양자화(DZUTQ: Dead Zone Uniform Threshold Quantization, 이하 'DZUTQ'라 칭함) 또는 양자화 가중치 매트릭스(Quantization Weighted Matrix) 등 다양한 양자화 기법을 이용하여 양자화할 수 있다.The quantization unit 140 quantizes a residual block having a frequency coefficient converted into a frequency domain by the transform unit 130. [ The quantization unit 140 quantizes the transformed residual block using various quantization techniques such as dead zone uniformity threshold quantization (DZUTQ) or a quantization weighted matrix It can be quantized.

또한, 양자화부(140)는 잔차 블록을 양자화하는 데 있어서, 현재 블록의 주변에 있는 주변 블록의 복잡도에 따라 현재 블록의 양자화 계수(QP: Quantization Parameter)를 결정하여 양자화한다. 즉, 양자화부(140)는 영상의 각 블록마다 동일한 양자화 계수를 이용하여 양자화하는 것이 아니라, 영상의 각 블록별로 양자화 계수를 적응적으로 결정하여 양자화한다. 이때, 각 블록별로 양자화 계수를 결정하는 기준은 영상의 특성, 더욱 구체적으로는 블록의 복잡도이다. 이를 위해, 양자화부(140)는 현재 블록의 주변에 있는 주변 블록의 복잡도를 계산하고, 계산된 주변 블록의 복잡도를 기 설정된 임계값과 비교하여, 계산된 주변 블록의 복잡도가 기 설정된 임계값을 초과하는 경우에는 현재 블록의 양자화 계수를 기 설정된 기본 양자화 계수보다 작은 값으로 변경할 수 있다. 양자화부(140)가 주변 블록의 복잡도를 계산하고 계산된 복잡도를 이용하여 현재 블록의 양자화 계수를 결정하는 것에 대해서는 후술하는 과정에서 도 2를 통해 상세히 설명한다.In quantization of the residual block, the quantization unit 140 determines a quantization parameter (QP) of the current block according to the complexity of the neighboring block around the current block and quantizes the quantization coefficient. That is, the quantization unit 140 does not quantize each block of the image using the same quantization coefficient, but quantizes the quantization coefficient adaptively for each block of the image and quantizes the quantized coefficient. In this case, the criterion for determining the quantization coefficient for each block is the characteristic of the image, more specifically, the complexity of the block. For this purpose, the quantization unit 140 calculates the complexity of the neighboring blocks around the current block, compares the complexity of the calculated neighboring blocks with a preset threshold value, and determines the complexity of the calculated neighboring blocks to a predetermined threshold value The quantization coefficient of the current block can be changed to a value smaller than a predetermined basic quantization coefficient. The quantization unit 140 calculates the complexity of the neighboring blocks and determines the quantization coefficients of the current block using the calculated complexity will be described in detail with reference to FIG. 2 in the following description.

부호화부(150)는 양자화부(140)에 의해 양자화된 잔차 블록의 양자화 주파수 계수들을 부호화하여 부호화 데이터를 생성한다. 이러한 부호화 기술로서는 엔트로피 부호화(Entropy Encoding) 기술이 사용될 수 있으나, 반드시 이에 한정하지 않고 다른 다양한 부호화 기술이 사용될 수도 있을 것이다.The encoding unit 150 encodes the quantization frequency coefficients of the residual block quantized by the quantization unit 140 to generate encoded data. As such an encoding technique, entropy encoding technology may be used, but various other encoding techniques may be used without being limited thereto.

또한, 부호화부(150)는 양자화 주파수 계수들을 부호화한 비트열뿐만 아니라 부호화된 비트열을 복호화하는 데 필요한 다양한 정보들을 부호화 데이터에 포함시킬 수 있다. 즉, 부호화 데이터는 부호화된 블록 형태(CBP: Coded Block Pattern), 델타 양자화 계수(Delta Quantization Parameter) 및 양자화 주파수 계수가 부호화된 비트열이 포함되는 제 1 필드와 예측에 필요한 정보(예를 들어, 인트라 예측의 경우 인트라 예측 모드 또는 인터 예측의 경우 움직임 벡터 등)를 위한 비트가 포 함되는 제 2 필드를 포함한다.In addition, the encoding unit 150 may include not only the bit stream obtained by encoding the quantized frequency coefficients, but also various information necessary for decoding the encoded bit stream in the encoded data. That is, the coded data includes a first field including a coded block pattern (CBP), a delta quantization parameter, and a quantized frequency coefficient coded bit stream and information necessary for prediction (for example, A motion vector in the case of intra prediction, or a motion vector in the case of inter prediction).

부호화 데이터에 포함되는 델타 양자화 계수는 현재 블록의 양자화 계수와 이전 블록의 양자화 계수의 차이에 대한 정보를 나타내는 비트이다. H.264와 같이 통상적인 양자화에서, 부호화기는 블록의 양자화 계수가 변경되었을 때, 두 양자화 계수의 값의 차이를 비트로서 표현한 델타 양자화 계수를 부호화 데이터에 포함시키고, 복호화기에서는 부호화 데이터로부터 델타 양자화 계수를 추출하여 부호화기에서 사용한 양자화 계수와 같은 양자화 계수로 역 양자화한다.The delta quantization coefficient included in the encoded data is a bit representing information on the difference between the quantization coefficient of the current block and the quantization coefficient of the previous block. In the conventional quantization such as H.264, when the quantization coefficient of the block is changed, the encoder includes the delta quantization coefficient representing the difference between the values of the two quantization coefficients as bits in the encoded data, and in the decoder, And extracts the coefficients and dequantizes them with a quantization coefficient equal to the quantization coefficient used in the encoder.

하지만, 본 발명에서, 부호화부(150)는 양자화부(140)에 의해 양자화 계수가 변경된 경우, 양자화 주파수 계수를 부호화한 후, 변경된 현재 블록의 양자화 계수를 기 설정된 기본 양자화 계수로 재변경할 수 있다. 이와 같이, 부호화부(150)는 변경된 현재 블록의 양자화 계수를 기 설정된 기본 양자화 계수로 재변경함으로써, 양자화 계수의 값의 차이에 대한 정보를 위해 추가적인 비트를 할당하지 않도록 할 수 있으며, 이를 통해 압축 성능을 높일 수 있다. 이 경우, 영상 복호화 장치에서 부호화 데이터를 역 양자화할 때에는 양자화부(140)에서 현재 블록의 양자화 계수를 결정한 방식과 동일한 방식으로 현재 블록의 양자화 계수를 결정함으로써 동일한 양자화 계수를 이용하여 역 양자화할 수 있다.However, in the present invention, when the quantization coefficient is changed by the quantization unit 140, the encoding unit 150 may encode the quantization frequency coefficient, and then re-change the quantization coefficient of the changed current block to a predetermined basic quantization coefficient . In this way, the encoding unit 150 can prevent the additional bit from being allocated for information on the difference between the values of the quantization coefficients by re-changing the quantization coefficients of the changed current block to predetermined basic quantization coefficients, Performance can be increased. In this case, when the image data is inversely quantized by the image decoding apparatus, the quantization coefficient of the current block is determined in the same manner as the method of determining the quantization coefficient of the current block in the quantization unit 140 so that the inverse quantization can be performed using the same quantization coefficient have.

역 양자화부(160)는 양자화부(140)에 의해 양자화된 잔차 블록을 역 양자화(Inverse Quantization)하여 역 양자화된 잔차 블록을 생성한다. 즉, 역 양자화부(160)는 양자화된 잔차 블록의 양자화 주파수 계수를 역 양자화하여 역 양자화된 주파수 계수를 갖는 잔차 블록을 생성한다. 이때, 역 양자화부(160)는 양자화 부(140)로부터 전달되는 현재 블록의 양자화 계수에 따라 양자화된 잔차 블록을 역 양자화할 수 있다. 즉, 양자화부(140)가 기본 양자화 계수를 이용하여 양자화한 경우에는 역 양자화부(160)도 기본 양자화 계수를 이용하여 역 양자화하고, 양자화부(140)가 기본 양자화 계수보다 작은 값의 양자화 계수를 이용하여 양자화한 경우에는 역 양자화부(160)도 양자화부(140)에서 사용한 양자화 계수와 동일한 양자화 계수를 이용하여 역 양자화한다.The inverse quantization unit 160 inverse quantizes the quantized residual block by the quantization unit 140 to generate a dequantized residual block. That is, the dequantizer 160 dequantizes the quantized frequency coefficients of the quantized residual block to generate a residual block having the dequantized frequency coefficients. At this time, the de-quantization unit 160 may dequantize the quantized residual block according to the quantization coefficient of the current block transmitted from the quantization unit 140. [ That is, when the quantization unit 140 quantizes using the basic quantization coefficient, the inverse quantization unit 160 also performs inverse quantization using the basic quantization coefficient, and the quantization unit 140 quantizes the quantization coefficient having a value smaller than the basic quantization coefficient The inverse quantization unit 160 also performs inverse quantization using the same quantization coefficient as the quantization coefficient used in the quantization unit 140. For example,

역 변환부(170)는 역 양자화된 잔차 블록을 역 변환(Inverse Transform)하여 역 변환된 잔차 블록을 생성한다. 즉, 역 변환부(170)는 역 양자화된 잔차 블록의 역 양자화 주파수 계수를 공간 영역으로 역 변환하여 화소값을 갖는 역 변환된 잔차 블록을 생성한다.The inverse transform unit 170 inverse transforms the inversely quantized residual block to generate an inverse transformed residual block. That is, the inverse transform unit 170 inversely transforms the dequantized frequency coefficients of the dequantized residual block into a spatial domain, and generates an inverse transformed residual block having a pixel value.

가산부(180)는 예측부(110)에 의해 예측된 예측 블록과 역 변환부(170)에 의해 역 변환된 잔차 블록을 가산하여 현재 블록을 복원하고 복원된 현재 블록을 예측부(110)로 출력한다.The adder 180 restores the current block by adding the predicted block predicted by the predictor 110 and the inverse transformed residual block by the inverse transform unit 170 and outputs the restored current block to the predictor 110 Output.

도 1에서는 도시하지 않았지만, 예측부(110)와 가산부(180) 사이에는 디블로킹 필터부(미도시)가 추가로 연결될 수 있다. 디블로킹 필터부는 가산부(180)에 의해 복원된 현재 블록을 디블로킹 필터링(Deblocking Filtering)한다. 여기서, 디블로킹 필터링이란 영상을 블록 단위로 부호화하면서 발생하는 블록 왜곡을 감소시키는 작업을 말하며, 블록 경계와 매크로블록 경계에 디블로킹 필터를 적용하거나 매크로블록 경계에만 디블로킹 필터를 적용하거나 디블로킹 필터를 사용하지 않는 방법 중 하나를 선택적으로 사용할 수 있다.Although not shown in FIG. 1, a deblocking filter unit (not shown) may be additionally connected between the predictor 110 and the adder 180. The deblocking filter unit deblocking filters the current block restored by the adder 180. Here, deblocking filtering refers to a task of reducing block distortion caused by coding an image block by block. The deblocking filter may be applied to a block boundary or a macro block boundary, a deblocking filter may be applied to a macro block boundary, Can be selectively used.

한편, 도 1을 통해 전술한 양자화부(140)는 현재 블록의 양자화 계수를 결정하는 양자화 계수 결정부와 결정된 양자화 계수로 양자화하는 양자화 처리부로 구성될 수 있다. 통상적인 방식의 양자화에서, 양자화 처리부는 후술하는 바와 같이, 고정된 양자화 계수를 이용하여 양자화한다. 예를 들어, 잔차 블록의 잔차 신호를 DCT 변환을 수행하여 양자화하는 경우, 기본적인 양자화 동작은 수학식 1과 같이 나타낼 수 있다.1, the quantization unit 140 may include a quantization coefficient determination unit for determining a quantization coefficient of a current block and a quantization processing unit for quantizing the quantization coefficient using the determined quantization coefficient. In a conventional quantization, the quantization processing unit quantizes using a fixed quantization coefficient, as described later. For example, when the residual signal of the residual block is quantized by performing the DCT transform, the basic quantization operation can be expressed by Equation (1).

Figure 112008067660658-pat00001
Figure 112008067660658-pat00001

수학식 1에서, Y ij 는 잔차 블록의 각 잔차 신호를 DCT변환하고 스케일링(Scaling)한 후 행렬로 표현되는 원소들을 나타내며, Q step 은 양자화 단계(Quantization Step)의 크기를 나타낸다.In Equation (1), Y ij represents the elements expressed by a matrix after DCT transforming and scaling each residual signal of the residual block, and Q step represents the size of the quantization step.

H.264 표준에 따르면, 양자화 계수의 값과 양자화 단계의 값이 비례한다. 양자화 계수가 6씩 증가하면 양자화 단계의 크기는 두 배씩 증가한다. 결과적으로 양자화 계수가 신호 대 잡음비(SNR: Signal to Noise Ratio)와 비례하여 양자화 계수가 변화해도 신호대 잡음비의 변화량은 크게 변동하지 않고 일정하게 유지할 수 있게 되었다.According to the H.264 standard, the value of the quantization coefficient is proportional to the value of the quantization step. If the quantization coefficient increases by 6, the size of the quantization step increases by two. As a result, even if the quantization coefficient changes in proportion to the signal-to-noise ratio (SNR), the variation of the signal-to-noise ratio can be kept constant without fluctuating significantly.

수학식 1과 같이 수행되는 기본적인 양자화 동작을 실제 양자화 과정에 적용되도록 나타내면 수학식 2와 수학식 3으로 나타낼 수 있다.Equation (2) and Equation (3) can be expressed by expressing a basic quantization operation performed as Equation (1) to be applied to an actual quantization process.

Figure 112008067660658-pat00002
Figure 112008067660658-pat00002

Figure 112008067660658-pat00003
Figure 112008067660658-pat00003

수학식 2에서, W ij 는 잔차 블록의 각 잔차 신호를 DCT변환한 후 행렬로 표현되는 원소들을 나타내며, MF는 양자화 계수에 따라 결정되는 증배 계수(Multiplication Factor)를 나타내며, f는 양자화 과정에서의 반올림(Round)으로 인한 오류와 데드존(Dead Zone)의 크기를 결정하는 요소로서 현재 블록이 인트라 예측으로 예측된 경우에는 2 qbits /3이고, 인터 예측으로 예측된 경우에는 2 qbits /6으로 고정된다. 여기서, qbits는 15+floor(QP/6)을 나타내며, floor는 내림(Round Down) 연산을 의미한다.In Equation (2), W ij denotes elements represented by a matrix after DCT transforming each residual signal of the residual block, MF denotes a multiplication factor determined according to a quantization coefficient, f denotes a quantization coefficient It is an element that determines the error caused by the round and the size of the dead zone. It is 2 qbits / 3 when the current block is predicted by intra prediction, and 2 qbits / 6 when predicted by inter prediction. do. Here, qbits represents 15 + floor (QP / 6), and floor represents a round down operation.

H.264에서는 양자화 계수의 값을 0부터 51까지의 값을 갖도록 규정하기 때문에, 양자화 단계의 크기의 최대값은 최소값의 256배가 된다. 양자화 단계의 크기의 역수와 비트율이 거의 비례하고 양자화 단계의 크기의 최소값과 최대값의 차이가 큰 H.264가 MPEG-2보다 낮은 비트율에서 높은 비트율까지 대응할 수 있다. 양자화 계수가 6씩 증가할 때마다 양자화 단계의 크기는 두 배씩 커진다는 개념의 도입은 역 양자화의 처리를 용이하게 한다.In H.264, since the value of the quantization coefficient is defined to have a value from 0 to 51, the maximum value of the quantization step size is 256 times the minimum value. H.264 with a large difference between the minimum value and the maximum value of the quantization step size can correspond to a bit rate lower to a higher bit rate than that of MPEG-2. The introduction of the concept that the size of the quantization step is doubled every time the quantization coefficient is increased by 6 facilitates the processing of the inverse quantization.

H.264에서는 양자화를 사용하기 때문에, 양자화를 사용하지 않는 다른 방법 과 비교할 때 압축 효율을 향상시킬 수 있다. 하지만, H.264와 같은 통상적인 양자화에서는 고정된 양자화 계수만을 이용하기 때문에, 영상의 특성에 따라 블록을 양자화하기 어려워 효율적으로 압축할 수 없다. 예를 들어, 블록 내의 각 화소들의 값의 변화가 일정 크기 이상으로 큰 경우에는 블록의 복잡도가 크다고 판단할 수 있고, 블록 내의 각 화소들의 값의 변화가 일정 크기보다 작은 경우에는 블록의 복잡도가 작다고 판단할 수 있다. 영상을 구성하는 블록들의 복잡도가 작은 경우에는 고정된 양자화 계수를 이용하여 양자화해도 압축의 성능에 큰 영향을 미치지 않지만, 영상을 구성하는 블록들의 복잡도가 큰 경우에는 고정된 양자화 계수를 이용하여 양자화하면 압축 성능에 큰 영향을 미칠 수 있다.Because H.264 uses quantization, compression efficiency can be improved when compared with other methods that do not use quantization. However, since the conventional quantization such as H.264 uses only the fixed quantization coefficient, it is difficult to quantize the block according to the characteristics of the image, so that it can not be efficiently compressed. For example, if the change in the value of each pixel in the block is larger than a certain size, it can be determined that the complexity of the block is large. If the change in the value of each pixel in the block is smaller than a certain size, the complexity of the block is small It can be judged. When the complexity of blocks constituting an image is small, quantization using a fixed quantization coefficient does not greatly affect the performance of compression. However, when the complexity of blocks constituting an image is large, quantization is performed using a fixed quantization coefficient The compression performance may be greatly affected.

본 발명에서는 H.264와 같이, 고정된 양자화 계수만을 이용하여 양자화하는 기존의 양자화 방식과는 달리, 영상의 하나의 픽처를 구성하는 블록마다 그 특성에 따라 가변적인 양자화 계수를 이용하여 양자화함으로써, 영상의 특성을 반영하여 양자화한다. 이때, 영상의 특성은 영상의 복잡도일 수 있는데, 블록마다 복잡도를 계산하고 계산된 복잡도에 따라 양자화 계수를 결정할 수 있다.In the present invention, unlike the existing quantization method of quantizing using only a fixed quantization coefficient, such as H.264, each block constituting one picture of an image is quantized using a variable quantization coefficient according to the characteristic, Quantization is performed by reflecting the characteristics of the image. In this case, the characteristic of the image may be the complexity of the image. The complexity may be calculated for each block, and the quantization coefficient may be determined according to the calculated complexity.

양자화부(140)를 구성하는 양자화 계수 결정부는 독립적인 하드웨어 또는 소프트웨어 모듈로서 존재하는 양자화 계수 결정 장치될 수 있는데, 도 2와 같이 구성될 수 있다.The quantization coefficient determination unit included in the quantization unit 140 may be a quantization coefficient determination apparatus that exists as an independent hardware or software module, and may be configured as shown in FIG.

도 2는 본 발명의 일 실시예에 따른 양자화 계수 결정 장치의 구성을 간략하게 나타낸 블록 구성도이다.FIG. 2 is a block diagram showing a configuration of a quantization coefficient determination apparatus according to an embodiment of the present invention. Referring to FIG.

본 발명의 일 실시예에 따른 양자화 계수 결정 장치(200)는 복잡도 계산 부(210), 임계값 설정부(220) 및 양자화 계수 결정부(230)를 포함하여 구성될 수 있다.The apparatus 200 for determining a quantization coefficient according to an embodiment of the present invention may include a complexity calculation unit 210, a threshold value setting unit 220, and a quantization coefficient determination unit 230.

복잡도 계산부(210)는 현재 블록의 주변에 있는 주변 블록의 복잡도를 계산한다. 여기서, 주변 블록이란 현재 블록의 주위에 있는 하나 이상의 블록이 될 수 있는데, 특히 현재 블록을 부호화하기 이전에 이미 부호화되거나 부호화된 후 복호화되어 복원된 블록일 수 있다. 주변 블록은 현재 블록을 부호화하기 이전에 이미 부호화되거나 부호화된 후 복호화되어 복원된 블록들 중 현재 블록과 인접해 있는 블록인 인접 블록들일 수도 있으며, 인접 블록들 중 하나 이상이 선택적으로 이용될 수 있다. 즉, 도 3에 도시한 바와 같이, 주변 블록이 현재 블록과 인접해 있는 좌측 블록, 상단 좌측 블록, 상단 블록, 상단 우측 블록 등일 수 있지만, 반드시 이에 한정되지 않고, 현재 블록이 부호화되기 전에 이미 부호화되거나 부호화되고 복호화되어 복원된 블록 중에 현재 블록과 인접한 일부 또는 모든 블록일 수도 있으며, 현재 블록과 인접하지 않은 일부 또는 모든 블록일 수 있다.The complexity calculation unit 210 calculates the complexity of neighboring blocks around the current block. Here, the neighboring block may be one or more blocks around the current block. In particular, the neighboring block may be a block that has been already encoded or encoded before decoding the current block, and decoded and reconstructed. The neighboring blocks may be neighboring blocks that are adjacent to the current block among the reconstructed blocks that have been already encoded or encoded before encoding the current block, and one or more of the adjacent blocks may be selectively used . That is, as shown in FIG. 3, the neighboring block may be a left block adjacent to the current block, an upper left block, an upper block, an upper right block, and the like, but the present invention is not limited thereto. Or may be some or all of the blocks adjacent to the current block and may be some or all of the blocks that are not adjacent to the current block.

복잡도 계산부(210)는 주변 블록의 복잡도를 계산하는 데 있어서, 하나 이상의 주변 블록의 계수 비트율(Coefficient Bitrate)을 이용하여 주변 블록의 복잡도를 계산할 수 있다. 주변 블록의 복잡도는 주변 블록들이 얼마나 복잡한 영상 특성을 갖는 블록인지를 나타내는 지표가 될 수 있는데, 주변 블록의 계수 비트율의 평균으로 계산될 수 있다. 이 경우, 주변 블록이 도 3에 도시한 바와 같다면, 수학식 4를 이용하여 주변 블록의 복잡도(adj coeff )를 계산할 수 있다.The complexity calculator 210 may calculate a complexity of a neighboring block by using a coefficient bitrate of one or more neighboring blocks in calculating a complexity of a neighboring block. The complexity of the neighboring blocks can be an indicator of how complex the neighboring blocks are with the image characteristics, which can be calculated as the average of the coefficient bit rates of neighboring blocks. In this case, if neighboring blocks are as shown in FIG. 3, the complexity ( adj coeffff ) of the neighboring blocks can be calculated using Equation (4).

Figure 112008067660658-pat00004
Figure 112008067660658-pat00004

수학식 4에서, a coeff 는 현재 블록의 좌측에 위치한 좌측 블록의 계수 비트율을 나타내고, b coeff 는 현재 블록의 상단에 위치한 상단 블록의 계수 비트율을 나타내며, c coeff 는 현재 블록의 상단 우측에 위치한 상단 우측 블록의 계수 비트율을 나타내며, d coeff 는 현재 블록의 상단 좌측에 위치한 상단 좌측 블록의 계수 비트율을 나타낸다.In Equation (4), a coeff represents the coefficient bit rate of the left block located on the left side of the current block, b coeff represents the coefficient bit rate of the upper block located at the upper end of the current block, c coeff represents the coefficient bit rate of the upper D coeff represents the coefficient bit rate of the upper left block located at the upper left of the current block.

여기서, 블록의 계수 비트율이란 블록당 양자화 주파수 계수가 부호화되어 생성되는 비트열의 비트수를 말한다. 예를 들어, 현재 블록의 좌측 블록(a coeff ) 내의 양자화 주파수 계수를 부호화하여 생성되는 비트열이 "00110011101100"라고 가정하면, 좌측 블록(a coeff )의 계수 비트율은 14이다. 따라서, 예를 들어, a coeff 가 10, b coeff 가 20, c coeff 가 30, d coeff 가 40이라면, 현재 블록의 주변 블록의 복잡도(adj coeff ) = (10 + 20 + 30 + 40) / 4 = 25가 된다.Here, the coefficient bit rate of the block refers to the number of bits of the bit stream generated by encoding the quantization frequency coefficient per block. For example, assuming that the bit stream generated by coding the quantization frequency coefficient in the left block a coeff of the current block is "00110011101100", the coefficient bit rate of the left block a coeff is 14. Therefore, for example, if a coeff is 10, b coeff is 20, c coeff is 30, and d coeff is 40, the complexity ( adj coeffff ) of the neighboring blocks of the current block = (10 + 20 + 30 + 40) / 4 = 25.

임계값 설정부(220)는 주변 블록의 복잡 정도를 판단하기 위한 임계값을 설정한다. 복잡도 계산부(210)에 의해 계산되는 주변 블록의 복잡도로 그 복잡한 정도를 평가하기 어렵다. 따라서, 주변 블록의 복잡도를 평가하기 위해서는 평가를 위한 기준이 되는 임계값을 적절하게 설정해야 한다.The threshold value setting unit 220 sets a threshold value for determining the degree of complexity of a neighboring block. It is difficult to evaluate the degree of complexity with the complexity of the neighboring blocks calculated by the complexity calculation unit 210. [ Therefore, in order to evaluate the complexity of a neighboring block, a threshold value serving as a criterion for evaluation should be appropriately set.

이와 같이, 주변 블록의 복잡 정도를 판단하기 위한 임계값은 미리 계산되어 임계값 설정부(220)에 입력하여 설정될 수도 있지만, 임계값 설정부(220)가 현재 블록의 주변 블록을 이용하여 적응적으로 임계값을 결정할 수 있다. 임계값 설정부(220)가 적응적으로 임계값을 결정하는 경우, 임계값은 현재 블록을 부호화하기 전에 이미 부호화된 블록의 계수 비트율을 이용하여 결정될 수 있는데, 이미 부호화된 블록은 이미 부호화된 블록이라면 현재 픽처 내의 모든 블록 또는 일부 블록일 수 있다. 임계값을 이미 부호화된 블록의 계수 비트율을 이용하여 계산하는 것을 수학식으로 표현하면 수학식 5와 같이 나타낼 수 있다.The threshold value for determining the degree of complexity of the neighboring blocks may be calculated in advance and input to the threshold value setting unit 220. The threshold value setting unit 220 may be configured to adapt The threshold value can be determined. When the threshold value setting unit 220 adaptively determines the threshold value, the threshold value may be determined using the coefficient bit rate of the block that has already been coded before coding the current block. It may be all blocks or some blocks in the current picture. The threshold value is calculated using the coefficient bit rate of the already coded block.

Figure 112008067660658-pat00005
Figure 112008067660658-pat00005

수학식 5에서, n은 현재 블록의 번호를 나타내며, MBcoeff는 블록의 계수 비트율을 나타내며, i는 이미 부호화된 블록의 번호를 나타낸다.In Equation (5), n represents the number of the current block, MBcoeff represents the coefficient bit rate of the block, and i represents the number of the block already coded.

양자화 계수 결정부(230)는 복잡도 계산부(210)에 의해 계산된 주변 블록의 복잡도에 따라 현재 블록의 양자화 계수를 결정한다. 즉, 양자화 계수 결정부(230)는 주변 블록의 복잡도가 작은 경우에는 현재 블록의 양자화 계수를 기본으로 설정된 양자화 계수로 결정하고, 주변 블록의 복잡도가 큰 경우에는 효율적으로 양자화하기 위해 기본으로 설정된 양자화 계수보다 작은 값의 양자화 계수로 결정한다. 이 경우, 주변 블록의 복잡도가 큰지 또는 작은지 여부를 판단하기 위해서는 소정의 기준이 필요하다.The quantization coefficient determination unit 230 determines the quantization coefficient of the current block according to the complexity of the neighboring block calculated by the complexity calculation unit 210. [ That is, when the complexity of the neighboring block is small, the quantization coefficient determiner 230 determines the quantization coefficient of the current block as a quantization coefficient set as a basis, and when the complexity of the neighboring block is large, Is determined as a quantization coefficient smaller than the coefficient. In this case, a predetermined criterion is required to determine whether the complexity of the neighboring block is large or small.

이를 위해, 양자화 계수 결정부(230)는 복잡도 계산부(210)에 의해 계산된 주변 블록의 복잡도와 임계값 설정부(220)에 의해 기 설정된 임계값을 비교하여, 주변 블록의 복잡도가 기 설정된 임계값 이하인 경우에는 기 설정된 기본 양자화 계수를 현재 블록의 양자화 계수로서 결정하며, 주변 블록의 복잡도가 기 설정된 임계값을 초과하는 경우에는 기 설정된 기본 양자화 계수보다 작은 값의 양자화 계수를 현재 블록의 양자화 계수로서 결정할 수 있다.To this end, the quantization coefficient determination unit 230 compares the complexity of the neighboring block calculated by the complexity calculation unit 210 with a preset threshold value by the threshold value setting unit 220, And determines a predetermined basic quantization coefficient as a quantization coefficient of the current block. If the complexity of a neighboring block exceeds a predetermined threshold value, a quantization coefficient smaller than a predetermined basic quantization coefficient is quantized Can be determined as a coefficient.

즉, 주변 블록의 복잡도가 기 설정된 임계값 이하인 경우에는 주변 블록의 복잡도가 크지 않은 것으로 판단하여 기본 양자화 계수를 현재 블록의 양자화 계수로서 결정하는 것이고, 주변 블록의 복잡도가 기 설정된 임계값을 초과하는 경우에는 주변 블록의 복잡도가 큰 것으로 판단하여 효율적인 양자화를 위해 기본 양자화 계수보다 작은 값의 양자화 계수를 현재 블록의 양자화 계수로 결정함으로써, 작은 양자화 단계로 세밀하게 양자화할 수 있도록 하여 복잡한 영상의 특성에 맞는 양자화를 할 수 있도록 한다. 여기서, 기본 양자화 계수란 영상 부호화 장치(100)와 후술할 영상 복호화 장치에서 사전에 기본적으로 사용하기로 약속한 양자화 계수를 말하며, H.264에 따른 양자화 과정에서 사용하는 양자화 계수와 같이 고정된 값을 갖는다That is, when the complexity of the neighboring block is less than or equal to a predetermined threshold value, it is determined that the complexity of the neighboring block is not large and the basic quantization coefficient is determined as the quantization coefficient of the current block. If the complexity of the neighboring block exceeds a predetermined threshold It is determined that the complexity of the neighboring block is large and the quantization coefficient of the current block is determined as the quantization coefficient of the value smaller than the basic quantization coefficient for efficient quantization so that it can be quantized to a small quantization step, So that the quantization can be properly performed. Here, the basic quantization coefficient refers to a quantization coefficient promised to be basically used in advance by the image encoding apparatus 100 and a video decoding apparatus to be described later, and is a fixed value such as a quantization coefficient used in a quantization process according to H.264 And

여기서, 기 설정된 기본 양자화 계수보다 작은 값의 양자화 계수는 기본 양자화 계수의 값보다 작은 값이라면 어느 값을 가질 수 있다. 예를 들어, 기본 양자화 계수가 50이라면, 50보다 작은 1 내지 49 중 어느 한 값을 갖는 양자화 계수가 현재 블록의 양자화 계수로서 결정될 수 있고, 기본 양자화 계수가 10이라면 10보 다 작은 1 내지 9 중 어느 한 값을 갖는 양자화 계수가 현재 블록의 양자화 계수로서 결정될 수 있다.Here, the quantization coefficient having a value smaller than the predetermined basic quantization coefficient may have any value if it is smaller than the value of the basic quantization coefficient. For example, if the basic quantization coefficient is 50, a quantization coefficient having a value of 1 to 49 smaller than 50 can be determined as a quantization coefficient of the current block, and if the basic quantization coefficient is 10, 1 to 9 The quantization coefficient having a certain value can be determined as the quantization coefficient of the current block.

또한, 기 설정된 기본 양자화 계수보다 작은 값의 양자화 계수는 전술한 바와 같이, 기본 양자화 계수의 값보다 작은 값 중 주변 블록의 복잡도를 이용하여 특정되는 값을 가질 수 있다. 예를 들어, 주변 블록의 복잡도가 기 설정된 임계값을 초과한 경우, 그 초과한 비율에 따라 기본 양자화 계수보다 작아지는 값의 비율을 결정할 수 있다. 주변 블록의 복잡도가 기 설정된 임계값을 10씩 초과할 때마다 기본 양자화 계수의 값에서 1씩 뺀 값을 갖는 양자화 계수를 현재 블록의 양자화 계수로 결정할 수 있다.As described above, the quantization coefficient having a value smaller than the predetermined basic quantization coefficient may have a value specified using the complexity of the neighboring block among the values smaller than the value of the basic quantization coefficient. For example, when the complexity of a neighboring block exceeds a predetermined threshold value, a ratio of a value smaller than the basic quantization coefficient can be determined according to the exceeding ratio. The quantization coefficient having a value obtained by subtracting 1 from the value of the basic quantization coefficient may be determined as the quantization coefficient of the current block every time the complexity of the neighboring block exceeds a predetermined threshold by 10.

도 4는 본 발명의 일 실시예에 따른 양자화 계수 결정 방법을 설명하기 위한 순서도이다.4 is a flowchart illustrating a method of determining a quantization coefficient according to an embodiment of the present invention.

양자화 계수 결정 장치(200)는 현재 블록의 양자화 계수를 결정하기 위해, 현재 블록의 주변에 있는 주변 블록의 복잡도를 계산한다(S410). 이때, 양자화 계수 결정 장치(200)는 현재 블록을 부호화하기 이전에 미리 부호화한 블록들 또는 그 블록들 중 현재 블록과 인접한 하나 이상의 블록들을 주변 블록으로서 선정할 수 있고, 선정된 하나 이상의 주변 블록들의 계수 비트율을 평균함으로써 주변 블록의 복잡도를 계산할 수 있다.In order to determine the quantization coefficient of the current block, the quantization coefficient determination apparatus 200 calculates a complexity of a neighboring block around the current block (S410). At this time, the quantization coefficient determination apparatus 200 may select one or more blocks previously coded before coding the current block or one of the blocks adjacent to the current block as neighboring blocks, The complexity of the neighboring blocks can be calculated by averaging the coefficient bit rates.

주변 블록의 복잡도가 계산되면, 양자화 계수 결정 장치(200)는 계산된 주변 블록의 복잡도와 기 설정된 임계값을 비교하여 주변 블록의 복잡도가 기 설정된 임계값을 초과하는지 여부를 판단하고(S420), 주변 블록의 복잡도가 기 설정된 임계 값 이하인 경우에는 주변 블록의 복잡 정도가 크지 않다고 판단하여 기 설정된 기본 양자화 계수를 현재 블록의 양자화 계수로서 결정하고(S430), 주변 블록의 복잡도가 기 설정된 임계값을 초과하는 경우에는 주변 블록의 복잡 정도가 크다고 판단하여 기본 양자화 계수보다 작은 값을 갖는 양자화 계수를 현재 블록의 양자화 계수로서 결정한다(S440).When the complexity of the neighboring block is calculated, the quantization-coefficient determination apparatus 200 compares the complexity of the calculated neighboring block with a preset threshold value to determine whether the complexity of the neighboring block exceeds a predetermined threshold value (S420) If the complexity of the neighboring block is less than or equal to the predetermined threshold value, it is determined that the degree of complexity of the neighboring block is not large, and the predetermined basic quantization coefficient is determined as the quantization coefficient of the current block (S430) If it is determined that the complexity of the neighboring block is large, the quantization coefficient having a value smaller than the basic quantization coefficient is determined as the quantization coefficient of the current block (S440).

도 2 내지 도 4를 통해 전술한 바와 같은, 양자화 계수 결정 장치(200)를 이용하면, 영상의 블록별로 블록의 영상 특성에 적합한 양자화 계수를 적응적으로 결정할 수 있고, 양자화부(140)는 블록별로 적응적으로 결정된 양자화 계수를 이용하여 효율적으로 양자화할 수 있다.2 to 4, the quantization coefficient determining unit 200 can adaptively determine a quantization coefficient suitable for an image characteristic of a block for each block of an image, and the quantization unit 140 quantizes the block It is possible to quantize efficiently using the quantization coefficients determined adaptively.

이하에서는 도 5를 통해 양자화 계수 결정 장치(200)에 의해 결정된 양자화 계수를 이용하여 양자화함으로써 영상을 부호화하는 과정에 대해 설명한다.Hereinafter, a process of encoding an image by quantizing using the quantization coefficient determined by the quantization coefficient determination apparatus 200 will be described with reference to FIG.

도 5는 본 발명의 일 실시예에 따른 영상 부호화 방법을 설명하기 위한 순서도이다.5 is a flowchart illustrating an image encoding method according to an embodiment of the present invention.

도 1을 통해 전술한 본 발명의 일 실시예에 따른 영상 부호화 장치(100)는 영상을 부호화하기 위해, 영상을 매크로블록 또는 서브 블록 등의 블록 단위로 분할하고, 인터 예측 또는 인트라 예측 등의 예측 기법을 이용하여 영상의 현재 블록을 예측함으로써 예측 블록을 생성하며, 현재 블록과 예측 블록을 감산하여 잔차 블록을 생성한다(S510). 잔차 블록이 생성되면, 영상 부호화 장치(100)는 잔차 블록을 주파수 영역으로 변환하여 주파수 계수를 갖는 잔차 블록을 생성한다(S520).1, an image encoding apparatus 100 according to an embodiment of the present invention divides an image into blocks, such as a macro block or a sub-block, Technique to generate a prediction block by predicting the current block of the image, and subtracting the current block from the prediction block to generate a residual block (S510). When the residual block is generated, the image encoding apparatus 100 converts the residual block into the frequency domain to generate a residual block having a frequency coefficient (S520).

영상 부호화 장치(100)는 주파수 계수를 갖는 잔차 블록을 양자화하는 데, 영상의 특성을 고려하여 양자화하기 위해, 현재 블록의 주변 블록의 복잡도에 따라 현재 블록의 양자화 계수를 결정하고(S530), 결정된 양자화 계수를 이용하여 변환된 잔차 블록을 양자화한다(S540). 영상 부호화 장치(100)는 단계 S530에서 양자화 계수를 결정할 때, 주변 블록의 복잡도를 계산하고 기 설정된 임계값과 비교하여 주변 블록의 복잡도가 기 설정된 임계값 이하인 경우에는, 기 설정된 기본 양자화 계수를 현재 블록의 양자화 계수로 결정하고 복잡도가 기 설정된 임계값을 초과하는 경우에는, 기 설정된 기본 양자화 계수보다 작은 값을 현재 블록의 양자화 계수로서 결정할 수 있다.In order to quantize the residual block having a frequency coefficient, the image coding apparatus 100 determines a quantization coefficient of the current block according to the complexity of a neighboring block of the current block (S530) The transformed residual block is quantized using the quantization coefficient (S540). When the quantization coefficient is determined in step S530, the image encoding apparatus 100 calculates the complexity of the neighboring block and compares the complexity of the neighboring block with a preset threshold value. If the complexity of the neighboring block is equal to or less than a preset threshold value, Block is determined as the quantization coefficient of the block, and when the complexity exceeds the preset threshold value, a value smaller than the predetermined basic quantization coefficient can be determined as the quantization coefficient of the current block.

영상 부호화 장치(100)는 양자화된 잔차 블록의 양자화 주파수 계수를 부호화하여 부호화 데이터를 생성한다(S550). 부호화 데이터를 생성한 영상 부호화 장치(100)는 영상 복호화 장치에서 부호화 데이터를 복호화할 수 있도록 각종 정보를 생성하여 부호화 데이터에 포함시킨다. 따라서, 최종적으로 생성되는 부호화 데이터는 부호화된 블록 형태(CBP), 델타 양자화 계수 및 양자화 주파수 계수를 부호화하여 생성된 비트열을 포함하는 제 1 필드와 예측에 필요한 정보에 대한 비트를 포함하는 제 2 필드를 포함할 수 있다. 이 경우, 주변 블록의 복잡도가 기 설정된 임계값을 초과하여 기본 양자화 계수보다 작은 값을 현재 블록의 양자화 계수로서 결정한 경우에는 양자화 계수가 변경되어서, 제 1 필드에 포함된 델타 양자화 계수가 '0'이 되지 않으며, 이 경우 델타 양자화 계수를 위해 추가적인 비트가 할당되어야 하므로, 그로 인해 압축 효율이 떨어진다.The image encoding apparatus 100 encodes the quantized frequency coefficients of the quantized residual block to generate encoded data (S550). The image encoding apparatus 100 that has generated the encoded data generates various types of information so that the image decoding apparatus can decode the encoded data, and includes the generated information in the encoded data. Therefore, the finally generated encoded data includes a first field including a bit string generated by coding an encoded block type (CBP), a delta quantization coefficient, and a quantization frequency coefficient, and a second field including a bit for information required for prediction Field. In this case, when the complexity of the neighboring block exceeds a preset threshold value and a value smaller than the basic quantization coefficient is determined as the quantization coefficient of the current block, the quantization coefficient is changed so that the delta quantization coefficient included in the first field is '0' And in this case, additional bits must be allocated for the delta quantization coefficients, thereby reducing the compression efficiency.

이를 위해, 영상 부호화 장치(100)는 주변 블록의 복잡도가 기 설정된 임계 값을 초과하여 기본 양자화 계수보다 작은 값을 갖는 양자화 계수가 현재 블록의 양자화 계수가 된 경우에는, 작은 값으로 변경된 현재 블록의 양자화 계수를 기본 양자화 계수로 재변경할 수 있다. 예를 들어, 기본 양자화 계수가 '30'이었는데, 현재 블록의 양자화 계수를 '10'으로 결정한 경우, 단계 S450에서 잔차 블록을 양자화할 때에는 '10'의 값을 갖는 양자화 계수로 양자화하지만, 부호화한 이후에는 현재 블록의 양자화 계수를 다시 기본 양자화 계수 '30'으로 재변경함으로써, 델타 양자화 계수가 '0'이 되도록 한다.To this end, when the complexity of the neighboring block exceeds a preset threshold value and the quantization coefficient having a value smaller than the basic quantization coefficient is the quantization coefficient of the current block, the image encoding apparatus 100 changes the value of the current block The quantization coefficient can be changed back to the basic quantization coefficient. For example, when the basic quantization coefficient is '30' and the quantization coefficient of the current block is determined to be '10', when the residual block is quantized in step S450, the quantization coefficient is quantized with a quantization coefficient having a value of '10' Thereafter, the quantization coefficient of the current block is changed back to the basic quantization coefficient '30' so that the delta quantization coefficient becomes '0'.

이상에서 전술한 바와 같이, 본 발명의 일 실시예에 따른 영상 부호화 장치(100)와 그를 이용한 영상 부호화 방법을 이용하면, 블록의 영상 특성을 고려하여 블록마다 양자화 계수를 적응적으로 결정할 수 있으므로, 영상의 특성에 적합한 양자화 계수로 양자화할 수 있고 그에 따라 압축 효율을 향상시킬 수 있다. 이와 같이, 영상 부호화 장치(100)에 의해 부호화 데이터로 부호화된 영상은 실시간 또는 비실시간으로 인터넷, 근거리 무선 통신망, 무선랜망, 와이브로망, 이동통신망 등의 유무선 통신망 등을 통하거나 케이블, 범용 직렬 버스(USB: Universal Serial Bus) 등의 통신 인터페이스를 통해 후술할 영상 복호화 장치로 전송되어 영상 복호화 장치에서 복호화되어 영상으로 복원되고 재생될 수 있다.As described above, by using the image encoding apparatus 100 and the image encoding method using the image encoding apparatus 100 according to an embodiment of the present invention, the quantization coefficient can be adaptively determined for each block in consideration of the image characteristics of the block, Quantization can be performed with a quantization coefficient suited to the characteristics of an image, and the compression efficiency can be improved accordingly. As described above, the image encoded with the encoded data by the image encoding apparatus 100 can be transmitted through a wired / wireless communication network such as the Internet, a local area wireless communication network, a wireless LAN network, a WiBro network, a mobile communication network, (USB: Universal Serial Bus) or the like, and can be decoded and reconstructed into an image and reproduced by an image decoding apparatus.

도 6은 본 발명의 일 실시예에 따른 영상 복호화 장치의 구성을 간략하게 나타낸 블록 구성도이다.FIG. 6 is a block diagram of a video decoding apparatus according to an embodiment of the present invention. Referring to FIG.

본 발명의 일 실시예에 따른 영상 복호화 장치(600)는 도 1을 통해 전술한 영상 부호화 장치(100)와 같이, 개인용 컴퓨터(PC: Personal Computer), 노트북 컴 퓨터, 개인 휴대 단말기(PDA: Personal Digital Assistant), 휴대형 멀티미디어 플레이어(PMP: Portable Multimedia Player), 플레이스테이션 포터블(PSP: PlayStation Portable), 이동통신 단말기(Mobile Communication Terminal) 등일 수 있으며, 각종 기기 또는 유무선 통신망과 통신을 수행하기 위한 통신 모뎀 등의 통신 장치, 영상을 복호화하기 위한 각종 프로그램과 데이터를 저장하기 위한 메모리, 프로그램을 실행하여 연산 및 제어하기 위한 마이크로프로세서 등을 구비하는 다양한 장치를 의미한다.The image decoding apparatus 600 according to an embodiment of the present invention may be implemented as a personal computer (PC), a notebook computer, a personal digital assistant (PDA), a personal computer Digital assistant, a portable multimedia player (PMP), a PlayStation Portable (PSP), a mobile communication terminal, or the like, and may be a communication modem for performing communication with various devices or wired / wireless communication networks A memory for storing various programs for decrypting images and data, and a microprocessor for executing and controlling programs and the like.

본 발명의 일 실시예에 따른 영상 복호화 장치(600)는 복호화부(610), 역 양자화부(610), 역 변환부(630), 예측부(640) 및 가산부(650)를 포함하여 구성될 수 있다.An image decoding apparatus 600 according to an embodiment of the present invention includes a decoding unit 610, an inverse quantization unit 610, an inverse transformation unit 630, a prediction unit 640, and an adder 650, .

복호화부(610)는 부호화 데이터를 복호화하여 잔차 블록을 추출한다. 즉, 복호화부(610)는 부호화 데이터를 복호화하여 양자화 주파수 계수열을 추출하고, 양자화 주파수 계수열을 역 지그재그 스캔 등 다양한 역 스캐닝 방식으로 역 스캐닝하여 양자화 주파수 계수를 갖는 잔차 블록을 생성한다. 이때, 복호화부(610)는 부호화 데이터에 포함된 제 1 필드에서 부호화된 잔차 블록을 추출하여 복호화할 수 있고, 부호화 데이터에 포함된 제 2 필드에서 예측에 필요한 정보를 추출할 수 있으며, 추출된 예측에 필요한 정보를 예측부(640)로 전달하여, 예측부(640)가 영상 부호화 장치(100)의 예측부(110)와 동일한 방식으로 현재 블록을 예측하도록 할 수 있다. 또한, 복호화부(610)는 제 1 필드에 델타 양자화 계수가 포함된 경우에는 델타 양자화 계수를 추출할 수 있다.The decoding unit 610 decodes the encoded data to extract residual blocks. That is, the decoding unit 610 decodes the encoded data to extract the quantized frequency coefficient sequence, and inversely scans the quantized frequency coefficient sequence using various inverse scanning methods such as inverse zigzag scanning to generate residual blocks having quantized frequency coefficients. At this time, the decoding unit 610 can extract and decode the residual block encoded in the first field included in the encoded data, extract information necessary for prediction in the second field included in the encoded data, Information necessary for prediction to the prediction unit 640 so that the prediction unit 640 predicts the current block in the same manner as the prediction unit 110 of the image encoding apparatus 100. [ If the delta quantization coefficient is included in the first field, the decoding unit 610 can extract the delta quantization coefficient.

역 양자화부(620)는 잔차 블록을 역 양자화하여 역 양자화된 잔차 블록을 생성한다. 이때, 역 양자화부(620)는 잔차 블록을 역 양자화하는 데 있어서, 주변 블록의 복잡도에 따라 현재 블록의 양자화 계수를 결정하고, 결정된 현재 블록의 양자화 주파수 계수를 이용하여 잔차 블록을 역 양자화한다. 또한, 역 양자화부(620)는 도 1을 통해 전술한 양자화부(140)와 같이, 도 2를 통해 전술한 양자화 계수 결정 장치(200)를 포함하여 구성될 수 있으며, 양자화 계수 결정 장치(200)가 현재 블록의 양자화 계수를 결정하는 방식과 동일한 방식으로 현재 블록의 양자화 계수를 결정할 수 있다. 다만, 역 양자화부(620)는 주변 블록의 복잡도가 기 설정된 임계값 이하여서 기본 양자화 계수를 이용하여 양자화된 것으로 판단되면, 복호화부(610)에 의해 부호화 데이터로부터 추출된 델타 양자화 계수에 의해 식별되는 양자화 계수를 현재 블록의 양자화 계수로서 결정할 수 있다.The inverse quantization unit 620 dequantizes the residual block to generate a dequantized residual block. At this time, the dequantizer 620 dequantizes the residual block, determines the quantization coefficient of the current block according to the complexity of the neighboring block, and dequantizes the residual block using the determined quantization frequency coefficient of the current block. The inverse quantization unit 620 may include the quantization coefficient determination apparatus 200 described above with reference to FIG. 2 like the quantization unit 140 described above with reference to FIG. ) Can determine the quantization coefficient of the current block in the same manner as the manner in which the quantization coefficient of the current block is determined. If it is determined that the complexity of the neighboring block is less than a predetermined threshold value and is quantized using the basic quantization coefficient, the inverse quantization unit 620 identifies the quantized value by using the delta quantization coefficient extracted from the encoded data by the decoding unit 610 Can be determined as the quantization coefficient of the current block.

역 변환부(630)는 역 양자화부(620)에 의해 역 양자화된 잔차 블록을 역 변환한다. 예측부(640)는 현재 블록을 예측하여 예측 블록을 생성한다. 예측부(640)는 복호화부(620)로부터 전달되는 예측에 필요한 정보를 이용하여 현재 블록을 예측할 수 있다. 가산부(650)는 역 변환된 잔차 블록과 예측 블록을 가산하여 현재 블록을 복원한다. 가산부(650)에 의해 복원된 현재 블록은 예측부(640)로 전달되어, 예측부(640)에서 다른 블록을 예측하는 데 활용될 수 있다. 도 6에서는 도시하지 않았지만, 예측부(640)와 가산부(650) 사이에는 디블로킹 필터부(미도시)가 추가로 연결될 수 있다. 디블로킹 필터부는 도 1을 통해 전술한 바와 같으므로 상세한 설명은 생략한다.The inverse transform unit 630 inversely transforms the inverse quantized residual block by the inverse quantization unit 620. The prediction unit 640 predicts the current block to generate a prediction block. The prediction unit 640 can predict a current block using information required for prediction transmitted from the decoding unit 620. [ The adder 650 adds the inverse transformed residual block and the predicted block to reconstruct the current block. The current block reconstructed by the adder 650 is transferred to the predictor 640 and can be used to predict other blocks in the predictor 640. [ Although not shown in FIG. 6, a deblocking filter unit (not shown) may be additionally connected between the predicting unit 640 and the adding unit 650. Since the deblocking filter unit is as described above with reference to FIG. 1, a detailed description thereof will be omitted.

도 7은 본 발명의 일 실시예에 따른 영상 복호화 방법을 설명하기 위한 순서도이다.7 is a flowchart illustrating an image decoding method according to an embodiment of the present invention.

유무선 통신망 또는 케이블 등을 통해 영상에 대한 부호화 데이터를 수신하여 저장한 영상 복호화 장치(600)는 사용자의 선택 또는 실행 중인 다른 프로그램의 알고리즘에 따라 영상을 재생하기 위해, 영상을 복호화하여 복원한다.The video decoding apparatus 600 receives encoded video data through a wired / wireless communication network or a cable, and stores the decoded video data. The video decoding apparatus 600 decodes and decodes the video in order to reproduce the video according to a user's selection or an algorithm of another program being executed.

이를 위해, 영상 복호화 장치(600)는 부호화 데이터를 복호화하여 잔차 블록을 추출한다(S710). 이때, 영상 복호화 장치(600)는 부호화 데이터에 포함된 제 1 필드에서 부호화된 잔차 블록을 추출하여 복호화할 수 있고, 부호화 데이터에 포함된 제 2 필드에서 예측에 필요한 정보를 추출할 수 있으며, 추출된 예측에 필요한 정보를 이용하여 인트라 예측을 위한 인트라 예측 모드 또는 인터 예측을 위한 움직임 벡터 등을 식별할 수 있다. 또한, 영상 복호화 장치(600)는 제 1 필드에 델타 양자화 계수가 포함된 경우에는 델타 양자화 계수를 추출할 수 있다. 영상 부호화 장치(100)에서 기본 양자화 계수로 양자화된 경우에는 제 1 필드에 델타 양자화 계수가 포함될 수 있으며, 기본 양자화 계수가 아닌 작은 값의 양자화 계수로 양자화된 경우에는 제 1 필드에 델타 양자화 계수가 포함되지 않을 수 있다.To this end, the image decoding apparatus 600 decodes the encoded data to extract residual blocks (S710). At this time, the image decoding apparatus 600 can extract and decode the residual block encoded in the first field included in the encoded data, extract information necessary for prediction in the second field included in the encoded data, An intra prediction mode for intra prediction or a motion vector for inter prediction can be identified using information necessary for prediction. Also, the image decoding apparatus 600 can extract the delta quantization coefficient when the delta quantization coefficient is included in the first field. When the image is quantized with the basic quantization coefficient in the image encoding apparatus 100, the delta quantization coefficient may be included in the first field. If the quantization coefficient is smaller than the basic quantization coefficient, the delta quantization coefficient is added to the first field May not be included.

잔차 블록을 추출한 영상 복호화 장치(600)는 잔차 블록을 역 양자화하기 위해 양자화 계수를 결정하는데, 주변 블록의 복잡도에 따라 양자화 계수를 결정한다(S720). 즉, 영상 복호화 장치(600)는 주변 블록의 복잡도를 계산하여 기 설정된 임계값과 비교하여 주변 블록의 복잡도가 기 설정된 임계값을 초과하는지 여부를 판단함으로써, 잔차 블록이 기본 양자화 계수를 이용하여 양자화되었는지 또는 기 본 양자화 계수보다 작은 값을 갖는 양자화 계수를 이용하여 양자화되었는지를 판단할 수 있다. 주변 블록의 복잡도가 기 설정된 임계값 이하여서 기본 양자화 계수를 이용하여 양자화된 것으로 판단되면, 단계 S710에서 부호화 데이터로부터 추출된 델타 양자화 계수에 의해 식별되는 양자화 계수를 현재 블록의 양자화 계수로서 결정하고, 주변 블록의 복잡도가 기 설정된 임계값을 초과하여 기본 양자화 계수보다 작은 값을 갖는 양자화 계수를 이용하여 양자화된 것으로 판단되면, 기본 양자화 계수보다 작은 값을 갖는 양자화 계수를 현재 블록의 양자화 계수로서 결정한다.The image decoding apparatus 600 that has extracted the residual block determines a quantization coefficient to dequantize the residual block, and determines a quantization coefficient according to the complexity of the neighboring block (S720). That is, the image decoding apparatus 600 calculates the complexity of a neighboring block, compares the complexity of the neighboring block with a preset threshold value, and determines whether the complexity of the neighboring block exceeds a preset threshold value. By thus determining whether the residual block is quantized using the basic quantization coefficient Or quantized using a quantization coefficient having a value smaller than the basic quantization coefficient. If it is determined that the complexity of the neighboring block is less than a preset threshold and is quantized using the basic quantization coefficient, the quantization coefficient identified by the delta quantization coefficient extracted from the encoded data is determined as the quantization coefficient of the current block in step S710, If it is determined that the complexity of the neighboring block exceeds a preset threshold and is quantized using a quantization coefficient having a value smaller than the basic quantization coefficient, a quantization coefficient having a value smaller than the basic quantization coefficient is determined as a quantization coefficient of the current block .

이때, 영상 복호화 장치(600)는 영상 부호화 장치(100)와 사전에 약속된 방식에 따라 기본 양자화 계수보다 작은 값을 갖는 양자화 계수를 계산한다. 사전에 약속된 방식이란 기본 양자화 계수의 값보다 작은 값 중 영상 부호화 장치(100)가 선택한 양자화 계수와 동일한 양자화 계수를 선택하거나, 기본 양자화 계수의 값보다 작은 값 중 주변 블록의 복잡도를 이용하여 특정되는 값을 선택하는 것을 말한다. 이에 대한 것은 도 2를 통해 전술하였으므로 상세한 설명은 생략한다.At this time, the image decoding apparatus 600 calculates a quantization coefficient having a value smaller than the basic quantization coefficient according to a scheme predetermined by the image encoding apparatus 100. [ The predetermined method is to select a quantization coefficient equal to the quantization coefficient selected by the image coding apparatus 100 among the values smaller than the value of the basic quantization coefficient or to use the complexity of the neighboring block among the values smaller than the value of the basic quantization coefficient Quot; is selected. Since this has been described above with reference to FIG. 2, detailed description is omitted.

단계 S720에서 양자화 계수가 결정되면, 영상 복호화 장치(600)는 결정된 양자화 계수를 이용하여 단계 S710에서 추출된 잔차 블록을 역 양자화하고(S730), 역 양자화된 잔차 블록을 공간 영역으로 역 변환한다(S740). 또한, 영상 복호화 장치(600)는 현재 블록을 예측하여 예측 블록을 생성하고(S750), 예측된 예측 블록과 단계 S740에서 역 변환된 잔차 블록을 가산하여 현재 블록을 복원한다(S760).If the quantization coefficient is determined in step S720, the image decoding apparatus 600 dequantizes the residual block extracted in step S710 using the determined quantization coefficient (S730), and inversely transforms the dequantized residual block into a spatial domain S740). Also, the image decoding apparatus 600 generates a prediction block by predicting the current block (S750), and restores the current block by adding the predicted prediction block and the inverse transformed residual block in step S740 (S760).

복원된 현재 블록은 픽처 단위로 누적되어 복원 영상으로 출력될 수 있으며, 다음 블록을 예측하기 위한 참조 픽처로서 저장될 수 있다.The reconstructed current block may be accumulated as a reconstructed picture on a picture-by-picture basis, and may be stored as a reference picture for predicting a next block.

이상에서, 본 발명의 실시예를 구성하는 모든 구성 요소들이 하나로 결합하거나 결합하여 동작하는 것으로 설명되었다고 해서, 본 발명이 반드시 이러한 실시예에 한정되는 것은 아니다. 즉, 본 발명의 목적 범위 안에서라면, 그 모든 구성 요소들이 하나 이상으로 선택적으로 결합하여 동작할 수도 있다. 또한, 그 모든 구성 요소들이 각각 하나의 독립적인 하드웨어로 구현될 수 있지만, 각 구성 요소들의 그 일부 또는 전부가 선택적으로 조합되어 하나 또는 복수 개의 하드웨어에서 조합된 일부 또는 전부의 기능을 수행하는 프로그램 모듈을 갖는 컴퓨터 프로그램으로서 구현될 수도 있다. 그 컴퓨터 프로그램을 구성하는 코드들 및 코드 세그먼트들은 본 발명의 기술 분야의 당업자에 의해 용이하게 추론될 수 있을 것이다. 이러한 컴퓨터 프로그램은 컴퓨터가 읽을 수 있는 저장매체(Computer Readable Media)에 저장되어 컴퓨터에 의하여 읽혀지고 실행됨으로써, 본 발명의 실시예를 구현할 수 있다. 컴퓨터 프로그램의 저장매체로서는 자기 기록매체, 광 기록매체, 캐리어 웨이브 매체 등이 포함될 수 있다.While the present invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not limited to the disclosed embodiments. That is, within the scope of the present invention, all of the components may be selectively coupled to one or more of them. In addition, although all of the components may be implemented as one independent hardware, some or all of the components may be selectively combined to perform a part or all of the functions in one or a plurality of hardware. As shown in FIG. The codes and code segments constituting the computer program may be easily deduced by those skilled in the art. Such a computer program can be stored in a computer-readable storage medium, readable and executed by a computer, thereby realizing an embodiment of the present invention. As the storage medium of the computer program, a magnetic recording medium, an optical recording medium, a carrier wave medium, or the like may be included.

또한, 이상에서 기재된 "포함하다", "구성하다" 또는 "가지다" 등의 용어는, 특별히 반대되는 기재가 없는 한, 해당 구성 요소가 내재할 수 있음을 의미하는 것이므로, 다른 구성 요소를 제외하는 것이 아니라 다른 구성 요소를 더 포함할 수 있는 것으로 해석되어야 한다. 기술적이거나 과학적인 용어를 포함한 모든 용어들은, 다르게 정의되지 않는 한, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미가 있다. 사전에 정의된 용어 와 같이 일반적으로 사용되는 용어들은 관련 기술의 문맥상의 의미와 일치하는 것으로 해석되어야 하며, 본 발명에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Furthermore, the terms "comprises", "comprising", or "having" described above mean that a component can be implanted unless otherwise specifically stated, But should be construed as including other elements. All terms, including technical and scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs, unless otherwise defined. Commonly used terms, such as predefined terms, should be interpreted to be consistent with the contextual meanings of the related art, and are not to be construed as ideal or overly formal, unless expressly defined to the contrary.

이상의 설명은 본 발명의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 발명에 개시된 실시예들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 발명의 기술 사상의 범위가 한정되는 것은 아니다. 본 발명의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.The foregoing description is merely illustrative of the technical idea of the present invention, and various changes and modifications may be made by those skilled in the art without departing from the essential characteristics of the present invention. Therefore, the embodiments disclosed in the present invention are intended to illustrate rather than limit the scope of the present invention, and the scope of the technical idea of the present invention is not limited by these embodiments. The scope of protection of the present invention should be construed according to the following claims, and all technical ideas within the scope of equivalents should be construed as falling within the scope of the present invention.

이상에서 설명한 바와 같이 본 발명은 영상을 부호화하고 복호화하는 기술 분야에 적용되어, 영상의 특성에 따라 양자화 계수를 적응적으로 결정할 수 있어서, 블록별로 다른 양자화 계수를 이용하여 양자화할 수 있으며, 그를 통해 영상의 특성을 고려한 부호화를 수행할 수 있어서, 영상의 하나의 픽처 내에 복잡한 특성을 갖는 블록과 평이한 특성을 갖는 블록이 혼재되어 있는 경우에도, 효율적으로 부호화할 수 있어 압축 성능을 향상시킬 수 있는 효과를 발생하는 매우 유용한 발명이다.As described above, the present invention can be applied to a technique for encoding and decoding an image, so that a quantization coefficient can be adaptively determined according to characteristics of an image, and quantization can be performed using different quantization coefficients for each block. Encoding can be performed in consideration of the characteristics of an image so that even when a block having a complex characteristic and a block having a complex characteristic are mixed in one picture of an image, efficient coding can be performed, Which is a very useful invention.

도 1은 본 발명의 일 실시예에 따른 영상 부호화 장치의 구성을 간략하게 나타낸 블록 구성도,1 is a block diagram schematically illustrating a configuration of a video encoding apparatus according to an embodiment of the present invention;

도 2는 본 발명의 일 실시예에 따른 양자화 계수 결정 장치의 구성을 간략하게 나타낸 블록 구성도,FIG. 2 is a block diagram schematically illustrating a configuration of a quantization coefficient determination apparatus according to an embodiment of the present invention. FIG.

도 3은 본 발명의 일 실시예에 따른 현재 블록과 주변 블록을 나타낸 예시도,3 is a diagram illustrating a current block and neighboring blocks according to an exemplary embodiment of the present invention.

도 4는 본 발명의 일 실시예에 따른 양자화 계수 결정 방법을 설명하기 위한 순서도,4 is a flowchart illustrating a method of determining a quantization coefficient according to an embodiment of the present invention.

도 5는 본 발명의 일 실시예에 따른 영상 부호화 방법을 설명하기 위한 순서도,5 is a flowchart illustrating an image encoding method according to an embodiment of the present invention.

도 6은 본 발명의 일 실시예에 따른 영상 복호화 장치의 구성을 간략하게 나타낸 블록 구성도.6 is a block diagram schematically showing a configuration of an image decoding apparatus according to an embodiment of the present invention;

도 7은 본 발명의 일 실시예에 따른 영상 복호화 방법을 설명하기 위한 순서도이다.7 is a flowchart illustrating an image decoding method according to an embodiment of the present invention.

Claims (22)

삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 영상을 부호화하는 장치에 있어서,An apparatus for encoding an image, the apparatus comprising: 현재 블록을 예측하여 예측 블록을 생성하는 예측부;A prediction unit for generating a prediction block by predicting a current block; 상기 현재 블록과 상기 예측 블록을 감산하여 잔차 블록을 생성하는 감산부;A subtracting unit for subtracting the current block from the prediction block to generate a residual block; 상기 잔차 블록을 주파수 영역으로 변환하는 변환부;A transform unit for transforming the residual block into a frequency domain; 주변 블록의 복잡도에 따라 상기 현재 블록의 양자화 계수를 결정하여 상기 변환된 잔차 블록을 양자화하는 양자화부; 및A quantizer for determining a quantization coefficient of the current block according to a complexity of a neighboring block and quantizing the transformed residual block; And 상기 양자화된 잔차 블록을 부호화하여 부호화 데이터를 생성하는 부호화부를 포함하되,And an encoding unit for encoding the quantized residual block to generate encoded data, 상기 양자화부는,Wherein the quantization unit comprises: 상기 주변 블록의 복잡도가 기 설정된 임계값을 초과하는 경우에는 상기 현재 블록의 양자화 계수를 기 설정된 기본 양자화 계수보다 작은 값으로 변경하는 것을 특징으로 하는 영상 부호화 장치.And changes the quantization coefficient of the current block to a value smaller than a predetermined basic quantization coefficient if the complexity of the neighboring block exceeds a preset threshold value. 제 8 항에 있어서, 상기 부호화부는,9. The apparatus of claim 8, 상기 양자화된 잔차 블록을 부호화한 후, 상기 변경된 현재 블록의 양자화 계수를 기본 양자화 계수로 재변경하는 것을 특징으로 하는 영상 부호화 장치.And after the quantized residual block is encoded, re-modifies the quantized coefficient of the changed current block to a basic quantized coefficient. 영상을 부호화하는 장치에 있어서,An apparatus for encoding an image, the apparatus comprising: 현재 블록을 예측하여 예측 블록을 생성하는 예측부;A prediction unit for generating a prediction block by predicting a current block; 상기 현재 블록과 상기 예측 블록을 감산하여 잔차 블록을 생성하는 감산부;A subtracting unit for subtracting the current block from the prediction block to generate a residual block; 상기 잔차 블록을 주파수 영역으로 변환하는 변환부;A transform unit for transforming the residual block into a frequency domain; 주변 블록의 복잡도에 따라 상기 현재 블록의 양자화 계수를 결정하여 상기 변환된 잔차 블록을 양자화하는 양자화부; 및A quantizer for determining a quantization coefficient of the current block according to a complexity of a neighboring block and quantizing the transformed residual block; And 상기 양자화된 잔차 블록을 부호화하여 부호화 데이터를 생성하는 부호화부를 포함하되,And an encoding unit for encoding the quantized residual block to generate encoded data, 상기 양자화부는,Wherein the quantization unit comprises: 상기 주변 블록의 복잡도가 기 설정된 임계값 이하인 경우에는 상기 현재 블록의 양자화 계수를 기 설정된 기본 양자화 계수로서 결정하는 것을 특징으로 하는 영상 부호화 장치.And determines the quantization coefficient of the current block as a preset basic quantization coefficient if the complexity of the neighboring block is less than or equal to a preset threshold value. 삭제delete 영상을 부호화하는 방법에 있어서,A method of encoding an image, 현재 블록을 예측하여 예측 블록을 생성하는 예측 단계;A prediction step of generating a prediction block by predicting a current block; 상기 현재 블록과 상기 예측 블록을 감산하여 잔차 블록을 생성하는 감산 단계;A subtraction step of subtracting the current block from the prediction block to generate a residual block; 상기 잔차 블록을 주파수 영역으로 변환하는 변환 단계;A transforming step of transforming the residual block into a frequency domain; 주변 블록의 복잡도에 따라 상기 현재 블록의 양자화 계수를 결정하여 상기 변환된 잔차 블록을 양자화하는 양자화 단계; 및A quantization step of quantizing the transformed residual block by determining a quantization coefficient of the current block according to a complexity of a neighboring block; And 상기 양자화된 잔차 블록을 부호화하여 부호화 데이터를 생성하는 부호화 단계를 포함하되,And a coding step of coding the quantized residual block to generate encoded data, 상기 양자화 단계는,Wherein the quantization step comprises: 상기 주변 블록의 복잡도를 계산하는 복잡도 계산 단계;A complexity calculation step of calculating a complexity of the neighboring block; 상기 복잡도를 기 설정된 임계값과 비교하는 비교 단계;A comparison step of comparing the complexity with a predetermined threshold value; 상기 복잡도가 상기 기 설정된 임계값 이하인 경우에는, 기 설정된 기본 양자화 계수를 상기 현재 블록의 양자화 계수로 결정하는 양자화 계수 유지 단계;A quantization coefficient holding step of determining a predetermined basic quantization coefficient as a quantization coefficient of the current block if the complexity is equal to or less than the preset threshold value; 상기 복잡도가 상기 기 설정된 임계값을 초과하는 경우에는, 상기 기 설정된 기본 양자화 계수보다 작은 값을 현재 블록의 양자화 계수로서 결정하는 양자화 계수 변경 단계; 및A quantization coefficient changing step of, when the complexity exceeds the predetermined threshold value, determining a value smaller than the predetermined basic quantization coefficient as a quantization coefficient of the current block; And 상기 결정된 현재 블록의 양자화 계수를 이용하여 상기 변환된 잔차 블록을 양자화하는 단계Quantizing the transformed residual block using the determined quantization coefficient of the current block 를 포함하는 것을 특징으로 하는 영상 부호화 방법.Wherein the image encoding method comprises: 제 12 항에 있어서, 상기 영상 부호화 방법은,13. The image encoding method of claim 12, 상기 현재 블록의 양자화 계수가 기 설정된 기본 양자화 계수보다 작은 값으로 변경된 경우에는, 상기 변경된 현재 블록의 양자화 계수를 기본 양자화 계수로 재변경하는 양자화 계수 재변경 단계를 추가로 포함하는 것을 특징으로 하는 영상 부호화 방법.And changing a quantization coefficient of the current block to a basic quantization coefficient if the quantization coefficient of the current block is changed to a value smaller than a predetermined basic quantization coefficient. Encoding method. 삭제delete 영상을 복호화하는 장치에 있어서,An apparatus for decoding an image, the apparatus comprising: 부호화 데이터를 복호화하여 잔차 블록을 추출하는 복호화부;A decoding unit decoding the encoded data to extract a residual block; 주변 블록의 복잡도에 따라 현재 블록의 양자화 계수를 결정하고 상기 결정된 현재 블록의 양자화 계수를 이용하여 상기 잔차 블록을 역 양자화하는 역 양자화부;A dequantizer for determining a quantization coefficient of a current block according to a complexity of a neighboring block and dequantizing the residual block using the determined quantization coefficient of the current block; 상기 역 양자화된 잔차 블록을 역 변환하는 역 변환부;An inverse transform unit for inversely transforming the dequantized residual block; 상기 현재 블록을 예측하여 예측 블록을 생성하는 예측부; 및A prediction unit for generating a prediction block by predicting the current block; And 상기 역 변환된 잔차 블록과 상기 예측 블록을 가산하여 상기 현재 블록을 복원하는 가산부를 포함하되,And an adder for adding the inversely transformed residual block and the prediction block to reconstruct the current block, 상기 역 양자화부는,Wherein the inverse- 상기 주변 블록의 복잡도가 기 설정된 임계값을 초과하는 경우에는 상기 현재 블록의 양자화 계수를 기 설정된 기본 양자화 계수보다 작은 값으로 변경하는 것을 특징으로 하는 영상 복호화 장치.And changes the quantization coefficient of the current block to a value smaller than a preset basic quantization coefficient if the complexity of the neighboring block exceeds a preset threshold value. 영상을 복호화하는 장치에 있어서,An apparatus for decoding an image, the apparatus comprising: 부호화 데이터를 복호화하여 잔차 블록을 추출하는 복호화부;A decoding unit decoding the encoded data to extract a residual block; 주변 블록의 복잡도에 따라 현재 블록의 양자화 계수를 결정하고 상기 결정된 현재 블록의 양자화 계수를 이용하여 상기 잔차 블록을 역 양자화하는 역 양자화부;A dequantizer for determining a quantization coefficient of a current block according to a complexity of a neighboring block and dequantizing the residual block using the determined quantization coefficient of the current block; 상기 역 양자화된 잔차 블록을 역 변환하는 역 변환부;An inverse transform unit for inversely transforming the dequantized residual block; 상기 현재 블록을 예측하여 예측 블록을 생성하는 예측부; 및A prediction unit for generating a prediction block by predicting the current block; And 상기 역 변환된 잔차 블록과 상기 예측 블록을 가산하여 상기 현재 블록을 복원하는 가산부를 포함하되,And an adder for adding the inversely transformed residual block and the prediction block to reconstruct the current block, 상기 역 양자화부는,Wherein the inverse- 상기 주변 블록의 복잡도가 기 설정된 임계값 이하인 경우에는 상기 현재 블록의 양자화 계수를 기 설정된 기본 양자화 계수로서 결정하는 것을 특징으로 하는 영상 복호화 장치.And determines a quantization coefficient of the current block as a preset basic quantization coefficient if the complexity of the neighboring block is less than or equal to a preset threshold value. 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete
KR1020080094494A 2008-09-26 2008-09-26 Quantization Parameter Determination Method and Apparatus and Video Encoding/Decoding Method and Apparatus KR101539045B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020080094494A KR101539045B1 (en) 2008-09-26 2008-09-26 Quantization Parameter Determination Method and Apparatus and Video Encoding/Decoding Method and Apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020080094494A KR101539045B1 (en) 2008-09-26 2008-09-26 Quantization Parameter Determination Method and Apparatus and Video Encoding/Decoding Method and Apparatus

Related Child Applications (1)

Application Number Title Priority Date Filing Date
KR1020130081454A Division KR20130084285A (en) 2013-07-11 2013-07-11 Quantization parameter determination method and apparatus and video encoding/decoding method and apparatus

Publications (2)

Publication Number Publication Date
KR20100035243A KR20100035243A (en) 2010-04-05
KR101539045B1 true KR101539045B1 (en) 2015-07-23

Family

ID=42213150

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020080094494A KR101539045B1 (en) 2008-09-26 2008-09-26 Quantization Parameter Determination Method and Apparatus and Video Encoding/Decoding Method and Apparatus

Country Status (1)

Country Link
KR (1) KR101539045B1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11102494B2 (en) * 2011-03-03 2021-08-24 Electronics And Telecommunication Research Institute Method for scanning transform coefficient and device therefor
WO2012118358A2 (en) * 2011-03-03 2012-09-07 한국전자통신연구원 Method for scanning transform coefficient and device therefor
CN107431806B (en) 2015-03-19 2020-07-31 Lg 电子株式会社 Method for processing video signal and apparatus therefor
US10284849B2 (en) 2015-04-13 2019-05-07 Qualcomm Incorporated Quantization parameter (QP) calculation for display stream compression (DSC) based on complexity measure
US10356428B2 (en) 2015-04-13 2019-07-16 Qualcomm Incorporated Quantization parameter (QP) update classification for display stream compression (DSC)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07226935A (en) * 1994-02-14 1995-08-22 Mitsubishi Electric Corp Picture information compressing device
KR20040036487A (en) * 2002-10-26 2004-04-30 엘지전자 주식회사 Quantization parameter decision method
KR20070016663A (en) * 2005-08-04 2007-02-08 김해광 Image encoding and reproducing method and apparatus thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07226935A (en) * 1994-02-14 1995-08-22 Mitsubishi Electric Corp Picture information compressing device
KR20040036487A (en) * 2002-10-26 2004-04-30 엘지전자 주식회사 Quantization parameter decision method
KR20070016663A (en) * 2005-08-04 2007-02-08 김해광 Image encoding and reproducing method and apparatus thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Text of ISO/IEC FDIS 14496-10: Information Technology - Coding of audio-visual objects - Part 10: Advanced Video Coding. N5555, Mar. 31, 2003, pp.73-74 *
Text of ISO/IEC FDIS 14496-10: Information Technology - Coding of audio-visual objects - Part 10: Advanced Video Coding. N5555, Mar. 31, 2003, pp.73-74*

Also Published As

Publication number Publication date
KR20100035243A (en) 2010-04-05

Similar Documents

Publication Publication Date Title
KR101379185B1 (en) Prediction Mode Selection Method and Apparatus and Video Enoding/Decoding Method and Apparatus Using Same
KR101444667B1 (en) Video Coding Method and Apparatus Using Bi-Direction Intra Prediction
KR101830352B1 (en) Method and Apparatus Video Encoding and Decoding using Skip Mode
US10034024B2 (en) Method and apparatus for encoding/decoding images considering low frequency components
KR101432775B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock
KR101446771B1 (en) Apparatus of encoding image and apparatus of decoding image
US9503725B2 (en) Method and apparatus for encoding/decoding image for performing intraprediction using pixel value filtered according to prediction mode
CN107347157B (en) Video decoding device
US20160029023A1 (en) Encoding/decoding method and device for high-resolution moving images
US9497454B2 (en) Method and device for encoding/decoding image using feature vectors of surrounding blocks
KR101663764B1 (en) Apparatus and Method for Encoding and Decoding Using Intra Prediction
KR101441903B1 (en) Reference Frame Creating Method and Apparatus and Video Encoding/Decoding Method and Apparatus Using Same
KR101677480B1 (en) Method and Apparatus for Encoding/Decoding of Video Data Using Efficient Selection of Intra Prediction Mode Set
KR101379186B1 (en) Inrtra Prediction Enoding/Decoding Method and Apparatus
KR20130085838A (en) Video coding method and apparatus using weighted prediction
KR101763113B1 (en) Video Encoding/Decoding Method and Apparatus for Noise Component in Spatial Domain
KR101483497B1 (en) Video Encoding/Decoding Apparatus and Method of Considering Impulse Signal
KR101681301B1 (en) Method and Apparatus for Encoding/Decoding of Video Data Capable of Skipping Filtering Mode
KR101539045B1 (en) Quantization Parameter Determination Method and Apparatus and Video Encoding/Decoding Method and Apparatus
KR101449683B1 (en) Motion Vector Coding Method and Apparatus by Using Motion Vector Resolution Restriction and Video Coding Method and Apparatus Using Same
KR101359500B1 (en) Quantization/Inverse Quantization Apparatus and Method and Video Encoding/Decoding Apparatus Using Same
KR101527148B1 (en) Inter Prediction Apparatus and Video Encoding/Decoding Apparatus and Method Using Same
KR101693284B1 (en) Method and Apparatus for Encoding/Decoding of Video Data Using Global Motion-based Enconding Structure
KR101483495B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock
KR20130084285A (en) Quantization parameter determination method and apparatus and video encoding/decoding method and apparatus

Legal Events

Date Code Title Description
A107 Divisional application of patent
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: 20180703

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20190626

Year of fee payment: 5