KR20130003707A - Method and apparatus for image encoding/decoding using efficient non-fixed quantization - Google Patents

Method and apparatus for image encoding/decoding using efficient non-fixed quantization Download PDF

Info

Publication number
KR20130003707A
KR20130003707A KR1020110065193A KR20110065193A KR20130003707A KR 20130003707 A KR20130003707 A KR 20130003707A KR 1020110065193 A KR1020110065193 A KR 1020110065193A KR 20110065193 A KR20110065193 A KR 20110065193A KR 20130003707 A KR20130003707 A KR 20130003707A
Authority
KR
South Korea
Prior art keywords
block
quantization
prediction
inverse
frequency
Prior art date
Application number
KR1020110065193A
Other languages
Korean (ko)
Other versions
KR101943425B1 (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 KR1020110065193A priority Critical patent/KR101943425B1/en
Publication of KR20130003707A publication Critical patent/KR20130003707A/en
Application granted granted Critical
Publication of KR101943425B1 publication Critical patent/KR101943425B1/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/129Scanning of coding units, e.g. zig-zag scan of transform coefficients or flexible macroblock ordering [FMO]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/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/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • 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/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/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • 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/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Abstract

PURPOSE: A method and an apparatus for encoding/decoding an image using efficient non-fixed quantization are provided to control the size of the quantization according to the position of a frequency coefficient and to improve compression performance. CONSTITUTION: A converting unit produces a frequency conversion block(S810). The quantization unit selects a scanning method according to the mode information of a block determined by a prediction unit on the frequency conversion block(S820). While the quantization unit performs a determined scanning, it changes the size of the quantization on the frequency conversion block(S830). An encoding unit encodes the quantized frequency conversion block into a bit stream through an entropy coding(S840). [Reference numerals] (AA) Start; (BB) End; (S810) Generating a frequency conversion block by a converting unit(530); (S820) Selecting a scanning order according to the determined block mode information by a prediction unit(510) on the frequency conversion block; (S830) Determining the size of the quantization according to the determined scanning order; (S840) Generating a bit stream using a finished quantization factor

Description

비균등 양자화를 이용한 효과적인 부호화/복호화 방법 및 장치{Method and Apparatus for Image Encoding/Decoding using Efficient Non-fixed Quantization}TECHNICAL FIELD [0001] The present invention relates to an efficient encoding / decoding method and apparatus using non-uniform quantization,

본 발명은 동영상 부호화/복호화 방법 및 장치에 관한 것이다. 더욱 상세하게는, 원 영상 신호와 예측 신호 간의 잔차 신호를 주파수변환하여 얻은 주파수변환계수블록을 양자화할 때 각 주파수계수의 위치에 따라 양자화의 크기를 달리 하여 양자화함으로써 압축 성능을 향상시키는 영상의 부호화/복호화 방법 및 장치에 관한 것이다.The present invention relates to a moving picture encoding / decoding method and apparatus. More specifically, when a frequency transform coefficient block obtained by frequency-transforming a residual signal between an original video signal and a prediction signal is quantized, quantization is performed by varying quantization magnitudes according to positions of respective frequency coefficients, Decoding method and apparatus.

이 부분에 기술된 내용은 단순히 본 발명의 실시예에 대한 배경 정보를 제공할 뿐 반드시 종래기술을 구성하는 것은 아니다. 또한, 배경 정보에 해당하는 기술이 뿐만 아니라 배경 기술과 유사한 부호화/복호화 방법 및 장치를 모두 포함한다.The contents described in this section merely provide background information on the embodiment of the present invention, but do not necessarily constitute the prior art. It also includes both coding and decoding methods and apparatuses similar to the background technology as well as the technology corresponding to the background information.

동영상의 압축 기술의 전문가들이 모여 결성된 MPEG(Moving Picture Experts Group)과 VCEG(Video Coding Experts Group)은 JCT-VC(Joint Collaborative Team on Video Coding)라는 MPEG과 VCEG의 공동 팀을 결성하여 기존의 H.264/AVC(Advanced video Coding)보다 고화질, 고성능, 고효율 동영상 압축 기술로 약 50%이상의 압축 성능 향상을 가지는 새로운 동영상 압축 표준을 목표로 HEVC(High Efficiency Video Coding)이라는 이름의 표준안에 대한 표준화가 진행 중이다. 이는 기존 H.264/AVC의 기술보다 향상된 압축률을 가지는 고화질/고성능 압축기술을 목표로 시작되었으며, 다양한 부호화 방법이 채택되었고 기존 표준화 기술보다 화질과 성능 향상 면에서 많은 발전을 가져오고 있다. 2012년 2월 CD(Committee Draft), 2013년 1월 FDIS(Final Draft of IS), 2013년 IS(International Standard)를 목표로 기술 개발이 진행 중이며, 2010년 8월에는 Test Model under Consideration(TMuC)을 제작하여 협의가 진행되어 지난 2010년 10월에 끝난 광저우에서 열린 제 3차 JCT-VC 회의 후 HEVC Test Model (HM1.0) 및 WD1.0이 완성되었다. 또한 2011년 1월 대구에서 열린 제 4차 JCT-VC 회의 후 HM2.0 및 WD2.0이 완성되었으며, 지난 2011년 3월 스위스 제네바에서 열린 제 5회 JCT-VC 회의 후 HM3.0 및 WD3.0이 완성되었다.Moving Picture Experts Group (MPEG) and Video Coding Experts Group (VCEG), formed by experts in video compression technology, formed a joint team of MPEG and VCEG called Joint Collaborative Team on Video Coding (JCT-VC) Standardization of a standard named HEVC (High Efficiency Video Coding), aiming at a new video compression standard which has a compression performance improvement of about 50% with .264 / AVC (Advanced Video Coding), high quality, high performance and high efficiency video compression technology Is in progress. It is aimed at high-quality / high-performance compression technology with improved compression ratio than the existing H.264 / AVC technology. Various coding methods have been adopted and have made a lot of improvements in picture quality and performance improvement than existing standardization technology. Technology development is in progress with the goal of preparing a CD (Committee Draft) in Feb 2012, a Final Draft of IS (FDIS) in January 2013, and an International Standard (IS) in 2013, and the Test Model under Consideration (TMuC) , And the HEVC Test Model (HM1.0) and WD1.0 were completed after the third JCT-VC meeting held in Guangzhou, which ended in October 2010. In addition, HM2.0 and WD2.0 were completed after the 4th JCT-VC meeting held in Daegu in January 2011, and HM3.0 and WD3.0 were held after the 5th JCT-VC meeting held in Geneva, 0 was completed.

도 1 은 HEVC의 코딩단위인 CU(Coding Unit)에 관한 예를 보여준다. HEVC는 이와 같은 코딩단위(CU)를 기본 단위로 시작되며 쿼드트리(Quad Tree)의 형태를 가진다. 도 1을 상세히 설명하면 크기가 64×64를 가장 큰 코딩 단위인 LCU(Largest Coding Unit)일 때 깊이(depth)를 0으로 하여 깊이가 3이 될 때까지, 즉 8×8크기의 코딩단위(CU)까지 귀납적으로 부호화를 수행하는 형태를 보여준다.1 shows an example of CU (Coding Unit) which is a coding unit of HEVC. HEVC starts with the basic unit of such a coding unit (CU) and has a form of a quad tree. Referring to FIG. 1 in detail, when a depth is set to 0 and a depth is set to 3, that is, an 8 × 8-size coding unit (LU) is selected for a LCU (Largest Coding Unit) CU) in the encoding process.

코딩의 기본단위는 다시 하위 계층으로 분류되는 예측의 기본 단위로 분류되며 예측단위 PU(Prediction Unit)로 정의되며, 하나의 예측단위(PU)는 다수개의 블록으로 분할되어 예측을 수행하는 형태를 지닌다.The basic unit of coding is classified as a basic unit of prediction classified into a lower hierarchy, and is defined as a prediction unit PU (Prediction Unit), and one prediction unit (PU) is divided into a plurality of blocks to perform prediction .

도 2 는 통상적인 예측단위인 PU의 종류와 하나의 코딩단위(CU)내에서 예측단위(PU)의 예측순서를 나타낸다.FIG. 2 shows a prediction order of a prediction unit (PU) in one coding unit (CU) and the kind of PU which is a typical prediction unit.

도 2 를 참조하면, 크기가 2N×2N인 한 코딩단위(CU) 내에서 스킵(Skip)모드를 수행한 이후에 인터 2N×2N 모드, 인터 2N×N 모드, 인터 N×2N 모드, 인터 N×N 모드, 인트라 2N×2N 모드, 인트라 N×N 모드 순서로 예측을 수행한다. 단, 크기가 8×8인 코딩단위(CU)를 제외하고는 모든 코딩단위(CU)에서 인터 N×N 모드, 인트라 N×N 모드를 제외한 모든 나머지 예측단위(PU)에 대하여 예측을 수행한다.Referring to FIG. 2, after a Skip mode is performed in one coding unit CU having a size of 2N × 2N, an inter 2N × 2N mode, an inter 2N × N mode, an inter N × 2N mode, The intra 2N 占 2N mode, and the intra N 占 N mode. However, prediction is performed on all remaining prediction units (PU) except for the inter N × N mode and the intra N × N mode in all the coding units (CU) except for the coding unit (CU) of size 8 × 8 .

예측방법은 크게 부호화중인 프레임 내에서 부호화된 블록으로부터 예측 값을 사용하여 예측하는 화면 내 예측 부호화 방법과 이전에 복원된 프레임으로부터 움직임을 추정하여 현재 프레임의 블록을 예측하는 화면 간 예측 부호화 방법으로 분류할 수 있다. The prediction method is largely classified into an intra prediction coding method for predicting prediction using a prediction value from a block coded in a coding frame and an inter prediction coding method for predicting a block of a current frame by estimating a motion from a previously reconstructed frame can do.

화면 내 예측 방법으로는 이전에 부호화된 해당 블록의 좌측, 좌측하단, 좌측상단, 상단, 우측상단의 픽셀 값을 이용하여 여러 방향으로 예측을 수행하는 통합된 화면 내 예측 방법(Unified Intra Prediction)이 사용되고 있다.Intra prediction methods include Unified Intra Prediction (Prediction) in which predictions are performed in various directions using pixel values of left, lower left, upper left, upper, and upper right of a previously coded corresponding block .

도 3은 통상적인 인트라 예측 모드의 방향을 나타낸 도면이다.3 is a diagram showing a direction of a conventional intra prediction mode.

도 3을 참조하면, 인트라 예측 모드는 DC (Direct Current) 모드, 플라나 (Planar) 모드와 총 33가지의 예측 방향을 가진 각도 (Angular) 모드를 포함하는 총 35가지의 예측 모드가 있다.Referring to FIG. 3, there are a total of 35 prediction modes including an DC (Direct Current) mode, a Planar mode, and an angular mode with a total of 33 prediction directions.

비디오의 화면 간 예측 방법(Inter predictive coding)에는 영상 프레임을 분할해서 이전에 부호화된 프레임으로부터 움직임을 추정하여 현재의 블록을 예측하는 움직임보상을 사용하고 있다.Inter-predictive coding of video uses motion compensation to predict the current block by estimating the motion from the previously encoded frame by dividing the image frame.

화면 내 예측방법 또는 화면 간 예측방법으로 하나의 예측블록이 만들어지게 되면 현재블록의 원 화소값과 예측블록의 예측값 간의 차이값을 계산하여 잔차 신호를 생성한다. 이렇게 생성된 잔차신호를 주파수 변환하여 주파수변환블록을 얻고 이를 양자화(Quantization)시켜 양자화된 주파수계수블록을 형성한다. 변환과 양자화(Quantization)의 기본 단위는 변환단위(TU:Transform Unit)라고 명칭하며 변환단위(TU)에 따라서 결정되는 스캐닝 방법에 따라서 엔트로피 코딩을 수행하여 비트스트림을 생성한다.When one prediction block is created by the intra prediction method or the inter prediction method, a residual signal is generated by calculating a difference value between the original pixel value of the current block and the prediction value of the prediction block. The generated residual signal is subjected to frequency conversion to obtain a frequency transform block and quantized to form a quantized frequency coefficient block. The basic unit of conversion and quantization is called a conversion unit (TU) and entropy coding is performed according to a scanning method determined according to the conversion unit (TU) to generate a bitstream.

도 4는 예측을 마친 예측 단위(PU)를 다시 변환단위(TU)를 통해 변환 및 양자화를 마친 주파수계수를 스캐닝 하는 방법을 나타낸다.FIG. 4 shows a method of scanning a frequency coefficient after conversion and quantization of the predicted unit PU, which has been predicted, through the transform unit (TU).

도 4를 상세히 설명하면, 화면 내 예측 방법에서는 수직방향의 스캐닝 방법, 수평방향의 스캐닝 방법, 지그재그(Zigzag) 스캐닝 방법 중에 하나를 사용하여 스캐닝 을 적용하고, 화면간 예측에서는 지그재그(Zigzag) 스캐닝 방법을 사용하는 것을 나타낸다. 스캐닝 방법은 다양한 방법을 사용할 수 있으며 도 4에서는 3가지 방법의 스캐닝을 사용하는 것에 대한 예를 보여주며 소정의 순서에 따라 양자화된 주파수계수블록을 스캐닝하고 엔트로피코딩(Entropy Coding) 방법을 통해 부호화 과정을 수행한다.Referring to FIG. 4, in the intra-frame prediction method, scanning is applied using one of a vertical scanning method, a horizontal scanning method, and a zigzag scanning method. In the inter-frame prediction method, a zigzag scanning method Is used. Various methods can be used for the scanning method. FIG. 4 shows an example of using scanning of three methods, scanning the quantized frequency coefficient block according to a predetermined order, and encoding through the entropy coding method .

변환 및 양자화를 변환단위(TU)에 따라 각각 수행함에 있어 양자화 과정은 주파수계수로의 변환을 마친 계수를 양자화하며, 이때 양자화의 크기의 결정은 양자화 파라미터(Quantization parameter)에 의해 결정된다. 양자화 파라미터를 통해 결정된 양자화의 크기에 따라서 변환단위(TU) 안에 모든 계수의 값은 동일한 크기의 양자화를 수행한다. 하지만, 스캐닝 방법과 순서에 상관없이 변환단위(TU)가 모두 동일한 크기의 양자화를 수행하는 것은 부호화 성능에서 효과적이지 않다는 문제점을 지닌다.In performing the transform and the quantization according to the transform unit (TU), the quantization process quantizes the transformed coefficients to the frequency coefficients, and the determination of the magnitude of the quantization is determined by a quantization parameter. The values of all the coefficients within the transform unit (TU) perform the same quantization according to the quantization size determined through the quantization parameter. However, regardless of the scanning method and the order, all of the conversion units (TU) perform quantization with the same size, which is not effective in the coding performance.

이러한 문제점을 해결하기 위한 본 발명의 실시 예에 따르면, 원 영상 신호와 예측 신호 간의 잔차 신호를 주파수변환하여 얻은 주파수변환계수블록을 양자화할 때 각 주파수계수의 위치에 따라 양자화의 크기를 달리 하여 양자화함으로써 압축 성능을 향상시키는 데에 주된 목적이 있다..According to an embodiment of the present invention for solving such problems, when a frequency transform coefficient block obtained by frequency-transforming a residual signal between an original image signal and a prediction signal is quantized, the magnitude of the quantization is varied according to the position of each frequency coefficient, Thereby improving the compression performance.

전술한 목적을 달성하기 위해 본 발명의 실시예는, 영상을 부호화/복호화하는 장치에 있어서, 현재 블록의 예측 블록을 생성하고 상기 현재 블록에서 예측 블록을 감산하여 잔차 블록을 생성하고 상기 잔차 블록을 변환하여 주파수변환블록을 생성하고 상기 주파수변환블록 내 주파수계수의 위치에 따라서 양자화의 크기를 달리하여 상기 주파수변환블록을 양자화하고 상기 양자화된 주파수 변환 블록을 엔트로피코딩을 통해 비트스트림으로 부호화하는 영상 부호화기; 및 비트스트림으로부터 역엔트로피과정을 통해 양자화된 주파수변환블록을 복호하고 상기 양자화된 주파수변환블록 내 양자화 주파수계수의 위치에 따라서 역 양자화의 크기를 달리하여 주파수변환블록을 복원하고 상기 주파수변환블록을 역변환하여 잔차 블록을 복원하고 화면 간 예측 혹은 화면 내 예측 정보를 통해 예측블록을 생성하고 상기 복원되는 잔차 블록과 상기 생성된 예측 블록을 가산하여 현재 블록을 복원하는 영상 복호화기를 포함하는 것을 특징으로 하는 영상 부호화/복호화 장치를 제공한다.According to an aspect of the present invention, there is provided an apparatus for encoding / decoding an image, the apparatus comprising: a prediction block generation unit that generates a prediction block of a current block, subtracts a prediction block from the current block to generate a residual block, Transforming the quantized frequency transform block to generate a frequency transform block, quantizing the frequency transform block by varying the quantization size according to the position of the frequency coefficient in the frequency transform block, and encoding the quantized frequency transform block into a bit stream through entropy coding ; And decoding the quantized frequency transform block through an inverse entropy process from the bit stream, restoring the frequency transform block by varying the size of the inverse quantization according to the position of the quantized frequency coefficient in the quantized frequency transform block, And a picture decoder for reconstructing a current block by restoring a residual block, generating a predictive block through intra-picture prediction or intra-picture prediction information, and adding the reconstructed residual block and the generated predictive block, Encoding / decoding apparatus.

또한, 본 발명의 다른 목적을 달성하기 위해 본 발명의 실시예는, 영상을 부호화하는 장치에 있어서, 현재 블록의 예측 블록을 생성하는 예측부; 상기 현재 블록에서 예측 블록을 감산하여 잔차 블록을 생성하는 감산부; 상기 잔차 블록을 변환하여 주파수변환블록을 생성하는 변환부; 상기 주파수변환블록 내 주파수계수의 위치에 따라서 양자화의 크기를 달리하여 상기 주파수변환블록을 양자화하는 양자화부; 상기 양자화된 주파수 변환 블록을 엔트로피코딩을 통해 비트스트림으로 부호화하는 비트스트림 생성부를 포함하는 것을 특징으로 하는 영상 부호화 장치를 제공한다.According to another aspect of the present invention, there is provided an apparatus for encoding an image, the apparatus comprising: a prediction unit generating a prediction block of a current block; A subtracting unit for subtracting a prediction block from the current block to generate a residual block; A transform unit for transforming the residual block to generate a frequency transform block; A quantization unit for quantizing the frequency transform block by varying quantization magnitudes according to positions of frequency coefficients in the frequency transform block; And a bitstream generation unit for encoding the quantized frequency conversion block into a bitstream through entropy coding.

상기 양자화부는, 스캐닝 시작점에서의 거리에 따라 양자화의 크기를 달리하여 주파수변환블록을 양자화할 수 있다.The quantization unit may quantize the frequency conversion block by varying the quantization size according to the distance from the scanning start point.

상기 양자화부는, 스캐닝 시작점에서의 일정거리를 기준으로 양쪽이 서로 다른 양자화의 크기를 가질 수 있다. The quantization unit may have different quantization sizes on the basis of a certain distance at the scanning start point.

상기 양자화부는, 주파수변환블록의 블록 내 영역별로 양자화의 크기를 다르게 할 수 있다.The quantization unit may vary the quantization size in each of the intra-block areas of the frequency conversion block.

상기 양자화부는, 블록의 예측정보에 따라 스캐닝방법을 달리하고 스캐닝 정보를 이용해 양자화 크기를 달리 할 수 있다.The quantization unit may vary the quantization size using the scanning information and the scanning information according to the prediction information of the block.

상기 양자화의 크기는, 주파수변환블록에 대한 양자화를 수행함에 있어 색차 신호 및 휘도 신호의 양자화 크기를 달리 할 수 있다.The size of the quantization may be different from the quantization size of the color difference signal and the luminance signal in performing quantization for the frequency conversion block.

또한, 본 발명의 다른 목적을 달성하기 위해 본 발명의 실시예는, 영상을 복호화하는 장치에 있어서, 비트스트림으로부터 역엔트로피과정을 통해 양자화된 주파수변환블록을 복호하는 복호화부; 상기 양자화된 주파수변환블록 내 양자화 주파수계수의 위치에 따라서 역 양자화의 크기를 달리하여 주파수변환블록을 복원하는 역양자화부; 상기 주파수변환블록을 역변환하여 잔차 블록을 복원하는 역변환부; 화면 간 예측 혹은 화면 내 예측 정보를 통해 예측블록을 생성하는 예측부; 및 상기 복원되는 잔차 블록과 상기 생성된 예측 블록을 가산하여 현재 블록을 복원하는 가산부를 포함하는 것을 특징으로 하는 영상 복호화 장치를 제공한다.According to another aspect of the present invention, there is provided an apparatus for decoding an image, the apparatus comprising: a decoding unit decoding a frequency transform block quantized through an inverse entropy process from a bitstream; An inverse quantization unit for restoring a frequency transform block by varying the size of the inverse quantization according to a position of a quantization frequency coefficient in the quantized frequency transform block; An inverse transformer for inversely transforming the frequency transform block to recover a residual block; A prediction unit for generating a prediction block through intra-picture prediction or intra-picture prediction information; And an adder for adding the reconstructed residual block and the generated prediction block to reconstruct a current block.

상기 역양자화부는, 역스캐닝 시작점에서의 거리에 따라 역양자화의 크기를 달리하여 주파수변환블록을 복원 할 수 있다.The inverse quantization unit may restore the frequency transform block by varying the size of the inverse quantization according to the distance from the start point of the inverse scanning.

상기 역양자화부는, 역스캐닝 시작점에서의 일정거리를 기준으로 양쪽이 서로 다른 역양자화의 크기를 가질 수 있다.The inverse quantization unit may have a different inverse quantization size on the basis of a certain distance at the inverse scanning start point.

상기 역양자화부는, 주파수변환블록의 블록 내 영역별로 역양자화의 크기를 다르게 할 수 있다.The inverse quantization unit may vary the size of the inverse quantization for each in-block area of the frequency conversion block.

상기 역양자화부는, 추출된 예측정보에 따라 역스캐닝방법을 달리하고 역양자화 크기를 달리 할 수 있다.The inverse quantization unit may vary the inverse quantization size according to the inverse scanning method according to the extracted prediction information.

상기 역양자화의 크기는, 주파수변환블록에 대한 복원을 수행함에 있어 색차 신호 및 휘도 신호의 역양자화 크기를 달리 할 수 있다.The size of the inverse quantization may be different from the size of the inverse quantization of the chrominance signal and the luminance signal in performing the restoration on the frequency transform block.

또한, 본 발명의 다른 목적을 달성하기 위해 본 발명의 실시예는, 영상을 부호화/복호화하는 방법에 있어서, 현재 블록의 예측 블록을 생성하고 상기 현재 블록에서 예측 블록을 감산하여 잔차 블록을 생성하고 상기 잔차 블록을 변환하여 주파수변환블록을 생성하고 상기 주파수변환블록 내 주파수계수의 위치에 따라서 양자화의 크기를 달리하여 상기 주파수변환블록을 양자화하고 상기 양자화된 주파수 변환 블록을 엔트로피코딩을 통해 비트스트림으로 부호화하는 영상 부호화단계; 및 비트스트림으로부터 역엔트로피과정을 통해 양자화된 주파수변환블록을 복호하고 상기 양자화된 주파수변환블록 내 양자화 주파수계수의 위치에 따라서 역 양자화의 크기를 달리하여 주파수변환블록을 복원하고 상기 주파수변환블록을 역변환하여 잔차 블록을 복원하고 화면 간 예측 혹은 화면 내 예측 정보를 통해 예측블록을 생성하고 상기 복원되는 잔차 블록과 상기 생성된 예측 블록을 가산하여 현재 블록을 복원하는 영상 복호화단계를 포함하는 것을 특징으로 하는 영상 부호화/복호화 방법을 제공한다.According to another aspect of the present invention, there is provided a method of encoding / decoding an image, comprising: generating a prediction block of a current block; subtracting the prediction block from the current block to generate a residual block; Transforming the residual block to generate a frequency transform block, quantizing the frequency transform block by varying the quantization size according to the position of the frequency coefficient in the frequency transform block, and quantizing the quantized frequency transform block using a bitstream through entropy coding A video encoding step of encoding; And decoding the quantized frequency transform block through an inverse entropy process from the bit stream, restoring the frequency transform block by varying the size of the inverse quantization according to the position of the quantized frequency coefficient in the quantized frequency transform block, And reconstructing a current block by restoring a residual block, generating a predictive block through intra-picture prediction or intra-picture prediction information, adding the reconstructed residual block and the generated predictive block, And provides a video encoding / decoding method.

또한, 본 발명의 다른 목적을 달성하기 위해 본 발명의 실시예는, 영상을 부호화하는 방법에 있어서, 현재 블록의 예측 블록을 생성하는 예측단계; 상기 현재 블록에서 예측 블록을 감산하여 잔차 블록을 생성하는 감산단계; 상기 잔차 블록을 변환하여 주파수변환블록을 생성하는 변환단계; 상기 주파수변환블록 내 주파수계수의 위치에 따라서 양자화의 크기를 달리하여 상기 주파수변환블록을 양자화하는 양자화단계; 상기 양자화된 주파수 변환 블록을 엔트로피코딩을 통해 비트스트림으로 부호화하는 비트스트림 생성단계를 포함하는 것을 특징으로 하는 영상 부호화 방법을 제공한다.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 of a current block; A subtraction step of subtracting a prediction block from the current block to generate a residual block; A transforming step of transforming the residual block to generate a frequency transform block; A quantization step of quantizing the frequency conversion block by varying quantization magnitudes according to positions of frequency coefficients in the frequency conversion block; And a bitstream generation step of encoding the quantized frequency conversion block into a bitstream through entropy coding.

상기 양자화단계에서는, 스캐닝 시작점에서의 거리에 따라 양자화의 크기를 달리하여 주파수변환블록을 양자화 할 수 있다.In the quantization step, the frequency conversion block may be quantized by varying the quantization size according to the distance from the scanning start point.

상기 양자화단계에서는, 스캐닝 시작점에서의 일정거리를 기준으로 양쪽이 서로 다른 양자화의 크기를 가질 수 있다.In the quantization step, both sides may have different quantization sizes based on a certain distance at the scanning start point.

상기 양자화의 크기는, 주파수변환블록에 대한 양자화를 수행함에 있어 색차 신호 및 휘도 신호의 양자화 크기를 달리 할 수 있다.The size of the quantization may be different from the quantization size of the color difference signal and the luminance signal in performing quantization for the frequency conversion block.

또한, 본 발명의 다른 목적을 달성하기 위해 본 발명의 실시예는, 영상을 복호화하는 방법에 있어서, 비트스트림으로부터 역엔트로피과정을 통해 양자화된 주파수변환블록을 복호하는 복호화단계; 상기 양자화된 주파수변환블록 내 양자화 주파수계수의 위치에 따라서 역 양자화의 크기를 달리하여 주파수변환블록을 복원하는 역양자화단계; 상기 주파수변환블록을 역변환하여 잔차 블록을 복원하는 역변환단계; 화면 간 예측 혹은 화면 내 예측 정보를 통해 예측블록을 생성하는 예측단계; 및 상기 복원되는 잔차 블록과 상기 생성된 예측 블록을 가산하여 현재 블록을 복원하는 가산단계를 포함하는 것을 특징으로 하는 영상 복호화 방법을 제공한다.According to another aspect of the present invention, there is provided a method of decoding an image, the method comprising: a decoding step of decoding a frequency transform block quantized through an inverse entropy process from a bitstream; An inverse quantization step of restoring a frequency transform block by varying the magnitudes of inverse quantization according to positions of quantization frequency coefficients in the quantized frequency transform block; An inverse transform step of inversely transforming the frequency transform block to recover a residual block; A prediction step of generating a prediction block through intra-picture prediction or intra-picture prediction information; And an addition step of reconstructing a current block by adding the reconstructed residual block and the generated prediction block.

상기 역양자화단계에서는, 역스캐닝 시작점에서의 거리에 따라 역양자화의 크기를 달리하여 주파수변환블록을 복원 할 수 있다.In the dequantization step, the frequency conversion block may be restored by varying the size of the inverse quantization according to the distance from the start point of the inverse scanning.

상기 역양자화단계에서는, 역스캐닝 시작점에서의 일정거리를 기준으로 양쪽이 서로 다른 역양자화의 크기를 가질 수 있다.In the dequantization step, both sides may have different inverse quantization sizes based on a certain distance at a start point of the inverse scanning.

상기 역양자화의 크기는, 주파수변환블록에 대한 복원을 수행함에 있어 색차 신호 및 휘도 신호의 역양자화 크기를 달리 할 수 있다.The size of the inverse quantization may be different from the size of the inverse quantization of the chrominance signal and the luminance signal in performing the restoration on the frequency transform block.

이상에서 설명한 바와 같이 본 발명의 일 실시예에 의하면, 원 영상 신호와 예측 신호 간의 잔차 신호를 주파수변환하여 얻은 주파수변환계수블록을 양자화할 때 주파수계수의 위치에 따라 양자화의 크기를 달리 하여 양자화함으로써 압축 성능을 향상시키는 효과가 있다.As described above, according to an embodiment of the present invention, when a frequency transform coefficient block obtained by frequency-transforming a residual signal between an original video signal and a prediction signal is quantized, quantization is carried out by varying the quantization size according to the position of the frequency coefficient The compression performance is improved.

도 1은 코딩단위(CU)의 크기와 쿼드트리 형태를 나타낸 도면이다.
도 2는 한 코딩단위(CU)내에서 부호화되는 예측단위(PU)의 종류와 순서를 나타낸 도면이다.
도 3은 통상적인 인트라 모드의 방향을 나타낸 도면이다.
도 4는 예측방법에 따라 다르게 적용되는 스캐닝 방법을 나타낸 도면이다.
도 5는 본 발명의 일 실시예에 따른 영상 부호화 장치를 간략하게 나타낸 블록 구성도이다.
도 6는 본 발명의 일 실시예에 따른 영상 복호화 장치를 간략하게 나타낸 블록 구성도이다.
도 7은 본 발명의 일 실시예에 따른 코딩단위(CU)내에서 예측단위(PU) 결정을 설명하기 위한 순서도이다.
도 8은 주파수변환블록으로부터 비트스트림을 생성하는 과정을 나타내는 순서도이다.
도 9는 본 발명의 일 실시예에 따른 영상 부호화 방법을 설명하기 위한 순서도이다.
도 10은 본 발명의 일 실시예에 따른 영상 복호화 방법을 설명하기 위한 순서도이다.
1 is a diagram showing a size of a coding unit (CU) and a quad tree form.
FIG. 2 is a diagram showing the types and order of prediction units (PU) encoded in one coding unit (CU).
3 is a diagram showing a direction of a typical intra mode.
4 is a diagram illustrating a scanning method applied differently according to a prediction method.
FIG. 5 is a block diagram illustrating a video encoding apparatus according to an embodiment of the present invention. Referring to FIG.
FIG. 6 is a block diagram of a video decoding apparatus according to an embodiment of the present invention. Referring to FIG.
7 is a flowchart for explaining prediction unit (PU) determination in a coding unit (CU) according to an embodiment of the present invention.
8 is a flowchart illustrating a process of generating a bitstream from a frequency conversion block.
9 is a flowchart illustrating an image encoding method according to an embodiment of the present invention.
10 is a flowchart illustrating an image decoding method according to an embodiment of the present invention.

이하에서 후술할 영상 부호화 장치(Video Encoding Apparatus), 영상 복호화 장치(Video Decoding Apparatus)는 개인용 컴퓨터(PC: Personal Computer), 노트북 컴퓨터, 개인 휴대 단말기(PDA: Personal Digital Assistant), 휴대형 멀티미디어 플레이어(PMP: Portable Multimedia Player), 플레이스테이션 포터블(PSP: PlayStation Portable), 무선 통신 단말기(Wireless Communication Terminal), 스마트폰(Smart Phone), TV 등과 같은 사용자 단말기이거나 응용 서버와 서비스 서버 등 서버 단말기일 수 있으며, 각종 기기 또는 유무선 통신망과 통신을 수행하기 위한 통신 모뎀 등의 통신 장치, 영상을 부호화하거나 복호화하거나 부호화 또는 복호화를 위해 인터 또는 인트라 예측하기 위한 각종 프로그램과 데이터를 저장하기 위한 메모리, 프로그램을 실행하여 연산 및 제어하기 위한 마이크로프로세서 등을 구비하는 다양한 장치를 의미할 수 있다.The Video Encoding Apparatus and the Video Decoding Apparatus to be described below may be implemented as a personal computer (PC), a notebook computer, a personal digital assistant (PDA), a portable multimedia player (PMP) A portable terminal, a portable multimedia player, a PlayStation Portable (PSP), a wireless communication terminal, a smart phone, a TV, a server terminal such as an application server and a service server, A communication device such as a communication modem for performing communication with various devices or wired or wireless communication networks, a memory for storing various programs and data for inter or intra prediction for encoding or decoding an image, coding or decoding for image, And a microprocessor for controlling It can mean a variety of devices.

또한, 영상 부호화 장치에 의해 비트스트림으로 부호화된 영상은 실시간 또는 비실시간으로 인터넷, 근거리 무선 통신망, 무선랜망, 와이브로망, 이동통신망 등의 유무선 통신망 등을 통하거나 케이블, 범용 직렬 버스(USB: Universal Serial Bus) 등과 같은 다양한 통신 인터페이스를 통해 영상 복호화 장치로 전송되어 영상 복호화 장치에서 복호화되어 영상으로 복원되고 재생될 수 있다.In addition, the image encoded by the video encoding apparatus can be transmitted in real time or in non-real time through a wired or wireless communication network such as the Internet, a local area wireless communication network, a wireless LAN network, a WiBro network, a mobile communication network, A serial bus, and the like, and can be decoded and reconstructed into an image and reproduced by an image decoding apparatus.

통상적으로 동영상은 일련의 픽처(Picture)로 구성될 수 있으며, 각 픽처들은 프레임 또는 블록(Block)과 같은 소정의 영역으로 분할될 수 있다. 영상의 영역이 블록으로 분할되는 경우에는 분할된 블록은 부호화 방법에 따라 크게 화면 내 예측 방법인 인트라 블록(Intra Block), 화면 간 예측 방법인 인터 블록(Inter Block)으로 분류될 수 있다. 화면 내 예측 블록은 인트라 예측 부호화(Intra Prediction Coding) 방식을 사용하여 부호화되는 블록을 뜻하는데, 화면 내 예측 부호화란 현재 부호화를 수행하는 현재 픽처 내에서 이전에 부호화되고 복호화되어 복원된 블록들의 화소를 이용하여 현재 블록의 화소를 예측함으로써 예측 블록을 생성하고 현재 블록의 화소와의 차분값을 부호화하는 방식이다. 화면 간 예측 블록은 인터 예측 부호화(Inter Prediction Coding)를 사용하여 부호화되는 블록을 뜻하는데, 화면 간 예측 부호화란 하나 이상의 과거 픽처 또는 미래 픽처를 참조하여 현재 픽처 내의 현재 블록을 예측함으로써 예측 블록을 생성하고 현재 블록과의 차분값을 부호화하는 방식이다. 여기서, 현재 픽처를 부호화하거나 복호화하는데 참조되는 프레임을 참조 프레임(Reference Frame)이라고 한다.The moving picture may be generally composed of a series of pictures, and each picture may be divided into a predetermined area such as a frame or a block. In the case where an area of an image is divided into blocks, the divided blocks can be roughly classified into an Intra block, which is an intra-picture prediction method, and an Inter block, which is an inter-picture prediction method, according to a coding method. The intra prediction block refers to a block that is coded using Intra Prediction Coding (Prediction Coding) scheme. The intra prediction coding is a coding method in which a pixel of a block previously coded and decoded and reconstructed in a current picture, A prediction block is generated by predicting the pixels of the current block and a difference value between the current block and the pixel of the current block is encoded. The inter-picture prediction block refers to a block that is coded using Inter Prediction Coding. Inter-prediction coding refers to one or more past pictures or future pictures to predict a current block in a current picture to generate a prediction block And the difference value between the current block and the current block is encoded. Here, a frame to be referred to in encoding or decoding a current picture is referred to as a reference frame.

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

본 발명의 일 실시예에 따른 영상 부호화 장치(500)는 영상의 상기 주파수변환블록을 정해진 스캐닝 방법에 따른 각 계수의 위치에 따라 다른 크기의 양자화를 통해 양자화된 주파수변환블록을 생성하는 장치로서, 도 6에 도시한 바와 같이, 예측부(510), 감산부(520), 변환부(530), 양자화부(540) 및 부호화부(550)를 포함하여 구성될 수 있다.The image encoding apparatus 500 according to an exemplary embodiment of the present invention generates the quantized frequency transform block by quantizing the frequency transform block of the image according to a predetermined scanning method, A subtractor 520, a transformer 530, a quantizer 540, and an encoder 550, as shown in FIG.

부호화하고자 하는 입력 영상은 코딩단위(Coding Unit)로 입력이 되는데, 본 발명에서, 코딩단위(Coding Unit)는 N×N 블록 형태이며 N은 2n의 크기를 가진다. 코딩단위는 쿼드트리(Quad Tree)의 형태로 이루어져 있으며 가장 큰 코딩단위(Largest Coding Unit)으로부터 지정 된 깊이까지 귀납적으로 부호화를 수행한다.An input image to be encoded is input as a coding unit. In the present invention, a coding unit is an N × N block type and N has a size of 2 n . The coding unit is in the form of a quad tree and performs inductive encoding from the largest coding unit to a specified depth.

하나의 코딩단위(CU)내에서 예측단위(Prediction Unit)별로 예측이 되는데, 이 때, 부호화기에서 예측단위(PU)는 NxM 블록 형태이며 N과 M은 각각 2n의 크기를 가진다. 4개의 인터 예측단위와 2개의 인트라 예측단위(PU)를 가지며, 모든 예측단위(PU)에 대해 코딩을 수행하여 압축효율이 가장 좋은 예측단위(PU)의 정보를 사용한다. 이 때, 예측단위(PU)는 변환단위(TU)로 나뉘며 변환단위(TU)는 예측단위(PU)의 크기와 무관하며, 코딩단위(CU)의 크기보다 같거나 작다. 변환단위를 변환 및 양자화 한 후 엔트로피코딩(Entropy Coding)을 통해 비트스트림을 생성한다. 이 때 압축효율에 대한 기준은 영상 정보 전송에 필요한 비트 수와 원본블록과 예측블록간의 차이값을 포함하는 율-왜곡 값(Rate Distortion cost)을 통해 결정 된다.The prediction unit (PU) in the encoder is of the NxM block type, and N and M are each 2n in size. The prediction unit (PU) in the coding unit is predicted by one prediction unit (Prediction Unit) in one coding unit (CU). The prediction unit PU has four inter prediction units and two intra prediction units PU and performs coding on all the prediction units PU to use the prediction unit PU having the best compression efficiency. In this case, the prediction unit PU is divided into a conversion unit TU, the conversion unit TU is independent of the size of the prediction unit PU, and is equal to or smaller than the size of the coding unit CU. The transform unit is transformed and quantized, and then a bitstream is generated through entropy coding. In this case, the criterion for the compression efficiency is determined by a rate distortion cost including the number of bits necessary for transmission of image information and the difference between the original block and the prediction block.

예측부(510)는 현재 코딩단위(CU)의 예측단위(PU)를 예측하기 위하여 다른 프레임을 이용하여 예측 블록을 생성하거나 이미 부호화 된 좌측과 상단의 화소값을 이용하여 예측블록을 생성한다. 즉, 화면 내 예측모드에서 예측부(510)는 이미 부호화 과정을 거치고 복원 된 상단과 좌측의 코딩단위(CU)정보를 이용하여 예측모드를 결정하고 이 예측모드를 이용하여 예측블록을 생성하는 반면, 화면 간 예측모드에서 예측부(510)는 이미 부호화 과정을 거치고 복원된 이전 프레임에서 움직임 추정을 통해 움직임 벡터를 생성하고 이 움직임 벡터를 이용한 움직임 보상 과정에서 예측 블록을 생성할 수 있다. 예측부(510)는 화면 간 예측 방법 및/또는 화면 내 예측 방법을 사용할 수 있다.The prediction unit 510 generates a prediction block using another frame to predict a prediction unit PU of the current coding unit CU or generates a prediction block using the already coded left and top pixel values. That is, in the intra prediction mode, the predicting unit 510 determines the prediction mode using the reconstructed upper and left coding unit (CU) information, and generates a prediction block using the prediction mode In the inter-picture prediction mode, the predicting unit 510 may generate a motion vector through motion estimation in a previous frame that has undergone a coding process, and may generate a prediction block in a motion compensation process using the motion vector. The prediction unit 510 may use an inter-picture prediction method and / or an intra-picture prediction method.

감산부(520)는 현재 블록의 각 화소의 원 화소값과 예측부(510)가 생성한 예측값의 차이값을 계산하여 잔차신호를 생성한다. 이는, 상기 예측부(510)에서 해당하는 화면 간 예측 방법과 화면 내 예측방법을 통해 생성된 잔차신호를 말하며 잔차신호는 예측단위(PU)의 단위로 결정된다.The subtractor 520 calculates the difference between the original pixel value of each pixel of the current block and the predicted value generated by the predictor 510 to generate a residual signal. This is a residual signal generated through the corresponding inter-picture prediction method and intra-picture prediction method in the predicting unit 510, and the residual signal is determined in units of a prediction unit (PU).

변환부(530)는 감산부(520)에 의해 생성된 잔차신호를 주파수 영역으로 변환한다. 변환부(530)는 변환단위(Transform Unit)로 변환이 되는데, 변환단위(TU)는 N×N 블록 형태이며 N은 2n의 크기를 가진다. 변환부(530)에서 현재 예측단위(PU)에 대하여 예측이 모든 수행된 직후에 변환단위(TU) 별로 귀납적으로 변환이 수행되며, 변환단위(TU)의 크기는 해당 코딩단위(CU)의 크기보다 같거나 작으며, 해당 예측단위(PU)의 크기와는 무관하다. 변환단위(TU)는 코딩단위(CU)와 같은 쿼드트리 형태이며, 코딩단위(CU)의 크기로부터 임의로 지정된 깊이까지 귀납적으로 변환을 수행한다. 이 때 변환단위(TU)의 깊이 별 분열변환플래그(split transform flag)를 복호화기로 전송하여 최저 율-왜곡 값(RD cost)을 가지는 변환단위(TU)의 크기에 대한 정보를 전송한다. 여기서, 변환부(530)는 이산 코사인 변환(DCT: Discrete Cosine Transform, 이하 'DCT 변환'이라 칭함) 또는 웨이블릿 변환(Wavelet Transform) 등의 시간축의 화상 신호를 주파수축으로 변환하는 다양한 변환 기법을 이용하여 잔차신호를 주파수 영역으로 변환할 수 있다.The transforming unit 530 transforms the residual signal generated by the subtracting unit 520 into a frequency domain. The transform unit 530 is transformed into a transform unit. The transform unit TU has an N × N block form and N has a size of 2n . The transform unit 530 transforms the transform unit TU into the transform unit TU immediately after all the predictions are performed on the current prediction unit PU and the size of the transform unit TU corresponds to the size of the corresponding coding unit CU And is independent of the size of the prediction unit (PU). The conversion unit TU is in the form of a quad tree such as a coding unit CU and performs inductive conversion from the size of the coding unit CU to a depth arbitrarily specified. At this time, a split transform flag of the transform unit TU is transmitted to the decoder to transmit information on the size of the transform unit TU having the lowest rate-distortion value RD cost. Here, the transforming unit 530 may use various transform techniques for transforming image signals on a time axis, such as discrete cosine transform (DCT) or wavelet transform, to a frequency axis So that the residual signal can be converted into the frequency domain.

양자화부(540)는 변환부(530)에 의해 주파수 영역으로 변환된 잔차신호로 이루어진 주파수변환블록을 양자화(Quantization)한다. 여기서 양자화부(540)는 주파수계수블록의 양자화를 수행할 뿐만 아니라 양자화를 수행하면서 스캐닝도 동시에 수행하는 것으로 가정하여 설명한다. 이 경우, 예측부(510)가 화면 간 예측 방법을 사용하여 예측을 수행한 경우에는 양자화부(540)는 지그재그 스캐닝(Zigzag Scanning)방법을 사용하여 주파수계수블록을 스캐닝하고 화면 내 예측 방법을 사용한 경우에는 예측부(510)에서 결정된 예측 방향에 따라 수평방향의 스캐닝, 수직방향의 스캐닝, 지그재그스캐닝의 3가지 형태 중 하나의 스캐닝 순서를 가진다. 예를 들어 인트라 예측 모드가 수평방향을 갖는 경우에는 수평방향의 스캐닝을, 수직방향을 갖는 경우에는 수직방향 스캐닝을, DC 모드인 경우에는 지그재그스캔 방법을 갖는 등의 방법으로 스캐닝 방법을 결정할 수 있으며, 이러한 스캐닝 방법의 결정방법은 실시예에 따라 달라질 수 있다.The quantization unit 540 quantizes the frequency transform block made up of the residual signal transformed into the frequency domain by the transform unit 530. Here, it is assumed that the quantization unit 540 not only performs quantization of a frequency coefficient block, but also simultaneously performs quantization and scanning. In this case, when the predicting unit 510 performs prediction using the inter picture prediction method, the quantizing unit 540 scans the frequency coefficient block using a zigzag scanning method and uses the in- Scanning direction, horizontal scanning, vertical scanning, and zigzag scanning in accordance with the prediction direction determined by the prediction unit 510. FIG. For example, the scanning method can be determined in such a manner that the intra-prediction mode has a horizontal direction, the horizontal direction scanning has vertical direction, the vertical direction scanning has a vertical direction, and the zigzag scanning method has a DC mode. , And the method of determining such a scanning method may vary depending on the embodiment.

한편, 양자화부(540)는 모든 블록에 대하여 동일한 양자화 파라미터를 갖는 균등 양자화가 아닌 예측 모드에 따라 결정된 스캐닝 방법과 주파수계수의 위치에 따라 양자화의 크기를 달리하는 양자화를 수행할 수 있다.On the other hand, the quantization unit 540 may perform quantization with different quantization sizes according to the scanning method determined according to the prediction mode and the position of the frequency coefficient, instead of the uniform quantization having the same quantization parameter for all the blocks.

여기서 스캐닝 방법은 도 4에 도시된 방법에 한정되지 아니하며 다양한 스캐닝 방법을 모두 포함할 수 있으며 또한 예측 모드에 따라서 결정되는 스캐닝 방법도 실시예에 따라 다양한 방법이 사용될 수 있으며, 양자화부(540)에서 수행하는 양자화의 크기를 다르게 하는 방법에 관한 상세한 설명은 후술한다. The scanning method is not limited to the method shown in FIG. 4 and may include all of various scanning methods. Also, various scanning methods may be used according to the embodiment, A detailed description of a method for varying the size of the quantization to be performed will be described later.

부호화부(550)는 양자화부(540)에 의해 양자화된 주파수 계수로 이루어진 양자화된 주파수변환블록을 비트스트림으로 부호화한다. 이러한 부호화 기술로서는 엔트로피 부호화(Entropy Encoding) 기술이 사용될 수 있으나, 반드시 이에 한정하지 않고 다른 다양한 부호화 기술이 사용될 수도 있을 것이다.The encoding unit 550 encodes the quantized frequency conversion block having the frequency coefficients quantized by the quantizing unit 540 into a bitstream. As such an encoding technique, entropy encoding technology may be used, but various other encoding techniques may be used without being limited thereto.

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

역양자화부(560)는 변환 및 양자화된 잔차 블록(즉, 양자화된 주파수변환블록)을 역 양자화(Inverse Quantization)하고, 역변환부(570)는 역양자화된 변환 잔차 블록을 역 변환(Inverse Transform)하여 잔차 블록을 복원(Reconstruction)한다. 여기서, 역 양자화와 역 변환은 변환부(530)가 수행한 변환 과정과 양자화부(540)가 수행한 양자화 과정을 각각 역으로 수행함으로써 이루어질 수 있다. 즉, 역양자화부(560) 및 역변환부(570)는 변환부(530) 및 양자화부(540)로부터 발생되어 전달되는 변환 및 양자화에 관한 정보(예를 들어, 변환 및 양자화 타입에 대한 정보)를 이용하여 역 양자화 및 역 변환을 수행할 수 있다. 여기서 역양자화부(560)는 양자화부(540)에서 기술한 스캐닝 방법에 따라 크기를 달리하는 양자화방법에 따라 동일한 역양자화를 수행한다.The inverse quantization unit 560 inverse quantizes the transformed and quantized residual block (i.e., the quantized frequency transform block), and the inverse transform unit 570 inversely transforms the inverse quantized transform residual block, And reconstructs the residual block (Reconstruction). In this case, the inverse quantization and inverse transform can be performed by reversing the transformation process performed by the transform unit 530 and the quantization process performed by the quantization unit 540, respectively. That is, the inverse quantization unit 560 and the inverse transformation unit 570 convert the information about the transformation and quantization (for example, information about the transformation and the quantization type) generated and transmitted from the transformation unit 530 and the quantization unit 540, To perform inverse quantization and inverse transform. Here, the inverse quantization unit 560 performs the same inverse quantization according to the quantization method of different sizes according to the scanning method described in the quantization unit 540. [

가산부(580)는 예측부(510)에서 생성된 예측 블록과 역변환부(570)에 의해 생성된 잔차 블록을 가산하여 복원된 블록을 생성한다.The addition unit 580 adds the residual block generated by the inverse transform unit 570 to the prediction block generated by the prediction unit 510 to generate a reconstructed block.

프레임 메모리(590)는 가산부(580)에서 복원된 블록을 저장하여 인트라 혹은 인터 예측 수행 시 예측 블록을 생성하기 위해 참조블록으로 사용된다.The frame memory 590 stores the reconstructed block in the adder 580 and is used as a reference block to generate a predictive block in intra or inter prediction.

본 발명에 상세한 방법은 변환부(530)에 의해 주파수변환 블록을 생성하고 생성된 블록에 대한 양자화부(540)에서 양자화를 하는 과정으로 아래과 같은 계산 과정을 수행한다.The method described in the present invention performs a calculation process as follows in a process of generating a frequency transform block by the transform unit 530 and quantizing the generated block by the quantization unit 540.

상기 변환부(530)에서 예측블록을 주파수블록으로 변환하기 위해 NxN 크기에 해당하는 잔여블록의 변환은 아래의 수학식 1과 같은 계산과정을 수행한다.In order to convert the prediction block into the frequency block in the transforming unit 530, the transform of the residual block corresponding to the NxN size is performed according to the following equation (1).

Figure pat00001
Figure pat00001

위 수학식 1에서 X 는 예측블록에 의해 생성된 잔차 블록을 나타내고, A 는 주파수변환을 위한 행렬의 곱을 나타내며, T 는 해당 행렬의 행과 열이 바뀐 행렬인 전치행렬을 나타내며, Y 는 잔차 블록 X 에 대하여 변환이 수행된 결과인 변환된 잔차 블록을 나타낸다.Where X represents a residual block generated by a prediction block, A represents a product of a matrix for frequency conversion, T represents a transposed matrix in which rows and columns of the matrix are changed, and Y represents a residual block X represents the transformed residual block that is the result of the transform performed on X.

Figure pat00002
Figure pat00002

상기 수학식 1에서 사용하는 Y 는 결국 상기 수학식 2와 같은 이산여현변환의 형태로 나타낼 수 있다. 본 발명에서는 변환에 있어 이산여현변환에 국한되지 않으며 이산정현변환 등 유사한 주파수변환 방법을 모두 포함한다. 이렇게 주파수변환과정을 거친 후 변환된 잔차 블록은 다음과 같은 양자화 과정을 거치게 된다. 양자화 과정은 아래 수학식 3과 같은 계산 과정을 가진다.The Y used in Equation (1) can be expressed in the form of a DCT like the Equation (2). The present invention is not limited to DCT in the conversion but includes all similar frequency conversion methods such as discrete cosine transform. After the frequency conversion process, the transformed residual block is subjected to the following quantization process. The quantization process has a calculation process as shown in Equation (3) below.

Figure pat00003
Figure pat00003

수학식 3 에서, Level 는 잔차 블록에 대하여 주파수변환을 마친 후 행렬로 표현되는 주파수변환 블록의 원소들을 나타내며, Qstep 은 양자화 단계(Quantization Step)의 크기를 나타낸다.In Equation (3), Level represents the elements of the frequency conversion block expressed by a matrix after frequency conversion is performed on the residual block, and Qstep Represents the size of the quantization step.

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

Figure pat00004
Figure pat00004

Figure pat00005
Figure pat00005

수학식 4 및 수학식 5에서, Coeff 는 잔여 블록의 각 잔여 신호를 변환한 후 행렬로 표현되는 주파수변환계수를 나타내며, Q 는 양자화 계수(Quantization Parameter)에 따라 결정되는 계수로서, 양자화의 크기를 결정하는 요소이다. H.264/AVC에서는 정수형 변환(Integer Transform)이 사용되어 변환과정의 일부가 양자화과정으로 대체된다. 따라서, 정수형 변환과정에서 주파수변환계수의 위치별로 곱해져야 할 수의 일부가 포함된 Q 가 적용되어 주파수변환계수의 위치에 따라서 다른 Q 를 사용할 수 있다. 정수형 변환을 사용하지 않는 HEVC에서는 변환과정과 양자화과정이 분리되어 있으므로, 양자화 할 때 모든 주파수변환계수의 위치에 동일한 Q값이 적용된다. offset 은 양자화 과정에서의 반올림으로 인한 오류와 데드존(Dead Zone)의 크기를 결정하는 요소이다. 여기서, 내림(Round Down) 연산을 수행한다. M 은 변환단위(TU)의 크기에 따라 NxN 블록의 경우 M =log 2 N 으로 결정된다. 예를 들어 변환단위(TU)의 크기가 4x4일 경우 M =log24=2 가 된다. DB 는 IBDI(Internal Bit Depth Increase)를 지원하기 위하여, 화소당 8bit 이상의 화소값을 갖는 경우 (예로서 화소당 12bit를 갖는 경우는 4로 정의, 화소당 8bit를 갖는 경우는 0) 영상 부호화장치에서 사용되는 값이다.In Equations (4) and (5), Coeff denotes a frequency transform coefficient expressed by a matrix after transforming each residual signal of the residual block, Q is a coefficient determined according to a quantization parameter, It is the determining factor. In H.264 / AVC, Integer Transform is used, and part of the conversion process is replaced by the quantization process. Therefore, Q including a part of the number to be multiplied by the position of the frequency conversion coefficient in the integer type conversion process is applied, and another Q can be used depending on the position of the frequency conversion coefficient. In HEVC that does not use integer type conversion, since the conversion process and the quantization process are separated, the same Q value is applied to the positions of all frequency conversion coefficients at the time of quantization. offset is an element that determines the error due to rounding in the quantization process and the size of the dead zone. Here, a round down operation is performed. M is determined by M = log 2 N in the case of NxN block depending on the size of the conversion unit (TU). For example, if the size of the conversion unit (TU) is 4x4, then M = log 2 4 = 2. In order to support IBDI (Internal Bit Depth Increase), the DB has a pixel value of 8 bits or more per pixel (for example, when the pixel has 12 bits per pixel, it is defined as 4, and when the pixel has 8 bits per pixel, This is the value used.

본 발명은 상기 수학식 5에서 Q 의 값에 크기에 따라서 주파수변환계수의 보존량을 조절하는 방법을 사용한다. 이하의 설명에서는 Q 를 Q값이라 정의하며 Q값의 변화에 따라 양자화의 크기를 결정 지을 수 있다. 즉, Q값이 크면 양자화 크기를 작게 하는 효과를 가지며, Q값이 작아지면 양자화 크기를 크게 하는 효과를 가질 수 있다.The present invention uses a method of adjusting the amount of stored frequency conversion coefficients according to the magnitude of Q in Equation (5). In the following description, Q is defined as a Q value, and the size of the quantization can be determined according to the change of the Q value. That is, if the Q value is large, the quantization size is reduced. If the Q value is small, the quantization size can be increased.

도 4 에서 결정된 화면 내 예측과 화면 간 예측에서 사용하는 스캐닝하는 방법에 따라 변환블록의 위치를 구분하고 스캐닝 위치에 따라 Q 값을 조절함으로써 스캐닝 시작점에서 가까운 계수들은 큰 Q 값을 갖도록 하여 양자화 크기를 작게 하고, 스캐닝 순서 상 멀리 있는 계수들은 작은 Q 값을 갖도록 하여 양자화 크기를 크게 결정한다. 도 7은 본 발명의 실시 예에 따른 변환에 대한 Q 값의 변화를 나타낸 도면이다.The position of the transform block is classified according to the scanning method used in the intra-prediction and the inter-image prediction determined in FIG. 4, and the coefficients close to the scanning start point have a large Q value by adjusting the Q value according to the scanning position, And the quantization scale is determined to be large by making the coefficients in the far distance in the scanning order have a small Q value. FIG. 7 is a diagram illustrating a change in Q value for a transformation according to an embodiment of the present invention. FIG.

도 7 에서는 도 4 에서 결정된 스캐닝 방법에 따라 Q 값을 달리하는 예를 보여주며 도 7 에서 흰색의 계수위치는 Q 값을 상대적으로 크게 사용하여 양자화의 크기를 작게 조정하여 스캐닝의 시작점에 가까운 값들은 원본값들과 비슷하도록 보존하는 역할을 보여주며, 도 7 에서 회색 부분(빗금으로 표시된 부분)의 위치는 스캐닝의 순서 상에서 멀리 있는 값을 구분하여 해당하는 계수의 Q 값을 작게 조정하여 양자화의 크기를 크게 만들어 양자화를 마친 해당 계수의 값을 작게 만드는 예를 나타낸다.In FIG. 7, Q values are changed according to the scanning method determined in FIG. 4. In FIG. 7, the Q value is relatively large in the white coefficient position, and the quantization size is adjusted to be small so that values close to the starting point of the scanning In FIG. 7, the position of the gray portion (hatched portion) is divided by the distant value in the order of scanning, and the Q value of the corresponding coefficient is adjusted to be smaller than the size of the quantization To make the value of the coefficient after the quantization is made small.

또한 도 7에서는 주파수계수블록에 대하여 일정 영역으로 나누어 양자화계수를 달리할 수 있음도 보여준다. 예를 들어, 주파수계수블록의 왼쪽 2개 줄(또는 상측 2개 줄)의 화소와 나머지 줄의 화소의 양자화계수를 다르게 하는 방법으로 영역별 양자화 계수를 달리할 수 있다. 이렇게 영역으로 나누어 양자화계수를 달리하는 경우도 스캔 방법에 종속되어 결정될 수 있다. 즉 수평방향 스캔인 경우에 상측 2개 줄의 양자화 계수와 나머지 줄의 양자화 계수를 달리하는 방법으로 양자화계수를 달리 할 수 있다.In FIG. 7, it is also shown that the quantization coefficient can be changed by dividing the frequency coefficient block into a certain area. For example, the quantization coefficients of the left two lines (or the top two lines) of the frequency coefficient block may be different from the quantization coefficients of the pixels of the remaining lines. The case where the quantization coefficients are divided into the regions and the quantization coefficients are different can also be determined depending on the scanning method. That is, in the case of the horizontal direction scan, the quantization coefficients may be different by a method in which the quantization coefficients of the upper two rows are different from the quantization coefficients of the remaining rows.

변환부(530)와 양자화부(540)의 계산을 역으로 수행하는 역양자화부(560) 및 역변환부(570)의 과정은 아래와 같다.The inverse quantization unit 560 and the inverse transformation unit 570, which perform inverse calculation of the transform unit 530 and the quantization unit 540, are as follows.

본 발명의 양자화 과정과 동일한 방법으로 역양자화가 이루어지고 변환과정과 동일한 방법으로 역변환이 이루어지며, 특히 역양자화 과정에서는 전술한상기 스캐닝 방법에 따른 양자화과정과 동일한 역양자화 과정이 이루어진다. 이처럼 양자화 과정을 거친 변환 계수는 다음과 같은 역양자화 과정과 역 변환 과정을 통해서 원래의 값의 잔여 블록을 얻을 수 있다.The inverse quantization is performed in the same manner as the quantization process of the present invention and the inverse transformation is performed in the same manner as the conversion process. In particular, in the inverse quantization process, the same inverse quantization process as the quantization process according to the previous scanning method is performed. The transform coefficients after the quantization process can obtain the residual blocks of the original values through the following inverse quantization process and inverse transform process.

역 양자화는 다음 수학식 6과 같이 계산된다.The inverse quantization is calculated as shown in Equation (6).

Figure pat00006
Figure pat00006

수학식 6은 기본적인 역 양자화 동작을 나타낸다. IQ 는 역 양자화 계수(Quantization Parameter)에 따라 결정되는 계수이며, 역 양자화의 크기를 결정하는 요소이다.Equation (6) represents a basic dequantization operation. IQ is a coefficient determined according to the inverse quantization parameter, and is an element for determining the size of the inverse quantization.

Figure pat00007
Figure pat00007

수학식 7에 의해 IQ 값이 결정될 수 있으며, 수학식 7은 Q IQ 의 곱이 2의 20승으로 표현이 가능함을 의미하며, 역 양자화 이후에는 역 변환을 거치게 되는데 역 변환은 수학식 8과 같다.Equation (7) indicates that the product of Q and IQ can be represented by 20 powers of 2, and after inverse quantization, the inverse transform is performed. The inverse transform is expressed by Equation (8) .

Figure pat00008
Figure pat00008

수학식 8에서 X 는 변환된 잔여블록인 Y 에 정수 변환을 위한 행렬 A A 행렬의 행과 열이 바뀐 행렬인 전치 행렬을 곱하여 복원된 잔차 블록을 나타낸다.In Equation (8), X represents a residual block reconstructed by multiplying the transformed residual block Y by a matrix A for integer transformation and a transpose matrix, which is a matrix in which rows and columns of the A matrix are changed.

Figure pat00009
Figure pat00009

이상에서 전술한 변환 및 양자화를 응용하면 4x4 블록 크기의 변환 및 양자화, 16x16 블록 크기의 변환 및 양자화 등 NxN 블록 크기의 변환 및 양자화와 같은 다양한 변환 및 양자화 타입에 따라 변환 및 양자화를 수행할 수 있다. 이는 후술하는 영상 복호화 장치 및 방법과 동일한 방법을 사용한다.By applying the above-described transform and quantization, transformation and quantization can be performed according to various transformation and quantization types such as NxN block size conversion and quantization such as 4x4 block size conversion and quantization, 16x16 block size conversion and quantization . This uses the same method as the video decoding apparatus and method described later.

또한 본 발명에 상세한 과정을 설명하기 위해 도 8은 주파수변환블록으로부터 비트스트림을 생성하는 과정을 나타내는 순서도를 나타낸다.8 is a flowchart illustrating a process of generating a bitstream from a frequency transform block according to an exemplary embodiment of the present invention.

변환부(530)에 의해 주파수변환블록이 생성(S810)되고, 여기서 변환하는 과정은 상기 수학식 1~2와 같은 이산여현변환 혹은 다른 형태의 변환을 가질 수 있다. 또한, 변환은 색차신호와 밝기신호에 따라 다르게 적용이 가능하다.The transform unit 530 generates a frequency transform block (S810), and the transform process may have a DCT or other transform as shown in Equations (1) and (2). In addition, the conversion can be applied differently depending on the color difference signal and the brightness signal.

양자화부(540)는 변환을 완료한 주파수변환블록에 대하여 예측부(510)를 통해 결정된 블록의 모드정보에 따라 화면 내 예측 혹은 화면 간 예측에서는 예측 방향에 따라서 수직방향의 스캔, 수평방향의 스캔, 지그재그(Zigzag) 스캔 등의 스캔 방향을 판단하여 스캐닝 방법을 선택한다(S820). 이때, 결정된 스캐닝을 수행하면서 수학식 3~5을 이용한 양자화의 크기를 달리하는 Q 값을 이용한 양자화를 수행한다(S830). 상기 기술한 Q 값은 영역에 따라 고정된 값을 사용하는 방법을 사용할 수도 있지만, Q 값은 고정된 값을 사용하거나 위치에 따라 다르게 계산하는 방법을 사용할 수 있으며, 색차 신호와 밝기 신호에서 각각 다르게 적용할 수도 있다. 본 실시예에서는 양자화 계수를 스캐닝의 순서 상에 가까운 값보다 멀리 있는 값을 작게 결정한다. 스캐닝되는 순서에 따라 양자화의 크기를 달리 함으로써 부호화부(550)의 엔트로피코딩(Entropy Coding)을 수행(S840)함에 있어 비트스트림을 더욱 효과적으로 생성함에 따라 전체 영상 부호화 장치의 성능을 향상시킬 수 있다.The quantization unit 540 performs in-picture prediction according to the mode information of the block determined through the predicting unit 510 for the frequency transform block for which the transform is completed, or in the vertical direction according to the prediction direction in the inter picture prediction, Zigzag scanning, and the like, and selects a scanning method (S820). At this time, quantization using a Q value having a different quantization size using Equations 3 to 5 is performed while performing the determined scanning (S830). The Q value described above may be a method of using a fixed value depending on a region. However, a method of calculating a Q value using a fixed value or a method that varies depending on a position can be used. It can also be applied. In this embodiment, the quantization coefficient is determined to be smaller than a value closer to the order of scanning. The entropy coding of the encoding unit 550 is performed by varying the quantization size according to the scanning order in operation S840 so that the performance of the entire image encoding apparatus can be improved by more effectively generating the bitstream.

즉, 본 발명에 일 실시예로 기술한 스캐닝 방법의 순서와 계수의 위치에 따라 양자화의 크기를 달리하는 방법은 실시예에서 설명한 방법에 양자화의 방법과 크기를 달리 할 수 있으며, 스캐닝의 방법은 다양한 형태로 적용이 가능함을 의미한다. 여기서 다양한 형태란 블록의 예측방향에 적용되는 스캐닝 방법의 가지 수와 양자화를 수행함에 있어 Q값의 변화만을 주는 것이 아닌 양자화의 방법을 달리 할 수 있으며, 스캐닝에 따라 양자화의 크기를 달리하는 방법도 모두 포함하는 영상 부호화 장치를 의미한다.That is, the method of varying the quantization size according to the order of the scanning method and the position of the coefficient described in the embodiment of the present invention may vary the quantization method and size in the method described in the embodiment, Which means that it can be applied in various forms. Here, the various forms are different from the quantization method, not only the number of the scanning method applied to the prediction direction of the block and the change of the Q value in performing the quantization, and the method of varying the quantization size according to the scanning Quot; means a video encoding apparatus including all of them.

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

도 6에 도시한 바와 같이, 본 발명의 일 실시예에 따른 영상 복호화 장치(600)는 영상의 현재 예측단위 블록의 양자화된 주파수변환신호를 이용하여 신호의 역 양자화 및 역 변환과정을 생략하여 복호화하는 장치로서, 복호화부(610), 역양자화부(620), 역변환부(630), 가산부(640) 및 예측부(650)를 포함하여 구성된다.6, an apparatus 600 for decoding an image according to an exemplary embodiment of the present invention may perform a decoding process by omitting a process of dequantizing and inverse-converting a signal using a quantized frequency-converted signal of a current prediction unit block of an image, And includes a decoding unit 610, an inverse quantization unit 620, an inverse transformation unit 630, an addition unit 640, and a prediction unit 650.

복호화부(610)는 비트스트림을 복호화하여 양자화된 주파수변환블록을 추출한다.The decoding unit 610 decodes the bit stream and extracts the quantized frequency conversion block.

복호화부(610)는 부호화 데이터를 복호화하여 양자화된 주파수변환블록뿐만 아니라 복호화에 필요한 정보들을 복호화하거나 추출할 수 있다. 복호화에 필요한 정보들은 부호화 데이터(즉, 비트스트림) 내의 부호화된 비트열을 복호화하는 데 필요한 정보들을 말하며, 예를 들어 블록 타입에 대한 정보, 움직임 벡터에 대한 정보, 변환 및 양자화 타입에 대한 정보 등이 될 수 있으며, 이외의 다양한 정보들이 될 수 있다.The decoding unit 610 can decode or extract information necessary for decoding as well as the quantized frequency conversion block by decoding the encoded data. The information necessary for decoding refers to information necessary for decoding an encoded bit stream in encoded data (i.e., a bit stream). For example, information on a block type, information on a motion vector, information on a transform and a quantization type And may be various other information.

즉, 복호화부(610)는 영상 부호화 장치(500)에 의해 부호화된 데이터인 비트스트림을 복호화하여 영상의 현재 블록에 대한 화소 정보를 포함하고 있는 양자화된 주파수변환 블록을 추출하고, 추출된 예측에 필요한 정보를 예측부(650)로 전달한다.That is, the decoding unit 610 decodes the bitstream, which is the data encoded by the image encoding apparatus 500, and extracts the quantized frequency conversion block including the pixel information of the current block of the image, And transfers necessary information to the predicting unit 650.

예측부(650)는 복호화부(610)로부터 전달된 예측에 필요한 정보를 이용하여 영상 부호화 장치(500)의 예측부(510)와 동일한 방식으로 현재 블록을 예측할 수 있다.The prediction unit 650 can predict a current block in the same manner as the prediction unit 510 of the image encoding apparatus 500 using information required for prediction transmitted from the decoding unit 610. [

예측부(650)는 복호화부(610)에서 추출된 예측에 필요한 정보를 이용하여 화면 간 예측 방법 혹은 화면 내 예측 방법으로 현재 블록에 대한 예측값을 생성한다. 예측부(650)는 영상 부호화 장치(500)의 예측부(510)에서 결정된 예측 단위의 분할에 따른 예측 방법과 동일한 방법으로 비트스트림을 통한 복호화부(610)을 통해 얻은 정보를 이용해 예측단위를 결정하고 예측 값을 생성한다.The prediction unit 650 generates prediction values for the current block by using the inter picture prediction method or the intra prediction method using the information necessary for prediction extracted by the decoding unit 610. [ The prediction unit 650 predicts a prediction unit using the information obtained through the decoding unit 610 through the bitstream in the same manner as the prediction method according to the division of the prediction unit determined by the prediction unit 510 of the image coding apparatus 500 And generates a predicted value.

본 발명의 일 실시예에 따른 영상 복호화 장치(600)의 예측부(650)는 추출된 예측모드, 예측 단위 등의 정보를 이용하여 전술한 영상 부호화 장치(500)의 예측부(510)와 동일하게 예측블록을 생성한다. 따라서, 중복 설명을 피하기 위해 이에 대한 더 이상의 상세한 설명은 생략한다.The predicting unit 650 of the image decoding apparatus 600 according to an embodiment of the present invention uses the information of the extracted prediction mode and prediction unit to perform the same processing as the predicting unit 510 of the image encoding apparatus 500 Thereby generating a prediction block. Therefore, further detailed description thereof will be omitted in order to avoid redundant description.

역양자화부(620)는 복호화부(610)에 의해 비트스트림으로부터 추출된 양자화된 주파수변환 블록을 역 양자화한다. 이는 영상 부호화 장치(500)에서의 양자화부(540)에서 설명한 스캐닝 방법 및 스캐닝 위치에 따라 양자화의 크기를 달리하는 방법과 동일하며 중복 설명을 피하기 위해 상세한 설명은 생략한다. 여기서, 예측 모드에 따른 스캐닝 방법과 해당 스캐닝 방법에서 양자화 계수가 달라지는 지점의 위치 등에 대한 정보는 영상 부호화 장치(500)와 동일한 값을 사용하도록 약속된 것으로 가정한다. 따라서 추가적인 정보 없이 예측모드가 추출되면 스캐닝 방법 및 양자화계수의 크기가 바뀌는 지점을 알 수 있어 이를 이용하여 역스캐닝 및 역양자화 할 수 있다. 여기서 역양자화부(620)는 역스캐닝 및 역양자화를 함께 수행하는 것으로 가정한다. 따라서 양자화부(540)에서 사용한 스캐닝 방법은 역양자화부(620)의 역스캐닝 방법에 대응되고, 양자화부(540)에서 사용한 양자화 크기는 역양자화부(620)의 역양자화 크기에 대응된다.The inverse quantization unit 620 dequantizes the quantized frequency transform block extracted from the bit stream by the decoding unit 610. [ This is the same as the scanning method described in the quantization unit 540 in the image encoding apparatus 500 and the method of varying the quantization size according to the scanning position, and a detailed description thereof will be omitted in order to avoid redundant description. Here, it is assumed that the information about the scanning method according to the prediction mode and the position of the point where the quantization coefficient is changed in the scanning method is promised to use the same value as the image coding apparatus 500. Therefore, if the prediction mode is extracted without additional information, the scanning method and the point at which the magnitude of the quantization coefficient is changed can be known, so that inverse scanning and dequantization can be performed using the point. Here, it is assumed that the inverse quantization unit 620 performs inverse scanning and inverse quantization together. Therefore, the scanning method used in the quantization unit 540 corresponds to the inverse quantization method of the inverse quantization unit 620, and the quantization size used in the quantization unit 540 corresponds to the inverse quantization size of the inverse quantization unit 620.

역변환부(630)는 역양자화부(620)에 의해 역 양자화된 주파수변환 블록을 시간 영역으로 역 변환하여 잔차 블록을 복원한다.The inverse transformer 630 inversely transforms the frequency transform block inversely quantized by the inverse quantizer 620 into a time domain to recover the residual block.

가산부(640)는 역변환부(630)에 의해 역 변환되어 복원된 잔차신호와 예측부(650)에 의해 생성된 예측 화소값을 더하여 현재 블록의 원 화소값을 복원한다.The adder 640 restores the original pixel value of the current block by adding the residual signal reconstructed by the inverse transform unit 630 and the predicted pixel value generated by the predictor 650. [

가산부(640) 또는 예측부(650)에 의해 복원된 현재 블록은 프레임 메모리(660)로 전달되어, 예측부(650)에서 다른 블록을 예측하는 데 활용될 수 있다.The current block restored by the addition unit 640 or the prediction unit 650 is transmitted to the frame memory 660 and can be used for predicting another block in the prediction unit 650. [

프레임 메모리(660)는 복원된 영상을 저장하여 인트라 예측 블록 및 인터 예측 블록 생성을 가능하게 한다.The frame memory 660 stores the reconstructed image to enable generation of an intra prediction block and an inter prediction block.

본 발명의 일 실시예에 따른 영상 부호화/복호화 장치는 도 6의 영상 부호화 장치(500)의 비트스트림 출력단을 도 6의 영상 복호화 장치(600)의 비트스트림 입력단에 연결하여 구성될 수 있다.The image encoding / decoding apparatus according to an embodiment of the present invention may be configured by connecting the bit stream output end of the image encoding apparatus 500 of FIG. 6 to the bit stream input end of the image decoding apparatus 600 of FIG.

본 발명의 일 실시예에 따른 영상 부호화/복호화 장치는, 영상을 부호화/복호화하는 장치에 있어서, 현재 블록의 예측 블록을 생성하고 상기 현재 블록에서 예측 블록을 감산하여 잔차 블록을 생성하고 상기 잔차 블록을 변환하여 주파수변환블록을 생성하고 상기 주파수변환블록 내 주파수계수의 위치에 따라서 양자화의 크기를 달리하여 상기 주파수변환블록을 양자화하고 상기 양자화된 주파수 변환 블록을 엔트로피코딩을 통해 비트스트림으로 부호화하는 영상 부호화기; 및 비트스트림으로부터 역엔트로피과정을 통해 양자화된 주파수변환블록을 복호하고 상기 양자화된 주파수변환블록 내 양자화 주파수계수의 위치에 따라서 역 양자화의 크기를 달리하여 주파수변환블록을 복원하고 상기 주파수변환블록을 역변환하여 잔차 블록을 복원하고 화면 간 예측 혹은 화면 내 예측 정보를 통해 예측블록을 생성하고 상기 복원되는 잔차 블록과 상기 생성된 예측 블록을 가산하여 현재 블록을 복원하는 영상 복호화기를 포함한다.According to an embodiment of the present invention, there is provided an apparatus for encoding / decoding an image, the apparatus comprising: a prediction block generation unit for generating a prediction block of a current block, subtracting a prediction block from the current block to generate a residual block, To generate a frequency transform block, to quantize the frequency transform block by varying the quantization size according to the position of the frequency coefficient in the frequency transform block, and to encode the quantized frequency transform block into a bit stream through entropy coding An encoder; And decoding the quantized frequency transform block through an inverse entropy process from the bit stream, restoring the frequency transform block by varying the size of the inverse quantization according to the position of the quantized frequency coefficient in the quantized frequency transform block, And a picture decoder that restores the current block by restoring the residual block, generates a predictive block through inter-picture prediction or intra-picture prediction information, and adds the restored residual block and the generated predictive block.

여기서 영상 부호화기는 본 발명의 일 실시예에 따른 영상 부호화 장치(500)로 구현 가능하며, 영상 복호화기는 본 발명의 일 실시예에 따른 영상 복호화 장치(600)로 구현 가능하다.Here, the image encoder can be implemented by the image encoding apparatus 500 according to an embodiment of the present invention, and the image decoder can be implemented with the image decoding apparatus 600 according to an embodiment of the present invention.

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

즉, 영상 부호화 장치(500)는 영상의 현재 블록을 휘도 성분의 움직임 벡터 값을 이용하여 예측값을 생성하는 예측단계(910), 현재 블록의 원 화소값과 예측 화소값의 차이값을 계산하여 잔차신호를 생성하는 감산단계(920), 생성된 잔차신호를 DCT 변환 또는 웨이블릿 변환 등을 이용하여 주파수 영역으로 변환하는 변환단계(930), 주파수 영역으로 변환된 잔차신호를 양자화하는 양자화단계(940), 최적의 양자화된 주파수변환 잔차신호를 결정하여 비트스트림으로 부호화하는 부호화단계(950)를 거쳐 영상을 부호화한다.That is, the image encoding apparatus 500 includes a prediction step 910 of generating a prediction value using a motion vector value of a luminance component of a current block of an image, a step 910 of calculating a difference value between the original pixel value and the prediction pixel value of the current block, A transforming step 930 for transforming the generated residual signal into a frequency domain using DCT or wavelet transform, a quantization step 940 for quantizing the residual signal transformed into the frequency domain, , And determines an optimal quantized frequency transform residual signal and encodes it into a bitstream through an encoding step 950 to encode the image.

여기서, 예측단계(910)는 예측부(510)의 기능에, 감산단계(920)는 감산부(520)의 기능에, 변환단계(930)는 변환부(530)의 기능에, 양자화단계(940)는 양자화부(540)의 기능에, 부호화단계(950)는 부호화부(550)의 기능에 각각 대응되므로 상세한 설명은 생략한다.Here, the prediction step 910 corresponds to the function of the predicting unit 510, the subtraction step 920 corresponds to the function of the subtractor 520, the transform step 930 corresponds to the function of the transform unit 530, 940 correspond to the functions of the quantization unit 540 and the encoding step 950 corresponds to the functions of the encoding unit 550, detailed description thereof will be omitted.

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

유무선 통신망 또는 케이블 등을 통해 영상에 대한 비트스트림을 수신하여 저장한 영상 복호화 장치(600)는 사용자의 선택 또는 실행 중인 다른 프로그램의 알고리즘에 따라 영상을 재생하기 위해, 영상의 현재 블록을 움직임 벡터 값을 이용하여 예측값을 생성하고 양자화된 주파수변환계수가 존재할 경우에만 역양자화되고 역변환된 잔차신호를 더한 원 화소값 영상을 복호화하여 복원한다.The video decoding apparatus 600 receives and stores a bitstream of an image through a wired / wireless communication network or a cable, and stores the current block of the video as a motion vector value And decodes and restores the original pixel value image obtained by adding the inversely quantized and inverse transformed residual signal only when the quantized frequency conversion coefficient exists.

이를 위해, 영상 복호화 장치(600)는 비트스트림을 복호화하여 영상의 현재 블록의 화소값에 대한 정보를 나타내는 양자화된 주파수변환 잔차신호를 추출하는 복호화단계(1010), 양자화된 주파수변환 잔차신호를 정해진 스캐닝 방법에 따른 각 계수의 위치에 따라 다른 크기로 역 양자화하는 역양자화단계(1020), 역 양자화된 주파수변환 잔차신호를 시간 영역으로 역변환하는 역변환단계(1030), 움직임 벡터 값을 이용하여 예측값을 생성하는 예측단계(1040), 단계 1030에서 복원된 현재 블록의 잔차신호와 단계 1040에서 예측된 현재 블록의 각 화소의 예측 화소값을 더하여 현재 블록의 원 화소값을 복원하는 가산단계(1050)를 거쳐 전송된 비트스트림을 복호화한다.To this end, the image decoding apparatus 600 comprises a decoding step 1010 of decoding a bit stream and extracting a quantized frequency transform residual signal representing information on a pixel value of a current block of an image, a quantization step of transforming the quantized frequency transform residual signal into a predetermined An inverse quantization step 1020 for inversely quantizing the quantized values according to the positions of respective coefficients according to the scanning method, an inverse transform step 1030 for inversely transforming the inversely quantized frequency transform residual signal into a time domain, An adding step 1050 of restoring the original pixel value of the current block by adding the residual signal of the current block restored in step 1030 and the predicted pixel value of each pixel of the current block predicted in step 1040, And decodes the transmitted bitstream.

여기서, 복호화단계(1010)는 복호화부(610)의 동작에 대응되며, 역양자화단계(1020)는 역양자화부(620)의 동작에 대응되며, 역변환단계(1030)는 역변환부(630)의 동작에 대응되며, 예측단계(1040)는 예측부(650)의 동작에 대응되며, 가산단계(1050)는 가산부(640)의 동작에 대응되므로 상세한 설명은 생략한다.Here, the decoding step 1010 corresponds to the operation of the decoding unit 610, the dequantization step 1020 corresponds to the operation of the dequantization unit 620, and the inverse transformation step 1030 corresponds to the operation of the inverse transformation unit 630 And the prediction step 1040 corresponds to the operation of the predicting unit 650 and the addition step 1050 corresponds to the operation of the adder 640, and thus a detailed description thereof will be omitted.

본 발명의 일 실시예에 따른 영상 부호화/복호화 방법은, 본 발명의 일 실시예에 따른 영상 부호화 방법과 본 발명의 일 실시예에 따른 영상 복호화 방법을 결합하여 구현함으로써 실현할 수 있다.An image encoding / decoding method according to an embodiment of the present invention can be realized by combining an image encoding method according to an embodiment of the present invention and an image decoding method according to an embodiment of the present invention.

본 발명의 일 실시예에 따른 영상 부호화/복호화 방법은, 현재 블록의 예측 블록을 생성하고 상기 현재 블록에서 예측 블록을 감산하여 잔차 블록을 생성하고 상기 잔차 블록을 변환하여 주파수변환블록을 생성하고 상기 주파수변환블록 내 주파수계수의 위치에 따라서 양자화의 크기를 달리하여 상기 주파수변환블록을 양자화하고 상기 양자화된 주파수 변환 블록을 엔트로피코딩을 통해 비트스트림으로 부호화하는 영상 부호화단계; 및 비트스트림으로부터 역엔트로피과정을 통해 양자화된 주파수변환블록을 복호하고 상기 양자화된 주파수변환블록 내 양자화 주파수계수의 위치에 따라서 역 양자화의 크기를 달리하여 주파수변환블록을 복원하고 상기 주파수변환블록을 역변환하여 잔차 블록을 복원하고 화면 간 예측 혹은 화면 내 예측 정보를 통해 예측블록을 생성하고 상기 복원되는 잔차 블록과 상기 생성된 예측 블록을 가산하여 현재 블록을 복원하는 영상 복호화단계를 포함한다.According to an aspect of the present invention, there is provided a method for encoding / decoding an image, comprising: generating a prediction block of a current block, generating a residual block by subtracting a prediction block from the current block, transforming the residual block, An image encoding step of quantizing the frequency transform block by varying quantization magnitudes according to positions of frequency coefficients in the frequency transform block and encoding the quantized frequency transform block into a bitstream through entropy coding; And decoding the quantized frequency transform block through an inverse entropy process from the bit stream, restoring the frequency transform block by varying the size of the inverse quantization according to the position of the quantized frequency coefficient in the quantized frequency transform block, And reconstructing a current block by reconstructing a residual block, generating a prediction block by inter-picture prediction or intra-picture prediction information, and adding the reconstructed residual block and the generated prediction block.

여기서 영상 부호화단계는 본 발명의 일 실시예에 따른 영상 부호화 단계로 구현 가능하며, 영상 복호화단계는 본 발명의 일 실시예에 따른 영상 복호화 단계로 구현 가능하다.Here, the image encoding step may be implemented as an image encoding step according to an embodiment of the present invention, and the image decoding step may be implemented as an image decoding step according to an embodiment of the present invention.

본 발명의 실시예를 구성하는 모든 구성 요소들이 각각 하나의 독립적인 하드웨어로 구현될 수 있지만, 각 구성 요소들의 그 일부 또는 전부가 선택적으로 조합되어 하나 또는 복수 개의 하드웨어에서 조합된 일부 또는 전부의 기능을 수행하는 프로그램 모듈을 갖는 컴퓨터 프로그램으로서 구현될 수도 있다. 그 컴퓨터 프로그램을 구성하는 코드들 및 코드 세그먼트들은 본 발명의 기술 분야의 당업자에 의해 용이하게 추론될 수 있을 것이다. 이러한 컴퓨터 프로그램은 컴퓨터가 읽을 수 있는 저장매체(Computer Readable Media)에 저장되어 컴퓨터에 의하여 읽혀지고 실행됨으로써, 본 발명의 실시예를 구현할 수 있다. 컴퓨터 프로그램의 저장매체로서는 자기 기록매체, 광 기록매체, 캐리어 웨이브 매체 등이 포함될 수 있다. Although all of the constituent elements constituting the embodiment of the present invention can be implemented by one independent hardware, some or all of the constituent elements may be selectively combined to perform some or all of the functions combined in one or a plurality of hardware As a computer program having a program module for performing the functions described herein. 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.

이상의 설명은 본 발명의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 발명에 개시된 실시예들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 발명의 기술 사상의 범위가 한정되는 것은 아니다. 본 발명의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.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, according to the embodiment of the present invention, when a frequency transform coefficient block obtained by frequency-converting a residual signal between an original video signal and a prediction signal is quantized, quantization is performed by varying the quantization size according to the position of the frequency coefficient, It is a very useful invention because it has the effect of improving the performance.

Claims (22)

영상을 부호화/복호화하는 장치에 있어서,
현재 블록의 예측 블록을 생성하고 상기 현재 블록에서 예측 블록을 감산하여 잔차 블록을 생성하고 상기 잔차 블록을 변환하여 주파수변환블록을 생성하고 상기 주파수변환블록 내 주파수계수의 위치에 따라서 양자화의 크기를 달리하여 상기 주파수변환블록을 양자화하고 상기 양자화된 주파수 변환 블록을 엔트로피코딩을 통해 비트스트림으로 부호화하는 영상 부호화기; 및
비트스트림으로부터 역엔트로피과정을 통해 양자화된 주파수변환블록을 복호하고 상기 양자화된 주파수변환블록 내 양자화 주파수계수의 위치에 따라서 역 양자화의 크기를 달리하여 주파수변환블록을 복원하고 상기 주파수변환블록을 역변환하여 잔차 블록을 복원하고 화면 간 예측 혹은 화면 내 예측 정보를 통해 예측블록을 생성하고 상기 복원되는 잔차 블록과 상기 생성된 예측 블록을 가산하여 현재 블록을 복원하는 영상 복호화기
를 포함하는 것을 특징으로 하는 영상 부호화/복호화 장치.
An apparatus for encoding / decoding an image, the apparatus comprising:
A residual block is generated by subtracting the prediction block from the current block, and the residual block is transformed to generate a frequency transform block, and the quantization size is varied according to the position of the frequency coefficient in the frequency transform block An image encoder for quantizing the frequency transform block and encoding the quantized frequency transform block into a bit stream through entropy coding; And
The frequency transform block is decoded from the bitstream through the inverse entropy process, the frequency transform block is restored by varying the size of the inverse quantization according to the position of the quantization frequency coefficient in the quantized frequency transform block, An image decoder for restoring a current block by restoring a residual block, generating a prediction block through inter-picture prediction or intra-picture prediction information, adding the reconstructed residual block and the generated prediction block,
And an image encoding / decoding device for decoding the image.
영상을 부호화하는 장치에 있어서,
현재 블록의 예측 블록을 생성하는 예측부;
상기 현재 블록에서 예측 블록을 감산하여 잔차 블록을 생성하는 감산부;
상기 잔차 블록을 변환하여 주파수변환블록을 생성하는 변환부;
상기 주파수변환블록 내 주파수계수의 위치에 따라서 양자화의 크기를 달리하여 상기 주파수변환블록을 양자화하는 양자화부;
상기 양자화된 주파수 변환 블록을 엔트로피코딩을 통해 비트스트림으로 부호화하는 비트스트림 생성부
를 포함하는 것을 특징으로 하는 영상 부호화 장치.
An apparatus for encoding an image, the apparatus comprising:
A prediction unit for generating a prediction block of a current block;
A subtracting unit for subtracting a prediction block from the current block to generate a residual block;
A transform unit for transforming the residual block to generate a frequency transform block;
A quantization unit for quantizing the frequency transform block by varying quantization magnitudes according to positions of frequency coefficients in the frequency transform block;
A bitstream generation unit for encoding the quantized frequency conversion block into a bitstream through entropy coding,
And an image encoding unit for encoding the image.
제 2항에 있어서,
상기 양자화부는,
스캐닝 시작점에서의 거리에 따라 양자화의 크기를 달리하여 주파수변환블록을 양자화하는 것을 특징으로 하는 영상 부호화 장치.
3. The method of claim 2,
Wherein the quantization unit comprises:
And quantizes the frequency conversion block by varying the quantization size according to the distance from the scanning start point.
제 3항에 있어서,
상기 양자화부는,
스캐닝 시작점에서의 일정거리를 기준으로 양쪽이 서로 다른 양자화의 크기를 갖는 것을 특징으로 하는 영상 부호화 장치.
The method of claim 3,
Wherein the quantization unit comprises:
Wherein the first and second quantization units have different quantization sizes based on a predetermined distance at a scanning start point.
제 2항에 있어서,
상기 양자화부는,
주파수변환블록의 블록 내 영역별로 양자화의 크기를 다르게 하는 것을 특징으로 하는 영상 부호화 장치.
3. The method of claim 2,
Wherein the quantization unit comprises:
Wherein a size of the quantization is made different for each intra-block area of the frequency conversion block.
제 2항에 있어서,
상기 양자화부는,
블록의 예측정보에 따라 스캐닝방법을 달리하고 스캐닝 정보를 이용해 양자화 크기를 달리하는 것을 특징으로 하는 영상 부호화 장치.
3. The method of claim 2,
Wherein the quantization unit comprises:
Wherein the scanning method is different according to the prediction information of the block and the quantization size is changed using the scanning information.
제 2항에 있어서,
상기 양자화의 크기는,
주파수변환블록에 대한 양자화를 수행함에 있어 색차 신호 및 휘도 신호의 양자화 크기를 달리하는 것을 특징으로 하는 영상 부호화 장치.
3. The method of claim 2,
The size of the quantization may be,
Wherein a quantization size of a color difference signal and a luminance signal are different in performing quantization on the frequency conversion block.
영상을 복호화하는 장치에 있어서,
비트스트림으로부터 역엔트로피과정을 통해 양자화된 주파수변환블록을 복호하는 복호화부;
상기 양자화된 주파수변환블록 내 양자화 주파수계수의 위치에 따라서 역 양자화의 크기를 달리하여 주파수변환블록을 복원하는 역양자화부;
상기 주파수변환블록을 역변환하여 잔차 블록을 복원하는 역변환부;
화면 간 예측 혹은 화면 내 예측 정보를 통해 예측블록을 생성하는 예측부; 및
상기 복원되는 잔차 블록과 상기 생성된 예측 블록을 가산하여 현재 블록을 복원하는 가산부
를 포함하는 것을 특징으로 하는 영상 복호화 장치.
An apparatus for decoding an image, the apparatus comprising:
A decoding unit that decodes a quantized frequency transform block through an inverse entropy process from a bit stream;
An inverse quantization unit for restoring a frequency transform block by varying the size of the inverse quantization according to a position of a quantization frequency coefficient in the quantized frequency transform block;
An inverse transformer for inversely transforming the frequency transform block to recover a residual block;
A prediction unit for generating a prediction block through intra-picture prediction or intra-picture prediction information; And
An adder for adding the reconstructed residual block and the generated prediction block to reconstruct a current block,
And an image decoding unit for decoding the image.
제 8항에 있어서,
상기 역양자화부는,
역스캐닝 시작점에서의 거리에 따라 역양자화의 크기를 달리하여 주파수변환블록을 복원하는 것을 특징으로 하는 영상 복호화 장치.
9. The method of claim 8,
Wherein the inverse-
And reconstructs the frequency transform block by varying the size of the inverse quantization according to the distance from the start point of the inverse scanning.
제 9항에 있어서,
상기 역양자화부는,
역스캐닝 시작점에서의 일정거리를 기준으로 양쪽이 서로 다른 역양자화의 크기를 갖는 것을 특징으로 하는 영상 복호화 장치.
10. The method of claim 9,
Wherein the inverse-
Wherein the quantizer has a different inverse quantization size on the basis of a certain distance from the start point of the inverse scanning.
제 8항에 있어서,
상기 역양자화부는,
주파수변환블록의 블록 내 영역별로 역양자화의 크기를 다르게 하는 것을 특징으로 하는 영상 복호화 장치.
9. The method of claim 8,
Wherein the inverse-
Wherein the size of the inverse quantization is made different for each of the in-block areas of the frequency conversion block.
제 8항에 있어서,
상기 역양자화부는,
추출된 예측정보에 따라 역스캐닝방법을 달리하고 역양자화 크기를 달리하는 것을 특징으로 하는 영상 복호화 장치.
9. The method of claim 8,
Wherein the inverse-
Wherein the inverse quantization method is different from the inverse quantization method according to the extracted prediction information.
제 8항에 있어서,
상기 역양자화의 크기는,
주파수변환블록에 대한 복원을 수행함에 있어 색차 신호 및 휘도 신호의 역양자화 크기를 달리하는 것을 특징으로 하는 영상 복호화 장치.
9. The method of claim 8,
The size of the inverse quantization may be,
Wherein the inverse quantization magnitudes of the chrominance signal and the luminance signal are different in performing restoration of the frequency transform block.
영상을 부호화/복호화하는 방법에 있어서,
현재 블록의 예측 블록을 생성하고 상기 현재 블록에서 예측 블록을 감산하여 잔차 블록을 생성하고 상기 잔차 블록을 변환하여 주파수변환블록을 생성하고 상기 주파수변환블록 내 주파수계수의 위치에 따라서 양자화의 크기를 달리하여 상기 주파수변환블록을 양자화하고 상기 양자화된 주파수 변환 블록을 엔트로피코딩을 통해 비트스트림으로 부호화하는 영상 부호화단계; 및
비트스트림으로부터 역엔트로피과정을 통해 양자화된 주파수변환블록을 복호하고 상기 양자화된 주파수변환블록 내 양자화 주파수계수의 위치에 따라서 역 양자화의 크기를 달리하여 주파수변환블록을 복원하고 상기 주파수변환블록을 역변환하여 잔차 블록을 복원하고 화면 간 예측 혹은 화면 내 예측 정보를 통해 예측블록을 생성하고 상기 복원되는 잔차 블록과 상기 생성된 예측 블록을 가산하여 현재 블록을 복원하는 영상 복호화단계
를 포함하는 것을 특징으로 하는 영상 부호화/복호화 방법.
A method of encoding / decoding an image,
A residual block is generated by subtracting the prediction block from the current block, and the residual block is transformed to generate a frequency transform block, and the quantization size is varied according to the position of the frequency coefficient in the frequency transform block An image encoding step of quantizing the frequency transform block and encoding the quantized frequency transform block into a bit stream through entropy coding; And
The frequency transform block is decoded from the bitstream through the inverse entropy process, the frequency transform block is restored by varying the size of the inverse quantization according to the position of the quantization frequency coefficient in the quantized frequency transform block, An image decoding step of restoring a current block by restoring a residual block, generating a prediction block through intra-picture prediction or intra-picture prediction information, adding the restored residual block and the generated prediction block,
And decoding the encoded image.
영상을 부호화하는 방법에 있어서,
현재 블록의 예측 블록을 생성하는 예측단계;
상기 현재 블록에서 예측 블록을 감산하여 잔차 블록을 생성하는 감산단계;
상기 잔차 블록을 변환하여 주파수변환블록을 생성하는 변환단계;
상기 주파수변환블록 내 주파수계수의 위치에 따라서 양자화의 크기를 달리하여 상기 주파수변환블록을 양자화하는 양자화단계;
상기 양자화된 주파수 변환 블록을 엔트로피코딩을 통해 비트스트림으로 부호화하는 비트스트림 생성단계
를 포함하는 것을 특징으로 하는 영상 부호화 방법.
A method of encoding an image,
A prediction step of generating a prediction block of a current block;
A subtraction step of subtracting a prediction block from the current block to generate a residual block;
A transforming step of transforming the residual block to generate a frequency transform block;
A quantization step of quantizing the frequency conversion block by varying quantization magnitudes according to positions of frequency coefficients in the frequency conversion block;
A bitstream generation step of encoding the quantized frequency conversion block into a bitstream through entropy coding;
Wherein the image encoding method comprises:
제 15항에 있어서,
상기 양자화단계에서는,
스캐닝 시작점에서의 거리에 따라 양자화의 크기를 달리하여 주파수변환블록을 양자화하는 것을 특징으로 하는 영상 부호화 방법.
16. The method of claim 15,
In the quantization step,
Wherein the frequency conversion block is quantized by varying a quantization size according to a distance from a scanning start point.
제 16항에 있어서,
상기 양자화단계에서는,
스캐닝 시작점에서의 일정거리를 기준으로 양쪽이 서로 다른 양자화의 크기를 갖는 것을 특징으로 하는 영상 부호화 방법.
17. The method of claim 16,
In the quantization step,
Wherein the quantization step has a different quantization size with respect to a certain distance at a scanning start point.
제 15항에 있어서,
상기 양자화의 크기는,
주파수변환블록에 대한 양자화를 수행함에 있어 색차 신호 및 휘도 신호의 양자화 크기를 달리하는 것을 특징으로 하는 영상 부호화 방법.
16. The method of claim 15,
The size of the quantization may be,
Wherein quantization magnitudes of the color difference signal and the luminance signal are different in performing quantization on the frequency conversion block.
영상을 복호화하는 방법에 있어서,
비트스트림으로부터 역엔트로피과정을 통해 양자화된 주파수변환블록을 복호하는 복호화단계;
상기 양자화된 주파수변환블록 내 양자화 주파수계수의 위치에 따라서 역 양자화의 크기를 달리하여 주파수변환블록을 복원하는 역양자화단계;
상기 주파수변환블록을 역변환하여 잔차 블록을 복원하는 역변환단계;
화면 간 예측 혹은 화면 내 예측 정보를 통해 예측블록을 생성하는 예측단계; 및
상기 복원되는 잔차 블록과 상기 생성된 예측 블록을 가산하여 현재 블록을 복원하는 가산단계
를 포함하는 것을 특징으로 하는 영상 복호화 방법.
A method for decoding an image,
A decoding step of decoding a quantized frequency conversion block through an inverse entropy process from a bitstream;
An inverse quantization step of restoring a frequency transform block by varying the magnitudes of inverse quantization according to positions of quantization frequency coefficients in the quantized frequency transform block;
An inverse transform step of inversely transforming the frequency transform block to recover a residual block;
A prediction step of generating a prediction block through intra-picture prediction or intra-picture prediction information; And
An addition step of adding the reconstructed residual block and the generated prediction block to reconstruct a current block;
And decoding the decoded image.
제 19항에 있어서,
상기 역양자화단계에서는,
역스캐닝 시작점에서의 거리에 따라 역양자화의 크기를 달리하여 주파수변환블록을 복원하는 것을 특징으로 하는 영상 복호화 방법.
20. The method of claim 19,
In the inverse quantization step,
Wherein the frequency transformation block is reconstructed by varying the size of the inverse quantization according to the distance from the start point of the inverse scanning.
제 20항에 있어서,
상기 역양자화단계에서는,
역스캐닝 시작점에서의 일정거리를 기준으로 양쪽이 서로 다른 역양자화의 크기를 갖는 것을 특징으로 하는 영상 복호화 방법.
21. The method of claim 20,
In the inverse quantization step,
Wherein the inverse quantization step has a different inverse quantization size with respect to a certain distance at a start point of the inverse scanning.
제 19항에 있어서,
상기 역양자화의 크기는,
주파수변환블록에 대한 복원을 수행함에 있어 색차 신호 및 휘도 신호의 역양자화 크기를 달리하는 것을 특징으로 하는 영상 복호화 방법.
20. The method of claim 19,
The size of the inverse quantization may be,
Wherein the inverse quantization magnitudes of the chrominance signal and the luminance signal are different in performing restoration of the frequency transform block.
KR1020110065193A 2011-06-30 2011-06-30 Method and Apparatus for Image Encoding/Decoding using Efficient Non-fixed Quantization KR101943425B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020110065193A KR101943425B1 (en) 2011-06-30 2011-06-30 Method and Apparatus for Image Encoding/Decoding using Efficient Non-fixed Quantization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020110065193A KR101943425B1 (en) 2011-06-30 2011-06-30 Method and Apparatus for Image Encoding/Decoding using Efficient Non-fixed Quantization

Related Child Applications (1)

Application Number Title Priority Date Filing Date
KR1020190008384A Division KR101997599B1 (en) 2019-01-22 2019-01-22 Method and Apparatus for Image Encoding/Decoding using Efficient Non-fixed Quantization

Publications (2)

Publication Number Publication Date
KR20130003707A true KR20130003707A (en) 2013-01-09
KR101943425B1 KR101943425B1 (en) 2019-01-30

Family

ID=47835833

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020110065193A KR101943425B1 (en) 2011-06-30 2011-06-30 Method and Apparatus for Image Encoding/Decoding using Efficient Non-fixed Quantization

Country Status (1)

Country Link
KR (1) KR101943425B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018058454A1 (en) * 2016-09-29 2018-04-05 深圳市大疆创新科技有限公司 Image processing method, apparatus, system and storage medium
CN109803141A (en) * 2017-11-17 2019-05-24 三星电子株式会社 Device and method for encoded video

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008259219A (en) * 2001-11-22 2008-10-23 Matsushita Electric Ind Co Ltd Coding method and coding device
KR20090072150A (en) * 2007-12-28 2009-07-02 세종대학교산학협력단 Apparatus and method for determining scan pattern, and apparatus and method for encoding image data using the same, and method for decoding image data using the same
KR20100012149A (en) * 2008-07-28 2010-02-08 에스케이 텔레콤주식회사 Quantization/inverse quantization apparatus and method and video encoding/decoding apparatus using same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008259219A (en) * 2001-11-22 2008-10-23 Matsushita Electric Ind Co Ltd Coding method and coding device
KR20090072150A (en) * 2007-12-28 2009-07-02 세종대학교산학협력단 Apparatus and method for determining scan pattern, and apparatus and method for encoding image data using the same, and method for decoding image data using the same
KR20100012149A (en) * 2008-07-28 2010-02-08 에스케이 텔레콤주식회사 Quantization/inverse quantization apparatus and method and video encoding/decoding apparatus using same

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
권령희, 한우진, and 이영렬. "HEVC 엔트로피 부호화를 고려한 비균등 양자화 방법." 방송공학회논문지 16.6 (201111). *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018058454A1 (en) * 2016-09-29 2018-04-05 深圳市大疆创新科技有限公司 Image processing method, apparatus, system and storage medium
CN109803141A (en) * 2017-11-17 2019-05-24 三星电子株式会社 Device and method for encoded video

Also Published As

Publication number Publication date
KR101943425B1 (en) 2019-01-30

Similar Documents

Publication Publication Date Title
KR101997604B1 (en) Method and Apparatus for Video Encoding/Decoding
KR101444667B1 (en) Video Coding Method and Apparatus Using Bi-Direction Intra Prediction
KR101943049B1 (en) Method and Apparatus for Image Encoding/Decoding
KR101432775B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock
KR101955374B1 (en) Method and Apparatus for Image Encoding/Decoding By Fast Coding Unit Mode Decision
KR101379187B1 (en) Image Encoding/Decoding Method and Apparatus Using Block Transformation
US9503725B2 (en) Method and apparatus for encoding/decoding image for performing intraprediction using pixel value filtered according to prediction mode
KR101677480B1 (en) Method and Apparatus for Encoding/Decoding of Video Data Using Efficient Selection of Intra Prediction Mode Set
KR101648065B1 (en) Method and Apparatus for Image Encoding/Decoding Using High Resolution Filter
KR20090099234A (en) Method and apparatus for video encoding and decoding
KR101763113B1 (en) Video Encoding/Decoding Method and Apparatus for Noise Component in Spatial Domain
KR101681301B1 (en) Method and Apparatus for Encoding/Decoding of Video Data Capable of Skipping Filtering Mode
KR101943058B1 (en) Method and Apparatus for Video Encoding/Decoding
KR101997599B1 (en) Method and Apparatus for Image Encoding/Decoding using Efficient Non-fixed Quantization
KR101943425B1 (en) Method and Apparatus for Image Encoding/Decoding using Efficient Non-fixed Quantization
KR101537767B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock
KR101483495B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock
KR101379189B1 (en) Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame
KR101997655B1 (en) Method and Apparatus for Image Encoding/Decoding
KR101534014B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock
KR101464949B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock
KR101464944B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
A107 Divisional application of patent
GRNT Written decision to grant