KR20060064509A - Apparatus for motion estimation of image data - Google Patents

Apparatus for motion estimation of image data Download PDF

Info

Publication number
KR20060064509A
KR20060064509A KR1020050087023A KR20050087023A KR20060064509A KR 20060064509 A KR20060064509 A KR 20060064509A KR 1020050087023 A KR1020050087023 A KR 1020050087023A KR 20050087023 A KR20050087023 A KR 20050087023A KR 20060064509 A KR20060064509 A KR 20060064509A
Authority
KR
South Korea
Prior art keywords
motion
macroblock
macroblocks
submacroblock
submacroblocks
Prior art date
Application number
KR1020050087023A
Other languages
Korean (ko)
Other versions
KR100723840B1 (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 US11/290,651 priority Critical patent/US20060120455A1/en
Publication of KR20060064509A publication Critical patent/KR20060064509A/en
Application granted granted Critical
Publication of KR100723840B1 publication Critical patent/KR100723840B1/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/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/43Hardware specially adapted for motion estimation or compensation
    • 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
    • H04N19/139Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation

Abstract

본 발명은 영상 움직임 추정 장치를 개시한다.The present invention discloses an image motion estimation apparatus.

본 발명에 의하면, 영상 데이터를 입력받아 영상의 각 프레임의 SAD 값을 계산하는 SAD계산부, 영상 데이터의 각 프레임을 소정 크기의 매크로블록 및 부매크로블록들로 분할하여 각 매크로블록 및 부매크로블록 주변의 매크로블록이나 부매크로블록의 움직임 벡터 및 예측 벡터를 이용하여 움직임 벡터 추정값을 계산하는 움직임벡터계산부 및 소정 크기의 매크로블록 및 부매크로블록별로 이웃한 매크로블록이나 부매크로블록에 SAD계산부에서 계산된 SAD값과 상기 움직임벡터계산부의 움직임 벡터 추정값을 이용하여 상기 영상 데이터의 움직임을 추정하는 움직임갱신부를 포함하여, 이웃 블럭을 참조하여 움직임 추정을 할 수 있으므로 종래의 움직임 추정 장치에 비해 장치를 구현하기 위해 필요한 장치의 크기나 경제적인 비용이 크게 줄어들며, 움직임 추정을 위해 저전력으로 동작할 수 있는 효과가 있다. According to the present invention, a SAD calculator which receives image data and calculates a SAD value of each frame of an image, divides each frame of the image data into macroblocks and submacroblocks of a predetermined size, and then macroblocks and submacroblocks. A motion vector calculator that calculates a motion vector estimate using motion vectors and prediction vectors of neighboring macroblocks or submacroblocks, and a SAD calculator for neighboring macroblocks or submacroblocks of predetermined size macroblocks and submacroblocks. A motion estimator for estimating the motion of the image data using the SAD value and the motion vector estimator of the motion vector calculator, which can estimate motion with reference to a neighboring block, can be compared to a conventional motion estimation device. The size and economic cost of the device required to implement the Im has an effect capable of operating with low power consumption for the estimation.

Description

영상 움직임 추정 장치 {Apparatus for motion estimation of image data}Apparatus for motion estimation of image data}

도 1은 종래의 움직임 추정 장치의 일 예를 도시한 것이다.1 illustrates an example of a conventional motion estimation apparatus.

도 2는 본 발명에 따른 영상 움직임 추정 장치의 구성을 블록으로 도시한 것이다.2 is a block diagram illustrating a configuration of an apparatus for estimating video motion according to the present invention.

도 3은 본 발명에 따른 영상 움직임 추정 장치의 구성의 예를 그 주변 구성까지 포함하여 블록으로 도시한 것이다.3 is a block diagram illustrating an example of a configuration of an image motion estimation apparatus according to the present invention, including a peripheral configuration thereof.

도 4a 내지 도 4i는 본 발명에 따라 모드별 계산을 하는 과정을 설명하기 위한 도면이다.4A to 4I are diagrams for describing a process of performing calculation for each mode according to the present invention.

본 발명은 영상 데이터 압축에 관한 것으로서, 영상의 움직임을 추정하는 장치에 관한 것이다.The present invention relates to image data compression, and more particularly, to an apparatus for estimating motion of an image.

도 1은 종래의 움직임 추정 장치의 일 예로서, 특히 OPGS(One-Pixel Greedy Search) 알고리즘과 HSBM(Hierarchical Search Block Matching) 알고리즘을 결합한 움직임 추정 장치를 나타내 보인 블록도이다.FIG. 1 is a block diagram illustrating an example of a conventional motion estimation device, in particular, a motion estimation device combining an OPGS (One-Pixel Greedy Search) algorithm and a HSBM (Hierarchical Search Block Matching) algorithm.

도 1을 참조하면, 종래의 움직임 추정 장치는 후보 벡터 예측부(100), 알고 리즘 선택부(110), 움직임 추정부(120), 메모리(130) 및 반화소 움직임 추정부(140)를 포함하여 구성된다.Referring to FIG. 1, a conventional motion estimation apparatus includes a candidate vector predictor 100, an algorithm selector 110, a motion estimator 120, a memory 130, and a half-pixel motion estimator 140. It is configured by.

후보 벡터 예측부(100)는, 영상 데이터를 입력받아서, 현재 추정하고자 하는 매크로 블록(macro block)을 위한 후보 벡터를 예측한다. 이때 후보 벡터 예측부(100)는 제로 움직임 벡터, 이전 움직임 벡터, 이웃한 블록들의 움직임 벡터들 중에서 가장 최적으로 정합되는 움직임 벡터를 후보 움직임 벡터로 최종 선택한다.The candidate vector predictor 100 receives image data and predicts a candidate vector for a macro block to be estimated currently. In this case, the candidate vector predictor 100 finally selects a motion vector that is most optimally matched among the zero motion vector, the previous motion vector, and the motion vectors of neighboring blocks as the candidate motion vector.

알고리즘 선택부(110)는 후보 벡터 예측부(100)에서 예측된 후보 벡터의 SAD(Sum of Absolute Difference)와 미리 설정된 임계치를 비교하여 움직임 추정 알고리즘을 선택한다. 즉 알고리즘 선택부(110)에 의해 OPGS 알고리즘과 HSBM 알고리즘 중에서 하나가 선택된다.The algorithm selector 110 selects a motion estimation algorithm by comparing a sum of absolute difference (SAD) of the candidate vector predicted by the candidate vector predictor 100 with a preset threshold. That is, one of the OPGS algorithm and the HSBM algorithm is selected by the algorithm selecting unit 110.

움직임 추정부(120)는, 입력되는 영상 데이터의 정 화소 움직임 추정을 수행하고 그에 따른 움직임 벡터를 출력하는데, 이때 사용되는 알고리즘은 알고리즘 선택부(110)에 의해 선택된 OPGS 알고리즘 또는 HSBM 알고리즘이다.The motion estimation unit 120 performs forward pixel motion estimation of the input image data and outputs a motion vector according to the motion estimation unit 120. The algorithm used is an OPGS algorithm or an HSBM algorithm selected by the algorithm selection unit 110.

메모리(130)는 움직임 추정부(120)에 의해 출력되는 움직임 벡터를 저장하여 후보 벡터 예측부(100)에 인가한다. 그리고 상기 반화소 움직임 추정부(140)는 움직임 추정부(17)에 의해 추정된 정 화소 움직임 추정치의 위치를 참조하여 입력되는 영상 데이터로부터 매크로 블록, 서브 블록의 반 화소 움직임을 추정한다.The memory 130 stores the motion vector output by the motion estimator 120 and applies the motion vector to the candidate vector predictor 100. The half-pixel motion estimation unit 140 estimates the half-pixel motion of the macro block and the sub block from the image data input by referring to the position of the positive pixel motion estimation value estimated by the motion estimation unit 17.

이와 같은 도 1의 종래의 움직임 추정 장치는, 움직임 벡터를 예측하고 그 예측치가 임계치 범위 내에 포함될 경우 OPGS 알고리즘에 따라 탐색 영역보다 정수만큼 적은 탐색 영역에 대해서만 움직임 추정 동작을 수행하고, 상기 예측치가 임 계치 범위 내에 포함되지 않을 경우 HSNM 알고리즘에 따라 전체 탐색 영역에 대해서 움직임 추정 동작을 수행하도록 함으로써, 움직임 추정에 대한 효율성을 증대시킬 수 있다는 장점을 제공한다.In the conventional motion estimation apparatus of FIG. 1, when the motion vector is predicted and the prediction value is included in the threshold range, the motion estimation operation is performed only on a search area smaller than the search area according to the OPGS algorithm, and the prediction value is When not included in the threshold range, the motion estimation operation is performed on the entire search area according to the HSNM algorithm, thereby increasing the efficiency of motion estimation.

그러나 상기 종래의 움직임 추정 장치는, 각각의 알고리즘에 대응하는 별도의 독립적인 메모리를 갖는 구조이므로 움직임 추정 시 연산량이 많게 되며, 이에 따라 실시간 동영상 부호화기 내에 적용하기가 용이하지 않다는 문제가 있다. 또한 상기 종래의 움직임 추정 장치는 그 내부에 움직임 벡터를 저장하기 위한 부가 메모리를 포함하여야 하므로 장치가 차지하는 면적 및 소모 전력 감소에 한계를 나타낸다. 또한 고정된 알고리즘을 사용하므로, 영상의 종류 및 응용 분야에 따라 불필요한 연산을 수행하여 효율적인 결과를 제공하기 어렵다는 문제가 있다.However, since the conventional motion estimation apparatus has a separate independent memory corresponding to each algorithm, a large amount of computation is required during motion estimation, and thus there is a problem that it is not easy to apply the motion estimation apparatus to the real-time video encoder. In addition, since the conventional motion estimation apparatus must include an additional memory for storing a motion vector therein, there is a limit to the area occupied by the device and reduction of power consumption. In addition, since a fixed algorithm is used, it is difficult to provide an efficient result by performing unnecessary operations according to the type and application of the image.

본 발명이 이루고자 하는 기술적인 과제는, 효율적으로 움직임 추정을 할 수 있는 장치를 제공하는데 있다.The technical problem to be solved by the present invention is to provide an apparatus capable of efficient motion estimation.

상기 기술적 과제를 해결하기 위한 본 발명에 의한, 영상 움직임 추정 장치는, 영상 데이터를 입력받아 영상의 각 프레임의 SAD 값을 계산하는 SAD계산부; 상기 영상 데이터의 각 프레임을 소정 크기의 매크로블록 및 부매크로블록들로 분할하여 각 매크로블록 및 부매크로블록 주변의 매크로블록이나 부매크로블록의 움직임 벡터 및 예측 벡터를 이용하여 움직임 벡터 추정값을 계산하는 움직임벡터계산부; 및 상기 소정 크기의 매크로블록 및 부매크로블록별로 이웃한 매크로블록이나 부매크로블록의 상기 SAD계산부에서 계산된 SAD값과 상기 움직임벡터계산부의 움직임 벡터 추정값을 이용하여 상기 영상 데이터의 움직임을 추정하는 움직임갱신부;를 포함하는 것을 특징으로 한다.According to an aspect of the present invention, there is provided an apparatus for estimating motion, comprising: a SAD calculator configured to receive image data and calculate SAD values of respective frames of an image; Each frame of the image data is divided into macroblocks and submacroblocks of a predetermined size, and motion vector estimates are calculated by using motion vectors and prediction vectors of macroblocks or submacroblocks around the macroblocks and submacroblocks. A motion vector calculator; And estimating the motion of the image data by using the SAD value calculated by the SAD calculator of the neighboring macroblock or submacroblock of each predetermined size and the submacroblock and the motion vector estimation value of the motion vector calculator. Motion update unit; characterized in that it comprises a.

H.264는 국제적인 동영상 표준 제정 그룹인 ITU의 VCEG과 ISO의 MPEG이 공동으로 개발하고 있는 표준이다. 이 표준은 매우 높은 압축율을 주요 기술적 목표로 하고 있으며, 저장매체, 인터넷, 위성방송 등의 거의 모든 전송미디어 및 다양한 동영상 해상도의 환경에서 사용될 수 있는 범용 동영상 부호화 기술이다. H.264 is a standard that is jointly developed by VCEG of ITU and MPEG of ISO, a group of international video standards. The standard has a very high compression ratio as the main technical goal. It is a general purpose video encoding technology that can be used in almost all transmission media such as storage media, Internet, satellite broadcasting, and various video resolutions.

전통적으로 ITU의 국제 표준은 유선 통신 매체를 기반으로 한 H.261, H.263 등의 동영상 부호화 표준을 제정하여 왔으며, MPEG은 저장매체나 방송매체에서의 동영상 처리를 위한 MPEG-1, MPEG-2 등을 표준으로 제정하였다. MPEG은 또한 멀티미디어 전반에 걸친 부호 표준인 MPEG-4에서 객체 기반 동영상 부호를 중요한 특징으로 하는 다양한 기능과 고압축율을 실현한 MPEG-4 동영상 표준 제정을 완료하였다. Traditionally, ITU's international standards have established video coding standards such as H.261 and H.263, which are based on wired communication media. MPEG is MPEG-1 and MPEG- for video processing in storage media and broadcasting media. 2 etc. were established as a standard. MPEG also completed the development of the MPEG-4 video standard, which realizes various functions and high compression ratios, which are important features of object-based video coding in MPEG-4, a multimedia standard coding standard.

ITU의 VCEG 그룹에서는 MPEG-4 동영상 표준 제정 이후에도 계속 H.26L이라는 이름으로 고압축율의 동영상 표준을 제정하여 왔는데, MPEG에서의 공식적인 비교 실험에서, 비슷한 기능의 MPEG-4 동영상 표준(advanced simple profile)보다 압축률의 측면에서 큰 우위성을 나타내었다. 이에 따라 MPEG은 H.26L을 기반으로 ITU VCEG 그룹과 공동으로 JVT 동영상 표준인 H.264/AVC를 개발하기로 하였다. H.264/AVC은 다양한 우수한 특성들을 가지고 있지만, 그 중 최적 부호화 모드의 결정 방법이 성능 개선에 크게 기여한다. ITU's VCEG group has been developing a high compression video standard under the name H.26L since the MPEG-4 video standard was established. In an official comparison experiment in MPEG, the MPEG-4 video standard (advanced simple profile) It showed a greater advantage in terms of compression ratio. Accordingly, MPEG decided to develop H.264 / AVC, a JVT video standard, in collaboration with ITU VCEG Group based on H.26L. H.264 / AVC has various excellent characteristics, but the method of determining the optimal coding mode among them contributes greatly to the performance improvement.

최적 부호화 모드 결정 모듈은 부호화의 기본 단위인 매크로블록의 부호화 모드를 결정하는 부분으로서, 움직임 추정이 그 핵심에 위치하고 있다. 그 특징으로는, 매크로블록을 다양한 모양의 부매크로블록 혹은 부블록들로 나누어질 수 있으며, 각 부블록이 별도의 움직임 벡터를 가질 수 있다. 또한 한장의 참조영상만을 사용하는 기존의 움직임 추정 방법과는 달리 다수의 참조영상을 사용할 수 있도록 허용함으로써 상당한 압축 효율을 얻을 수 있도록 하였다. 그러나 이러한 특징들은 계산량의 증가를 가져온다. 따라서, H.264/AVC에서의 움직임 추정 알고리즘은 예측 오차의 측면과 계산량의 측면을 잘 고려하여 설계되어야 한다. The optimal coding mode determination module is a part for determining an encoding mode of a macroblock which is a basic unit of encoding, and motion estimation is located at the core thereof. As a feature, a macroblock may be divided into submacroblocks or subblocks of various shapes, and each subblock may have a separate motion vector. In addition, unlike conventional motion estimation method using only one reference image, a large number of reference images can be used to obtain a significant compression efficiency. However, these features lead to an increase in computation. Therefore, the motion estimation algorithm in H.264 / AVC should be designed in consideration of the side of prediction error and the side of calculation.

본 발명은 H.264 규격에서 동작할 수 있으며, 이하의 설명에서 별도로 설명되지 않는 기술적인 부분도 H.264 규격에 따라 동작하는 것으로 보고 별도의 설명을 생략할 수도 있다.The present invention may operate in the H.264 standard, and technical parts that are not separately described in the following description may be regarded as operating according to the H.264 standard, and a separate description may be omitted.

이하에서 첨부된 도면을 참조하여 본 발명의 바람직한 일 실시예를 상세히 설명한다. Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 2는 본 발명에 따른 영상 움직임 추정 장치의 구성을 블록으로 도시한 것이다. 이 장치는 영상 데이터를 입력받아 영상의 각 프레임의 SAD 값을 계산하는 SAD계산부(200), 상기 영상 데이터의 각 프레임을 소정 크기의 매크로블록 및 부매크로블록들로 분할하여 각 매크로블록 및 부매크로블록 주변의 매크로블록이나 부매크로블록의 움직임 벡터 및 예측 벡터를 이용하여 움직임 벡터 추정값을 계산하는 움직임벡터계산부(210) 및 상기 소정 크기의 매크로블록 및 부매크로블록별로 이웃한 매크로블록이나 부매크로블록에 대해 SAD계산부(200)에서 계산된 SAD값과 움직임벡터계산부(210)의 움직임 벡터 추정값을 이용하여 상기 영상 데이터의 움직임을 추정하는 움직임갱신부(220)를 포함한다.2 is a block diagram illustrating a configuration of an apparatus for estimating video motion according to the present invention. The apparatus receives an image data and calculates the SAD value of each frame of the image SAD calculation unit 200, each frame of the image data is divided into macroblocks and sub-macroblocks of a predetermined size, each macroblock and sub A motion vector calculator 210 that calculates a motion vector estimate using a motion vector and a prediction vector of a macroblock or a submacroblock around a macroblock, and a neighboring macroblock or subblock for each macroblock and submacroblock of a predetermined size. The motion updater 220 estimates the motion of the image data by using the SAD value calculated by the SAD calculator 200 and the motion vector estimated value of the motion vector calculator 210 for the macroblock.

도 3은 본 발명에 따른 영상 움직임 추정 장치의 구성의 예를 그 주변 구성까지 포함하여 블록으로 도시한 것이다.3 is a block diagram illustrating an example of a configuration of an image motion estimation apparatus according to the present invention, including a peripheral configuration thereof.

영상 데이터인 입력 데이터는 어드레스 생성부(340)에서 생성된 어드레스 값에 따른 주소로 메모리부(330)에 저장되고, 이 저장된 영상 데이터는 SAD계산부(300)로 입력된다.The input data, which is image data, is stored in the memory unit 330 at an address corresponding to the address value generated by the address generator 340, and the stored image data is input to the SAD calculator 300.

움직임갱신부(320)는 SAD가 계산된 영상을 16x16 화소로 구성되는 매크로블록들로 나누어 움직임을 갱신하는 16x16모드 계산부(322), 16x16의 매크로블록들을 각각 16x8 화소 크기의 부매크로블록들로 나누어 움직임을 갱신하는 16x8모드 계산부(324), 16x16의 매크로블록들을 각각 8x16 화소 크기의 부매크로블록들로 나누어 움직임을 갱신하는 8x16모드 계산부(326) 및 16x16의 매크로블록들을 각각 8x8 화소 크기의 부매크로블록들로 나누어 움직임을 갱신하는 8x8모드 계산부(328)를 포함한다.The motion updater 320 divides the SAD-calculated image into macroblocks composed of 16x16 pixels and updates the motion. The 16x16 mode calculation unit 322 and the 16x16 macroblocks each have 16x8 pixel sized macroblocks. 16x8 mode calculation unit 324 for dividing and updating motion, 8x16 mode computation unit 326 for updating motion by dividing 16x16 macroblocks into 8x16 pixel subblocks, respectively, and 8x8 pixel size respectively. The 8x8 mode calculating unit 328 updates the motion by dividing into sub-macroblocks.

메모리부(330)에 영상 데이터가 저장되고, 메모리부(330)에서 SAD계산부(300)로 그리고 SAD계산부(300)와 움직임벡터계산부(310)에서 움직임갱신부(320)로 데이터가 전달되는 과정은 제어부(350)의 제어에 의해 실행된다. 제어부(350)는 본 발명에 따른 움직임 추정 장치가 시스템과 데이터를 주고 받을 수 있도록 버스와 연결되도록 한다.Image data is stored in the memory unit 330, and the data is transferred from the memory unit 330 to the SAD calculator 300 and from the SAD calculator 300 and the motion vector calculator 310 to the motion updater 320. The transfer process is executed by the control of the controller 350. The control unit 350 is connected to the bus so that the motion estimation apparatus according to the present invention can exchange data with the system.

영상 데이터는 메모리부(330)에 저장되며, 이때에 프레임 단위로 저장될 수 있다. 혹은 메모리부(330)에 저장되었던 영상 데이터는 프레임 단위로 SAD계산부(300)로 입력될 수 있다.The image data is stored in the memory unit 330, and may be stored in units of frames at this time. Alternatively, the image data stored in the memory unit 330 may be input to the SAD calculator 300 in units of frames.

SAD계산부(300)에서는 영상 데이터를 입력받아 프레임에 포함된 각 매크로블록마다 두 블록간의 화소들 차의 절대값을 모두 합한 값인 SAD를 계산한다. 이때에 움직임갱신부(220)의 모드와 맞추어 16x16 크기의 매크로블록은 물론이며, 매크로블록들 내에 포함된 16x8, 8x16 및 8x8 크기의 부매크로블록들에 대해서도 SAD를 계산한다.The SAD calculator 300 receives image data and calculates SAD, which is a sum of all absolute values of the difference between pixels between two blocks for each macroblock included in a frame. At this time, in accordance with the mode of the motion updater 220, SAD is calculated for not only 16x16 macroblocks but also 16x8, 8x16 and 8x8 submacroblocks included in the macroblocks.

상기와 같은 각 크기별 매크로블록 혹은 부매크로블록들에 대한 SAD는 움직임갱신부(320)의 각 대응하는 모드계산부(322 내지 328)로 전달된다.The SADs for the macroblocks or sub-macroblocks for each size as described above are transmitted to the corresponding mode calculators 322 to 328 of the motion updater 320.

또한 메모리부(330)에 저장된 영상 데이터는 움직임벡터계산부(310)로도 전달된다. 도 3에는 다른 구성요소들과의 연결 관계를 보이기 위해 메모리부(330)와 움직임벡터계산부(310) 간의 연결을 표시하는 것이 생략되었다.In addition, the image data stored in the memory unit 330 is also transferred to the motion vector calculator 310. In FIG. 3, the connection between the memory unit 330 and the motion vector calculator 310 is omitted to show a connection relationship with other components.

움직임벡터계산부(310)에서는 영상 데이터의 각 프레임들에 포함된 16x16 크기의 매크로블록과 매크로블록들 내에 포함된 16x8, 8x16 및 8x8 크기의 부매크로블록들에 대한 움직임 벡터를 계산한다. The motion vector calculator 310 calculates motion vectors of 16x16 macroblocks included in each frame of the image data and submacroblocks of 16x8, 8x16 and 8x8 sizes included in the macroblocks.

본 발명에 따른 움직임 추정 장치는 부호화 모드를 결정하는 기능에 종속되어 있는 관계로 볼 수 있다. 부호화 모드 결정 과정에서 움직임 추정의 결과인 SAD(Sum of Absolute Difference) 또는 SATD(Sum of Absolute Transform Difference)와 움직임 벡터를 이용하기 때문이다.The motion estimation apparatus according to the present invention can be regarded as a relationship dependent on the function of determining the encoding mode. This is because a SAD (Sum of Absolute Difference) or SATD (Sum of Absolute Transform Difference) and a motion vector are used in the encoding mode decision process.

본 발명에서도 사용되는 고복잡도 모드(high complexity mode)에서는 저복잡도 모드에서 고려하지 않았던 부호화에 필요한 비트량의 개념을 도입하여 RD(Rate-Distortion) 최적화 기법을 사용한다. 고복잡도 모드는 복잡도가 별로 문제가 되지 않는 경우, 예를 들면 연산 능력(computational power)이 충분히 주어지는 경우에 보다 나은 압축 및 오류 방지 성능을 얻어내기 위해서 사용하게 된다.In the high complexity mode used in the present invention, a rate-distortion (RD) optimization technique is used by introducing a concept of a bit amount required for encoding, which is not considered in the low complexity mode. The high complexity mode is used to obtain better compression and error prevention performance when the complexity is not a problem, for example, when sufficient computational power is given.

움직임벡터 계산부(310)에서는 다음의 수학식과 같이 RD(Rate Distortion) 최적화 기법을 사용하여 최적의 움직임 벡터를 계산한다.The motion vector calculator 310 calculates an optimal motion vector using a rate distortion (RD) optimization technique as shown in the following equation.

Figure 112005052067470-PAT00001
Figure 112005052067470-PAT00001

위의 수학식 1에서 SA(T)D 라는 표기는 SAD 혹은 SATD 를 나타낸다.In Equation 1 above, the notation SA (T) D represents SAD or SATD .

이때에

Figure 112005052067470-PAT00002
움직임 벡터이며,At this time
Figure 112005052067470-PAT00002
Is a motion vector,

Figure 112005052067470-PAT00003
예측 벡터이고,
Figure 112005052067470-PAT00003
Is a prediction vector,

Figure 112005052067470-PAT00004
는 Lagrangian 계수
Figure 112005052067470-PAT00005
이다.
Figure 112005052067470-PAT00004
Lagrangian modulus
Figure 112005052067470-PAT00005
to be.

움직임 벡터는 현재 매크로블록이나 부매크로블록에 대한 것이며, 예측 벡터는 현재의 분할 블록 이전의 블록에 대한 데이터를 참조해서 얻은 예측벡터이다. s는 참조영상이며, c는 현재영상에 대한 것을 나타낸다. 즉, c(m)은 현재 영상에 대한 움직임 벡터를 나타낸다.The motion vector is for the current macroblock or submacroblock, and the prediction vector is a prediction vector obtained by referring to data for a block before the current split block. s is a reference image and c represents a current image. That is, c (m) represents a motion vector with respect to the current image.

그리고

Figure 112005052067470-PAT00006
는 최종적으로 부호화되어야 할 움직임 정보의 비트수이다. 이때에 R이 레이트 왜곡(Rate Distortion)의 정도이다. 즉,
Figure 112005052067470-PAT00007
는 움직임 벡터에서 예측 벡터를 뺀 벡터의 레이트 왜곡의 정도가 된다.And
Figure 112005052067470-PAT00006
Is the number of bits of motion information to be finally encoded. R is the degree of rate distortion at this time. In other words,
Figure 112005052067470-PAT00007
Is the degree of rate distortion of the vector minus the prediction vector.

이때에 수학식 1에서 SAD는 다음과 같이 구해진다. 이는 SAD계산부(300)에서 실행된다.At this time, SAD in Equation 1 is obtained as follows. This is executed by the SAD calculation unit 300.

Figure 112005052067470-PAT00008
Figure 112005052067470-PAT00008

수학식 2에서 사용된 기호들의 정의는 수학식 1에서 사용된 것과 동일하다.Definitions of symbols used in Equation 2 are the same as those used in Equation 1.

이때에 m은 움직임 벡터로서 첫 번째 분할 블록일 경우, 첫 번째 분할블록인 매크로블록 혹은 부매크로블록은 움직임 예측을 위해 참고할 블록이 주변에 없기 때문에 임의의 값으로 혹은 그 이전의 프레임에 대한 값을 이용할 수도 있다. 이때의 m은 움직임벡터계산부(310)의 입장에서는 외부로부터 입력받을 수 있다.In this case, m is a motion vector and when the first partition is a block, the macroblock or submacroblock, which is the first partition, has a random value or a value for a frame before or after the block to be referred to for motion prediction. It can also be used. In this case, m may be input from the outside from the position of the motion vector calculator 310.

움직임 추정시, 정수 화소가 아닌 분수 화소(fractional pel)의 위치에서의 모드 결정에는 SAD가 아닌 SATD를 사용한다. 이것은 H.264/AVC 또한 기존의 국제 동영상 부호화 표준과 같이 잔차 신호(residual signal)를 변환한 후에, 변환 계수를 부호화하는 기법을 취하고 있기 때문이다. 즉, 상기와 같이 계산된 SAD를 모드 결정의 기준으로 삼을 경우, 변환된 계수의 특성을 완전하게 반영하지 못하여 최적의 움직임 벡터 혹은 공간 예측 모드를 얻어내는 것이 용이하지 않을 수 있다는 문제점을 해결하기 위해서이다. 따라서 변환에는 H.264/AVC에서 채택한 정수 변환(integer transform)을 채택하여 사용하는 것이 보다 최적의 모드를 결정하는데 더 효과적이겠으나, SATD를 사용할 경우에 야기될 수 있는 구현상에서의 복잡함을 제거하기 위해서 수학식 3에서 정의된 바와 같은 기저(Kernel)를 가지는 하다마드 변환(Hadamard transform)을 사용한다. 식(3-6)에서 정의된 바와 같은 기저를 가지는 하다마드 변환을 2차원으로 행하여 DiffT를 구한 후 최종적으로 SATD를 구한다.In motion estimation, SATD, not SAD, is used for mode determination at the position of fractional pixels other than integer pixels. This is because H.264 / AVC also takes a technique of encoding transform coefficients after converting a residual signal like the existing international video encoding standard. That is, when the SAD calculated as described above is used as a criterion for mode determination, it may not be easy to obtain an optimal motion vector or spatial prediction mode because it does not fully reflect the characteristics of the transformed coefficients. For that. Therefore, the use of integer transform adopted by H.264 / AVC may be more effective in determining the optimal mode.However, in order to eliminate implementation complexity that may be caused by using SATD. A Hadamard transform having a Kernel as defined in Equation 3 is used. The Hadamard transform having the basis as defined in Eq. (3-6) is performed in two dimensions to obtain DiffT, and finally the SATD.

Figure 112005052067470-PAT00009
Figure 112005052067470-PAT00009

수학식 3에서 정의된 기저를 이용하여, 다음의 수학식 4와 같이 DiffT를 구할 수 있다.Using the basis defined in Equation 3, DiffT can be obtained as shown in Equation 4 below.

Figure 112005052067470-PAT00010
Figure 112005052067470-PAT00010

여기서 H[]는 하다마드 변환 연산자(Hadamard transform operator)이다. 하다마드 변환은 수직 방향 및 수평 방향으로 수행함으로써 변환된 결과를 얻는다. 최종적으로 SATD는 다음과 같은 수학식에 의해 결정된다.Where H [] is a Hadamard transform operator. The Hadamard transform is performed by performing the transform in the vertical and horizontal directions. Finally, the SATD is determined by the following equation.

Figure 112005052067470-PAT00011
Figure 112005052067470-PAT00011

상기와 같이 구해진

Figure 112005052067470-PAT00012
을 최소화하는 움직임 벡터값을 구하여, 결과적으로 RD 최적화를 이용한 최적의 움직임 벡터를 구할 수 있다.Obtained as above
Figure 112005052067470-PAT00012
By obtaining a motion vector value that minimizes the result, an optimal motion vector using RD optimization can be obtained.

SAD계산부(300)는 한 영상의 16x16 화소 크기의 매크로블록 영역을 4개의 8x8 크기의 부매크로불록 영역으로 나누고, 각각의 8x8 크기의 부매크로 블록 영역에 대해 SAD를 계산할 수 있다. 8x8 크기의 부매크로불록 영역에 대한 SAD 계산값을 SAD8_8로 하면, 4개의 부매크로불록 영역 각각에 대한 SAD 값을 SAD8_08[0], SAD8_08[1], SAD8_08[2], SAD8_08[3]이라고 서로를 구분해서 표시할 수 있다. 이때에 이 4개의 SAD 계산값을 SAD8_8[0..3]라고 표시할 수 있다.The SAD calculator 300 may divide a macroblock region of 16x16 pixel size of an image into four 8x8 submacroblock regions, and calculate an SAD for each 8x8 submacroblock region. If the SAD calculation value for the 8x8 submacroblock area is SAD8_8, the SAD values for each of the 4 submacroblock areas are SAD8_08 [0], SAD8_08 [1], SAD8_08 [2], and SAD8_08 [3]. Can be displayed separately. At this time, these four SAD calculated values can be expressed as SAD8_8 [0..3].

SAD계산부(300)는 SAD8_8[0..3]을 계산하는 모듈(SAD calculator)과 이를 저장하기 위한 버퍼모듈(Buffer for Storing SAD8_8)을 포함하며, 각 버퍼모듈에 저장된 SAD8_8을 움직임갱신부(320)의 각 모드별 계산부(322 내지 328)로 전달한다. 이와 같은 버퍼모듈은 하나의 후보 벡터당 4개의 SAD8_8을 저장하여 이를 병렬적으로 움직임갱신부(320)에 공급하므로 그 결과 움직임갱신부(320)에 포함된 4개의 모드 계산부(322 내지 328)가 동시에 동작할 수 있도록 한다.The SAD calculator 300 includes a module for calculating SAD8_8 [0..3] and a buffer module for storing the SAD8_8 [0..3], and includes a motion updater for SAD8_8 stored in each buffer module. Transfer to the calculation unit (322 to 328) for each mode of 320. Since such a buffer module stores four SAD8_8 per one candidate vector and supplies them to the motion updater 320 in parallel, the four mode calculators 322 to 328 included in the motion updater 320 as a result. Allow simultaneous operation.

16x16 모드 계산부(322)에는 SAD8_08[0..3]의 전부를 더한 결과를 공급하고, 16x8 모드 계산부(324)에는 SAD8_08[0]과 SAD8_08[1]을 더한 결과를 공급하고, SAD8_08[2]와 SAD8_08[3]을 더한 결과를 그 다음에 공급한다. 8x16 모드 계산부(326)에는 SAD8_08[0]과 SAD8_08[2]를 더한 결과를 공급하고, SAD8_08[1]과 SAD8_08[3]을 더한 결과를 그 다음에 공급한다. 또한 8x8 모드 계산부(328)에는 SAD8_08[0], SAD8_08[1], SAD8_08[2], SAD8_08[3]의 결과를 차례로 공급한다.The 16x16 mode calculation unit 322 is supplied with the result of adding all of SAD8_08 [0..3], the 16x8 mode calculation unit 324 is supplied with the result of adding SAD8_08 [0] and SAD8_08 [1], and SAD8_08 [ 2] and SAD8_08 [3] are then supplied. The 8x16 mode calculation unit 326 supplies the result of adding SAD8_08 [0] and SAD8_08 [2], and then supplies the result of adding SAD8_08 [1] and SAD8_08 [3]. The 8x8 mode calculation unit 328 supplies the results of SAD8_08 [0], SAD8_08 [1], SAD8_08 [2], and SAD8_08 [3] in this order.

상기와 같은 블록별 동시 동작을 지원하기 위해 본 발명에서는 종래와는 다르게 부매크로블록 및 부블록에 대한 움직임 벡터를 이용해서 각 블록별로 움직임을 동시에 추정한다.In order to support the above-described block-by-block simultaneous operation, the present invention estimates the motion for each block simultaneously by using the motion vector for the submacroblock and the subblock, unlike the conventional art.

종래에는 부매크로블록 및 부블록에 대한 움직임 벡터를 순차적으로 얻어서 움직임을 추정해야 한다. 예를 들어, 16x8 분할 모드의 경우, 첫번째 16x8 부매크로블록의 움직임 벡터가 결정되어야 두번째 16x8 부매크로블록의 움직임 예측 벡터를 얻을 수 있다. 이러한 이유로 부매크로블록 및 부블록에 대한 움직임 벡터를 순차적으로 구할 수 밖에 없다. 이는 움직임 추정기의 구현에 있어서 중대한 문제를 야기시킨다. 부호기 계산량의 상당 부분을 차지하는 움직임 추정기의 속도를 개선하기 위해, 일반적으로 하드웨어로 구현하지만, 고복잡도 모드의 움직임 추정기는 병렬적으로 움직임 추정을 할 수 없기 때문에 움직임 추정기의 속도 개선에 한계를 가진다.Conventionally, the motion vectors for the submacroblock and the subblock should be obtained sequentially to estimate the motion. For example, in the 16x8 split mode, the motion vector of the first 16x8 submacroblock must be determined to obtain the motion prediction vector of the second 16x8 submacroblock. For this reason, motion vectors for submacroblocks and subblocks cannot be obtained sequentially. This causes a serious problem in the implementation of the motion estimator. In order to improve the speed of the motion estimator, which occupies a large part of the encoder calculation amount, it is generally implemented in hardware. However, the motion estimator in the high complexity mode has a limitation in improving the speed of the motion estimator because it cannot perform motion estimation in parallel.

이런 한계를 개선하기 위하여 본 발명에서는 이웃하는 블록의 위치를 이용하여 움직임갱신부(320)의 각 모드별 계산부(322 내지 328)를 동시에 동작시키면서 영상 데이터의 움직임을 추정한다.In order to solve this limitation, the present invention estimates the motion of the image data while simultaneously operating the calculation units 322 to 328 for each mode of the motion updater 320 using the positions of neighboring blocks.

도 4a 내지 도 4i는 본 발명에 따라 모드별 계산을 하는 과정을 설명하기 위한 도면이다. 도면에서 굵게 표시된 부분은 매크로블록의 경계를 표시한 것이며, 가늘게 표시된 부분은 블록의 경계를 표시한다.4A to 4I are diagrams for describing a process of performing calculation for each mode according to the present invention. In the drawing, the bold parts indicate the boundaries of the macroblocks, and the thin parts indicate the boundaries of the blocks.

도 4a는 16x16 화소 크기의 매크로블록 단위로 화면이 구분된 것을 도시한 것이다. 이와 같이 구분한 단위로 16x16 모드 계산부(322)에서 움직임을 추정한다.4A illustrates screens divided into macroblock units having a size of 16 × 16 pixels. The motion is estimated by the 16x16 mode calculator 322 in the divided units.

도 4a에서 X로 표시된 매크로블록을 기준으로 할 때, 이전 영상의 움직임 벡터 값들은 각각 A, B, C 위치에 대응되는 매크로블록들의 움직임 벡터값들이다. 이들 벡터들의 중간값(median)으로 움직임을 추정한다. 이 경우 만일 블록 C가 유효하지 않는 경우에는 A의 윗쪽(upper) 블록인 D로 대체된다.Based on the macroblock indicated by X in FIG. 4A, motion vector values of the previous image are motion vector values of macroblocks corresponding to positions A, B, and C, respectively. The motion is estimated by the median of these vectors. In this case, if block C is not valid, it is replaced with D, which is an upper block of A.

이와 같이 움직임 벡터 추정값을 계산하거나 움직임을 추정할 때에 이웃한 매크로블록 혹은 부매크로블록을 참조하는 것은 현재의 매크로블록 혹은 부매크로블록을 기준으로 상단(upper), 상우단(upper right) 및 좌단(left)에 위치한 매크로블록 혹은 부매크로블록들을 참조하는 것이 바람직하며, 부매크로블록에 포함된 영상의 움직임을 추정할 때에 한 매크로블록 내부에 포함된 모든 부매크로블록에 대해 움직임을 추정한 후에 다음의 매크로블록에 포함된 부매크로블록에 대한 움직임을 추정하는 것이 바람직하다.As described above, referring to neighboring macroblocks or submacroblocks when calculating motion vector estimates or estimating motions, the upper, upper right, and left-end ( It is preferable to refer to macroblocks or submacroblocks located at left) .When estimating the motion of an image included in a submacroblock, the following motion is estimated for all submacroblocks included in one macroblock. It is desirable to estimate the motion for the submacroblock included in the macroblock.

그리고 부매크로블록에 포함된 영상의 움직임을 추정할 때에 현재의 부매크로블록을 기준으로 상단(upper), 상우단(upper right) 및 좌단(left)의 부매크로블록들 중에 움직임 추정이 되지 않은 부매크로블록이 있는 경우 그 부매크로블록은 제외하고 움직임을 추정하며, 부매크로블록에 포함된 영상의 움직임을 추정할 때에 현재의 부매크로블록을 기준으로 상단(upper), 상우단(upper right) 및 좌단(left)의 부매크로블록들 중에 현재의 부매크로블록이 포함된 매크로블록 이후에 처리될 매크로블록에 속한 부매크로블록이 있는 경우 그 부매크로블록은 제외하고 상좌단(upper left) 부매크로블록을 포함시켜 움직임을 추정하는 것이 바람직하다.And when estimating the motion of the image included in the sub-macroblock sub-macroblocks of the upper, upper right and left sub-macroblock based on the current sub-macroblock is not motion estimation If there is a macroblock, the motion is estimated except for the submacroblock, and when the motion of the image included in the submacroblock is estimated, the upper, upper right, and If there is a submacroblock belonging to the macroblock to be processed after the macroblock including the current submacroblock among the left submacroblocks, the upper left submacroblock is excluded except for the submacroblock. It is desirable to estimate the motion by including.

도 4b와 4c는 16x8 크기의 부블록으로 16x16의 매크로블록을 나눈 모습을 도시한 것이다. 16x8 모드 계산부(324)는 이와 같이 나누어진 블록들 단위로 움직임을 추정한다. 도 4b의 경우는 도 4a와 같이 현재 위치 X를 위해 A, B, C의 부매크로블록들이 참조된다. 그러나 도 4c의 경우 현재 위치 X에 대해서 C의 부블록은 참조될 수 없다. B의 부블록에 대해 움직임 추정을 한 후 X 블록에 대한 움직임 추정을 하므로 아직 부매크로블록 C에 대해서는 어떤 추정도 되지 않은 상태이기 때문이다.4B and 4C illustrate a 16 × 16 macroblock divided into 16 × 8 subblocks. The 16x8 mode calculator 324 estimates the motion in units of the divided blocks. In the case of FIG. 4B, submacroblocks of A, B, and C are referred to for the current position X as shown in FIG. 4A. However, in the case of FIG. 4C, the subblock of C cannot be referenced with respect to the current position X. Since the motion estimation is performed on the X block after the motion estimation is performed on the subblock of B, no estimation is yet made on the submacroblock C.

도 4d와 4e는 16x16 화소 크기의 매크로블록을 8x16 크기로 구분한 것을 도시한 것이다. 8x16 모드 계산부(326)에서 이 부매크로블록 단위로 움직임을 추정한다. 이 경우는 도 4a과 같은 방법으로 각 블록들에 대해 움직임이 추정된다.4D and 4E illustrate macroblocks of 16x16 pixel size divided into 8x16 size. The 8x16 mode calculator 326 estimates the motion in units of this submacroblock. In this case, motion is estimated for each block in the same manner as in FIG. 4A.

도 4f 내지 도 4i는 8x8 크기의 부블록으로 16x16의 매크로블록을 나눈 모습을 도시한 것이다. 8x8 모드 계산부(328)는 이와 같이 나누어진 블록들 단위로 움직임을 추정한다.4F to 4I illustrate a 16 × 16 macroblock divided into 8 × 8 subblocks. The 8x8 mode calculator 328 estimates the motion in units of the divided blocks.

도 4f 내지 4h의 경우에는 도 4a와 마찬가지로 이웃한 블록들을 참조하여 움직임을 추정하나 도 4i의 경우에는 현재 위치 X에 대해 C 부매크로블록을 참조하지 않고 D 부매크로블록을 참조하여 움직임을 추정한다. 도 4i의 경우 D, B, A의 부매 크로블록들에 대해 움직임을 추정한 후에 X에 대해 움직임을 추정하게 되며, 이 경우 C의 부매클블록은 아직 움직임이 추정된 것이 아니므로 X에 대한 움직임 추정에는 참고되지 않는 것이다.In the case of FIGS. 4F to 4H, the motion is estimated by referring to neighboring blocks as in FIG. 4A, but in FIG. 4I, the motion is estimated by referring to the D submacroblock without referring to the C submacroblock for the current position X. . In the case of FIG. 4I, the motion is estimated for X after estimating the motion of the subblocks of blocks D, B, and A, and in this case, the motion of the subblock block of C is not yet estimated. It is not referenced in the estimation.

영상의 특성상 이웃하는 영역의 값은 서로 유사성을 가지므로 본 발명과 같은 움직임 추정은 신뢰성있는 결과를 얻을 수 있다는 것을 알 수 있다.Since the values of neighboring regions have similarities due to the characteristics of the image, it can be seen that the motion estimation such as the present invention can obtain reliable results.

또한 본 발명에 따라 움직임 추정을 위한 벡터값을 주변 매크로블록 혹은 부매크로블록으로부터 얻고, 이를 모든 분할 블록에 대해 적용한다면 움직임 추정을 위한 장치의 구조는 고복잡도이지만 저복잡도 모드의 움직임 추정기의 구조와 유사하게 만들어질 수 있다.In addition, according to the present invention, if the vector value for motion estimation is obtained from the neighboring macroblock or the sub-macroblock, and applied to all the divided blocks, the structure of the apparatus for motion estimation is a high complexity, but the structure of the motion estimator in the low complexity mode It can be made similarly.

또한 상기와 같이 본 발명을 통해 움직임 추정을 위한 연산과 각 블록의 면적 혹은 크기를 줄일 수 있으므로 종래에 비해 움직임 추정을 위한 소자 동작에 필요한 전력이 작아도 되며, 실장 면적을 줄일 수 있는 이점을 제공받을 수 있다In addition, since the operation for motion estimation and the area or size of each block can be reduced through the present invention as described above, power required for device operation for motion estimation may be smaller than in the prior art, and thus, the mounting area may be reduced. Can

본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 본 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 상기의 설명에 포함된 예들은 본 발명에 대한 이해를 위해 도입된 것이며, 이 예들은 본 발명의 사상과 범위를 한정하지 않는다. 상기의 예들 외에도 본 발명에 따른 다양한 실시 태양이 가능하다는 것은, 본 발명이 속한 기술 분야에 통상의 지식을 가진 사람에게는 자명할 것이다. 본 발명의 범위는 전술한 설명이 아니라 청구범위에 나타나 있으며, 그와 동등한 범위 내에 있 는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다. Those skilled in the art will appreciate that the present invention can be implemented in a modified form without departing from the essential features of the present invention. Therefore, the disclosed embodiments should be considered in descriptive sense only and not for purposes of limitation. Examples included in the above description are introduced for the understanding of the present invention, and these examples do not limit the spirit and scope of the present invention. It will be apparent to those skilled in the art that various embodiments in accordance with the present invention in addition to the above examples are possible. The scope of the present invention is shown in the claims rather than the foregoing description, and all differences within the scope will be construed as being included in the present invention.

또한 본 발명에 따른 상기의 각 단계는 일반적인 프로그래밍 기법을 이용하여 소프트웨어적으로 또는 하드웨어적으로 다양하게 구현할 수 있다는 것은 이 분야에 통상의 기술을 가진 자라면 용이하게 알 수 있는 것이다.In addition, it can be easily understood by those skilled in the art that each of the above steps according to the present invention can be variously implemented in software or hardware using a general programming technique.

본 발명에 의하면, 영상 데이터를 입력받아 영상의 각 프레임의 SAD 값을 계산하는 SAD계산부, 영상 데이터의 각 프레임을 소정 크기의 매크로블록 및 부매크로블록들로 분할하여 각 매크로블록 및 부매크로블록 주변의 매크로블록이나 부매크로블록의 움직임 벡터 및 예측 벡터를 이용하여 움직임 벡터 추정값을 계산하는 움직임벡터계산부 및 소정 크기의 매크로블록 및 부매크로블록별로 이웃한 매크로블록이나 부매크로블록에 SAD계산부에서 계산된 SAD값과 상기 움직임벡터계산부의 움직임 벡터 추정값을 이용하여 상기 영상 데이터의 움직임을 추정하는 움직임갱신부를 포함하여, 이웃 블럭을 참조하여 움직임 추정을 할 수 있으므로 종래의 움직임 추정 장치에 비해 장치를 구현하기 위해 필요한 장치의 크기나 경제적인 비용이 크게 줄어들며, 움직임 추정을 위해 저전력으로 동작할 수 있는 효과가 있다. According to the present invention, a SAD calculator which receives image data and calculates a SAD value of each frame of an image, divides each frame of the image data into macroblocks and submacroblocks of a predetermined size, and then macroblocks and submacroblocks. A motion vector calculator that calculates a motion vector estimate using motion vectors and prediction vectors of neighboring macroblocks or submacroblocks, and a SAD calculator for neighboring macroblocks or submacroblocks of predetermined size macroblocks and submacroblocks. A motion estimator for estimating the motion of the image data using the SAD value and the motion vector estimator of the motion vector calculator, which can estimate motion with reference to a neighboring block, can be compared to a conventional motion estimation device. The size and economic cost of the device required to implement the Im has an effect capable of operating with low power consumption for the estimation.

Claims (6)

영상 데이터를 입력받아 영상의 각 프레임의 SAD 값을 계산하는 SAD계산부;A SAD calculator which receives the image data and calculates a SAD value of each frame of the image; 상기 영상 데이터의 각 프레임을 소정 크기의 매크로블록 및 부매크로블록들로 분할하여 각 매크로블록 및 부매크로블록 주변의 매크로블록이나 부매크로블록의 움직임 벡터 및 예측 벡터를 이용하여 움직임 벡터 추정값을 계산하는 움직임벡터계산부; 및Each frame of the image data is divided into macroblocks and submacroblocks of a predetermined size, and motion vector estimates are calculated by using motion vectors and prediction vectors of macroblocks or submacroblocks around the macroblocks and submacroblocks. A motion vector calculator; And 상기 소정 크기의 매크로블록 및 부매크로블록별로 이웃한 매크로블록이나 부매크로블록의 상기 SAD계산부에서 계산된 SAD값과 상기 움직임벡터계산부의 움직임 벡터 추정값을 이용하여 상기 영상 데이터의 움직임을 추정하는 움직임갱신부;를 포함하는 것을 특징으로 하는 영상 움직임 추정 장치.A motion of estimating the motion of the image data using the SAD value calculated by the SAD calculator of the neighboring macroblock or submacroblock of each predetermined size and the submacroblock and the motion vector estimation value of the motion vector calculator; And an updater. 제1항에 있어서,The method of claim 1, 상기 움직임갱신부는 상기 SAD계산된 각 프레임을 16x16 화소 크기의 매크로블록과 상기 매크로블록에 포함되며 매크로블록을 16x8, 8x16 및 8x8 화소 크기로 분할한 부매크로블록으로 나누어 각 블록별로 동시에 움직임 벡터 추정값을 계산하는 것을 특징으로 하는 영상 움직임 추정 장치.The motion updater divides each SAD-calculated frame into a 16x16 pixel macroblock and the macroblock, and divides the macroblock into 16x8, 8x16, and 8x8 pixel sizes, and simultaneously extracts motion vector estimates for each block. Image motion estimation apparatus, characterized in that for calculating. 제2항에 있어서,The method of claim 2, 상기 움직임 벡터 추정값을 계산하거나 움직임을 추정할 때에 이웃한 매크로 블록 혹은 부매크로블록을 참조하는 것은 현재의 매크로블록 혹은 부매크로블록을 기준으로 상단(upper), 상우단(upper right) 및 좌단(left)에 위치한 매크로블록 혹은 부매크로블록들을 참조하는 것을 특징으로 하는 영상 움직임 추정 장치.Referencing neighboring macroblocks or submacroblocks when calculating the motion vector estimate or estimating the motion is based on the current macroblock or submacroblock, which is upper, upper right, and left. And a macroblock or a submacroblock located at the same. 제2항 또는 제3항에 있어서,The method according to claim 2 or 3, 상기 부매크로블록에 포함된 영상의 움직임을 추정할 때에 한 매크로블록 내부에 포함된 모든 부매크로블록에 대해 움직임을 추정한 후에 다음의 매크로블록에 포함된 부매크로블록에 대한 움직임을 추정하는 것을 특징으로 하는 영상 움직임 추정 장치.When estimating the motion of the image included in the sub-macroblock, after estimating the motion for all sub-macroblocks included in one macroblock, the motion of the sub-macroblock included in the next macroblock is estimated. A video motion estimation device. 제4항에 있어서,The method of claim 4, wherein 상기 부매크로블록에 포함된 영상의 움직임을 추정할 때에 현재의 부매크로블록을 기준으로 상단(upper), 상우단(upper right) 및 좌단(left)의 부매크로블록들 중에 움직임 추정이 되지 않은 부매크로블록이 있는 경우 그 부매크로블록은 제외하고 움직임을 추정하는 것을 특징으로 하는 영상 움직임 추정 장치.When estimating the motion of the image included in the sub-macroblock, the sub-blocks of which motion estimation is not performed among the upper, upper right, and left sub-macroblocks based on the current sub-macroblock. If there is a macroblock, the motion estimation apparatus of the image, characterized in that the motion is estimated by excluding the submacroblock. 제4항에 있어서,The method of claim 4, wherein 상기 부매크로블록에 포함된 영상의 움직임을 추정할 때에 현재의 부매크로블록을 기준으로 상단(upper), 상우단(upper right) 및 좌단(left)의 부매크로블록들 중에 현재의 부매크로블록이 포함된 매크로블록 이후에 처리될 매크로블록에 속 한 부매크로블록이 있는 경우 그 부매크로블록은 제외하고 상좌단(upper left) 부매크로블록을 포함시켜 움직임을 추정하는 것을 특징으로 하는 영상 움직임 추정 장치.When estimating the motion of the image included in the submacroblock, the current submacroblock is displayed among the submacroblocks of the upper, upper right, and left sides based on the current submacroblock. If there is a sub-macroblock belonging to a macroblock to be processed after the included macroblock, an image motion estimation apparatus comprising estimating motion by including an upper left sub-macroblock except for the sub-macroblock .
KR1020050087023A 2004-12-08 2005-09-16 Apparatus for motion estimation of image data KR100723840B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US11/290,651 US20060120455A1 (en) 2004-12-08 2005-11-30 Apparatus for motion estimation of video data

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020040103062 2004-12-08
KR20040103062 2004-12-08

Publications (2)

Publication Number Publication Date
KR20060064509A true KR20060064509A (en) 2006-06-13
KR100723840B1 KR100723840B1 (en) 2007-05-31

Family

ID=37160060

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050087023A KR100723840B1 (en) 2004-12-08 2005-09-16 Apparatus for motion estimation of image data

Country Status (1)

Country Link
KR (1) KR100723840B1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011099792A3 (en) * 2010-02-10 2011-12-08 엘지전자 주식회사 Method and apparatus for processing a video signal
US8374243B2 (en) 2007-01-18 2013-02-12 Samsung Electronics Co., Ltd. Method and apparatus for encoding and decoding based on intra prediction
US8451901B2 (en) 2008-11-11 2013-05-28 Electronics And Telecommunications Research Institute High-speed motion estimation apparatus and method
CN107087168A (en) * 2017-03-31 2017-08-22 武汉斗鱼网络科技有限公司 A kind of determination methods and device to intra prediction mode

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100277890B1 (en) * 1998-02-06 2001-01-15 김영환 Motion vector estimation device according to MPEG-2
KR100517504B1 (en) * 2003-07-01 2005-09-28 삼성전자주식회사 Method and apparatus for determining motion compensation mode of B-picture
KR20050033099A (en) * 2003-10-04 2005-04-12 삼성전자주식회사 Apparatus for fast motion estimation

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8374243B2 (en) 2007-01-18 2013-02-12 Samsung Electronics Co., Ltd. Method and apparatus for encoding and decoding based on intra prediction
US8451901B2 (en) 2008-11-11 2013-05-28 Electronics And Telecommunications Research Institute High-speed motion estimation apparatus and method
WO2011099792A3 (en) * 2010-02-10 2011-12-08 엘지전자 주식회사 Method and apparatus for processing a video signal
US9100649B2 (en) 2010-02-10 2015-08-04 Lg Electronics Inc. Method and apparatus for processing a video signal
CN107087168A (en) * 2017-03-31 2017-08-22 武汉斗鱼网络科技有限公司 A kind of determination methods and device to intra prediction mode
CN107087168B (en) * 2017-03-31 2020-07-31 武汉斗鱼网络科技有限公司 Method and device for judging intra-frame prediction mode

Also Published As

Publication number Publication date
KR100723840B1 (en) 2007-05-31

Similar Documents

Publication Publication Date Title
JP4724351B2 (en) Image encoding apparatus, image encoding method, image decoding apparatus, image decoding method, and communication apparatus
KR101192026B1 (en) Method or device for coding a sequence of source pictures
US9100664B2 (en) Image encoding device, image decoding device, image encoding method, and image decoding method
JP5081305B2 (en) Method and apparatus for interframe predictive coding
US6618439B1 (en) Fast motion-compensated video frame interpolator
KR100739281B1 (en) Motion estimation method and appratus
US9172973B2 (en) Method and system for motion estimation in a video encoder
US20060120455A1 (en) Apparatus for motion estimation of video data
EP1993292B1 (en) Dynamic image encoding method and device and program using the same
JP5490823B2 (en) Method for decoding a stream representing a sequence of images, method for encoding a sequence of images and encoded data structure
JP4694903B2 (en) ENCODING METHOD AND CIRCUIT DEVICE FOR IMPLEMENTING THE METHOD
US8204118B2 (en) Video encoding method and decoding method, apparatuses therefor, programs therefor, and storage media which store the programs
US20200404326A1 (en) Method and device for intra-prediction
US20060222074A1 (en) Method and system for motion estimation in a video encoder
CN102752593A (en) Method and apparatus for estimating motion vector using plurality of motion vector predictors, encoder, decoder, and decoding method
JP2004518342A (en) Scalable video transcoding method and apparatus
US20070133689A1 (en) Low-cost motion estimation apparatus and method thereof
JP3866624B2 (en) Moving picture encoding method, moving picture decoding method, moving picture encoding apparatus, and moving picture decoding apparatus
KR100723840B1 (en) Apparatus for motion estimation of image data
JP2009260421A (en) Moving image processing system, encoding device, encoding method, encoding program, decoding device, decoding method and decoding program
KR100926752B1 (en) Fine Motion Estimation Method and Apparatus for Video Coding
CN1263309C (en) Motion vector prediction method used for video coding
KR20120072205A (en) Motion estimation apparatus and method using prediction algorithm between macroblocks
KR100801974B1 (en) Low Cost Motion Estimation Device and Motion Estimation Method
KR100671040B1 (en) Apparatus for making interpolated frame and method thereof

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: 20120509

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee