KR100718468B1 - Method and device for video down-sampling transcoding - Google Patents

Method and device for video down-sampling transcoding Download PDF

Info

Publication number
KR100718468B1
KR100718468B1 KR1020050107224A KR20050107224A KR100718468B1 KR 100718468 B1 KR100718468 B1 KR 100718468B1 KR 1020050107224 A KR1020050107224 A KR 1020050107224A KR 20050107224 A KR20050107224 A KR 20050107224A KR 100718468 B1 KR100718468 B1 KR 100718468B1
Authority
KR
South Korea
Prior art keywords
macroblock
inter
mode
macroblocks
sad
Prior art date
Application number
KR1020050107224A
Other languages
Korean (ko)
Other versions
KR20060060567A (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/289,649 priority Critical patent/US7933336B2/en
Priority to EP05026094A priority patent/EP1662799A3/en
Publication of KR20060060567A publication Critical patent/KR20060060567A/en
Application granted granted Critical
Publication of KR100718468B1 publication Critical patent/KR100718468B1/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/40Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/117Filters, e.g. for pre-processing or post-processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • 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/14Coding unit complexity, e.g. amount of activity or edge presence estimation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors

Landscapes

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

Abstract

본 발명은 영상 축소 코딩 방법 및 장치에 관한 것으로서, 보다 상세하게는 H.264에서 MPEG-4로 영상 축소를 고속으로 수행하는 방법 및 장치에 관한 것이다. 제1 방식에 따른 제1 매크로블록을 제2 방식에 따른 제2 매크로블록으로 변환하기 위한 영상 축소 트랜스 코딩 방법은 (a) 제1 매크로블록에 포함된 인트라 매크로블록의 개수가 미리 설정된 제1 조건을 충족하면, 제2 매크로블록의 블록 모드를 결정하고, 결정된 블록 모드로 변환하는 단계; (b) 제1 매크로블록에 포함된 인터 매크로블록의 개수가 제2 조건을 충족하면, 제2 매크로블록의 블록 모드를 결정하고, 결정된 블록 모드로 변환하는 단계; 및 (c) 매크로블록의 변환이 완료되면, 제2 매크로블록에 대한 움직임 벡터 재조정을 수행하는 단계를 포함할 수 있다. The present invention relates to a method and apparatus for image reduction coding, and more particularly, to a method and apparatus for performing image reduction at high speed from H.264 to MPEG-4. An image reduction transcoding method for converting a first macroblock according to a first scheme into a second macroblock according to a second scheme includes: (a) a first condition in which the number of intra macroblocks included in the first macroblock is preset; Determining a block mode of the second macroblock, and converting to the determined block mode; (b) if the number of inter macroblocks included in the first macroblock satisfies the second condition, determining a block mode of the second macroblock and converting the block mode to the determined block mode; And (c) when the conversion of the macroblock is completed, performing motion vector readjustment on the second macroblock.

영상 축소, 트랜스코딩, 매크로블록, 움직임벡터 Image reduction, transcoding, macroblock, motion vector

Description

영상 축소 트랜스 코딩 방법 및 장치 {Method and device for video down-sampling transcoding}Method and device for video reduction transcoding {Method and device for video down-sampling transcoding}

도 1은 본 발명의 바람직한 실시예에 따른 영상 크기 축소 방법을 도시한 도면.1 is a diagram illustrating a method of reducing an image size in accordance with a preferred embodiment of the present invention.

도 2a 내지 도 2e는 본 발명의 바람직한 실시예에 따른 매크로블록 모드 및 움직임 벡터의 변환 방법을 도시한 도면.2A to 2E are diagrams illustrating a macroblock mode and a method of converting a motion vector according to an exemplary embodiment of the present invention.

도 3는 본 발명의 바람직한 실시예에 따른 영상 크기 축소를 위한 트랜스 코딩 장치의 구성을 도시한 도면.3 is a diagram illustrating a configuration of a transcoding apparatus for reducing image size according to a preferred embodiment of the present invention.

도 4은 본 발명의 바람직한 실시예에 따른 영상 크기 축소 방법을 도시한 순서도.4 is a flowchart illustrating a method of reducing an image size according to a preferred embodiment of the present invention.

도 5a 내지 도 5d는 본 발명의 바람직한 실시예에 따른 영상 크기 축소 방법을 도시한 도면.5A to 5D illustrate a method of reducing an image size according to a preferred embodiment of the present invention.

도 6a 내지 도 6d는 본 발명의 바람직한 다른 실시예에 따른 매크로블록 모드 및 움직임 벡터의 변환 방법을 도시한 도면. 6A to 6D illustrate a macroblock mode and a method of converting a motion vector according to another preferred embodiment of the present invention.

<도면의 주요부분에 대한 부호의 설명><Description of the symbols for the main parts of the drawings>

300 : 트랜스코딩 장치300: transcoding device

310 : 제1 변환부310: first conversion unit

320 : 제2 변환부320: second conversion unit

330 : 벡터 재조정부330: vector readjustment unit

본 발명은 영상 축소 코딩 방법 및 장치에 관한 것으로서, 보다 상세하게는 H.264에서 MPEG-4로 영상 축소를 고속으로 수행하는 방법 및 장치에 관한 것이다.The present invention relates to a method and apparatus for image reduction coding, and more particularly, to a method and apparatus for performing image reduction at high speed from H.264 to MPEG-4.

컴퓨터와 네트워크의 발달로 송신측에서 수신측으로 다양한 데이터를 전송할 수 있게 되었다. 이러한 기술 중 네트워크를 통해 대용량의 멀티미디어 데이터를 전송하기 위하여 멀티미디어 표준 압축 형식들이 소개되고 있으며, 송신측과 수신측의 환경을 고려하기 위하여 양측의 QoS(Quality Of Service)를 고려하여 각 환경에 맞게 변환하는 많은 비디오 트랜스코딩 기법이 소개되고 있다. 이러한 종래 기술에 따른 비디오 트랜스코딩 기법은 크게 픽셀 도메인(pixel domain)에서의 트랜스코딩 방법과 DCT 도메인(domain)에서의 트랜스코딩 방법으로 분류된다.Advances in computers and networks have made it possible to transmit a variety of data from the sender to the receiver. Among these technologies, multimedia standard compression formats are introduced to transmit a large amount of multimedia data through a network, and converted to each environment in consideration of QoS (Quality Of Service) of both sides in order to consider the environment of a transmitter and a receiver. Many video transcoding techniques have been introduced. Such video transcoding techniques are classified into transcoding methods in the pixel domain and transcoding methods in the DCT domain.

영상의 화질적인 측면에서 가장 좋은 트랜스코딩 방법은 입력된 영상의 비트스트림(bitstream)을 복호화하고, 복호화된 영상을 다시 부호화 하는 직렬 화소 영역 트랜스코딩(Cascaded Pixel-domain Transcoding)방법이다. 그러나 이러한 종래 기술은 부호화를 한번 더 수행하기 때문에 복잡도가 높아지는 문제점이 있다. 따라서, 종래 기술에 의할 때, 영상의 화질을 만족시키면서, 복잡도를 개선할 수 있는 효율적인 트랜스코딩 방법이 존재하지 아니한다.The best transcoding method in terms of image quality is a cascaded pixel-domain transcoding method of decoding a bitstream of an input image and re-coding the decoded image. However, this conventional technology has a problem that the complexity increases because the encoding is performed once more. Therefore, according to the prior art, there is no efficient transcoding method capable of improving the complexity while satisfying the image quality of the image.

따라서 본 발명은 상기의 제반 문제점을 해결하기 위하여 안출한 것으로서, 매크로블록의 정보를 재사용하여 화질을 만족시키면서 복잡도를 감소시킬 수 있는 영상 축소 트랜스코딩 방법 및 장치를 제공함에 그 목적이 있다. 즉 본 발명은 복잡도를 줄이기 위해서 H.264 복호화기에서 사용한 각각의 매크로블록(MB, Macro block)의 정보를 재사용할 수 있는 트랜스 코딩 기법을 제시한다.Accordingly, an object of the present invention is to provide an image reduction transcoding method and apparatus capable of reducing complexity while satisfying an image quality by reusing macroblock information. That is, the present invention proposes a transcoding technique that can reuse information of each macro block (MB, Macro block) used in the H.264 decoder to reduce the complexity.

또한, 본 발명의 다른 목적은 H.264 (ITU-T Recommendation H.264이며 ISO/IEC MPEG-4 Part 10 Advanced Video Coding) Baseline profile(BP) 부호화기(encoder)에서 부호화된 CIF(Common Intermediate Format)크기의 영상 비트스트림(bitstream)을 화소 영역에서 영상의 크기를 1/2로 줄여, QCIF(Quarter Common Intermediate Format) 크기의 MPEG-4 Simple profile (SP) 영상 비트스트림으로 변환하여 상호간의 원활한 통신을 하기 위한 트랜스코딩 방법 및 장치를 제공함에 있으며, 그 외의 다른 본 발명의 목적들은 이하에 서술되는 바람직한 실시예를 통하여 보다 명확해질 것이다.In addition, another object of the present invention is H.264 (ITU-T Recommendation H.264) and the Common Intermediate Format (CIF) encoded by ISO / IEC MPEG-4 Part 10 Advanced Video Coding (BP) baseline profile (BP) encoder. The video bitstream of size is reduced to half the size of the image in the pixel area and converted into MPEG-4 Simple profile (SP) video bitstream of QCIF (Quarter Common Intermediate Format) size for smooth communication. In order to provide a transcoding method and apparatus for carrying out the above, other objects of the present invention will become more apparent through the preferred embodiments described below.

상술한 목적을 달성하기 위하여 본 발명의 제1측면에 따르면, H.264에서 MPEG-4로 영상 축소를 고속으로 수행하는 방법을 제공할 수 있다.According to the first aspect of the present invention to achieve the above object, it is possible to provide a method for performing image reduction at high speed from H.264 to MPEG-4.

본 발명의 바람직한 일 실시예에 따르면, 제1 방식에 따른 제1 매크로블록을 제2 방식에 따른 제2 매크로블록으로 변환하기 위한 영상 축소 트랜스 코딩 방법에 있어서, (a) A(자연수)xB(자연수) 크기의 상기 제1 매크로블록에 포함된 인트라 매크로블록의 개수가 미리 설정된 제1 조건을 충족하면, C(자연수)xD(자연수) 크기의 상기 제2 매크로블록의 블록 모드를 결정하고, 상기 결정된 블록 모드로 변환하는 단계; (b) 상기 제1 매크로블록에 포함된 인터 매크로블록의 개수가 제2 조건을 충족하면, 상기 제2 매크로블록의 블록 모드를 결정하고, 상기 결정된 블록 모드로 변환하는 단계; 및 (c) 상기 제1 매크로블록의 변환이 완료되면, 상기 제2 매크로블록에 대한 움직임 벡터 재조정을 수행하는 단계를 포함하는 것을 특징으로 하는 영상 축소 트랜스 코딩 방법이 제공된다.According to a preferred embodiment of the present invention, in a video reduced transcoding method for converting a first macroblock according to a first scheme into a second macroblock according to a second scheme, (a) A (natural number) xB ( If the number of intra macroblocks included in the first macroblock of the size) satisfies a preset first condition, the block mode of the second macroblock of the size C (natural number) x D (natural number) is determined, and Converting to the determined block mode; (b) if the number of inter macroblocks included in the first macroblock satisfies a second condition, determining a block mode of the second macroblock and converting to the determined block mode; And (c) when the conversion of the first macroblock is completed, performing a motion vector readjustment on the second macroblock.

상기 영상 축소 트랜스 코딩 방법은 평균 필터를 이용하여 다운 샘플링을 하면서, 상기 결정된 블록 모드로 변환할 수 있다.The image reduction transcoding method may be converted to the determined block mode while downsampling using an average filter.

상기 (a) 단계는 상기 제1 매크로블록이 모두 인트라 매크로블록인 경우, 한 개의 인트라 매크로블록으로 변환하는 단계를 포함할 수 있다.The step (a) may include converting to one intra macroblock when the first macroblocks are all intra macroblocks.

상기 (a) 단계는 상기 매크로블록의 일부가 인트라 매크로블록인 경우, 상기 매크로블록의 SAD 비교 방식을 이용하여 블록 모드를 결정하는 단계를 포함할 수 있다.The step (a) may include determining a block mode using a SAD comparison method of the macroblock when a part of the macroblock is an intra macroblock.

상기 (b) 단계는 상기 인터 매크로블록의 개수가 미리 설정된 개수 이상인 경우 및 움직임 벡터간의 차분값을 산출한 후, 상기 차분값이 미리 설정된 이하인 경우는 인터 모드로 변환하고, 그 외의 경우는 상기 매크로블록의 SAD 비교 방식을 이용하여 블록 모드를 결정하고, 상기 결정된 블록모드로 변환하는 단계를 포함할 수 있다.In the step (b), when the number of the inter macroblocks is equal to or greater than a preset number and the difference value between the motion vectors is calculated, when the difference value is less than or equal to the predetermined value, the mode is converted to inter mode. The method may include determining a block mode using a SAD comparison method of blocks and converting the block mode to the determined block mode.

상기 SAD 비교 방식은 미리 설정된 두 개의 인터 블록의 SAD를 산출하고, 최소 인터 SAD를 결정하는 단계; 및 상기 최소 인터 SAD를 미리 설정된 인트라 블록의 인트라 SAD와 비교하여, 최소의 SAD에 상응하는 블록 모드로 변환하는 단계를 포함할 수 있다.The SAD comparison method may include calculating SADs of two preset inter blocks and determining a minimum inter SAD; And comparing the minimum inter SAD with an intra SAD of a preset intra block and converting the block to a block mode corresponding to the minimum SAD.

상기 인트라 SAD는 수학식

Figure 112005064547915-pat00001
에 의하여 매크로블록의 화소값 평균이 산출되고-여기서, 상기 orgij는 MB내에 있는 각각의 16x16 화소들의 값이고 상기 MBmean은 MB내에 있는 화소값들의 평균을 지칭함-, 수학식
Figure 112005064547915-pat00002
에 의해 상기 인트라 SAD가 산출되는 것을 특징으로 한다.The intra SAD is an equation
Figure 112005064547915-pat00001
By means of which the pixel value average of the macroblock is calculated, wherein org ij is the value of each 16x16 pixels in MB and MB mean refers to the average of the pixel values in MB.
Figure 112005064547915-pat00002
The intra SAD is calculated by.

상기 움직임 벡터 재조정은 수학식

Figure 112005064547915-pat00003
에 의하여 수행되며, 여기서, 상기 m, n은 중간 단계인 MB이 취하는 8x8 블록들의 가로축, 세로축 좌표를 가리키고 상기 k, l은 2x2 MB들 안의 (m, n)번째 매크로블록에 대응하는 4x4 블록들의 가로축, 세로축 좌표를 지칭하는 것을 특징으로 한다.The motion vector readjustment is
Figure 112005064547915-pat00003
Where m and n are the horizontal and vertical coordinates of the 8x8 blocks taken by the intermediate MB and k and l are the 4x4 blocks corresponding to the (m, n) th macroblocks in the 2x2 MBs. It is characterized by referring to the horizontal axis, vertical axis coordinates.

상기 (c) 단계는 정수단위 움직임 벡터를 중심으로 그 주위의 정수단위 ±3개의 이웃 화소(neighbor pixel)에 대하여 정수단위 움직임 벡터를 검색하는 단계; 및 상기 검색한 정수단위 움직임 벡터주변의 1/2 화소 단위의 ±1개의 이웃 화소에 대한 움직임 벡터를 검색하는 단계를 포함할 수 있다.The step (c) may include: searching for an integer unit motion vector with respect to integer neighboring ± 3 neighboring pixels around the integer unit motion vector; And retrieving a motion vector of ± 1 neighboring pixels in a 1/2 pixel unit around the searched integer unit motion vector.

본 발명의 바람직한 다른 실시예에 따르면, 제1 방식에 따른 제1 매크로블록을 제2 방식에 따른 제2 매크로블록으로 변환하기 위한 영상 축소 트랜스 코딩 방법에 있어서, 미리 지정된 크기의 상기 제1 매크로블록에 포함된 매크로블록들의 유형에 의해 미리 설정된 조건에 의해 결정되는 상기 제2 방식에 따른 후보 블록 모드 중 어느 하나를 상기 제2 매크로블록의 블록 모드로 결정하고, 상기 결정된 블록 모드로 변환하는 단계; 및 상기 제1 매크로블록의 변환이 완료되면, 상기 제2 매크로블록에 대한 움직임 벡터 재조정을 수행하는 단계를 포함하는 것을 특징으로 하는 영상 축소 트랜스 코딩 방법이 제공된다.According to another preferred embodiment of the present invention, in a video reduced transcoding method for converting a first macroblock according to a first scheme into a second macroblock according to a second scheme, the first macroblock having a predetermined size Determining any one of the candidate block modes according to the second scheme as the block mode of the second macroblock determined by a condition set in advance by a type of macroblocks included in the macroblock, and converting the block mode to the determined block mode; And when the conversion of the first macroblock is completed, performing a motion vector readjustment on the second macroblock.

상기 미리 설정된 조건은 상기 제1 매크로블록에 셋 이상의 인트라 매크로블록이 포함된 경우 상기 제2 방식에 따른 한 개의 인트라 매크로블록으로 블록 모드를 결정하는 것일 수 있다.The preset condition may be to determine a block mode with one intra macroblock according to the second scheme when three or more intra macroblocks are included in the first macroblock.

상기 미리 설정된 조건은 상기 제1 매크로블록에 둘 이하의 인트라 매크로블록이 포함된 경우, 상기 제1 매크로블록에 포함된 각 매크로블록의 SAD(Sum of Absolute Difference) 비교 방식을 이용하여 상기 후보 블록 모드 중 어느 하나로 결정하는 것일 수 있다. 여기서, 상기 후보 블록 모드는 스킵(SKIP) 모드, 인터(Inter) 16x16 모드, 인터 8x8 모드 중 하나 이상을 포함할 수 있다.The preset condition is the candidate block mode using a sum of absolute difference (SAD) comparison method of each macroblock included in the first macroblock when two or less intra macroblocks are included in the first macroblock. It may be determined by either. Here, the candidate block mode may include at least one of a skip (SKIP) mode, an inter 16x16 mode, and an inter 8x8 mode.

상기 미리 설정된 조건은 상기 제1 매크로블록이 인터 매크로블록들로만 구성되고, 상기 인터 매크로블록들 중 둘 이하의 인터 16x16 매크로블록이 포함된 경우, 각 인터 매크로블록의 SAD(Sum of Absolute Difference) 비교 방식을 이용하여 상기 후보 블록 모드 중 어느 하나로 결정하는 것일 수 있다. 여기서, 상기 후보 블록 모드는 스킵(SKIP) 모드, 인터(Inter) 16x16 모드, 인터 8x8 모드 중 하나 이상을 포함할 수 있다.The preset condition is a SAD (Sum of Absolute Difference) comparison scheme of each inter macroblock when the first macroblock includes only inter macroblocks and includes two or less inter 16x16 macroblocks among the inter macroblocks. It may be determined by using any one of the candidate block mode using. Here, the candidate block mode may include at least one of a skip (SKIP) mode, an inter 16x16 mode, and an inter 8x8 mode.

각 매크로블록의 움직임 벡터간의 차분값을 산출한 후, 상기 차분값이 미리 설정된 문턱값이하인 경우 상기 인터 16x16 모드 또는 상기 스킵 모드 중 어느 하나로 결정하되, 그렇지 않은 경우에는 상기 인터 8x8 모드로 결정할 수 있다.After calculating the difference value between the motion vectors of each macroblock, if the difference value is less than or equal to a preset threshold, one of the inter 16x16 mode and the skip mode may be determined. If not, the inter 8x8 mode may be determined. .

상기 후보 블록 모드 중 결정된 어느 하나는 상기 SAD 비교 방식에 의해 최소의 SAD 값을 가지는 블록 모드인 것을 특징으로 한다.One of the candidate block modes determined is a block mode having a minimum SAD value by the SAD comparison method.

상기 인트라 매크로블록의 SAD는, 수학식

Figure 112005064547915-pat00004
에 의하여 매크로블록의 화소값 평균이 산출되고-여기서, 상기 orgij는 MB내에 있는 각각의 16x16 화소들의 값이고 상기 MBmean은 MB내에 있는 화소값들의 평균을 지칭함-, 수학식
Figure 112005064547915-pat00005
에 의해 상기 인트라 매크로블록의 SAD가 산출되는 것을 특징으로 한다.SAD of the intra macroblock is,
Figure 112005064547915-pat00004
By means of which the pixel value average of the macroblock is calculated, wherein org ij is the value of each 16x16 pixels in MB and MB mean refers to the average of the pixel values in MB.
Figure 112005064547915-pat00005
It is characterized in that the SAD of the intra macroblock is calculated by.

상기 움직임 벡터 재조정은 수학식

Figure 112005064547915-pat00006
를 이용하 여 수행되며, 상기 m, n은 중간 단계인 MB이 취하는 8x8 블록들의 가로축, 세로축 좌표를 가리키고 상기 k, l은 2x2 MB들 안의 (m, n)번째 매크로블록에 대응하는 4x4 블록들의 가로축, 세로축 좌표를 지칭하는 것을 특징으로 한다.The motion vector readjustment is
Figure 112005064547915-pat00006
M and n denote the horizontal and vertical coordinates of the 8x8 blocks taken by the intermediate MB, and k and l denote the horizontal axes of the 4x4 blocks corresponding to the (m, n) th macroblocks in the 2x2 MBs. , It refers to the vertical axis coordinates.

상술한 목적을 달성하기 위하여 본 발명의 제2측면에 따르면, H.264에서 MPEG-4로 영상 축소를 고속으로 수행하는 장치를 제공할 수 있다.In accordance with a second aspect of the present invention, an apparatus for performing image reduction at high speed from H.264 to MPEG-4 can be provided.

본 발명의 바람직한 일 실시예에 따르면, 제1 방식에 따른 제1 매크로블록을 제2 방식에 따른 제2 매크로블록으로 변환하기 위한 영상 축소 트랜스 코딩 장치에 있어서, 상기 제1 매크로블록에 포함된 인트라 매크로블록의 개수가 미리 설정된 제1 조건을 충족하면, 상기 제2 매크로블록의 블록 모드를 결정하고, 상기 결정된 블록 모드로 변환하는 제1 변환부; 상기 제1 매크로블록에 포함된 인터 매크로블록의 개수가 제2 조건을 충족하면, 상기 제2 매크로블록의 블록 모드를 결정하고, 상기 결정된 블록 모드로 변환하는 제2 변환부; 및 상기 제1 매크로블록의 변환이 완료되면, 상기 제2 매크로블록에 대한 움직임 벡터 재조정을 수행하는 움직임 벡터 재조정부를 포함하는 것을 특징으로 하는 영상 축소 트랜스 코딩 장치가 제공된다.According to a preferred embodiment of the present invention, an image reduction transcoding apparatus for converting a first macroblock according to a first scheme into a second macroblock according to a second scheme, wherein the intra included in the first macroblock A first converter configured to determine a block mode of the second macroblock and to convert to the determined block mode when the number of macroblocks meets a first predetermined condition; A second converter configured to determine a block mode of the second macroblock and convert to the determined block mode when the number of inter macroblocks included in the first macroblock satisfies a second condition; And a motion vector readjustment unit configured to perform a motion vector readjustment for the second macroblock when the first macroblock is converted.

상기 제1 변환부는 상기 제1 매크로블록이 모두 인트라 매크로블록인 경우, 한 개의 인트라 매크로블록으로 변환하고, 상기 매크로블록의 일부가 인트라 매크로블록인 경우, 상기 매크로블록의 SAD 비교 방식을 이용하여 블록 모드를 결정할 수 있다.If the first macroblocks are all intra macroblocks, the first conversion unit converts one intra macroblock to a single macroblock, and if a part of the macroblocks is an intra macroblock, the first macroblock is a block using an SAD comparison method of the macroblocks. The mode can be determined.

상기 제2 변환부는 상기 인터 매크로블록의 개수가 미리 설정된 개수 이상인 경우 및 움직임 벡터간의 차분값을 산출한 후, 상기 차분값이 미리 설정된 이하인 경우는 인터 모드로 변환하고, 그 외의 경우는 상기 매크로블록의 SAD 비교 방식을 이용하여 블록 모드를 결정하고, 상기 결정된 블록모드로 변환할 수 있다.The second converting unit calculates a difference value between the motion vectors when the number of the inter macroblocks is equal to or greater than a preset number, and when the difference value is smaller than or equal to the preset value, converts to the inter mode. The block mode may be determined by using the SAD comparison method, and the block mode may be converted into the determined block mode.

상기 SAD 비교 방식은 미리 설정된 두 개의 인터 블록의 SAD를 산출하고, 최소 인터 SAD를 결정하고, 상기 최소 인터 SAD를 미리 설정된 인트라 블록의 인트라 SAD와 비교하여, 최소의 SAD에 상응하는 블록 모드로 변환하는 것을 특징으로 한다.The SAD comparison method calculates a SAD of two preset inter blocks, determines a minimum inter SAD, compares the minimum inter SAD with an intra SAD of a preset intra block, and converts the block mode corresponding to the minimum SAD. Characterized in that.

본 발명의 바람직한 다른 실시예에 따르면, 제1 방식에 따른 제1 매크로블록을 제2 방식에 따른 제2 매크로블록으로 변환하기 위한 영상 축소 트랜스 코딩 장치에 있어서, 미리 지정된 크기의 상기 제1 매크로블록에 포함된 매크로블록들의 유형에 의해 미리 설정된 조건에 의해 결정되는 상기 제2 방식에 따른 후보 블록 모드 중 어느 하나를 상기 제2 매크로블록의 블록 모드로 결정하고, 상기 결정된 블록 모드로 변환하는 변환부; 및 상기 제1 매크로블록의 변환이 완료되면, 상기 제2 매크로블록에 대한 움직임 벡터 재조정을 수행하는 움직임 벡터 재조정부를 포함하는 것을 특징으로 하는 영상 축소 트랜스 코딩 장치가 제공된다.According to another preferred embodiment of the present invention, an image reduction transcoding apparatus for converting a first macroblock according to a first scheme into a second macroblock according to a second scheme, wherein the first macroblock having a predetermined size A converter that determines one of the candidate block modes according to the second scheme determined by a condition set in advance by a type of macroblocks included in the block mode of the second macroblock, and converts the block mode to the determined block mode. ; And a motion vector readjustment unit configured to perform a motion vector readjustment for the second macroblock when the first macroblock is converted.

상기 미리 설정된 조건은 상기 제1 매크로블록에 셋 이상의 인트라 매크로블록이 포함된 경우 상기 제2 방식에 따른 한 개의 인트라 매크로블록으로 블록 모드를 결정하는 것일 수 있다.The preset condition may be to determine a block mode with one intra macroblock according to the second scheme when three or more intra macroblocks are included in the first macroblock.

상기 미리 설정된 조건은 상기 제1 매크로블록에 둘 이하의 인트라 매크로블록이 포함된 경우, 상기 제1 매크로블록에 포함된 각 매크로블록의 SAD(Sum of Absolute Difference) 비교 방식을 이용하여 상기 후보 블록 모드 중 어느 하나로 결정하는 것일 수 있다. 여기서, 상기 후보 블록 모드는 스킵(SKIP) 모드, 인터(Inter) 16x16 모드, 인터 8x8 모드 중 하나 이상을 포함할 수 있다.The preset condition is the candidate block mode using a sum of absolute difference (SAD) comparison method of each macroblock included in the first macroblock when two or less intra macroblocks are included in the first macroblock. It may be determined by either. Here, the candidate block mode may include at least one of a skip (SKIP) mode, an inter 16x16 mode, and an inter 8x8 mode.

상기 미리 설정된 조건은 상기 제1 매크로블록이 인터 매크로블록들로만 구성되고, 상기 인터 매크로블록들 중 둘 이하의 인터 16x16 매크로블록이 포함된 경우, 각 인터 매크로블록의 SAD(Sum of Absolute Difference) 비교 방식을 이용하여 상기 후보 블록 모드 중 어느 하나로 결정하는 것일 수 있다. 여기서, 상기 후보 블록 모드는 스킵(SKIP) 모드, 인터(Inter) 16x16 모드, 인터 8x8 모드 중 하나 이상을 포함할 수 있다.The preset condition is a SAD (Sum of Absolute Difference) comparison scheme of each inter macroblock when the first macroblock includes only inter macroblocks and includes two or less inter 16x16 macroblocks among the inter macroblocks. It may be determined by using any one of the candidate block mode using. Here, the candidate block mode may include at least one of a skip (SKIP) mode, an inter 16x16 mode, and an inter 8x8 mode.

상기 변환부는 각 매크로블록의 움직임 벡터간의 차분값을 산출한 후, 상기 차분값이 미리 설정된 문턱값이하인 경우 상기 인터 16x16 모드 또는 상기 스킵 모드 중 어느 하나로 결정하되, 그렇지 않은 경우에는 상기 인터 8x8 모드로 결정하는 것을 특징으로 한다.After calculating the difference value between the motion vectors of each macroblock, the converter determines one of the inter 16x16 mode and the skip mode when the difference value is less than or equal to a preset threshold. Otherwise, the converter determines the inter 8x8 mode. It is characterized by determining.

상기 인트라 매크로블록의 SAD는, 수학식

Figure 112005064547915-pat00007
에 의하여 매크로블록의 화소값 평균이 산출되고-여기서, 상기 orgij는 MB내에 있는 각각의 16x16 화소들의 값이고 상기 MBmean은 MB내에 있는 화소값들의 평균을 지칭함-, 수학식
Figure 112005064547915-pat00008
에 의해 상기 인트라 매크로블록의 SAD가 산출되는 것을 특징으로 한다.SAD of the intra macroblock is,
Figure 112005064547915-pat00007
By means of which the pixel value average of the macroblock is calculated, wherein org ij is the value of each 16x16 pixels in MB and MB mean refers to the average of the pixel values in MB.
Figure 112005064547915-pat00008
It is characterized in that the SAD of the intra macroblock is calculated by.

상기 움직임 벡터 재조정은 수학식

Figure 112005064547915-pat00009
를 이용하여 수행되며, 상기 m, n은 중간 단계인 MB이 취하는 8x8 블록들의 가로축, 세로축 좌표를 가리키고 상기 k, l은 2x2 MB들 안의 (m, n)번째 매크로블록에 대응하는 4x4 블록들의 가로축, 세로축 좌표를 지칭하는 것을 특징으로 한다.The motion vector readjustment is
Figure 112005064547915-pat00009
M and n denote horizontal and vertical coordinates of the 8x8 blocks taken by the intermediate MB, and k and l denote the horizontal axes of the 4x4 blocks corresponding to the (m, n) th macroblocks in the 2x2 MBs. , It refers to the vertical axis coordinates.

이하, 첨부한 도면들을 참조하여 본 발명에 따른 영상 축소 트랜스코딩 방법 및 장치의 바람직한 실시예를 상세히 설명하기로 하며, 첨부 도면을 참조하여 설명함에 있어 도면 부호에 상관없이 동일하거나 대응하는 구성 요소는 동일한 참조번호를 부여하고 이에 대한 중복되는 설명은 생략하기로 한다. Hereinafter, exemplary embodiments of an image reduction transcoding method and apparatus according to the present invention will be described in detail with reference to the accompanying drawings. In the following description with reference to the accompanying drawings, the same or corresponding components may be used. The same reference numerals will be given, and redundant description thereof will be omitted.

일반적으로 H.264의 프레임내의 MB(매크로블록)을 MPEG-4프레임내의 MB으로 변환하는 가장 간단한 방법은 입력으로 들어오는 압축된 H.264 프레임을 모두 복원한 후, MPEG-4에서 복원된 영상을 다시 압축하는 직렬 화소 영역 트랜스코딩 방식이다. 하지만 상기 방법은 모든 프레임에 있는 모든 MB에 대한 움직임 예측 과정이 MPEG-4 부호기에서 수행되므로, 많은 계산량으로 인하여 트랜스코더(transcoder)에서의 실시간 전송에 문제가 될 수 있다. In general, the simplest method of converting MBs (macroblocks) in H.264 frames to MBs in MPEG-4 frames is to restore all compressed H.264 frames as input, and then to restore the MPEG-4 video. It is a serial pixel region transcoding method that compresses again. However, since the motion prediction process for all MBs in all frames is performed by the MPEG-4 encoder, the method may cause a problem in real time transmission in a transcoder due to a large amount of computation.

본 발명은 이러한 문제를 해결하기 위해서 움직임 예측 과정을 수행하지 않으면서 실시간 전송에 적합하도록 하기 위하여, H.264 복호기에서 사용한 블록모드 및 움직임 벡터 정보를 MPEG-4부호기에서 재사용하도록 구성된다. 본 발명의 실시 예에 따라 H.264로 압축된 비트스트림(Bitstream)의 가변장 부호화(VLD, Variable Length Decoding)를 수행하는 과정에서 현재 복원되고 있는 프레임 형식과 MB의 정보, 움직임 벡터에 대한 정보를 파악한다. 여기서, 복원된 비트스트림의 프레임 형식이 P프레임(Predictive frame)이면 MB내에 있는 블록 타입과 움직임 벡터를 재사용하여 MPEG-4부호기에서 많은 시간을 소모하는 움직임 예측 과정을 생략할 수 있다.In order to solve this problem, the present invention is configured to reuse the block mode and motion vector information used in the H.264 decoder in the MPEG-4 encoder in order to be suitable for real time transmission without performing the motion prediction process. According to an embodiment of the present invention, information on a frame format, MB information, and motion vector currently reconstructed in the process of performing variable length decoding (VLD) on a H.264 compressed bitstream Figure out. Here, if the frame format of the reconstructed bitstream is a P frame (Predictive frame), the motion prediction process that consumes much time in the MPEG-4 encoder can be omitted by reusing the block type and the motion vector in the MB.

상술한 바와 같이, 본 발명에 따른 트랜스코딩 장치는 H.264 복호기(decoder) 및 MPEG4 부호기(encoder)를 포함할 수 있고, H.264 복호기에서 파악된 정보들은 MPEG4 부호기로 제공될 수 있다. 본 발명에 따른 트랜스코딩 장치는 비트스트림을 수신 장치로 전송하기 위한 미디어 게이트웨이 서버 등에 구비될 수 있다. As described above, the transcoding apparatus according to the present invention may include an H.264 decoder and an MPEG4 encoder, and the information identified in the H.264 decoder may be provided as an MPEG4 encoder. The transcoding device according to the present invention may be provided in a media gateway server for transmitting a bitstream to a receiving device.

이하에서는 본 발명에 따른 트랜스코딩 장치에서 수행되는 트랜스코딩 방법을 중심으로 설명하기로 한다. 당업자는 이하의 설명을 통해 본 발명에 따른 트랜스코딩 장치의 구성 및 동작을 용이하게 이해할 수 있을 것이다. Hereinafter, the transcoding method performed in the transcoding apparatus according to the present invention will be described. Those skilled in the art will be able to easily understand the configuration and operation of the transcoding apparatus according to the present invention through the following description.

이하, 도 1 및 도 2a 내지 도 2e를 참조하여 H.264 BP(Baseline profile)에서 MPEG-4 SP(Simple profile)로 변환 시 픽셀(Pixel) 도메인에서 블록타입 간 변환 및 움직임 벡터 조정을 이용한 트랜스코딩방법을 설명한다. 그리고 도 3을 참조하여 트랜스코딩 장치의 구성을 설명하고, 도 4를 참조하여 구체적인 트랜스 코딩 방법을 설명하기로 한다. 또한, 도 5a 내지 도 5d를 참조하여 H.264 BP를 MPEG-4 SP로 화소 영역 트랜스코딩 방식으로 트랜스코딩 했을 때의 실험결과를 설명하기로 한다. 마지막으로, 도 6a 내지 도 6d를 참조하여 통계학적 방법에 의해 블록타입 간 변환 및 움직임 벡터 조정을 이용한 트랜스코딩이 신속하게 수행하는 방법을 설명한다. Hereinafter, referring to FIGS. 1 and 2A to 2E, transcoding using block vector conversion and motion vector adjustment in the pixel domain when converting from H.264 baseline profile (MPP) to MPEG-4 SP (simple profile) will be described. The coding method is explained. A configuration of the transcoding apparatus will be described with reference to FIG. 3, and a specific transcoding method will be described with reference to FIG. 4. In addition, with reference to Figures 5a to 5d will be described the experimental results when the transcoding H.264 BP by the pixel region transcoding method to MPEG-4 SP. Finally, with reference to FIGS. 6A to 6D, a method of transcoding using block-to-block type conversion and motion vector adjustment by a statistical method will be described.

영상 축소 트랜스 코딩의 절차Procedure of Image Reduction Transcoding

도 1에는 본 발명의 바람직한 실시예에 따른 영상 축소 방법으로서, 평균 필터(average filter)를 이용한 영상 크기 축소 방법(down sampling)이 도시되어 있다. FIG. 1 illustrates a method for downsizing an image using an average filter as an image reduction method according to a preferred embodiment of the present invention.

예를 들어, 4개의 MB 타입을 1개의 MB 타입으로의 변환하는 경우, 종래 기술에 의할 때, H.264(SP) 부호화기를 통과한 CIF 크기의 영상을 다시 QCIF 크기의 영상으로 변화하는 동안, 원 영상(source image)은 두 번의 영상의 변환과정(encoding, down-sampling)을 거치면서 화질열화가 발생된다. For example, in case of converting 4 MB types into 1 MB type, according to the prior art, while converting a CIF sized image passed through an H.264 (SP) encoder into a QCIF sized image again, The source image is deteriorated in image quality through two encoding processes (encoding and down-sampling).

본 발명의 실시예에 따르면, H.264 복호기에서 복원된 CIF영상에서 4개의 16x16 MB(macro block)는 MPEG-4부호기에서 부호화할 1개의 16x16 MB로 축소되어 QCIF 영상으로 변환된다. 본 발명에 의할 때, CIF 영상을 QCIF 영상으로 축소시키기 위하여, 4개의 화소값을 평균 필터링(average filtering)하여 1개의 화소값으로 sampling하는 방법, 그리고 4개의 화소값 중 1개의 화소값만을 취하는 sub-sampling 방법 중 평균 필터(average filter)를 이용하여 영상을 축소시키는 방법이 사용된다. 이는 sub-sampling 기법을 이용하여 영상을 축소시키면 시간 복잡도 측면에서 약간의 이득은 제공하나, 영상의 화질 저하가 현저히 나타나기 때문에 평균 필터(average filter)를 이용하였다. 그리고 본 발명에서는 계산 복잡도가 낮은 DCT(Discrete Cosine Transform) 영역에서의 트랜스코딩 방법을 제안하지 않고 픽셀 도메인(pixel domain)에서의 트랜스코딩 방법을 사용한다. 이는 H.264의 비선형 루프 필터(non-linear loop filter) 때문에 DCT 영역에서의 트랜스코딩을 하기 위해서 loop filtering된 영상을 다시 DCT한 후, DCT영역에서 트랜스코딩을 하며, 4x4 integer DCT와 8x8 DCT간의 변환식을 도출하여야 하므로 계산량이 많아지기 때문이다.According to an embodiment of the present invention, four 16x16 MB (macro blocks) in the CIF image reconstructed by the H.264 decoder are reduced to one 16x16 MB to be encoded by the MPEG-4 encoder and converted into a QCIF image. According to the present invention, in order to reduce a CIF image to a QCIF image, a method of sampling the one pixel value by average filtering the four pixel values, and taking only one pixel value among the four pixel values, Among sub-sampling methods, a method of reducing an image using an average filter is used. This is because the sub-sampling technique reduces the image and provides some gains in terms of time complexity. However, the average filter is used because the deterioration of image quality is remarkable. In the present invention, a transcoding method in a pixel domain is used without suggesting a transcoding method in a DCT (Discrete Cosine Transform) region having low computational complexity. This is because of H.264 non-linear loop filter, DCT the loop filtered image again in order to transcode in the DCT domain, and then transcode in the DCT domain, between 4x4 integer DCT and 8x8 DCT. This is because a large amount of calculation is required because a conversion equation must be derived.

H.264에서는 1/4화소 ME(Motion Estimation, 움직임 예측) 및 MC(Motion Compensation, 움직임 보상), 7개의 가변블록(즉, 인터(Inter) 16x16, 인터(Inter) 16x8, 인터(Inter) 8x16, 인터(Inter) 8x8, 인터(Inter) 8x4, 인터(Inter) 4x8, 그리고 인터(Inter) 4x4) 및 10개의 블록 모드(즉, Skip, 인트라(Intra) 16x16, 인트라(Intra) 4x4, 인터(Inter) 16x16, 인터(Inter) 16x8, 인터(Inter) 8x16, 인터(Inter) 8x8, 인터(Inter) 8x4, 인터(Inter) 4x8 및 인터(Inter) 4x4 모드)를 사용하나, MPEG-4는 인트라(Intra) 16x16, 인터(Inter) 16x16, 인터(Inter) 8x8 그리고 skip 모드를 지원하기 때문에, 본 발명에서는 MPEG-4에서 이런 정보들을 재사용하기 위해 블록형태 변환을 수행하도록 구성된다.In H.264, 1/4 pixel ME (Motion Estimation) and MC (Motion Compensation), 7 variable blocks (i.e. Inter 16x16, Inter 16x8, Inter 8x16) , Inter 8x8, Inter 8x4, Inter 4x8, and Inter 4x4) and 10 block modes (i.e. Skip, Intra 16x16, Intra 4x4, Inter (4x4) Inter 16x16, Inter 16x8, Inter 8x16, Inter 8x8, Inter 8x4, Inter 4x8 and Inter 4x4 modes), but MPEG-4 is intra Because it supports (Intra) 16x16, Inter 16x16, Inter 8x8, and skip mode, the present invention is configured to perform block shape conversion to reuse such information in MPEG-4.

도 2a 내지 도 2e에는 본 발명의 바람직한 실시예에 따른 H.264 4개의 MB모드 및 움직임 벡터를 MPEG-4 MB 모드 및 움직임 벡터로 변환하는 방법이 도시되어 있다.2A to 2E illustrate a method of converting an H.264 four MB mode and a motion vector into an MPEG-4 MB mode and a motion vector according to a preferred embodiment of the present invention.

이하, 복원된 H.264 비트스트림의 2x2 MB들의 형태(MB mode)를 MPEG-4에서 재사용할 수 있는 하나의 MB 형태로 변환하는 다양한 실시예를 참조하여, H.264 BP에서 MPEG-4 SP로 변환시 픽셀 도메인(Pixel domain)에서 블록타입 간 변환 및 움직임 벡터 조정을 이용한 트랜스코딩방법을 설명한다. Hereinafter, referring to various embodiments of converting the format (MB mode) of 2x2 MBs of the reconstructed H.264 bitstream into one MB form that can be reused in MPEG-4, MPEG-4 SP in H.264 BP The following describes a transcoding method using a transformation between block types and a motion vector adjustment in a pixel domain when converting to.

도 2a에 따른 H.264내의 모든 Skip 모드는 H.264내의 2x2 MB들을 MPEG-4내의 한 개의 MB으로 변환하기 위한 전처리 단계를 나타내며, 도 2a와 같이 H.264내의 인터(Inter)16x16 모드로 변환시킨다.All Skip modes in H.264 according to FIG. 2A represent a preprocessing step for converting 2x2 MBs in H.264 into a single MB in MPEG-4, and in Inter16x16 mode in H.264 as shown in FIG. 2A. Convert

도 2b와 같이 H.264의 2x2 MB들이 모두 인트라(Intra) 16x16 또는 인트라(Intra)4x4인 MB들로만 구성되어 있으면, 한 개의 인트라(Intra) 16x16 MB으로 변환하고 평균 필터(average filter)를 이용하여 영상 축소한다.If 2x2 MBs of H.264 are composed only of MBs that are Intra 16x16 or Intra4x4, as shown in FIG. 2B, convert to one Intra 16x16 MB and use an average filter. Reduce the image.

도 2c와 같이 H.264의 2x2 MB들 중 2개 또는 3개 MB들만이 인트라(Intra) 모드 MB들로 구성된 경우, MPEG-4 부호기에서 인터(Inter)16x16, 인터(Inter)8x8 그리고 인트라(Intra) 16x16 모드 중 어떤 모드로 변환할 것인지 기준이 불명확한 경우이다. When only two or three MBs of 2x2 MBs of H.264 are configured as Intra mode MBs as shown in FIG. 2C, Inter 16x16, Inter8x8 and Intra (x) in the MPEG-4 encoder are used. Intra) It is unclear whether to convert to 16x16 mode.

이런 경우, 종래 기술에 따라, MPEG-4 내에 있는 특정한 하나의 모드(인터(Inter)16x16, 인터(Inter)8x8 또는 인트라(Intra)16x16 모드)로 변환 하였을 경우 화질이 떨어지게 되고 부호화된 비트양이 증가하는 현상이 나타난다. In this case, according to the prior art, when the conversion to a specific mode (Inter 16x16, Inter 8x8 or Intra 16x16 mode) in MPEG-4, the image quality is reduced and the amount of encoded bits An increasing phenomenon appears.

그래서 본 발명은 MPEG-4 부호기내에서 인터(Inter)16x16 블록의 SAD(Sum of Absolute Difference, 절대값 누적치)값(SAD-128)과 4개의 인터(Inter)8x8 블록 각 각의 SAD값들의 합을 비교해서 최소 SAD값을 가지는 모드를 선택한다. 이어서, 선택된 인터(Inter) 모드 SAD값과 하기의 수학식1 및 수학식 2에 의해 산출된 인트라(Intra) 모드 SAD값을 비교해서 최소 SAD값을 가지는 모드를 최종적으로 선택하도록 구성된다.Therefore, in the present invention, the sum of SAD (Sum of Absolute Difference) value (SAD-128) of four Inter 8x8 blocks and an SAD value of four Inter 8x8 blocks in an MPEG-4 encoder is shown. Compare with and select the mode with the lowest SAD value. Subsequently, the selected inter mode SAD value is compared with the intra mode SAD value calculated by Equations 1 and 2 below to finally select a mode having a minimum SAD value.

Figure 112005064547915-pat00010
Figure 112005064547915-pat00010

Figure 112005064547915-pat00011
Figure 112005064547915-pat00011

위 식에서 orgij는 MB내에 있는 각각의 16x16 화소들의 값이고 MBmean은 MB내에 있는 화소값들의 평균이다. 이와 같이 과정을 거쳐 선택된 최적의 모드로 변환시킴으로써, 화질적인 측면이나 부호화되는 비트 량 측면을 모두 충족시킬 수 있다. Where org ij is the value of each 16x16 pixel in MB and MB mean is the average of the pixel values in MB. By converting to the optimal mode selected in this manner, it is possible to satisfy both the image quality aspect and the bit amount encoded.

도 2d와 같이, H.264의 2x2 MB들 내에 인터(Inter) 16x16 모드인 MB가 4개 또는 3개가 있는 경우, MPEG-4 부호기내에서 인터(Inter)16x16 모드로 변환하도록 구성된다. 종래 기술에 의할 때, H.264의 2x2 MB들 내에 인터(Inter)16x16 모드인 MB가 4개 또는 3개가 있는 경우 MPEG-4 부호기내의 인터(Inter) 16x16 또는 인터(Inter) 8x8 모드로 변환이 가능하나, 본 발명에 따르면 인터(Inter)8x8 모드가 아닌 인터(Inter)16x16 모드로 변환한다. 먼저, 2x2 MB내의 각각의 MB의 1/4단위 움직임 벡터의 평균값을 MPEG-4 MB내의 4개의 8x8 블록들의 정수 단위 움직임 벡터로 취한 후, 이렇게 얻은 4개의 8x8 블록 움직임 벡터의 평균값으로 하나의 움직임 벡터를 인터(Inter) 16x16 MB에 취함으로써 모드 변환이 이루어지도록 구성된다. 정수 단위 움직임 벡터를 구하기 위한 구체적인 산출식은 하기 수학식 3과 같다.As shown in FIG. 2D, when there are four or three MBs having an Inter 16x16 mode in 2x2 MBs of H.264, the mobile terminal is configured to convert to the Inter16x16 mode in the MPEG-4 encoder. According to the prior art, if there are four or three MBs having an Inter16x16 mode in 2x2 MBs of H.264, they are converted to Inter 16x16 or Inter 8x8 mode in the MPEG-4 encoder. Although this is possible, the present invention converts the Inter 16x16 mode instead of the Inter 8x8 mode. First, the average value of each quarter-unit motion vector of each MB in a 2x2 MB is taken as an integer unit motion vector of four 8x8 blocks in MPEG-4 MB, and then one motion is used as the average value of four 8x8 block motion vectors thus obtained. Mode conversion is achieved by taking the vector at Inter 16x16 MB. A specific calculation equation for obtaining the integer unit motion vector is shown in Equation 3 below.

Figure 112005064547915-pat00012
Figure 112005064547915-pat00012

여기서, m, n은 중간 단계인 MB이 취하는 8x8 블록들의 가로축, 세로축 좌표를 가리키고 k, l은 2x2 MB들 안의 (m, n)번째 MB이 취하는 4x4 블록들의 가로축, 세로축 좌표를 가리킨다. Here, m and n refer to the horizontal and vertical coordinates of the 8x8 blocks taken by the intermediate MB, and k and l refer to the horizontal and vertical coordinates of the 4x4 blocks taken by the (m, n) th MB in the 2x2 MBs.

이와 같이 인터(Inter)8x8 모드가 아닌 인터(Inter)16x16 모드로 변환하는 이유는 H.264에서 MPEG-4로 트랜스코딩 시 foreman 영상에 대해 QP(quantization parameter)를 10으로 고정한 후, 모드 변환에 대한 모든 조건을 동일하게 하고, 도 2d와 같은 조건인 경우, 인터(Inter) 8x8 모드로 변환하면 인터(Inter) 16x16 모드로 변환 하였을 때 보다 PSNR이 31.61dB에서 31.69dB로 0.08dB 향상을 가져오나, 부호화된 비트양은 143.2kbps에서 156.8kbps로 증가하는 현상을 보이기 때문에 전체적이 부호화 효율이 떨어지기 때문이다.The reason for converting to Inter16x16 mode instead of Inter8x8 mode is to fix the QP (quantization parameter) to 10 for foreman video when transcoding from H.264 to MPEG-4. In the same condition as in FIG. 2D, the PSNR is improved by 0.08dB from 31.61dB to 31.69dB when the Inter 8x8 mode is converted to the Inter 8x8 mode. Because the coded bit amount increases from 143.2kbps to 156.8kbps, the overall coding efficiency decreases.

도 2e를 참조하면, H.264의 2x2 MB들이 복잡한 블록모드 즉, 한 개 이상의 인터(Inter)P8x8 모드인 MB들, 한 개 이하의 인트라(Intra) 모드 MB 및 이들 외의 인터(Inter) 모드 MB들로 구성되어 있는 경우, 2x2 MB들 내의 각각의 MB을 MPEG-4내의 8x8 블록으로 변환한다. MPEG-4내의 8x8 블록이 취하는 정수단위 움직임 벡터는 16개의 4x4 블록이 가지고 있는 1/4단위 움직임 벡터의 평균값을 구하고 이 값을 다시 4로 나눔으로써 정수단위의 움직임 벡터를 구한다. 산출식은 상기 수학식 3과 같다.Referring to FIG. 2E, H.264 2x2 MBs are complex block modes, that is, MBs in one or more InterP8x8 modes, one or less Intra mode MBs and other Inter mode MBs. In this case, each MB in 2x2 MBs is converted into an 8x8 block in MPEG-4. The integer motion vector taken by an 8x8 block in MPEG-4 is obtained by calculating the average value of the quarter-unit motion vector of 16 4x4 blocks and dividing the value by four again to obtain an integer motion vector. The calculation formula is the same as the above equation (3).

도 3은 본 발명의 바람직한 실시예에 따른 트랜스코딩 장치의 구성을 도시한 도면이다.3 is a diagram showing the configuration of a transcoding device according to a preferred embodiment of the present invention.

도 3을 참조하면, 본 발명에 따른 트랜스코딩 장치(300)는 제1 변환부(310), 제2 변환부(320) 및 움직임 벡터 재조정부(330)를 포함한다.Referring to FIG. 3, the transcoding apparatus 300 according to the present invention includes a first transform unit 310, a second transform unit 320, and a motion vector readjustment unit 330.

제1 변환부(310)는 제1 매크로블록에 포함된 인트라(Intra) 매크로블록의 개수가 미리 설정된 제1 조건을 충족하면, 제2 매크로블록의 블록 모드를 결정하고, 결정된 블록 모드로 변환한다. 예를 들어, 제1 변환부(310)는 제1 매크로블록이 모두 인트라 매크로블록인 경우 한 개의 인트라 매크로블록으로 변환하고(도 2b 참조), 상기 매크로블록의 일부가 인트라 매크로블록인 경우, 매크로블록의 SAD 비교 방식을 이용하여 블록 모드를 결정(도 2c 참조)한다.When the number of intra macroblocks included in the first macroblock satisfies a first predetermined condition, the first converter 310 determines a block mode of the second macroblock and converts the block mode to the determined block mode. . For example, when the first macroblocks are all intra macroblocks, the first converter 310 converts the data into one intra macroblock (see FIG. 2B), and when a part of the macroblocks is an intra macroblock, the macro The block mode is determined using the SAD comparison method of the blocks (see FIG. 2C).

제2 변환부(320)는 제1 매크로블록에 포함된 인터(Inter) 매크로블록의 개수가 제2 조건을 충족하면, 제2 매크로블록의 블록 모드를 결정하고, 결정된 블록 모드로 변환한다. 예를 들어, 제2 변환부(320)는 상기 인터 매크로블록의 개수가 미리 설정된 개수 이상인 경우 및 움직임 벡터간의 차분값을 산출한 후, 차분값이 미리 설정된 이하인 경우는 인터 모드로 변환하고, 그 외의 경우는 매크로블록의 SAD 비교 방식을 이용하여 블록 모드를 결정하고, 상기 결정된 블록모드로 변환한다. 보다 상세한 기능은 도 4의 흐름도를 참조하여 설명하기로 한다.When the number of inter macroblocks included in the first macroblock satisfies the second condition, the second converter 320 determines a block mode of the second macroblock and converts the block mode to the determined block mode. For example, when the number of the inter macroblocks is equal to or greater than the preset number and the difference value between the motion vectors, the second transforming unit 320 converts to the inter mode when the difference is less than or equal to the preset value. In other cases, the block mode is determined by using the SAD comparison method of the macroblock, and the block mode is converted to the determined block mode. More detailed functions will be described with reference to the flowchart of FIG. 4.

움직임 벡터 재조정부(330)는 제2 매크로블록에 대한 움직임 벡터 재조정을 수행한다.The motion vector readjustment unit 330 performs motion vector readjustment for the second macroblock.

도 4에는, 2x2 MB 기반의 H.264에서 MPEG-4로 트랜스코딩을 수행하는 구체적인 흐름도(flow chart)가 도시되어 있다.FIG. 4 shows a specific flow chart of transcoding from MPEG-2 to H.264 based on 2x2 MB.

도 4에 도시된 바와 같이, H.264 2x2 MB 형태가 입력되면(단계 S410), 입력된 H.264 2x2 MB 형태를 MPEG-4 1x1 MB 형태로 각 조건에 맞게 변환을 수행(단계 S420)한 후, average 필터를 사용하여 다운 샘플링을 수행한다(단계 S430).As shown in FIG. 4, when the H.264 2x2 MB form is input (step S410), the input H.264 2x2 MB form is converted into MPEG-4 1x1 MB form according to each condition (step S420). Then, down sampling is performed using the average filter (step S430).

이후, MPEG4 블록 형태를 위한 모드 결정을 수행한다.Then, the mode decision for the MPEG4 block type is performed.

단계 S425에서 H.264의 2x2 MB들 내에 인트라(Intra) 매크로블록의 개수가 2개 초과인 경우, 단계 S430으로 진행하여, 매크로블록의 개수가 4개인지 여부를 판단하고, 4개가 아니면 단계 S435로 진행하여 인트라(Intra) 방식으로 변환하고, 그 외의 경우에는 단계 S455로 진행한다.If the number of intra macroblocks in the 2x2 MBs of H.264 is greater than two in step S425, the flow advances to step S430 to determine whether the number of macroblocks is four, and if not four, step S435 The process proceeds to Intra mode, and the process proceeds to step S455 in other cases.

그러나, 단계 S425에서 H.264의 2x2 MB들 내에 인트라(Intra) 매크로블록의 개수가 2개 이하인 경우, 단계 S440으로 진행한다. 단계 S440에서 H.264의 2x2 MB들 내에 인터(Inter) 16x16 모드가 2개 초과인 경우(예를 들면, 4개 또는 3개가 있는 경우), 단계 S445로 진행하여 인터(Inter) 16x16으로 변환한다. 그러나, 단계 S440에서 H.264의 2x2 MB들 내에 인터(Inter)16x16 모드가 2개 이하인 경우, 단계 S450에서 모든 정수단위 움직임 벡터간의 차분값을 미리 설정된 문턱값(예를 들면 4)과 비교한다.However, if the number of intra macroblocks is within 2x2 MBs of H.264 in step S425, the flow proceeds to step S440. If there are more than two Inter 16x16 modes (for example, four or three) in 2x2 MBs of H.264 in step S440, the flow proceeds to step S445 to convert to Inter 16x16. . However, in step S440, if there are two or less Inter16x16 modes in 2x2 MBs of H.264, the difference between all integer motion vectors in step S450 is compared with a preset threshold (for example, 4). .

차분값이 문턱값 이상이면 단계 S450에서 단계 S455로 진행하여 SAD 과정을 통한 MB 모드를 결정하게 된다. 그러나, 차분값이 미리 설정된 문턱값 미만이면 단계 445로 진행하여 인터 16x16으로 변환한다.If the difference is greater than or equal to the threshold, the process proceeds from step S450 to step S455 to determine the MB mode through the SAD process. However, if the difference is less than the preset threshold, the process proceeds to step 445 to convert to inter 16x16.

여기서, H.264 부호기에서 인터(Inter)8x8 , 인터(Inter)8x4, 인터(Inter)4x8 그리고 인터(Inter)4x4 모드처럼 edge로 인하여 결정된 모드를 MPEG-4 부호기에서 사용할 모드를 인터(Inter)8x8 MB모드가 아닌 인터(Inter)16x16 MB모드로 변환하는 이유는 H.264로 부호화 및 영상 축소과정이 일종의 LPF(Low Pass Filtering)이기 때문이다.Here, in the H.264 encoder, the mode determined by the edge such as Inter8x8, Inter8x4, Inter4x8, and Inter4x4 modes is used. The reason for converting to Inter16x16 MB mode instead of 8x8 MB mode is that H.264 encoding and image reduction are a kind of low pass filtering (LPF).

이후, 단계 S460에서 매크로블록의 모드 결정을 종료하고, 단계 S415로 진행하여 다음 매크로블록의 변환을 개시한다. Thereafter, the mode determination of the macroblock is terminated in step S460, and the flow proceeds to step S415 to start conversion of the next macroblock.

상술한 과정에 의해 모드 결정이 완료되면, 단계 S470에서 움직임 벡터 재조정을 수행한다. 즉, 계산된 정수단위 움직임 벡터를 중심으로 그 주위의 정수단위 ±3개의 이웃화소(neighbor pixel)에 대하여 정수단위 움직임 벡터를 찾고, 찾은 정수단위 움직임 벡터주변의 1/2 화소 단위의 ±1개의 이웃화소에 대한 움직임 벡터를 찾음으로써 움직임 벡터 재조정(refinement)을 수행하여 PSNR(Peak Signal-to-Noise Ratios)의 향상을 얻을 수 있다.When the mode decision is completed by the above-described process, the motion vector readjustment is performed in step S470. That is, the integer unit motion vector is searched for the neighboring integer unit ± 3 neighbor pixels around the calculated integer unit motion vector, and ± 1 unit of 1/2 pixel unit around the found integer unit motion vector is found. By finding a motion vector for a neighboring pixel, a motion vector refinement may be performed to obtain PSNR (Peak Signal-to-Noise Ratios).

도 5a 내지 도 5d는 본 발명의 바람직한 실시예에 따른 H.264 BP를 MPEG-4 SP로 화소 영역 트랜스코딩 방식으로 트랜스코딩했을 때의 실험결과를 설명한 도면이다. 5A to 5D are diagrams illustrating an experimental result when H.264 BP according to a preferred embodiment of the present invention is transcoded by pixel region transcoding using MPEG-4 SP.

상기 실험은 H.264 BP로 재구성된 JM(Joint Model) 복호기(Decoder)와 MPEG-4의 SP로서 재구성된 MoMuSys -FDIS-V1.0 부호기(Encoder)를 이용하여 구현한 트랜스코더를 이용하여 수행하였다. 실험은 펜티엄 IV 2.8GHz PC에서 수행되었고, JM 부호기에서 Foreman, News, Paris 그리고 Coast CIF(352x288)영상을 압축하여 각각 생성된 H.264 비트스트림이 사용되었다. 비트스트림 생성에 사용된 각 영상들에 대하여 첫 번째 프레임만 I(인트라(Intra)) 프레임을 사용하였고, 나머지는 모두 P(Predictive) 프레임을 사용하였으며, 30Hz의 프레임 율로 300장의 시퀀스를 압축하여 실험하였다 The experiment was carried out using a transcoder implemented using a JM (Joint Model) decoder reconstructed with H.264 BP and a MoMuSys -FDIS-V1.0 encoder reconstructed as an SP of MPEG-4. It was. Experiments were performed on a Pentium IV 2.8GHz PC, and H.264 bitstreams generated by compressing Foreman, News, Paris and Coast CIF (352x288) images in a JM encoder were used. For each image used in the bitstream generation, only the first frame was used an I (Intra) frame, the rest were all P (Predictive) frames, and the experiment was performed by compressing 300 sequences at a frame rate of 30 Hz. Was

도 5a의 Coast, 도 5b의 Paris, 도 5c의 News 그리고 도 5d의 Foreman 시퀀스에 대하여, 각각 H.264에서 MPEG-4로 변환시 종래 기술에 따른 직렬 화소 영역 트랜스코딩 방식(510, 520, 530, 540), 본 발명에 따른 변환 방식에 따라 영상 압축 방식(515, 525, 535, 545)간의 밝기(Y)신호의 PSNR의 차이를 보여주고 있다. 여기서, 장면변환(scene change)이 있는 도 5d의 foreman 영상을 제외한 모든 영상에 서 화질 저하를 거의 보이지 않았을 뿐 아니라, 도 5a의 Coast영상에서는 최대 0.5dB의 화질이 개선되었다. For the Coast of FIG. 5A, the Paris of FIG. 5B, the News of FIG. 5C and the Foreman sequence of FIG. 5D, the serial pixel region transcoding schemes 510, 520, 530, 540, the PSNR of the brightness (Y) signal between the image compression methods 515, 525, 535, 545 according to the conversion method according to the present invention is shown. Here, almost no image degradation was observed in all images except the foreman image of FIG. 5D having a scene change, and the image quality of up to 0.5 dB was improved in the coast image of FIG. 5A.

하기의 표 1은 본 발명에 따른 트랜스코딩 방식에 따른 시간적 이득을 나타내고 있다. 각각의 영상마다 약간의 차이는 보이지만 평균적으로 1.72배의 속도향상을 보였고 트랜스코더의 부호기(MPEG-4 encoder)만을 고려하면 약 4.1배의 속도 향상을 보임을 알 수 있다. Table 1 below shows the temporal gains according to the transcoding scheme according to the present invention. Although there is a slight difference in each image, the average speed is improved by 1.72 times, and it can be seen that the speed is improved by about 4.1 times considering only the encoder (MPEG-4 encoder).

SequenceSequence Cascade pixel-domain TranscodingCascade pixel-domain transcoding Proposed TranscodingProposed Transcoding H.264 decoder timeH.264 decoder time MPEG-4 encoder timeMPEG-4 encoder time Transcoder Total timeTranscoder Total time H.264 decoder timeH.264 decoder time MPEG-4 encoder timeMPEG-4 encoder time Transcoder Total timeTranscoder Total time NewsNews 34.1434.14 52.2352.23 86.3786.37 34.1434.14 12.112.1 46.2446.24 ParisParis 37.237.2 52.1852.18 89.3889.38 37.237.2 12.312.3 49.549.5 CoastCoast 51.4851.48 53.5453.54 105.02105.02 51.4851.48 13.2913.29 64.7764.77 ForemanForeman 49.5449.54 53.4953.49 103.03103.03 49.5449.54 13.3213.32 62.8662.86

상술한 바와 같이, 본 발명에 따라 H.264에서 정의된 블록 정보를 MPEG-4에서 다시 사용하기 위해 정보 변환 방법을 제공할 수 있다. 종래 기술에 따라 시간적으로 많은 비용 갖는 직렬 화소 영역 트랜스코딩 방식에 비해 H.264에서 이전 움직임 벡터와 블록정보를 재사용함으로써 시간적으로 1.8배 정도의 성능향상을 보이면서 화질열화가 거의 없음을 알 수 있다. As described above, according to the present invention, an information conversion method may be provided to use block information defined in H.264 again in MPEG-4. According to the prior art, it can be seen that there is almost no deterioration in image quality while showing 1.8 times the performance improvement by reusing the previous motion vector and the block information in H.264 compared to the serial pixel region transcoding method which has a high cost in time.

이제까지, 본 발명에 따른 H.264 BP(Baseline profile)에서 MPEG4 SP(Simple profile)로 변환방법을 설명하였다. 또한, H.264에서 정의된 블록 모드를 MPEG4에서 정의된 블록 모드로 변환함에 있어, MPEG4에서 정의된 모든 블록 모드를 고려하는 방법을 중심으로 설명하였다.So far, the method of converting from H.264 baseline profile (BP) to MPEG4 SP (simple profile) according to the present invention has been described. In addition, when converting the block mode defined in H.264 to the block mode defined in MPEG4, the description has been focused on a method that considers all the block modes defined in MPEG4.

그러나, 통계학적으로 검토한 결과 H.264의 2x2 MB를 MPEG4의 1x1 MB로 변환함에 있어, H.264의 2x2 MB의 특징을 고려하면 최소한의 MPEG4 블록모드만을 고려할 수 있어 화질 열화가 거의 없으면서도 신속하게 트랜스코딩이 가능함을 발견하였다.However, when statistically reviewed, when converting 2x2 MB of H.264 to 1x1 MB of MPEG4, considering the characteristics of 2x2 MB of H.264, only the minimum MPEG4 block mode can be considered, and there is almost no deterioration in image quality. We found that transcoding is possible quickly.

하기 표 2는 통계학적으로 검토된 H.264의 2x2 MB의 특징에 따른 MPEG4 블록모드로의 변환 빈도를 나타내고, 도 6a 내지 도 6d는 통계학적 방법을 고려한 매크로블록 모드 및 움직임 벡터의 변환 과정이 예시되어 있다.Table 2 below shows the conversion frequency of MPEG-4 block mode according to the characteristics of 2x2 MB of H.264 statistically examined, and FIGS. 6A to 6D illustrate the conversion process of the macroblock mode and the motion vector considering the statistical method. Is illustrated.

MB modes of the MPEG-4 2

Figure 112005064547915-pat00013
2 MB modes of the H.264MB modes of the MPEG-4 2
Figure 112005064547915-pat00013
2 MB modes of the H.264 INTRAINTRA SKIPSKIP INTER 16ㅧ16INTER 16 ㅧ 16 INTER 8ㅧ8INTER 8 ㅧ 8 TotalTotal 비고Remarks two Inter16
Figure 112005064547915-pat00014
16, two blocks smaller than Inter16
Figure 112005064547915-pat00015
8 or Inter8
Figure 112005064547915-pat00016
16
two Inter16
Figure 112005064547915-pat00014
16, two blocks smaller than Inter16
Figure 112005064547915-pat00015
8 or Inter8
Figure 112005064547915-pat00016
16
0.20%0.20% 13.53%13.53% 3.48%3.48% 1.88%1.88% 19.09%19.09% 도 6a 참조See FIG. 6A
one Inter16
Figure 112005064547915-pat00017
16, three blocks smaller than Inter16
Figure 112005064547915-pat00018
8 or Inter8
Figure 112005064547915-pat00019
16
one Inter16
Figure 112005064547915-pat00017
16, three blocks smaller than Inter16
Figure 112005064547915-pat00018
8 or Inter8
Figure 112005064547915-pat00019
16
0.22%0.22% 13.91%13.91% 2.16%2.16% 3.21%3.21% 19.49%19.49%
four blocks smaller than Inter16
Figure 112005064547915-pat00020
8 or Inter8
Figure 112005064547915-pat00021
16
four blocks smaller than Inter16
Figure 112005064547915-pat00020
8 or Inter8
Figure 112005064547915-pat00021
16
0.14%0.14% 8.55%8.55% 0.86%0.86% 3.25%3.25% 12.79%12.79%
four Inter16
Figure 112005064547915-pat00022
16
four Inter16
Figure 112005064547915-pat00022
16
0.26%0.26% 3.48%3.48% 25.94%25.94% 0.09%0.09% 29.77%29.77% 도 6b 참조See Figure 6b
three Inter16
Figure 112005064547915-pat00023
16, one block smaller than Inter16
Figure 112005064547915-pat00024
8 or Inter8
Figure 112005064547915-pat00025
16
three Inter16
Figure 112005064547915-pat00023
16, one block smaller than Inter16
Figure 112005064547915-pat00024
8 or Inter8
Figure 112005064547915-pat00025
16
0.13%0.13% 8.01%8.01% 5.75%5.75% 0.47%0.47% 14.35%14.35%
one Intra, three Inter Fig. 5(c)one Intra, three Inter Fig. 5 (c) 0.03%0.03% 1.15%1.15% 0.32%0.32% 1.26%1.26% 2.76%2.76% 도 6c 참조See Figure 6c two Intra, two Inter Fig. 5(c)two Intra, two Inter Fig. 5 (c) 0.02%0.02% 0.37%0.37% 0.10%0.10% 0.65%0.65% 1.14%1.14% three Intra, one Inter Fig. 5(d)three Intra, one Inter Fig. 5 (d) 0.00%0.00% 0.10%0.10% 0.04%0.04% 0.16%0.16% 0.31%0.31% 도 6d 참조See Figure 6d four Intra Fig. 5(d)four Intra Fig. 5 (d) 0.05%0.05% 0.09%0.09% 0.01%0.01% 0.14%0.14% 0.29%0.29% Total NumberTotal Number 1.04%1.04% 49.19%49.19% 38.65%38.65% 11.11%11.11% 100.00%100.00%

상술한 표 2 및 도 6에서 보여지는 바와 같이, 본 발명에 따른 트랜스코딩 방법은 미리 지정된 크기의 MB를 H.264로부터 MPEG4로 변환시 빈도가 상대적으로 높은 MPEG4의 블록 모드만을 고려할 수 있다. 이때, H.264의 2x2 MB가 가지는 특성이 이용될 수 있다.As shown in Table 2 and FIG. 6, the transcoding method according to the present invention may consider only the block mode of MPEG4 having a relatively high frequency when converting a MB of a predetermined size from H.264 to MPEG4. At this time, a characteristic of 2x2 MB of H.264 may be used.

예를 들어, H.264의 2x2 MB의 2개의 매크로블록이 인터 16x16 매크로블록이고, 나머지 2개의 매크로블록이 인터 16x8 또는 인터 8x16 매크로블록보다 작은 블록인 경우 도 6a와 같이 MPEG4의 인터 16x16 블록모드, 스킵 모드 또는 인터 8x8 블록 모드만이 변환시 고려되도록 할 수 있다. 해당 블록 모드들은 표 2를 참조할 때 상대적으로 큰 빈도를 가짐을 알 수 있다. 또한, 도시된 바와 같이 MPEG4의 인터 16x16 블록모드 또는 스킵 모드 중 하나로 선택할 것인지 아니면 인터 8x8 블록 모드로 선택할 것인지는 1/4 픽셀 단위의 모션벡터의 각 차분값(Difference)가 문턱값(예를 들어 9) 미만인지 여부로 1차적으로 결정될 수 있다.For example, if two macroblocks of 2x2 MB of H.264 are inter16x16 macroblocks, and the remaining two macroblocks are smaller than inter16x8 or inter8x16 macroblocks, the inter16x16 block mode of MPEG4 is illustrated in FIG. 6A. Only the skip mode or the inter 8x8 block mode may be considered in the conversion. It can be seen that the corresponding block modes have a relatively high frequency when referring to Table 2. In addition, as shown, whether to select one of the inter 16x16 block mode or the skip mode of MPEG4 or the inter 8x8 block mode, each difference value (difference) of the motion vector in the unit of 1/4 pixel is a threshold value (for example, 9). May be determined primarily by

다만, H.264의 2x2 MB의 3개 이상의 매크로블록이 인트라 매크로블록인 경우 표 2에서 가장 높은 변환 빈도를 가지는 MPEG4의 블록모드는 인터 8x8 블록모드이다. 그러나, 그 빈도가 매우 낮은 값(즉, 0.14% 또는 0.16%)을 나타내므로 이는 무시될 수 있으며 도 6d에 도시된 바와 같이 MPEG4의 블록모드를 인트라 블록모드로 결정할 수 있다. However, when three or more macroblocks of 2x2 MB of H.264 are intra macroblocks, the block mode of MPEG4 having the highest conversion frequency in Table 2 is an inter 8x8 block mode. However, since the frequency shows a very low value (i.e., 0.14% or 0.16%), it can be ignored and the block mode of MPEG4 can be determined as the intra block mode as shown in FIG. 6D.

상술한 바와 같이 본 발명은 매크로블록의 정보를 재사용하여 화질을 만족시키면서 복잡도를 감소시킬 수 있는 영상 축소 트랜스코딩 방법 및 장치를 제공할 수 있다.As described above, the present invention can provide an image reduction transcoding method and apparatus capable of reducing complexity while satisfying an image quality by reusing information of a macroblock.

또한, 본 발명에 따른 H.264에서 MPEG-4로 변환하는 트랜스코더는 기존의 MPEG-4코덱을 사용했던 장비들을 교체하지 않고도 새로운 동영상 압축 표준인 H.264로 압축된 영상을 사용 가능하게 할 수 있는 효과도 있다.In addition, the transcoder for converting from H.264 to MPEG-4 according to the present invention can enable the use of H.264 compressed video, which is a new video compression standard, without replacing equipment that used the conventional MPEG-4 codec. There is also an effect.

상기에서는 본 발명의 바람직한 실시예를 참조하여 설명하였지만, 해당 기술분야에서 통상의 지식을 가진 자라면 하기의 특허 청구의 범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.Although the above has been described with reference to a preferred embodiment of the present invention, those skilled in the art to which the present invention pertains without departing from the spirit and scope of the invention as set forth in the claims below It will be appreciated that modifications and variations can be made.

Claims (28)

제1 방식에 따른 제1 매크로블록을 제2 방식에 따른 제2 매크로블록으로 변환하기 위한 영상 축소 트랜스 코딩 방법에 있어서,An image reduction transcoding method for converting a first macroblock according to a first scheme into a second macroblock according to a second scheme, (a) A(자연수)xB(자연수) 크기의 상기 제1 매크로블록에 포함된 인트라 매크로블록의 개수가 미리 설정된 제1 조건을 충족하면, C(자연수)xD(자연수) 크기의 상기 제2 매크로블록의 블록 모드를 결정하고, 상기 결정된 블록 모드로 변환하는 단계; (a) if the number of intra macroblocks included in the first macroblock of A (natural number) x B (natural number) satisfies a preset first condition, the second macro of C (natural number) x D (natural number) size Determining a block mode of the block and converting to the determined block mode; (b) 상기 제1 매크로블록에 포함된 인터 매크로블록의 개수가 제2 조건을 충족하면, 상기 제2 매크로블록의 블록 모드를 결정하고, 상기 결정된 블록 모드로 변환하는 단계; 및(b) if the number of inter macroblocks included in the first macroblock satisfies a second condition, determining a block mode of the second macroblock and converting to the determined block mode; And (c) 상기 제1 매크로블록의 변환이 완료되면, 상기 제2 매크로블록에 대한 움직임 벡터 재조정을 수행하는 단계를 포함하되,(c) if the conversion of the first macroblock is completed, performing motion vector readjustment on the second macroblock; 상기 (a) 단계는, 상기 제1 매크로블록이 모두 인트라 매크로블록인 경우 한 개의 인트라 매크로블록으로 변환하고, 상기 제1 매크로블록에 포함된 매크로블록들 중 일부가 인트라 매크로블록인 경우 각 매크로블록의 SAD 비교 방식을 이용하여 블록 모드를 결정하며,In the step (a), when the first macroblocks are all intra macroblocks, the macroblock is converted into one intra macroblock, and when some of the macroblocks included in the first macroblock are intra macroblocks, each macroblock The block mode is determined using the SAD comparison method of, 상기 (b) 단계는, 상기 인터 매크로블록의 개수가 미리 설정된 개수 이상인 경우 및 움직임 벡터간의 차분값을 산출하여, 상기 차분값이 미리 설정된 이하인 경우는 인터 모드로 변환하고, 그 외의 경우는 상기 제1 매크로블록의 SAD 비교 방식을 이용하여 블록 모드를 결정하여 상기 결정된 블록모드로 변환하고,In the step (b), when the number of the inter macroblocks is equal to or greater than a preset number and a difference value between motion vectors is calculated, when the difference value is less than or equal to the preset value, the inter mode is converted into an inter mode. 1 determines a block mode by using the SAD comparison method of the macroblock and converts it to the determined block mode, 상기 SAD 비교 방식은, 미리 설정된 두 개의 인터 블록의 SAD를 산출하여 최소 인터 SAD를 결정한 후, 상기 최소 인터 SAD를 미리 설정된 인트라 블록의 인트라 SAD와 비교하여 최소의 SAD에 상응하는 블록 모드로 변환하는 것을 특징으로 하는 영상 축소 트랜스 코딩 방법.The SAD comparison method determines a minimum inter SAD by calculating SADs of two preset inter blocks, and then converts the minimum inter SADs into a block mode corresponding to the minimum SAD by comparing the minimum SADs with a preset intra block. An image reduction transcoding method, characterized in that. 제1항에 있어서,The method of claim 1, 평균 필터를 이용하여 다운 샘플링을 하면서, 상기 결정된 블록 모드로 변환하는 것을 특징으로 하는 영상 축소 트랜스 코딩 방법.And converting to the determined block mode while downsampling using an average filter. 삭제delete 삭제delete 삭제delete 삭제delete 제1항에 있어서,The method of claim 1, 상기 인트라 SAD는The intra SAD is 수학식
Figure 112007012880167-pat00051
에 의하여 매크로블록의 화소값 평균이 산출되고-여기서, 상기 orgij는 MB내에 있는 각각의 16x16 화소들의 값이고 상기 MBmean은 MB내에 있는 화소값들의 평균을 지칭함-,
Equation
Figure 112007012880167-pat00051
By means of which the pixel value average of the macroblock is calculated, wherein org ij is the value of each 16x16 pixels in MB and MB mean refers to the average of pixel values in MB;
수학식
Figure 112007012880167-pat00052
에 의해 상기 인트라 SAD가 산출되는 것을 특징으로 하는 영상 축소 트랜스코딩 방법.
Equation
Figure 112007012880167-pat00052
The intra SAD is calculated by the image reduction transcoding method.
제1항에 있어서,The method of claim 1, 상기 움직임 벡터 재조정은 수학식
Figure 112005064547915-pat00028
에 의하여 수행되며, 여기서, 상기 m, n은 중간 단계인 MB이 취하는 8x8 블록들의 가로축, 세로축 좌표를 가리키고 상기 k, l은 2x2 MB들 안의 (m, n)번째 매크로블록에 대응하는 4x4 블록들의 가로축, 세로축 좌표를 지칭하는 것을 특징으로 하는 영상 축소 트랜스코딩 방법.
The motion vector readjustment is
Figure 112005064547915-pat00028
Where m and n are the horizontal and vertical coordinates of the 8x8 blocks taken by the intermediate MB and k and l are the 4x4 blocks corresponding to the (m, n) th macroblocks in the 2x2 MBs. An image reduction transcoding method characterized by referring to a horizontal axis and a vertical axis coordinate.
제1항에 있어서,The method of claim 1, 상기 (c) 단계는Step (c) is 정수단위 움직임 벡터를 중심으로 그 주위의 정수단위 ±3개의 이웃 화소(neighbor pixel)에 대하여 정수단위 움직임 벡터를 검색하는 단계; 및Retrieving an integer unit motion vector with respect to an integer unit ± 3 neighboring pixels around the integer unit motion vector; And 상기 검색한 정수단위 움직임 벡터주변의 1/2 화소 단위의 ±1개의 이웃 화소에 대한 움직임 벡터를 검색하는 단계를 포함하는 것을 특징으로 하는 영상 축소 트랜스코딩 방법.And retrieving a motion vector of ± 1 neighboring pixels in a unit of 1/2 pixel around the retrieved integer unit motion vector. 제1 방식에 따른 제1 매크로블록을 제2 방식에 따른 제2 매크로블록으로 변환하기 위한 영상 축소 트랜스 코딩 방법에 있어서,An image reduction transcoding method for converting a first macroblock according to a first scheme into a second macroblock according to a second scheme, 미리 지정된 크기의 상기 제1 매크로블록에 포함된 매크로블록들의 유형에 의해 미리 설정된 조건에 의해 결정되는 상기 제2 방식에 따른 후보 블록 모드 중 어느 하나를 상기 제2 매크로블록의 블록 모드로 결정하고, 상기 결정된 블록 모드로 변환하는 단계; 및Determine one of the candidate block modes according to the second scheme as the block mode of the second macroblock, which is determined by a condition preset by a type of macroblocks included in the first macroblock of a predetermined size, Converting to the determined block mode; And 상기 제1 매크로블록의 변환이 완료되면, 상기 제2 매크로블록에 대한 움직임 벡터 재조정을 수행하는 단계를 포함하되,When the conversion of the first macroblock is completed, performing a motion vector readjustment for the second macroblock, 상기 미리 설정된 조건은, 상기 제1 매크로블록에 둘 이하의 인트라 매크로블록이 포함된 경우 상기 제1 매크로블록에 포함된 각 매크로블록의 SAD(Sum of Absolute Difference) 비교 방식을 이용하여 스킵(SKIP) 모드, 인터(Inter) 16x16 모드, 인터 8x8 모드 중 하나 이상을 포함하는 상기 후보 블록 모드 중 어느 하나로 결정하고,The preset condition may be skipped using a sum of absolute difference (SAD) comparison method of each macroblock included in the first macroblock when two or less intra macroblocks are included in the first macroblock. Determine any one of the candidate block modes including one or more of a mode, an Inter 16x16 mode, and an Inter 8x8 mode, 상기 SAD 비교 방식은, 미리 설정된 두 개의 인터 블록의 SAD를 산출하여 최소 인터 SAD를 결정한 후, 상기 최소 인터 SAD를 미리 설정된 인트라 블록의 인트라 SAD와 비교하여 최소의 SAD에 상응하는 블록 모드로 변환하는 것을 특징으로 하는 영상 축소 트랜스코딩 방법.The SAD comparison method determines a minimum inter SAD by calculating SADs of two preset inter blocks, and then converts the minimum inter SADs into a block mode corresponding to the minimum SAD by comparing the minimum SADs with a preset intra block. Image reduction transcoding method, characterized in that. 제10항에 있어서,The method of claim 10, 상기 미리 설정된 조건은 상기 제1 매크로블록에 셋 이상의 인트라 매크로블록이 포함된 경우 상기 제2 방식에 따른 한 개의 인트라 매크로블록으로 블록 모드를 결정하는 것을 특징으로 하는 영상 축소 트랜스코딩 방법.The preset condition is a video reduction transcoding method characterized in that the block mode is determined by one intra macroblock according to the second method when three or more intra macroblocks are included in the first macroblock. 삭제delete 제10항에 있어서,The method of claim 10, 상기 미리 설정된 조건은 상기 제1 매크로블록이 인터 매크로블록들로만 구성되고, 상기 인터 매크로블록들 중 둘 이하의 인터 16x16 매크로블록이 포함된 경우, 각 인터 매크로블록의 SAD 비교 방식을 이용하여 상기 후보 블록 모드 중 어느 하나로 결정하는 것을 특징으로 하는 영상 축소 트랜스코딩 방법.The preset condition is that if the first macroblock is composed of only inter macroblocks and two or less inter 16x16 macroblocks among the inter macroblocks are included, the candidate block using the SAD comparison method of each inter macroblock. An image reduction transcoding method, characterized in that determined by any one of the modes. 제10항 또는 제13항에 있어서,The method according to claim 10 or 13, 각 매크로블록의 움직임 벡터간의 차분값을 산출한 후, 상기 차분값이 미리 설정된 문턱값이하인 경우 상기 인터 16x16 모드 또는 상기 스킵 모드 중 어느 하나로 결정하되, 그렇지 않은 경우에는 상기 인터 8x8 모드로 결정하는 것을 특징으로 하는 영상 축소 트랜스코딩 방법.After calculating the difference value between the motion vectors of each macroblock, if the difference value is less than or equal to a predetermined threshold value, one of the inter 16x16 mode and the skip mode is determined, but otherwise, the inter 8x8 mode is determined. An image reduction transcoding method. 삭제delete 제10항에 있어서,The method of claim 10, 상기 인트라 매크로블록의 SAD는,SAD of the intra macroblock, 수학식
Figure 112007012880167-pat00053
에 의하여 매크로블록의 화소값 평균이 산출되고-여기서, 상기 orgij는 MB내에 있는 각각의 16x16 화소들의 값이고 상기 MBmean은 MB내에 있는 화소값들의 평균을 지칭함-,
Equation
Figure 112007012880167-pat00053
By means of which the pixel value average of the macroblock is calculated, wherein org ij is the value of each 16x16 pixels in MB and MB mean refers to the average of pixel values in MB;
수학식
Figure 112007012880167-pat00054
에 의해 상기 인트라 매크로블록의 SAD가 산출되는 것을 특징으로 하는 영상 축소 트랜스코딩 방법.
Equation
Figure 112007012880167-pat00054
SAD of the intra macroblock is calculated by using the image reduction transcoding method.
제10항에 있어서,The method of claim 10, 상기 움직임 벡터 재조정은 수학식
Figure 112005064547915-pat00031
를 이용하여 수행되며, 상기 m, n은 중간 단계인 MB이 취하는 8x8 블록들의 가로축, 세로축 좌표를 가리키고 상기 k, l은 2x2 MB들 안의 (m, n)번째 매크로블록에 대응하는 4x4 블록들의 가로축, 세로축 좌표를 지칭하는 것을 특징으로 하는 영상 축소 트랜스코딩 방법.
The motion vector readjustment is
Figure 112005064547915-pat00031
M and n denote horizontal and vertical coordinates of the 8x8 blocks taken by the intermediate MB, and k and l denote the horizontal axes of the 4x4 blocks corresponding to the (m, n) th macroblocks in the 2x2 MBs. And transversal transcoding method according to the vertical axis.
제1 방식에 따른 제1 매크로블록을 제2 방식에 따른 제2 매크로블록으로 변환하기 위한 영상 축소 트랜스 코딩 장치에 있어서,An image reduction transcoding apparatus for converting a first macroblock according to a first scheme into a second macroblock according to a second scheme, 상기 제1 매크로블록에 포함된 인트라 매크로블록의 개수가 미리 설정된 제1 조건을 충족하면, 상기 제2 매크로블록의 블록 모드를 결정하고, 상기 결정된 블록 모드로 변환하는 제1 변환부; A first converter determining a block mode of the second macroblock and converting the block mode to the determined block mode when the number of intra macroblocks included in the first macroblock satisfies a preset first condition; 상기 제1 매크로블록에 포함된 인터 매크로블록의 개수가 제2 조건을 충족하면, 상기 제2 매크로블록의 블록 모드를 결정하고, 상기 결정된 블록 모드로 변환하는 제2 변환부; 및A second converter configured to determine a block mode of the second macroblock and convert to the determined block mode when the number of inter macroblocks included in the first macroblock satisfies a second condition; And 상기 제1 매크로블록의 변환이 완료되면, 상기 제2 매크로블록에 대한 움직임 벡터 재조정을 수행하는 움직임 벡터 재조정부를 포함하되,Comprising a motion vector readjustment unit for performing a motion vector readjustment for the second macroblock when the conversion of the first macroblock is completed, 상기 제1 변환부는 상기 제1 매크로블록이 모두 인트라 매크로블록인 경우 한 개의 인트라 매크로블록으로 변환하고, 상기 제1 매크로블록에 포함된 매크로블록들 중 일부가 인트라 매크로블록인 경우 각 매크로블록의 SAD 비교 방식을 이용하여 블록 모드를 결정하며,The first converter converts one intra macroblock when all of the first macroblocks are intra macroblocks, and SAD of each macroblock when some of the macroblocks included in the first macroblock are intra macroblocks. The block mode is determined using a comparison method, 상기 제2 변환부는 상기 인터 매크로블록의 개수가 미리 설정된 개수 이상인 경우 및 움직임 벡터간의 차분값을 산출하여, 상기 차분값이 미리 설정된 이하인 경우는 인터 모드로 변환하고, 그 외의 경우는 상기 제1 매크로블록의 SAD 비교 방식을 이용하여 블록 모드를 결정하여 상기 결정된 블록모드로 변환하고,The second converter calculates a difference value between the motion vectors when the number of the inter macroblocks is equal to or larger than a preset number, and converts the inter macroblock to an inter mode when the difference value is smaller than or equal to a preset value. Determining the block mode using the SAD comparison method of the block to convert to the determined block mode, 상기 SAD 비교 방식은, 미리 설정된 두 개의 인터 블록의 SAD를 산출하여 최소 인터 SAD를 결정한 후, 상기 최소 인터 SAD를 미리 설정된 인트라 블록의 인트라 SAD와 비교하여 최소의 SAD에 상응하는 블록 모드로 변환하는 것을 특징으로 하는 영상 축소 트랜스 코딩 장치.The SAD comparison method determines a minimum inter SAD by calculating SADs of two preset inter blocks, and then converts the minimum inter SADs into a block mode corresponding to the minimum SAD by comparing the minimum SADs with a preset intra block. An image reduction transcoding device, characterized in that. 삭제delete 삭제delete 삭제delete 제1 방식에 따른 제1 매크로블록을 제2 방식에 따른 제2 매크로블록으로 변환하기 위한 영상 축소 트랜스 코딩 장치에 있어서,An image reduction transcoding apparatus for converting a first macroblock according to a first scheme into a second macroblock according to a second scheme, 미리 지정된 크기의 상기 제1 매크로블록에 포함된 매크로블록들의 유형에 의해 미리 설정된 조건에 의해 결정되는 상기 제2 방식에 따른 후보 블록 모드 중 어느 하나를 상기 제2 매크로블록의 블록 모드로 결정하고, 상기 결정된 블록 모드로 변환하는 변환부; 및Determine one of the candidate block modes according to the second scheme as the block mode of the second macroblock, which is determined by a condition preset by a type of macroblocks included in the first macroblock of a predetermined size, A conversion unit for converting to the determined block mode; And 상기 제1 매크로블록의 변환이 완료되면, 상기 제2 매크로블록에 대한 움직임 벡터 재조정을 수행하는 움직임 벡터 재조정부를 포함하되,Comprising a motion vector readjustment unit for performing a motion vector readjustment for the second macroblock when the conversion of the first macroblock is completed, 상기 미리 설정된 조건은, 상기 제1 매크로블록에 둘 이하의 인트라 매크로블록이 포함된 경우 상기 제1 매크로블록에 포함된 각 매크로블록의 SAD(Sum of Absolute Difference) 비교 방식을 이용하여 스킵(SKIP) 모드, 인터(Inter) 16x16 모드, 인터 8x8 모드 중 하나 이상을 포함하는 상기 후보 블록 모드 중 어느 하나로 결정하고,The preset condition may be skipped using a sum of absolute difference (SAD) comparison method of each macroblock included in the first macroblock when two or less intra macroblocks are included in the first macroblock. Determine any one of the candidate block modes including one or more of a mode, an Inter 16x16 mode, and an Inter 8x8 mode, 상기 SAD 비교 방식은, 미리 설정된 두 개의 인터 블록의 SAD를 산출하여 최소 인터 SAD를 결정한 후, 상기 최소 인터 SAD를 미리 설정된 인트라 블록의 인트라 SAD와 비교하여 최소의 SAD에 상응하는 블록 모드로 변환하는 것을 특징으로 하는 영상 축소 트랜스 코딩 장치.The SAD comparison method determines a minimum inter SAD by calculating SADs of two preset inter blocks, and then converts the minimum inter SADs into a block mode corresponding to the minimum SAD by comparing the minimum SADs with a preset intra block. An image reduction transcoding device, characterized in that. 제22항에 있어서,The method of claim 22, 상기 미리 설정된 조건은 상기 제1 매크로블록에 셋 이상의 인트라 매크로블록이 포함된 경우 상기 제2 방식에 따른 한 개의 인트라 매크로블록으로 블록 모드를 결정하는 것을 특징으로 하는 영상 축소 트랜스코딩 장치.The preset condition is an image reduction transcoding device, characterized in that the block mode is determined by one intra macroblock according to the second method when three or more intra macroblocks are included in the first macroblock. 삭제delete 제22항에 있어서,The method of claim 22, 상기 미리 설정된 조건은 상기 제1 매크로블록이 인터 매크로블록들로만 구성되고, 상기 인터 매크로블록들 중 둘 이하의 인터 16x16 매크로블록이 포함된 경우, 각 인터 매크로블록의 SAD 비교 방식을 이용하여 상기 후보 블록 모드 중 어느 하나로 결정하는 것을 특징으로 하는 영상 축소 트랜스코딩 장치.The preset condition is that if the first macroblock is composed of only inter macroblocks and two or less inter 16x16 macroblocks among the inter macroblocks are included, the candidate block using the SAD comparison method of each inter macroblock. An image reduction transcoding device, characterized in that determined by any one of the modes. 제22항 또는 제25항에 있어서,The method of claim 22 or 25, 상기 변환부는 각 매크로블록의 움직임 벡터간의 차분값을 산출한 후, 상기 차분값이 미리 설정된 문턱값이하인 경우 상기 인터 16x16 모드 또는 상기 스킵 모드 중 어느 하나로 결정하되, 그렇지 않은 경우에는 상기 인터 8x8 모드로 결정하는 것을 특징으로 하는 영상 축소 트랜스코딩 장치.After calculating the difference value between the motion vectors of each macroblock, the converter determines one of the inter 16x16 mode and the skip mode when the difference value is less than or equal to a preset threshold. And a video reduction transcoding device. 제22항에 있어서,The method of claim 22, 상기 인트라 매크로블록의 SAD는,SAD of the intra macroblock, 수학식
Figure 112007012880167-pat00055
에 의하여 매크로블록의 화소값 평균이 산출되고-여기서, 상기 orgij는 MB내에 있는 각각의 16x16 화소들의 값이고 상기 MBmean은 MB내에 있는 화소값들의 평균을 지칭함-,
Equation
Figure 112007012880167-pat00055
By means of which the pixel value average of the macroblock is calculated, wherein org ij is the value of each 16x16 pixels in MB and MB mean refers to the average of pixel values in MB;
수학식
Figure 112007012880167-pat00056
에 의해 상기 인트라 매크로블록의 SAD가 산출되는 것을 특징으로 하는 영상 축소 트랜스코딩 장치.
Equation
Figure 112007012880167-pat00056
The SAD of the intra macroblock is calculated by the apparatus.
제22항에 있어서,The method of claim 22, 상기 움직임 벡터 재조정은 수학식
Figure 112005064547915-pat00034
를 이용하여 수행되며, 상기 m, n은 중간 단계인 MB이 취하는 8x8 블록들의 가로축, 세로축 좌표를 가리키고 상기 k, l은 2x2 MB들 안의 (m, n)번째 매크로블록에 대응하는 4x4 블록들의 가로축, 세로축 좌표를 지칭하는 것을 특징으로 하는 영상 축소 트랜스코딩 장치.
The motion vector readjustment is
Figure 112005064547915-pat00034
M and n denote horizontal and vertical coordinates of the 8x8 blocks taken by the intermediate MB, and k and l denote the horizontal axes of the 4x4 blocks corresponding to the (m, n) th macroblocks in the 2x2 MBs. And a vertical axis coordinate.
KR1020050107224A 2004-11-30 2005-11-09 Method and device for video down-sampling transcoding KR100718468B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US11/289,649 US7933336B2 (en) 2004-11-30 2005-11-30 Image down-sampling transcoding method and device
EP05026094A EP1662799A3 (en) 2004-11-30 2005-11-30 Video down-sampling transcoding method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20040099400 2004-11-30
KR1020040099400 2004-11-30

Publications (2)

Publication Number Publication Date
KR20060060567A KR20060060567A (en) 2006-06-05
KR100718468B1 true KR100718468B1 (en) 2007-05-16

Family

ID=37157366

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050107224A KR100718468B1 (en) 2004-11-30 2005-11-09 Method and device for video down-sampling transcoding

Country Status (1)

Country Link
KR (1) KR100718468B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100989437B1 (en) 2008-12-12 2010-10-26 충북대학교 산학협력단 Adaptive coding mode decision method using the motion vector map in H.264/AVC

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101336736B1 (en) * 2008-08-22 2013-12-04 정태우 Method for identifing object in video

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020057525A (en) * 2001-01-05 2002-07-11 엘지전자 주식회사 Apparatus for transcoding video
JP2003309851A (en) 2002-04-16 2003-10-31 Mitsubishi Electric Corp Video data converter and video data converting method
KR20050062836A (en) * 2003-12-18 2005-06-28 학교법인 대양학원 Transcoding method and apparatus
KR20050091369A (en) * 2004-03-12 2005-09-15 학교법인 대양학원 Video transcoding method and apparatus, and motion vector interpolation method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020057525A (en) * 2001-01-05 2002-07-11 엘지전자 주식회사 Apparatus for transcoding video
JP2003309851A (en) 2002-04-16 2003-10-31 Mitsubishi Electric Corp Video data converter and video data converting method
KR20050062836A (en) * 2003-12-18 2005-06-28 학교법인 대양학원 Transcoding method and apparatus
KR20050091369A (en) * 2004-03-12 2005-09-15 학교법인 대양학원 Video transcoding method and apparatus, and motion vector interpolation method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100989437B1 (en) 2008-12-12 2010-10-26 충북대학교 산학협력단 Adaptive coding mode decision method using the motion vector map in H.264/AVC

Also Published As

Publication number Publication date
KR20060060567A (en) 2006-06-05

Similar Documents

Publication Publication Date Title
EP1486065B1 (en) Method for coding motion in a video sequence
EP1662799A2 (en) Video down-sampling transcoding method and device
KR101538704B1 (en) Method and apparatus for coding and decoding using adaptive interpolation filters
US20050114093A1 (en) Method and apparatus for motion estimation using variable block size of hierarchy structure
EP1575301A2 (en) V ideo transcoding method and apparatus
US20020080877A1 (en) Method and system for video transcoding
KR20050061762A (en) Method of encoding mode determination and motion estimation, and encoding apparatus
EP1662800A1 (en) Image down-sampling transcoding method and device
Yang et al. Generalized rate-distortion optimization for motion-compensated video coders
Wang et al. Adaptive downsampling video coding with spatially scalable rate-distortion modeling
KR101432779B1 (en) Video Coding Method and Apparatus by Using Motion Compensation Frame Selective Filtering and Inter Prediction Method and Apparatus Therefor
KR100718468B1 (en) Method and device for video down-sampling transcoding
Luthra et al. Overview of the H. 264/AVC video coding standard
KR20130085088A (en) Method for fast mode decision in scalable video coding and apparatus thereof
Raja et al. Performance comparison of advanced video coding H. 264 standard with baseline H. 263 and H. 263+ standards
Kumar et al. K-Multi Constraint Shortest Paths for Video Compression in Handheld Devices Using Improved Quadtree based Motion Estimation
Abd Al-azeez et al. Optimal quality ultra high video streaming based H. 265
Lee et al. MPEG-4 to H. 264 transcoding using macroblock statistics
CN109495745B (en) Lossless compression decoding method based on inverse quantization/inverse transformation
Halbach et al. Concepts and performance of next-generation video compression standardization
CA2895855C (en) Video encoding and decoding apparatus and method using quantization in sub-blocks
Zhang et al. H. 264/AVC and transcoding for multimedia adaptation
KR20040093253A (en) 16x16 intra luma prediction mode determining method and apparatus
KR100718467B1 (en) Method and device for video down-sampling transcoding
He et al. Improved fine granular scalable coding with interlayer prediction

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

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20140428

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20150422

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee