KR101479123B1 - Inter Prediction Method and Apparatus Using Adjacent Pixels and Video Coding Method and Apparatus Using Same - Google Patents

Inter Prediction Method and Apparatus Using Adjacent Pixels and Video Coding Method and Apparatus Using Same Download PDF

Info

Publication number
KR101479123B1
KR101479123B1 KR20090091047A KR20090091047A KR101479123B1 KR 101479123 B1 KR101479123 B1 KR 101479123B1 KR 20090091047 A KR20090091047 A KR 20090091047A KR 20090091047 A KR20090091047 A KR 20090091047A KR 101479123 B1 KR101479123 B1 KR 101479123B1
Authority
KR
South Korea
Prior art keywords
block
current
reference block
motion compensation
compensation coefficient
Prior art date
Application number
KR20090091047A
Other languages
Korean (ko)
Other versions
KR20110033511A (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 KR20090091047A priority Critical patent/KR101479123B1/en
Priority to US13/497,928 priority patent/US9571851B2/en
Priority to PCT/KR2010/006518 priority patent/WO2011037420A2/en
Publication of KR20110033511A publication Critical patent/KR20110033511A/en
Application granted granted Critical
Publication of KR101479123B1 publication Critical patent/KR101479123B1/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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors

Landscapes

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

Abstract

본 발명은 인접 화소를 이용한 인터 예측 방법 및 장치와 그를 이용한 영상 부호화 방법 및 장치에 관한 것이다.The present invention relates to an inter prediction method and apparatus using adjacent pixels, and an image coding method and apparatus using the same.

본 발명은 예측 부호화를 위한 인터 예측 방법에 있어서, 현재 블록의 움직임을 추정하여 현재 움직임 벡터를 결정하고, 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하며, 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하며, 참조 블록에 움직임 보상 계수를 반영하여 변경 참조 블록을 생성하며, 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하는 것을 특징으로 하는 인터 예측 방법을 제공한다.According to the present invention, there is provided an inter prediction method for predictive coding, comprising: estimating motion of a current block to determine a current motion vector; generating a reference block indicated by a current motion vector; The motion compensation coefficient is calculated using the motion compensation coefficient, the change reference block is generated by reflecting the motion compensation coefficient in the reference block, and the change reference block is determined as the prediction block of the current block.

본 발명에 의하면, 부호화하고자 하는 블록을 더욱 정확하게 예측함으로써 실제 블록과 예측된 블록 간의 차이를 줄여 압축 효율을 향상시킬 수 있다.According to the present invention, the compression efficiency can be improved by reducing the difference between the actual block and the predicted block by more accurately predicting the block to be encoded.

영상, 부호화, 복호화, 압축, 인터, 예측, 움직임 보상, 계수 Image, encoding, decoding, compression, inter prediction, motion compensation, coefficient

Description

인접 화소를 이용한 인터 예측 방법 및 장치와 그를 이용한 영상 부호화/복호화 방법 및 장치{Inter Prediction Method and Apparatus Using Adjacent Pixels and Video Coding Method and Apparatus Using Same}[0001] The present invention relates to an inter prediction method and apparatus using adjacent pixels, and an image encoding / decoding method and apparatus using the same. [0002]

본 발명은 인접 화소를 이용한 인터 예측 방법 및 장치와 그를 이용한 영상 부호화 방법 및 장치에 관한 것이다. 더욱 상세하게는, 영상을 인터 예측 부호화하는 데 있어서, 현재 블록과 예측 블록 간의 차이를 최소화하여 예측 정확도를 향상시키고 그에 따라 압축 효율을 향상시키는 방법 및 장치에 관한 것이다.The present invention relates to an inter prediction method and apparatus using adjacent pixels, and an image coding method and apparatus using the same. More particularly, the present invention relates to a method and apparatus for enhancing prediction accuracy by minimizing a difference between a current block and a prediction block in inter-prediction coding an image, and thereby improving compression efficiency.

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

H.264/AVC(이하 'H.264'라 약칭함) 표준안에서는 다양한 형태의 서브블록(Subblock)을 갖는 매크로블록(Macroblock) 단위로 인트라 예측(Intra Prediction) 및/또는 인터 예측(Inter Prediction)을 수행하여 잔여 신호(Residual Signal)를 생성하며, 생성된 잔여 신호에 대해 변환(Transform) 및 양자 화(Quantization)을 수행하고 부호화한다. 여기서, 인터 예측은 영상의 프레임 간의 시간적 중복성을 제거하여 영상을 압축하는 방법으로서, 하나 이상의 참조 프레임(Reference Frame)을 이용하여 부호화하고자 하는 블록(이하 '현재 블록(Current Block)'이라 칭함)의 움직임을 블록 단위로 추정(Estimation)하고, 움직임 추정 결과에 기초하여 현재 블록의 예측 블록(Predicted Block)을 생성하여 움직임을 보상(Compensation)한다.In H.264 / AVC (hereinafter abbreviated as 'H.264') standard, Intra Prediction and / or Inter Prediction are performed in units of macroblocks having various sub- To generate a residual signal, transforms and quantizes the generated residual signal, and encodes the residual signal. Herein, inter prediction is a method of compressing an image by eliminating temporal redundancy between frames of an image. The inter prediction is a method of compressing a block to be encoded (hereinafter referred to as a " current block ") using one or more reference frames Motion estimation is performed on a block basis, a prediction block of a current block is generated based on the motion estimation result, and motion compensation is performed.

통상적인 인터 예측 부호화에서는, 예측 블록을 생성하기 위해 현재 블록의 움직임을 추정할 때, 소정의 평가 함수를 이용하여 현재 블록과 가장 유사한 블록을 참조 프레임의 정해진 검색 범위에서 검색한다. 현재 블록과 유사한 블록이 검색되면, 해당 블록을 이용하여 예측 블록을 생성하고 현재 블록과 예측 블록의 화소 신호들의 차이인 잔여 신호만을 부호화하여 전송함으로써 데이터의 압축률을 높인다. In conventional inter-prediction coding, when motion of a current block is estimated to generate a prediction block, a block most similar to the current block is searched for in a predetermined search range of a reference frame using a predetermined evaluation function. When a block similar to the current block is found, a prediction block is generated using the block, and only the residual signal, which is the difference between the pixel signals of the current block and the prediction block, is encoded and transmitted.

하지만, 전술한 통상적인 인터 예측 부호화와 같이 움직임 보상을 수행한다면 각 프레임에서 지역적인 조명 변화나 시점 변화가 발생할 경우 효율적인 부호화가 어렵다. 즉, 현재 블록의 위치에서 조명 변화 또는 시점 변화가 발생하여 화소값이 커질 경우, 기존의 방식으로 생성된 예측 블록을 이용하여 움직임 보상을 하면 잔여 신호의 크기가 커지기 때문에 부호화 효율이 저하되는 문제점이 있다.However, if motion compensation is performed like the conventional inter prediction coding described above, it is difficult to efficiently encode when local illumination change or view change occurs in each frame. That is, when the pixel value increases due to the illumination change or the viewpoint change at the current block position, the motion compensation using the prediction block generated by the conventional method increases the size of the residual signal, have.

전술한 문제점을 해결하기 위해 본 발명은, 영상을 인터 예측 부호화할 때, 부호화하고자 하는 블록과 예측 블록의 차이를 줄여 압축 효율을 향상시키는 데 주된 목적이 있다.In order to solve the above-described problems, the present invention has a main purpose of improving the compression efficiency by reducing the difference between a block to be coded and a prediction block when performing inter-prediction coding of an image.

전술한 목적을 달성하기 위해 본 발명은, 예측 부호화를 위한 인터 예측 방법에 있어서, 현재 블록의 움직임을 추정하여 현재 움직임 벡터를 결정하는 단계; 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하는 단계; 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하는 단계; 참조 블록에 움직임 보상 계수를 반영하여 변경 참조 블록을 생성하는 단계; 및 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하는 단계를 포함하는 것을 특징으로 하는 인터 예측 방법을 제공한다.According to an aspect of the present invention, there is provided an inter prediction method for predictive coding comprising: estimating motion of a current block to determine a current motion vector; Generating a reference block indicated by a current motion vector; Calculating a motion compensation coefficient using a current block adjacent pixel and a reference block adjacent pixel; Generating a change reference block by reflecting a motion compensation coefficient in a reference block; And determining a change reference block as a prediction block of the current block.

또한, 본 발명의 다른 목적에 의하면, 예측 부호화를 위한 인터 예측 장치에 있어서, 현재 블록의 움직임을 추정하여 현재 움직임 벡터를 결정하는 움직임 추정기; 현재 움직임 벡터에 의해 지시되는 참조 블록의 참조 블록 인접 화소와 현재 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하는 움직임 보상 계수 계산기; 및 참조 블록에 움직임 보상 계수를 반영하여 변경 참조 블록을 현재 블록을 생성하고, 변경 참조 블록을 예측 블록으로서 결정하는 움직임 보상기를 포함하는 것을 특징으로 하는 인터 예측 장치를 제공한다.According to another aspect of the present invention, there is provided an inter-prediction apparatus for predictive coding comprising: a motion estimator for estimating a motion of a current block to determine a current motion vector; A motion compensation coefficient calculator for calculating a motion compensation coefficient using a reference block adjacent pixel and a current block adjacent pixel of a reference block indicated by a current motion vector; And a motion compensator for generating a current block by applying the motion compensation coefficient to the reference block to determine the change reference block as a prediction block.

또한, 본 발명의 또 다른 목적에 의하면, 영상을 부호화하는 방법에 있어서, 현재 움직임 벡터에 의해 지시되는 참조 블록에 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 계산되는 움직임 보상 계수를 반영한 변경 참조 블록을 현재 블록의 예측 블록으로서 생성하는 단계; 현재 블록과 예측 블록을 감산하여 잔여 블록을 생성하는 단계; 및 잔여 블록을 부호화하여 부호화 데이터를 생성하는 단계를 포함하는 것을 특징으로 하는 영상 부호화 방법을 제공한다.According to still another aspect of the present invention, there is provided a method of coding an image, the method comprising the steps of: generating a motion compensation coefficient by using a motion compensation coefficient that is calculated using a current block adjacent pixel and a reference block adjacent pixel, Generating a block as a prediction block of the current block; Generating a residual block by subtracting a current block from a prediction block; And encoding the residual block to generate encoded data.

또한, 본 발명의 또 다른 목적에 의하면, 영상을 부호화하는 장치에 있어서, 현재 움직임 벡터에 의해 지시되는 참조 블록에 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 계산되는 움직임 보상 계수를 반영한 변경 참조 블록을 현재 블록의 예측 블록으로서 생성하는 예측기; 현재 블록과 예측 블록을 감산하여 잔여 블록을 생성하는 감산기; 및 잔여 블록을 부호화하여 부호화 데이터를 생성하는 부호화기를 포함하는 것을 특징으로 하는 영상 부호화 장치를 제공한다.According to still another aspect of the present invention, there is provided an apparatus for coding an image, the apparatus comprising: a change reference unit that reflects a motion compensation coefficient calculated using a current block adjacent pixel and a reference block adjacent pixel in a reference block indicated by a current motion vector; A predictor for generating a block as a prediction block of the current block; A subtractor for subtracting a current block from a prediction block to generate a residual block; And an encoder for coding the residual block to generate encoded data.

또한, 본 발명의 또 다른 목적에 의하면, 예측 복호화를 위한 인터 예측 방법에 있어서, 부호화 데이터를 복호화하여 복원되는 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하는 단계; 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하는 단계; 참조 블록에 움직임 보상 계수를 반영하여 변경 참조 블록을 생성하는 단계; 및 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하는 단계를 포함하는 것을 특징으로 하는 인터 예측 방법을 제공한다.According to another aspect of the present invention, there is provided an inter prediction method for predictive decoding, comprising: generating a reference block indicated by a current motion vector reconstructed by decoding encoded data; Calculating a motion compensation coefficient using a current block adjacent pixel and a reference block adjacent pixel; Generating a change reference block by reflecting a motion compensation coefficient in a reference block; And determining a change reference block as a prediction block of the current block.

또한, 본 발명의 또 다른 목적에 의하면, 예측 복호화를 위한 인터 예측 장치에 있어서, 부호화 데이터를 복호화하여 복원되는 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하고, 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하는 움직임 보상 계수 계산기; 및 참조 블록에 움직임 보상 계수를 반영하여 변경 참조 블록을 생성하고, 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하는 움직임 보상기를 포함하는 것을 특징으로 하는 인터 예측 장치를 제공한다.According to still another aspect of the present invention, there is provided an inter-prediction apparatus for predictive decoding, comprising: a reference block generating unit for generating a reference block indicated by a current motion vector reconstructed by decoding encoded data, A motion compensation coefficient calculator for calculating a motion compensation coefficient using the motion compensation coefficient; And a motion compensator for generating a change reference block by reflecting the motion compensation coefficient in the reference block and determining the change reference block as a prediction block of the current block.

또한, 본 발명의 또 다른 목적에 의하면, 영상을 복호화하는 방법에 있어서, 부호화 데이터를 복호화하여 현재 움직임 벡터 및 잔여 블록을 복원하는 단계; 복원되는 현재 움직임 벡터에 의해 지시되는 참조 블록에 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 계산되는 움직임 보상 계수를 반영한 변경 참조 블록을 현재 블록의 예측 블록으로서 생성하는 단계; 및 복원되는 잔여 블록과 예측 블록을 가산하여 현재 블록을 복원하는 단계를 포함하는 것을 특징으로 하는 영상 복호화 방법을 제공한다.According to another aspect of the present invention, there is provided a method of decoding an image, the decoding method comprising: decoding encoded data to restore a current motion vector and a residual block; Generating a change reference block reflecting a motion compensation coefficient calculated using a current block adjacent pixel and a reference block adjacent pixel as a prediction block of a current block in a reference block indicated by a current motion vector to be restored; And restoring a current block by adding a residual block and a prediction block to be reconstructed.

또한, 본 발명의 또 다른 목적에 의하면, 영상을 복호화하는 장치에 있어서, 부호화 데이터를 복호화하여 현재 움직임 벡터 및 잔여 블록을 복원하는 복호화기; 복원되는 현재 움직임 벡터에 의해 지시되는 참조 블록에 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 계산되는 움직임 보상 계수를 반영한 변경 참조 블록을 현재 블록의 예측 블록으로 생성하는 예측기; 및 복원되는 잔여 블록과 예측 블록을 가산하여 현재 블록을 복원하는 가산기를 포함하는 것을 특징으로 하는 영상 복호화 장치를 제공한다.According to another aspect of the present invention, there is provided an apparatus for decoding an image, the apparatus comprising: a decoder that decodes coded data to restore a current motion vector and a residual block; A predictor for generating a change reference block reflecting a motion compensation coefficient calculated using a current block adjacent pixel and a reference block adjacent pixel in a reference block indicated by a current motion vector to be restored as a prediction block of the current block; And an adder for adding a residual block to be reconstructed and a prediction block to reconstruct a current block.

이상에서 설명한 바와 같이 본 발명에 의하면, 부호화하고자 하는 블록을 더욱 정확하게 예측함으로써 실제 블록과 예측된 블록 간의 차이를 줄여 압축 효율을 향상시킬 수 있다.As described above, according to the present invention, the compression efficiency can be improved by reducing the difference between the actual block and the predicted block by more accurately predicting the block to be encoded.

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

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

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

영상 부호화 장치에 의해 비트스트림으로 부호화된 영상은 실시간 또는 비실시간으로 인터넷, 근거리 무선 통신망, 무선랜망, 와이브로망, 이동통신망 등의 유무선 통신망 등을 통하거나 케이블, 범용 직렬 버스(USB: Universal Serial Bus) 등의 통신 인터페이스를 통해 영상 복호화 장치로 전송되어 영상 복호화 장치에서 복호화되어 영상으로 복원되고 재생될 수 있다.The video encoded by the video encoding apparatus can be transmitted in real time or in non-real time via 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, ), And the like, is transmitted to the image decoding apparatus, decoded by the image decoding apparatus, and restored and reproduced as an image.

영상 부호화 장치와 영상 복호화 장치에는 움직임 추정 및 움직임 보상을 이용한 인터 예측뿐만 아니라 인트라 예측을 수행하기 위한 기능이 구비될 수 있지만, 본 발명의 실시예와 직접적인 관계가 없기 때문에, 혼란을 방지하기 위해 상세한 설명을 생략한다.The video encoding apparatus and the video decoding apparatus may be provided with a function for performing intra prediction as well as inter prediction using motion estimation and motion compensation. However, since there is no direct relationship with the embodiment of the present invention, The description will be omitted.

통상적으로 동영상은 일련의 픽처(Picture)로 구성되어 있으며, 각 픽처들은 블록(Block)으로 분할된다. 각 블록은 부호화 방법에 따라 크게 인트라 블록(Intra Block), 인터 블록(Inter Block)으로 분류된다. 인트라 블록은 인트라 예측 부호화(Intra Prediction Coding) 방식을 사용하여 부호화되는 블록을 뜻하는데, 인트라 예측 부호화란 현재 부호화를 수행하는 현재 픽처 내에서 이전에 부호화되고 복 호화되어 복원된 블록들의 화소를 이용하여 현재 블록의 화소를 예측함으로써 예측 블록을 생성하고 현재 블록의 화소와의 차분값을 부호화하는 방식이다. 인터 블록은 인터 예측 부호화(Inter Prediction Coding)를 사용하여 부호화되는 블록을 뜻하는데, 인터 예측 부호화란 하나 이상의 과거 픽처 또는 미래 픽처를 참조하여 현재 픽처 내의 현재 블록을 예측함으로써 예측 블록을 생성하고 현재 블록과의 차분값을 부호화하는 방식이다. 여기서, 현재 픽처를 부호화하거나 복호화하는데 참조되는 픽처를 참조 픽처(Reference Picture)라고 한다.Usually, a moving picture is composed of a series of pictures, and each picture is divided into blocks. Each block is classified into an Intra block and an Inter block according to a coding method. The intra-block refers to a block that is coded using Intra Prediction Coding (P-Coding) scheme. The intra-prediction coding is performed by using pixels of previously decoded and decoded blocks 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. Inter-block refers to a block that is coded using Inter Prediction Coding. Inter-prediction coding refers to one or more past pictures or a future picture to generate a prediction block by predicting a current block in the current picture, And the difference value is encoded. Here, a picture referred to in encoding or decoding a current picture is referred to as a reference picture.

한편, 통상적인 방식의 인터 예측 부호화에서는 현재 블록과 동일한 크기의 예측 블록을 생성하고, 현재 블록과 예측 블록에서 동일한 위치의 화소 값끼리 감산하여 잔여 블록을 생성한다. 예를 들어, 16x16 크기의 현재 블록을 동일한 크기의 예측 블록과 감산하여 잔여 블록을 생성하는 경우, 잔여 블록은 수학식 1과 같이 나타낼 수 있다.On the other hand, in a conventional inter-prediction encoding, a prediction block having the same size as the current block is generated, and residual blocks are generated by subtracting pixel values at the same position from each other in the current block and the prediction block. For example, when a current block of 16x16 size is subtracted from a prediction block of the same size to generate a residual block, the residual block can be expressed by Equation (1).

residual ij = original ij - reference ij residual ij = original ij - reference ij

수학식 1에서, original은 현재 블록을 나타내고, reference는 움직임 보상을 수행하여 생성되는 예측 블록을 나타내며, residual은 현재 블록에서 예측 블록을 감산하여 생성되는 잔여 블록을 나타낸다. 그리고 ij는 각 블록의 화소 위치를 나타낸다.In Equation (1), original denotes a current block, reference denotes a prediction block generated by performing motion compensation, and residual denotes a residual block generated by subtracting a prediction block from a current block. And i and j represent pixel positions of each block.

H.264에서는 인터 예측 부호화를 사용하기 때문에, 인터 예측 부호화를 사용 하지 않는 다른 예측 방식 부호화 방식과 비교할 때 압축 효율을 향상시킬 수 있다. 하지만, H.264와 같은 통상적인 인터 예측 부호화에서는 현재 블록과 예측 블록의 화소만을 이용하여 잔여 블록을 생성하기 때문에, 예측 블록을 생성하는 참조 픽처와 현재 픽처에서 시점 또는 조명의 변화가 발생하는 경우 효율적인 예측 부호화를 수행할 수 없다. 예를 들어, 현재 블록을 포함한 영역에서 지역적으로 밝기가 어두워지거나 밝아질 경우, 기존의 방법과 같이 움직임 보상을 수행하여 인터 예측하고 잔여 블록을 생성한다면 밝기 변화를 반영한 움직임 보상을 수행할 수 없기 때문에 잔여 블록의 값이 상대적으로 커져서 효율적인 예측 부호화가 어렵게 된다.Since H.264 uses inter prediction coding, compression efficiency can be improved when compared with other prediction type coding schemes not using inter prediction coding. However, in the conventional inter-prediction coding such as H.264, residual blocks are generated using only the pixels of the current block and the prediction block. Therefore, when a change of the viewpoint or illumination occurs in the reference picture for generating the prediction block and in the current picture Efficient predictive coding can not be performed. For example, if the brightness is locally darkened or bright in the region including the current block, if motion compensation is performed to generate inter-prediction and residual blocks as in the conventional method, motion compensation can not be performed The value of the residual block becomes relatively large, and efficient predictive encoding becomes difficult.

본 발명의 일 실시예에서는 현재 블록과 예측 블록만을 이용하여 움직임 보상 수행하는 기존의 인터 예측 부호화 방식과는 달리, 현재 블록 인접 화소와 예측 블록 인접 화소를 이용하여 블록의 특성이 반영된 움직임 보상을 수행함으로써 인터 예측 부호화를 수행한다. 이때, 블록의 특성이란 지역적인 조명 변화 혹은 시점 변화일 수 있는데, 이러한 블록 특성을 고려하기 위해 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 현재 블록의 움직임을 더욱 정확하게 보상하여 예측의 정확도를 높이고 그에 따라 압축 효율을 향상시킬 수 있다.In an embodiment of the present invention, unlike the existing inter prediction coding method in which motion compensation is performed using only a current block and a prediction block, motion compensation is performed in which characteristics of a block are reflected using a current block adjacent pixel and a prediction block adjacent pixel Thereby performing inter prediction coding. In this case, the characteristic of the block may be a local illumination change or a viewpoint change. In order to consider the block characteristic, the motion of the current block is compensated more accurately by using the current block adjacent pixel and the reference block adjacent pixel, So that the compression efficiency can be improved.

부호화하고자 하는 입력 영상(Input Video)의 각 픽처(Picture)는 매크로블록(Macroblock) 단위로 입력될 수 있다. 본 발명의 일 실시예에서, 매크로 블록은 MxM 형태이며, M과 N은 2n의 크기를 가지고 M과 N이 동일할 수 있다. 따라서, 본 발명의 일 실시예에 따른 매크로블록은 H.264의 매크로블록과 동일하거나 클 수 있 다.Each picture of the input video to be coded can be input in units of macroblocks. In one embodiment of the present invention, a macroblock is of the MxM type, M and N may have a size of 2 n , and M and N may be the same. Therefore, a macroblock according to an embodiment of the present invention may be the same as or larger than a macroblock of H.264.

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

본 발명의 일 실시예에 따른 영상 부호화 장치(100)는 영상을 부호화하는 장치로서, 예측기(Predictor, 110), 감산기(Subtracter, 130), 변환기 및 양자화기(Transformer and Quantizer, 130), 부호화기(Encoder, 140), 역 양자화기 및 역 변환기(Inverse Quantizer and Inverse Transformer, 150), 가산기(Adder, 160) 및 참조 픽처 메모리(Reference Picture Memory, 170)를 포함하여 구성될 수 있다.The apparatus 100 for encoding an image according to an embodiment of the present invention includes a predictor 110, a subtractor 130, a transformer and a quantizer 130, a coder An encoder 140, an inverse quantizer and an inverse transformer 150, an adder 160, and a reference picture memory 170.

예측기(110)는 부호하고자 하는 블록(예를 들어, 매크로블록 또는 서브블록 등, 이하에서는 '현재 블록(Current Block)'이라 약칭함)을 인터 예측하여 예측 블록(Predicted Block)을 생성한다. 즉, 예측기(110)는 이미 부호화하고 다시 복호화하여 복원된 이전 픽처에서 인터 예측 모드(Inter Prediction Mode)에 따라 현재 블록의 움직임을 추정하여 움직임 벡터(Motion Vector)를 생성하고, 움직임 벡터를 이용하여 현재 블록의 움직임을 보상함으로써 예측 블록을 생성한다.The predictor 110 generates a predictive block by inter-prediction of a block to be coded (e.g., a macroblock or a sub-block, hereinafter abbreviated as a 'current block'). That is, the predictor 110 generates a motion vector by estimating the motion of the current block according to the inter prediction mode in the previous picture that has been already encoded and decoded again, and generates a motion vector using the motion vector The prediction block is generated by compensating the motion of the current block.

또한, 예측기(110)는 현재 블록의 움직임을 보상하여 예측 블록을 생성할 때, 현재 블록의 인접 화소(이하 '현재 블록 인접 화소(Current Block Adjacent Pixel)'라 칭함)와 참조 블록의 인접 화소(이하 '참조 블록 인접 화소(Reference Block Adjacent Pixel'이라 칭함)를 이용하여 예측 블록을 생성할 수 있다. 즉, 예측기(110)는 현재 블록의 움직임을 추정하여 결정되는 현재 블록의 움직임 벡터(이하 '현재 움직임 벡터(Current Motion Vector)'라 칭함)에 의해 지시되는 참조 블 록에 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 계산되는 움직임 보상 계수(Motion Compensation Coefficient)를 반영하여 변경 참조 블록(Changed Reference Block)을 생성하고, 변경 참조 블록을 현재 블록의 예측 블록으로서 생성할 수 있다.The predictor 110 generates a predictive block by compensating for the motion of the current block by using the current block adjacent pixels (hereinafter referred to as " current block adjacent pixels ") and the neighboring pixels The predictor 110 generates a predictive block using a motion vector of a current block determined by estimating motion of a current block, (Motion Compensation Coefficient) calculated using a current block adjacent pixel and a reference block adjacent pixel in a reference block indicated by a current motion vector (hereinafter referred to as a current motion vector) Reference Block), and generate a change reference block as a prediction block of the current block.

이를 위해, 예측기(110)는 참조 블록과 변경 참조 블록 중에 더욱 효율적인 블록을 현재 블록의 예측 블록으로 결정할 수 있다. 즉, 예측기(110)는 움직임 보상 계수의 사용을 결정하기 위해, 율-왜곡 최적화와 같은 방식을 사용하거나 인접 화소의 특성을 분석하여 참조 블록과 변경 참조 블록 중 현재 블록의 예측 블록으로 사용할 블록을 결정할 수 있다. 예측기(110)에 대해서는 후술하는 과정에서 도 2를 통해 상세히 설명한다.For this, the predictor 110 may determine a more efficient block among the reference block and the change reference block as a prediction block of the current block. That is, in order to determine the use of the motion compensation coefficient, the predictor 110 uses a method such as rate-distortion optimization or analyzes a characteristic of an adjacent pixel to determine a block to be used as a prediction block of the current block, You can decide. The predictor 110 will be described in detail with reference to FIG. 2 in the following process.

감산기(120)는 현재 블록에서 예측 블록을 감산하여 잔여 블록(Residual Block)을 생성한다. 즉, 감산기(130)는 현재 블록의 화소값과 예측기(110)에서 생성된 예측 블록의 화소값을 감산하여 잔여 신호(Residual Signal)를 가지는 잔여 블록을 생성한다.The subtractor 120 subtracts the prediction block from the current block to generate a residual block. That is, the subtractor 130 subtracts the pixel value of the current block and the pixel value of the prediction block generated by the predictor 110 to generate a residual block having a residual signal.

변환기 및 양자화기(130)는 감산기(120)에서 생성된 잔여 블록을 주파수 영역으로 변환하고 양자화한다. 즉, 변환기 및 양자화기는(130)는 감산기(130)에 의해 생성된 잔여 블록의 잔여 신호를 주파수 영역으로 변환하여 변환 계수(Transform Coefficient)를 가지는 변환된 잔여 블록을 생성하고 변환된 잔여 블록의 변환 계수를 양자화하여 양자화된 잔여 블록을 생성한다. 이때, 사용되는 변환 방식으로는 하다마드 변환(Hadamard Transform), 이산 코사인 변환 기반의 정수 변환(Discrete Cosine Transform Based Integer Transform) 등과 같은 공간 영역의 화상 신호를 주파수 영역으로 변환하는 기법이 사용되고, 양자화 방식으로는 데드존 균일 경계 양자화(DZUTQ: Dead Zone Uniform Threshold Quantization, 이하 'DZUTQ'라 칭함) 또는 양자화 가중치 매트릭스(Quantization Weighted Matrix) 등과 같은 다양한 양자화 기법이 이용될 수 있다.The transformer and quantizer 130 converts the residual block generated by the subtractor 120 into a frequency domain and quantizes the residual block. That is, the transformer and the quantizer 130 transforms the residual signal of the residual block generated by the subtractor 130 into the frequency domain to generate a transformed residual block having a transform coefficient and transforms the transformed residual block Quantized coefficients to generate quantized residual blocks. In this case, as a conversion method used, a technique of converting an image signal of a spatial domain into a frequency domain such as Hadamard Transform and Discrete Cosine Transform Based Integer Transform is used, Various quantization techniques such as Dead Zone Uniform Threshold Quantization (DZUTQ) or a Quantization Weighted Matrix may be used as the quantization method.

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

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

이때, 부호화기(140)는 움직임 보상 계수를 사용함을 나타내는 움직임 보상 계수 사용 정보를 부호화 데이터에 포함시킬 수 있다. 하지만, 이러한 움직임 보상 계수 사용 정보는 반드시 부호화 데이터에 포함되어야 하는 것은 아니며, 어떠한 조건을 이용하여 움직임 보상 계수가 반영된 변경 참조 블록이 현재 블록의 예측 블록으로 결정되는지 여부에 따라 부호화 데이터에 포함되거나 포함되지 않을 수 있다. 이에 대해서는 후술하는 과정에서 도 2를 통해 상세히 설명한다.At this time, the encoder 140 may include the motion compensation coefficient use information indicating that the motion compensation coefficient is used in the encoded data. However, the motion compensation coefficient use information is not necessarily included in the encoded data. The motion compensation coefficient use information may be included in or included in the encoded data depending on whether a change reference block reflecting the motion compensation coefficient is determined as a predicted block of the current block . This will be described in detail with reference to FIG. 2 in the following process.

한편, 이러한 변환기 및 양자화기(130)의 기능이 부호화기(140)에 통합되어 구현될 수도 있다. 즉, 하나의 부호화기로 구현되는 경우, 부호화기는 잔여 블록을 부호화하여 부호화 데이터를 생성한다.Meanwhile, the functions of the transducer and the quantizer 130 may be integrated into the encoder 140. FIG. That is, when the encoder is implemented by one encoder, the encoder encodes the residual block to generate encoded data.

역 양자화기 및 역 변환기(150)는 변환기 및 양자화기(130)에 의해 변환 및 양자화된 잔여 블록을 역 양자화 및 역 변환하여 잔여 블록을 복원한다. 즉, 역 양자화기 및 역 변환기(150)는 변환기 및 양자화기(130)로부터 전달되는 양자화된 잔여 블록을 역 양자화하고 변환 계수를 가지는 잔여 블록을 복원하고, 변환 계수를 가지는 잔여 블록을 다시 역 변환하여 잔여 신호를 가지는 잔여 블록을 복원한다.The inverse quantizer and inverse transformer 150 inverse quantize and inverse transform the residual block transformed and quantized by the transformer and the quantizer 130 to recover the residual block. In other words, the inverse quantizer and inverse transformer 150 dequantize the quantized residual block transmitted from the transformer and the quantizer 130, reconstruct the residual block having the transform coefficients, And restores the residual block having the residual signal.

가산기(160)는 예측기(110)에서 생성된 예측 블록과 역 양자화기 및 역 변환기(150)에 의해 복원된 잔여 블록을 가산하여 현재 블록을 복원한다.The adder 160 adds the prediction block generated by the predictor 110 and the residual blocks reconstructed by the inverse quantizer and the inverse transformer 150 to reconstruct the current block.

참조 픽처 메모리(170)는 가산기(160)에서 복원된 현재 블록을 픽처 단위로 누적하여 참조 픽처로서 저장하며, 저장되는 참조 픽처는 예측기(110)에서 다음 블록 또는 다음 픽처를 예측할 때 이용된다.The reference picture memory 170 accumulates the current block restored by the adder 160 on a picture-by-picture basis and stores the reference picture as a reference picture. The reference picture to be stored is used when the predictor 110 predicts the next block or the next picture.

도 1에서는 도시하지 않았지만, 전술한 본 발명의 일 실시예에 따른 영상 부호화 장치(100)는 인트라 예측(Intra Prediction)을 위한 인트라 예측기, 복원된 현재 블록을 디블로킹 필터링(Deblocking Filtering)하는 디블록킹 필터 등을 추가로 포함할 수 있다. 또한, 변환기 및 양자화기(130) 및 역 양자화기 및 역 변환기(150)는 특정 픽처(예를 들어, 인트라 픽처)에 대한 변환 및 양자화(또는 역 변 환 및 역 양자화) 연산을 추가로 수행할 수도 있다. 여기서, 디블로킹 필터링이란 영상을 블록 단위로 부호화하면서 발생하는 블록 왜곡을 감소시키는 작업을 말하며, 블록 경계와 매크로블록 경계에 디블로킹 필터를 적용하거나 매크로블록 경계에만 디블로킹 필터를 적용하거나 디블로킹 필터를 사용하지 않는 방법 중 하나를 선택적으로 사용할 수 있다.Although not shown in FIG. 1, the image encoding apparatus 100 according to an embodiment of the present invention includes an intra predictor for Intra prediction, deblocking filtering for deblocking the restored current block, Filters, and the like. The transformer and quantizer 130 and the dequantizer and inverse transformer 150 may further perform conversion and quantization (or inverse transform and dequantization) operations on a specific picture (e.g., intra picture) It is possible. Here, deblocking filtering refers to a task of reducing block distortion caused by coding an image block by block. The deblocking filter may be applied to a block boundary or a macro block boundary, a deblocking filter may be applied to a macro block boundary, Can be selectively used.

도 2는 본 발명의 일 실시예에 따른 예측 부호화를 위한 인터 예측 장치를 간략하게 나타낸 블록 구성도이다.2 is a block diagram schematically illustrating an inter prediction apparatus for predictive coding according to an embodiment of the present invention.

본 발명의 일 실시예에 따른 예측 부호화를 위한 인터 예측 장치는 도 1을 통해 전술한 본 발명의 일 실시예에 따른 영상 부호화 장치(100)에서는 예측기(110)로 구현될 수 있으므로, 이하에서는 설명의 편의를 위해, 예측기(110)라 칭한다.The inter prediction apparatus for predictive encoding according to an embodiment of the present invention can be implemented by the predictor 110 in the image encoding apparatus 100 according to an embodiment of the present invention described above with reference to FIG. It is referred to as a predictor 110 for convenience.

예측기(110)는 움직임 추정기(Motion Estimator, 210), 움직임 보상 계수 계산기(Motion Compensation Coefficient Calculator, 220) 및 움직임 보상기(Motion Compensator, 230)를 포함하여 구성될 수 있다.The predictor 110 may include a motion estimator 210, a motion compensation coefficient calculator 220, and a motion compensator 230.

움직임 추정기(210)는 현재 블록의 움직임을 추정하여 현재 움직임 벡터를 결정한다. 즉, 움직임 추정기(210)는 이전에 부호화되고 복호화되어 복원된 픽처를 확장(Up-Sampling)한 픽처에서 현재 블록과의 차이가 최소인 참조 블록의 위치를 찾아냄으로써 현재 블록의 움직임을 추정한다. 이때 픽처의 확장을 위해 화소와 화소 사이를 보간(Interpolation)할 수 있는데, 보간에 사용되는 필터는 고정된 6-탭(Tap) 필터일 수도 있고, 픽처 또는 블록 단위로 최적화된 적응적 보간 필 터(Adaptive Interpolation Filter)일 수도 있다. 현재 블록과의 차이가 최소인 참조 블록을 지시하는 벡터가 현재 블록의 움직임 벡터 즉, 현재 움직임 벡터로서 얻어진다.The motion estimator 210 estimates the motion of the current block to determine a current motion vector. That is, the motion estimator 210 estimates the motion of the current block by finding the position of the reference block with the smallest difference from the current block in a picture that has been previously encoded, decoded, and reconstructed. At this time, interpolation between pixels and pixels may be performed to expand a picture. The filter used for interpolation may be a fixed 6-tap filter, an adaptive interpolation filter optimized for a picture or a block, (Adaptive Interpolation Filter). A vector indicating a reference block having a minimum difference from the current block is obtained as a motion vector of the current block, that is, a current motion vector.

움직임 보상 계수 계산기(220)는 현재 움직임 벡터에 의해 지시되는 참조 블록의 참조 블록 인접 화소와 현재 블록 인접 화소를 이용하여 움직임 보상 계수를 계산한다. 즉, 움직임 보상 계수 계산기(220)는 현재 블록의 움직임을 더욱 정확하게 보상하기 위한 움직임 보상 계수를 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 계산한다.The motion compensation coefficient calculator 220 calculates a motion compensation coefficient using a reference block adjacent pixel and a current block adjacent pixel of a reference block indicated by a current motion vector. That is, the motion compensation coefficient calculator 220 calculates a motion compensation coefficient for more accurately compensating for the motion of the current block using the current block neighboring pixels and the reference block neighboring pixels.

도 3은 본 발명의 일 실시예에 따라 움직임 보상 계수를 계산하기 위한 인접 화소들을 나타낸 예시도이다.3 is an exemplary diagram illustrating adjacent pixels for calculating a motion compensation coefficient according to an embodiment of the present invention.

도 3을 참조하면, 움직임 보상 계수는 현재 블록 인접 화소(350)의 평균과 참조 블록 인접 화소(330)의 평균의 차로 계산될 수 있다. 현재 픽처 내의 현재 블록(340)과의 차이가 최소가 되는 참조 블록(320)을 찾아 현재 블록(340)의 움직임을 추정하면 현재 움직임 벡터(310)를 얻을 수 있다. 도 3에 도시한 바와 같이, 현재 블록 인접 화소(350)는 현재 블록(340)에 인접한 화소들이 될 수 있으며, 참조 블록 인접 화소(330)는 참조 블록(320)에 인접한 화소들이 될 수 있다.Referring to FIG. 3, the motion compensation coefficient may be calculated as a difference between an average of the current block neighboring pixels 350 and an average of the reference block adjacent pixels 330. The current motion vector 310 can be obtained by searching the reference block 320 where the difference between the current block 340 and the current block 340 is minimized and estimating the motion of the current block 340. 3, the current block neighboring pixel 350 may be adjacent to the current block 340, and the reference block neighboring pixel 330 may be adjacent to the reference block 320. Referring to FIG.

도 4는 본 발명의 일 실시예에 따른 인터 예측 모드별 인접 화소를 설명하기 위한 예시도이다.4 is an exemplary diagram for explaining an adjacent pixel for each inter prediction mode according to an embodiment of the present invention.

도 4에서는 매크로블록의 크기가 16x16인 경우를 예를 들어 도시하였지만, 다른 크기의 매크로블록에서도 도 4와 유사하게 적용될 수 있다.In FIG. 4, the size of a macroblock is 16x16, for example. However, a macroblock having a different size may be applied similarly to FIG.

도 4에 도시한 바와 같이 인터 예측 모드가 인터 16x16 모드인 경우, 참조 블록과 현재 블록의 위쪽과 왼쪽에 각각 인접한 16 개의 인접 화소들이 참조 블록 인접 화소와 현재 블록 인접 화소로서 이용될 수 있다. 인터 예측 모드가 인터 16x8 모드인 경우, 16x8 크기의 두 개의 서브블록 모두 현재 블록의 위쪽에 인접한 16 개의 인접 화소들과 각 서브블록의 왼쪽에 인접한 8 개의 인접 화소들이 참조 블록의 인접 화소와 현재 블록의 인접 화소로서 이용될 수 있다. 인터 예측 모드가 인터 8x16 모드인 경우, 8x16 크기의 두 개의 서브블록 모두 현재 블록의 왼쪽에 인접한 16 개의 인접 화소들과 각 서브블록의 위쪽에 인접한 8 개의 인접 화소들이 참조 블록의 인접 화소와 현재 블록의 인접 화소로서 이용될 수 있다.As shown in FIG. 4, when the inter prediction mode is the inter 16x16 mode, 16 neighboring pixels adjacent to the upper and left sides of the reference block and the current block can be used as the reference block adjacent pixel and the current block adjacent pixel, respectively. When the inter prediction mode is the inter 16x8 mode, the 16 adjacent pixels on the upper side of the current block and the 8 adjacent pixels on the left side of each sub-block are adjacent to the current block As shown in FIG. When the inter prediction mode is the inter 8x16 mode, 16 sub-blocks adjacent to the left of the current block and 8 adjacent sub-blocks adjacent to the upper side of the sub-block are adjacent to the current block, As shown in FIG.

인터 예측 모드가 인터 8x8 모드인 경우, 8x8 크기의 서브블록 모두 현재 블록의 왼쪽에 인접한 8 개의 인접 화소들과 현재의 위쪽에 인접한 8 개의 인접 화소들이 참조 블록의 인접 화소와 현재 블록의 인접 화소로서 이용될 수 있다. 인터 예측 모드가 인터 8x4 모드인 경우, 두 개의 서브블록 모두 위쪽 화소 8개, 왼쪽 화소 4개를 참조할 수 있다. 인터 예측 모드가 인터 4x8 모드인 경우, 왼쪽 서브블록은 위쪽 화소 4개, 왼쪽 화소 8개, 오른쪽 서브블록은 위쪽, 왼쪽 화소 각각 8개를 참조할 수 있다. 인터 예측 모드가 인터 4x4 모드인 경우, 4 개의 서브블록 모두 위쪽, 왼쪽 화소 각각 4 개를 참조할 수 있다.When the inter prediction mode is the inter 8x8 mode, the 8 neighboring pixels adjacent to the left side of the current block and the 8 neighboring pixels adjacent to the upper side of the current block are adjacent pixels of the reference block and adjacent pixels of the current block, Can be used. When the inter prediction mode is the inter 8x4 mode, both the upper and lower left pixels can be referred to in the two sub-blocks. When the inter prediction mode is the inter 4x8 mode, the left sub-block can refer to four pixels on the upper side, eight pixels on the left side, and eight pixels on the upper side and the left pixel on the right side. When the inter prediction mode is the inter 4x4 mode, it is possible to refer to all four of the four sub-blocks, and four of the left pixels.

여기서, 움직임 보상 계수 생성을 위해 이용되는 인접 화소들은 반드시 전술한 바와 같이 이용되어야 하는 것은 아니다. 예를 들어, 4x4 또는 8x8 등의 변환의 크기에 따라서 이용되는 인접 화소들을 위쪽에 인접한 인접 화소와 왼쪽에 인접한 인접 화소 각각을 4 개 또는 8 개로 변경할 수 있으며, 인접 화소의 범위를 하나의 화소가 아닌 두 화소, 즉 위쪽 화소 4x2(8x2), 왼쪽 화소 2x4(2x8)를 참조하여 움직임 보상 계수가 생성될 수도 있다.Here, neighboring pixels used for motion compensation coefficient generation are not necessarily used as described above. For example, adjacent pixels used in accordance with the size of the conversion such as 4x4 or 8x8 can be changed to four or eight adjacent pixels adjacent to the upper side and adjacent pixels adjacent to the left side, A motion compensation coefficient may be generated by referring to two pixels other than the upper pixel 4x2 (8x2) and the left pixel 2x4 (2x8).

이와 같이 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 계산되는 움직임 보상 계수는 수학식 2와 같이 현재 블록 인접 화소의 평균과 참조 블록 인접 화소의 평균의 차이로 계산될 수 있다. 이러한 현재 블록 인접 화소 및 참조 블록 인접 화소는 현재 블록을 부호화하기 전에 이미 부호화되고 복호화되어 복원된 화소이다.The motion compensation coefficient calculated using the current block neighboring pixel and the reference block neighboring pixel can be calculated as the difference between the average of the current block neighboring pixels and the average of the neighboring reference block, The current block neighboring pixel and the reference block neighboring pixel are pixels that have already been coded, decoded, and reconstructed before coding the current block.

mc coeff = m r - m c mc coeff = m r - m c

수학식 2에서, m r 은 참조 블록 인접 화소들의 평균을 나타내고, m c 는 현재 블록 인접 화소들의 평균을 나타내며, mc coeff 는 움직임 보상 계수를 나타낸다.In Equation (2), m r represents an average of reference block adjacent pixels, m c represents an average of current block adjacent pixels, and mc coeff represents a motion compensation coefficient.

다시 도 2를 참조하면, 움직임 보상기(230)는 참조 블록에 움직임 보상 계수를 반영하여 변경 참조 블록을 현재 블록을 생성하고, 변경 참조 블록을 예측 블록으로 결정한다. 즉, 움직임 보상기(230)는 움직임 추정기(210)에서 얻은 현재 움직임 벡터에 의해 지시되는 참조 블록과 참조 블록에 움직임 보상 계수를 반영하여 생성되는 변경 참조 블록 중 하나를 현재 블록의 예측 블록으로서 결정한다.Referring again to FIG. 2, the motion compensator 230 generates a current block by referring to a motion compensation coefficient in a reference block, and determines a change reference block as a prediction block. That is, the motion compensator 230 determines one of a reference block indicated by the current motion vector obtained by the motion estimator 210 and a change reference block generated by reflecting the motion compensation coefficient in the reference block, as a prediction block of the current block .

일 예로, 움직임 보상기(230)는 참조 블록에 대한 부호화 비용과 변경 참조 블록에 대한 부호화 비용을 기초로 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다. 이를 위해, 움직임 보상기(230)는 참조 블록에 대한 부호화 비용과 변경 참조 블록에 대한 부호화 비용을 계산하고, 참조 블록에 대한 부호화 비용이 변경 참조 블록에 대한 부호화 비용보다 큰 경우에는 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있으며, 참조 블록에 대한 부호화 비용이 변경 참조 블록에 대한 부호화 비용보다 작거나 같은 경우에는 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다.As an example, the motion compensator 230 may determine the change reference block as a prediction block of the current block based on the encoding cost for the reference block and the encoding cost for the change reference block. For this, the motion compensator 230 calculates the encoding cost for the reference block and the encoding cost for the change reference block, and if the encoding cost for the reference block is larger than the encoding cost for the change reference block, Block. If the encoding cost for the reference block is smaller than or equal to the encoding cost for the change reference block, the reference block can be determined as a prediction block of the current block.

여기서, 참조 블록에 대한 부호화 비용이란 참조 블록을 현재 블록의 예측 블록으로 사용하여 현재 블록을 예측 부호화하는 데 소요되는 부호화 비용을 말하며, 변경 참조 블록에 대한 부호화 비용이란 변경 참조 블록을 현재 블록의 예측 블록으로 사용하여 현재 블록을 예측 부호화하는 데 소요되는 부호화 비용을 말한다. 부호화 비용으로서는 율-왜곡 비용이 이용될 수 있는데, 반드시 이에 한정되지 않고 참조 블록 또는 변경 참조 블록을 예측 블록으로 사용하여 현재 블록을 인터 예측 부호화하는 데 소요되는 비용이라면 어떠한 비용이라도 이용될 수 있다.Here, the encoding cost for the reference block refers to the encoding cost required for predicting the current block by using the reference block as a predictive block of the current block. The encoding cost for the change reference block is the prediction cost of the current block And the encoding cost required to predictively encode the current block using the block. As a coding cost, a rate-distortion cost can be used. However, the present invention is not limited to this, and any cost can be used as long as it is a cost required to inter-predictively encode a current block using a reference block or a change reference block as a prediction block.

다른 예로, 움직임 보상기(230)는 움직임 보상 계수의 값을 기초로 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다. 이를 위해, 움직임 보상기(230)는 움직임 보상 계수가 '0'이 아닌 경우에는 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있으며, 움직임 보상 계수가 '0'인 경우에는 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다. 움직임 보상 계수가 '0'인 경우에는 움직임 보상 계수를 반영한 변경 참조 블록을 현재 블록의 예측 블록으로 사용하여 부호화하는 경우와 움직임 보상 계수를 반영하지 않은 참조 블록을 현재 블 록의 예측 블록으로 사용하여 부호화하는 경우의 결과가 동일하므로, 움직임 보상 계수를 사용할 필요가 없기 때문이다. 또한, 움직임 보상기(230)는 움직임 보상 계수가 기 설정된 범위 내인 경우에는 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있으며, 움직임 보상 계수가 기 설정된 범위 밖인 경우에는 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다. 여기서, 기 설정된 범위는 상한 임계값보다 작고 하한 임계값보다 큰 범위일 수 있는데, 상한 임계값과 하한 임계값은 현재 블록 인접 화소와 참조 블록 인접 화소의 분산, 표준편차 및 상관계수 중 하나 이상을 이용하여 결정될 수 있다. 즉, 움직임 보상기(230)는 수학식 3에 나타낸 바와 같이, 움직임 보상 계수가 기 설정된 범위 내인 경우에만 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다. As another example, the motion compensator 230 may determine the change reference block as a prediction block of the current block based on the value of the motion compensation coefficient. For this, the motion compensator 230 may determine the change reference block as a prediction block of the current block if the motion compensation coefficient is not '0'. If the motion compensation coefficient is '0' Can be determined as a prediction block. When the motion compensation coefficient is '0', a case where a change reference block reflecting the motion compensation coefficient is used as a prediction block of the current block and a reference block that does not reflect the motion compensation coefficient are used as a prediction block of the current block This is because it is not necessary to use the motion compensation coefficient since the result of encoding is the same. When the motion compensation coefficient is within a preset range, the motion compensator 230 may determine the change reference block as a prediction block of the current block. If the motion compensation coefficient is out of the predetermined range, As shown in FIG. Here, the predetermined range may be a range smaller than the upper threshold value and larger than the lower threshold value. The upper threshold value and the lower threshold value may be set to one or more of the variance, standard deviation, and correlation coefficient of the current block adjacent pixel and the reference block adjacent pixel . ≪ / RTI > That is, the motion compensator 230 can determine the change reference block as a prediction block of the current block only when the motion compensation coefficient is within a predetermined range, as shown in Equation (3).

Thd a < mc coeff < Thd b Thd a < mc coeff < Thd b

수학식 3에서, mc coeff 는 움직임 보상 계수를 나타내며, Thd a 는 하한 임계값을 나타내며, Thd b 는 상한 임계값을 나타낸다.In Equation (3), mc coeff denotes a motion compensation coefficient, Thd a denotes a lower limit threshold value, and Thd b denotes an upper limit threshold value.

전술한 바와 같이, 움직임 보상 계수의 값을 기초로 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하는 경우, 움직임 보상 계수의 값이 '0'인지 여부와 움직임 보상 계수의 값이 기 설정된 범위 내에 있는지 여부를 각각 판단하여 각각에 따라 변경 참조 블록을 현재 블록의 예측 블록으로 결정할 수도 있지만, 두 가지 조건을 결합하여 변경 참조 블록을 현재 블록의 예측 블록으로 결정할 수도 있 을 것이다. 즉, 움직임 보상 계수의 값이 '0'이 아니고 기 설정된 범위 내에 있는 경우에만 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하고, 움직임 보상 계수의 값이 '0'이거나 움직임 보상 계수의 값이 '0'이 아니지만 기 설정된 범위 밖에 있는 경우에는 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다.As described above, when the change reference block is determined as the prediction block of the current block on the basis of the value of the motion compensation coefficient, whether or not the value of the motion compensation coefficient is '0' and the value of the motion compensation coefficient are within a preset range And the change reference block may be determined as the prediction block of the current block by combining the two conditions. However, the change reference block may be determined as the prediction block of the current block by combining the two conditions. That is, the change reference block is determined as a prediction block of the current block only when the value of the motion compensation coefficient is not '0' and is within a predetermined range. If the value of the motion compensation coefficient is '0' 0 'but is outside the predetermined range, the reference block can be determined as a prediction block of the current block.

또 다른 예로, 움직임 보상기(230)는 현재 블록 인접 화소와 참조 블록 인접 화소의 분산, 표준편차 및 상관계수 중 하나 이상을 계산하여 계산된 값이 특정 조건을 만족하는 경우에만 변경 참조 블록을 현재 블록의 예측 블록으로 결정하거나 만족하지 않는 경우에는 참조 블록을 현재 블록의 예측 블록으로 결정할 수 있다.As another example, the motion compensator 230 may calculate at least one of the variance, the standard deviation, and the correlation coefficient of the current block adjacent pixel and the reference block adjacent pixel, and only when the calculated value satisfies the specific condition, Or if it is not satisfied, the reference block may be determined as the prediction block of the current block.

움직임 보상기(230)는 참조 블록의 각 화소에서 움직임 보상 계수를 감산하여 변경 참조 블록을 생성할 수 있다. 즉, 변경 참조 블록의 각 화소는 참조 블록의 각 화소의 화소값에서 움직임 보상 계수를 뺀 차이값을 가진다. 이때, 각 화소의 화소값에서 움직임 보상 계수를 뺀 차이값이 화소가 표현되는 값의 범위를 벗어날 수 있으므로, 움직임 보상기(230)는 참조 블록의 각 화소에서 움직임 보상 계수를 감산한 값을 화소가 표현되는 값의 범위 내로 제한하여 변경 참조 블록을 생성할 수 있다.The motion compensator 230 may generate a change reference block by subtracting the motion compensation coefficient from each pixel of the reference block. That is, each pixel of the change reference block has a difference value obtained by subtracting the motion compensation coefficient from the pixel value of each pixel of the reference block. At this time, since the difference value obtained by subtracting the motion compensation coefficient from the pixel value of each pixel may deviate from the range of values in which the pixel is expressed, the motion compensator 230 subtracts the motion compensation coefficient from each pixel of the reference block, It is possible to generate a change reference block by limiting it to a range of values to be represented.

예를 들어, 현재 블록, 참조 블록, 변경 참조 블록 등의 각 화소가 8 비트로 표현되는 값을 가지는 경우, 화소가 가질 수 있는 값은 0 내지 255 중 하나이다. 만약, 참조 블록의 각 화소 중 어느 화소가 '1'의 값을 가지고 움직임 보상 계수가 '3'으로 계산된다면, 변경 참조 블록에서 해당 화소는 '-2'의 값을 가지게 되어 화소가 표현되는 값의 범위를 벗어나게 된다. 따라서, 이 경우에는 0 내지 255 중 하 나의 값으로 제한해서 그 중 최소값을 가지는 '0'의 값을 가지도록 변경 참조 블록의 해당 화소의 화소값을 변경한다.For example, when each pixel of the current block, the reference block, the change reference block, etc. has a value represented by 8 bits, the value that the pixel can have is one of 0 to 255. [ If one of the pixels of the reference block has a value of '1' and the motion compensation coefficient is calculated as '3', the corresponding pixel in the change reference block has a value of '-2' . &Lt; / RTI &gt; Therefore, in this case, the pixel value of the corresponding pixel of the change reference block is changed so as to have a value of '0' having the minimum value among the values of 0 to 255.

이와 같이 생성되는 변경 참조 블록을 현재 블록의 예측 블록으로 결정하여 잔여 블록을 계산하면, 잔여 블록은 수학식 4와 같이 계산될 수 있다.If the change reference block thus generated is determined as a prediction block of the current block to calculate the residual block, the residual block can be calculated as shown in Equation (4).

residual ij = original ij - clip(reference ij - mc coeff ) residual ij = original ij - clip ( reference ij - mc coeff )

수학식 4에서, original ij 는 현재 블록의 각 화소를 나타내고, referencek ij 는 참조 블록의 각 화소를 나타내며, residual ij 는 잔여 블록의 각 화소를 나타낸다. 여기서, clip(reference ij - mc coeff )은 변경 참조 블록의 각 화소를 나타내는데, clip() 함수는 변경 참조 블록의 각 화소인 reference ij - mc coeff 의 값이 화소가 표현되는 값의 범위(예를 들어, 화소값이 8비트로 표현되는 경우, 0 이상 255 이하) 내의 값을 갖도록 최소값과 최대값을 제한한다.In Equation (4), original ij denotes each pixel of the current block, referencek ij denotes each pixel of the reference block, and residual ij denotes each pixel of the residual block. In this case, clip ( reference ij - mc coeff ) represents each pixel of the change reference block. The clip () function changes the value of reference ij - mc coeff , which is the pixel of the change reference block, The minimum value and the maximum value are limited to have a value within a range from 0 to 255 when the pixel value is represented by 8 bits.

움직임 보상기(230)는 움직임 보상 계수를 적용하여 현재 블록의 움직임을 추가로 추정하여 현재 움직임 벡터를 재조정(Refinement)할 수 있다. 즉, 움직임 보상기(230)는 움직임 추정기(210)에서 결정된 현재 움직임 벡터가 지시하는 화소 주변의 임의의 범위(예를 들어, ±α 화소)에 대해 움직임 보상 계수를 적용하여 움직임 추정을 추가로 수행함으로써 지역적인 조명 변화나 시점 변화가 발생한 영역의 블록(또는 매크로블록)에 대해 더욱 정확한 예측을 수행하여 부호화 효율을 더욱 높일 수 있다. The motion compensator 230 may further refine the current motion vector by further estimating the motion of the current block by applying a motion compensation coefficient. That is, the motion compensator 230 further performs motion estimation by applying a motion compensation coefficient to an arbitrary range (for example, ± α pixels) around the pixel indicated by the current motion vector determined by the motion estimator 210 The coding efficiency can be further improved by performing more accurate prediction of blocks (or macroblocks) in a region where a local illumination change or view change occurs.

예를 들어, 현재 움직임 벡터가 (2, 4)이고, 임의의 범위를 결정하는 α를 '1'로 설정한 경우, (1, 3), (1, 4), (1, 5), (2, 3), (2, 4), (2, 5), (3, 3), (3, 4), (3, 5)의 위치에 대하여 움직임 보상 계수를 사용한 움직임 보상을 수행하고, 각 위치에 대한 부호화 비용(예를 들어, 율-왜곡 비용, SAD(Sum of Absolute Difference), SATD(Sum of Absolute Transformed Difference) 또는 SSD(Sum of Squared Difference) 등)을 비교하여 최적의 움직임 벡터를 구함으로써 구해진 최적의 움직임 벡터를 현재 움직임 벡터로서 최종적으로 결정할 수 있다. 여기서, α는 구현 방식이나 조건에 따라 적합하게 설정될 수 있으며, α가 커질수록 부호화 효율이 높아질 수 있다.For example, if the current motion vector is (2, 4) and α, which determines an arbitrary range, is set to 1, then (1, 3), (1, 4) Motion compensation using motion compensation coefficients is performed for the positions of (2, 3), (2, 4), (2, 5), The optimum motion vector is calculated by comparing the encoding cost (e.g., rate-distortion cost, Sum of Absolute Difference (SAD), Sum of Absolute Transformed Difference (SATD), or Sum of Squared Difference The optimal motion vector can be finally determined as the current motion vector. Here,? Can be suitably set according to the implementation method or condition, and the larger the?, The higher the encoding efficiency can be.

또한, 움직임 보상기(230)는 변경 참조 블록을 현재 블록의 예측 블록으로 결정할지 여부를 블록 단위가 아닌 프레임 단위로 결정할 수 있다. 이를 위해, 움직임 보상기(230)는 부호화하고자 하는 현재 프레임을 움직임 보상 계수를 사용하여 부호화한 경우에 대한 부호화 비용과 움직임 보상 계수를 사용하지 않고 부호화한 경우에 대한 부호화 비용을 계산하여 부호화 비용이 작은 방식으로 현재 프레임을 부호화함으로써, 각 프레임을 적응적으로 부호화할 수 있다. 이때, 각 프레임마다 움직임 보상 계수를 적용하여 부호화했는지 여부를 식별하기 위한 움직임 보상 계수 사용 정보를 추가로 부호화 데이터에 포함시킨다.In addition, the motion compensator 230 may determine whether to determine the change reference block as a prediction block of the current block, on a frame-by-frame basis, not on a block-by-block basis. For this, the motion compensator 230 calculates a coding cost for coding the current frame to be coded using the motion compensation coefficient without using the coding cost and the motion compensation coefficient, By encoding the current frame in a scheme, each frame can be adaptively coded. At this time, the motion compensation coefficient use information for identifying whether or not the motion compensation coefficient is applied to each frame is further included in the encoded data.

이하에서는 도 2를 통해 전술한 예측기(110)가 수행하는 예측 부호화를 위한 인터 예측 방법에 대해 설명한다.Hereinafter, an inter prediction method for predictive coding performed by the predictor 110 will be described with reference to FIG.

예측 부호화를 위한 인터 예측 방법에 따르면, 예측기(110)는 현재 블록의 움직임을 추정하여 현재 움직임 벡터를 결정하고, 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하며, 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하며, 참조 블록에 움직임 보상 계수를 반영하여 변경 참조 블록을 생성하며, 변경 참조 블록을 현재 블록의 예측 블록으로서 결정한다.According to the inter prediction method for predictive coding, the predictor 110 estimates the motion of the current block to determine a current motion vector, generates a reference block indicated by the current motion vector, A motion compensation coefficient is calculated using a pixel, a change reference block is generated by reflecting a motion compensation coefficient in a reference block, and a change reference block is determined as a prediction block of the current block.

여기서, 예측기(110)는 참조 블록에 대한 부호화 비용과 변경 참조 블록에 대한 부호화 비용을 기초로 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다. 이를 위해, 예측기(110)는 참조 블록에 대한 부호화 비용을 계산하고, 변경 참조 블록에 대한 부호화 비용을 계산하며, 참조 블록에 대한 부호화 비용이 변경 참조 블록에 대한 부호화 비용보다 큰 경우, 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하며, 참조 블록에 대한 부호화 비용이 변경 참조 블록에 대한 부호화 비용보다 작거나 같은 경우, 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다.Here, the predictor 110 may determine the change reference block as a prediction block of the current block based on the encoding cost for the reference block and the encoding cost for the change reference block. For this, the predictor 110 calculates the encoding cost for the reference block, calculates the encoding cost for the change reference block, and if the encoding cost for the reference block is greater than the encoding cost for the change reference block, As a prediction block of the current block. If the coding cost for the reference block is less than or equal to the coding cost for the change reference block, the reference block can be determined as a prediction block of the current block.

또한, 예측기(110)는 움직임 보상 계수의 값을 기초로 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다. 이를 위해, 예측기(110)는 움직임 보상 계수가 '0'이 아닌 경우 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하고 움직임 보상 계수가 '0'인 경우 참조 블록을 현재 블록의 예측 블록으로서 결정하거나, 움직임 보상 계수가 기 설정된 범위 내인 경우 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하고 움직임 보상 계수가 기 설정된 범위 밖인 경, 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다. 여기서, 기 설정된 범위는 상한 임계값보다 작고 하한 임계값보다 큰 범위이며, 상한 임계값과 하한 임계값은 현재 블록 인접 화소와 참조 블록 인접 화소의 분산, 표준편차 및 상관계수 중 하나 이상을 이용하여 결정될 수 있다.In addition, the predictor 110 may determine a change reference block as a prediction block of the current block based on the value of the motion compensation coefficient. To this end, the predictor 110 determines a change reference block as a predictive block of the current block when the motion compensation coefficient is not '0', determines a reference block as a predictive block of the current block when the motion compensation coefficient is '0' If the motion compensation coefficient is within a predetermined range, the change reference block is determined as a prediction block of the current block. If the motion compensation coefficient is outside the predetermined range, the reference block can be determined as the prediction block of the current block. Here, the predetermined range is a range smaller than the upper threshold value and larger than the lower threshold value, and the upper threshold value and the lower threshold value may be determined using at least one of variance, standard deviation, and correlation coefficient of the current block adjacent pixel and the reference block adjacent pixel Can be determined.

또한, 예측기(110)는 움직임 보상 계수를 적용하여 현재 블록의 움직임을 추가로 추정하여 현재 움직임 벡터를 재조정할 수 있다.In addition, the predictor 110 can further adjust the current motion vector by further estimating the motion of the current block by applying a motion compensation coefficient.

또한, 움직임 보상 계수는 현재 블록 인접 화소의 평균과 참조 블록 인접 화소의 평균의 차일 수 있으며, 현재 블록 인접 화소 및 참조 블록 인접 화소는 현재 블록을 부호화하기 전에 이미 부호화되고 복호화되어 복원된 화소일 수 있다.The motion compensation coefficient may be a difference between the average of the current block neighboring pixels and the average of the neighboring pixels of the reference block. The current block neighboring pixel and the reference block neighboring pixel may be pixels that have been coded and decoded and restored before coding the current block. have.

또한, 예측기(110)는 참조 블록의 각 화소에서 움직임 보상 계수를 감산하여 변경 참조 블록을 생성할 수 있는데, 참조 블록의 각 화소에서 움직임 보상 계수를 감산한 값을 화소가 표현되는 값의 범위 내로 제한하여 변경 참조 블록을 생성할 수 있다.In addition, the predictor 110 may generate a change reference block by subtracting the motion compensation coefficient from each pixel of the reference block. The predictor 110 subtracts the motion compensation coefficient from each pixel of the reference block, To generate a change reference block.

도 5는 본 발명의 일 실시예에 따른 예측 부호화를 위한 인터 예측 방법의 일 예를 설명하기 위한 순서도이다.FIG. 5 is a flowchart illustrating an example of an inter prediction method for predictive coding according to an embodiment of the present invention.

전술한 본 발명의 일 실시예에 따른 예측 부호화를 위한 인터 예측 방법은 도 5에 도시한 바와 같이 구현될 수 있다. 즉, 예측기(110)는 부호화 비용을 기초로 움직임 보상 계수를 적용하여 현재 블록의 움직임 보상을 수행할지 여부를 결정하여 예측 블록을 생성할 수 있다. 도 5를 참조하면, 예측기(110)는 현재 블록의 움직임을 추정하여 현재 움직임 벡터를 결정하고(S510), 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하여(S520), 현재 블록 인접 화소와 참조 블록 인접 화 소를 이용하여 움직임 보상 계수를 계산하며(S530), 움직임 보상 계수를 반영한 변경 참조 블록을 생성하며(S540), 참조 블록에 대한 부호화 비용을 계산하고(S550), 변경 참조 블록에 대한 부호화 비용을 계산한다(S560). 예측기(110)는 참조 블록에 대한 부호화 비용이 변경 참조 블록에 대한 부호화 비용보다 큰지 여부를 판단하여(S870), 참조 블록에 대한 부호화 비용이 변경 참조 블록에 대한 부호화 비용보다 큰 경우에는 변경 참조 블록을 예측 블록으로서 결정하고(S580), 참조 블록에 대한 부호화 비용이 변경 참조 블록에 대한 부호화 비용보다 작거나 같은 경우에는 참조 블록을 예측 블록으로서 결정할 수 있다.The inter prediction method for predictive coding according to an embodiment of the present invention described above can be implemented as shown in FIG. That is, the predictor 110 can generate a prediction block by determining whether to perform motion compensation of the current block by applying a motion compensation coefficient based on the encoding cost. Referring to FIG. 5, the predictor 110 estimates motion of a current block to determine a current motion vector (S510), generates a reference block indicated by the current motion vector (S520) A motion compensation coefficient is calculated using a block neighboring pixel in step S530, a change reference block reflecting the motion compensation coefficient is generated in step S540, a coding cost for the reference block is calculated in step S550, The encoding cost is calculated (S560). The predictor 110 determines whether the coding cost for the reference block is greater than the coding cost for the change reference block (S870). If the coding cost for the reference block is greater than the coding cost for the change reference block, (S580). If the coding cost for the reference block is smaller than or equal to the coding cost for the change reference block, the reference block can be determined as a prediction block.

도 6은 본 발명의 일 실시예에 따른 예측 부호화를 위한 인터 예측 방법의 다른 예를 설명하기 위한 순서도이다.6 is a flowchart illustrating another example of an inter prediction method for predictive coding according to an embodiment of the present invention.

전술한 본 발명의 일 실시예에 따른 예측 부호화를 위한 인터 예측 방법은 도 6에 도시한 바와 같이 구현될 수 있다. 즉, 예측기(110)는 움직임 보상 계수의 값을 기초로 움직임 보상 계수를 적용하여 현재 블록의 움직임 보상을 수행할지 여부를 결정하여 예측 블록을 생성할 수 있다. 도 6을 참조하면, 예측기(110)는 현재 블록의 움직임을 추정하여 현재 움직임 벡터를 결정하고(S610), 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하여(S620), 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하며(S630), 움직임 보상 계수를 반영한 변경 참조 블록을 생성하며(S640), 움직임 보상 계수가 '0'인지 여부를 판단하여(S650), 움직임 보상 계수가 '0'이 아니면 움직임 보상 계수가 기 설정된 범위 내인지 여부 즉, 하한 임계값보다 크고 상한 임계값보다 작은지 여부를 판단하 여(S660), 움직임 보상 계수가 기 설정된 범위 내이면 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하고(S670), 단계 S650에서의 판단 결과가 움직임 보상 계수가 '0'이거나 단계S660에서의 판단 결과가 움직임 보상 계수가 기 설정된 범위 밖인 경우에는 참조 블록을 예측 블록으로서 결정한다(S680).The inter prediction method for predictive coding according to an embodiment of the present invention described above can be implemented as shown in FIG. That is, the predictor 110 may generate a prediction block by determining whether to perform motion compensation of the current block by applying a motion compensation coefficient based on the value of the motion compensation coefficient. Referring to FIG. 6, the predictor 110 estimates motion of a current block to determine a current motion vector (S610), generates a reference block indicated by the current motion vector (S620) In operation S630, a motion compensation coefficient reflecting the motion compensation coefficient is generated in operation S640. In operation S650, a motion compensation coefficient is calculated using motion compensation coefficients (S660). If it is determined that the motion compensation coefficient is within a predetermined range, it is determined whether the motion compensation coefficient is within a predetermined range, that is, whether the motion compensation coefficient is greater than the lower limit threshold and smaller than the upper limit threshold (S670). If the determination result in step S650 is '0', or if the determination result in step S660 indicates that the motion compensation coefficient is within a predetermined range And it is determined as the prediction block to the reference block when the (S680).

도 6에서는 단계 S650과 단계 S660이 모두 수행되는 것으로 도시하고 설명했지만, 단계 S650과 단계 S660 중 하나만이 수행될 수도 있다. 즉, 예측기(110)는 반드시 움직임 보상 계수의 값이 '0'이 아니고 기 설정된 범위 내인 경우에만 변경 참조 블록을 현재 블록의 예측 블록으로서 결정해야 하는 것은 아니며, 움직임 보상 계수의 값이 '0'이 아니면 기 설정된 범위 내인지 여부에 관계 없이 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있으며, 마찬가지로 움직임 보상 계수의 값이 기 설정된 범위 내에 있으면 '0'이어도 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다.Although it has been shown and described that both steps S650 and S660 are performed in Fig. 6, only one of steps S650 and S660 may be performed. That is, the predictor 110 does not necessarily determine the change reference block as a prediction block of the current block only when the value of the motion compensation coefficient is not '0' and is within a predetermined range. If the value of the motion compensation coefficient is '0' The change reference block can be determined as a prediction block of the current block irrespective of whether it is within a preset range or not if the value of the motion compensation coefficient is within a predetermined range, As shown in FIG.

또한, 도 5 및 도 6을 통해 전술한 각 단계는 모두 반드시 수행되어야 하는 것은 아니며, 일부의 단계가 선택적으로 생략되거나 추가될 수도 있다. 또한, 각 단계의 순서도 반드시 도시된 바와 같이 정해지는 것은 아니며, 일부 또는 전분의 단계의 순서가 변경되거나 심지어는 병행적으로 수행될 수도 있다.In addition, not all of the steps described above through FIGS. 5 and 6 are necessarily performed, and some steps may be optionally omitted or added. Also, the order of each step is not necessarily set as shown, and the order of the steps of the part or starch may be changed or even performed in parallel.

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

영상 부호화 장치(100)는 현재 움직임 벡터에 의해 지시되는 참조 블록에 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 계산되는 움직임 보상 계수 를 반영한 변경 참조 블록을 현재 블록의 예측 블록으로서 생성하고(S710), 현재 블록과 예측 블록을 감산하여 잔여 블록을 생성하며(S720), 잔여 블록을 부호화하여 부호화 데이터를 생성한다.The image coding apparatus 100 generates a change reference block reflecting the motion compensation coefficient calculated using the current block adjacent pixel and the reference block adjacent pixel in the reference block indicated by the current motion vector as a prediction block of the current block (S710 ), The residual block is generated by subtracting the current block from the prediction block (S720), and the residual data is encoded to generate the encoded data.

단계 S710에서, 영상 부호화 장치(100)는 참조 블록에 대한 부호화 비용과 변경 참조 블록에 대한 부호화 비용을 기초로 변경 참조 블록을 현재 블록의 예측 블록으로서 생성할 수 있으며, 이 경우 움직임 보상 계수를 사용함을 나타내는 움직임 보상 계수 사용 정보를 부호화 데이터에 포함시킬 수 있다. 예를 들어, 영상 부호화 장치(100)는 참조 블록에 대한 부호화 비용이 변경 참조 블록에 대한 부호화 비용보다 커서 변경 참조 블록을 현재 블록의 예측 블록으로서 생성한 경우, 움직임 보상 계수를 사용함을 나타내는 움직임 보상 계수 사용 정보(예를 들어, 플래그 '1')를 부호화 데이터에 포함시키며, 참조 블록에 대한 부호화 비용이 변경 참조 블록에 대한 부호화 비용보다 작거나 같아서 참조 블록을 현재 블록의 예측 블록으로서 생성하는 경우, 움직임 보상 계수를 사용하지 않음을 나타내는 움직임 보상 계수 사용 정보(예를 들어, 플래그 '0')를 부호화 데이터에 포함시키지 않는다.In step S710, the image encoding apparatus 100 may generate a change reference block as a prediction block of the current block based on the encoding cost of the reference block and the encoding cost of the change reference block. In this case, the motion compensation coefficient is used Can be included in the encoded data. For example, when the coding cost of the reference block is greater than the coding cost of the reference block to generate a change reference block as a prediction block of the current block, the image coding apparatus 100 performs motion compensation In the case of including the coefficient use information (for example, flag '1') in the encoded data and generating the reference block as a prediction block of the current block because the encoding cost for the reference block is smaller than or equal to the encoding cost for the change reference block , Motion compensation coefficient usage information (e.g., flag '0') indicating that the motion compensation coefficient is not used is not included in the encoded data.

또한, 단계 S710에서, 영상 부호화 장치(100)는 움직임 보상 계수의 값을 기초로 변경 참조 블록을 현재 블록의 예측 블록으로서 생성할 수 있으며, 이 경우 움직임 보상 계수를 사용함을 나타낸 움직임 보상 계수 사용 정보를 생성하지 않거나 생성하는 경우에도 부호화 데이터에 포함시키지 않을 수 있다. 움직임 보상 계수의 값을 기초로 변경 참조 블록을 현재 블록의 예측 블록으로서 생성하는 경우, 움직임 보상 계수 사용 정보를 부호화 데이터에 포함시키지 않아도, 후술하는 영상 복호화 장치에서 움직임 보상 계수를 적용하여 해당 블록의 움직임을 보상할지 여부를 판단할 수 있기 때문이다.In step S710, the image coding apparatus 100 may generate a change reference block as a prediction block of the current block based on the value of the motion compensation coefficient. In this case, the motion compensation coefficient use information indicating that the motion compensation coefficient is used It may not be included in the encoded data. In the case of generating the change reference block as a prediction block of the current block on the basis of the value of the motion compensation coefficient, even if the motion compensation coefficient use information is not included in the encoded data, the motion compensation coefficient is applied in the video decoding apparatus, It is possible to judge whether or not to compensate the motion.

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

본 발명의 일 실시예에 따른 영상 복호화 장치(800)는 복호화기(810), 역 양자화기 및 역 변환기(820), 예측기(830), 가산기(840) 및 참조 픽처 메모리(850)를 포함하여 구성될 수 있다.An image decoding apparatus 800 according to an embodiment of the present invention includes a decoder 810, an inverse quantizer and an inverse transformer 820, a predictor 830, an adder 840 and a reference picture memory 850 Lt; / RTI &gt;

복호화기(810)는 부호화 데이터를 복호화하여 현재 움직임 벡터와 양자화된 변환 계수를 가지는 양자화된 잔여 블록을 복원한다. 즉, 복호화기(810)는 부호화 데이터를 복호화하여 양자화 변환 계수열을 추출하고, 양자화 변환 계수열을 역 지그재그 스캔 등 다양한 역 스캐닝 방식으로 역 스캐닝하여 양자화 변환 계수를 가지는 잔여 블록을 복원한다. 이때, 복호화기(810)는 부호화 데이터에 포함된 제 1 필드에서 부호화된 잔여 블록을 추출하여 복호화할 수 있고, 부호화 데이터에 포함된 제 2 필드에서 예측에 필요한 정보를 추출하거나 추출된 정보를 복호화할 수 있으며, 추출되거나 추출되어 복호화된 예측에 필요한 정보를 예측기(830)로 전달하여, 예측기(830)가 영상 부호화 장치(100)의 예측기(110)와 동일한 방식으로 현재 블록을 예측하도록 할 수 있다. 또한, 복호화기(830)는 부호화 데이터의 제 2 필드에 움직임 보상 계수 사용 정보가 포함된 경우에는 움직임 보상 계수 사용 정보를 추출하여 예측기(830)로 전달할 수 있다.The decoder 810 decodes the encoded data and restores the quantized residual block having the current motion vector and the quantized transform coefficients. That is, the decoder 810 decodes the encoded data to extract a quantized transform coefficient sequence, and inversely scans the quantized transform coefficient sequence using various inverse scanning methods such as an inverse zigzag scan to recover a residual block having a quantized transform coefficient. At this time, the decoder 810 can extract and decode the residual block encoded in the first field included in the encoded data, extract information necessary for prediction in the second field included in the encoded data, or decode the extracted information The predictor 830 can predict the current block in the same manner as the predictor 110 of the image encoding apparatus 100 by transmitting information extracted or extracted and decoded and necessary for prediction to the predictor 830 have. If the second field of the encoded data includes the motion compensation coefficient use information, the decoder 830 may extract the motion compensation coefficient use information and transmit the extracted information to the predictor 830.

역 양자화기 및 역 변환기(820)는 복호화기(810)에 의해 복호화되어 복원되 는 양자화된 잔여 블록을 역 양자화하여 역 양자화된 잔여 블록을 생성하고 역 양자화된 잔여 블록을 역 변환하여 잔여 신호를 가지는 잔여 블록을 복원한다.The inverse quantizer and inverse transformer 820 dequantize the quantized residual block, which is decoded by the decoder 810, to generate an inverse quantized residual block, inversely transform the inverse quantized residual block, The branch restores the residual block.

도 8에서는 복호화기(810)와 역 양자화기 및 역 변환기(820)가 각각 독립적으로 구현되는 것으로 도시하고 설명했지만, 복호화기(810)와 역 양자화기 및 역 변환기(820) 각각의 기능이 통합되어 하나의 복호화기로서 구현될 수도 있다. 이와 같이 복호화기가 복호화기(810)와 역 양자화기 및 역 변환기(820) 각각의 기능이 통합되어 구현되는 경우, 복호화기는 부호화 데이터를 복호화하여 현재 움직임 벡터 및 잔여 블록을 복원할 수 있으며, 필요한 경우 부호화 데이터로부터 움직임 보상 계수 사용 정보를 추출할 수 있다.8 shows that the decoder 810 and the inverse quantizer and the inverse transformer 820 are independently implemented, the functions of the decoder 810, the inverse quantizer and the inverse transformer 820 are integrated And may be implemented as a single decoder. In the case where the functions of the decoder 810, the inverse quantizer and the inverse transformer 820 are integrated, the decoder can decode the encoded data to recover the current motion vector and the residual block, The motion compensation coefficient use information can be extracted from the encoded data.

예측기(830)는 부호화 데이터로부터 복호화되어 복원되는 현재 움직임 벡터에 의해 지시되는 참조 블록에 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 계산되는 움직임 보상 계수를 반영한 변경 참조 블록을 현재 블록의 예측 블록으로 생성한다. 즉, 예측기(830)는 복호화기(810)로부터 현재 움직임 벡터, 움직임 보상 계수 사용 정보 등과 같은 예측에 필요한 정보를 이용하여 현재 블록에 대한 예측 블록을 생성한다. 이때, 예측기(830)는 복호화기(610)로부터 움직임 보상 계수 사용 정보를 전달받으면, 예측 블록을 생성할 때 전달된 움직임 보상 계수 사용 정보를 기초로 움직임 보상 계수를 적용하여 현재 블록의 움직임을 보상할지 여부를 결정하여 예측 블록을 생성할 수 있다. 예측기(830)에 대해서는 후술하는 과정에서 도 9를 통해 상세히 설명한다.The predictor 830 predicts a change reference block reflecting a motion compensation coefficient calculated using a current block adjacent pixel and a reference block adjacent pixel in a reference block indicated by a current motion vector decoded and reconstructed from encoded data, . That is, the predictor 830 generates a prediction block for the current block using information required for prediction such as the current motion vector, motion compensation coefficient usage information, and the like from the decoder 810. When the predictor 830 receives the motion compensation coefficient use information from the decoder 610, the predictor 830 applies a motion compensation coefficient based on the motion compensation coefficient use information transmitted when the prediction block is generated, And generate a prediction block. The predictor 830 will be described in detail with reference to FIG. 9 in the following process.

가산기(840)는 역 양자화기 및 역 변환기(820)에 의해 복원되는 잔여 블록과 예측기(830)에 의해 생성되는 예측 블록을 가산하여 현재 블록을 복원한다. 가산기(840)에 의해 복원되는 현재 블록은 참조 프레임 메모리(850)로 전달되어 참조 프레임 메모리(850)에서 픽처 단위로 누적되어 참조 픽처로서 저장될 수 있으며, 참조 픽처는 예측기(830)에서 다른 블록 또는 다른 프레임을 예측하는 데 활용될 수 있다.The adder 840 adds the residual block restored by the inverse quantizer and the inverse transformer 820 to the prediction block generated by the predictor 830, and restores the current block. The current block reconstructed by the adder 840 is transferred to the reference frame memory 850 and accumulated as a reference picture in units of pictures in the reference frame memory 850. The reference picture is predicted by the predictor 830 in another block Or to predict other frames.

도 8에서는 도시하지 않았지만, 전술한 본 발명의 일 실시예에 따른 영상 복호화 장치(800)는 인트라 예측을 위한 인트라 예측기, 복원된 현재 블록을 디블로킹 필터링하는 디블록킹 필터기 등을 추가로 포함할 수 있다. 또한, 역 양자화기 및 역 변환기(820)는 특정 픽처(예를 들어, 인트라 픽처)에 대한 역 변환 및 역 양자화 연산을 추가로 수행할 수도 있다.Although not shown in FIG. 8, the video decoding apparatus 800 according to an embodiment of the present invention may further include an intra predictor for intra prediction, a deblocking filter for deblocking and filtering the restored current block, and the like . In addition, the inverse quantizer and inverse transformer 820 may further perform an inverse transform and an inverse quantization operation on a specific picture (for example, an intra picture).

도 9는 본 발명의 일 실시예에 따른 예측 복호화를 위한 인터 예측 장치를 간략하게 나타낸 블록 구성도이다.9 is a block diagram schematically illustrating an inter prediction apparatus for predictive decoding according to an embodiment of the present invention.

본 발명의 일 실시예에 따른 예측 복호화를 위한 인터 예측 장치는 도 8을 통해 전술한 본 발명의 일 실시예에 따른 영상 복호화 장치(800)에서는 예측기(830)로 구현될 수 있으므로, 이하에서는 설명의 편의를 위해, 예측기(830)라 칭한다.The inter prediction apparatus for predictive decoding according to an embodiment of the present invention can be implemented as a predictor 830 in the image decoding apparatus 800 according to an embodiment of the present invention described above with reference to FIG. Quot; predictor 830 &quot;.

예측기(830)는 움직임 보상 계수 계산기(910) 및 움직임 보상기(920)를 포함하여 구성될 수 있다.The predictor 830 may include a motion compensation coefficient calculator 910 and a motion compensator 920.

움직임 보상 계수 계산기(910)는 부호화 데이터를 복호화하여 복원되는 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하고, 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산한다. 즉, 움직임 보상 계수 계산기(910)는 복호화기(810)로부터 또는 움직임 보상기(920)로부터 복호화기(810)에 의해 복원되는 현재 움직임 벡터를 전달받으면, 복원되는 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하고, 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산한다. 움직임 보상 계수 계산기(910)가 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하는 과정은 도 2 내지 도 4를 통해 전술한 움직임 보상 계수 계산기(220)에서 움직임 보상 계수를 계산하는 과정과 동일 또는 유사하므로 이에 대한 상세한 설명은 생략한다.The motion compensation coefficient calculator 910 decodes the encoded data to generate a reference block indicated by the current motion vector to be reconstructed, and calculates a motion compensation coefficient using the current block adjacent pixel and the reference block adjacent pixel. That is, when the motion compensation coefficient calculator 910 receives the current motion vector recovered from the decoder 810 or from the motion compensator 920 by the decoder 810, And calculates the motion compensation coefficient using the current block adjacent pixel and the reference block adjacent pixel. The motion compensation coefficient calculator 910 calculates the motion compensation coefficient using the current block neighboring pixel and the reference block neighboring pixel by calculating the motion compensation coefficient in the motion compensation coefficient calculator 220 described above with reference to FIGS. The detailed description thereof will be omitted.

움직임 보상기(920)는 참조 블록에 움직임 보상 계수를 반영하여 변경 참조 블록을 생성하고, 변경 참조 블록을 현재 블록의 예측 블록으로서 결정한다. 여기서, 움직임 보상기(920)는 움직임 보상 계수 사용 정보 또는 움직임 보상 계수를 기초로 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다.The motion compensator 920 generates a change reference block by reflecting the motion compensation coefficient in the reference block, and determines the change reference block as a prediction block of the current block. Here, the motion compensator 920 may determine the change reference block as a prediction block of the current block based on the motion compensation coefficient use information or the motion compensation coefficient.

예를 들어, 움직임 보상 계수 계산기(910)는 복호화기(810)로부터 움직임 보상 계수 사용 정보를 전달받으면, 움직임 보상 계수 사용 정보가 움직임 보상 계수를 사용함을 나타내는 경우 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하고, 움직임 보상 계수 사용 정보가 움직임 보상 계수를 사용하지 않음을 나타내는 경우 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다. 즉, 부호화 데이터에 움직임 보상 계수 사용 정보가 포함된 경우에는 영상 부호화 장치(100)에서 참조 블록에 대한 부호화 비용과 변경 참조 블록에 대한 부호화 비용을 기초로 움 직임 보상 계수를 적용하여 현재 블록의 움직임을 보상할지 여부를 결정한 경우이므로, 움직임 보상 계수 사용 정보가 움직임 보상 계수를 사용함을 나타내는지(예를 들어, 플래그 '1') 또는 움직임 보상 계수를 사용하지 않음을 나타내는지(예를 들어, 플래그 '0') 여부를 판단하여 그에 따라 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할지 또는 참조 블록을 현재 블록의 예측 블록으로서 결정할지 여부를 결정할 수 있다.For example, when the motion compensation coefficient usage information is received from the decoder 810, the motion compensation coefficient calculator 910 calculates a motion compensation coefficient using information on the motion compensation coefficient, And when the motion compensation coefficient use information indicates that the motion compensation coefficient is not used, the reference block may be determined as a prediction block of the current block. That is, when motion compensation coefficient use information is included in the coded data, the image coding apparatus 100 applies the motion compensation coefficient based on the coding cost for the reference block and the coding cost for the change reference block, (For example, flag '1') or whether the motion compensation coefficient use information indicates the use of the motion compensation coefficient (for example, flag '1') or not '0') and determine whether to determine the change reference block as a prediction block of the current block or the reference block as a prediction block of the current block according to the determination.

다른 예로, 움직임 보상 계수 계산기(910)는 움직임 보상 계수가 '0'이 아닌 경우 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하고 움직임 보상 계수가 '0'인 경우 참조 블록을 현재 블록의 예측 블록으로서 결정하거나, 움직임 보상 계수가 기 설정된 범위 내인 경우 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하고 움직임 보상 계수가 기 설정된 범위 밖인 경우 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다. 즉, 부호화 데이터에 움직임 보상 계수 사용 정보가 포함되지 않은 경우에는 영상 부호화 장치(100)에서 움직임 보상 계수의 값을 기초로 움직임 보상 계수를 적용하여 현재 블록의 움직임을 보상할지 여부를 결정한 경우이므로, 영상 부호화 장치(100)와 미리 약속된 방식으로 움직임 보상 계수의 값이 기 설정된 조건에 만족하는지 여부(즉, 움직임 보상 계수가 '0'인지 여부 및/또는 움직임 보상 계수가 기 설정된 범위 내인지 여부)를 판단하여 그에 따라 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할지 또는 참조 블록을 현재 블록의 예측 블록으로서 결정할지 여부를 결정할 수 있다.As another example, when the motion compensation coefficient is not '0', the motion compensation coefficient calculator 910 determines the change reference block as a prediction block of the current block. If the motion compensation coefficient is '0' Alternatively, when the motion compensation coefficient is within a preset range, the change reference block is determined as a prediction block of the current block. If the motion compensation coefficient is outside the predetermined range, the reference block can be determined as the prediction block of the current block. That is, when the motion compensation coefficient use information is not included in the coded data, the motion compensation coefficient is applied based on the value of the motion compensation coefficient in the image coding apparatus 100 to determine whether to compensate the motion of the current block. It is determined whether the value of the motion compensation coefficient satisfies a preset condition (that is, whether the motion compensation coefficient is '0' and / or whether the motion compensation coefficient is within a predetermined range ) And determine whether to determine the change reference block as a prediction block of the current block or the reference block as a prediction block of the current block according to the determination.

이하에서는 도 8를 통해 전술한 예측기(830)가 수행하는 예측 복호화를 위한 인터 예측 방법에 대해 설명한다.Hereinafter, an inter prediction method for predictive decoding performed by the predictor 830 described above with reference to FIG. 8 will be described.

예측 복호화를 위한 인터 예측 방법에 따르면, 예측기(830)는 부호화 데이터를 복호화하여 복원되는 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하고, 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하며, 참조 블록에 움직임 보상 계수를 반영하여 변경 참조 블록을 생성하며, 변경 참조 블록을 현재 블록의 예측 블록으로서 결정한다.According to the inter prediction method for predictive decoding, the predictor 830 generates a reference block indicated by a current motion vector reconstructed by decoding the encoded data, and calculates a motion compensation coefficient using a current block adjacent pixel and a reference block adjacent pixel Calculates a change reference block by reflecting the motion compensation coefficient in the reference block, and determines the change reference block as a prediction block of the current block.

여기서, 예측기(830)는 부호화 데이터로부터 추출되는 움직임 보상 계수 사용 정보가 움직임 보상 계수를 사용함을 나타내는 경우 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하고, 움직임 보상 계수 사용 정보가 움직임 보상 계수를 사용하지 않음을 나타내는 경우 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다.Here, if the motion compensation coefficient use information extracted from the encoded data indicates that the motion compensation coefficient is used, the predictor 830 determines the change reference block as a prediction block of the current block, and the motion compensation coefficient use information uses the motion compensation coefficient The reference block can be determined as a prediction block of the current block.

또한, 예측기(830)는 움직임 보상 계수가 '0'이 아닌 경우 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하고 움직임 보상 계수가 '0'인 경우 참조 블록을 현재 블록의 예측 블록으로서 결정하거나 움직임 보상 계수가 기 설정된 범위 내인 경우 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하고 움직임 보상 계수가 기 설정된 범위 밖인 경우 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다.If the motion compensation coefficient is not '0', the predictor 830 determines the change reference block as a prediction block of the current block. If the motion compensation coefficient is '0', the predictor 830 determines the reference block as a prediction block of the current block, When the compensation coefficient is within the predetermined range, the change reference block is determined as a prediction block of the current block. If the compensation coefficient is outside the predetermined range, the reference block can be determined as the prediction block of the current block.

도 10은 본 발명의 일 실시예에 따른 예측 복호화를 위한 인터 예측 방법의 일 예를 설명하기 위한 순서도이다.FIG. 10 is a flowchart illustrating an example of an inter prediction method for predictive decoding according to an embodiment of the present invention.

전술한 본 발명의 일 실시예에 따른 예측 복호화를 위한 인터 예측 방법은 도 10에 도시한 바와 같이 구현될 수 있다. 즉, 예측기(830)는 움직임 보상 계수 사용 정보를 기초로 움직임 보상 계수를 적용하여 현재 블록의 움직임 보상을 수행할지 여부를 결정하여 예측 블록을 생성할 수 있다.The inter prediction method for predictive decoding according to an embodiment of the present invention described above can be implemented as shown in FIG. That is, the predictor 830 may generate a prediction block by determining whether to perform motion compensation of the current block by applying a motion compensation coefficient based on the motion compensation coefficient usage information.

도 10을 참조하면, 예측기(830)는 부호화 데이터를 복호화하여 복원되는 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하고(S1010), 부호화 데이터로부터 추출되는 움직임 보상 계수 사용 정보가 움직임 보상 계수를 사용함을 나타내는지 여부를 판단하여(S1020), 움직임 보상 계수 사용 정보가 움직임 보상 계수를 사용함을 나타내는 경우에는 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하고(S1030), 움직임 보상 계수를 반영한 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하며(S1040), 단계 S1020의 판단 결과 움직임 보상 계수를 반영하지 않은 참조 블록을 현재 블록의 예측 블록으로서 결정한다(S1050).Referring to FIG. 10, the predictor 830 generates a reference block indicated by a current motion vector reconstructed by decoding the encoded data (S1010), and uses motion compensation coefficient information extracted from the encoded data as a motion compensation coefficient (S1020). If the motion compensation coefficient use information indicates that the motion compensation coefficient is used, a motion compensation coefficient is calculated using the current block neighboring pixel and the reference block neighboring pixel (S1030) (S1040). In step S1040, the reference block that does not reflect the motion compensation coefficient is determined as a prediction block of the current block (S1050).

도 11은 본 발명의 일 실시예에 따른 예측 복호화를 위한 인터 예측 방법의 다른 예를 설명하기 위한 순서도이다.11 is a flowchart for explaining another example of the inter prediction method for predictive decoding according to an embodiment of the present invention.

전술한 본 발명의 일 실시예에 따른 예측 복호화를 위한 인터 예측 방법은 도 11에 도시한 바와 같이 구현될 수 있다. 즉, 예측기(830)는 움직임 보상 계수의 값을 기초로 움직임 보상 계수를 적용하여 현재 블록의 움직임 보상을 수행할지 여부를 결정하여 예측 블록을 생성할 수 있다. 도 11을 참조하면, 예측기(830)는 부호화 데이터를 복호화하여 복원되는 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하고(S1110), 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직 임 보상 계수를 계산하며(S1120), 움직임 보상 계수가 '0'인지 여부를 판단하여(S1130), 움직임 보상 계수가 '0'이 아닌 경우에는 움직임 보상 계수가 기 설정된 범위 내인지 여부 즉, 하한 임계값보다 크고 상한 임계값보다 작은지 여부를 판단하여(S1140), 움직임 보상 계수가 기 설정된 범위 내이면 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하고(S1150), 단계 S1130에서의 판단 결과가 움직임 보상 계수가 '0'이거나 단계S1140에서의 판단 결과가 움직임 보상 계수가 기 설정된 범위 밖인 경우에는 참조 블록을 예측 블록으로서 결정한다(S1160).The inter prediction method for predictive decoding according to an embodiment of the present invention described above can be implemented as shown in FIG. That is, the predictor 830 can generate a prediction block by determining whether to perform motion compensation of the current block by applying a motion compensation coefficient based on the value of the motion compensation coefficient. Referring to FIG. 11, the predictor 830 decodes the encoded data and generates a reference block indicated by the current motion vector to be reconstructed (S1110). Using the current block neighboring pixel and the reference block neighboring pixel, (S1130). If the motion compensation coefficient is not '0', it is determined whether the motion compensation coefficient is within a predetermined range, that is, whether the motion compensation coefficient is less than the lower limit threshold (S1140). If the motion compensation coefficient is within a predetermined range, the motion compensation coefficient determination unit 120 determines the change reference block as a prediction block of the current block (S1150). If the decision result in the step S1130 is less than the motion compensation coefficient Is '0' or the determination result in step S1140 is out of the preset range, the reference block is determined as a prediction block (S1160).

도 11에서는 단계 S1130과 단계 S1140이 모두 수행되는 것으로 도시하고 설명했지만, 단계 S1130과 단계 S1140 중 하나만이 수행될 수도 있다. 즉, 예측기(830)는 반드시 움직임 보상 계수의 값이 '0'이 아니고 기 설정된 범위 내인 경우에만 변경 참조 블록을 현재 블록의 예측 블록으로서 결정해야 하는 것은 아니며, 움직임 보상 계수의 값이 '0'이 아니면 기 설정된 범위 내인지 여부에 관계 없이 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있으며, 마찬가지로 움직임 보상 계수의 값이 기 설정된 범위 내에 있으면 '0'이어도 변경 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다.Although it has been shown and described that both steps S1130 and S1140 are performed in Fig. 11, only one of steps S1130 and S1140 may be performed. That is, the predictor 830 does not necessarily determine the change reference block as a prediction block of the current block only when the value of the motion compensation coefficient is not '0' and is within a predetermined range. If the value of the motion compensation coefficient is '0' The change reference block can be determined as a prediction block of the current block irrespective of whether it is within a preset range or not if the value of the motion compensation coefficient is within a predetermined range, As shown in FIG.

또한, 도 10 및 도 11을 통해 전술한 각 단계는 모두 반드시 수행되어야 하는 것은 아니며, 일부의 단계가 선택적으로 생략되거나 추가될 수도 있다. 또한, 각 단계의 순서도 반드시 도시된 바와 같이 정해지는 것은 아니며, 일부 또는 전분의 단계의 순서가 변경되거나 심지어는 병행적으로 수행될 수도 있다.In addition, not all of the steps described above through FIGS. 10 and 11 are necessarily performed, and some steps may be optionally omitted or added. Also, the order of each step is not necessarily set as shown, and the order of the steps of the part or starch may be changed or even performed in parallel.

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

영상 복호화 장치(800)는 부호화 데이터를 복호화하여 현재 움직임 벡터 및 잔여 블록을 복원하고(S1210), 복원되는 현재 움직임 벡터에 의해 지시되는 참조 블록에 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 계산되는 움직임 보상 계수를 반영한 변경 참조 블록을 현재 블록의 예측 블록으로서 생성하며(S720), 복원되는 잔여 블록과 예측 블록을 가산하여 현재 블록을 복원한다(S1230).The video decoding apparatus 800 decodes the encoded data to recover the current motion vector and the residual block (S1210), and calculates the motion vector using the current block neighboring pixel and the reference block neighboring pixel in the reference block indicated by the current motion vector to be restored (S720), and restores the current block by adding the residual block to be restored to the predicted block (S1230).

이를 위해 영상 복호화 장치(800)는 부호화 데이터로부터 움직임 보상 계수 사용 정보를 추출할 수 있다. 이 경우 단계 S720에서 영상 복호화 장치(800)는 움직임 보상 계수 사용 정보가 움직임 보상 계수를 사용함을 나타내면, 변경 참조 블록을 현재 블록의 예측 블록으로 결정하고, 움직임 보상 계수 사용 정보가 움직임 보상 계수를 사용하지 않음을 나타내는 경우 참조 블록을 현재 블록의 예측 블록으로 결정할 수 있다.For this, the image decoding apparatus 800 may extract motion compensation coefficient use information from the encoded data. In this case, if the motion compensation coefficient use information indicates that the motion compensation coefficient is used, the image decoding apparatus 800 determines the change reference block to be the prediction block of the current block in step S720. If the motion compensation coefficient use information uses the motion compensation coefficient The reference block can be determined as a prediction block of the current block.

또한, 영상 복호화 장치(800)는 부호화 데이터로부터 움직임 보상 계수 사용 정보를 추출하지 않고 스스로 움직임 보상 계수의 적용 여부를 결정할 수 있다. 즉, 영상 복호화 장치(800)는 부호화 데이터로부터 움직임 보상 계수 사용 정보를 추출하지 않은 경우, 움직임 보상 계수가 '0'이 아니면 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하고, 움직임 보상 계수가 '0'이면 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다. 또는, 영상 복호화 장치(800)는 움직임 보상 계수가 기 설정된 범위 내이면 변경 참조 블록을 현재 블록의 예측 블록으로서 결정하고, 움직임 보상 계수가 기 설정된 범위 밖이면 참조 블록을 현재 블록의 예측 블록으로서 결정할 수 있다.Also, the image decoding apparatus 800 can determine whether to apply the motion compensation coefficient itself without extracting the motion compensation coefficient use information from the encoded data. That is, when the motion compensation coefficient use information is not extracted from the coded data, the video decoding apparatus 800 determines the change reference block as a prediction block of the current block if the motion compensation coefficient is not '0' 0 ', the reference block can be determined as a prediction block of the current block. Alternatively, if the motion compensation coefficient is within a predetermined range, the image decoding apparatus 800 determines the change reference block as a prediction block of the current block. If the motion compensation coefficient is out of the predetermined range, the reference block is determined as a prediction block of the current block .

이상에서 전술한 바와 같이, 본 발명의 일 실시예에 따르면, 영상의 특성에 따라 움직임 보상 계수를 적응적으로 계산하고 예측 블록에 반영하여 부호화하고자 하는 블록을 더욱 정확하게 예측함으로써 실제 블록과 예측된 블록 간의 차이를 줄여 압축 효율을 향상시킬 수 있다.As described above, according to an embodiment of the present invention, a motion compensation coefficient is adaptively calculated according to characteristics of an image and is reflected in a prediction block to more accurately predict a block to be encoded, The compression efficiency can be improved.

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

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

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

이상에서 설명한 바와 같이 본 발명은 영상을 부호화하고 복호화하여 전송하는 영상 압축 처리 분야에 적용되어, 영상의 특성에 따라 움직임 보상 계수를 적응적으로 계산하고 예측 블록에 반영하여 부호화하고자 하는 블록을 더욱 정확하게 예측함으로써 실제 블록과 예측된 블록 간의 차이를 줄여 압축 효율을 향상시킬 수 있는 효과를 발생하는 매우 유용한 발명이다.As described above, the present invention is applied to an image compression processing field in which an image is encoded, decoded, and transmitted, and a motion compensation coefficient is adaptively calculated according to characteristics of an image, Prediction is performed, thereby reducing the difference between the actual block and the predicted block, thereby improving the compression efficiency.

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

도 2는 본 발명의 일 실시예에 따른 예측 부호화를 위한 인터 예측 장치를 간략하게 나타낸 블록 구성도,2 is a block diagram schematically illustrating an inter prediction apparatus for predictive coding according to an embodiment of the present invention.

도 3은 본 발명의 일 실시예에 따라 움직임 보상 계수를 계산하기 위한 인접 화소들을 나타낸 예시도,FIG. 3 is a diagram illustrating neighboring pixels for calculating a motion compensation coefficient according to an exemplary embodiment of the present invention. FIG.

도 4는 본 발명의 일 실시예에 따른 인터 예측 모드별 인접 화소를 설명하기 위한 예시도,4 is an exemplary diagram for explaining an adjacent pixel for each inter-prediction mode according to an embodiment of the present invention.

도 5는 본 발명의 일 실시예에 따른 예측 부호화를 위한 인터 예측 방법의 일 예를 설명하기 위한 순서도,5 is a flowchart for explaining an example of an inter prediction method for predictive coding according to an embodiment of the present invention.

도 6은 본 발명의 일 실시예에 따른 예측 부호화를 위한 인터 예측 방법의 다른 예를 설명하기 위한 순서도,6 is a flowchart for explaining another example of an inter prediction method for predictive coding according to an embodiment of the present invention.

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

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

도 9는 본 발명의 일 실시예에 따른 예측 복호화를 위한 인터 예측 장치를 간략하게 나타낸 블록 구성도,9 is a block diagram schematically illustrating an inter prediction apparatus for predictive decoding according to an embodiment of the present invention.

도 10은 본 발명의 일 실시예에 따른 예측 복호화를 위한 인터 예측 방법의 일 예를 설명하기 위한 순서도,FIG. 10 is a flowchart for explaining an example of an inter prediction method for predictive decoding according to an embodiment of the present invention. FIG.

도 11은 본 발명의 일 실시예에 따른 예측 복호화를 위한 인터 예측 방법의 다른 예를 설명하기 위한 순서도,11 is a flowchart for explaining another example of an inter prediction method for predictive decoding according to an embodiment of the present invention.

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

Claims (28)

예측 부호화를 위한 인터 예측 방법에 있어서,In an inter prediction method for predictive coding, 현재 블록의 움직임을 추정하여 현재 움직임 벡터를 결정하는 단계;Estimating motion of a current block to determine a current motion vector; 상기 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하는 단계;Generating a reference block indicated by the current motion vector; 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하는 단계;Calculating a motion compensation coefficient using a current block adjacent pixel and a reference block adjacent pixel; 상기 참조 블록에 상기 움직임 보상 계수를 반영하여 변경 참조 블록을 생성하는 단계; 및Generating a change reference block by reflecting the motion compensation coefficient to the reference block; And 상기 변경 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 단계Determining the change reference block as a prediction block of the current block 를 포함하고,Lt; / RTI &gt; 상기 움직임 보상 계수는,Wherein the motion compensation coefficient 상기 현재 블록 인접 화소의 평균과 상기 참조 블록 인접 화소의 평균의 차인 것을 특징으로 하는 인터 예측 방법.And a difference between an average of the current block adjacent pixels and an average of the reference block adjacent pixels. 제 1 항에 있어서, 상기 현재 블록의 예측 블록으로서 결정하는 단계는,The method of claim 1, wherein the step of determining, as a prediction block of the current block, 상기 참조 블록에 대한 부호화 비용과 상기 변경 참조 블록에 대한 부호화 비용을 기초로 상기 변경 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 것을 특징으로 하는 인터 예측 방법.Wherein the change reference block is determined as a prediction block of the current block based on a coding cost for the reference block and a coding cost for the change reference block. 예측 부호화를 위한 인터 예측 방법에 있어서,In an inter prediction method for predictive coding, 현재 블록의 움직임을 추정하여 현재 움직임 벡터를 결정하는 단계;Estimating motion of a current block to determine a current motion vector; 상기 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하는 단계;Generating a reference block indicated by the current motion vector; 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하는 단계;Calculating a motion compensation coefficient using a current block adjacent pixel and a reference block adjacent pixel; 상기 참조 블록에 상기 움직임 보상 계수를 반영하여 변경 참조 블록을 생성하는 단계; 및Generating a change reference block by reflecting the motion compensation coefficient to the reference block; And 상기 변경 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 단계Determining the change reference block as a prediction block of the current block 를 포함하고,Lt; / RTI &gt; 상기 현재 블록의 예측 블록으로서 결정하는 단계는,Wherein the step of determining, as a prediction block of the current block, 상기 참조 블록에 대한 부호화 비용을 계산하는 단계;Calculating a coding cost for the reference block; 상기 변경 참조 블록에 대한 부호화 비용을 계산하는 단계;Calculating a coding cost for the change reference block; 상기 참조 블록에 대한 부호화 비용이 상기 변경 참조 블록에 대한 부호화 비용보다 큰 경우, 상기 변경 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 단계; 및Determining the change reference block as a prediction block of the current block if the encoding cost for the reference block is greater than the encoding cost for the change reference block; And 상기 참조 블록에 대한 부호화 비용이 상기 변경 참조 블록에 대한 부호화 비용보다 작거나 같은 경우, 상기 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 단계Determining the reference block as a prediction block of the current block if the encoding cost for the reference block is less than or equal to the encoding cost for the change reference block 를 포함하는 것을 특징으로 하는 인터 예측 방법.The inter prediction method comprising the steps of: 제 1 항에 있어서, 상기 현재 블록의 예측 블록으로서 결정하는 단계는,The method of claim 1, wherein the step of determining, as a prediction block of the current block, 상기 움직임 보상 계수의 값을 기초로 상기 변경 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 것을 특징으로 하는 인터 예측 방법.And determines the change reference block as a prediction block of the current block based on the value of the motion compensation coefficient. 예측 부호화를 위한 인터 예측 방법에 있어서,In an inter prediction method for predictive coding, 현재 블록의 움직임을 추정하여 현재 움직임 벡터를 결정하는 단계;Estimating motion of a current block to determine a current motion vector; 상기 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하는 단계;Generating a reference block indicated by the current motion vector; 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하는 단계;Calculating a motion compensation coefficient using a current block adjacent pixel and a reference block adjacent pixel; 상기 참조 블록에 상기 움직임 보상 계수를 반영하여 변경 참조 블록을 생성하는 단계; 및Generating a change reference block by reflecting the motion compensation coefficient to the reference block; And 상기 변경 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 단계Determining the change reference block as a prediction block of the current block 를 포함하고,Lt; / RTI &gt; 상기 현재 블록의 예측 블록으로서 결정하는 단계는,Wherein the step of determining, as a prediction block of the current block, 상기 움직임 보상 계수가 '0'이 아닌 경우, 상기 변경 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 단계; 및Determining the change reference block as a prediction block of the current block if the motion compensation coefficient is not '0'; And 상기 움직임 보상 계수가 '0'인 경우, 상기 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 단계If the motion compensation coefficient is '0', determining the reference block as a prediction block of the current block 를 포함하는 것을 특징으로 하는 인터 예측 방법.The inter prediction method comprising the steps of: 예측 부호화를 위한 인터 예측 방법에 있어서,In an inter prediction method for predictive coding, 현재 블록의 움직임을 추정하여 현재 움직임 벡터를 결정하는 단계;Estimating motion of a current block to determine a current motion vector; 상기 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하는 단계;Generating a reference block indicated by the current motion vector; 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하는 단계;Calculating a motion compensation coefficient using a current block adjacent pixel and a reference block adjacent pixel; 상기 참조 블록에 상기 움직임 보상 계수를 반영하여 변경 참조 블록을 생성하는 단계; 및Generating a change reference block by reflecting the motion compensation coefficient to the reference block; And 상기 변경 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 단계Determining the change reference block as a prediction block of the current block 를 포함하고,Lt; / RTI &gt; 상기 현재 블록의 예측 블록으로서 결정하는 단계는,Wherein the step of determining, as a prediction block of the current block, 상기 움직임 보상 계수가 기 설정된 범위 내인 경우, 상기 변경 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 단계; 및Determining the change reference block as a prediction block of the current block if the motion compensation coefficient is within a predetermined range; And 상기 움직임 보상 계수가 상기 기 설정된 범위 밖인 경우, 상기 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 단계Determining the reference block as a prediction block of the current block if the motion compensation coefficient is out of the predetermined range 를 포함하는 것을 특징으로 하는 인터 예측 방법.The inter prediction method comprising the steps of: 제 6 항에 있어서, 상기 기 설정된 범위는,7. The method according to claim 6, 상한 임계값보다 작고 하한 임계값보다 큰 범위이며, 상기 상한 임계값과 상기 하한 임계값은 상기 현재 블록 인접 화소와 상기 참조 블록 인접 화소의 분산, 표준편차 및 상관계수 중 하나 이상을 이용하여 결정되는 것을 특징으로 하는 인터 예측 방법.And the upper limit threshold value and the lower limit threshold value are determined using at least one of a variance, a standard deviation, and a correlation coefficient of the current block adjacent pixel and the reference block adjacent pixel And the inter prediction method. 제 1 항에 있어서, 상기 현재 블록의 예측 블록으로서 결정하는 단계는,The method of claim 1, wherein the step of determining, as a prediction block of the current block, 상기 움직임 보상 계수를 적용하여 상기 현재 블록의 움직임을 추가로 추정하여 상기 현재 움직임 벡터를 재조정하는 것을 특징으로 하는 인터 예측 방법.Wherein the current motion vector is further re-adjusted by further estimating motion of the current block by applying the motion compensation coefficient. 삭제delete 예측 부호화를 위한 인터 예측 방법에 있어서,In an inter prediction method for predictive coding, 현재 블록의 움직임을 추정하여 현재 움직임 벡터를 결정하는 단계;Estimating motion of a current block to determine a current motion vector; 상기 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하는 단계;Generating a reference block indicated by the current motion vector; 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하는 단계;Calculating a motion compensation coefficient using a current block adjacent pixel and a reference block adjacent pixel; 상기 참조 블록에 상기 움직임 보상 계수를 반영하여 변경 참조 블록을 생성하는 단계; 및Generating a change reference block by reflecting the motion compensation coefficient to the reference block; And 상기 변경 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 단계Determining the change reference block as a prediction block of the current block 를 포함하고,Lt; / RTI &gt; 상기 현재 블록 인접 화소 및 상기 참조 블록 인접 화소는,The current block neighboring pixel and the reference block neighboring pixel, 상기 현재 블록을 부호화하기 전에 이미 부호화되고 복호화되어 복원된 화소인 것을 특징으로 하는 인터 예측 방법.Wherein the current block is a pixel that has been coded, decoded, and reconstructed before the current block is coded. 예측 부호화를 위한 인터 예측 방법에 있어서,In an inter prediction method for predictive coding, 현재 블록의 움직임을 추정하여 현재 움직임 벡터를 결정하는 단계;Estimating motion of a current block to determine a current motion vector; 상기 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하는 단계;Generating a reference block indicated by the current motion vector; 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하는 단계;Calculating a motion compensation coefficient using a current block adjacent pixel and a reference block adjacent pixel; 상기 참조 블록에 상기 움직임 보상 계수를 반영하여 변경 참조 블록을 생성하는 단계; 및Generating a change reference block by reflecting the motion compensation coefficient to the reference block; And 상기 변경 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 단계Determining the change reference block as a prediction block of the current block 를 포함하고,Lt; / RTI &gt; 상기 변경 참조 블록을 생성하는 단계는,Wherein the step of generating the change reference block comprises: 상기 참조 블록의 각 화소에서 상기 움직임 보상 계수를 감산하여 상기 변경 참조 블록을 생성하는 것을 특징으로 하는 인터 예측 방법.Wherein the change reference block is generated by subtracting the motion compensation coefficient from each pixel of the reference block. 제 11 항에 있어서, 상기 변경 참조 블록을 생성하는 단계는,12. The method of claim 11, wherein generating the change reference block comprises: 상기 참조 블록의 각 화소에서 상기 움직임 보상 계수를 감산한 값을 화소가 표현되는 값의 범위 내로 제한하여 상기 변경 참조 블록을 생성하는 것을 특징으로 하는 인터 예측 방법.Wherein the change reference block is generated by limiting a value obtained by subtracting the motion compensation coefficient from each pixel of the reference block to a value within which a pixel is represented. 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 예측 복호화를 위한 인터 예측 방법에 있어서,In an inter prediction method for predictive decoding, 부호화 데이터를 복호화하여 복원되는 현재 움직임 벡터에 의해 지시되는 참조 블록을 생성하는 단계;Generating a reference block indicated by a current motion vector reconstructed by decoding the encoded data; 현재 블록 인접 화소와 참조 블록 인접 화소를 이용하여 움직임 보상 계수를 계산하는 단계;Calculating a motion compensation coefficient using a current block adjacent pixel and a reference block adjacent pixel; 상기 참조 블록에 상기 움직임 보상 계수를 반영하여 변경 참조 블록을 생성하는 단계; 및Generating a change reference block by reflecting the motion compensation coefficient to the reference block; And 상기 변경 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 단계Determining the change reference block as a prediction block of the current block 를 포함하는 것을 특징으로 하는 인터 예측 방법.The inter prediction method comprising the steps of: 제 19 항에 있어서, 상기 현재 블록의 예측 블록으로서 결정하는 단계는,20. The method of claim 19, wherein the step of determining as a prediction block of the current block comprises: 상기 부호화 데이터로부터 추출되는 움직임 보상 계수 사용 정보가 상기 움직임 보상 계수를 사용함을 나타내는 경우 상기 변경 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하고, 상기 움직임 보상 계수 사용 정보가 상기 움직임 보상 계수를 사용하지 않음을 나타내는 경우 상기 참조 블록을 상기 현재 블록의 예측 블록으로서 결정하는 것을 특징으로 하는 인터 예측 방법.Wherein the motion compensation coefficient determination unit determines the change reference block as a prediction block of the current block when the motion compensation coefficient use information extracted from the encoded data indicates that the motion compensation coefficient is used, The prediction block determining unit determines the reference block as a prediction block of the current block. 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete
KR20090091047A 2009-09-25 2009-09-25 Inter Prediction Method and Apparatus Using Adjacent Pixels and Video Coding Method and Apparatus Using Same KR101479123B1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR20090091047A KR101479123B1 (en) 2009-09-25 2009-09-25 Inter Prediction Method and Apparatus Using Adjacent Pixels and Video Coding Method and Apparatus Using Same
US13/497,928 US9571851B2 (en) 2009-09-25 2010-09-24 Inter prediction method and apparatus using adjacent pixels, and image encoding/decoding method and apparatus using same
PCT/KR2010/006518 WO2011037420A2 (en) 2009-09-25 2010-09-24 Inter prediction method and apparatus using adjacent pixels, and image encoding / decoding method and apparatus using same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR20090091047A KR101479123B1 (en) 2009-09-25 2009-09-25 Inter Prediction Method and Apparatus Using Adjacent Pixels and Video Coding Method and Apparatus Using Same

Publications (2)

Publication Number Publication Date
KR20110033511A KR20110033511A (en) 2011-03-31
KR101479123B1 true KR101479123B1 (en) 2015-01-09

Family

ID=43937911

Family Applications (1)

Application Number Title Priority Date Filing Date
KR20090091047A KR101479123B1 (en) 2009-09-25 2009-09-25 Inter Prediction Method and Apparatus Using Adjacent Pixels and Video Coding Method and Apparatus Using Same

Country Status (1)

Country Link
KR (1) KR101479123B1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012148128A2 (en) * 2011-04-24 2012-11-01 엘지전자 주식회사 Inter-prediction method, and encoding and decoding methods and device using same
KR101418096B1 (en) * 2012-01-20 2014-07-16 에스케이 텔레콤주식회사 Video Coding Method and Apparatus Using Weighted Prediction
WO2013154366A1 (en) * 2012-04-12 2013-10-17 주식회사 팬택 Transform method based on block information, and apparatus using said method
KR101456973B1 (en) * 2014-01-24 2014-11-07 에스케이텔레콤 주식회사 Video Coding Method and Apparatus Using Weighted Prediction
WO2016085229A1 (en) * 2014-11-27 2016-06-02 주식회사 케이티 Video signal processing method and device
ES2699723B2 (en) * 2016-06-24 2020-10-16 Kt Corp METHOD AND APPARATUS TO TREAT A VIDEO SIGNAL
CN112840656A (en) * 2018-08-24 2021-05-25 三星电子株式会社 Method and apparatus for image encoding and method and apparatus for image decoding

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090034697A (en) * 2007-10-04 2009-04-08 삼성전자주식회사 Method and apparatus for inter prediction encoding/decoding using sub-pixel motion estimation

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090034697A (en) * 2007-10-04 2009-04-08 삼성전자주식회사 Method and apparatus for inter prediction encoding/decoding using sub-pixel motion estimation

Also Published As

Publication number Publication date
KR20110033511A (en) 2011-03-31

Similar Documents

Publication Publication Date Title
KR101431545B1 (en) Method and apparatus for Video encoding and decoding
KR101943049B1 (en) Method and Apparatus for Image Encoding/Decoding
KR101590500B1 (en) / Video encoding/decoding apparatus Deblocking filter and deblocing filtering method based intra prediction direction and Recording Medium therefor
KR101418096B1 (en) Video Coding Method and Apparatus Using Weighted Prediction
KR101444675B1 (en) Method and Apparatus for Encoding and Decoding Video
KR101441905B1 (en) Motion Vector Coding Method and Apparatus by Using Candidate Predicted Motion Vector Set Selection and Video Coding Method and Apparatus Using Same
KR101444667B1 (en) Video Coding Method and Apparatus Using Bi-Direction Intra Prediction
KR101432775B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock
US8948243B2 (en) Image encoding device, image decoding device, image encoding method, and image decoding method
US9503725B2 (en) Method and apparatus for encoding/decoding image for performing intraprediction using pixel value filtered according to prediction mode
US9571851B2 (en) Inter prediction method and apparatus using adjacent pixels, and image encoding/decoding method and apparatus using same
KR101479123B1 (en) Inter Prediction Method and Apparatus Using Adjacent Pixels and Video Coding Method and Apparatus Using Same
KR20080088039A (en) Method and apparatus for video encoding and decoding
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
KR101763113B1 (en) Video Encoding/Decoding Method and Apparatus for Noise Component in Spatial Domain
KR101432767B1 (en) Inter Prediction Method and Apparatus Using Motion Information Based Adjacent Pixels and Video Coding Method and Apparatus Using Same
KR101768865B1 (en) Video Coding Method and Apparatus Using Weighted Prediction
KR101426271B1 (en) Method and apparatus for Video encoding and decoding
KR101527148B1 (en) Inter Prediction Apparatus and Video Encoding/Decoding Apparatus and Method Using Same
KR101432779B1 (en) Video Coding Method and Apparatus by Using Motion Compensation Frame Selective Filtering and Inter Prediction Method and Apparatus Therefor
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
KR101379189B1 (en) Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame
KR101693284B1 (en) Method and Apparatus for Encoding/Decoding of Video Data Using Global Motion-based Enconding Structure

Legal Events

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

Payment date: 20171204

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20181203

Year of fee payment: 5