KR20110042602A - Video coding method and apparatus by using filtering motion compensation frame - Google Patents

Video coding method and apparatus by using filtering motion compensation frame Download PDF

Info

Publication number
KR20110042602A
KR20110042602A KR1020090099339A KR20090099339A KR20110042602A KR 20110042602 A KR20110042602 A KR 20110042602A KR 1020090099339 A KR1020090099339 A KR 1020090099339A KR 20090099339 A KR20090099339 A KR 20090099339A KR 20110042602 A KR20110042602 A KR 20110042602A
Authority
KR
South Korea
Prior art keywords
frame
motion compensation
motion
block
filter
Prior art date
Application number
KR1020090099339A
Other languages
Korean (ko)
Other versions
KR101379189B1 (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 KR1020090099339A priority Critical patent/KR101379189B1/en
Priority to PCT/KR2010/007027 priority patent/WO2011049321A2/en
Publication of KR20110042602A publication Critical patent/KR20110042602A/en
Application granted granted Critical
Publication of KR101379189B1 publication Critical patent/KR101379189B1/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/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • 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/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/80Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
    • H04N19/82Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation involving filtering within a prediction loop

Abstract

PURPOSE: A video encoding/decoding method and device thereof using filtering of a movement compensation frame are provided to improve a compression efficiency of a video by filtering a movement compensation frame. CONSTITUTION: A movement compensation frame which is generated by estimating and compensating movement of a current frame of an image is filter(S510). A residual frame which is a difference of the current frame and the filtered movement compensation frame is quantized and encoded(S520).

Description

움직임 보상 프레임의 필터링을 이용한 영상 부호화/복호화 방법 및 장치{Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame}Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame

본 발명은 움직임 보상 프레임의 필터링을 이용한 영상 부호화/복호화 방법 및 장치에 관한 것이다. 더욱 상세하게는, 동영상 부호화와 복호화 과정에서 움직임 추정과 움직임 보상을 통해 생성되는 움직임 보상 프레임을 필터링하여 동영상의 압축 효율을 향상시키기 위한 방법 및 장치에 관한 것이다.The present invention relates to a method and apparatus for image encoding / decoding using filtering of a motion compensation frame. More specifically, the present invention relates to a method and apparatus for improving the compression efficiency of a video by filtering a motion compensation frame generated through motion estimation and motion compensation during video encoding and decoding.

동영상 데이터를 효율적으로 저장하거나 전송하기 위해서는 부호화하여 데이터를 압축할 필요가 있다. 동영상 데이터를 압축하는 기술로는 H.261, H.263, H.264, MPEG-2, MPEG-4 등이 있다. 이러한 동영상 데이터의 압축 기술에서는 동영상의 각 프레임 영상의 휘도 성분과 색차 성분이 움직임 추정과 움직임 보상을 통하여 시간적으로 예측되고, 예측 잔여는 변환 및 양자화, 엔트로피 부호화가 수행 되어 비트스트림 형태로 전송된다.In order to efficiently store or transmit video data, it is necessary to compress and compress the data. Techniques for compressing video data include H.261, H.263, H.264, MPEG-2, and MPEG-4. In the video compression technique, the luminance component and the chrominance component of each frame image of the video are predicted temporally through motion estimation and motion compensation, and the prediction residuals are transformed, quantized, and entropy encoded to be transmitted in the form of a bitstream.

가장 최근의 동영상 압축 기술인 H.264/AVC는 MPEG(Moving Picture Experts Group)과 VCEG(Video Coding Experts Group)가 공동으로 개발한 기술로서, 매크로 블록은 16x16, 16x8, 8x16, 8x8, 8x4, 4x8, 4x4 크기를 가지는 더 작은 블록으로 분할되어 움직임 추정과 움직임 보상이 수행되며, 이때 움직임 추정과 움직임 보상을 위한 참조 프레임도 최대 16 개의 프레임이 이용될 수 있다. 또한, H.264/AVC에서는 1/4 화소 보간 방법을 채택함으로써, 기존의 동영상 압축 기술인 MPEG-4와 비교할 때 영상의 화질을 유지하면서 압축률을 향상시킬 수 있다.H.264 / AVC, the latest video compression technology, was developed jointly by the Moving Picture Experts Group (MPEG) and the Video Coding Experts Group (VCEG). Macroblocks are 16x16, 16x8, 8x16, 8x8, 8x4, 4x8, Motion estimation and motion compensation are performed by dividing into smaller blocks having a size of 4x4. In this case, up to 16 frames may also be used for the reference frame for motion estimation and motion compensation. In addition, the H.264 / AVC adopts a 1/4 pixel interpolation method, and the compression rate can be improved while maintaining the image quality compared to MPEG-4, which is a conventional video compression technology.

이와 같이 기존의 통상적인 동영상 압축 기술에서는 움직임 추정과 움직임 보상 등을 이용하여 영상 내의 시간적인 중복성을 제거함으로써 높은 압축률을 달성할 수 있지만, 움직임 추정과 움직임 보상을 통해 생성되는 움직임 보상 프레임에는 여전히 시간적 중복성이 많이 남게 되어, 변환 및 양자화되고 엔트로피 부호화되는 예측 잔여가 커지게 되고 그에 따라 많은 양의 잔여 데이터가 부호화되어야 하기 때문에 효율적인 부호화가 어려운 문제점이 있다.As such, in the conventional video compression technology, high compression ratio can be achieved by removing temporal redundancy in the image using motion estimation and motion compensation, but the motion compensation frame generated through motion estimation and motion compensation is still temporal. Since a lot of redundancy remains, the prediction residual to be transformed, quantized, and entropy encoded becomes large, and thus a large amount of residual data needs to be encoded.

전술한 문제점을 해결하기 위해 본 발명은, 동영상 부호화와 복호화 과정에서 움직임 추정과 움직임 보상을 통해 생성되는 움직임 보상 프레임을 필터링하고 그 잔여 프레임을 부호화함으로써 동영상의 압축 효율을 향상시키기는 데 주된 목적이 있다.In order to solve the above problems, the present invention is to improve the compression efficiency of a video by filtering a motion compensation frame generated through motion estimation and motion compensation and encoding the remaining frames during video encoding and decoding. have.

전술한 목적을 달성하기 위해 본 발명은, 영상을 부호화하는 방법에 있어서, 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하는 단계; 및 현재 프레임과 필터링된 움직임 보상 프레임의 차인 잔여 프레임을 변환 및 양자화하고 부호화하는 단계를 포함하는 것을 특징으로 하는 영상 부호화 방법을 제공한다.In order to achieve the above object, the present invention provides a method of encoding an image, the method comprising: filtering a motion compensation frame generated by estimating and compensating for a motion of a current frame of an image; And transforming, quantizing, and encoding the remaining frame that is a difference between the current frame and the filtered motion compensation frame.

또한, 본 발명의 다른 목적에 의하면, 영상을 부호화하는 장치에 있어서, 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하는 예측기; 현재 프레임과 필터링된 움직임 보상 프레임을 감산하여 잔여 프레임을 생성하는 감산기; 잔여 프레임을 변환 및 양자화하는 변환기 및 양자화기; 및 변환 및 양자화된 잔여 프레임을 부호화하는 부호화기를 포함하는 것을 특징으로 하는 영상 부호화 장치.According to another object of the present invention, there is provided an apparatus for encoding an image, comprising: a predictor for filtering a motion compensation frame generated by estimating and compensating for a motion of a current frame of an image; A subtractor for generating a residual frame by subtracting the current frame and the filtered motion compensation frame; A converter and quantizer for transforming and quantizing residual frames; And an encoder for encoding the transformed and quantized residual frames.

또한, 본 발명의 또 다른 목적에 의하면, 영상을 복호화하는 방법에 있어서, 비트스트림으로부터 추출되는 움직임 정보 데이터를 복호화하여 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하고 움직임 보상 프레임을 필터링하는 단계; 및 비트스트림으로부터 추출되고 복호화되어 복원되는 잔여 프레임과 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원하는 단계를 포함하는 것을 특징으로 하는 영상 복호화 방법을 제공한다.According to still another object of the present invention, in a method of decoding an image, the current frame is obtained by using a motion vector and a reference frame index identified by the motion information reconstructed by decoding motion information data extracted from the bitstream. Compensating for motion to generate a motion compensation frame and filtering the motion compensation frame; And reconstructing the current frame by adding the filtered motion compensation frame and the residual frame extracted and decoded from the bitstream to recover the current frame.

또한, 본 발명의 또 다른 목적에 의하면, 영상을 복호화하는 장치에 있어서, 비트스트림으로부터 추출되는 움직임 정보 데이터와 영상 부호화 데이터를 복호화하여 움직임 정보와 변환 및 양자화된 잔여 프레임을 복원하는 복호화기; 복원되는 변환 및 양자화된 잔여 프레임을 역 양자화 및 역 변환하여 잔여 프레임을 복원하 는 역 양자화기 및 역 변환기; 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하고 움직임 보상 프레임을 필터링하는 예측기; 및 복원되는 잔여 프레임과 필터링되는 움직임 보상 프레임을 가산하여 현재 프레임을 복원하는 가산기를 포함하는 것을 특징으로 하는 영상 복호화 장치를 제공한다.According to still another aspect of the present invention, there is provided an apparatus for decoding an image, comprising: a decoder for decoding motion information data and image encoded data extracted from a bitstream and restoring motion information, transformed and quantized residual frames; An inverse quantizer and an inverse converter that inverse quantizes and inverse transforms the reconstructed transform and quantized residual frames to recover the residual frames; A predictor for generating a motion compensation frame by compensating for the motion of the current frame by using the motion vector identified by the reconstructed motion information and the reference frame index, and filtering the motion compensation frame; And an adder for reconstructing the current frame by adding the reconstructed residual frame and the filtered motion compensation frame.

또한, 본 발명의 또 다른 목적에 의하면, 인터 예측 방법에 있어서, 영상의 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터와 참조 프레임 색인을 결정하는 단계; 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 단계; 및 움직임 보상 프레임을 필터링하는 단계를 포함하는 것을 특징으로 하는 인터 예측 방법을 제공한다.According to still another object of the present invention, there is provided an inter prediction method comprising: determining a motion vector and a reference frame index for a block in which a block mode is an inter mode within a current frame of an image; Generating a motion compensation block using the determined motion vector and the reference frame index and generating a motion compensation frame including the motion compensation block; And filtering the motion compensation frame.

또한, 본 발명의 또 다른 목적에 의하면, 인터 예측 장치에 있어서, 영상의 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터와 참조 프레임 색인을 결정하는 움직임 추정기; 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 움직임 보상기; 및 움직임 보상 프레임을 필터링하는 움직임 보상 필터를 포함하는 것을 특징으로 하는 인터 예측 장치를 제공한다.According to still another object of the present invention, there is provided an inter prediction apparatus comprising: a motion estimator for determining a motion vector and a reference frame index for a block in which a block mode is an inter mode within a current frame of an image; A motion compensator for generating a motion compensation block using the determined motion vector and the reference frame index and generating a motion compensation frame including the motion compensation block; And a motion compensation filter for filtering the motion compensation frame.

또한, 본 발명의 또 다른 목적에 의하면, 인터 예측 방법에 있어서, 비트스트림으로부터 추출되고 복호화되어 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 단계; 및 움직임 보상 프레임을 필터링하는 단계를 포함하는 것을 특징으로 하는 인터 예측 방법을 제공한다.In addition, according to another object of the present invention, in the inter prediction method, a motion compensation block is generated by using a motion vector and a reference frame index identified by motion information extracted from the bitstream, and decoded from the bitstream. Generating a motion compensation frame comprising a; And filtering the motion compensation frame.

또한, 본 발명의 또 다른 목적에 의하면, 인터 예측 장치에 있어서, 비트스트림으로부터 추출되고 복호화되어 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 움직임 보상기; 및 움직임 보상 프레임을 필터링하는 움직임 보상 필터를 포함하는 것을 특징으로 하는 인터 예측 장치를 제공한다.According to still another object of the present invention, in an inter prediction apparatus, a motion compensation block is generated by using a motion vector and a reference frame index identified by motion information extracted from a bitstream, decoded, and recovered. A motion compensator for generating a motion compensation frame comprising a; And a motion compensation filter for filtering the motion compensation frame.

이상에서 설명한 바와 같이 본 발명에 의하면, 움직임 보상 프레임을 필터링함으로써 그 잔여 프레임에 잔존하는 시간적 중복성을 더욱 많이 제거할 수 있으므로 동영상의 압축 효율을 향상시킬 수 있다.As described above, according to the present invention, since the temporal redundancy remaining in the remaining frames can be further removed by filtering the motion compensation frame, the compression efficiency of the video can be improved.

이하, 본 발명의 일부 실시예들을 예시적인 도면을 통해 상세하게 설명한다. 각 도면의 구성요소들에 참조부호를 부가함에 있어서, 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 발명을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.Hereinafter, some embodiments of the present invention will be described in detail through exemplary drawings. In adding reference numerals to the components of each drawing, it should be noted that the same reference numerals are assigned to the same components as much as possible even though 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 addition, in describing the component of this invention, terms, such as 1st, 2nd, A, B, (a), (b), can be used. These terms are only for distinguishing the components from other components, and the nature, order or order of the components are not limited by the terms. If a component is described as being "connected", "coupled" or "connected" to another component, that component may be directly connected or connected to that other component, but between components It will be understood that may be "connected", "coupled" or "connected".

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

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

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

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

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

예측기(110)는 입력 영상에서 부호화하고자 하는 프레임(이하 '현재 프레임(Current Frame)'이라 칭함)의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링한다. 즉, 예측기(110)는 이미 부호화되고 다시 복호화되어 복원된 후 메모리(180)에 저장된 참조 프레임에서 인터 예측 모드(Inter Prediction Mode)에 따라 현재 프레임 내의 각 블록의 움직임을 추정하여 움직임 벡터(Motion Vector)를 생성하고, 움직임 벡터를 이용하여 각 블록의 움직임을 보상함으로써 현재 프레임의 움직임이 보상된 움직임 보상 프레임(Motion Compensation Frame)을 생성하고 생성되는 움직임 보상 프레임을 필터링한다.The predictor 110 filters a motion compensation frame generated by estimating and compensating for a motion of a frame to be encoded in the input image (hereinafter referred to as a current frame). That is, the predictor 110 estimates the motion of each block in the current frame according to the inter prediction mode in the reference frame stored in the memory 180 after it is already encoded, decoded, and reconstructed, and then is a motion vector. ) And generate a motion compensation frame in which the motion of the current frame is compensated by compensating the motion of each block using the motion vector, and filtering the generated motion compensation frame.

이를 위해, 예측기(110)는 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터(Motion Vector)와 참조 프레임 색인(Reference Frame Index)을 결정하고, 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하며, 생성되는 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하여 움직임 보상 프레임을 필터링할 수 있다.To this end, the predictor 110 determines a motion vector and a reference frame index for a block in which the block mode is inter mode in the current frame, and uses the determined motion vector and reference frame index. The motion compensation block may be generated, and the motion compensation frame may be filtered by generating a motion compensation frame including the generated motion compensation block.

여기서, 예측기(110)는 움직임 보상 프레임 내의 블록의 화소의 특성에 따라 다른 필터를 이용하여 움직임 보상 프레임을 필터링할 수 있으며, 움직임 보상 프레임을 위너 필터(Winner Filter) 또는 디블로킹 필터(Deblocking Filter) 등과 같은 다양한 필터를 이용하여 필터링할 수도 있다.Here, the predictor 110 may filter the motion compensation frame using another filter according to the characteristics of the pixels of the block in the motion compensation frame, and the motion compensation frame may be a Winner filter or a deblocking filter. Filtering may also be performed using various filters such as the above.

또한, 예측기(110)는 현재 프레임과 필터링된 움직임 보상 프레임 간의 제곱 에러(Square Error)를 최소화하는 필터 계수(Filter Coefficient)를 가지는 필터를 이용하여 움직임 보상 프레임을 필터링할 수 있다.Also, the predictor 110 may filter the motion compensation frame using a filter having a filter coefficient that minimizes a square error between the current frame and the filtered motion compensation frame.

감산기(120)는 현재 프레임과 필터링된 움직임 보상 프레임을 감산하여 잔여 프레임(Residual Frame)을 생성한다. 여기서, 잔여 프레임이란 현재 프레임과 필터링된 움직임 보상 프레임이 감산되어 생성되는 잔여를 포함하는 프레임으로서 현재 프레임의 화소와 필터링된 움직임 보상 프레임의 화소의 차이인 잔여 신호를 포함하는 프레임을 말한다.The subtractor 120 subtracts the current frame and the filtered motion compensation frame to generate a residual frame. Here, the residual frame is a frame including a residual generated by subtracting the current frame and the filtered motion compensation frame, and refers to a frame including a residual signal that is a difference between pixels of the current frame and pixels of the filtered motion compensation frame.

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

부호화기(140)는 변환 및 양자화된 잔여 프레임을 부호화한다. 즉, 변환기 및 양자화기(130)에 의해 변환되고 양자화된 잔여 프레임의 양자화된 변환 계수를 부호화하여 영상 부호화 데이터를 생성한다. 생성된 영상 부호화 데이터는 비트스 트림에 포함된다. 이러한 부호화 기술로서는 엔트로피 부호화(Entropy Encoding) 기술이 이용될 수 있으나, 반드시 이에 한정하지 않고 다른 다양한 부호화 기술이 이용될 수 있을 것이다.The encoder 140 encodes the transformed and quantized residual frames. That is, the quantized transform coefficients of the residual frame transformed and quantized by the transformer and the quantizer 130 are encoded to generate image encoded data. The generated image coded data is included in the bit stream. As the encoding technique, an entropy encoding technique may be used, but various encoding techniques may be used without being limited thereto.

또한, 부호화기(140)는 움직임 보상 프레임을 필터링하는 데 이용한 필터의 필터 계수를 나타내는 필터 계수 정보를 부호화하여 필터 계수 데이터를 생성할 수 있다. 생성된 필터 계수 데이터는 비트스트림에 포함된다.In addition, the encoder 140 may generate filter coefficient data by encoding filter coefficient information indicating filter coefficients of a filter used to filter the motion compensation frame. The generated filter coefficient data is included in the bitstream.

또한, 부호화기(140)는 현재 프레임 내의 각 블록에 대한 블록 모드를 나타내는 블록 모드 정보를 부호화하여 블록 모드 데이터를 생성할 수 있으며, 생성된 블록 모드 데이터는 비트스트림에 포함된다.In addition, the encoder 140 may generate block mode data by encoding block mode information indicating a block mode of each block in the current frame, and the generated block mode data is included in the bitstream.

또한, 부호화기(140)는 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 결정되는 움직임 벡터와 참조 프레임 색인을 나타내는 움직임 정보를 부호화하여 움직임 정보 데이터를 생성할 수 있으며, 생성된 움직임 정보 데이터는 비트스트림에 포함된다.Also, the encoder 140 may generate motion information data by encoding motion information indicating a motion vector and a reference frame index determined for a block in which the block mode is inter mode in the current frame. It is included in the bitstream.

한편, 변환기 및 양자화기(130)의 기능은 부호화기(140)에 통합되어 구현될 수도 있다. 즉, 하나의 부호화기로 구현되는 경우, 부호화기는 잔여 프레임을 부호화하여 부호화 데이터를 생성한다.Meanwhile, the functions of the transformer and the quantizer 130 may be integrated into the encoder 140 and implemented. That is, when implemented with one encoder, the encoder generates encoded data by encoding the residual frame.

역 양자화기 및 역 변환기(150)는 변환 및 양자화된 잔여 프레임을 역 양자화 및 역 변환하여 잔여 프레임을 복원한다. 즉, 역 양자화기 및 역 변환기(150)는 변환기 및 양자화기(130)로부터 전달되는 변환 및 양자화된 잔여 프레임을 역 양자화하여 변환 계수를 가지는 잔여 프레임을 복원하고, 변환 계수를 가지는 잔여 프 레임을 다시 역 변환하여 잔여 신호를 가지는 잔여 프레임을 복원한다. 이때, 역 양자화기 및 역 변환기(150)는 변환기 및 양자화기(130)에서 변환 및 양자화한 방식을 역으로 수행함으로써 잔여 프레임을 복원할 수 있다.Inverse quantizer and inverse transformer 150 inverse quantizes and inverse transforms the transformed and quantized residual frame to recover the residual frame. That is, the inverse quantizer and the inverse transformer 150 inverse quantizes the transformed and quantized residual frames transmitted from the transformer and the quantizer 130 to restore the residual frame having the transform coefficients, and the residual frame having the transform coefficients. Inverse conversion is performed again to restore the residual frame with the residual signal. In this case, the inverse quantizer and the inverse transformer 150 may restore the remaining frame by performing the transformed and quantized method in the inverse of the transformer and the quantizer 130.

가산기(160)는 복원되는 잔여 프레임과 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원한다.The adder 160 reconstructs the current frame by adding the reconstructed residual frame and the filtered motion compensation frame.

디블로킹 필터(170)는 복원되는 현재 프레임을 디블로킹 필터링하며, 메모리(180)는 디블로킹 필터링된 현재 프레임을 저장한다. 여기서, 디블로킹 필터링이란 영상을 블록 단위로 부호화하면서 발생하는 블록 왜곡을 감소시키는 작업을 말하며, 블록 경계와 매크로블록 경계에 디블로킹 필터를 적용하거나 매크로블록 경계에만 디블로킹 필터를 적용하거나 디블로킹 필터를 사용하지 않는 방법 중 하나를 선택적으로 사용할 수 있다.The deblocking filter 170 deblocks and filters the current frame to be restored, and the memory 180 stores the deblocking filtered current frame. Here, the deblocking filtering refers to an operation of reducing block distortion generated by encoding an image in block units, and applying a deblocking filter to a block boundary and a macroblock boundary, or applying a deblocking filter only to a macroblock boundary or a deblocking filter. You can optionally use one of the methods that does not use.

도 1에서는 도시하지 않았지만, 전술한 본 발명의 일 실시예에 따른 영상 부호화 장치(100)는 예측기(110) 내에 인트라 예측(Intra Prediction)을 위한 인트라 예측기 등을 추가로 포함할 수 있다. 이 경우, 감산기(120)는 현재 프레임과 인트라 예측기에 의해 생성되는 예측 프레임을 감산하여 잔여 프레임을 생성할 수 있으며, 변환기 및 양자화기(130) 및 역 양자화기 및 역 변환기(150)는 잔여 프레임에 대한 변환 및 양자화와 변환 및 양자화된 잔여 프레임에 대한 역 변환 및 역 양자화을 위한 연산을 추가로 수행할 수도 있다. 또한, 부호화기(130)는 변환 및 양자화된 잔여 프레임을 부호화하여 영상 부호화 데이터를 생성할 수 있으며, 이러한 데이터는 비트스트림에 포함된다.Although not shown in FIG. 1, the image encoding apparatus 100 according to an embodiment of the present invention may further include an intra predictor for intra prediction in the predictor 110. In this case, the subtractor 120 may generate a residual frame by subtracting the current frame and the prediction frame generated by the intra predictor, and the transformer and quantizer 130 and the inverse quantizer and the inverse transformer 150 are residual frames. Calculation may be further performed for transform and quantization for and inverse transform and inverse quantization for the transformed and quantized residual frame. In addition, the encoder 130 may generate the image encoded data by encoding the transformed and quantized residual frame, which is included in the bitstream.

따라서, 본 발명의 일 실시예에서는 현재 프레임과 필터링된 움직임 보상 프레임의 차이인 잔여 프레임만 변환 및 양자화되고 부호화되어 인터 예측 부호화에 따른 영상 부호화 데이터가 비트스트림에 포함되는 것으로 설명하지만, 실제로 영상 부호화 장치(100)는 인트라 예측 부호화되는 영상 부호화 데이터를 추가로 생성할 수 있으며, 비트스트림에는 인터 예측 부호화에 의해 생성되는 영상 부호하 데이터뿐만 아니라 인트라 예측 부호화에 의해 생성되는 영상 부호화 데이터와 그 영상 부호화 데이터를 인트라 예측 복호화기 위한 정보 또는 그 부호화 데이터가 추가로 포함될 수 있음을 인식해야 할 것이다.Therefore, in the exemplary embodiment of the present invention, only the remaining frame, which is a difference between the current frame and the filtered motion compensation frame, is transformed, quantized, and encoded, so that the image encoded data according to inter prediction encoding is included in the bitstream. The apparatus 100 may further generate image coded data to be intra predictively coded, and in the bitstream, image coded data generated by intra predictive coding as well as image coded data generated by inter predictive coding and the image coded data. It will be appreciated that information for intra prediction decoding the data or its encoded data may be further included.

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

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

예측기(110)는 움직임 추정기(Motion Estimator, 210), 움직임 보상기(Motion Compensator, 220) 및 움직임 보상 필터(Motion Compensation Filter, 230)를 포함하여 구성될 수 있다. 또한, 예측기(110)는 인트라 예측기를 추가로 포함할 수 있지만 별도로 도시하지는 않았다.The predictor 110 may include a motion estimator 210, a motion compensator 220, and a motion compensation filter 230. In addition, the predictor 110 may further include an intra predictor, but is not separately illustrated.

움직임 추정기(210)는 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터(Motion Vector)와 참조 프레임 색인(Reference Frame Index)을 결정한다. 즉, 움직임 추정기(210)는 현재 프레임 내의 각 블록들 중 블록 모드가 인터 모드인 블록들에 대한 움직임을 추정하여 움직임 벡터와 참조 프레임 색인을 결정한다. 여기서, 현재 프레임 내의 각 블록들에 대한 블록 모드는 움직임 추정기(210)가 결정할 수도 있으나, 예측기(110) 또는 영상 부호화 장치(100) 내에 추가적으로 구비되는 모드 결정기(Mode Determiner, 미도시)가 결정할 수도 있다.The motion estimator 210 determines a motion vector and a reference frame index for a block in which the block mode is inter mode in the current frame. That is, the motion estimator 210 determines the motion vector and the reference frame index by estimating the motion of the blocks in which the block mode is the inter mode among the blocks in the current frame. Here, the motion estimator 210 may determine the block mode for each block in the current frame, but may be determined by a mode determiner (not shown) additionally provided in the predictor 110 or the image encoding apparatus 100. have.

이를 위해, 움직임 추정기(210)는 현재 프레임 내에서 블록 모드가 P 매크로블록(Predictive Macroblock)인 블록에 대해서는 순방향 예측을 수행하여 현재 프레임의 이전 프레임을 기초로 순방향의 움직임 벡터를 추정하며, 현재 프레임 내에서 블록 모드가 B 매크로블록(Bidirectional Macroblck)인 블록에 대해서는 양방향 예측을 수행하여 현재 프레임의 이전 프레임 및 이후 프레임을 기초로 순방향의 움직임 벡터와 역방향의 움직임 벡터를 각각 추정할 수 있다.To this end, the motion estimator 210 performs forward prediction on a block whose block mode is P macroblock in the current frame to estimate a forward motion vector based on the previous frame of the current frame. Bidirectional prediction may be performed on a block having a B macroblock of B macroblock within the block to estimate a forward motion vector and a backward motion vector based on the previous frame and the next frame of the current frame.

이때, 움직임 추정기(210)는 움직임 벡터를 결정하는 데 있어서, 부호화 비용이 최소가 되는 움직임 벡터와 참조 프레임 색인을 현재 프레임 내의 해당 블록에 대한 움직임 벡터와 참조 프레임 색인으로서 결정할 수 있다. 이와 같이 움직임 벡터와 참조 프레임 색인을 결정하기 위한 부호화 비용을 계산하는 함수로서는 mcost 함수가 이용될 수 있다. mcost 함수는 수학식 1과 같이 나타낼 수 있다.In this case, in determining the motion vector, the motion estimator 210 may determine, as the motion vector and the reference frame index for the corresponding block in the current frame, the motion vector and the reference frame index at which the encoding cost is minimum. As such, the mcost function may be used as a function for calculating the coding cost for determining the motion vector and the reference frame index. The mcost function may be expressed as in Equation 1.

Figure 112009063901462-PAT00001
Figure 112009063901462-PAT00001

여기서, λ는 움직임 벡터와 참조 프레임 색인을 결정하기 위한 라그랑제 곱 셈자(Lagrange Multiplier)이고, Rate u,v,i 는 해당 움직임 벡터와 참조 프레임 색인을 이용하여 해당 블록의 움직임을 보상함으로써 예측 부호화되어 생성되는 비트스트림의 비트율을 나타낸다. SAD u,v,i 는 해당 움직임 벡터와 참조 프레임 색인을 이용하여 해당 블록의 움직임을 보상함으로써 생성되는 움직임 보상 프레임과 현재 프레임의 차의 제곱합을 나타내며, 수학식 2와 같이 나타낼 수 있다.Here, λ is a Lagrange Multiplier for determining the motion vector and the reference frame index, and rate u, v, i are predictive coding by compensating the motion of the block using the motion vector and the reference frame index. To indicate the bit rate of the generated bit stream. SAD u, v, i represents the sum of squares of the difference between the current frame and the motion compensation frame generated by compensating for the motion of the corresponding block using the motion vector and the reference frame index, and can be expressed by Equation 2.

Figure 112009063901462-PAT00002
Figure 112009063901462-PAT00002

수학식 2에서, MN은 각각 해당 블록의 수평 방향과 수직 방향의 화소 크기를 나타내며,

Figure 112009063901462-PAT00003
는 현재 프레임의 (x+m,y+n) 좌표에 대한 화소값을 의미하고,
Figure 112009063901462-PAT00004
i번째 참조 프레임의 (x+m+u,y+n+v) 좌표에 대한 화소값을 나타낸다. 또한, xy는 해당 블록의 제일 왼쪽의 제일 위쪽에 위치한 화소의 현재 프레임 또는 움직임 보상 프레임 내에서의 좌표를 나타내며, mn은 해당 블록의 내부에 위치한 화소의 좌표를 나타낸다. uv는 해당 블록의 움직임 벡터를 나타낸다.In Equation 2, M and N respectively represent the pixel size in the horizontal direction and the vertical direction of the block,
Figure 112009063901462-PAT00003
Is the pixel value for the ( x + m, y + n ) coordinate of the current frame,
Figure 112009063901462-PAT00004
Denotes a pixel value for ( x + m + u, y + n + v ) coordinates of the i th reference frame. In addition, x and y represent the coordinates in the current frame or the motion compensation frame of the pixel located at the top left of the block, m and n represents the coordinates of the pixel located inside the block. u and v represent the motion vectors of the block.

움직임 추정기(210)는 수학식 1과 같은 부호화 비용을 계산하기 위한 함수를 이용하여 현재 프레임 내에서 블록 모드가 인터 블록인 각 블록에 대한 움직임 벡터와 참조 프레임 색인별로 mcost를 계산한 후, 수학식 3과 같은 함수를 이용하여 부호화 비용을 최소로 하는 움직임 벡터와 참조 프레임 색인을 해당 블록의 움직임 벡터와 참조 프레임 색인으로서 결정한다.The motion estimator 210 calculates mcost for each motion vector and reference frame index for each block whose block mode is interblock in the current frame by using a function for calculating a coding cost as shown in Equation 1, A motion vector and a reference frame index for minimizing the encoding cost are determined as a motion vector and a reference frame index of the corresponding block by using a function as shown in FIG. 3.

Figure 112009063901462-PAT00005
Figure 112009063901462-PAT00005

수학식 3에서, SearchRange는 움직임 추정을 수행하는 범위를 나타내며,

Figure 112009063901462-PAT00006
는 각각 해당 블록에 대해 결정된 움직임 벡터의 가로 성분과 세로 성분을 내타내며,
Figure 112009063901462-PAT00007
는 해당 블록에 대해 결정된 참조 프레임 색인을 나타낸다.In Equation 3, SearchRange represents a range for performing motion estimation.
Figure 112009063901462-PAT00006
Represents the horizontal and vertical components of the motion vector determined for that block,
Figure 112009063901462-PAT00007
Denotes a reference frame index determined for the block.

움직임 보상기(220)는 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성한다. 즉, 움직임 보상기(220)는 움직임 추정기(210)에 의해 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 해당 블록의 움직임을 보상함으로써 움직임 보상 블록을 생성하며, 생성된 움직임 보상 블록들을 프레임 단위로 모아 움직임 보상 블록들을 포함하는 움직임 보상 프레임을 생성한다. 이를 위해, 움직임 보상기(220)는 움직임 추정기(210)에 의해 결정되는 참조 프레임 색인에 의해 식별되는 참조 프레임에서 움직임 추정기(210)에 의해 결정되는 움직임 벡터가 지시하는 블록을 가져와서 움직임 보상 블록으로서 생성하며, 이러한 움직임 보상 블록들을 포함하는 움직임 보상 프레임을 생성한다.The motion compensator 220 generates a motion compensation block by using the determined motion vector and the reference frame index, and generates a motion compensation frame including the motion compensation block. That is, the motion compensator 220 generates a motion compensation block by compensating for the motion of the corresponding block by using the motion vector determined by the motion estimator 210 and the reference frame index, and gathers the generated motion compensation blocks in units of frames. Generate a motion compensation frame comprising motion compensation blocks. To this end, the motion compensator 220 obtains a block indicated by the motion vector determined by the motion estimator 210 in the reference frame identified by the reference frame index determined by the motion estimator 210 as a motion compensation block. And a motion compensation frame including these motion compensation blocks.

이와 같이 움직임 보상 프레임을 생성하는 방법을 수학식으로 나타내면 수학식 4와 같이 나타낼 수 있다.In this way, a method of generating a motion compensation frame may be represented by Equation 4 below.

Figure 112009063901462-PAT00008
Figure 112009063901462-PAT00008

수학식 4에서, WH는 프레임(참조 프레임 및 움직임 보상 프레임)의 가로와 세로의 화소 크기를 나타내고,

Figure 112009063901462-PAT00009
는 움직임 보상 프레임의 (x,y) 좌표에 대한 화소값을 의미한다. 만약, (x,y) 좌표에 의해 식별되는 화소를 포함하는 블록의 블록 모드가 인트라 모드인 경우에는 움직임 벡터와 참조 프레임 색인이 존재하지 않기 때문에 일단
Figure 112009063901462-PAT00010
는 값을 가지지 않는다. 이후, 하나의 움직임 보상 프레임 생성이 완료되면 미러링(Mirroring) 방식과 유사한 방식으로 앞에 내용을 채워 넣을 수도 있다.In Equation 4, W and H represent the horizontal and vertical pixel size of the frame (reference frame and motion compensation frame),
Figure 112009063901462-PAT00009
Denotes a pixel value for the ( x , y ) coordinate of the motion compensation frame. If the block mode of the block including the pixel identified by the ( x , y ) coordinate is the intra mode, since the motion vector and the reference frame index do not exist,
Figure 112009063901462-PAT00010
Has no value. Subsequently, when generation of one motion compensation frame is completed, the content may be filled in a manner similar to a mirroring method.

본 발명의 일 실시예에 따라 움직임 보상 프레임을 생성하는 과정을 예시적으로 나타낸 도 3을 참조하면, 움직임 보상 프레임 내의 5 개의 블록들 중 4 개의 블록들은 블록 모드가 인터 블록이어서 4 개의 참조 프레임에서 각각 하나의 블록으로 채워지지만 1 개의 블록은 블록 모드가 인트라 블록이어서 움직임 벡터와 참조 프레임 색인이 없으므로 그 값을 가지지 않는다. 나중에 움직임 보상 프레임이 필터링될 때, 인트라 모드인 블록에 값이 채워져 있지 않아 주변 화소들에 대해 필터링이 불가능하므로 해당 블록의 주변에 있는 화소들의 화소값을 이용하여 필터링될 수 있다.Referring to FIG. 3 exemplarily illustrating a process of generating a motion compensation frame according to an embodiment of the present invention, four blocks among five blocks in the motion compensation frame have an interblock in four reference frames. Each block is filled with one block, but one block does not have a value because the block mode is an intra block and there is no motion vector and reference frame index. When the motion compensation frame is filtered later, since the value of the intra mode block is not filled, it is impossible to filter the neighboring pixels, and thus, the motion compensation frame may be filtered using the pixel values of the pixels around the block.

움직임 보상 필터(230)는 움직임 보상 프레임을 필터링한다. 즉, 움직임 보상 필터(230)는 움직임 보상기(220)에 의해 생성되는 움직임 보상 프레임의 화소들 을 다양한 종류의 필터를 이용하여 필터링함으로써 필터링된 움직임 보상 프레임이 현재 프레임과 더욱 유사하도록 하여 변환 및 양자화되어 부호화되는 잔여 프레임의 데이터 양을 줄이거나 움직임 보상 프레임 내에 존재하는 블로킹 현상(Blocking Effect)을 줄인다.The motion compensation filter 230 filters the motion compensation frame. That is, the motion compensation filter 230 filters the pixels of the motion compensation frame generated by the motion compensator 220 using various types of filters so that the filtered motion compensation frame is more similar to the current frame, thereby transforming and quantizing. Thereby reducing the amount of data in the remaining frame to be encoded or reducing the blocking effect present in the motion compensation frame.

여기서, 움직임 보상 필터(230)는 움직임 보상 프레임을 필터링할 때, 기 설정된 필터를 이용할 수도 있으며 블록 단위, 슬라이스 단위 또는 프레임 단위 등과 같이 일정한 단위로 적절한 필터 또는 필터의 계수를 선택하여 이용할 수도 있다. 움직임 보상 필터(230)가 기 설정된 필터를 이용하는 경우에는 영상 부호화 장치(100)와 후술할 영상 복호화 장치가 미리 약속한 필터나 미리 약속한 기준에 따른 필터를 이용할 수 있다. 또한, 움직임 보상 필터(230)가 적절한 필터 또는 필터의 계수를 선택하여 이용하는 경우에는 현재 프레임 내의 화소의 특성에 따라 다른 필터를 이용할 수 있다.Here, the motion compensation filter 230 may use a predetermined filter when filtering the motion compensation frame, or may select and use an appropriate filter or a coefficient of the filter in a predetermined unit such as a block unit, a slice unit, or a frame unit. When the motion compensation filter 230 uses a preset filter, a filter pre-appointed by the video encoding apparatus 100 and a video decoding apparatus to be described later, or a filter based on a pre-promised criterion may be used. In addition, when the motion compensation filter 230 selects and uses an appropriate filter or a filter coefficient, another filter may be used according to the characteristics of the pixels in the current frame.

움직임 보상 프레임을 필터링하기 위한 필터로는 위너 필터 또는 디블로킹 필터와 같은 다양한 필터가 이용될 수 있다. 위너 필터를 이용하여 움직임 보상 프레임을 필터링하는 경우, 움직임 보상 프레임에 잔존하는 시간적인 중복성을 더욱 제거할 수 있어서 잔여 프레임의 데이터량이 줄어들고 그에 따라 영상 부호화 데이터의 양이 줄어들어 결과적으로 비트스트림의 크기가 작아지므로 압축 효율이 향상될 수 있다. 또한, 디블로킹 필터를 이용하여 움직임 보상 프레임을 필터링하는 경우, 움직임 보상 프레임 내의 블로킹 현상을 줄일 수 있어서 부호화된 후 다시 복호화되어 복원되는 영상의 품질을 향상시킬 수 있다.As a filter for filtering the motion compensation frame, various filters such as a Wiener filter or a deblocking filter may be used. When the motion compensation frame is filtered using the Wiener filter, the temporal redundancy remaining in the motion compensation frame can be further eliminated, thereby reducing the amount of data in the remaining frames and consequently reducing the amount of image coded data. As it becomes smaller, the compression efficiency can be improved. In addition, when the motion compensation frame is filtered using the deblocking filter, the blocking phenomenon in the motion compensation frame can be reduced, thereby improving the quality of the image which is decoded and then reconstructed.

움직임 보상 필터(230)가 적절한 필터 또는 필터의 계수를 선택하여 이용하는 경우, 움직임 보상 프레임 내의 화소의 특성에 따라 필터의 종류를 선택하여 선택된 필터를 이용하여 필터링하거나 기 설정된 필터의 필터 계수를 계산하여 계산된 필터 계수를 이용하여 필터링하거나 필터의 종류를 선택하고 선택된 필터의 필터 계수도 계산하여 필터링할 수 있다.When the motion compensation filter 230 selects an appropriate filter or coefficients of the filter, the filter is selected according to the characteristics of the pixels in the motion compensation frame and filtered using the selected filter, or the filter coefficients of the preset filter are calculated. Filtering may be performed using the calculated filter coefficients or the filter type may be selected and the filter coefficients of the selected filter may also be calculated and filtered.

예를 들어, 움직임 보상 필터(230)는 움직임 보상 프레임 내의 움직임 보상 블록의 크기를 판단하고, 움직임 보상 블록의 크기에 따라 해당 움직임 예측 블록의 내부에서 블록의 경계에 위치하는 화소들과 블록의 경계에 위치하지 않는 화소들을 서로 다른 종류의 필터를 이용하여 필터링할 수도 있다. 이 경우, 움직임 보상 프레임 내의 화소의 특성은 움직임 보상 프레임 내의 움직임 보상 블록의 크기가 될 수 있다. 또한, 움직임 보상 필터(230)는 움직임 보상 블록들의 움직임 벡터와 참조 프레임 색인의 차이를 판단하고, 움직임 벡터와 참조 프레임의 색인의 차이에 따라 움직임 보상 블록들 간의 경계에 블로킹 현상이 발생하는지 여부를 판단하여, 움직임 보상 블록들 간의 경계에 블록킹 현상이 발생하는 부분의 화소들과 블록킹 현상이 발생하지 않는 부분의 화소들을 서로 다른 필터를 이용하여 필터링할 수도 있다. 이 경우, 움직임 보상 프레임 내의 화소의 특성은 움직임 보상 블록들 간의 움직임 벡터와 참조 프레임 색인의 차이가 될 수 있다.For example, the motion compensation filter 230 determines the size of the motion compensation block in the motion compensation frame and determines the size of the motion compensation block, and the boundary between the pixels located at the boundary of the block within the corresponding motion prediction block and the block boundary. Pixels not located at may be filtered using different types of filters. In this case, the characteristic of the pixel in the motion compensation frame may be the size of the motion compensation block in the motion compensation frame. In addition, the motion compensation filter 230 determines a difference between the motion vector of the motion compensation blocks and the reference frame index, and determines whether a blocking phenomenon occurs at the boundary between the motion compensation blocks according to the difference between the motion vector and the index of the reference frame. By determining, the pixels of the portion where the blocking phenomenon occurs and the pixels of the portion where the blocking phenomenon does not occur may be filtered using different filters. In this case, the characteristic of the pixel in the motion compensation frame may be a difference between the motion vector and the reference frame index between the motion compensation blocks.

움직임 보상 필터(230)가 움직임 보상 프레임을 필터링하는 방법을 예시적인 수학식으로 나타내면 수학식 5와 같이 나타낼 수 있다. 수학식 5에서는 2차원 필터를 이용하여 필터링하는 경우를 예시적으로 나타내었지만, 구현 방식 또는 필요에 따라서는 1차원 필터를 이용하여 필터링할 수도 있다.If the motion compensation filter 230 filters the motion compensation frame in an exemplary equation, it may be represented by Equation 5. In Equation 5, the case of filtering by using a two-dimensional filter is shown as an example, but may be filtered using a one-dimensional filter, depending on the implementation method or needs.

Figure 112009063901462-PAT00011
Figure 112009063901462-PAT00011

수학식 5에서,

Figure 112009063901462-PAT00012
는 움직임 보상 프레임의 (x+m,y+n) 좌표에 의해 지시되는 화소의 화소값을 나타내고, β PP (m,n)은 (m,n) 번째 필터 계수를 나타내며, PP는 움직임 보상 프레임 내의 블록 내의 화소의 특성에 따라 선택되는 필터의 종류를 나타낸다.
Figure 112009063901462-PAT00013
은 필터링된 움직임 보상 프레임 내에서 (x,y) 좌표에 위치하는 화소의 화소값을 나타낸다.In Equation 5,
Figure 112009063901462-PAT00012
Denotes the pixel value of the pixel indicated by the ( x + m, y + n ) coordinate of the motion compensation frame, β PP ( m , n ) denotes the ( m, n ) th filter coefficients, and PP is the motion compensation frame The type of filter selected according to the characteristics of the pixels in the blocks within the blocks is shown.
Figure 112009063901462-PAT00013
Denotes a pixel value of a pixel located at ( x , y ) coordinates in the filtered motion compensation frame.

본 발명의 일 실시예에 따라 움직임 보상 프레임을 필터링하는 과정을 예시적으로 나타낸 도 4를 참조하면, 움직임 보상 블록들 간의 경계에 블로킹 현상이 발생한 움직임 보상 프레임을 움직임 보상 필터를 이용하여 필터링함에 따라 필터링된 움직임 보상 프레임에서는 움직임 보상 블록들 간의 경계에 블로킹 현상이 제거될 수 있다. 도 4에서는 움직임 보상 필터로서 2차원의 디블로킹 필터가 이용된 경우를 예시적으로 나타내었다. 도 4에서 *는 컨볼루션(Convolution)을 나타낸다.Referring to FIG. 4 exemplarily illustrating a process of filtering a motion compensation frame according to an embodiment of the present invention, the motion compensation frame having a blocking phenomenon at the boundary between the motion compensation blocks is filtered using the motion compensation filter. In the filtered motion compensation frame, a blocking phenomenon may be removed at the boundary between the motion compensation blocks. 4 exemplarily illustrates a case where a two-dimensional deblocking filter is used as a motion compensation filter. In FIG. 4, * denotes convolution.

통상적인 동영상 압축 기술에서는 움직임 보상을 블록 단위로 수행하므로 움직임 보상 프레임은 하나의 개념적인 용어로서 사용되었지만, 본 발명의 일 실시예에서는 프레임 단위의 움직임 보상 프레임을 생성하여 필터링함으로써 필터링된 움직임 보상 프레임을 동영상 압축에 응용한다.In the conventional video compression technique, since the motion compensation is performed in units of blocks, the motion compensation frame is used as a conceptual term. However, in the exemplary embodiment of the present invention, the motion compensation frame is filtered by generating and filtering the motion compensation frame in frame units. Is applied to video compression.

필터 계수를 계산하는 일 예로서, 움직임 보상 필터(230)는 현재 프레임과 필터링된 움직임 보상 프레임의 제곱 에러가 최소가 되도록 위너 필터를 이용하여 움직임 보상 프레임을 필터링하기 위한 필터 계수를 계산할 수 있다. 수학식 6은 현재 프레임과 필터링된 움직임 보상 프레임의 제곱 에러를 계산하는 수학식을 나타낸 것이며, 수학식 7은 현재 프레임과 필터링된 움직임 보상 프레임의 제곱 에러가 최소가 되는 필터 계수를 계산하는 수학식을 나타낸 것이다.As an example of calculating the filter coefficients, the motion compensation filter 230 may calculate a filter coefficient for filtering the motion compensation frame using the Wiener filter such that the square error of the current frame and the filtered motion compensation frame is minimized. Equation 6 shows an equation for calculating a squared error between the current frame and the filtered motion compensation frame, and Equation 7 calculates a filter coefficient that minimizes the square error of the current frame and the filtered motion compensation frame. It is shown.

Figure 112009063901462-PAT00014
Figure 112009063901462-PAT00014

Figure 112009063901462-PAT00015
Figure 112009063901462-PAT00015

수학식 6 및 수학식 7에서, (e PP )는 현재 프레임과 필터링된 움직임 보상 프레임의 제곱 에러를 나타내며,

Figure 112009063901462-PAT00016
는 현재 프레임의 (x,y) 좌표에 대한 화소 값을 나타내고,
Figure 112009063901462-PAT00017
는 (m,n) 번째 필터 계수를 나타내며,
Figure 112009063901462-PAT00018
는 필터링된 움직임 보상 프레임의 (x,y) 좌표에 대한 화소값을 나타내며 수학식 5를 통해 계산될 수 있다.In equations (6) and (7), ( e PP ) represents the squared error of the current frame and the filtered motion compensation frame,
Figure 112009063901462-PAT00016
Denotes the pixel value for the ( x, y ) coordinate of the current frame,
Figure 112009063901462-PAT00017
Represents the ( m , n ) th filter coefficient,
Figure 112009063901462-PAT00018
Denotes a pixel value for the ( x, y ) coordinate of the filtered motion compensation frame and may be calculated through Equation 5.

수학식 6 및 수학식 7을 통해 계산되는 필터 계수는 움직임 보상 프레임을 필터링하는 데 이용되며, 부호화기(140)로 전달된다. 이때, 움직임 보상 필터(230)는 계산된 필터를 그대로 이용하여 움직임 보상 프레임을 필터링할 수도 있지만, 양자화, 올림 내림 등과 같은 과정을 통해 필터 계수를 보정하여 움직임 보상 프레임을 필터링할 수도 있다. 예를 들어, 필터 계수가 소수점을 가지는 계수로서 계산되는 경우 그대로 부호화되면 필터 계수 데이터의 데이터량이 커지므로 양자화, 올림, 내림 등과 같은 과정을 통해 정수의 계수로 보정한 후 보정된 필터 계수를 이용하여 움직임 보상 프레임을 필터링하고, 보정된 필터 계수를 부호화기(140)로 전달한다. 부호화기(140)는 필터 계수를 나타내는 필터 계수 정보를 부호화하여 필터 계수 데이터를 생성하고, 생성된 필터 계수 데이터는 비트스트림에 포함되어 영상 복호화 장치로 전송될 수 있다. 이와 같이 필터 계수를 보정하여 부호화함으로써 필터 계수 데이터의 데이터량을 줄일 수 있다. The filter coefficients calculated through Equations 6 and 7 are used to filter the motion compensation frame and are passed to the encoder 140. In this case, the motion compensation filter 230 may filter the motion compensation frame using the calculated filter as it is, but may filter the motion compensation frame by correcting the filter coefficient through a process such as quantization and rounding down. For example, if the filter coefficient is calculated as a coefficient having a decimal point, if it is encoded as it is, the data amount of the filter coefficient data increases, so that the coefficient is corrected to an integer coefficient through a process such as quantization, rounding, and rounding, and then the corrected filter coefficient The motion compensation frame is filtered and the corrected filter coefficients are transmitted to the encoder 140. The encoder 140 may generate filter coefficient data by encoding filter coefficient information indicating the filter coefficient, and the generated filter coefficient data may be included in the bitstream and transmitted to the image decoding apparatus. By correcting and encoding the filter coefficients as described above, the data amount of the filter coefficient data can be reduced.

이상에서 전술한 바와 같이 생성되는 필터링된 움직임 보상 프레임은 감산기(120)로 전달되며, 감산기(120)는 현재 프레임과 필터링된 움직임 보상 프레임을 감산하여 잔여 프레임을 생성한다. 이때, 필터링된 움직임 보상 블록을 블록 또는 슬라이스 단위 등 다양한 단위마다 적응적으로 사용할 수 있다. 잔여 프레임은 현 재 프레임의 화소의 화소값과 움직임 보상 프레임의 화소의 화소값의 차이값을 가지는 잔여 신호를 포함한다. 잔여 신호는 수학식 8과 같이 나타낼 수 있다.The filtered motion compensation frame generated as described above is transferred to the subtractor 120, and the subtractor 120 generates a residual frame by subtracting the current frame and the filtered motion compensation frame. In this case, the filtered motion compensation block may be adaptively used for each unit such as a block or slice unit. The residual frame includes a residual signal having a difference value between the pixel value of the pixel of the current frame and the pixel value of the pixel of the motion compensation frame. The residual signal may be represented as in Equation 8.

Figure 112009063901462-PAT00019
Figure 112009063901462-PAT00019

하지만, 통상적인 동영상 압축 방식에 따라 현재 프레임과 움직임 보상 프레임을 감산하여 생성되는 잔여 신호는 수학식 9와 같이 나타낼 수 있다.However, the residual signal generated by subtracting the current frame and the motion compensation frame according to a typical video compression method may be represented by Equation (9).

Figure 112009063901462-PAT00020
Figure 112009063901462-PAT00020

수학식 8과 수학식 9에서 resi(x,y)는 (x,y) 좌표에서 잔차 신호의 화소값을 나타낸다. 위너 필터를 이용하여 움직임 보상 필터링을 수행한 경우, 움직임 보상 프레임에 잔재하는 시간적인 중복성이 더욱 제거되어 수학식 8의 잔여 신호가 수학식 9의 잔여 신호보다 작으며, 디블로킹 필터를 이용하여 움직임 보상 필터링을 수행한 경우, 움직임 보상 프레임에 잔재하는 블로킹 현상이 더욱 제거되어 수학식 8의 잔여 신호가 변환 및 양자화되어 부호화된 데이터가 복호화되었을 때의 영상 품질이 더욱 좋아진다.In Equations 8 and 9, resi ( x , y ) represents the pixel value of the residual signal at the (x, y) coordinate. When the motion compensation filtering is performed using the Wiener filter, the temporal redundancy remaining in the motion compensation frame is further removed so that the residual signal of Equation 8 is smaller than the residual signal of Equation 9, and the motion is performed using a deblocking filter. When the compensation filtering is performed, the blocking phenomenon remaining in the motion compensation frame is further removed, so that the image quality when the residual data of Equation 8 is transformed and quantized and the encoded data is decoded is further improved.

수학식 8에서는 프레임 단위로 잔여 신호가 생성되는 것으로 예시하였지만, 반드시 수학식 8을 이용해야 하거나 프레임 단위로 잔여 신호를 생성해야 하는 것은 아니며, 블록 또는 슬라이스 등 다양한 단위로 잔여 신호가 생성될 수도 있고 수학식 8이 아닌 다른 수학식을 이용하여 잔여 신호가 생성될 수도 있을 것이다.Although Equation 8 illustrates that the residual signal is generated in units of frames, Equation 8 is not necessarily used or the residual signal is generated in units of frames, and the residual signal may be generated in various units such as blocks or slices. The residual signal may be generated using an equation other than Equation 8.

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

본 발명의 일 실시예에 따르면, 영상 부호화 장치(100)는 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하고(S510), 현재 프레임과 필터링된 움직임 보상 프레임의 차인 잔여 프레임을 변환 및 양자화하고 부호화한다(S520).According to an embodiment of the present invention, the image encoding apparatus 100 filters the motion compensation frame generated by estimating and compensating for the motion of the current frame of the image (S510), and remaining the difference between the current frame and the filtered motion compensation frame. The frame is transformed, quantized, and encoded (S520).

또한, 영상 부호화 장치(100)는 단계 S510에서, 움직임 보상 프레임 내의 블록의 화소의 특성에 따라 다른 필터를 이용하여 움직임 보상 프레임을 필터링할 수 있으며, 움직임 보상 프레임을 위너 필터 또는 디블로킹 필터를 이용하여 필터링할 수 있으며, 현재 프레임과 필터링된 움직임 보상 프레임 간의 제곱 에러를 최소화하는 필터 계수를 가지는 필터를 이용하여 움직임 보상 프레임을 필터링할 수 있다. 이때, 영상 부호화 장치(100)는 움직임 보상 프레임을 필터링하는 데 이용한 필터의 필터 계수를 나타내는 필터 계수 정보를 추가로 부호화할 수 있다.In operation S510, the image encoding apparatus 100 may filter the motion compensation frame using another filter according to the characteristics of the pixels of the block in the motion compensation frame, and use the Wiener filter or the deblocking filter as the motion compensation frame. The motion compensation frame may be filtered using a filter having a filter coefficient that minimizes a square error between the current frame and the filtered motion compensation frame. In this case, the image encoding apparatus 100 may further encode filter coefficient information indicating the filter coefficient of the filter used to filter the motion compensation frame.

또한, 영상 부호화 장치(100)는 단계 S510에서, 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터와 참조 프레임 색인을 결정하고, 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 생성되는 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하며, 움직임 보상 프레임을 필터링할 수 있다.In operation S510, the image encoding apparatus 100 may determine a motion vector and a reference frame index for a block in which the block mode is an inter mode, and use the determined motion vector and the reference frame index to determine a motion compensation block. And generate a motion compensation frame including the generated motion compensation block, and filter the motion compensation frame.

또한, 영상 부호화 장치(100)는 블록 모드를 나타내는 블록 모드 정보를 부호화하고, 결정되는 움직임 벡터와 참조 프레임 색인을 나타내는 움직임 정보를 추 가로 부호화할 수 있다.In addition, the image encoding apparatus 100 may encode block mode information indicating a block mode, and additionally encode motion information indicating a determined motion vector and a reference frame index.

또한, 영상 부호화 장치(100)는 변환 및 양자화된 잔여 프레임을 역 양자화 및 역 변환하여 잔여 프레임을 복원하고, 복원되는 잔여 프레임과 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원하며, 복원되는 현재 프레임을 디블로킹 필터링하여 저장할 수 있다.In addition, the image encoding apparatus 100 may reconstruct the residual frame by inverse quantization and inverse transformation of the transformed and quantized residual frame, restore the current frame by adding the reconstructed residual frame and the filtered motion compensation frame, and restore the current frame. Frames can be deblocked filtered and saved.

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

본 발명의 일 실시예에 따른 영상 복호화 장치(600)는 복호화기(Decoder, 610), 역 양자화기 및 역 변환기(620), 예측기(630), 가산기(640), 디블로킹 필터(650) 및 메모리(660)를 포함하여 구성될 수 있다.The image decoding apparatus 600 according to an embodiment of the present invention includes a decoder (Decoder, 610), an inverse quantizer and an inverse converter (620), a predictor (630), an adder (640), a deblocking filter (650), and It may be configured to include a memory 660.

복호화기(610)는 비트스트림으로부터 추출되는 움직임 정보 데이터와 영상 부호화 데이터를 복호화하여 움직임 정보와 변환 및 양자화된 잔여 프레임을 복원한다. 또한, 복호화기(610)는 비트스트림으로부터 블록 모드 데이터를 추출하고 복호화하여 블록 모드 정보를 복원할 수 있으며, 비트스트림으로부터 필터 계수 데이터를 추출하고 복호화하여 필터 계수 정보를 복원할 수 있다.The decoder 610 decodes the motion information data and the image encoded data extracted from the bitstream to restore the motion information, the transformed and quantized residual frames. In addition, the decoder 610 may recover block mode information by extracting and decoding block mode data from the bitstream, and may restore filter coefficient information by extracting and decoding filter coefficient data from the bitstream.

여기서, 복호화기(610)는 엔트로피 부호화와 같은 다양한 부호화 기법을 이용하여 각종 데이터를 복호화할 수 있으며, 영상 부호화 장치(100)의 부호화기(140)가 부호화한 방식을 역으로 수행하여 복호화할 수 있다.Here, the decoder 610 may decode various data using various encoding techniques such as entropy encoding, and may inversely decode a method encoded by the encoder 140 of the image encoding apparatus 100. .

역 양자화기 및 역 변환기(620)는 복원되는 변환 및 양자화된 잔여 프레임을 역 양자화 및 역 변환하여 잔여 프레임을 복원한다. 여기서, 역 양자화기 및 역 변 환기(620)는 다양한 변환 및 양자화 방식을 이용하여 역 양자화 및 역 변환을 수행할 수 있는데, 영상 부호화 장치(100)의 변환기 및 양자화기(130)가 변환 및 양자화한 방식을 역으로 수행하여 역 영자화 및 역 변환을 수행할 수 있다.Inverse quantizer and inverse transformer 620 inverse quantizes and inverse transforms the reconstructed transformed and quantized residual frame to reconstruct the residual frame. Here, the inverse quantizer and the inverse transformer 620 may perform inverse quantization and inverse transformation by using various transformations and quantization schemes, and the transformer and quantizer 130 of the image encoding apparatus 100 may perform transformation and quantization. One way can be done inversely to perform inverse magnetization and inverse transformation.

예측기(630)는 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하고 움직임 보상 프레임을 필터링한다. 즉, 예측기(630)는 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성할 수 있다.The predictor 630 compensates for the motion of the current frame using the motion vector identified by the reconstructed motion information and the reference frame index to generate a motion compensation frame and filters the motion compensation frame. That is, the predictor 630 may generate a motion compensation block using the motion vector and the reference frame index identified by the reconstructed motion information, and generate a motion compensation frame including the motion compensation block.

또한, 예측기(630)는 움직임 보상 프레임을 필터링하는 데 있어서, 기 설정된 필터 계수를 가지는 필터를 이용하여 필터링할 수도 있으며, 복호화기(610)에 의해 복원되는 필터 계수 정보가 있는 경우에는 복원되는 필터 계수 정보에 의해 식별되는 필터 계수를 가지는 필터를 이용하여 움직임 보상 프레임을 필터링할 수도 있다.In addition, the predictor 630 may filter by using a filter having a predetermined filter coefficient in filtering the motion compensation frame, and, if there is filter coefficient information restored by the decoder 610, the restored filter. The motion compensation frame may be filtered using a filter having a filter coefficient identified by the coefficient information.

또한, 예측기(630)는 움직임 보상 프레임 내의 블록의 화소의 특성에 따라 다른 필터를 이용하여 필터링할 수도 있으며, 움직임 보상 프레임을 필터링하기 위한 필터로서 위너 필터 또는 디블로킹 필터 등을 이용할 수도 있다.In addition, the predictor 630 may filter using another filter according to the characteristics of the pixels of the block in the motion compensation frame, and may use a Wiener filter or a deblocking filter as a filter for filtering the motion compensation frame.

여기서, 예측기(630)가 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하며 생성된 움직임 보상 프레임을 필터링하는 방법에 대해서는 도 1 내지 도 5를 통해 전술한 방법과 동일 또는 유사하므로 상세한 설명을 생략한다.Here, the predictor 630 generates a motion compensation block by using the motion vector and the reference frame index, generates a motion compensation frame including the motion compensation block, and filters the generated motion compensation frame with reference to FIGS. 1 to 5. Through the same or similar to the above-described method, detailed description thereof will be omitted.

가산기(640)는 복원되는 잔여 프레임과 필터링되는 움직임 보상 프레임을 가산하여 현재 프레임을 복원한다. 즉, 가산기(640)는 역 양자화기 및 역 변환기(620)에서 복원되는 잔여 프레임의 화소들의 화소값과 예측기(630)에 의해 필터링된 움직임 보상 프레임의 화소들의 화소값을 가산하여 현재 프레임의 화소들을 복원한다.The adder 640 reconstructs the current frame by adding the reconstructed residual frame and the filtered motion compensation frame. That is, the adder 640 adds the pixel values of the pixels of the residual frame reconstructed by the inverse quantizer and the inverse transformer 620 and the pixel values of the pixels of the motion compensation frame filtered by the predictor 630 to thereby add the pixels of the current frame. Restore them.

디블로킹 필터(650)는 가산기(640)에 의해 복원되는 현재 프레임을 디블로킹 필터링하여 디블로킹 필터링된 현재 프레임을 복원 영상으로서 출력하며, 메모리(660)는 디블로킹 필터링된 현재 프레임을 참조 프레임으로서 저장하며, 저장된 참조 프레임은 예측기(630)에서 다음 프레임을 예측하는 데 활용된다.The deblocking filter 650 deblocks and filters the current frame restored by the adder 640 to output the deblocking filtered current frame as a reconstructed image, and the memory 660 uses the deblocking filtered current frame as a reference frame. The stored reference frame is used by the predictor 630 to predict the next frame.

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

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

예측기(630)는 움직임 보상기(710) 및 움직임 보상 필터(720)를 포함하여 구성될 수 있다.The predictor 630 may include a motion compensator 710 and a motion compensation filter 720.

움직임 보상기(710)는 비트스트림으로부터 추출되고 복호화되어 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성한다. 즉, 움직임 보상기(710)는 복호화기(610)로부터 움직임 벡터와 참조 프레임 색인을 전달받으면, 메모리(660)에 저장된 참조 프레임 중에서 참조 프레임 색인에 의해 지시되는 참조 프레임에서 움직임 벡터에 의해 지시되는 블록을 움직임 보상 블록들로서 생성하고 움직임 보상 블록들을 포함하는 움직임 보상 프레임을 생성한다.The motion compensator 710 generates a motion compensation block by using a motion vector and a reference frame index identified by the motion information extracted from the bitstream and decoded and reconstructed, and generates a motion compensation frame including the motion compensation block. That is, when the motion compensator 710 receives the motion vector and the reference frame index from the decoder 610, the block indicated by the motion vector in the reference frame indicated by the reference frame index among the reference frames stored in the memory 660. Is generated as motion compensation blocks and a motion compensation frame including the motion compensation blocks.

움직임 보상 필터(720)는 움직임 보상 프레임을 필터링한다. 즉, 움직임 보상 필터(720)는 움직임 보상기(710)에 의해 생성되어 전달되는 움직임 보상 프레임을 위너 필터 또는 디블로킹 필터 등과 같은 다양한 필터를 이용하여 필터링한다. 이때, 움직임 보상 필터(720)는 복호화기(610)로부터 필터 계수 정보를 전달받으면, 필터 계수 정보에 의해 식별되는 필터 계수를 가지는 필터를 이용하여 움직임 보상 프레임을 생성할 수 있으며, 필터 계수 정보가 전달되지 않으면 기 설정된 필터를 이용하거나 움직임 보상 프레임 내의 블록의 화소 특성에 따라 선택되는 필터를 이용하여 움직임 보상 프레임을 필터링할 수 있다.The motion compensation filter 720 filters the motion compensation frame. That is, the motion compensation filter 720 filters the motion compensation frame generated and transmitted by the motion compensator 710 using various filters such as a winner filter or a deblocking filter. In this case, when the motion compensation filter 720 receives the filter coefficient information from the decoder 610, the motion compensation filter 720 may generate a motion compensation frame using a filter having the filter coefficient identified by the filter coefficient information. If not, the motion compensation frame may be filtered using a preset filter or a filter selected according to pixel characteristics of a block in the motion compensation frame.

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

본 발명의 일 실시예에 따른 영상 복호화 방법에 따르면, 영상 복호화 장치(600)는 비트스트림으로부터 추출되는 움직임 정보 데이터를 복호화하여 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하며(S810), 움직임 보상 프레임을 필터링하며(S820), 비트스트림으로부터 추출되고 복호화되어 복원되는 잔여 프레임과 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원한다(S830).According to an image decoding method according to an embodiment of the present invention, the image decoding apparatus 600 currently uses a motion vector and a reference frame index identified by motion information reconstructed by decoding motion information data extracted from a bitstream. Compensate for the motion of the frame to generate a motion compensation frame (S810), filter the motion compensation frame (S820), and restore the current frame by adding the residual motion and the filtered motion compensation frame extracted and decoded from the bitstream (S830).

여기서, 영상 복호화 장치(600)는 단계 S810에서, 움직임 보상 프레임을 생성하는 데 있어서, 현재 프레임 내에서 블록 모드가 인터 블록인 블록에 대해 비트스트림으로부터 움직임 정보 데이터를 추출하고 복호화하여 움직임 정보를 복원하며, 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 생성되는 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성할 수 있다.Here, in operation S810, the image decoding apparatus 600 extracts and decodes motion information data from a bitstream and decodes motion information data from a bitstream for a block having a block mode interblock in a current frame to restore motion information. The motion compensation block may be generated using the motion vector identified by the reconstructed motion information and the reference frame index, and a motion compensation frame including the generated motion compensation block may be generated.

또한, 영상 복호화 장치(600)는 비트스트림으로부터 필터 계수 데이터를 추출하고 복호화하여 필터 계수 정보를 추가로 복원할 수 있으며, 이 경우 단계 S820에서 움직임 보상 프레임을 필터링할 때, 복원되는 필터 계수 정보에 의해 식별되는 필터 계수를 가지는 필터를 이용하여 움직임 보상 프레임을 필터링할 수 있다.In addition, the image decoding apparatus 600 may further reconstruct filter coefficient information by extracting and decoding filter coefficient data from the bitstream. In this case, when the motion compensation frame is filtered in step S820, the image decoding apparatus 600 may reconstruct the filter coefficient information. The motion compensation frame may be filtered using a filter having a filter coefficient identified by.

또한, 영상 복호화 장치(600)는 단계 S820에서, 움직임 보상 프레임을 필터링하는 데 있어서, 기 설정된 필터 계수를 가지는 필터를 이용하여 움직임 보상 프레임을 필터링할 수 있으며, 움직임 보상 프레임 내의 블록의 화소의 특성에 따라 다른 필터를 이용하여 움직임 보상 프레임을 필터링할 수도 있으며, 움직임 보상 프레임을 위너 필터 또는 디블로킹 필터를 이용하여 필터링할 수도 있다.Also, in operation S820, the image decoding apparatus 600 may filter the motion compensation frame using a filter having a predetermined filter coefficient in filtering the motion compensation frame, and may include characteristics of the pixels of the block in the motion compensation frame. The motion compensation frame may be filtered using another filter, and the motion compensation frame may be filtered using a Wiener filter or a deblocking filter.

또한, 영상 복호화 장치(600)는 복원되는 현재 프레임을 디블로킹 필터링하여 출력할 수 있다. 디블로킹 필터링된 현재 프레임은 저장되어 다른 프레임을 예 측 부호하하는 데 이용될 수 있다.In addition, the image decoding apparatus 600 may deblock the filtered current frame and output the restored current frame. The deblocking filtered current frame can be stored and used to predict other frames.

이상에서 전술한 바와 같이, 본 발명의 일 실시예에 따르면, 영상을 예측 부호화하는 데 있어서, 움직임 추정 및 움직임 보상을 통해 생성되는 움직임 보상 프레임에 잔재하는 시간적 중복성을 제거하여 압축 효율을 더욱 향상시킬 수 있을 뿐만 아니라, 움직임 보상 프레임 내의 블록의 화소들의 특성에 따라 필터의 종류와 필터 계수를 적응적으로 선택하여 필터링함으로써 양자화 에러를 더욱 줄일 수 있으므로 압축 효율을 더욱 향상시킬 수 있거나 부호화된 후 복호화되어 재생되는 복원 영상의 화질의 열화를 더욱 줄일 수 있다.As described above, according to an embodiment of the present invention, in predictive encoding of an image, a compression efficiency may be further improved by removing temporal redundancy remaining in a motion compensation frame generated through motion estimation and motion compensation. In addition, it is possible to further reduce the quantization error by adaptively selecting and filtering the filter type and the filter coefficient according to the characteristics of the pixels of the block in the motion compensation frame, so that the compression efficiency can be further improved or the code is decoded after being decoded. The deterioration of the image quality of the reconstructed video to be reproduced can be further reduced.

이상에서, 본 발명의 실시예를 구성하는 모든 구성 요소들이 하나로 결합하거나 결합하여 동작하는 것으로 설명되었다고 해서, 본 발명이 반드시 이러한 실시예에 한정되는 것은 아니다. 즉, 본 발명의 목적 범위 안에서라면, 그 모든 구성 요소들이 하나 이상으로 선택적으로 결합하여 동작할 수도 있다. 또한, 그 모든 구성 요소들이 각각 하나의 독립적인 하드웨어로 구현될 수 있지만, 각 구성 요소들의 그 일부 또는 전부가 선택적으로 조합되어 하나 또는 복수 개의 하드웨어에서 조합된 일부 또는 전부의 기능을 수행하는 프로그램 모듈을 갖는 컴퓨터 프로그램으로서 구현될 수도 있다. 그 컴퓨터 프로그램을 구성하는 코드들 및 코드 세그먼트들은 본 발명의 기술 분야의 당업자에 의해 용이하게 추론될 수 있을 것이다. 이러한 컴퓨터 프로그램은 컴퓨터가 읽을 수 있는 저장매체(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. In other words, within the scope of the present invention, all of the components may be selectively operated in combination with one or more. In addition, although all of the components may be implemented in one independent hardware, each or all of the components may be selectively combined to perform some or all functions combined in one or a plurality of hardware. It may be implemented as a computer program having a. Codes and code segments constituting the computer program may be easily inferred by those skilled in the art. Such a computer program may be stored in a computer readable storage medium and read and executed by a computer, thereby implementing embodiments of the present invention. The storage medium of the computer program may include a magnetic recording medium, an optical recording medium, a carrier wave medium, and the like.

또한, 이상에서 기재된 "포함하다", "구성하다" 또는 "가지다" 등의 용어는, 특별히 반대되는 기재가 없는 한, 해당 구성 요소가 내재할 수 있음을 의미하는 것이므로, 다른 구성 요소를 제외하는 것이 아니라 다른 구성 요소를 더 포함할 수 있는 것으로 해석되어야 한다. 기술적이거나 과학적인 용어를 포함한 모든 용어들은, 다르게 정의되지 않는 한, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미가 있다. 사전에 정의된 용어와 같이 일반적으로 사용되는 용어들은 관련 기술의 문맥상의 의미와 일치하는 것으로 해석되어야 하며, 본 발명에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.In addition, the terms "comprise", "comprise" or "having" described above mean that the corresponding component may be inherent unless specifically stated otherwise, and thus excludes other components. It should be construed that it may further include other components instead. All terms, including technical and scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. Terms used generally, such as terms defined in a dictionary, should be interpreted to coincide with the contextual meaning of the related art, and shall not be interpreted in an ideal or excessively formal sense unless explicitly defined in the present invention.

이상의 설명은 본 발명의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 발명에 개시된 실시예들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 발명의 기술 사상의 범위가 한정되는 것은 아니다. 본 발명의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.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 not intended to limit the technical idea of the present invention but to describe the present invention, and the scope of the technical idea of the present invention is not limited by these embodiments. The protection scope of the present invention should be interpreted by the following claims, and all technical ideas within the equivalent scope should be interpreted as being included in the scope of the present invention.

이상에서 설명한 바와 같이 본 발명은 동영상을 부호화 복호화하는 영상 압 축 처리 분야에 적용되어, 움직임 추정 및 움직임 보상을 통해 생성되는 움직임 보상 프레임에 잔재하는 시간적 중복성을 제거하여 압축 효율을 더욱 향상시킬 수 있을 뿐만 아니라, 움직임 보상 프레임 내의 블록의 화소들의 특성에 따라 필터의 종류와 필터 계수를 적응적으로 선택하여 필터링함으로써 양자화 에러를 더욱 줄일 수 있으므로 압축 효율을 더욱 향상시킬 수 있거나 부호화된 후 복호화되어 재생되는 복원 영상의 화질의 열화를 더욱 줄일 수 있는 효과를 발생하는 매우 유용한 발명이다.As described above, the present invention can be applied to an image compression processing field for encoding and decoding a video, thereby further improving compression efficiency by removing temporal redundancy remaining in a motion compensation frame generated through motion estimation and motion compensation. In addition, since the quantization error can be further reduced by adaptively selecting and filtering the filter type and the filter coefficient according to the characteristics of the pixels of the block in the motion compensation frame, the compression efficiency can be further improved, or the code is decoded and reproduced. It is a very useful invention to produce an effect that can further reduce the deterioration of the image quality of the restored image.

도 1은 본 발명의 일 실시예에 따른 영상 부호화 장치를 간략하게 나타낸 블록 구성도,1 is a block diagram schematically illustrating 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 image encoding according to an embodiment of the present invention;

도 3은 본 발명의 일 실시예에 따라 움직임 보상 프레임을 생성하는 과정을 나타낸 예시도,3 is an exemplary view illustrating a process of generating a motion compensation frame according to an embodiment of the present invention;

도 4는 본 발명의 일 실시예에 따라 움직임 보상 프레임을 필터링하는 과정을 나타낸 예시도,4 is an exemplary view illustrating a process of filtering a motion compensation frame according to an embodiment of the present invention;

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

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

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

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

Claims (21)

영상을 부호화하는 방법에 있어서,In the method of encoding an image, 상기 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하는 단계; 및Filtering a motion compensation frame generated by estimating and compensating for a motion of a current frame of the image; And 상기 현재 프레임과 상기 필터링된 움직임 보상 프레임의 차인 잔여 프레임을 변환 및 양자화하고 부호화하는 단계Transforming, quantizing, and encoding a residual frame that is a difference between the current frame and the filtered motion compensation frame 를 포함하는 것을 특징으로 하는 영상 부호화 방법.Image encoding method comprising a. 제 1 항에 있어서, 상기 움직임 보상 프레임을 필터링하는 단계는,The method of claim 1, wherein the filtering of the motion compensation frame comprises: 상기 움직임 보상 프레임 내의 블록의 화소의 특성에 따라 다른 필터를 이용하여 상기 움직임 보상 프레임을 필터링하는 것을 특징으로 하는 영상 부호화 방법.And the motion compensation frame is filtered using a different filter according to a characteristic of a pixel of a block in the motion compensation frame. 제 1 항에 있어서, 상기 움직임 보상 프레임을 필터링하는 단계는,The method of claim 1, wherein the filtering of the motion compensation frame comprises: 상기 움직임 보상 프레임을 위너 필터 또는 디블로킹 필터를 이용하여 필터링하는 것을 특징으로 하는 영상 부호화 방법.And the motion compensation frame is filtered using a Wiener filter or a deblocking filter. 제 1 항에 있어서, 상기 움직임 보상 프레임을 필터링하는 단계는,The method of claim 1, wherein the filtering of the motion compensation frame comprises: 상기 현재 프레임과 상기 필터링된 움직임 보상 프레임 간의 제곱 에러를 최 소화하는 필터 계수를 가지는 필터를 이용하여 상기 움직임 보상 프레임을 필터링하는 것을 특징으로 하는 영상 부호화 방법.And the motion compensation frame is filtered using a filter having a filter coefficient that minimizes a square error between the current frame and the filtered motion compensation frame. 제 1 항에 있어서, 상기 영상 부호화 방법은,The method of claim 1, wherein the video encoding method comprises: 상기 움직임 보상 프레임을 필터링하는 데 이용한 필터의 필터 계수를 나타내는 필터 계수 정보를 부호화하는 단계를 추가로 포함하는 것을 특징으로 하는 영상 부호화 방법.And encoding filter coefficient information indicating filter coefficients of a filter used to filter the motion compensation frame. 제 1 항에 있어서, 상기 움직임 보상 프레임을 필터링하는 단계는,The method of claim 1, wherein the filtering of the motion compensation frame comprises: 상기 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터와 참조 프레임 색인을 결정하는 단계;Determining a motion vector and a reference frame index for a block in which the block mode is inter mode within the current frame; 상기 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 상기 생성되는 움직임 보상 블록을 포함하는 상기 움직임 보상 프레임을 생성하는 단계; 및Generating a motion compensation block by using the determined motion vector and a reference frame index and generating the motion compensation frame including the generated motion compensation block; And 상기 움직임 보상 프레임을 필터링하는 단계Filtering the motion compensation frame 를 포함하는 것을 특징으로 하는 영상 부호화 방법.Image encoding method comprising a. 제 6 항에 있어서, 상기 영상 부호화 방법은,The method of claim 6, wherein the video encoding method comprises: 상기 블록 모드를 나타내는 블록 모드 정보를 부호화하는 단계; 및Encoding block mode information indicating the block mode; And 상기 결정되는 움직임 벡터와 참조 프레임 색인을 식별하는 움직임 정보를 부호화하는 단계Encoding motion information identifying the determined motion vector and a reference frame index. 를 추가로 포함하는 것을 특징으로 하는 영상 부호화 방법.The video encoding method further comprises. 제 1 항에 있어서, 상기 영상 부호화 방법은,The method of claim 1, wherein the video encoding method comprises: 상기 변환 및 양자화된 잔여 프레임을 역 양자화 및 역 변환하여 잔여 프레임을 복원하는 단계;Inverse quantization and inverse transformation of the transformed and quantized residual frame to restore the residual frame; 상기 복원되는 잔여 프레임과 상기 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원하는 단계; 및Reconstructing the current frame by adding the reconstructed residual frame and the filtered motion compensation frame; And 상기 복원되는 현재 프레임을 디블로킹 필터링하여 저장하는 단계Deblocking filtering and storing the restored current frame 를 추가로 포함하는 것을 특징으로 하는 영상 부호화 방법.The video encoding method further comprises. 영상을 부호화하는 장치에 있어서,In the apparatus for encoding a video, 상기 영상의 현재 프레임의 움직임을 추정하고 보상하여 생성되는 움직임 보상 프레임을 필터링하는 예측기;A predictor for filtering a motion compensation frame generated by estimating and compensating for a motion of a current frame of the image; 상기 현재 프레임과 상기 필터링된 움직임 보상 프레임을 감산하여 잔여 프레임을 생성하는 감산기;A subtractor for generating a residual frame by subtracting the current frame and the filtered motion compensation frame; 상기 잔여 프레임을 변환 및 양자화하는 변환기 및 양자화기; 및A converter and quantizer for transforming and quantizing the residual frame; And 상기 변환 및 양자화된 잔여 프레임을 부호화하는 부호화기An encoder for encoding the transformed and quantized residual frames 를 포함하는 것을 특징으로 하는 영상 부호화 장치.An image encoding apparatus comprising a. 제 9 항에 있어서, 상기 예측기는,The method of claim 9, wherein the predictor, 상기 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터와 참조 프레임 색인을 결정하는 움직임 추정기;A motion estimator for determining a motion vector and a reference frame index for a block in which the block mode is inter mode within the current frame; 상기 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 상기 움직임 보상 블록을 포함하는 상기 움직임 보상 프레임을 생성하는 움직임 보상기; 및A motion compensator for generating a motion compensation block by using the determined motion vector and the reference frame index and generating the motion compensation frame including the motion compensation block; And 상기 움직임 보상 프레임을 필터링하는 움직임 보상 필터A motion compensation filter for filtering the motion compensation frame 를 포함하는 것을 특징으로 하는 영상 부호화 장치.An image encoding apparatus comprising a. 영상을 복호화하는 방법에 있어서,In the method of decoding an image, 비트스트림으로부터 추출되는 움직임 정보 데이터를 복호화하여 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하고 상기 움직임 보상 프레임을 필터링하는 단계; 및Generating a motion compensation frame by compensating for the motion of the current frame by using a motion vector identified by the motion information reconstructed by decoding the motion information data extracted from the bitstream and a reference frame index, and filtering the motion compensation frame; And 상기 비트스트림으로부터 추출되고 복호화되어 복원되는 잔여 프레임과 상기 필터링된 움직임 보상 프레임을 가산하여 현재 프레임을 복원하는 단계Reconstructing the current frame by adding the filtered motion compensation frame and the residual frame extracted from the bitstream and decoded and reconstructed 를 포함하는 것을 특징으로 하는 영상 복호화 방법.Image decoding method comprising a. 제 11 항에 있어서, 상기 움직임 보상 프레임을 필터링하는 단계는,The method of claim 11, wherein the filtering of the motion compensation frame comprises: 상기 현재 프레임 내에서 블록 모드가 인터 블록인 블록에 대해 상기 비트스 트림으로부터 상기 움직임 정보 데이터를 추출하고 복호화하여 움직임 정보를 복원하는 단계;Restoring motion information by extracting and decoding the motion information data from the bitstream with respect to a block in which the block mode is interblock in the current frame; 상기 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 상기 생성되는 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 단계; 및Generating a motion compensation block using a motion vector identified by the reconstructed motion information and a reference frame index, and generating a motion compensation frame including the generated motion compensation block; And 상기 움직임 보상 프레임을 필터링하는 단계Filtering the motion compensation frame 를 포함하는 것을 특징으로 하는 영상 복호화 방법.Image decoding method comprising a. 제 11 항에 있어서, 상기 영상 복호화 방법은,The method of claim 11, wherein the image decoding method comprises: 상기 비트스트림으로부터 필터 계수 데이터를 추출하고 복호화하여 필터 계수 정보를 복원하는 단계를 추가로 포함하되, 상기 움직임 보상 프레임을 필터링하는 단계는 상기 복원되는 필터 계수 정보에 의해 식별되는 필터 계수를 가지는 필터를 이용하여 상기 움직임 보상 프레임을 필터링하는 것을 특징으로 하는 영상 복호화 방법.Extracting and decoding filter coefficient data from the bitstream to restore filter coefficient information, wherein filtering the motion compensation frame comprises filtering a filter having a filter coefficient identified by the reconstructed filter coefficient information. And the motion compensation frame is filtered using the image decoding method. 제 11 항에 있어서, 상기 움직임 보상 프레임을 필터링하는 단계는,The method of claim 11, wherein the filtering of the motion compensation frame comprises: 기 설정된 필터 계수를 가지는 필터를 이용하여 상기 움직임 보상 프레임을 필터링하는 것을 특징으로 하는 영상 복호화 방법.And the motion compensation frame is filtered using a filter having a predetermined filter coefficient. 제 11 항에 있어서, 상기 움직임 보상 프레임을 필터링하는 단계는,The method of claim 11, wherein the filtering of the motion compensation frame comprises: 상기 움직임 보상 프레임 내의 블록의 화소의 특성에 따라 다른 필터를 이용하여 상기 움직임 보상 프레임을 필터링하는 것을 특징으로 하는 영상 복호화 방법.And the motion compensation frame is filtered using a different filter according to the characteristics of the pixels of the block in the motion compensation frame. 제 11 항에 있어서, 상기 움직임 보상 프레임을 필터링하는 단계는,The method of claim 11, wherein the filtering of the motion compensation frame comprises: 상기 움직임 보상 프레임을 위너 필터 또는 디블로킹 필터를 이용하여 필터링하는 것을 특징으로 하는 영상 복호화 방법.And the motion compensation frame is filtered using a Wiener filter or a deblocking filter. 영상을 복호화하는 장치에 있어서,In the apparatus for decoding an image, 비트스트림으로부터 추출되는 움직임 정보 데이터와 영상 부호화 데이터를 복호화하여 움직임 정보와 변환 및 양자화된 잔여 프레임을 복원하는 복호화기;A decoder configured to decode the motion information data and the image encoded data extracted from the bitstream and to restore the motion information and the residual and quantized frames; 상기 복원되는 변환 및 양자화된 잔여 프레임을 역 양자화 및 역 변환하여 잔여 프레임을 복원하는 역 양자화기 및 역 변환기;An inverse quantizer and an inverse converter that inverse quantizes and inverse transforms the reconstructed transformed and quantized residual frame to reconstruct the residual frame; 상기 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 현재 프레임의 움직임을 보상하여 움직임 보상 프레임을 생성하고 상기 움직임 보상 프레임을 필터링하는 예측기; 및 A predictor for generating a motion compensation frame by compensating for the motion of the current frame by using the motion vector identified by the reconstructed motion information and a reference frame index, and filtering the motion compensation frame; And 상기 복원되는 잔여 프레임과 상기 필터링되는 움직임 보상 프레임을 가산하여 현재 프레임을 복원하는 가산기An adder for reconstructing the current frame by adding the reconstructed residual frame and the filtered motion compensation frame; 를 포함하는 것을 특징으로 하는 영상 복호화 장치.Video decoding apparatus comprising a. 인터 예측 방법에 있어서,In the inter prediction method, 영상의 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터와 참조 프레임 색인을 결정하는 단계;Determining a motion vector and a reference frame index for a block in which a block mode is inter mode within a current frame of an image; 상기 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 상기 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 단계; 및Generating a motion compensation block using the determined motion vector and the reference frame index and generating a motion compensation frame including the motion compensation block; And 상기 움직임 보상 프레임을 필터링하는 단계Filtering the motion compensation frame 를 포함하는 것을 특징으로 하는 인터 예측 방법.Inter prediction method comprising a. 인터 예측 장치에 있어서,In the inter prediction apparatus, 영상의 현재 프레임 내에서 블록 모드가 인터 모드인 블록에 대해 움직임 벡터와 참조 프레임 색인을 결정하는 움직임 추정기;A motion estimator for determining a motion vector and a reference frame index for a block in which a block mode is inter mode within a current frame of an image; 상기 결정되는 움직임 벡터와 참조 프레임 색인을 이용하여 움직임 보상 블록을 생성하고 상기 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 움직임 보상기; 및A motion compensator for generating a motion compensation block using the determined motion vector and the reference frame index and generating a motion compensation frame including the motion compensation block; And 상기 움직임 보상 프레임을 필터링하는 움직임 보상 필터A motion compensation filter for filtering the motion compensation frame 를 포함하는 것을 특징으로 하는 인터 예측 장치.Inter prediction apparatus comprising a. 인터 예측 방법에 있어서,In the inter prediction method, 비트스트림으로부터 추출되고 복호화되어 복원되는 움직임 정보에 의해 식별 되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 상기 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 단계; 및Generating a motion compensation block using a motion vector and a reference frame index identified by the motion information extracted from the bitstream and decoded and reconstructed, and generating a motion compensation frame including the motion compensation block; And 상기 움직임 보상 프레임을 필터링하는 단계Filtering the motion compensation frame 를 포함하는 것을 특징으로 하는 인터 예측 방법.Inter prediction method comprising a. 인터 예측 장치에 있어서,In the inter prediction apparatus, 비트스트림으로부터 추출되고 복호화되어 복원되는 움직임 정보에 의해 식별되는 움직임 벡터 및 참조 프레임 인덱스를 이용하여 움직임 보상 블록을 생성하고 상기 움직임 보상 블록을 포함하는 움직임 보상 프레임을 생성하는 움직임 보상기; 및A motion compensator for generating a motion compensation block using a motion vector and a reference frame index identified by the motion information extracted from the bitstream and reconstructed from the bitstream, and generating a motion compensation frame including the motion compensation block; And 상기 움직임 보상 프레임을 필터링하는 움직임 보상 필터A motion compensation filter for filtering the motion compensation frame 를 포함하는 것을 특징으로 하는 인터 예측 장치.Inter prediction apparatus comprising a.
KR1020090099339A 2009-10-19 2009-10-19 Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame KR101379189B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020090099339A KR101379189B1 (en) 2009-10-19 2009-10-19 Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame
PCT/KR2010/007027 WO2011049321A2 (en) 2009-10-19 2010-10-14 Method and apparatus for encoding/decoding images using the filtering of a motion-compensated frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020090099339A KR101379189B1 (en) 2009-10-19 2009-10-19 Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame

Publications (2)

Publication Number Publication Date
KR20110042602A true KR20110042602A (en) 2011-04-27
KR101379189B1 KR101379189B1 (en) 2014-04-10

Family

ID=43900787

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020090099339A KR101379189B1 (en) 2009-10-19 2009-10-19 Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame

Country Status (2)

Country Link
KR (1) KR101379189B1 (en)
WO (1) WO2011049321A2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10924730B2 (en) 2016-11-07 2021-02-16 Lg Electronics Inc. Image decoding method and device in image coding system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100203294B1 (en) * 1997-02-06 1999-06-15 윤종용 Filtering method and apparatus for noise decressing in image coding sys.
US7110455B2 (en) * 2001-08-14 2006-09-19 General Instrument Corporation Noise reduction pre-processor for digital video using previously generated motion vectors and adaptive spatial filtering
CN1823530A (en) * 2003-07-16 2006-08-23 皇家飞利浦电子股份有限公司 Encoding method and device

Also Published As

Publication number Publication date
WO2011049321A2 (en) 2011-04-28
WO2011049321A3 (en) 2011-08-18
KR101379189B1 (en) 2014-04-10

Similar Documents

Publication Publication Date Title
KR101997604B1 (en) Method and Apparatus for Video Encoding/Decoding
KR101830352B1 (en) Method and Apparatus Video Encoding and Decoding using Skip Mode
KR101365575B1 (en) Method and apparatus for encoding and decoding based on inter prediction
KR101377660B1 (en) Motion Vector Encoding/Decoding Method and Apparatus Using Multiple Motion Vector Estimation and Video Encoding/Decoding Method and Apparatus Using Same
KR101955374B1 (en) Method and Apparatus for Image Encoding/Decoding By Fast Coding Unit Mode Decision
KR20090099234A (en) Method and apparatus for video encoding and decoding
US9571851B2 (en) Inter prediction method and apparatus using adjacent pixels, and image encoding/decoding method and apparatus using same
KR101341993B1 (en) Method and Apparatus for Image Encoding/Decoding Using High Resolution Filter
KR20130085838A (en) Video coding method and apparatus using weighted prediction
KR20130011878A (en) Image encoding/decoding method and apparatus using deblocking filtering
KR20100042542A (en) Reference frame creating method and apparatus and video encoding/decoding method and apparatus using same
KR101681301B1 (en) Method and Apparatus for Encoding/Decoding of Video Data Capable of Skipping Filtering Mode
KR101432767B1 (en) Inter Prediction Method and Apparatus Using Motion Information Based Adjacent Pixels and Video Coding Method and Apparatus Using Same
KR101379190B1 (en) Adaptive Resolution Based Video Encoding/Decoding Method and Apparatus
KR101943058B1 (en) Method and Apparatus for Video Encoding/Decoding
KR101449683B1 (en) Motion Vector Coding Method and Apparatus by Using Motion Vector Resolution Restriction and Video Coding Method and Apparatus Using Same
KR20110033511A (en) Inter prediction method and apparatus using adjacent pixels and video coding method and apparatus using same
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
KR101341998B1 (en) Inter Prediction Apparatus of Considering Rotational Motion and Video Encoding/Decoding Method and Apparatus Using Same
KR101997599B1 (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
KR101943425B1 (en) Method and Apparatus for Image Encoding/Decoding using Efficient Non-fixed Quantization
KR101524664B1 (en) Reference Frame Creating Method and Apparatus and Video Encoding/Decoding Method and Apparatus Using Same
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
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20170306

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20180307

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20190304

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20191216

Year of fee payment: 7