KR101365566B1 - Method and apparatus for encoding and decoding image - Google Patents

Method and apparatus for encoding and decoding image Download PDF

Info

Publication number
KR101365566B1
KR101365566B1 KR1020070001161A KR20070001161A KR101365566B1 KR 101365566 B1 KR101365566 B1 KR 101365566B1 KR 1020070001161 A KR1020070001161 A KR 1020070001161A KR 20070001161 A KR20070001161 A KR 20070001161A KR 101365566 B1 KR101365566 B1 KR 101365566B1
Authority
KR
South Korea
Prior art keywords
block
mode
decoding
luminance
encoding
Prior art date
Application number
KR1020070001161A
Other languages
Korean (ko)
Other versions
KR20080064354A (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 KR1020070001161A priority Critical patent/KR101365566B1/en
Publication of KR20080064354A publication Critical patent/KR20080064354A/en
Application granted granted Critical
Publication of KR101365566B1 publication Critical patent/KR101365566B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • 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

Abstract

본 발명에 의한 영상 부호화 방법과 장치는, 휘도 블록을 상기 휘도 블록마다 미리 설정된 부호화 모드에 따라 부호화하고, 색차 블록을 상기 색차 블록에 대응되는 하나 이상의 상기 휘도 블록들의 부호화 모드들을 고려하여 부호화하고, 본 발명에 의한 영상 복호화 방법과 장치는, 휘도 블록을 상기 휘도 블록마다 미리 설정된 복호화 모드에 따라 복호화하고, 색차 블록을 상기 색차 블록에 대응되는 하나 이상의 상기 휘도 블록들의 복호화 모드들을 고려하여 복호화하므로, 본 발명은, 압축(또는, 복원)하고자 하는 영상이 휘도 성분과 색차 성분으로 분리되어 표현된 경우, 색차 성분의 부호화 모드(또는, 복호화 모드)를 결정하는 다양한 방안을 제공함은 물론, 휘도 성분과 색차 성분의 부호화(또는, 복호화)시 움직임 벡터가 고려되는 경우에 색차 성분 영상의 움직임 벡터의 다양한 결정 방안을 제공하는 효과를 갖는다.An image encoding method and apparatus according to the present invention may encode a luminance block according to a preset encoding mode for each luminance block, encode a chrominance block in consideration of encoding modes of one or more luminance blocks corresponding to the chrominance block, The image decoding method and apparatus according to the present invention decode a luminance block according to a decoding mode preset for each luminance block, and decode a chrominance block in consideration of decoding modes of one or more of the luminance blocks corresponding to the chrominance block. According to the present invention, when the image to be compressed (or reconstructed) is expressed separately from the luminance component and the chrominance component, the present invention provides various methods of determining an encoding mode (or a decoding mode) of the chrominance component. Color difference when a motion vector is taken into account when coding (or decoding) a color difference component Minutes, has the effect of providing a variety of ways of determining the motion vector of the image.

Description

영상 부호화 및 복호화 방법과 장치{Method and apparatus for encoding and decoding image} Image encoding and decoding method and apparatus {Method and apparatus for encoding and decoding image}

도 1은 영상 부호화 및 복호화 과정을 개괄적으로 설명하기 위한 블록도이다.1 is a block diagram for explaining an image encoding and decoding process.

도 2는 도 1에 도시된 부호화부(110)를 설명하기 위한 일 실시예(110A)의 블록도이다. FIG. 2 is a block diagram of an embodiment 110A for explaining the encoding unit 110 shown in FIG.

도 3은 도 1에 도시된 복호화부(120)를 설명하기 위한 일 실시예(120A)의 블록도이다. FIG. 3 is a block diagram of an embodiment 120A for explaining the decoding unit 120 shown in FIG.

도 4a 내지 도 4c는 4:2:0 포맷, 4:2:2 포맷, 4:4:4 포맷을 설명하기 위한 도면들이다.4A to 4C are views for explaining a 4: 2: 0 format, a 4: 2: 2 format, and a 4: 4: 4 format.

도 5는 본 발명에 의한 영상 부호화 장치를 설명하기 위한 블록도이다.5 is a block diagram for explaining an image encoding apparatus according to the present invention.

도 6은 도 5에 도시된 제2 부호화부(514)를 설명하기 위한 일 실시예(514A)의 블록도이다.FIG. 6 is a block diagram of an embodiment 514A for describing the second encoder 514 illustrated in FIG. 5.

도 7 내지 도 9는 움직임 정보를 설명하기 위한 도면들이다. 7 to 9 are diagrams for describing motion information.

도 10은 본 발명에 의한 영상 복호화 장치를 설명하기 위한 블록도이다. 10 is a block diagram illustrating an image decoding apparatus according to the present invention.

도 11은 도 10에 도시된 제2 복호화부(1040)를 설명하기 위한 일 실시예(1040A)의 블록도이다.FIG. 11 is a block diagram of an embodiment 1040A for describing the second decoder 1040 illustrated in FIG. 10.

도 12는 영상을 1MV 방식으로 부호화/복호화하는 원리를 설명하기 위한 도면들이다. FIG. 12 is a diagram for explaining a principle of encoding / decoding an image using a 1MV scheme.

도 13은 본 발명에 의한 영상 부호화 방법을 설명하기 위한 제1 실시예의 플로우챠트이다. 13 is a flowchart of the first embodiment for explaining a video encoding method according to the present invention.

도 14는 본 발명에 의한 영상 복호화 방법을 설명하기 위한 제1 실시예의 플로우챠트이다. 14 is a flowchart of a first embodiment for explaining a video decoding method according to the present invention.

도 15 내지 도 17은 영상을 4MV 방식으로 부호화/복호화하는 원리를 설명하기 위한 제1 실시예의 도면들이다. 15 to 17 are diagrams of a first embodiment for explaining a principle of encoding / decoding an image using a 4MV scheme.

도 18은 본 발명에 의한 영상 부호화 방법을 설명하기 위한 제2 실시예의 플로우챠트이다. 18 is a flowchart of a second embodiment for explaining a video encoding method according to the present invention.

도 19는 본 발명에 의한 영상 복호화 방법을 설명하기 위한 제2 실시예의 플로우챠트이다. 19 is a flowchart of a second embodiment for explaining a video decoding method according to the present invention.

도 20은 영상을 4MV 방식으로 부호화/복호화하는 원리를 설명하기 위한 제2 실시예의 도면들이다. 20 is a diagram for describing a principle of encoding / decoding an image using a 4MV scheme.

도 21은 본 발명에 의한 영상 부호화 방법을 설명하기 위한 제3 실시예의 플로우챠트이다. 21 is a flowchart of the third embodiment for explaining a video encoding method according to the present invention.

도 22는 본 발명에 의한 영상 복호화 방법을 설명하기 위한 제3 실시예의 플로우챠트이다. 22 is a flowchart of a third embodiment for explaining a video decoding method according to the present invention.

도 23은 영상을 4MV 방식으로 부호화/복호화하는 원리를 설명하기 위한 제3 실시예의 도면들이다.FIG. 23 is a diagram for describing a principle of encoding / decoding an image using a 4MV scheme.

도 24는 본 발명에 의한 영상 부호화 방법을 설명하기 위한 제4 실시예의 플로우챠트이다.24 is a flowchart of the fourth embodiment for explaining a video encoding method according to the present invention.

도 25는 본 발명에 의한 영상 복호화 방법을 설명하기 위한 제4 실시예의 플로우챠트이다.25 is a flowchart of the fourth embodiment for explaining a video decoding method according to the present invention.

도 26은 영상을 4MV 방식으로 부호화/복호화하는 원리를 설명하기 위한 제4 실시예의 도면들이다.FIG. 26 is a diagram for explaining a principle of encoding / decoding an image using a 4MV scheme.

본 발명은 영상 압축 및 복원에 관한 것으로, 보다 상세하게는, 휘도 블록과 색차 블록으로 이루어진 영상을 압축 및 복원하기 위한 영상 부호화 및 복호화 방법과 장치에 관한 것이다. The present invention relates to image compression and decompression, and more particularly, to an image encoding and decoding method and apparatus for compressing and decompressing an image composed of a luminance block and a color difference block.

압축하고자 하는 영상이RGB(R : Red, G: Green, B: Blue) 컬러 공간에서 표현된 영상이라면, 영상을 이루는 세 가지 컬러(R, G, B) 성분의 해상도들은 일반적으로 서로 동일하다. 이는, 그 세 가지 컬러가 동일하게 중요하기 때문이다. If the image to be compressed is an image expressed in an RGB (R: Red, G: Green, B: Blue) color space, the resolutions of the three color (R, G, B) components of the image are generally the same. This is because the three colors are equally important.

한편, 인간의 시각 시스템(HVS : Human Visual System)은 색차(chroma)보다 휘도(luma)에 민감하다. 이 점을 이용하여, 휘도 성분을 색차 성분보다 높은 해상도로 표현함으로써, 영상을 표현할 수도 있다. On the other hand, a human visual system (HVS) is more sensitive to luminance (luma) than chroma. By using this point, an image can be expressed by expressing the luminance component with a resolution higher than that of the color difference component.

이와 같이, 휘도 성분과 색차 성분이 분리되어 표현된 영상을 압축 및 복원함에 있어, 휘도 성분과 색차 성분 각각을 어떠한 부호화 모드(또는, 복호화 모드) 에 따라 부호화(또는, 복호화)할지가 문제되고 있다. 이와 관련하여, 휘도 성분과 색차 성분의 부호화(또는, 복호화)시 움직임 벡터가 고려되는 경우, 그 고려되는 움직임 벡터를 어떻게 결정할지도 함께 문제되고 있다.As described above, in compressing and restoring an image in which the luminance component and the chrominance component are expressed separately, it is a problem to encode (or decode) each of the luminance component and the chrominance component according to an encoding mode (or decoding mode). . In this regard, when a motion vector is considered in encoding (or decoding) a luminance component and a chrominance component, how to determine the motion vector under consideration is also a problem.

본 발명이 이루고자 하는 제1 기술적 과제는, 하나 이상의 휘도 블록들의 복호화 모드들을 고려하여 결정되는 복호화 모드에 따라 색차 블록을 복호화하는 영상 복호화 방법 및 장치를 제공하는 데 있다.A first aspect of the present invention is to provide an image decoding method and apparatus for decoding a chrominance block according to a decoding mode determined in consideration of decoding modes of one or more luminance blocks.

본 발명이 이루고자 하는 제2 기술적 과제는, 하나 이상의 휘도 블록들의 부호화 모드들을 고려하여 결정되는 부호화 모드에 따라 색차 블록을 부호화하는 영상 부호화 방법 및 장치를 제공하는 데 있다.Another object of the present invention is to provide an image encoding method and apparatus for encoding a color difference block according to an encoding mode determined by considering encoding modes of one or more luminance blocks.

본 발명이 이루고자 하는 제3 기술적 과제는, 하나 이상의 휘도 블록들의 움직임 벡터들을 고려하여 결정되는 움직임 벡터를 고려하여 색차 블록을 복호화하는 영상 복호화 방법 및 장치를 제공하는 데 있다.Another object of the present invention is to provide an image decoding method and apparatus for decoding a chrominance block in consideration of a motion vector determined by considering motion vectors of one or more luminance blocks.

본 발명이 이루고자 하는 제4 기술적 과제는, 하나 이상의 휘도 블록들의 움직임 벡터들을 고려하여 결정되는 움직임 벡터를 고려하여 색차 블록을 부호화하는 영상 부호화 방법 및 장치를 제공하는 데 있다.A fourth aspect of the present invention is to provide an image encoding method and apparatus for encoding a chrominance block in consideration of a motion vector determined by considering motion vectors of one or more luminance blocks.

상기 제1 기술적 과제를 이루기 위해, 본 발명에 의한 영상 복호화 방법은, 휘도 블록을 상기 휘도 블록마다 미리 설정된 복호화 모드에 따라 복호화하는 단계; 및 색차 블록을 상기 색차 블록에 대응되는 하나 이상의 상기 휘도 블록들의 복호화 모드들을 고려하여 복호화하는 단계를 포함하는 것이 바람직하다.In order to achieve the first technical problem, an image decoding method according to the present invention includes: decoding a luminance block according to a decoding mode preset for each luminance block; And decoding the chrominance block in consideration of decoding modes of one or more of the luminance blocks corresponding to the chrominance block.

상기 제1 기술적 과제를 이루기 위해, 본 발명에 의한 영상 복호화 장치는, 휘도 블록을 상기 휘도 블록마다 미리 설정된 복호화 모드에 따라 복호화하는 제1 복호화부; 및 색차 블록을 상기 색차 블록에 대응되는 하나 이상의 상기 휘도 블록들의 복호화 모드들을 고려하여 복호화하는 제2 복호화부를 포함하는 것이 바람직하다.In order to achieve the first technical problem, an image decoding apparatus according to the present invention includes: a first decoding unit decoding a luminance block according to a decoding mode preset for each luminance block; And a second decoder which decodes a color difference block in consideration of decoding modes of one or more of the luminance blocks corresponding to the color difference block.

상기 제2 기술적 과제를 이루기 위해, 본 발명에 의한 영상 부호화 방법은, 휘도 블록을 상기 휘도 블록마다 미리 설정된 부호화 모드에 따라 부호화하는 단계; 및 색차 블록을 상기 색차 블록에 대응되는 하나 이상의 상기 휘도 블록들의 부호화 모드들을 고려하여 부호화하는 단계를 포함하는 것이 바람직하다.In order to achieve the second technical problem, an image encoding method according to the present invention includes: encoding a luminance block according to a coding mode preset for each luminance block; And encoding the chrominance block in consideration of encoding modes of one or more of the luminance blocks corresponding to the chrominance block.

상기 제2 기술적 과제를 이루기 위해, 본 발명에 의한 영상 부호화 장치는, 휘도 블록을 상기 휘도 블록마다 미리 설정된 부호화 모드에 따라 부호화하는 제1 부호화부; 및 색차 블록을 상기 색차 블록에 대응되는 하나 이상의 상기 휘도 블록들의 부호화 모드들을 고려하여 부호화하는 제2 부호화부를 포함하는 것이 바람직하다.In order to achieve the second technical problem, an image encoding apparatus according to the present invention includes: a first encoding unit encoding a luminance block according to a coding mode preset for each luminance block; And a second encoder which encodes a color difference block in consideration of encoding modes of one or more luminance blocks corresponding to the color difference block.

상기 제3 기술적 과제를 이루기 위해, 본 발명에 의한 영상 복호화 방법은, 색차 블록의 움직임 벡터를 상기 색차 블록에 대응되는 하나 이상의 휘도 블록들의 움직임 벡터들을 고려하여 결정하는 단계; 및 상기 색차 블록을 상기 결정된 움직임 벡터를 고려하여 복호화하는 단계를 포함하는 것이 바람직하다.According to an aspect of the present invention, there is provided a method of decoding an image, comprising: determining a motion vector of a chrominance block in consideration of motion vectors of one or more luminance blocks corresponding to the chrominance block; And decoding the chrominance block in consideration of the determined motion vector.

상기 제3 기술적 과제를 이루기 위해, 본 발명에 의한 영상 복호화 장치는, 색차 블록의 움직임 벡터를 상기 색차 블록에 대응되는 하나 이상의 휘도 블록들의 움직임 벡터들을 고려하여 결정하는 움직임벡터 결정부; 및 상기 색차 블록을 상기 결정된 움직임 벡터를 고려하여 복호화하는 색차성분 복호화부를 포함하는 것이 바람직하다.In order to achieve the third technical problem, an image decoding apparatus according to the present invention includes: a motion vector determiner configured to determine a motion vector of a color difference block in consideration of motion vectors of one or more luminance blocks corresponding to the color difference block; And a color difference component decoder which decodes the color difference block in consideration of the determined motion vector.

상기 제4 기술적 과제를 이루기 위해, 본 발명에 의한 영상 부호화 방법은, 색차 블록의 움직임 벡터를 상기 색차 블록에 대응되는 하나 이상의 휘도 블록들의 움직임 벡터들을 고려하여 결정하는 단계; 및 상기 색차 블록을 상기 결정된 움직임 벡터를 고려하여 부호화하는 단계를 포함하는 것이 바람직하다.According to an aspect of the present invention, there is provided a method of encoding an image, the method comprising: determining a motion vector of a chrominance block by considering motion vectors of one or more luminance blocks corresponding to the chrominance block; And encoding the chrominance block in consideration of the determined motion vector.

상기 제4 기술적 과제를 이루기 위해, 본 발명에 의한 영상 부호화 장치는, 색차 블록의 움직임 벡터를 상기 색차 블록에 대응되는 하나 이상의 휘도 블록들의 움직임 벡터들을 고려하여 결정하는 움직임벡터 결정부; 및 상기 색차 블록을 상기 결정된 움직임 벡터를 고려하여 부호화하는 색차성분 부호화부를 포함하는 것이 바람직하다.In order to achieve the fourth technical problem, an image encoding apparatus according to the present invention includes: a motion vector determiner configured to determine a motion vector of a chrominance block in consideration of motion vectors of one or more luminance blocks corresponding to the chrominance block; And a color difference component encoder which encodes the color difference block in consideration of the determined motion vector.

본 발명과 본 발명의 동작상의 이점 및 본 발명의 실시에 의하여 달성되는 목적을 충분히 이해하기 위해서는 본 발명의 바람직한 실시예를 예시하는 첨부 도면 및 그 첨부 도면을 설명하는 내용을 참조하여야만 한다.For a better understanding of the present invention, operational advantages of the present invention and the objects achieved by the practice of the present invention, reference should be made to the accompanying drawings which illustrate preferred embodiments of the present invention and to the description of the attached drawings.

이하, 본 발명에 의한 영상 부호화 및 복호화 방법과 장치를 첨부한 도면들을 참조하여 다음과 같이 설명한다.Hereinafter, a video encoding and decoding method and apparatus according to the present invention will be described with reference to the accompanying drawings.

도 1은 영상 부호화 및 복호화 과정을 개괄적으로 설명하기 위한 블록도로서, 부호화부(110) 및 복호화부(120)로 이루어진다. FIG. 1 is a block diagram for explaining an image encoding and decoding process in detail, and includes a coding unit 110 and a decoding unit 120. FIG.

부호화부(110)는 입력단자 IN 1을 통해 입력된 영상을 부호화하여 비트스트림(bitstream)을 생성하고 이를 복호화부(120)에 전송한다. 여기서, 영상은 RGB 컬러 공간에서 표현된 영상인 것보다, 휘도 성분과 색차 성분이 분리되어 표현된 영상인 것이 바람직하다. 이 경우, 휘도 성분의 영상은 하나 이상의 휘도 블록으로 이루어지며, 색차 성분의 영상은 하나 이상의 색차 블록으로 이루어진다. 한편, 영상은 시간적 선후관계를 갖는 복수의 프레임(frame)으로 이루어진 것이 바람직하다. The encoding unit 110 encodes the image input through the input terminal IN 1 to generate a bitstream, and transmits the bitstream to the decoding unit 120. Here, it is preferable that the image is a representation of a luminance component and a color difference component rather than being expressed in an RGB color space. In this case, the image of the luminance component is composed of one or more luminance blocks, and the image of the chrominance component is composed of one or more color difference blocks. On the other hand, the image is preferably composed of a plurality of frames having temporal posterior relation.

복호화부(120)는 부호화부(110)로부터 전송된 비트스트림을 복호화하여 영상을 복원하고 이를 출력단자 OUT 1을 통해 출력한다. 만일, 부호화부(110)가 영상을 무손실(lossless) 압축하였다면, 복원된 영상은 입력단자 IN 1을 통해 입력된 영상과 완전 동일하게 된다. 이와 비슷하게, 부호화부(110)가 영상을 손실(lossy) 압축하였다면, 복원된 영상은 입력단자 IN 1을 통해 입력된 영상에 근사할 뿐 완전히 동일할 수는 없다. The decoding unit 120 decodes the bit stream transmitted from the encoding unit 110 to restore the image and outputs the decoded image through the output terminal OUT 1. If the encoding unit 110 compresses the image losslessly, the reconstructed image is completely identical to the image input through the input terminal IN 1. Similarly, if the encoding unit 110 compresses the image lossy, the reconstructed image can be approximated to the image input through the input terminal IN 1, but can not be completely the same.

이러한 부호화 및 복호화는 매크로블록(macroblock) 단위로 수행될 수 있다. 즉, 영상은 매크로블록 단위로 압축될 수 있으며, 매크로블록 단위로 복원될 수 있다. 여기서, 매크로블록은 하나 이상의 휘도 블록과 하나 이상의 색차 블록을 포함한다.Such encoding and decoding can be performed in units of macroblocks. That is, the image can be compressed in units of macroblocks, and can be restored in units of macroblocks. Here, the macroblock includes one or more luminance blocks and one or more color difference blocks.

도 2는 도 1에 도시된 부호화부(110)를 설명하기 위한 일 실시예(110A)의 블록도로서, 움직임 추정부(212), 참조영상 저장부(214), 움직임 보상부(216), 공간 변환부(218), 양자화부(220), 역 양자화부(222), 역 공간변환부(224), 재배열 부(226), 제로 부호화부(228), 및 엔트로피 부호화부(230)로 이루어질 수 있다. FIG. 2 is a block diagram of an embodiment 110A for describing the encoder 110 illustrated in FIG. 1, which includes a motion estimator 212, a reference image storage unit 214, a motion compensator 216, To the spatial transform unit 218, the quantizer 220, the inverse quantizer 222, the inverse spatial transform unit 224, the rearrangement unit 226, the zero encoder 228, and the entropy encoder 230. Can be done.

부호화부(110)는 입력단자 IN 2를 통해 입력된 영상을 인터(inter) 모드(mode)로 부호화할 수도 있고, 인트라(intra) 모드로 부호화할 수도 있다. 입력단자 IN 2는 도 1에 도시된 입력단자 IN 1과 동일하다. The encoding unit 110 may encode an image input through the input terminal IN 2 in an inter mode or an intra mode. The input terminal IN 2 is the same as the input terminal IN 1 shown in FIG.

여기서, 인터 모드란 움직임 보상을 사용하여 부호화(또는, 복호화)하는 방법을 의미하고, 인트라 모드란 움직임 보상을 사용하지 않고 부호화(또는, 복호화)하는 방법을 의미한다. Here, the inter mode refers to a method of encoding (or decoding) using motion compensation, and the intra mode refers to a method of encoding (or decoding) without using motion compensation.

부호화부(110)가 영상을 인터 모드로 부호화한다면, 움직임 추정부(212) 내지 엔트로피 부호화부(230) 모두가 동작한다. 그에 반해, 부호화부(110)가 영상을 인트라 모드로 부호화한다면, 움직임 추정부(212), 움직임 보상부(216), 역 양자화부(222), 및 역 공간변환부(224)는 동작하지 않는다. If the encoding unit 110 encodes an image in the inter mode, both the motion estimation unit 212 and the entropy encoding unit 230 operate. On the other hand, if the encoding unit 110 encodes the image into the intra mode, the motion estimation unit 212, the motion compensation unit 216, the inverse quantization unit 222, and the inverse spatial conversion unit 224 do not operate .

인터 모드에 따라 동작하는 부호화부(110)의 동작을 설명하면 다음과 같다. 설명의 편의상, 블록 기반(block-based) 움직임 보상(motion compensation)을 수행하는 부호화부(110)의 동작을 설명하도록 한다. The operation of the encoding unit 110 operating in the inter mode will be described below. For convenience of explanation, the operation of the encoding unit 110 that performs block-based motion compensation will be described.

움직임 추정부(212)는 관심 블록(단, 관심 블록은 m*n 블록이며, m, n은 자연수이고, m*n 블록은 m개의 화소(pixel)들이 n개의 열로 배열되어 있는 블록을 의미함)과 가장 일치하는(matching) m*n 블록을 참조 프레임(reference frame)내에서 찾는다. 이와 같은 과정을 통해 찾아진 블록을 예측 블록이라 명명한다. The motion estimation unit 212 refers to a block of interest (m * n blocks of interest, m and n are natural numbers, and m * n blocks are m rows of pixels arranged in n columns) ) In the reference frame, which is the closest matching m * n block. Blocks found through this process are called prediction blocks.

여기서, 관심 블록이란 현재 부호화하고자 하는 블록을 의미하며, 참조 프레임이란 이전에 부호화된 하나 이상의 프레임을 의미한다. 이러한 참조 프레임은 참 조영상 저장부(214)에 저장되어 있으며, 움직임 추정부(212)는 참조영상 저장부(214)에 저장된 참조 프레임을 독출하여 사용한다. Herein, the block of interest means a block to be coded at present, and the reference frame means one or more previously coded frames. The reference frame is stored in the reference image storage unit 214, and the motion estimation unit 212 reads and uses the reference frame stored in the reference image storage unit 214.

움직임 보상부(216)는 관심 블록에서 예측 블록을 감산함으로써, 오차 블록을 생성한다. 한편, 움직임 보상부(216)는 관심 블록의 예측 블록에 대한 상대적인 위치를 나타내는 벡터인 움직임 벡터(MV: motion vector)도 생성한다. The motion compensation unit 216 generates an error block by subtracting the prediction block from the interest block. Meanwhile, the motion compensation unit 216 also generates a motion vector (MV), which is a vector indicating a position relative to the prediction block of the block of interest.

전술한 바와 같이, 관심 블록, 예측 블록, 오차 블록 모두 m*n 블록이며, 화소값들로 이루어져 있다. As described above, the interest block, the prediction block, and the error block are all m * n blocks and are made up of pixel values.

공간 변환부(218)는 이러한 '화소값'을 '주파수'로 변환한다. 구체적으로, 공간 변환부(218)는 오차 블록을 이루는 데이터들을 저주파수 대역으로 밀집시킨다. The spatial transform unit 218 transforms this 'pixel value' into 'frequency'. Specifically, the spatial transform unit 218 closes the data constituting the error block in a low frequency band.

보다 구체적으로, 공간 변환부(218)는 이산여현변환(DCT : Discrete Cosine Transform)을 수행할 수 있다. 여기서, DCT의 구체적인 개념은 K.R.Rao 와 P.Yip의 공저로 Academic Press 사에서 1990년에 발간된 "Discrete Cosine Transform"에 상세히 개시되어 있다. 이 경우, 공간 변환부(218)는 오차 블록에 포함된 m*n개의 화소값들을 m*n개의 DCT 계수(coefficient)들로 변환한다. More specifically, the spatial transform unit 218 may perform DCT (Discrete Cosine Transform). Here, the concrete concept of DCT is disclosed in detail in "Discrete Cosine Transform ", published in 1990 by Academic Press, in cooperation with K. R. Rao and P. Yip. In this case, the spatial transform unit 218 transforms m * n pixel values included in the error block into m * n DCT coefficients.

양자화부(220)는 공간 변환부(218)에서 생성된 DCT 계수들을 양자화(quantization)한다. 이 때, 양자화부(220)는 선형 양자화를 수행할 수도 있고, 비선형 양자화를 수행할 수도 있다. 특히, 양자화부(220)는 비선형 양자화를 수행함으로써, 0에 근접한 크지 않은 DCT 계수들을 0으로 만들 수 있다. The quantization unit 220 quantizes the DCT coefficients generated in the spatial transform unit 218. At this time, the quantization unit 220 may perform linear quantization or non-linear quantization. In particular, the quantization unit 220 may perform non-linear quantization so that non-zero DCT coefficients close to zero can be made zero.

역 양자화부(222) 및 역 공간변환부(224)는 다음에 부호화될 관심 블록의 부 호화시 사용될 참조 프레임을 만들기 위해 동작한다. The inverse quantizer 222 and the inverse spatial transform unit 224 operate to produce a reference frame to be used in encoding a block of interest to be encoded next.

역 양자화부(222)는 양자화부(220)에서 양자화된 결과를 역 양자화하고, 역 공간변환부(224)는 역 양자화부(222)에서 역 양자화된 결과에 대해 역 공간변환(예를 들어, 역(inverse) DCT)을 수행한다. 이로써, 역 공간변환부(224)는 오차 블록을 생성한다. The inverse quantization unit 222 inversely quantizes the quantized result in the quantization unit 220 and the inverse spatial conversion unit 224 performs an inverse spatial transform (e.g., an inverse quantization) on the inverse quantized result in the inverse quantization unit 222, Inverse DCT). Thus, the inverse spatial transform unit 224 generates an error block.

이 경우, '생성된 오차 블록'과 '움직임 추정부(212)에서 찾아진 예측 블록'이 더해져 '관심 블록'이 복원되고, 복원된 관심 블록은 참조 프레임의 일부로서 참조영상 저장부(214)에 저장된다. In this case, the generated error block is added to the prediction block found in the motion estimation unit 212 to restore the 'interest block', and the restored interest block is stored in the reference image storage unit 214 as a part of the reference frame. / RTI >

재배열부(226)는 양자화부(220)에서 양자화된 결과들을 지그재그(zig-zag) 스캔하며 재배열한다. 제로 부호화부(228)는RL(run-level) 부호화를 수행할 수 있다. 구체적으로, 제로 부호화부(228)는 재배열된 수치들을 보다 간결하게 표현할 수 있다. 보다 구체적으로, 제로 부호화부(228)는 재배열된 수치들을 (run, level)의 연속으로 표현할 수 있다. 여기서, run은 0이 아닌 재배열된 수치 앞에 있는 0의 개수를 의미하고, level은 0의 아닌 재배열된 수치를 의미한다. The reordering unit 226 scans and rearranges the quantized results zig-zag in the quantization unit 220. The zero encoder 228 may perform run-level (RL) encoding. More specifically, the zero-encoding unit 228 can represent the rearranged values more concisely. More specifically, the zero-encoding unit 228 can express the rearranged values as a sequence of (run, level). Here, run means the number of zeros before the non-zero rearranged value, and level means the non-zero rearranged value.

엔트로피 부호화부(230)는 제로 부호화부(228)에서 부호화된 결과를 엔트로피 부호화한다. 또한, 엔트로피 부호화부(230)는 움직임 보상부(216)에서 생성된 움직임 벡터도 엔트로피 부호화한다. 이와 같이 엔트로피 부호화부(230)에서 엔트로피 부호화된 결과들은 하나의 비트스트림으로서 출력단자 OUT 2를 통해 출력된다. The entropy encoding unit 230 entropy-codes the result of the encoding performed by the zero encoding unit 228. The entropy encoding unit 230 also entropy-encodes the motion vector generated by the motion compensation unit 216. As described above, the entropy-encoded results in the entropy encoding unit 230 are output through the output terminal OUT2 as one bitstream.

한편, 인트라 모드에 따라 동작하는 부호화부(110)의 동작을 설명하면 다음 과 같다. Meanwhile, the operation of the encoder 110 operating in the intra mode will be described below.

공간 변환부(218)는 입력단자 IN 2를 통해 입력된 영상의 화소값을 주파수로 변환한다. 구체적으로, 공간 변환부(218)는 영상을 이루는 데이터들을 저주파수 대역으로 밀집시킨다. 보다 구체적으로, 공간 변환부(218)는 DCT를 수행할 수 있다. The spatial conversion unit 218 converts the pixel value of the image input through the input terminal IN 2 into a frequency. Specifically, the spatial transform unit 218 closes the data that form the image in a low frequency band. More specifically, the spatial transform unit 218 can perform DCT.

이 경우, 양자화부(220)는 공간 변환부(218)에서 생성된 DCT 계수들을 양자화한다. 이 때, 양자화부(220)는 선형 양자화를 수행할 수도 있고, 비선형 양자화를 수행할 수도 있다. 특히, 양자화부(220)는 비선형 양자화를 수행함으로써, 0에 근접한 크지 않은 DCT 계수들을 0으로 만들 수 있다. In this case, the quantization unit 220 quantizes DCT coefficients generated in the spatial transform unit 218. At this time, the quantization unit 220 may perform linear quantization or non-linear quantization. In particular, the quantization unit 220 may perform non-linear quantization so that non-zero DCT coefficients close to zero can be made zero.

재배열부(226)는 양자화부(220)에서 양자화된 결과들을 지그재그(zig-zag) 스캔하며 재배열한다. 제로 부호화부(228)는 RL(run-level) 부호화를 수행할 수 있다. 구체적으로, 제로 부호화부(228)는 재배열된 수치들을 보다 간결하게 표현할 수 있다. 보다 구체적으로, 제로 부호화부(228)는 재배열된 수치들을 (run, level)의 연속으로 표현할 수 있다. 여기서, run은 0이 아닌 재배열된 수치 앞에 있는 0의 개수를 의미하고, level은 0의 아닌 재배열된 수치를 의미한다. The reordering unit 226 scans and rearranges the quantized results zig-zag in the quantization unit 220. The zero encoding unit 228 can perform RL (run-level) encoding. More specifically, the zero-encoding unit 228 can represent the rearranged values more concisely. More specifically, the zero-encoding unit 228 can express the rearranged values as a sequence of (run, level). Here, run means the number of zeros before the non-zero rearranged value, and level means the non-zero rearranged value.

엔트로피 부호화부(230)는 제로 부호화부(228)에서 부호화된 결과를 엔트로피 부호화한다. 이와 같이 엔트로피 부호화부(230)에서 엔트로피 부호화된 결과들은 하나의 비트스트림으로서 출력단자 OUT 2를 통해 출력된다. The entropy encoding unit 230 entropy-codes the result of the encoding performed by the zero encoding unit 228. As described above, the entropy-encoded results in the entropy encoding unit 230 are output through the output terminal OUT2 as one bitstream.

도 3은 도 1에 도시된 복호화부(120)를 설명하기 위한 일 실시예(120A)의 블록도로서, 엔트로피 복호화부(312), 제로 복호화부(314), 역 재배열부(316), 역 양자화부(318), 역 공간변환부(320), 움직임 추정부(322), 및 참조영상 저장부(324) 로 이루어질 수 있다. FIG. 3 is a block diagram of an embodiment 120A for describing the decoder 120 illustrated in FIG. 1, which includes an entropy decoder 312, a zero decoder 314, an inverse rearranger 316, and an inverse. A quantization unit 318, an inverse spatial transform unit 320, a motion estimation unit 322, and a reference image storage unit 324 may be provided.

복호화부(120)는 입력단자 IN 3을 통해 입력된 비트스트림을 인터(inter) 모드(mode)로 복호화할 수도 있고, 인트라(intra) 모드로 복호화할 수도 있다. 입력단자 IN 3을 통해 입력된 비트스트림은 도 2에 도시된 출력단자 OUT 2를 통해 출력된 비트스트림일 수 있다. The decoding unit 120 may decode the bit stream input through the input terminal IN 3 into an inter mode or an intra mode. The bit stream input through the input terminal IN 3 may be a bit stream output through the output terminal OUT 2 shown in FIG.

복호화부(120)가 비트스트림을 인터 모드로 복호화한다면, 엔트로피 복호화부(312) 내지 참조영상 저장부(324) 모두가 동작한다. 그에 반해, 복호화부(120)가 비트스트림을 인트라 모드로 복호화한다면, 움직임 추정부(322)는 동작하지 않는다. If the decoding unit 120 decodes the bit stream into the inter mode, both the entropy decoding unit 312 and the reference image storing unit 324 operate. On the other hand, if the decoding unit 120 decodes the bitstream into the intra mode, the motion estimation unit 322 does not operate.

인터 모드에 따라 동작하는 복호화부(120)의 동작을 설명하면 다음과 같다. The operation of the decoding unit 120 operating in the inter mode will be described below.

엔트로피 복호화부(312)는 입력단자 IN 3을 통해 입력된 비트스트림을 엔트로피 복호화한다. 이로써, 엔트로피 복호화부(312)는 입력단자 IN 3을 통해 입력된 비트스트림으로부터 '제로 부호화부(228)에서 RL 부호화된 결과', '움직임 보상부(216)에서 생성된 움직임 벡터'를 추출한다. The entropy decoding unit 312 entropy-decodes the bitstream input through the input terminal IN 3. Accordingly, the entropy decoding unit 312 extracts the RL-encoded result from the zero encoding unit 228 and the motion vector generated by the motion compensation unit 216 from the bit stream input through the input terminal IN 3 .

제로 복호화부(314)는 RL 복호화를 수행하며, 역 재배열부(316)는 '양자화부(220)에서 양자화된 결과들'을 생성한다. The zero decoding unit 314 performs RL decoding and the inverse rearranging unit 316 generates quantized results in the quantization unit 220. [

역 양자화부(318)는 역 재배열부(316)로부터 입력된 '양자화부(220)에서 생성된 결과'를 역 양자화하고, 역 공간변환부(320)는 역 양자화부(318)에서 역 양자화된 결과에 대해 역 공간변환(예를 들어, 역(inverse) DCT)을 수행한다. 이로써, 역 공간변환부(318)는 오차 블록을 생성한다. The inverse quantization unit 318 dequantizes the result of the quantization unit 220 inputted from the inverse rearrangement unit 316 and the inverse spatial transform unit 320 dequantizes the result generated by the inverse quantization unit 318, Performs an inverse spatial transform (e. G., Inverse DCT) on the result. Thus, the inverse spatial transform unit 318 generates an error block.

움직임 추정부(322)는 엔트로피 복호화부(312)에서 추출된 움직임 벡터를 이용하여, 참조영상 저장부(324)에 저장된 참조 프레임내에서 예측 블록을 찾는다. The motion estimation unit 322 searches for a prediction block in a reference frame stored in the reference image storage unit 324 using the motion vector extracted by the entropy decoding unit 312.

이 경우, '역 공간변환부(318)에서 생성된 오차 블록'과 '움직임 추정부(322)에서 찾아진 예측 블록'이 더해져 '관심 블록'이 복원되고, 복원된 관심 블록은 출력단자 OUT 3을 통해 출력된다. 복원된 관심 블록은 참조 프레임의 일부로서 참조영상 저장부(324)에 저장된다. In this case, the error block generated by the inverse spatial transform unit 318 and the prediction block found by the motion estimation unit 322 are added to restore the 'interest block', and the restored interest block is output to the output terminal OUT 3 Lt; / RTI > The restored interest block is stored in the reference image storage unit 324 as a part of the reference frame.

한편, 인트라 모드에 따라 동작하는 복호화부(120)의 동작을 설명하면 다음과 같다. The operation of the decoding unit 120 operating in the intra mode will be described below.

엔트로피 복호화부(312)는 입력단자 IN 3을 통해 입력된 비트스트림으로부터 '제로 부호화부(228)에서 RL 부호화된 결과'를 추출한다. The entropy decoding unit 312 extracts the RL-encoded result from the zero-encoding unit 228 from the bitstream input through the input terminal IN 3.

제로 복호화부(314)는 RL 복호화를 수행하며, 역 재배열부(316)는 '양자화부(220)에서 양자화된 결과들'을 생성한다. The zero decoding unit 314 performs RL decoding and the inverse rearranging unit 316 generates quantized results in the quantization unit 220. [

역 양자화부(318)는 역 재배열부(316)로부터 입력된 '양자화부(220)에서 생성된 결과'를 역 양자화하고, 역 공간변환부(320)는 역 양자화부(318)에서 역 양자화된 결과에 대해 역 공간변환(예를 들어, 역(inverse) DCT)을 수행한다. 이로써, 역 공간변환부(318)는 영상을 복원하고, 복원된 영상을 출력단자 OUT 4를 통해 출력한다. 그 복원된 영상은 참조영상 저장부(324)에 저장될 수 있다. The inverse quantization unit 318 dequantizes the result of the quantization unit 220 inputted from the inverse rearrangement unit 316 and the inverse spatial transform unit 320 dequantizes the result generated by the inverse quantization unit 318, Performs an inverse spatial transform (e. G., Inverse DCT) on the result. Thus, the inverse spatial transform unit 318 restores the image and outputs the reconstructed image through the output terminal OUT4. And the reconstructed image may be stored in the reference image storage unit 324.

도 4a 내지 도 4c는 4:2:0 포맷, 4:2:2 포맷, 4:4:4 포맷을 설명하기 위한 도면들이다. 4A to 4C are views for explaining a 4: 2: 0 format, a 4: 2: 2 format, and a 4: 4: 4 format.

도 4a는 4:2:0 포맷을 갖는 영상의 매크로블록을 나타낸다. 보다 구체적으 로, 4:2:0 포맷을 갖는 영상의 매크로블록은 4개의 휘도 블록(Y), 1개의 청색 색차 블록(Cb), 및 1개의 적색 색차 블록(Cr)로 이루어질 수 있다. 각각의 휘도 블록(Y), 청색 색차 블록(Cb) 또는 적색 색차 블록(Cr)은 8*8블록이다. 즉, 각각의 휘도 블록(Y), 청색 색차 블록(Cb) 또는 적색 색차 블록(Cr)에는 8개의 화소(pixel)들이 8열로 배치되어 있어 총 64개의 샘플(sample)들이 존재한다. 도 4a에 도시된 바에서, 각 블록마다 표기된 숫자(0, 1, 2, 3, 4, 또는 5)는 각 블록의 식별 기호이다.4A shows a macroblock of an image having a 4: 2: 0 format. More specifically, a macroblock of an image having a 4: 2: 0 format may include four luminance blocks Y, one blue chrominance block Cb, and one red chrominance block Cr. Each of the luminance block Y, the blue color difference block Cb or the red color difference block Cr is 8 * 8 block. That is, eight pixels are arranged in eight columns in each of the luminance block Y, the blue color difference block Cb, and the red color difference block Cr, so that there are a total of 64 samples. As shown in Fig. 4A, numerals (0, 1, 2, 3, 4, or 5) indicated for each block are identification symbols of each block.

도 4b는 4:2:2 포맷을 갖는 영상의 매크로블록을 나타낸다. 보다 구체적으로, 4:2:2 포맷을 갖는 영상의 매크로블록은 4개의 휘도 블록(Y), 2개의 청색 색차 블록(Cb), 및 2개의 적색 색차 블록(Cr)로 이루어질 수 있다. 각각의 휘도 블록(Y), 각각의 청색 색차 블록(Cb) 또는 각각의 적색 색차 블록(Cr)은 8*8블록이다. 즉, 각각의 휘도 블록(Y), 각각의 청색 색차 블록(Cb) 또는 각각의 적색 색차 블록(Cr)에는 8개의 화소(pixel)들이 8열로 배치되어 있어 총 64개의 샘플(sample)들이 존재한다. 도 4b에 도시된 바에서, 각 블록마다 표기된 숫자(0, 1, 2, 3, 4, 5, 6, 또는 7)는 각 블록의 식별 기호이다. 4B shows a macroblock of an image having a 4: 2: 2 format. More specifically, a macro block of an image having a 4: 2: 2 format may be composed of four luminance blocks Y, two blue chrominance blocks Cb, and two red chrominance blocks Cr. Each luminance block (Y), each blue color difference block (Cb), or each red color difference block (Cr) is 8 * 8 block. That is, eight pixels are arranged in eight rows in each of the luminance blocks Y, the blue chrominance blocks Cb, and the red chrominance blocks Cr, so that a total of 64 samples exist . As shown in Fig. 4B, numerals (0, 1, 2, 3, 4, 5, 6, or 7) indicated for each block are identification symbols of each block.

도 4c는 4:4:4 포맷을 갖는 영상의 매크로블록을 나타낸다. 보다 구체적으로, 4:4:4 포맷을 갖는 영상의 매크로블록은 4개의 휘도 블록(Y), 4개의 청색 색차 블록(Cb), 및 4개의 적색 색차 블록(Cr)로 이루어질 수 있다. 각각의 휘도 블록(Y), 각각의 청색 색차 블록(Cb) 또는 각각의 적색 색차 블록(Cr)은 8*8블록이다. 즉, 각각의 휘도 블록(Y), 각각의 청색 색차 블록(Cb) 또는 각각의 적색 색차 블록(Cr)에는 8개의 화소(pixel)들이 8열로 배치되어 있어 총 64개의 샘플(sample)들이 존재한다. 도 4c에 도시된 바에서, 각 블록마다 표기된 숫자(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 또는 11)는 각 블록의 식별 기호이다.4C shows a macroblock of an image having a 4: 4: 4 format. More specifically, the macro block of the image having the 4: 4: 4 format may be composed of four luminance blocks Y, four blue chrominance blocks Cb, and four red chrominance blocks Cr. Each luminance block (Y), each blue color difference block (Cb), or each red color difference block (Cr) is 8 * 8 block. That is, eight pixels are arranged in eight columns in each luminance block Y, each blue chrominance block Cb, or each red chrominance block Cr, so that a total of 64 samples exist. . As shown in FIG. 4C, the numbers (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, or 11) indicated for each block are identification symbols of each block.

도 5는 본 발명에 의한 영상 부호화 장치를 설명하기 위한 블록도로서, 제1 부호화부(512), 제2 부호화부(514), 제3 부호화부(516), 및 포매터(formatter)(518)를 포함할 수 있다. FIG. 5 is a block diagram illustrating a video encoding apparatus according to the present invention, and includes a first encoder 512, a second encoder 514, a third encoder 516, and a formatter 518. It may include.

여기서, 제1 부호화부(512) 및 제2 부호화부(514) 각각은 도 2에 도시된 움직임 추정부(212) 내지 엔트로피 부호화부(230)에 구현된다. Here, each of the first encoding unit 512 and the second encoding unit 514 is implemented in the motion estimation unit 212 to the entropy encoding unit 230 shown in FIG.

구체적으로, 제1 부호화부(512)는 입력단자 IN 2를 통해 입력된 휘도 블록(Y)을 부호화하는 '움직임 추정부(212) 내지 엔트로피 부호화부(230)'를 의미한다. 마찬가지로, 제2 부호화부(514)는 입력단자 IN 2를 통해 입력된 색차 블록(Cb, 또는 Cr)을 부호화하는 '움직임 추정부(212) 내지 엔트로피 부호화부(230)'를 의미한다. Specifically, the first encoding unit 512 means a 'motion estimation unit 212 to an entropy encoding unit 230' that encodes the luminance block Y input through the input terminal IN 2. Likewise, the second encoding unit 514 means a 'motion estimation unit 212 to an entropy encoding unit 230' for encoding the color difference block Cb or Cr inputted through the input terminal IN 2.

제1 부호화부(512)는 입력단자 IN 4를 통해 입력된 영상에 포함된 휘도 블록(Y)을 휘도 블록마다 미리 설정된 부호화 모드에 따라 부호화한다. 여기서, 입력단자 IN 4는 도 2에 도시된 입력단자 IN 2와 동일하다. The first encoding unit 512 encodes the luminance block Y included in the image input through the input terminal IN 4 according to a predetermined encoding mode for each luminance block. Here, the input terminal IN 4 is the same as the input terminal IN 2 shown in FIG.

본 발명의 제1 실시예에 의하면, 제2 부호화부(514)는 입력단자 IN 4를 통해 입력된 영상에 포함된 색차 블록(Cb, 또는 Cr)을 '휘도 블록(Y)마다 미리 설정된 부호화 모드 중 다수(a majority of)의 부호화 모드'로 부호화한다. 이 경우, 영상은 4:2:0 포맷, 4:2:2 포맷, 4:4:4 포맷 중 하나의 포맷을 갖는 것이 바람직하다. According to the first embodiment of the present invention, the second encoding unit 514 converts the color difference block Cb or Cr included in the image input through the input terminal IN 4 into a predetermined encoding mode for each luminance block Y Encoding mode of a majority of ". In this case, it is preferable that the image has one of a 4: 2: 0 format, a 4: 2: 2 format, and a 4: 4: 4 format.

본 발명의 제2 실시예에 의하면, 제2 부호화부(514)는 입력단자 IN 4를 통해 입력된 영상에 포함된 색차 블록(Cb, 또는 Cr)을 색차 블록마다 미리 설정된 부호화 모드에 따라 부호화한다. 이 경우, 영상은 4:2:0 포맷, 4:2:2 포맷, 4:4:4 포맷 중 하나의 포맷을 갖는 것이 바람직하다. According to the second embodiment of the present invention, the second encoding unit 514 encodes the color difference block (Cb or Cr) included in the image input through the input terminal IN 4 according to a preset encoding mode for each color difference block . In this case, it is preferable that the image has one of a 4: 2: 0 format, a 4: 2: 2 format, and a 4: 4: 4 format.

영상에 포함된 각각의 색차 블록(Cb 또는 Cr)마다 그 색차 블록을 어떤 부호화 모드로 부호화할지는, 그 영상이 움직임 추정부(212), 또는 움직임 보상부(216)에 입력되기 전에 미리 설정되는 것이 바람직하다. The coding mode in which the color difference block is encoded for each color difference block (Cb or Cr) included in the image is preset before the image is input to the motion estimation unit 212 or the motion compensation unit 216 desirable.

본 발명의 제3 실시예에 의하면, 제2 부호화부(514)는 입력단자 IN 4를 통해 입력된 영상에 포함된 색차 블록(Cb, 또는 Cr)을 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 부호화 모드'에 따라 부호화한다. 이 경우, 영상은 4:2:2 포맷, 또는 4:4:4 포맷인 것이 바람직하다. According to the third embodiment of the present invention, the second encoding unit 514 converts the chrominance block Cb or Cr included in the image input through the input terminal IN4 into a signal having the same phase as that of the chrominance block Coding mode of the luminance block '. In this case, the image is preferably a 4: 2: 2 format or a 4: 4: 4 format.

본 발명의 제4 실시예에 의하면, 제2 부호화부(514)는 입력단자 IN 4를 통해 입력된 영상에 포함된 색차 블록(Cb, 또는 Cr)을 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록을 포함한 복수의 휘도 블록들의 부호화 모드들'을 고려하여 부호화한다. 예컨대, 제2 부호화부(514)는 색차 블록을 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 부호화 모드'와 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록에 인접한 휘도 블록의 부호화 모드'의 일치 여부에 따라 결정된 부호화 모드에 따라 부호화할 수 있다. 이 경우, '색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 부호화 모드'와 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록에 인접한 휘도 블록의 부호화 모드'가 일치한다면, 제2 부호화 부(514)는 그 색차 블록을 그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 부호화 모드에 따라 부호화할 수 있다. 그에 반해, '색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 부호화 모드'와 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록에 인접한 휘도 블록의 부호화 모드'가 불일치한다면, 제2 부호화부(514)는 그 색차 블록을 일정 부호화 모드(예를 들어, 인터 모드)에 따라 부호화할 수 있다. 본 발명의 제4 실시예의 경우, 영상은 4:2:2 포맷인 것이 바람직하다.According to the fourth embodiment of the present invention, the second encoder 514 sets the chrominance block Cb or Cr included in the image input through the input terminal IN 4 to have the same phase as that of the chrominance block. Encoding is performed taking into consideration the encoding modes of the plurality of luminance blocks including the luminance block. For example, the second encoder 514 encodes the color difference block into an encoding mode of a luminance block having a phase equal to the phase of the color difference block and a luminance block adjacent to the luminance block having a phase identical to the phase of the color difference block. Encoding may be performed according to an encoding mode determined according to whether the modes' match. In this case, if the "coding mode of the luminance block having the same phase as the phase of the chrominance block" and the "coding mode of the luminance block adjacent to the luminance block having the same phase as the phase of the chrominance block" match, the second encoding unit ( 514 may encode the chrominance block according to the encoding mode of the luminance block having the same phase as that of the chrominance block. In contrast, if the encoding mode of the luminance block having the same phase as the phase of the chrominance block and the encoding mode of the luminance block adjacent to the luminance block having the same phase as the phase of the chrominance block are different from each other, the second encoder ( The 514 may encode the color difference block according to a predetermined encoding mode (eg, an inter mode). In the case of the fourth embodiment of the present invention, the video is preferably in 4: 2: 2 format.

본 발명의 제1 실시예, 제3 실시예, 또는 제4 실시예에 의하면, 영상에 포함된 각각의 휘도 블록(Y)마다 그 휘도 블록을 어떤 부호화 모드로 부호화할지는, 그 영상이 입력단자 IN 4에 입력될 때 이미 설정되어 있는 것이 바람직하다. 이와 비슷하게, 본 발명의 제2 실시예에 의하면, 영상에 포함된 각각의 휘도 블록(Y)마다 그 휘도 블록을 어떤 부호화 모드로 부호화할지, 그 영상에 포함된 각각의 청색 색차 블록(Cb)마다 그 청색 색차 블록을 어떤 부호화 모드로 부호화할지, 및 그 영상에 포함된 각각의 적색 색차 블록(Cr)마다 그 적색 색차 블록을 어떤 부호화 모드로 부호화할지는, 그 영상이 입력단자 IN 4에 입력될 때 이미 설정되어 있는 것이 바람직하다. 결국, 입력단자 IN 4에는 영상과 모드 정보가 함께 입력된다. 여기서, 모드 정보는 부호화 모드(또는, 복호화 모드)를 나타내고, 부호화 모드(또는, 복호화 모드)는 인터 모드일 수도 있고, 인트라 모드일 수도 있다. According to the first, third, or fourth embodiments of the present invention, in which encoding mode the luminance block is encoded for each luminance block Y included in the image, the image is input terminal IN. It is preferable that it is already set when it is input to 4. Likewise, according to the second embodiment of the present invention, for each luminance block Y included in an image, which encoding mode the luminance block is to be coded and for each blue color difference block Cb included in the image Which encoding mode the blue chrominance block is to be coded and in which encoding mode the red chrominance block is encoded for each red chrominance block Cr included in the image is input to the input terminal IN 4 It is preferable that it is already set. As a result, both the video and the mode information are input to the input terminal IN 4. Here, the mode information indicates an encoding mode (or a decoding mode), and an encoding mode (or decoding mode) may be an inter mode or an intra mode.

움직임정보 생성부(미 도시)는 본 발명에 의한 영상 부호화 장치에 마련되는 것이 바람직하며, 움직임정보 생성부는 움직임 정보를 생성한다. 구체적으로, 본 발명의 제1 실시예 내지 제4 실시예 중 어느 하나에 의한 움직임정보 생성부(미 도 시)는 제1 부호화부(512)에서 부호화된 적어도 일부의 휘도 블록들 각각마다 움직임 정보를 생성하는 것이 바람직하다. 또한, 본 발명의 제2 실시예에 의한 움직임정보 생성부(미 도시)는 제2 부호화부(514)에서 부호화된 적어도 일부의 색차 블록들 각각마다 움직임 정보를 생성하는 것이 바람직하다.The motion information generating unit (not shown) is preferably provided in the image encoding apparatus according to the present invention, and the motion information generating unit generates motion information. In detail, the motion information generator (not shown) according to any one of the first to fourth embodiments of the present invention may perform motion information for each of at least some luminance blocks encoded by the first encoder 512. It is preferable to generate. In addition, the motion information generator (not shown) according to the second embodiment of the present invention preferably generates motion information for each of at least some color difference blocks encoded by the second encoder 514.

움직임 정보는 모드 정보와 CBP(Coded Block Pattern)를 포함한다. 만일, 모드 정보가 인터 모드를 나타낸다면, 움직임 정보는 움직임 벡터에 대한 정보도 포함한다. The motion information includes mode information and CBP (Coded Block Pattern). If the mode information indicates the inter mode, the motion information also includes information on the motion vector.

CBP는 양자화된 결과에 0이 아닌 수치가 존재하는가를 나타낸다. 이러한 CBP의 생성을 위해, 본 발명에 의한 영상 부호화 장치에는 CBP 생성부(미 도시)가 마련될 수 있다. CBP 생성부(미 도시)는 어떤 블록에 대해 양자화부(220)의 동작이 완료될 때마다, 그 양자화된 결과에 0이 아닌 수치가 존재하는가 검사하고, 0이 아닌 수치가 존재한다고 검사되면 그 블록의 CBP로서 1을 생성하고, 0이 아닌 수치가 존재하지 않는다고 검사되면 그 블록의 CBP로서 0을 생성한다. CBP indicates whether there is a non-zero value in the quantized result. In order to generate CBP, a CBP generator (not shown) may be provided in the image encoding apparatus according to the present invention. Each time the operation of the quantization unit 220 is completed for a certain block, a CBP generation unit (not shown) checks whether a non-zero value exists in the quantized result. If it is checked that a non-zero value exists, 1 is generated as the CBP of the block, and when it is checked that the non-zero value does not exist, 0 is generated as CBP of the block.

움직임정보 생성부(미 도시)는 '입력단자 IN 4를 통해 입력된 모드 정보' 및 'CBP 생성부(미 도시)가 생성한 CBP'를 포함하는 움직임 정보를 생성한다. The motion information generating unit (not shown) generates motion information including 'mode information input through the input terminal IN 4' and CBP 'generated by a CBP generating unit (not shown).

제3 부호화부(516)는 움직임정보 생성부(미 도시)에서 생성된 움직임 정보를 부호화한다. The third encoder 516 encodes the motion information generated by the motion information generator (not shown).

포매터(518)는 도 2에 도시된 엔트로피 부호화부(230)에 구현될 수 있다. The formatter 518 may be implemented in the entropy encoder 230 shown in FIG. 2.

포매터(518)는 제1 부호화부(512)에서 부호화된 결과들, 제2 부호화부(514)에서 부호화된 결과들, 제3 부호화부(516)에서 부호화된 결과들을 일체화시켜 비트 스트림을 생성하고, 생성된 비트스트림을 출력단자 OUT 5를 통해 출력한다. 출력단자 OUT 5는 도 2에 도시된 출력단자 OUT 2와 동일하다. The formatter 518 generates a bit stream by integrating the results encoded by the first encoder 512, the results encoded by the second encoder 514, and the results encoded by the third encoder 516. The generated bitstream is output through the output terminal OUT5. The output terminal OUT 5 is the same as the output terminal OUT 2 shown in Fig.

도 6은 본 발명의 제1 실시예, 제3 실시예, 또는 제4 실시예에 의한 제2 부호화부(514)를 설명하기 위한 일 실시예(514A)의 블록도로서, 움직임벡터 결정부(610) 및 색차성분 부호화부(620)를 포함할 수 있다. 도 6에 대해 후술될 바는, 제2 부호화부(514)가 부호화하고자 하는 색차 블록이 인터 모드에 따라 부호화됨을 전제로 한다. FIG. 6 is a block diagram of an embodiment 514A for describing the second encoder 514 according to the first, third, or fourth embodiments of the present invention. 610 and a chrominance component encoder 620. Referring to FIG. 6, it will be assumed that the color difference block to be encoded by the second encoder 514 is encoded according to the inter mode.

움직임벡터 결정부(610)는 입력단자 IN 5를 통해 입력된 영상에 포함된 색차 블록(Cb, 또는 Cr)의 움직임 벡터를 그 색차 블록에 대응되는 하나 이상의 휘도 블록들의 움직임 벡터들을 고려하여 결정한다. 예컨대, 움직임벡터 결정부(610)는 색차 블록의 움직임 벡터를 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록에 인접한 휘도 블록의 움직임 벡터'와 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 움직임 벡터'를 고려하여 결정할 수 있다. 도 4b에 도시된 8개의 블록들 모두 인터 모드로 부호화된다고 할 때 도 4b에 도시된 바를 이용하여 움직임벡터 결정부(610)의 동작을 구체적으로 예시하면, 움직임벡터 결정부(610)는 색차 블록들(4번째 블록, 5번째 블록, 6번째 블록, 7번째 블록) 각각의 움직임 벡터를 다음의 수학식 1에 따라 계산할 수 있다.The motion vector determiner 610 determines the motion vector of the color difference block Cb or Cr included in the image input through the input terminal IN 5 in consideration of the motion vectors of one or more luminance blocks corresponding to the color difference block. . For example, the motion vector determiner 610 may determine a motion vector of the chrominance block as the motion vector of the luminance block adjacent to the luminance block having the same phase as the phase of the chrominance block and the luminance having the same phase as the phase of the chrominance block. It may be determined considering the motion vector of the block. Assuming that all eight blocks shown in FIG. 4B are encoded in the inter mode, the motion vector determiner 610 exemplarily illustrates the operation of the motion vector determiner 610 using the bar illustrated in FIG. 4B. Motion vectors of each of the four (4th, 5th, 6th, and 7th blocks) may be calculated according to Equation 1 below.

MV4_x = MV5_x = { MV0_x + MV1_x } / 4MV4_x = MV5_x = {MV0_x + MV1_x} / 4

MV4_y = MV5_y = { MV0_y + MV1_y } / 2MV4_y = MV5_y = {MV0_y + MV1_y} / 2

MV6_x = MV7_x = { MV2_x + MV3_x } / 4MV6_x = MV7_x = {MV2_x + MV3_x} / 4

MV6_y = MV7_y = { MV2_y + MV3_y } / 2MV6_y = MV7_y = {MV2_y + MV3_y} / 2

여기서, MV0_x, MV1_x, MV2_x, MV3_x, MV4_x, MV5_x, MV6_x, MV7_x 각각은 0번째 블록의 움직임 벡터의 수평 성분, 1번째 블록의 움직임 벡터의 수평 성분, 2번째 블록의 움직임 벡터의 수평 성분, 3번째 블록의 움직임 벡터의 수평 성분, 4번째 블록의 움직임 벡터의 수평 성분, 5번째 블록의 움직임 벡터의 수평 성분, 6번째 블록의 움직임 벡터의 수평 성분, 7번째 블록의 움직임 벡터의 수평 성분 각각을 의미한다. Here, MV0_x, MV1_x, MV2_x, MV3_x, MV4_x, MV5_x, MV6_x, MV7_x are each a horizontal component of the motion vector of the 0th block, a horizontal component of the motion vector of the 1st block, a horizontal component of the motion vector of the 2nd block, and 3 The horizontal component of the motion vector of the first block, the horizontal component of the motion vector of the fourth block, the horizontal component of the motion vector of the fifth block, the horizontal component of the motion vector of the sixth block, and the horizontal component of the motion vector of the seventh block it means.

마찬가지로, MV0_y, MV1_y, MV2_y, MV3_y, MV4_y, MV5_y, MV6_y, MV7_y 각각은 0번째 블록의 움직임 벡터의 수직 성분, 1번째 블록의 움직임 벡터의 수직 성분, 2번째 블록의 움직임 벡터의 수직 성분, 3번째 블록의 움직임 벡터의 수직 성분, 4번째 블록의 움직임 벡터의 수직 성분, 5번째 블록의 움직임 벡터의 수직 성분, 6번째 블록의 움직임 벡터의 수직 성분, 7번째 블록의 움직임 벡터의 수직 성분 각각을 의미한다.Similarly, MV0_y, MV1_y, MV2_y, MV3_y, MV4_y, MV5_y, MV6_y, MV7_y are each the vertical component of the motion vector of the 0th block, the vertical component of the motion vector of the 1st block, the vertical component of the motion vector of the 2nd block, 3 Each of the vertical component of the motion vector of the first block, the vertical component of the motion vector of the fourth block, the vertical component of the motion vector of the fifth block, the vertical component of the motion vector of the sixth block, and the vertical component of the motion vector of the seventh block it means.

본 명세서에서 수평 방향은 0번째 블록(또는, 1번째 블록)에서 1번째 블록(또는, 0번째 블록)으로의 방향을 의미하고, 수직 성분은 0번째 블록(또는, 2번째 블록)에서 2번째 블록(또는, 0번째 블록)으로의 방향을 의미한다. 또한, 수평 성분은 수평 방향으로의 성분을 의미하고, 수직 성분은 수직 방향으로의 성분을 의미한다.In this specification, the horizontal direction means a direction from the 0th block (or 1st block) to the 1st block (or 0th block), and the vertical component is the 2nd in the 0th block (or 2nd block). It means the direction to a block (or 0th block). In addition, a horizontal component means a component in a horizontal direction, and a vertical component means a component in a vertical direction.

색차성분 부호화부(620)는 입력단자 IN 5를 통해 입력된 영상에 포함된 색차 블록을 그 결정된 움직임 벡터를 고려하여 부호화하고, 부호화된 결과를 출력단자 OUT 6을 통해 포매터(518)로 출력한다. 입력단자 IN 5는 전술한 입력단자 IN 4와 동일할 수 있다.The color difference component encoder 620 encodes the color difference block included in the image input through the input terminal IN 5 in consideration of the determined motion vector, and outputs the encoded result to the formatter 518 through the output terminal OUT 6. . The input terminal IN 5 may be the same as the input terminal IN 4 described above.

도 7 내지 도 9는 움직임 정보(MI: motion information)를 설명하기 위한 도면들이다. 움직임 정보는, 도 7 내지 9에 도시된 바와 같이 모든 각 블록마다 존재할 수도 있고, 도 7 내지 도 9에 도시된 바와 달리 일부의 각 블록마다 존재할 수도 있다. 7 to 9 are diagrams for describing motion information (MI). The motion information may be present in every block as shown in FIGS. 7 to 9, and may be present in each of some blocks, as shown in FIGS. 7 to 9.

도 7의 (a)는 도 4a에 도시된 '4:2:0 포맷을 갖는 영상의 매크로블록'을 나타낸다. 설명의 편의상, 참조번호 712, 714, 716, 718, 720, 730 각각은 1, 2, 3, 4, 5, 6 번째 블록이라 명명한다. FIG. 7A illustrates a macroblock of an image having a 4: 2: 0 format shown in FIG. 4A. For convenience of description, reference numerals 712, 714, 716, 718, 720, and 730 are respectively named 1, 2, 3, 4, 5, 6th blocks.

도 7의 (b)는 도 7의 (a)에 도시된 매크로블록의 움직임 정보가 비트스트림(740)으로 표현된 일 례를 나타낸다. 여기서, MI(t)(단, t는 1≤t≤6인 정수)는 움직임정보 생성부(미 도시)가 t번째 블록에 대해 생성한 움직임 정보를 의미한다. FIG. 7B illustrates an example in which the motion information of the macroblock shown in FIG. 7A is represented by the bitstream 740. Here, MI (t) (t is an integer of 1? T? 6) means motion information generated by a motion information generating unit (not shown) for the t-th block.

도 8의 (a)는 도 4b에 도시된 '4:2:2 포맷을 갖는 영상의 매크로블록'을 나타낸다. 설명의 편의상, 참조번호 812, 814, 816, 818, 820, 822, 824, 826 각각은 1, 2, 3, 4, 5, 6, 7, 8 번째 블록이라 명명한다. FIG. 8A illustrates a macroblock of an image having a 4: 2: 2 format shown in FIG. 4B. For convenience of description, reference numerals 812, 814, 816, 818, 820, 822, 824, and 826 are respectively named 1, 2, 3, 4, 5, 6, 7, and 8th blocks.

도 8의 (b)는 도 8의 (a)에 도시된 매크로블록의 움직임 정보가 비트스트림(830)으로 표현된 일 례를 나타낸다. 여기서, MI(u)(단, u는 1≤u≤8인 정수)는 움직임정보 생성부(미 도시)가 u번째 블록에 대해 생성한 움직임 정보를 의미한다. FIG. 8B illustrates an example in which the motion information of the macroblock shown in FIG. 8A is represented by the bitstream 830. Here, MI (u) (where u is an integer of 1? U? 8) denotes motion information generated by a motion information generating unit (not shown) for the u-th block.

도 9의 (a)는 도 4c에 도시된 '4:4:4 포맷을 갖는 영상의 매크로블록'을 나 타낸다. 설명의 편의상, 참조번호 912, 914, 916, 918, 920, 922, 924, 926, 928, 930, 932, 934 각각은1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 번째 블록이라 명명한다. FIG. 9A illustrates a macroblock of an image having a 4: 4: 4 format shown in FIG. 4C. For convenience of explanation, reference numerals 912, 914, 916, 918, 920, 922, 924, 926, 928, 930, 932, 934 are each 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 The 11th and 12th blocks are called.

도 9의 (b)는 도 9의 (a)에 도시된 매크로블록의 움직임 정보가 비트스트림(940)으로 표현된 일 례를 나타낸다. 여기서, MI(v)(단, v는 1≤v≤12인 정수)는 움직임정보 생성부(미 도시)가 v번째 블록에 대해 생성한 움직임 정보를 의미한다.FIG. 9B illustrates an example in which the motion information of the macroblock illustrated in FIG. 9A is represented by the bitstream 940. Here, MI (v) (where v is an integer satisfying 1? V? 12) means motion information generated by the motion information generating unit (not shown) for the vth block.

도 10은 본 발명에 의한 영상 복호화 장치를 설명하기 위한 블록도로서, 디포매터(deformatter)(1010), 제3 복호화부(1020), 제1 복호화부(1030), 및 제2 복호화부(1040)로 이루어질 수 있다.FIG. 10 is a block diagram illustrating an image decoding apparatus according to the present invention, and includes a deformatter 1010, a third decoder 1020, a first decoder 1030, and a second decoder 1040. It can be made of).

디포매터(1010)는 입력단자 IN 6을 통해 입력된 비트스트림으로부터 움직임 정보와, 부호화된 휘도 블록들과, 부호화된 색차 블록들을 추출한다. 입력단자 IN 5는 전술한 입력단자 IN 3과 동일할 수 있다.The deformatter 1010 extracts motion information, encoded luminance blocks, and encoded color difference blocks from the bitstream input through the input terminal IN6. The input terminal IN 5 may be the same as the input terminal IN 3 described above.

제3 복호화부(1020)는 그 추출된 움직임 정보를 복호화한다.The third decoder 1020 decodes the extracted motion information.

제1 복호화부(1030) 및 제2 부호화부(930) 각각은 도 3에 도시된 엔트로피 복호화부(312) 내지 참조영상 저장부(324)에 구현된다. 구체적으로, 제1 복호화부(1030)는 휘도 블록(Y)을 복호화하는 '엔트로피복호화부(312) 내지 참조영상 저장부(324)'를 의미한다. 마찬가지로, 제2 복호화부(1040)는 색차 블록(Cb, 또는 Cr)을 복호화하는 '엔트로피 복호화부(312) 내지 참조영상 저장부(324)'를 의미한다. Each of the first decoder 1030 and the second encoder 930 is implemented in the entropy decoder 312 to the reference image storage 324 illustrated in FIG. 3. In detail, the first decoder 1030 refers to an entropy decoding unit 312 to a reference image storage unit 324 that decodes the luminance block Y. Similarly, the second decoder 1040 refers to the entropy decoder 312 to the reference image storage 324 which decodes the chrominance block Cb or Cr.

제1 복호화부(1030)는 휘도 블록(Y)을 휘도 블록마다 미리 설정된 복호화 모 드에 따라 복호화한다. 구체적으로, 그 미리 설정된 복호화 모드는 입력단자 IN 5를 통해 입력된 비트스트림에 이미 나타나 있을 수 있다.The first decoder 1030 decodes the luminance block Y according to a decoding mode preset for each luminance block. Specifically, the preset decoding mode may already appear in the bitstream input through the input terminal IN5.

따라서, 제1 복호화부(1030)는 제3 복호화부(1020)에서 복호화된 움직임 정보 중에 복호화하고자 하는 휘도 블록의 움직임 정보가 존재하는가 검사한다.Therefore, the first decoder 1030 checks whether motion information of the luminance block to be decoded exists in the motion information decoded by the third decoder 1020.

만일, 제3 복호화부(1020)에서 복호화된 움직임 정보 중에 복호화하고자 하는 휘도 블록의 움직임 정보가 존재하지 않는다고 검사되면, 제1 복호화부(1030)는 그 복호화하고자 하는 휘도 블록을 일정 복호화 모드로 복호화한다. 이 때, 일정 복호화 모드는 인터 모드일 수도 있고, 인트라 모드일 수도 있다. If it is checked that the motion information of the luminance block to be decoded does not exist in the motion information decoded by the third decoder 1020, the first decoder 1030 decodes the luminance block to be decoded in a constant decoding mode. do. At this time, the constant decoding mode may be an inter mode or an intra mode.

그에 반해, 제3 복호화부(1020)에서 복호화된 움직임 정보 중에 복호화하고자 하는 휘도 블록의 움직임 정보가 존재한다고 검사되면, 제1 복호화부(1030)는 그 복호화된 움직임 정보에 포함된 모드 정보에 나타난 복호화 모드가 인터 모드인지 아니면 인트라 모드인지 분석한다. 이 경우, 제1 복호화부(1030)는 그 복호화하고자 하는 휘도 블록을 그 분석된 복호화 모드에 따라 복호화한다. On the other hand, if it is checked that the motion information of the luminance block to be decoded is present in the motion information decoded by the third decoder 1020, the first decoder 1030 may appear in the mode information included in the decoded motion information. Analyze whether the decoding mode is inter mode or intra mode. In this case, the first decoder 1030 decodes the luminance block to be decoded according to the analyzed decoding mode.

본 발명의 제1 실시예에 의하면, 제2 복호화부(1040)는 색차 블록(Cb, 또는 Cr)을 '휘도 블록(Y)마다 미리 설정된 복호화 모드 중 다수(a majority of)의 복호화 모드'로 복호화한다. 이 경우, 영상은 4:2:0 포맷, 4:2:2 포맷, 4:4:4 포맷 중 하나의 포맷을 갖는 것이 바람직하다. According to the first embodiment of the present invention, the second decoder 1040 sets the chrominance block Cb or Cr to a decoding mode of a majority of decoding modes preset for each luminance block Y. Decrypt In this case, it is preferable that the image has one of a 4: 2: 0 format, a 4: 2: 2 format, and a 4: 4: 4 format.

본 발명의 제2 실시예에 의하면, 제2 복호화부(1040)는 색차 블록(Cb, 또는 Cr)을 색차 블록마다 미리 설정된 복호화 모드에 따라 복호화한다. 이 경우, 영상은 4:2:0 포맷, 4:2:2 포맷, 4:4:4 포맷 중 하나의 포맷을 갖는 것이 바람직하다. According to the second embodiment of the present invention, the second decoder 1040 decodes the color difference block Cb or Cr according to a decoding mode preset for each color difference block. In this case, it is preferable that the image has one of a 4: 2: 0 format, a 4: 2: 2 format, and a 4: 4: 4 format.

구체적으로, 그 미리 설정된 복호화 모드는 입력단자 IN 5를 통해 입력된 비트스트림에 이미 나타나 있을 수 있다. Specifically, the preset decoding mode may already appear in the bitstream input through the input terminal IN5.

따라서, 제2 복호화부(1040)는 제3 복호화부(1020)에서 복호화된 움직임 정보 중에 복호화하고자 하는 색차 블록의 움직임 정보가 존재하는가 검사한다. Therefore, the second decoder 1040 checks whether motion information of the color difference block to be decoded is present in the motion information decoded by the third decoder 1020.

만일, 제3 복호화부(1020)에서 복호화된 움직임 정보 중에 복호화하고자 하는 색차 블록의 움직임 정보가 존재하지 않는다고 검사되면, 제2 복호화부(1040)는 그 복호화하고자 하는 색차 블록을 일정 복호화 모드로 복호화한다. 이 때, 일정 복호화 모드는 인터 모드일 수도 있고, 인트라 모드일 수도 있다.If it is checked that the motion information of the color difference block to be decoded does not exist in the motion information decoded by the third decoder 1020, the second decoder 1040 decodes the color difference block to be decoded in a constant decoding mode. do. At this time, the constant decoding mode may be an inter mode or an intra mode.

그에 반해, 제3 복호화부(1020)에서 복호화된 움직임 정보 중에 복호화하고자 하는 색차 블록의 움직임 정보가 존재한다고 검사되면, 제2 복호화부(1040)는 그 복호화된 움직임 정보에 포함된 모드 정보에 나타난 복호화 모드가 인터 모드인지 아니면 인트라 모드인지 분석한다. 이 경우, 제2 복호화부(1040)는 그 복호화하고자 하는 색차 블록을 그 분석된 복호화 모드에 따라 복호화한다. In contrast, if it is checked that the motion information of the color difference block to be decoded is present in the motion information decoded by the third decoder 1020, the second decoder 1040 may appear in the mode information included in the decoded motion information. Analyze whether the decoding mode is inter mode or intra mode. In this case, the second decoder 1040 decodes the color difference block to be decoded according to the analyzed decoding mode.

본 발명의 제3 실시예에 의하면, 제2 복호화부(1040)는 색차 블록(Cb, 또는 Cr)을 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 복호화 모드'에 따라 복호화한다. 이 경우, 영상은 4:2:2 포맷, 또는 4:4:4 포맷인 것이 바람직하다.According to the third embodiment of the present invention, the second decoder 1040 decodes the color difference block Cb or Cr according to the 'decoding mode of the luminance block having the same phase as that of the color difference block'. In this case, the image is preferably a 4: 2: 2 format or a 4: 4: 4 format.

본 발명의 제4 실시예에 의하면, 제2 복호화부(1040)는 색차 블록(Cb, 또는 Cr)을 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록을 포함한 복수의 휘도 블록들의 복호화 모드들'을 고려하여 복호화한다. 예컨대, 제2 복호화부(1040)는 색차 블록을 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 복호화 모드'와 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록에 인접한 휘도 블록의 복호화 모드'의 일치 여부에 따라 결정된 복호화 모드에 따라 복호화할 수 있다. 이 경우, '색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 복호화 모드'와 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록에 인접한 휘도 블록의 복호화 모드'가 일치한다면, 제2 복호화부(1040)는 그 색차 블록을 그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 복호화 모드에 따라 복호화할 수 있다. 그에 반해, '색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 복호화 모드'와 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록에 인접한 휘도 블록의 복호화 모드'가 불일치한다면, 제2 복호화부(1040)는 그 색차 블록을 일정 복호화 모드(예를 들어, 인터 모드)에 따라 복호화할 수 있다. 본 발명의 제4 실시예의 경우, 영상은 4:2:2 포맷인 것이 바람직하다.According to the fourth embodiment of the present invention, the second decoder 1040 may decode the chrominance block Cb or Cr by decoding the plurality of luminance blocks including the luminance block having the same phase as that of the chrominance block. 'In consideration of'. For example, the second decoder 1040 may decode the chrominance block into a `` decoding mode of a luminance block having a phase equal to the phase of the chrominance block '' and `` a luminance block adjacent to a luminance block having a phase equal to the phase of the chrominance block. '' The decoding can be performed according to the decoding mode determined according to whether or not the modes' match. In this case, if the decoding mode of the luminance block having the same phase as the phase of the chrominance block and the decoding mode of the luminance block adjacent to the luminance block having the same phase as the phase of the chrominance block, the second decoding unit ( The 1040 may decode the chrominance block according to the decoding mode of the luminance block having the same phase as that of the chrominance block. In contrast, if the decoding mode of the luminance block having the same phase as the phase of the chrominance block and the decoding mode of the luminance block adjacent to the luminance block having the same phase as the phase of the chrominance block, the second decoding unit ( The 1040 may decode the color difference block according to a predetermined decoding mode (eg, an inter mode). In the case of the fourth embodiment of the present invention, the video is preferably in 4: 2: 2 format.

한편, 제1 복호화부(1030)에서 복원된 휘도 블록들, 제2 복호화부(1040)에서 복원된 색차 블록들 모두는 출력단자 OUT 7을 통해 출력된다. 출력단자 OUT 7은 도 3에 도시된 출력단자 OUT 3, 또는 OUT 4와 동일하다.Meanwhile, all of the luminance blocks reconstructed by the first decoder 1030 and the color difference blocks reconstructed by the second decoder 1040 are output through the output terminal OUT 7. The output terminal OUT 7 is the same as the output terminal OUT 3 or OUT 4 shown in FIG. 3.

도 11은 본 발명의 제1 실시예, 제3 실시예, 또는 제4 실시예에 의한 제2 복호화부(1040)를 설명하기 위한 일 실시예(1040A)의 블록도로서, 움직임벡터 결정부(1110) 및 색차성분 복호화부(1120)를 포함할 수 있다. 도 11에 대해 후술될 바는, 제2 복호화부(1040)가 복호화하고자 하는 색차 블록이 인터 모드에 따라 복호화됨을 전제로 한다. FIG. 11 is a block diagram of an embodiment 1040A for explaining the second decoder 1040 according to the first, third, or fourth embodiment of the present invention. 1110 and the chrominance component decoder 1120. Referring to FIG. 11, it is assumed that the color difference block to be decoded by the second decoder 1040 is decoded according to the inter mode.

움직임벡터 결정부(1110)는 입력단자 IN 7을 통해 입력된 색차 블록(Cb, 또 는 Cr)의 움직임 벡터를 그 색차 블록에 대응되는 하나 이상의 휘도 블록들의 움직임 벡터들을 고려하여 결정한다. 예컨대, 움직임벡터 결정부(1110)는 색차 블록의 움직임 벡터를 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록에 인접한 휘도 블록의 움직임 벡터'와 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 움직임 벡터'를 고려하여 결정할 수 있다. 도 4b에 도시된 8개의 블록들 모두 인터 모드로 복호화된다고 할 때 도 4b에 도시된 바를 이용하여 움직임벡터 결정부(1110)의 동작을 구체적으로 예시하면, 움직임벡터 결정부(1110)는 색차 블록들(4번째 블록, 5번째 블록, 6번째 블록, 7번째 블록) 각각의 움직임 벡터를 상기 수학식 1에 따라 계산할 수 있다.The motion vector determiner 1110 determines the motion vector of the color difference block Cb or Cr input through the input terminal IN 7 in consideration of the motion vectors of one or more luminance blocks corresponding to the color difference block. For example, the motion vector determiner 1110 may determine a motion vector of the chrominance block as the motion vector of the luminance block adjacent to the luminance block having the same phase as the phase of the chrominance block and the luminance having the same phase as the phase of the chrominance block. It may be determined considering the motion vector of the block. When all eight blocks shown in FIG. 4B are decoded in inter mode, the motion vector determiner 1110 exemplarily illustrates an operation of the motion vector determiner 1110 using the bar illustrated in FIG. 4B. Motion vectors of each of the four (fourth block, fifth block, sixth block, and seventh block) may be calculated according to Equation 1 above.

색차성분 부호화부(1120)는 입력단자 IN 7을 통해 입력된 색차 블록을 그 결정된 움직임 벡터를 고려하여 복호화하고, 복호화된 결과를 출력단자 OUT 8을 통해 출력한다. 출력단자 OUT 8은 전술한 출력단자 OUT 7과 동일할 수 있다.The color difference component encoder 1120 decodes the color difference block input through the input terminal IN 7 in consideration of the determined motion vector, and outputs the decoded result through the output terminal OUT 8. The output terminal OUT 8 may be the same as the above-described output terminal OUT 7.

도 12은 영상을 1MV 방식으로 부호화/복호화하는 원리를 설명하기 위한 도면들이다. 1MV(motion vector) 방식이란 하나의 매크로블록에 필요한 움직임 벡터가 최대 1개인 경우의 부호화/복호화 방식을 의미한다. 설명의 편의상, 도 12에 도시된 영상은 4:2:0 포맷을 갖는 영상이다. FIG. 12 is a diagram for explaining a principle of encoding / decoding an image using a 1MV scheme. The 1 MV (motion vector) scheme refers to a coding / decoding scheme in which a maximum of one motion vector is required for one macroblock. For convenience of description, the image shown in FIG. 12 is an image having a 4: 2: 0 format.

이처럼 영상을 1MV 방식으로 부호화/복호화한다면, 휘도 블록(1212, 1214, 1216, 1218)(1232, 1234, 1236, 1238)의 부호화 모드(또는, 복호화 모드), 청색 색차 블록(1220)(1240)의 부호화 모드(또는, 복호화 모드), 적색 색사 블록(1222)(1242)의 부호화 모드(또는, 복호화 모드) 모두가, 도 12에 도시된 바와 같이, 서로 동일하다. If the image is encoded / decoded using the 1MV method as described above, the encoding mode (or decoding mode) of the luminance blocks 1212, 1214, 1216, and 1218 (1232, 1234, 1236, and 1238) and the blue color difference block 1220 and 1240 are used. The coding modes (or decoding modes) of and the coding modes (or decoding modes) of the red color yarn blocks 1222 and 1242 are the same as shown in FIG. 12.

도 13은 본 발명에 의한 영상 부호화 방법을 설명하기 위한 제1 실시예의 플로우챠트로서, 휘도 블록을 부호화한 뒤, 색차 블록을 휘도 블록의 부호화 모드를 고려하여 결정되는 부호화 모드에 따라 부호화하는 단계들(제1310~ 1340 단계들)로 이루어진다. FIG. 13 is a flowchart of a first exemplary embodiment for explaining an image encoding method according to the present invention. After encoding a luminance block, encoding the color difference block according to an encoding mode determined in consideration of an encoding mode of the luminance block. (1313-1340 steps).

제1 부호화부(512)는 휘도 블록을 휘도 블록마다 미리 설정된 부호화 모드에 따라 부호화한다(제1310 단계). The first encoder 512 encodes the luminance block for each luminance block according to a preset encoding mode (Step 1310).

제1310 단계 후에, 제2 부호화부(514)는 색차 블록을 '휘도 블록마다 미리 설정된 부호화 모드 중 다수의 부호화 모드'로 부호화한다(제1320~ 1340 단계들). After operation 1310, the second encoder 514 encodes the color difference block into a plurality of encoding modes among preset encoding modes for each luminance block (steps 1320 to 1340).

구체적으로, 제2 부호화부(514)는 휘도 블록마다 미리 설정된 부호화 모드 중 절반 이상이 인터 모드인가 판단한다(제1320 단계). 제1320 단계는, 도시된 바와 같이 "휘도 블록마다 미리 설정된 부호화 모드 중 절반 이상이 인터 모드인가"를 판단할 수도 있고, 도시된 바와 달리 "휘도 블록마다 미리 설정된 부호화 모드 중 절반 초과가 인터 모드인가"를 판단할 수도 있다. In detail, the second encoder 514 determines whether at least half of the preset encoding modes for each luminance block are the inter modes (step 1320). In operation 1320, it may be determined whether "at least half of the preset encoding modes for each luminance block are inter modes", or, as shown in FIG. "Can be judged.

제1320 단계에서 인터 모드라고 판단되면, 제2 부호화부(514)는 색차 블록을 인터 모드로 부호화한다(제1330 단계). 그에 반해, 제1320 단계에서 인트라 모드라고 판단되면, 제2 부호화부(514)는 색차 블록을 인트라 모드로 부호화한다(제1340 단계). If it is determined in step 1320 that the inter mode, the second encoder 514 encodes the color difference block in the inter mode (step 1330). In contrast, if it is determined that the intra mode is detected in operation 1320, the second encoder 514 encodes the color difference block in the intra mode (operation 1340).

도 14는 본 발명에 의한 영상 복호화 방법을 설명하기 위한 제1 실시예의 플로우챠트로서, 휘도 블록을 복호화한 뒤, 색차 블록을 휘도 블록의 복호화 모드를 고려하여 결정되는 복호화 모드에 따라 복호화하는 단계들(제1410~ 1432 단계들)로 이루어진다. 14 is a flowchart of a first exemplary embodiment for explaining an image decoding method according to the present invention. After decoding a luminance block, steps of decoding the chrominance block according to a decoding mode determined in consideration of the decoding mode of the luminance block. (Steps 1410-1432).

제3 복호화부(1020)는 움직임 정보를 복호화하고(제1410 단계), 제1 복호화부(1030)는 복호화하고자 하는 블록이 휘도 블록인가 판단한다(제1412 단계). 도시된 바에서, N은 복호화 순위를 의미하며, 전술한 t일 수도 있고, u일 수도 있고, v일 수도 있다. The third decoder 1020 decodes the motion information (step 1410), and the first decoder 1030 determines whether the block to be decoded is the luminance block (step 1412). In the figure, N denotes the decoding order, which may be t, u, or v described above.

제1412 단계에서 휘도 블록이라고 판단되면, 제1 복호화부(1030)는 그 복호화하고자 하는 블록의 움직임 정보가 제1410 단계에서 복호화된 움직임 정보 중에 존재하는가 판단한다(제1414 단계). If it is determined in operation 1412 that the block is a luminance block, the first decoder 1030 determines whether motion information of the block to be decoded is present in the motion information decoded in operation 1410 (operation 1414).

제1414 단계에서 존재하지 않는다고 판단되면, 제1 복호화부(1030)는 그 복호화하고자 하는 블록을 인터 모드로 복호화한다(제1416 단계). 다만, 제1416 단계는 도시된 바와 달리, 그 복호화하고자 하는 블록을 인트라 모드로 복호화할 수도 있다. If it is determined in step 1414 that it does not exist, the first decoder 1030 decodes the block to be decoded in the inter mode (step 1416). However, in operation 1416, the block to be decoded may be decoded in the intra mode.

한편, 제1414 단계에서 존재한다고 판단되면, 제1 복호화부(1030)는 그 복호화하고자 하는 블록의 움직임 정보를 분석한다(제1418 단계). On the other hand, if it is determined in step 1414, the first decoder 1030 analyzes the motion information of the block to be decoded (step 1418).

제1418 단계 후에, 제1 복호화부(1030)는 제1418 단계에서 인트라 모드라고 분석되는지 판단한다(제1420 단계). After operation 1418, the first decoder 1030 determines whether the operation is analyzed as an intra mode in operation 1418 (operation 1420).

제1418 단계에서 인트라 모드라고 분석된다고 판단되면(제1420 단계), 제1 복호화부(1030)는 그 복호화하고자 하는 블록을 인트라 모드로 복호화한다(제1422 단계). 그에 반해, 제1418 단계에서 인터 모드라고 분석된다고 판단되면(제1420 단 계), 제1416 단계로 진행한다. If it is determined in step 1418 that it is analyzed as an intra mode (step 1420), the first decoder 1030 decodes the block to be decoded in the intra mode (step 1422). In contrast, if it is determined in step 1418 that it is determined to be an inter mode (step 1420), it proceeds to step 1416.

만일, 제1412 단계에서 색차 블록이라고 판단되면, 제2 복호화부(1040)는 그 복호화하고자 하는 블록과 동일한 매크로블록에 포함된 모든 휘도 블록의 복호화 모드들 중 절반 이상이 인터 모드인가 판단한다(제1424 단계). If it is determined in step 1412 that the color difference block is determined, the second decoder 1040 determines whether at least half of the decoding modes of all the luminance blocks included in the same macroblock as the block to be decoded are the inter mode. Step 1424).

다만, 제1424 단계는 도시된 바와 달리, 그 복호화하고자 하는 블록과 동일한 매크로블록에 포함된 모든 휘도 블록의 복호화 모드들 중 절반 초과가 인터 모드인가 판단할 수도 있다. However, in operation 1424, as illustrated, more than half of decoding modes of all luminance blocks included in the same macroblock as the block to be decoded may be determined to be an inter mode.

제1424 단계에서 인터 모드가 아니라고 판단되면, 제2 복호화부(1040)는 그 복호화하고자 하는 블록을 인트라 모드로 복호화한다(제1426 단계). If it is determined in step 1424 that it is not the inter mode, the second decoder 1040 decodes the block to be decoded in the intra mode (step 1426).

반면, 제1424 단계에서 인터 모드라고 판단되면, 제2 복호화부(1040)는 그 복호화하고자 하는 블록을 인터 모드로 복호화한다(제1428 단계). On the other hand, if it is determined in step 1424 that the inter mode, the second decoder 1040 decodes the block to be decoded in the inter mode (step 1428).

제1416 단계, 제1426 단계 또는 제1428 단계 후에, 제1430 단계는 매크로블록의 모든 블록이 다 복호화되었는지 판단한다. 만일, 제1430 단계에서 복호화되지 않은 블록이 존재한다고 판단되면, 그 다음 복호화 순위의 블록을 복호화하기 위해 제1432 단계를 거쳐 제1412 단계로 진행한다. After operation 1416, operation 1426, or operation 1428, operation 1430 determines whether all blocks of the macroblock are decoded. If it is determined that there is an undecoded block in operation 1430, the process proceeds to operation 1412 through operation 1432 in order to decode a block having a decoding rank.

도 15 내지 도 17은 영상을 4MV 방식으로 부호화/복호화하는 원리를 설명하기 위한 제1 실시예의 도면들이다. 4MV(motion vector) 방식이란 하나의 매크로블록(엄밀하게는, 매크로블록 중 휘도 블록들)에 필요한 움직임 벡터가 4개인 경우의 부호화/복호화 방식을 의미한다. 15 to 17 are diagrams of a first embodiment for explaining a principle of encoding / decoding an image using a 4MV scheme. The 4MV (motion vector) method refers to an encoding / decoding method when four motion vectors are required for one macroblock (strictly, luminance blocks in the macroblock).

도 15에 도시된 매크로블록은, 4:2:0 포맷을 갖는 영상의 매크로블록이다. The macroblock shown in FIG. 15 is a macroblock of an image having a 4: 2: 0 format.

도 15의 (a)에 도시된 바에서, 휘도 블록들(1512, 1514, 1516, 1518) 각각은 인트라 모드, 인터 모드, 인터 모드, 인터 모드로 부호화/복호화 된다. 이 경우, 휘도 블록들(1512, 1514, 1516, 1518)의 부호화 모드(또는, 복호화 모드)들 중 다수의 부호화 모드(또는, 복호화 모드)는 인터 모드이다. 그러므로, 청색 색차 블록(1520)은 인터 모드로 부호화/복호화된다. 마찬가지로, 적색 색차 블록(1530)도 인터 모드로 부호화/복호화된다. 15A, each of the luminance blocks 1512, 1514, 1516, and 1518 is encoded / decoded in an intra mode, an inter mode, an inter mode, and an inter mode. In this case, a plurality of coding modes (or decoding modes) among the coding modes (or decoding modes) of the luminance blocks 1512, 1514, 1516, and 1518 are in the inter mode. Therefore, the blue color difference block 1520 is encoded / decoded in the inter mode. Similarly, the red color difference block 1530 is also encoded / decoded in the inter mode.

이와 비슷하게, 도 15의 (b)에 도시된 바에서, 휘도 블록들(1542, 1544, 1546, 1548) 각각은 인트라 모드, 인트라 모드, 인트라 모드, 인터 모드로 부호화/복호화 된다. 이 경우, 휘도 블록들(1542, 1544, 1546, 1548)의 부호화 모드(또는, 복호화 모드)들 중 다수의 부호화 모드(또는, 복호화 모드)는 인트라 모드이다. 그러므로, 청색 색차 블록(1550)은 인트라 모드로 부호화/복호화된다. 마찬가지로, 적색 색차 블록(1560)도 인트라 모드로 부호화/복호화된다. Similarly, in FIG. 15B, each of the luminance blocks 1542, 1544, 1546, and 1548 is encoded / decoded in an intra mode, an intra mode, an intra mode, and an inter mode. In this case, a plurality of coding modes (or decoding modes) of the coding modes (or decoding modes) of the luminance blocks 1542, 1544, 1546 and 1548 are intra modes. Therefore, the blue color difference block 1550 is encoded / decoded in the intra mode. Similarly, the red color difference block 1560 is also encoded / decoded in the intra mode.

도 16에 도시된 매크로블록은, 4:2:2 포맷을 갖는 영상의 매크로블록이다. The macroblock shown in FIG. 16 is a macroblock of an image having a 4: 2: 2 format.

도 16의 (a)에 도시된 바에서, 휘도 블록들(1612, 1614, 1616, 1618) 각각은 인트라 모드, 인터 모드, 인터 모드, 인터 모드로 부호화/복호화 된다. 이 경우, 휘도 블록들(1612, 1614, 1616, 1618)의 부호화 모드(또는, 복호화 모드)들 중 다수의 부호화 모드(또는, 복호화 모드)는 인터 모드이다. 그러므로, 청색 색차 블록들(1622, 1624) 각각은 인터 모드로 부호화/복호화된다. 마찬가지로, 적색 색차 블록들(1632, 1634) 각각도 인터 모드로 부호화/복호화된다. As shown in FIG. 16A, each of the luminance blocks 1612, 1614, 1616, and 1618 is encoded / decoded in an intra mode, an inter mode, an inter mode, and an inter mode. In this case, a plurality of encoding modes (or decoding modes) among the encoding modes (or decoding modes) of the luminance blocks 1612, 1614, 1616, and 1618 are inter modes. Therefore, each of the blue color difference blocks 1622 and 1624 are encoded / decoded in the inter mode. Similarly, each of the red color difference blocks 1632 and 1634 is also encoded / decoded in the inter mode.

이와 비슷하게, 도 16의 (b)에 도시된 바에서, 휘도 블록들(1642, 1644, 1646, 1648) 각각은 인트라 모드, 인트라 모드, 인트라 모드, 인터 모드로 부호화/복호화 된다. 이 경우, 휘도 블록들(1642, 1644, 1646, 1648)의 부호화 모드(또는, 복호화 모드)들 중 다수의 부호화 모드(또는, 복호화 모드)는 인트라 모드이다. 그러므로, 청색 색차 블록들(1652, 1654) 각각은 인트라 모드로 부호화/복호화된다. 마찬가지로, 적색 색차 블록들(1662, 1664) 각각도 인트라 모드로 부호화/복호화된다. Similarly, as shown in FIG. 16B, each of the luminance blocks 1641, 1644, 1646, and 1648 is encoded / decoded in an intra mode, an intra mode, an intra mode, and an inter mode. In this case, a plurality of encoding modes (or decoding modes) among the encoding modes (or decoding modes) of the luminance blocks 1644, 1644, 1646, and 1648 are intra modes. Therefore, each of the blue color difference blocks 1652 and 1654 is encoded / decoded in the intra mode. Similarly, each of the red color difference blocks 1662 and 1664 is also encoded / decoded in the intra mode.

도 17에 도시된 매크로블록은, 4:4:4 포맷을 갖는 영상의 매크로블록이다. The macroblock shown in FIG. 17 is a macroblock of an image having a 4: 4: 4 format.

도 17의 (a)에 도시된 바에서, 휘도 블록들(1712, 1714, 1716, 1718) 각각은 인트라 모드, 인터 모드, 인터 모드, 인터 모드로 부호화/복호화 된다. 이 경우, 휘도 블록들(1712, 1714, 1716, 1718)의 부호화 모드(또는, 복호화 모드)들 중 다수의 부호화 모드(또는, 복호화 모드)는 인터 모드이다. 그러므로, 청색 색차 블록들(1722, 1724, 1726, 1728) 각각은 인터 모드로 부호화/복호화된다. 마찬가지로, 적색 색차 블록들(1732, 1734, 1736, 1738) 각각도 인터 모드로 부호화/복호화된다. As shown in FIG. 17A, each of the luminance blocks 1712, 1714, 1716, and 1718 is encoded / decoded in an intra mode, an inter mode, an inter mode, and an inter mode. In this case, a plurality of encoding modes (or decoding modes) among the encoding modes (or decoding modes) of the luminance blocks 1712, 1714, 1716, and 1718 are inter modes. Therefore, each of the blue color difference blocks 1722, 1724, 1726, and 1728 is encoded / decoded in the inter mode. Similarly, each of the red color difference blocks 1732, 1734, 1736, and 1738 is also encoded / decoded in the inter mode.

이와 비슷하게, 도 17의 (b)에 도시된 바에서, 휘도 블록들(1742, 1744, 1746, 1748) 각각은 인트라 모드, 인트라 모드, 인트라 모드, 인터 모드로 부호화/복호화 된다. 이 경우, 휘도 블록들(1742, 1744, 1746, 1748)의 부호화 모드(또는, 복호화 모드)들 중 다수의 부호화 모드(또는, 복호화 모드)는 인트라 모드이다. 그러므로, 청색 색차 블록들(1752, 1754, 1756, 1758) 각각은 인트라 모드로 부호화/복호화된다. 마찬가지로, 적색 색차 블록들(1762, 1764, 1766, 1768) 각각도 인트 라 모드로 부호화/복호화된다. Similarly, as shown in FIG. 17B, each of the luminance blocks 1742, 1744, 1746, and 1748 is encoded / decoded into an intra mode, an intra mode, an intra mode, and an inter mode. In this case, a plurality of encoding modes (or decoding modes) among the encoding modes (or decoding modes) of the luminance blocks 1742, 1744, 1746, and 1748 are intra modes. Therefore, each of the blue color difference blocks 1552, 1754, 1756, 1758 is encoded / decoded in the intra mode. Similarly, each of the red color difference blocks 1762, 1764, 1766, and 1768 is also encoded / decoded in the intra mode.

도 18은 본 발명에 의한 영상 부호화 방법을 설명하기 위한 제2 실시예의 플로우챠트이다. 18 is a flowchart of a second embodiment for explaining a video encoding method according to the present invention.

제1 부호화부(512)는 휘도 블록을 휘도 블록마다 미리 설정된 부호화 모드에 따라 부호화하고(제1810 단계), 제2 부호화부는 색차 블록을 색차 블록마다 미리 설정된 부호화 모드에 따라 부호화한다(제1820 단계). The first encoder 512 encodes the luminance block according to a preset encoding mode for each luminance block (step 1810), and the second encoder encodes the chrominance block according to a preset encoding mode for each color difference block (step 1820). ).

제1820 단계는 도시된 바와 같이 제1810 단계 이후에 수행될 수도 있고, 도시된 바와 달리 제1810 단계 이전에 수행될 수도 있고 제1810 단계와 동시에 수행될 수도 있다. As shown, the step 1820 may be performed after the step 1810 or, as illustrated, may be performed before the step 1810 or may be performed simultaneously with the step 1810.

도 19는 본 발명에 의한 영상 복호화 방법을 설명하기 위한 제2 실시예의 플로우챠트로서, 휘도 블록을 휘도 블록마다 미리 설정된 복호화 모드에 따라 복호화하고, 색차 블록을 색차 블록마다 미리 설정된 복호화 모드에 따라 복호화하는 단계들(제1910~ 1924 단계들)로 이루어진다. 19 is a flowchart of a second embodiment for explaining an image decoding method according to the present invention, in which a luminance block is decoded in accordance with a decoding mode preset for each luminance block, and a chrominance block is decoded in accordance with a decoding mode preset for each color difference block. It consists of the steps (steps 1910-1924).

제3 복호화부(1020)는 움직임 정보를 복호화한다(제1910 단계). The third decoder 1020 decodes the motion information (step 1910).

제1910 단계 후에, 제1 복호화부(1030) 또는 제2 복호화부(1040)는 그 복호화하고자 하는 블록의 움직임 정보가 제1910 단계에서 복호화된 움직임 정보 중에 존재하는가 판단한다(제1912 단계). After operation 1910, the first decoder 1030 or the second decoder 1040 determines whether motion information of the block to be decoded is present in the motion information decoded in operation 1910 (operation 1912).

제1912 단계에서 존재한다고 판단되면, 제1 복호화부(1030) 또는 제2 복호화부(1040)는 그 복호화하고자 하는 블록의 움직임 정보를 분석한다(제1914 단계). If it is determined in step 1912 that the first decoder 1030 or the second decoder 1040 analyzes the motion information of the block to be decoded (step 1914).

제1914 단계 후에, 제1 복호화부(1030) 또는 제2 복호화부(1040)는 제1914 단계에서 인트라 모드라고 분석되는지 판단한다(제1916 단계). After operation 1914, the first decoder 1030 or the second decoder 1040 determines whether it is analyzed as an intra mode in operation 1914 (operation 1916).

제1914 단계에서 인트라 모드라고 분석된다고 판단되면(제1916 단계), 제1 복호화부(1030) 또는 제2 복호화부(1040)는 그 복호화하고자 하는 블록을 인트라 모드로 복호화한다(제1918 단계). 그에 반해, 제1914 단계에서 인터 모드라고 분석된다고 판단되면(제1916 단계), 제1 복호화부(1030) 또는 제2 복호화부(1040)는 그 복호화하고자 하는 블록을 인터 모드로 복호화한다(제1920 단계). If it is determined in step 1914 that it is analyzed as an intra mode (step 1916), the first decoder 1030 or the second decoder 1040 decodes the block to be decoded in the intra mode (step 1918). In contrast, if it is determined in step 1914 that it is determined to be an inter mode (step 1916), the first decoder 1030 or the second decoder 1040 decodes the block to be decoded in the inter mode (1920). step).

한편, 제1912 단계에서 존재하지 않는다고 판단되면, 도시된 바와 같이 제1920 단계로 진행할 수도 있고, 도시된 바와 달리 그 복호화하고자 하는 블록을 인트라 모드로 복호화할 수도 있다. On the other hand, if it is determined in step 1912 that it does not exist, it may proceed to step 1920 as shown, or unlike the block shown to be decoded in the intra mode can be decoded.

도 20은 영상을 4MV 방식으로 부호화/복호화하는 원리를 설명하기 위한 제2 실시예의 도면들이다. 20 is a diagram for describing a principle of encoding / decoding an image using a 4MV scheme.

도 20의 (a)에 도시된 매크로블록은, 4:2:0 포맷을 갖는 영상의 매크로블록이다. The macroblock illustrated in FIG. 20A is a macroblock of an image having a 4: 2: 0 format.

도 20의 (a)에 도시된 바에서, 휘도 블록들(2012, 2014, 2016, 2018) 각각은 인트라 모드, 인터 모드, 인터 모드, 인터 모드로 부호화/복호화 된다. 또한, 청색 색차 블록(2020)은 인터 모드로 부호화/복호화되고, 적색 색차 블록(2030)은 인트라 모드로 부호화/복호화된다. 이와 같이, 휘도 블록의 부호화 모드(또는, 복호화 모드), 청색 색차 블록의 부호화 모드(또는, 복호화 모드), 적색 색차 블록의 부호화 모드(또는, 복호화 모드)간에는 아무런 관련이 없을 수도 있다. As shown in FIG. 20A, each of the luminance blocks 2012, 2014, 2016, and 2018 is encoded / decoded in an intra mode, an inter mode, an inter mode, and an inter mode. In addition, the blue color difference block 2020 is encoded / decoded in the inter mode, and the red color difference block 2030 is encoded / decoded in the intra mode. As described above, there may be no relation between the coding mode (or decoding mode) of the luminance block, the coding mode (or decoding mode) of the blue color difference block, and the encoding mode (or decoding mode) of the red color difference block.

도 20의 (b)에 도시된 매크로블록은, 4:2:2 포맷을 갖는 영상의 매크로블록 이다. The macroblock illustrated in FIG. 20B is a macroblock of an image having a 4: 2: 2 format.

도 20의 (b)에 도시된 바에서, 휘도 블록들(2042, 2044, 2046, 2048) 각각은 인트라 모드, 인트라 모드, 인트라 모드, 인터 모드로 부호화/복호화 된다. 또한, 청색 색차 블록들(2052, 2054) 각각은 인터 모드, 인트라 모드로 부호화/복호화되고, 적색 색차 블록들(2062, 2064) 각각은 인트라 모드, 인터 모드로 부호화/복호화된다. 이처럼, 휘도 블록의 부호화 모드(또는, 복호화 모드), 청색 색차 블록의 부호화 모드(또는, 복호화 모드), 적색 색차 블록의 부호화 모드(또는, 복호화 모드)간에는 아무런 관련이 없을 수도 있다. As shown in FIG. 20B, each of the luminance blocks 2042, 2044, 2046, and 2048 is encoded / decoded in an intra mode, an intra mode, an intra mode, and an inter mode. In addition, each of the blue color difference blocks 2052 and 2054 is encoded / decoded in an inter mode and an intra mode, and each of the red color difference blocks 2062 and 2064 is encoded / decoded in an intra mode and an inter mode. As described above, there may be no relation between the coding mode (or decoding mode) of the luminance block, the coding mode (or decoding mode) of the blue color difference block, and the encoding mode (or decoding mode) of the red color difference block.

도 20의 (c)에 도시된 매크로블록은, 4:4:4 포맷을 갖는 영상의 매크로블록이다. The macroblock shown in FIG. 20C is a macroblock of an image having a 4: 4: 4 format.

도 20의 (c)에 도시된 바에서, 휘도 블록들(2072, 2074, 2076, 2078) 각각은 인트라 모드, 인트라 모드, 인트라 모드, 인터 모드로 부호화/복호화 된다. 또한, 청색 색차 블록들(2082, 2084, 2086, 2088) 각각은 인터 모드, 인트라 모드, 인트라 모드, 인터 모드로 부호화/복호화되고, 적색 색차 블록들(2092, 2094, 2096, 2098) 각각은 인터 모드, 인터 모드, 인터 모드, 인터 모드로 부호화/복호화된다. 이와 같이, 휘도 블록의 부호화 모드(또는, 복호화 모드), 청색 색차 블록의 부호화 모드(또는, 복호화 모드), 적색 색차 블록의 부호화 모드(또는, 복호화 모드)간에는 아무런 관련이 없을 수도 있다. As shown in FIG. 20C, each of the luminance blocks 2072, 2074, 2076, and 2078 is encoded / decoded in an intra mode, an intra mode, an intra mode, and an inter mode. In addition, each of the blue color difference blocks 2082, 2084, 2086, and 2088 is encoded / decoded in an inter mode, an intra mode, an intra mode, and an inter mode, and each of the red color difference blocks 2092, 2094, 2096, and 2098 is interleaved. Coded / decoded in mode, inter mode, inter mode and inter mode. As described above, there may be no relation between the coding mode (or decoding mode) of the luminance block, the coding mode (or decoding mode) of the blue color difference block, and the encoding mode (or decoding mode) of the red color difference block.

도 21은 본 발명에 의한 영상 부호화 방법을 설명하기 위한 제3 실시예의 플로우챠트로서, 휘도 블록을 부호화한 뒤, 색차 블록을 휘도 블록의 부호화 모드를 고려하여 결정되는 부호화 모드에 따라 부호화하는 단계들(제2110~ 2120 단계들)로 이루어진다. 21 is a flowchart of a third exemplary embodiment for explaining an image encoding method according to the present invention. After encoding a luminance block, encoding the color difference block according to an encoding mode determined in consideration of an encoding mode of the luminance block. (Steps 2110-2120).

제1 부호화부(512)는 휘도 블록을 휘도 블록마다 미리 설정된 부호화 모드에 따라 부호화한다(제2110 단계). The first encoder 512 encodes the luminance block for each luminance block according to a preset encoding mode (step 2110).

제2110 단계 후에, 제2 부호화부(514)는 색차 블록을 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 부호화 모드'에 따라 부호화한다(제2120 단계). After operation 2110, the second encoder 514 encodes the color difference block according to the encoding mode of the luminance block having the same phase as the phase of the color difference block (step 2120).

도 22는 본 발명에 의한 영상 복호화 방법을 설명하기 위한 제3 실시예의 플로우챠트로서, 휘도 블록을 복호화한 뒤, 색차 블록을 휘도 블록의 복호화 모드를 고려하여 결정되는 복호화 모드에 따라 복호화하는 단계들(제2210~ 2232 단계들)로 이루어진다. FIG. 22 is a flowchart of a third exemplary embodiment for explaining an image decoding method according to the present invention. After decoding a luminance block, decoding the color difference block according to a decoding mode determined in consideration of a decoding mode of the luminance block. (Steps 2210-2232).

제3 복호화부(1020)는 움직임 정보를 복호화하고(제2210 단계), 제1 복호화부(1030)는 복호화하고자 하는 블록이 휘도 블록인가 판단한다(제2212 단계). 도시된 바에서, N은 복호화 순위를 의미하며, 전술한 t일 수도 있고, u일 수도 있고, v일 수도 있다. The third decoder 1020 decodes the motion information (step 2210), and the first decoder 1030 determines whether the block to be decoded is the luminance block (step 2212). In the figure, N denotes the decoding order, which may be t, u, or v described above.

제2212 단계에서 휘도 블록이라고 판단되면, 제1 복호화부(1030)는 그 복호화하고자 하는 블록의 움직임 정보가 제2210 단계에서 복호화된 움직임 정보 중에 존재하는가 판단한다(제2214 단계). If it is determined in operation 2212 that it is a luminance block, the first decoder 1030 determines whether motion information of the block to be decoded exists in the motion information decoded in operation 2210 (operation 2214).

제2214 단계에서 존재한다고 판단되면, 제1 복호화부(1030)는 그 복호화하고자 하는 블록의 움직임 정보를 분석한다(제2216 단계). If it is determined in step 2214, the first decoder 1030 analyzes the motion information of the block to be decoded (step 2216).

제2216 단계 후에, 제1 복호화부(1030)는 제2216 단계에서 인트라 모드라고 분석되는지 판단한다(제2218 단계). After operation 2216, the first decoder 1030 determines whether an intra mode is analyzed in operation 2216 (operation 2218).

제2216 단계에서 인트라 모드라고 분석된다고 판단되면(제2218 단계), 제1 복호화부(1030)는 그 복호화하고자 하는 블록을 인트라 모드로 복호화한다(제2220 단계). 그에 반해, 제2216 단계에서 인터 모드라고 분석된다고 판단되면(제2218 단계), 제1 복호화부(1030)는 그 복호화하고자 하는 블록을 인터 모드로 복호화한다(제2222 단계). If it is determined in step 2216 that the intra mode is analyzed (step 2218), the first decoder 1030 decodes the block to be decoded in the intra mode (step 2220). In contrast, if it is determined in step 2216 that it is determined to be an inter mode (step 2218), the first decoder 1030 decodes the block to be decoded in the inter mode (step 2222).

한편, 제2214 단계에서 존재하지 않는다고 판단되면, 도시된 바와 같이 제2222 단계로 진행할 수도 있고, 도시된 바와 달리 그 복호화하고자 하는 블록을 인트라 모드로 복호화할 수도 있다. On the other hand, if it is determined in step 2214 that it does not exist, it may proceed to step 2222 as shown, or unlike the block shown to be decoded may be decoded in the intra mode.

만일, 제2212 단계에서 색차 블록이라고 판단되면, 제2 복호화부(1040)는 그 복호화하고자 하는 블록의 위상과 동일한 위상을 갖는 휘도 블록의 복호화 모드가 인터 모드인지 아니면 인트라 모드인지의 여부를 판단한다(제2224 단계). If it is determined in step 2212 that it is a chrominance block, the second decoder 1040 determines whether the decoding mode of the luminance block having the same phase as the phase of the block to be decoded is an inter mode or an intra mode. (Step 2224).

제2224 단계에서 인터 모드라고 판단되면, 제2 복호화부(1040)는 그 복호화하고자 하는 블록을 인터 모드로 복호화한다(제2226 단계). 반면, 제2224 단계에서 인트라 모드라고 판단되면, 제2 복호화부(1040)는 그 복호화하고자 하는 블록을 인트라 모드로 복호화한다(제2228 단계). If it is determined in step 2224 that the inter mode is determined, the second decoder 1040 decodes the block to be decoded in the inter mode (step 2226). On the other hand, if it is determined that the intra mode in operation 2224, the second decoder 1040 decodes the block to be decoded in the intra mode (operation 2228).

제2220 단계, 제2222 단계, 제2226 단계, 또는 제2228 단계 후에, 제2230 단계는 매크로블록의 모든 블록이 다 복호화되었는지 판단한다. 만일, 제2230 단계에서 복호화되지 않은 블록이 존재한다고 판단되면, 그 다음 복호화 순위의 블록을 복호화하기 위해 제2232 단계를 거쳐 제2212 단계로 진행한다. After step 2220, step 2222, step 2226, or step 2228, step 2230 determines whether all blocks of the macroblock have been decoded. If it is determined that there is an undecoded block in operation 2230, the process proceeds to operation 2212 through operation 2232 to decode a block having a decoding rank.

도 23은 영상을 4MV 방식으로 부호화/복호화하는 원리를 설명하기 위한 제3 실시예의 도면들이다. FIG. 23 is a diagram for describing a principle of encoding / decoding an image using a 4MV scheme.

도 23의 (a)에 도시된 매크로블록은, 4:2:2 포맷을 갖는 영상의 매크로블록이다. The macroblock shown in (a) of FIG. 23 is a macroblock of an image having a 4: 2: 2 format.

도 23의 (a)에 도시된 바에서, 휘도 블록(2312, 2314, 2316, 또는 2318)의 위상이란, 그 휘도 블록(2312, 2314, 2316, 또는 2318)의 휘도 블록들(2312, 2314, 2316, 및 2318) 내에서의 위치를 의미한다. 한편, 청색 색차 블록(2322, 또는 2324)의 위상이란, 그 청색 색차 블록(2322, 또는 2324)의 색차 블록들(2322, 2324, 2332, 및 2334) 내에서의 위치를 의미한다. 마찬가지로, 적색 색차 블록(2332, 또는 2334)의 위상이란, 그 적색 색차 블록(2332, 또는 2334)의 색차 블록들(2322, 2324, 2332, 및 2334) 내에서의 위치를 의미한다. As shown in (a) of FIG. 23, the phase of the luminance block 2312, 2314, 2316, or 2318 is the luminance blocks 2312, 2314, of the luminance block 2312, 2314, 2316, or 2318. 2316, and 2318). The phase of the blue color difference block 2322 or 2324 means a position within the color difference blocks 2232, 2324, 2332, and 2334 of the blue color difference block 2232 or 2324. Similarly, the phase of the red chrominance block 2332 or 2334 means the position within the chrominance blocks 2322, 2324, 2332, and 2334 of the red chrominance block 2332, or 2334.

도 23의 (a)에 도시된 바에서, 휘도 블록들(2312, 2314, 2316, 2318) 각각은 인트라 모드, 인트라 모드, 인트라 모드, 인터 모드로 부호화/복호화 된다. As shown in (a) of FIG. 23, each of the luminance blocks 2312, 2314, 2316, and 2318 is encoded / decoded in an intra mode, an intra mode, an intra mode, and an inter mode.

따라서, 청색 색차 블록(2322)은 휘도 블록(2312)의 부호화 모드(또는, 복호화 모드)로 부호화/복호화되고, 청색 색차 블록(2324)은 휘도 블록(2316)의 부호화 모드(또는, 복호화 모드)로 부호화/복호화되고, 적색 색차 블록(2332)은 휘도 블록(2314)의 부호화 모드(또는, 복호화 모드)로 부호화/복호화되고, 적색 색차 블록(2334)은 휘도 블록(2318)의 부호화 모드(또는, 복호화 모드)로 부호화/복호화된다. Accordingly, the blue color difference block 2322 is encoded / decoded in the encoding mode (or decoding mode) of the luminance block 2312, and the blue color difference block 2324 is the encoding mode (or decoding mode) of the luminance block 2316. The red color difference block 2332 is encoded / decoded by the encoding mode (or decoding mode) of the luminance block 2314, and the red color difference block 2334 is encoded by the encoding mode (or , Decoding mode).

도 23의 (b)에 도시된 매크로블록은, 4:4:4 포맷을 갖는 영상의 매크로블록이다. The macroblock shown in FIG. 23B is a macroblock of an image having a 4: 4: 4 format.

도 23의 (b)에 도시된 바에서, 휘도 블록(2342, 2344, 2346, 또는 2348)의 위상이란, 그 휘도 블록(2342, 2344, 2346, 또는 2348)의 휘도 블록들(2342, 2344, 2346, 및 2348) 내에서의 위치를 의미한다. 한편, 청색 색차 블록(2352, 2354, 2356, 또는 2358)의 위상이란, 그 청색 색차 블록(2352, 2354, 2356, 또는 2358)의 청색 색차 블록들(2352, 2354, 2356, 및 2358) 내에서의 위치를 의미한다. 마찬가지로, 적색 색차 블록(2362, 2364, 2366, 또는 2368)의 위상이란, 그 적색 색차 블록(2362, 2364, 2366, 또는 2368)의 적색 색차 블록들(2362, 2364, 2366, 또는 2368) 내에서의 위치를 의미한다. As shown in FIG. 23B, the phase of the luminance block 2342, 2344, 2346, or 2348 is the luminance blocks 2342, 2344, of the luminance block 2234, 2344, 2346, or 2348. 2346, and 2348). On the other hand, the phase of the blue color difference block 2352, 2354, 2356, or 2358 is within the blue color difference blocks 2352, 2354, 2356, and 2358 of the blue color difference block 2352, 2354, 2356, or 2358. Means the position of. Similarly, the phase of red color difference block 2322, 2364, 2366, or 2368 is within the red color difference blocks 2322, 2364, 2366, or 2368 of the red color difference block 2236, 2364, 2366, or 2368. Means the position of.

도 23의 (b)에 도시된 바에서, 휘도 블록들(2342, 2344, 2346, 2348) 각각은 인트라 모드, 인트라 모드, 인트라 모드, 인터 모드로 부호화/복호화 된다. As shown in FIG. 23B, each of the luminance blocks 2342, 2344, 2346, and 2348 is encoded / decoded in an intra mode, an intra mode, an intra mode, and an inter mode.

따라서, 청색 색차 블록(2352)은 휘도 블록(2342)의 부호화 모드(또는, 복호화 모드)로 부호화/복호화되고, 청색 색차 블록(2354)은 휘도 블록(2344)의 부호화 모드(또는, 복호화 모드)로 부호화/복호화되고, 청색 색차 블록(2356)은 휘도 블록(2346)의 부호화 모드(또는, 복호화 모드)로 부호화/복호화되고, 청색 색차 블록(2358)은 휘도 블록(2348)의 부호화 모드(또는, 복호화 모드)로 부호화/복호화된다. Accordingly, the blue color difference block 2352 is encoded / decoded in the encoding mode (or decoding mode) of the luminance block 2342, and the blue color difference block 2354 is the encoding mode (or decoding mode) of the luminance block 2344. Are encoded / decoded with the blue color difference block 2356 encoded / decoded with the encoding mode (or decoding mode) of the luminance block 2346, and the blue color difference block 2358 is encoded with the encoding mode (or , Decoding mode).

이와 비슷하게, 적색 색차 블록(2362)은 휘도 블록(2342)의 부호화 모드(또는, 복호화 모드)로 부호화/복호화되고, 적색 색차 블록(2364)은 휘도 블록(2344) 의 부호화 모드(또는, 복호화 모드)로 부호화/복호화되고, 적색 색차 블록(2366)은 휘도 블록(2346)의 부호화 모드(또는, 복호화 모드)로 부호화/복호화되고, 적색 색차 블록(2368)은 휘도 블록(2348)의 부호화 모드(또는, 복호화 모드)로 부호화/복호화된다.Similarly, the red color difference block 2362 is encoded / decoded in the encoding mode (or decoding mode) of the luminance block 2342, and the red color difference block 2264 is the encoding mode (or decoding mode of the luminance block 2344). ) Is encoded / decoded into the encoding mode (or decoding mode) of the luminance block 2346, and the red chrominance block 2368 is encoded into the encoding mode of the luminance block 2348. Or in decoding mode).

도 24는 본 발명에 의한 영상 부호화 방법을 설명하기 위한 제4 실시예의 플로우챠트로서, 휘도 블록을 부호화한 뒤, 색차 블록을 그 색차 블록에 대응되는 하나 이상의 휘도 블록들의 부호화 모드들을 고려하여 결정되는 부호화 모드에 따라 부호화하는 단계들(제2410~ 2440 단계들)을 포함할 수 있다.FIG. 24 is a flowchart of a fourth exemplary embodiment for explaining an image encoding method according to the present invention. After encoding a luminance block, the color difference block is determined in consideration of encoding modes of one or more luminance blocks corresponding to the color difference block. And encoding according to an encoding mode (steps 2410 to 2440).

제1 부호화부(512)는 휘도 블록을 휘도 블록마다 미리 설정된 부호화 모드에 따라 부호화한다(제2410 단계).The first encoder 512 encodes the luminance block according to a preset encoding mode for each luminance block (step 2410).

제2410 단계 후에, 제2 부호화부(514)는 색차 블록을 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 부호화 모드'와 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록에 인접한 휘도 블록의 부호화 모드'가 일치하는지 판단한다(제2420 단계).After operation 2410, the second encoder 514 sets the chrominance block to 'encoding mode of the luminance block having the same phase as the phase of the chrominance block' and 'luminance adjacent to the luminance block having the same phase as the phase of the chrominance block'. It is determined whether the encoding modes of the blocks match (step 2420).

제2420 단계에서 일치한다고 판단되면, 제2 부호화부(514)는 색차 블록을 '그 색차 블록의 위상과 동일한 위상을 갖는 휘도 블록의 부호화 모드'에 따라 부호화한다(제2430 단계).If it is determined in operation 2420, the second encoder 514 encodes the color difference block according to the encoding mode of the luminance block having the same phase as the phase of the color difference block (operation 2430).

그에 반해, 제2420 단계에서 불일치한다고 판단되면, 제2 부호화부(514)는 색차 블록을 일정 부호화 모드(예를 들어, 인터 모드)에 따라 부호화한다(제2440 단계). In contrast, if it is determined that there is a mismatch in operation 2420, the second encoder 514 encodes the color difference block according to a predetermined encoding mode (eg, an inter mode) (operation 2440).

도 25는 본 발명에 의한 영상 복호화 방법을 설명하기 위한 제4 실시예의 플로우챠트로서, 휘도 블록을 복호화한 뒤, 색차 블록을 그 색차 블록에 대응되는 하나 이상의 휘도 블록들의 복호화 모드들을 고려하여 결정되는 복호화 모드에 따라 복호화하는 단계들(제2510~ 2532 단계들)을 포함할 수 있다.FIG. 25 is a flowchart of a fourth exemplary embodiment for explaining an image decoding method according to the present invention. After decoding a luminance block, the color difference block is determined in consideration of decoding modes of one or more luminance blocks corresponding to the color difference block. And decoding according to a decoding mode (steps 2510 to 2532).

제3 복호화부(1020)는 움직임 정보를 복호화하고(제2510 단계), 제1 복호화부(1030)는 복호화하고자 하는 블록이 휘도 블록인가 판단한다(제2512 단계). 도시된 바에서, N은 복호화 순위를 의미하며, 전술한 t일 수도 있고, u일 수도 있고, v일 수도 있다. The third decoder 1020 decodes the motion information (step 2510), and the first decoder 1030 determines whether the block to be decoded is the luminance block (step 2512). In the figure, N denotes the decoding order, which may be t, u, or v described above.

제2512 단계에서 휘도 블록이라고 판단되면, 제1 복호화부(1030)는 그 복호화하고자 하는 블록의 움직임 정보가 제2510 단계에서 복호화된 움직임 정보 중에 존재하는가 판단한다(제2514 단계). If it is determined in step 2512 that it is a luminance block, the first decoder 1030 determines whether motion information of the block to be decoded exists in the motion information decoded in step 2510 (step 2514).

제2514 단계에서 존재한다고 판단되면, 제1 복호화부(1030)는 그 복호화하고자 하는 블록의 움직임 정보를 분석한다(제2516 단계). If it is determined in step 2514, the first decoder 1030 analyzes the motion information of the block to be decoded (step 2516).

제2516 단계 후에, 제1 복호화부(1030)는 제2516 단계에서 인트라 모드라고 분석되는지 판단한다(제2518 단계). After operation 2516, the first decoder 1030 determines whether an intra mode is analyzed in operation 2516 (operation 2518).

제2516 단계에서 인트라 모드라고 분석된다고 판단되면(제2518 단계), 제1 복호화부(1030)는 그 복호화하고자 하는 블록을 인트라 모드로 복호화한다(제2520 단계). 그에 반해, 제2516 단계에서 인터 모드라고 분석된다고 판단되면(제2518 단계), 제1 복호화부(1030)는 그 복호화하고자 하는 블록을 인터 모드로 복호화한다(제2522 단계). If it is determined in step 2516 that it is analyzed as an intra mode (step 2518), the first decoder 1030 decodes the block to be decoded in an intra mode (step 2520). In contrast, if it is determined in step 2516 that it is determined to be an inter mode (step 2518), the first decoder 1030 decodes the block to be decoded in the inter mode (step 2522).

한편, 제2514 단계에서 존재하지 않는다고 판단되면, 도시된 바와 같이 제2522 단계로 진행할 수도 있고, 도시된 바와 달리 그 복호화하고자 하는 블록을 인트라 모드로 복호화할 수도 있다. On the other hand, if it is determined in step 2514 that it does not exist, it may proceed to step 2522 as shown, or unlike the block shown to be decoded in the intra mode.

만일, 제2512 단계에서 색차 블록이라고 판단되면, 제2 복호화부(1040)는 그 복호화하고자 하는 블록의 위상과 동일한 위상을 갖는 휘도 블록의 복호화 모드가 그 복호화하고자 하는 블록의 위상과 동일한 위상을 갖는 휘도 블록에 인접한 휘도 블록의 복호화 모드와 일치하는지 판단한다(제2524 단계). If it is determined in step 2512 that it is a chrominance block, the second decoding unit 1040 has a decoding mode of the luminance block having the same phase as that of the block to be decoded and has the same phase as that of the block to be decoded. It is determined whether or not the decoding mode of the luminance block adjacent to the luminance block matches the decoding mode (step 2524).

제2524 단계에서 일치한다고 판단되면, 제2 복호화부(1040)는 그 복호화하고자 하는 블록을 '그 복호화하고자 하는 블록의 위상과 동일한 위상을 갖는 휘도 블록의 복호화 모드'에 따라 복호화한다(제2526 단계). 반면, 제2524 단계에서 불일치한다고 판단되면, 제2 복호화부(1040)는 그 복호화하고자 하는 블록을 일정 복호화 모드(예를 들어, 인터 모드)로 복호화한다(제2528 단계).If it is determined in step 2524, the second decoder 1040 decodes the block to be decoded according to the 'decoding mode of the luminance block having the same phase as the phase of the block to be decoded' (step 2526). ). On the other hand, if it is determined that there is a mismatch in step 2524, the second decoder 1040 decodes the block to be decoded in a predetermined decoding mode (for example, an inter mode) (step 2528).

제2520 단계, 제2522 단계, 제2526 단계, 또는 제2528 단계 후에, 제2530 단계는 매크로블록의 모든 블록이 다 복호화되었는지 판단한다. 만일, 제2530 단계에서 복호화되지 않은 블록이 존재한다고 판단되면, 그 다음 복호화 순위의 블록을 복호화하기 위해 제2532 단계를 거쳐 제2512 단계로 진행한다.After step 2520, step 2252, step 2526, or step 2528, step 2530 determines whether all blocks of the macroblock have been decoded. If it is determined that there is an undecoded block in operation 2530, the process proceeds to operation 2512 through operation 2532 to decode a block having a decoding rank.

도 26은 영상을 4MV 방식으로 부호화/복호화하는 원리를 설명하기 위한 제4 실시예의 도면들이다.FIG. 26 is a diagram for explaining a principle of encoding / decoding an image using a 4MV scheme.

도 26에 도시된 매크로블록은, 4:2:2 포맷을 갖는 영상의 매크로블록이다. The macroblock shown in FIG. 26 is a macroblock of an image having a 4: 2: 2 format.

도 26에 도시된 바에서, 휘도 블록(2612, 2614, 2616, 또는 2618)의 위상이 란, 그 휘도 블록(2612, 2614, 2616, 또는 2618)의 휘도 블록들(2612, 2614, 2616, 및 2618) 내에서의 위치를 의미한다. 한편, 청색 색차 블록(2622, 또는 2624)의 위상이란, 그 청색 색차 블록(2622, 또는 2624)의 색차 블록들(2622, 2624, 2632, 및 2634) 내에서의 위치를 의미한다. 마찬가지로, 적색 색차 블록(2632, 또는 2634)의 위상이란, 그 적색 색차 블록(2632, 또는 2634)의 색차 블록들(2622, 2624, 2632, 및 2634) 내에서의 위치를 의미한다. As shown in FIG. 26, the phase of the luminance block 2612, 2614, 2616, or 2618 is the luminance blocks 2612, 2614, 2616, and 2620, 2614, 2616, or 2618 of the luminance block 2612. 2618). The phase of the blue color difference block 2622 or 2624 means a position within the color difference blocks 2622, 2624, 2632, and 2634 of the blue color difference block 2622 or 2624. Similarly, the phase of the red color difference block 2632, or 2634 means the position within the color difference blocks 2622, 2624, 2632, and 2634 of the red color difference block 2632, or 2634.

도 26에 도시된 바에서, 휘도 블록들(2612, 2614, 2616, 2618) 각각은 인트라 모드, 인트라 모드, 인트라 모드, 인터 모드로 부호화/복호화 된다.As shown in FIG. 26, each of the luminance blocks 2612, 2614, 2616, and 2618 is encoded / decoded in an intra mode, an intra mode, an intra mode, and an inter mode.

"청색 색차 블록(2622)의 위상과 동일한 위상을 갖는 휘도 블록(2612)의 부호화 모드/복호화 모드(즉, 인트라 모드)"와 "청색 색차 블록(2622)의 위상과 동일한 위상을 갖는 휘도 블록(2612)에 인접한 휘도 블록(2614)의 부호화 모드/복호화 모드(즉, 인트라 모드)"가 일치하므로, 청색 색차 블록(2622)의 부호화 모드/복호화 모드는 "청색 색차 블록(2622)의 위상과 동일한 위상을 갖는 휘도 블록(2612)의 부호화 모드/복호화 모드(즉, 인트라 모드)"이다. 따라서, 청색 색차 블록(2622)는 인트라 모드에 따라 부호화/복호화된다. 한편, 휘도 블록(2612)에 인접한 휘도 블록은 휘도 블록(2612)에 수평 방향으로 인접한 휘도 블록(2614)임이 바람직하다."Encoding mode / decoding mode (i.e., intra mode) of luminance block 2612 having a phase equal to that of blue chrominance block 2622" and "luminance block having a phase equal to that of blue chrominance block 2622 Since the encoding mode / decoding mode (ie, the intra mode) of the luminance block 2614 adjacent to 2612 coincides, the encoding mode / decoding mode of the blue color difference block 2622 is the same as the phase of the blue color difference block 2622. Coding mode / decoding mode (ie, intra mode) of the luminance block 2612 having a phase. Accordingly, the blue color difference block 2622 is encoded / decoded according to the intra mode. Meanwhile, the luminance block adjacent to the luminance block 2612 is preferably a luminance block 2614 adjacent to the luminance block 2612 in the horizontal direction.

"청색 색차 블록(2624)의 위상과 동일한 위상을 갖는 휘도 블록(2616)의 부호화 모드/복호화 모드(즉, 인트라 모드)"와 "청색 색차 블록(2624)의 위상과 동일한 위상을 갖는 휘도 블록(2616)에 인접한 휘도 블록(2618)의 부호화 모드/복호화 모드(즉, 인터 모드)"가 불일치하므로, 청색 색차 블록(2624)의 부호화 모드/복호 화 모드는 일정 부호화 모드/일정 복호화 모드(예를 들어, 인터 모드)이다. 따라서, 청색 색차 블록(2624)는 인터 모드에 따라 부호화/복호화된다. 한편, 휘도 블록(2616)에 인접한 휘도 블록은 휘도 블록(2616)에 수평 방향으로 인접한 휘도 블록(2618)임이 바람직하다. "Encoding mode / decoding mode (i.e., intra mode) of luminance block 2616 having the same phase as that of blue chrominance block 2624" and "luminance block having the same phase as the phase of blue chrominance block 2624 Since the encoding mode / decoding mode (i.e., inter mode) of the luminance block 2618 adjacent to 2616 " is inconsistent, the encoding mode / decoding mode of the blue color difference block 2624 is a constant encoding mode / constant decoding mode (e.g., For example, inter mode). Accordingly, the blue color difference block 2624 is encoded / decoded according to the inter mode. Meanwhile, the luminance block adjacent to the luminance block 2616 is preferably a luminance block 2618 adjacent to the luminance block 2616 in a horizontal direction.

"적색 색차 블록(2632)의 위상과 동일한 위상을 갖는 휘도 블록(2614)의 부호화 모드/복호화 모드(즉, 인트라 모드)"와 "적색 색차 블록(2632)의 위상과 동일한 위상을 갖는 휘도 블록(2614)에 인접한 휘도 블록(2612)의 부호화 모드/복호화 모드(즉, 인트라 모드)"가 일치하므로, 적색 색차 블록(2632)의 부호화 모드/복호화 모드는 "적색 색차 블록(2632)의 위상과 동일한 위상을 갖는 휘도 블록(2614)의 부호화 모드/복호화 모드(즉, 인트라 모드)"이다. 따라서, 적색 색차 블록(2632)는 인트라 모드에 따라 부호화/복호화된다. 한편, 휘도 블록(2614)에 인접한 휘도 블록은 휘도 블록(2614)에 수평 방향으로 인접한 휘도 블록(2612)임이 바람직하다."Encoding mode / decoding mode (i.e., intra mode) of luminance block 2614 having the same phase as that of red chrominance block 2632" and "luminance block having the same phase as the phase of red chrominance block 2632 Since the encoding mode / decoding mode (i.e., the intra mode) of the luminance block 2612 adjacent to 2614 matches, the encoding mode / decoding mode of the red color difference block 2632 is the same as the phase of the red color difference block 2632. Coding mode / decoding mode (ie, intra mode) of the luminance block 2614 having a phase. Accordingly, the red color difference block 2632 is encoded / decoded according to the intra mode. Meanwhile, the luminance block adjacent to the luminance block 2614 is preferably a luminance block 2612 adjacent to the luminance block 2614 in the horizontal direction.

"적색 색차 블록(2634)의 위상과 동일한 위상을 갖는 휘도 블록(2618)의 부호화 모드/복호화 모드(즉, 인터 모드)"와 "적색 색차 블록(2634)의 위상과 동일한 위상을 갖는 휘도 블록(2618)에 인접한 휘도 블록(2616)의 부호화 모드/복호화 모드(즉, 인트라 모드)"가 불일치하므로, 적색 색차 블록(2634)의 부호화 모드/복호화 모드는 일정 부호화 모드/일정 복호화 모드(예를 들어, 인터 모드)이다. 따라서, 적색 색차 블록(2634)는 인터 모드에 따라 부호화/복호화된다. 한편, 휘도 블록(2618)에 인접한 휘도 블록은 휘도 블록(2618)에 수평 방향으로 인접한 휘도 블록(2616)임이 바람직하다. "Encoding mode / decoding mode (i.e., inter mode) of luminance block 2618 having the same phase as that of red chrominance block 2634" and "luminance block having the same phase as the phase of red chrominance block 2634 ( Since the encoding mode / decoding mode (ie, the intra mode) of the luminance block 2616 adjacent to 2618 " is inconsistent, the encoding mode / decoding mode of the red color difference block 2634 is a constant encoding mode / constant decoding mode (e.g., , Inter mode). Accordingly, the red color difference block 2634 is encoded / decoded according to the inter mode. Meanwhile, the luminance block adjacent to the luminance block 2618 is preferably a luminance block 2616 adjacent to the luminance block 2618 in the horizontal direction.

이상에서 언급된 본 발명에 의한 영상 부호화 및 복호화 방법을 컴퓨터에서 실행시키기 위한 프로그램은 컴퓨터로 읽을 수 있는 기록매체에 저장될 수 있다. 여기서, 컴퓨터로 읽을 수 있는 기록매체는 마그네틱 저장매체(예를 들면, 롬(ROM), 플로피 디스크, 하드 디스크 등), 및 광학적 판독 매체(예를 들면, 시디롬(CD-ROM), 디브이디(DVD: Digital Versatile Disc))와 같은 저장매체를 포함한다.The program for executing the image encoding and decoding method according to the present invention mentioned above on a computer may be stored in a computer-readable recording medium. Here, the computer-readable recording medium may be a magnetic storage medium (for example, a ROM, a floppy disk, a hard disk, etc.), and an optical reading medium (for example, a CD-ROM, a DVD). : Digital Versatile Disc).

이제까지 본 발명을 바람직한 실시예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로, 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점들은 본 발명에 포함된 것으로 해석되어야 할 것이다.The present invention has been described above with reference to preferred embodiments. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the disclosed embodiments should be considered in an illustrative rather than a restrictive sense. The scope of the present invention is defined by the appended claims rather than by the foregoing description, and all differences within the scope of equivalents thereof should be construed as being included in the present invention.

이상에서 설명한 바와 같이, 본 발명에 의한 영상 부호화 및 복호화 방법과 장치는, 영상을 4MV 방식으로 부호화하는 부호화기가, 색차 블록을 휘도 블록마다 미리 설정된 부호화 모드를 고려하여 결정된 부호화 모드에 따라 부호화하도록 하는 효과를 갖는다. 마찬가지로, 본 발명에 의한 영상 복호화 방법과 장치는, 영상을 4MV 방식으로 복호화하는 복호화기가, 색차 블록을 휘도 블록마다 미리 설정된 부호화 모드를 고려하여 결정된 부호화 모드에 따라 복호화하도록 하는 효과를 갖 는다. As described above, the method and the apparatus for encoding and decoding an image according to the present invention allow the encoder for encoding an image in a 4MV scheme to encode the chrominance block according to an encoding mode determined in consideration of a predetermined encoding mode for each luminance block. Has an effect. Similarly, the image decoding method and apparatus according to the present invention have an effect that the decoder which decodes an image by the 4MV method decodes the chrominance block according to the encoding mode determined in consideration of the encoding mode preset for each luminance block.

또한, 본 발명에 의한 영상 부호화 방법과 장치는, 영상을 4MV 방식으로 부호화하는 부호화기가, 휘도 블록은 휘도 블록마다 미리 설정된 부호화 모드에 따라 부호화하고, 색차 블록은 색차 블록마다 미리 설정된 부호화 모드에 따라 부호화하도록 하는 효과를 갖는다. 마찬가지로, 본 발명에 의한 영상 복호화 방법과 장치는, 영상을 4MV 방식으로 복호화하는 복호화기가, 휘도 블록은 휘도 블록마다 미리 설정된 복호화 모드에 따라 복호화하고, 색차 블록은 색차 블록마다 미리 설정된 복호화 모드에 따라 복호화하도록 하는 효과를 갖는다. According to another aspect of the present invention, there is provided an image encoding method and apparatus, wherein an encoder for encoding an image in 4 MV format encodes a luminance block in accordance with a preset encoding mode for each luminance block, And has an effect of encoding. Likewise, in the video decoding method and apparatus according to the present invention, a decoder for decoding an image by 4 MV method decodes the luminance block in accordance with a decoding mode preset for each luminance block, and the color difference block is decoded in accordance with a predetermined decoding mode And has the effect of decoding.

이와 같이, 본 발명에 의한 영상 부호화 및 복호화 방법과 장치는, 압축(또는, 복원)하고자 하는 영상이 휘도 성분과 색차 성분으로 분리되어 표현된 경우, 색차 성분의 부호화 모드(또는, 복호화 모드)를 결정하는 다양한 방안을 제공하는 효과를 갖는다.As described above, the method and the apparatus for encoding and decoding an image according to the present invention, when the image to be compressed (or reconstructed) is expressed separately by the luminance component and the chrominance component, selects an encoding mode (or decoding mode) of the chrominance component. It has the effect of providing a variety of ways to determine.

나아가, 본 발명에 의한 영상 부호화 및 복호화 방법과 장치에 의하면, 휘도 성분과 색차 성분의 부호화(또는, 복호화)시 움직임 벡터가 고려되는 경우, 색차 성분 영상의 움직임 벡터가 휘도 성분 영상의 움직임 벡터를 이용하여 결정될 수 있다.Furthermore, according to the method and apparatus for encoding and decoding an image according to the present invention, when a motion vector is considered during encoding (or decoding) of a luminance component and a chrominance component, the motion vector of the chrominance component image is a motion vector of the luminance component image. Can be determined using.

이에 따라, 본 발명에 의한 영상 부호화 및 복호화 방법과 장치는, 휘도 성분과 색차 성분의 부호화(또는, 복호화)시 움직임 벡터가 고려되는 경우, 색차 성분 영상의 움직임 벡터를 결정하는 다양한 방안을 제공하는 효과를 갖는다.Accordingly, the image encoding and decoding method and apparatus according to the present invention provide various methods for determining a motion vector of a chrominance component image when a motion vector is considered during encoding (or decoding) of a luminance component and a chrominance component. Has an effect.

Claims (27)

각 휘도 블록의 휘도 복호화 모드에 따라 상기 휘도 블록을 복호화하는 단계; 및Decoding the luminance block according to the luminance decoding mode of each luminance block; And 상기 휘도 블록의 상기 휘도 복호화 모드와 관련된 복수의 색차 복호화 모드들 중 하나를 사용하여 상기 휘도 블록에 대응되는 색차 블록을 복호화하는 단계를 포함하고,Decoding a color difference block corresponding to the luminance block by using one of a plurality of color difference decoding modes associated with the luminance decoding mode of the luminance block, 상기 복수의 색차 복호화 모드들은 상기 휘도 블록의 상기 휘도 복호화 모드와 동일한 복호화 모드를 포함하는 것을 특징으로 하는 영상 복호화 방법.And the plurality of color difference decoding modes include a decoding mode identical to the luminance decoding mode of the luminance block. 삭제delete 제1 항에 있어서, 상기 색차 블록 부호화 단계는 상기 색차 블록을 상기 동일한 위상을 갖는 휘도 블록에 인접한 상기 휘도 블록과 상기 동일한 위상을 갖는 휘도 블록의 복호화 모드들을 고려하여 복호화하는 것을 특징으로 하는 영상 복호화 방법.The image decoding method of claim 1, wherein the chrominance block encoding step decodes the chrominance block in consideration of decoding modes of the luminance block adjacent to the luminance block having the same phase and the luminance block having the same phase. Way. 제3 항에 있어서, 상기 색차 블록 부호화 단계는 상기 색차 블록을 상기 인접한 휘도 블록의 복호화 모드와 상기 동일한 위상을 갖는 휘도 블록의 복호화 모드의 일치 여부에 따라 결정된 복호화 모드에 따라 복호화하는 것을 특징으로 하는 영상 복호화 방법.The method of claim 3, wherein the color difference block encoding step decodes the color difference block according to a decoding mode determined according to whether or not the decoding mode of the luminance block having the same phase matches the decoding mode of the adjacent luminance block. Image Decoding Method. 제4 항에 있어서, 상기 인접한 휘도 블록의 복호화 모드와 상기 동일한 위상을 갖는 휘도 블록의 복호화 모드가 일치하는 경우, 상기 색차 블록 부호화 단계는 상기 색차 블록을 상기 인접한 휘도 블록의 복호화 모드에 따라 복호화하는 것을 특징으로 하는 영상 복호화 방법.The method of claim 4, wherein when the decoding mode of the adjacent luminance block and the decoding mode of the luminance block having the same phase coincide, the color difference block encoding step decodes the chrominance block according to the decoding mode of the adjacent luminance block. Image decoding method characterized in that. 제4 항에 있어서, 상기 인접한 휘도 블록의 복호화 모드와 상기 동일한 위상을 갖는 휘도 블록의 복호화 모드가 불일치하는 경우, 상기 색차 블록 부호화 단계는 상기 색차 블록을 일정 복호화 모드에 따라 복호화하는 것을 특징으로 하는 영상 복호화 방법.The method of claim 4, wherein when the decoding mode of the adjacent luminance block and the decoding mode of the luminance block having the same phase do not match, the chrominance block encoding step decodes the chrominance block according to a predetermined decoding mode. Image Decoding Method. 제6 항에 있어서, 상기 일정 복호화 모드는 인터 모드인 것을 특징으로 하는 영상 복호화 방법.The method of claim 6, wherein the constant decoding mode is an inter mode. 휘도 블록을 상기 휘도 블록마다 미리 설정된 복호화 모드에 따라 복호화하는 제1 복호화부; 및A first decoder to decode a luminance block according to a decoding mode preset for each luminance block; And 상기 휘도 블록의 상기 휘도 복호화 모드와 관련된 복수의 색차 복호화 모드들 중 하나를 사용하여 상기 휘도 블록에 대응되는 색차 블록을 복호화하는 제2 복호화부를 포함하고,A second decoder configured to decode a color difference block corresponding to the luminance block by using one of a plurality of color difference decoding modes associated with the luminance decoding mode of the luminance block, 상기 복수의 색차 복호화 모드들은 상기 휘도 블록의 상기 휘도 복호화 모드와 동일한 복호화 모드를 포함하는 것을 특징으로 하는 영상 복호화 장치.And the plurality of color difference decoding modes include a decoding mode identical to the luminance decoding mode of the luminance block. 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 제1 항, 제3항 내지 제7 항 중 어느 한 항의 방법을 컴퓨터에서 실행시키기 위한 프로그램을 저장한 컴퓨터로 읽을 수 있는 기록매체.A computer-readable recording medium storing a program for executing the method of any one of claims 1 and 3 to 7 on a computer.
KR1020070001161A 2007-01-04 2007-01-04 Method and apparatus for encoding and decoding image KR101365566B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070001161A KR101365566B1 (en) 2007-01-04 2007-01-04 Method and apparatus for encoding and decoding image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070001161A KR101365566B1 (en) 2007-01-04 2007-01-04 Method and apparatus for encoding and decoding image

Related Child Applications (1)

Application Number Title Priority Date Filing Date
KR1020130103436A Division KR101377136B1 (en) 2013-08-29 2013-08-29 Apparatus for decoding image

Publications (2)

Publication Number Publication Date
KR20080064354A KR20080064354A (en) 2008-07-09
KR101365566B1 true KR101365566B1 (en) 2014-02-25

Family

ID=39815668

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070001161A KR101365566B1 (en) 2007-01-04 2007-01-04 Method and apparatus for encoding and decoding image

Country Status (1)

Country Link
KR (1) KR101365566B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101542585B1 (en) 2011-10-19 2015-08-06 주식회사 케이티 Method and apparatus for encoding/decoding image

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000023190A (en) * 1998-06-26 2000-01-21 Sony Corp Motion vector generation method, picture encoder, motion compensation method, motion compensation device and provision medium
KR20050039057A (en) * 2003-10-23 2005-04-29 삼성전자주식회사 Intra coding/decoding method and apparatus for color image
KR20060133943A (en) * 2003-09-07 2006-12-27 마이크로소프트 코포레이션 Innovations in coding and decoding macroblock and motion information for interlaced and progressive video
KR20070009486A (en) * 2005-07-15 2007-01-18 삼성전자주식회사 Method and apparatus for encoding and decoding image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000023190A (en) * 1998-06-26 2000-01-21 Sony Corp Motion vector generation method, picture encoder, motion compensation method, motion compensation device and provision medium
KR20060133943A (en) * 2003-09-07 2006-12-27 마이크로소프트 코포레이션 Innovations in coding and decoding macroblock and motion information for interlaced and progressive video
KR20050039057A (en) * 2003-10-23 2005-04-29 삼성전자주식회사 Intra coding/decoding method and apparatus for color image
KR20070009486A (en) * 2005-07-15 2007-01-18 삼성전자주식회사 Method and apparatus for encoding and decoding image

Also Published As

Publication number Publication date
KR20080064354A (en) 2008-07-09

Similar Documents

Publication Publication Date Title
KR101642404B1 (en) Apparatus for decoding image
US20040136457A1 (en) Method and system for supercompression of compressed digital video
KR101865309B1 (en) Method for encoding and decoding images, encoding and decoding device, and corresponding computer programs
KR20060079051A (en) Color image encoding and decoding method and apparatus using a correlation between chrominance components
JP2009528762A (en) Video intra prediction encoding and decoding method and apparatus
KR20070009494A (en) Method and apparatus for encoding/decoding video data
KR101365566B1 (en) Method and apparatus for encoding and decoding image
KR101261525B1 (en) Method and apparatus for encoding and decoding image
KR101377136B1 (en) Apparatus for decoding image
KR20220088682A (en) Decryption apparatus, program, and decryption method
WO2018165917A1 (en) Condensed coding block headers in video coding systems and methods
KR20180041833A (en) Video coding method and apparatus using most probable mode list of intra
KR20220109453A (en) Video encoding/decoding method and apparatus using BDPCM and recording medium storing bitstream

Legal Events

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

Payment date: 20170125

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20180130

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20190130

Year of fee payment: 6