KR102028127B1 - Method and apparatus for video encoding based on prediction using variable partition, and method and apparatus for video decoding based on prediction using variable partition - Google Patents
Method and apparatus for video encoding based on prediction using variable partition, and method and apparatus for video decoding based on prediction using variable partition Download PDFInfo
- Publication number
- KR102028127B1 KR102028127B1 KR1020180048021A KR20180048021A KR102028127B1 KR 102028127 B1 KR102028127 B1 KR 102028127B1 KR 1020180048021 A KR1020180048021 A KR 1020180048021A KR 20180048021 A KR20180048021 A KR 20180048021A KR 102028127 B1 KR102028127 B1 KR 102028127B1
- Authority
- KR
- South Korea
- Prior art keywords
- partition
- coding unit
- unit
- information
- size
- Prior art date
Links
- 238000005192 partition Methods 0.000 title claims abstract description 1027
- 238000000034 method Methods 0.000 title abstract description 31
- 230000033001 locomotion Effects 0.000 abstract description 51
- 238000000638 solvent extraction Methods 0.000 abstract description 4
- 230000009466 transformation Effects 0.000 description 55
- 238000006243 chemical reaction Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 16
- 239000013598 vector Substances 0.000 description 13
- 239000000284 extract Substances 0.000 description 8
- 230000007423 decrease Effects 0.000 description 7
- 238000001914 filtration Methods 0.000 description 5
- 238000013139 quantization Methods 0.000 description 4
- 230000011218 segmentation Effects 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 239000012634 fragment Substances 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 238000011426 transformation method Methods 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
- H04N19/61—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/11—Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/119—Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods 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/136—Incoming video signal characteristics or properties
- H04N19/137—Motion inside a coding unit, e.g. average field, frame or block difference
- H04N19/139—Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
- H04N19/51—Motion estimation or motion compensation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
본 발명은, 픽처를 부호화하기 위한 데이터 단위인 부호화 단위마다, 부호화 단위의 예측 부호화를 위한 데이터 단위인 파티션의 형태와 방향성을 나타내는 제 1 파티션 모드와, 부호화 단위가 세부적인 움직임 예측을 위한 파티션으로 분할된 정도를 나타내는 파티션 레벨에 기초하여 결정되는 파티션들을 이용하여 예측 부호화를 수행하여, 부호화 결과를 출력할 파티션을 결정하고, 파티션의 제 1 파티션 모드 및 파티션 레벨을 나타내는 파티션 정보를 부호화하여 출력하는 가변적인 파티션을 이용하는 비디오 부호화 방법을 개시한다.According to an embodiment of the present invention, a first partition mode indicating a shape and a direction of a partition, which is a data unit for predictive encoding of a coding unit, for each coding unit that is a data unit for encoding a picture, and the coding unit is used as a partition for detailed motion prediction. Predictive encoding is performed using partitions determined based on the partition level indicating the degree of partitioning, thereby determining a partition to output the encoding result, and encoding and outputting partition information indicating the first partition mode and partition level of the partition. Disclosed is a video encoding method using a variable partition.
Description
본 발명은 비디오의 부호화 및 복호화에 관한 것이다.The present invention relates to the encoding and decoding of video.
고해상도 또는 고화질 비디오 컨텐트를 재생, 저장할 수 있는 하드웨어의 개발 및 보급에 따라, 고해상도 또는 고화질 비디오 컨텐트를 효과적으로 부호화하거나 복호화하는 비디오 코덱의 필요성이 증대하고 있다. 기존의 비디오 코덱에 따르면, 비디오는 소정 크기의 매크로블록에 기반하여 제한된 부호화 방식에 따라 부호화되고 있다.With the development and dissemination of hardware capable of playing and storing high resolution or high definition video content, there is an increasing need for a video codec for efficiently encoding or decoding high resolution or high definition video content. According to the existing video codec, video is encoded according to a limited encoding method based on a macroblock of a predetermined size.
비디오 압축은 크게 공간적 상관관계와 시간적 상관관계를 활용한다. 일반적으로 인터 예측은 특정 크기, 예를 들면 16x16 매크로블록을 기반으로 수행된다. 인터 예측은, 이러한 특정 크기의 매크로블록을 2개, 4개, 혹은 그 이상의 영역으로 분할한 후 각각의 움직임 영역에 대해 인터 예측이 수행되면, 원본 영상에 대비한 복원 영상의 왜곡이 발생하고, 인터 예측 결과를 전송하기 위한 오버헤드가 발생할 수 있다. 인터 예측을 위한 움직임 영역이 세밀하게 분할되면 원본 영상 대비 복원 영상의 왜곡은 줄지만 오버헤드가 증가한다. 따라서 인터 예측에 있어서 원본 영상 대비 복원 영상의 왜곡과 오버헤드 간에는 트레이드 오프 관계가 형성될 수 있다.Video compression greatly exploits spatial and temporal correlations. In general, inter prediction is performed based on a specific size, for example, a 16x16 macroblock. In the inter prediction, when the macroblock of the specific size is divided into two, four, or more regions, and inter prediction is performed on each motion region, distortion of the reconstructed image is generated, compared to the original image. Overhead for transmitting the inter prediction result may occur. If the motion region for inter prediction is finely divided, the distortion of the reconstructed image is reduced but the overhead is increased compared to the original image. Therefore, a trade-off relationship may be formed between the distortion and the overhead of the reconstructed image compared to the original image in inter prediction.
본 발명은, 예측 부호화를 위한 가변적인 형태, 크기의 파티션을 이용하는 비디오 부호화 및 비디오 복호화에 관한 것이다.The present invention relates to video encoding and video decoding using partitions of variable shape and size for predictive encoding.
본 발명의 일 실시예에 따른 예측 부호화를 위해 가변적인 파티션을 이용하는 비디오 부호화 방법은, 픽처를 부호화하기 위한 데이터 단위인 부호화 단위마다, 상기 부호화 단위의 예측 부호화를 위한 데이터 단위인 파티션의 형태와 방향성을 나타내는 제 1 파티션 모드와, 상기 부호화 단위가 세부적인 움직임 예측을 위한 파티션으로 분할된 정도를 나타내는 파티션 레벨에 기초하여 결정되는 파티션들을 이용하여 예측 부호화를 수행하여, 부호화 결과를 출력할 파티션을 결정하는 단계; 및 상기 결정된 파티션의 제 1 파티션 모드 및 파티션 레벨을 나타내는 파티션 정보를 부호화하여 출력하는 단계를 포함한다. In a video encoding method using a variable partition for predictive encoding according to an embodiment of the present invention, for each coding unit that is a data unit for encoding a picture, the shape and directionality of the partition that is a data unit for predictive encoding of the coding unit Determine a partition to output an encoding result by performing prediction encoding using partitions determined based on a partition mode indicating a partitioning degree in which the coding unit is divided into partitions for detailed motion prediction. Making; And encoding and outputting partition information indicating a first partition mode and a partition level of the determined partition.
본 발명의 일 실시예에 따른 예측 부호화를 위해 가변적인 파티션을 이용하는 비디오 복호화 방법은, 수신된 비트스트림으로부터, 픽처를 부호화하기 위한 데이터 단위인 부호화 단위들마다, 상기 부호화 단위의 예측 부호화를 위한 데이터 단위인 파티션의 형태와 방향성을 나타내는 제 1 파티션 모드와, 상기 부호화 단위가 세부적인 움직임 예측을 위한 파티션으로 분할된 정도를 나타내는 파티션 레벨을 포함하는 파티션 정보를 추출하는 단계; 및 상기 추출된 파티션 정보의 제 1 파티션 모드 및 상기 파티션 레벨에 기초하여 결정되는 파티션들을 이용하여 예측 복호화를 수행하여 상기 픽처를 복호화하는 단계를 포함한다.In a video decoding method using a variable partition for predictive encoding according to an embodiment of the present invention, data for predictive encoding of the coding unit, for each coding unit that is a data unit for encoding a picture, from a received bitstream Extracting partition information including a first partition mode indicating a form and direction of a partition as a unit and a partition level indicating a degree in which the coding unit is divided into partitions for detailed motion prediction; And decoding the picture by performing predictive decoding using partitions determined based on the first partition mode and the partition level of the extracted partition information.
본 발명의 일 실시예에 따른 예측 부호화를 위해 가변적인 파티션을 이용하는 비디오 부호화 장치는, 픽처를 부호화하기 위한 데이터 단위인 부호화 단위마다, 상기 부호화 단위의 예측 부호화를 위한 데이터 단위인 파티션의 형태와 방향성을 나타내는 제 1 파티션 모드와, 상기 부호화 단위가 세부적인 움직임 예측을 위한 파티션으로 분할된 정도를 나타내는 파티션 레벨에 기초하여 결정되는 파티션들을 이용하여 예측 부호화를 수행하여, 부호화 결과를 출력할 파티션을 결정하고, 상기 픽처를 부호화하여 상기 부호화 단위의 부호화 모드를 결정하는 부호화부; 및 상기 결정된 파티션의 제 1 파티션 모드 및 파티션 레벨을 나타내는 파티션 정보, 상기 파티션의 예측 모드에 대한 정보 및 상기 부호화 모드에 대한 정보를 포함하는 부호화 정보를 부호화하고, 상기 결정된 파티션을 이용하여 예측 부호화된 상기 파티션의 움직임 벡터 및 레지듀얼을 부호화하여 출력하는 출력부를 포함한다.In a video encoding apparatus using a variable partition for predictive encoding according to an embodiment of the present invention, the shape and directionality of a partition that is a data unit for predictive encoding of the coding unit for each coding unit that is a data unit for encoding a picture Determine a partition to output an encoding result by performing prediction encoding using partitions determined based on a partition mode indicating a partitioning degree in which the coding unit is divided into partitions for detailed motion prediction. An encoder configured to encode the picture to determine an encoding mode of the coding unit; And encoding information including partition information indicating a first partition mode and a partition level of the determined partition, information about a prediction mode of the partition, and information about the encoding mode, and predictively encoding the partition by using the determined partition. And an output unit for encoding and outputting the motion vector and the residual of the partition.
본 발명의 일 실시예에 따른 예측 부호화를 위해 가변적인 파티션을 이용하는 비디오 복호화 장치는, 수신된 비트스트림으로부터, 픽처를 부호화하기 위한 데이터 단위인 부호화 단위들마다, 상기 부호화 단위의 예측 부호화를 위한 데이터 단위인 파티션의 형태와 방향성을 나타내는 제 1 파티션 모드와, 상기 부호화 단위가 세부적인 움직임 예측을 위한 파티션으로 분할된 정도를 나타내는 파티션 레벨을 포함하는 파티션 정보, 상기 파티션의 예측 모드에 대한 정보 및 상기 부호화 모드에 대한 정보를 포함하는 부호화 정보, 및 상기 파티션의 움직임 벡터 및 레지듀얼을 추출하는 추출부; 및 상기 추출된 파티션 정보의 제 1 파티션 모드 및 상기 파티션 레벨에 기초하여 결정되는 파티션들의 예측 모드에 기초하여, 상기 파티션들에 대하여 예측 복호화를 수행하고 상기 부호화 모드에 기초하여 상기 픽처를 복호화하는 복호화부를 포함한다.According to an embodiment of the present invention, a video decoding apparatus using a variable partition for predictive encoding includes data for predictive encoding of the coding unit, for each coding unit that is a data unit for encoding a picture from the received bitstream. Partition information including a first partition mode indicating a shape and a direction of a partition which is a unit, a partition level indicating a degree to which the coding unit is divided into partitions for detailed motion prediction, information on a prediction mode of the partition, and An extraction unit for extracting encoding information including information about an encoding mode, a motion vector, and a residual of the partition; And decoding to perform prediction decoding on the partitions and to decode the picture based on the encoding mode based on the first partition mode of the extracted partition information and the prediction mode of partitions determined based on the partition level. Contains wealth.
본 발명은, 일 실시예에 따른 예측 부호화를 위해 가변적인 파티션을 이용하는 비디오 부호화 방법을 구현하기 위한 프로그램이 기록된 컴퓨터로 판독 가능한 기록 매체를 포함한다. The present invention includes a computer-readable recording medium having recorded thereon a program for implementing a video encoding method using a variable partition for predictive encoding according to an embodiment.
본 발명은 일 실시예에 따른 예측 부호화를 위해 가변적인 파티션을 이용하는 비디오 복호화 방법을 구현하기 위한 프로그램이 기록된 컴퓨터로 판독 가능한 기록 매체를 포함한다.The present invention includes a computer-readable recording medium having recorded thereon a program for implementing a video decoding method using a variable partition for predictive encoding according to an embodiment.
도 1 은 본 발명의 일 실시예에 따른 가변적인 파티션을 이용하는 비디오 부호화 장치의 블록도를 도시한다.
도 2 는 본 발명의 일 실시예에 따른 가변적인 파티션을 이용하는 비디오 복호화 장치의 블록도를 도시한다.
도 3 은 일 실시예에 따른 계층적 구조의 부호화 단위를 도시한다.
도 4 는 일 실시예에 따른 제 1 파티션 모드 및 파티션 레벨로 정의되는 트리 구조의 파티션들을 도시한다.
도 5 는 일 실시예에 따른 제 1 파티션 모드, 파티션 레벨과 제 2 파티션 모드의 관계를 도시한다.
도 6 은 본 발명의 일 실시예에 따른 가변적인 파티션을 이용하는 비디오 부호화 방법의 흐름도를 도시한다.
도 7 은 본 발명의 일 실시예에 따른 가변적인 파티션을 이용하는 비디오 복호화 방법의 흐름도를 도시한다.
도 8 는 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초하여 가변적인 파티션을 이용하는 비디오 복호화 장치의 블록도를 도시한다.
도 9 는 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초하여 가변적인 파티션을 이용하는 비디오 복호화 장치의 블록도를 도시한다.
도 10 은 본 발명의 일 실시예에 따른 부호화 단위의 개념을 도시한다.
도 11 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 부호화부의 블록도를 도시한다.
도 12 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 복호화부의 블록도를 도시한다.
도 13 는 본 발명의 일 실시예에 따른 심도별 부호화 단위 및 파티션을 도시한다.
도 14 은 본 발명의 일 실시예에 따른, 부호화 단위 및 변환 단위의 관계를 도시한다.
도 15 은 본 발명의 일 실시예에 따라, 심도별 부호화 정보들을 도시한다.
도 16 는 본 발명의 일 실시예에 따른 심도별 부호화 단위를 도시한다.
도 17, 18 및 19는 본 발명의 일 실시예에 따른, 부호화 단위, 예측 단위 및 변환 단위의 관계를 도시한다.
도 20 은 표 1의 부호화 모드 정보에 따른 부호화 단위, 예측 단위 및 변환 단위의 관계를 도시한다.
도 21 은 일 실시예에 따른 트리 구조에 따른 부호화 단위에 기초하여 가변적인 파티션을 이용하는 비디오 부호화 방법의 흐름도를 도시한다.
도 22 는 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초하여 가변적인 파티션을 이용하는 비디오 복호화 방법의 흐름도를 도시한다.1 is a block diagram of a video encoding apparatus using a variable partition according to an embodiment of the present invention.
2 is a block diagram of a video decoding apparatus using a variable partition according to an embodiment of the present invention.
3 illustrates coding units of a hierarchical structure, according to an embodiment.
4 illustrates partitions of a tree structure defined by a first partition mode and a partition level, according to an embodiment.
5 illustrates a relationship between a first partition mode, a partition level, and a second partition mode according to an embodiment.
6 is a flowchart of a video encoding method using a variable partition according to an embodiment of the present invention.
7 is a flowchart of a video decoding method using a variable partition according to an embodiment of the present invention.
8 is a block diagram of a video decoding apparatus using a variable partition based on coding units having a tree structure, according to an embodiment of the present invention.
9 is a block diagram of a video decoding apparatus using a variable partition based on coding units having a tree structure, according to an embodiment of the present invention.
10 illustrates a concept of coding units, according to an embodiment of the present invention.
11 is a block diagram of an image encoder based on coding units, according to an embodiment of the present invention.
12 is a block diagram of an image decoder based on coding units, according to an embodiment of the present invention.
13 is a diagram of deeper coding units according to depths, and partitions, according to an embodiment of the present invention.
14 illustrates a relationship between a coding unit and transformation units, according to an embodiment of the present invention.
FIG. 15 illustrates encoding information according to depths, according to an embodiment of the present invention.
16 is a diagram of deeper coding units according to depths, according to an embodiment of the present invention.
17, 18, and 19 illustrate a relationship between a coding unit, a prediction unit, and a transformation unit, according to an embodiment of the present invention.
20 illustrates a relationship between a coding unit, a prediction unit, and a transformation unit, according to encoding mode information of Table 1. FIG.
21 is a flowchart of a video encoding method using a variable partition based on a coding unit having a tree structure, according to an embodiment.
22 is a flowchart of a video decoding method using variable partitions based on coding units having a tree structure, according to an embodiment of the present invention.
이하 본 명세서에 기재된 본 발명의 다양한 실시예들에서, '영상'은 정지 영상 뿐만 아니라 비디오와 같은 동영상을 포함하여 포괄적으로 지칭할 수 있다. 이하 본 명세서에 기재된 본 발명의 다양한 실시예들에서, '데이터 단위'는 비디오를 구성하는 데이터 중 소정 범위의 데이터의 집합을 지칭한다. In various embodiments of the present invention described herein below, the term 'image' may refer to a generic image including a still image as well as a video such as a video. Hereinafter, in various embodiments of the present disclosure described herein, the 'data unit' refers to a set of data of a predetermined range of data constituting the video.
이하 도 1 내지 도 7 을 참조하여, 일 실시예에 따른 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오의 부호화 및 복호화가 개시된다. 이하 도 8 내지 도 22을 참조하여 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초하여 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오 부호화 및 복호화가 개시된다.Hereinafter, referring to FIGS. 1 to 7, encoding and decoding of a video using a variable partition for predictive encoding according to an embodiment are disclosed. Hereinafter, video encoding and decoding using variable partitions for predictive encoding are disclosed based on coding units having a tree structure according to an embodiment of the present invention with reference to FIGS. 8 to 22.
도 1 은 본 발명의 일 실시예에 따른 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오 부호화 장치의 블록도를 도시한다. 1 is a block diagram of a video encoding apparatus using a variable partition for predictive encoding according to an embodiment of the present invention.
일 실시예에 따른 가변적인 파티션을 이용하는 비디오 부호화 장치(10)는, 부호화부(11) 및 출력부(12)를 포함한다. 이하 설명의 편의를 위해 일 실시예에 따른 가변적인 파티션을 이용하는 비디오 부호화 장치(10)를 비디오 부호화 장치(10)로 축약하여 지칭한다.The
일 실시예에 따른 비디오 부호화 장치(10)는 비디오의 픽처 시퀀스를 입력받고, 픽처마다 픽처 간 인터 예측, 픽처 내 인트라 예측, 변환, 양자화 및 엔트로피 부호화의 작업을 거쳐 부호화하여, 부호화된 비디오 데이터 및 부호화 모드에 대한 정보가 수록된 부호화 정보를 출력한다. The
일 실시예에 따른 부호화 장치(10)는 픽처의 효율적인 부호화를 위해, 픽처를 소정 크기의 데이터 단위로 구획하여 데이터 단위마다 부호화할 수 있다. 이하 픽처의 부호화를 위한 데이터 단위를 '부호화 단위'라 지칭한다. 일 실시예에 따른 부호화부(11)는, 부호화 단위를 결정하고 부호화 단위마다 수행될 부호화 방식을 결정할 수 있다. 이 때 부호화 단위마다 결정된 부호화 방식을 부호화 모드이다. The
비디오의 시간적으로 연속하는 시퀀스 또는 공간적으로 주변 영역 간에 데이터가 중복될 수 있다. 비디오 압축 부호화 방식에서는, 시공간적으로 인접하는 데이터 간의 중복 데이터를 제거하여 부호화된 데이터의 크기를 줄이기 위해, 시공간적 주변 데이터를 참조하여 부호화하는 예측 부호화 기법이 수행된다. Data can overlap between temporally successive sequences of video or spatially surrounding areas. In the video compression encoding scheme, a prediction encoding technique for encoding with reference to spatiotemporal peripheral data is performed to reduce the size of encoded data by removing redundant data between adjacent data in space and time.
예측 부호화 기법에서는, 소정 크기 및 형태의 데이터 단위에 기초하여 서로 중복되는 주변 데이터를 검색하여, 중복되는 데이터 단위 간의 거리(즉, 움직임(motion))과, 원본 데이터와 중복되는 데이터 간의 차이값(즉 레지듀얼(residual))이 부호화될 수 있다. In the predictive encoding scheme, neighboring data overlapping each other is searched based on data units having a predetermined size and shape, and a difference value between the overlapping data units (ie, motion) and the original data and the overlapping data ( That is, residual may be encoded.
일 실시예에 따른 부호화부(11)는, 부호화 단위마다 예측 부호화를 위해 주변 데이터와의 움직임을 비교하기 위한 데이터 단위인 파티션을 결정할 수 있다. 파티션의 크기는 부호화 단위와 같거나 작을 수 있다. 일 실시예에 따른 부호화부(11)는, 결정된 파티션을 이용한 예측 부호화에 따라, 파티션마다 중복되는 데이터를 제거한 레지듀얼을 출력할 수 있다. The
일 실시예에 따른 부호화부(11)는, 제 1 파티션 모드와 파티션 레벨에 기초하여 결정되는 파티션들을 이용하여 예측 부호화를 수행하여 부호화 결과를 출력할 파티션을 결정한다. The
일 실시예에 따른 부호화부(11)는, 부호화 단위마다, 형태, 방향성 및 크기가 다양한 파티션들을 이용하여 예측 부호화를 수행하고, 파티션들 중에서 최종적으로 레지듀얼을 출력할 파티션을 결정할 수 있다. 일 실시예에 따른 부호화부(11)는 다양한 파티션들마다 예측 부호화에 따른 부호화 효율들을 결정하고 비교하여, 부호화 효율이 가장 높은 파티션을 선택할 수 있다. The
부호화 효율은, 원본 데이터 및 복원 데이터 간의 오차, 부호화 후 발생하는 오버헤드 등을 고려하여 결정될 수 있다. 예를 들어, 예측 부호화에 따른 부호화 효율은 라그랑지 곱(Lagrangian Multiplier) 기반의 율-왜곡 최적화 기법(Rate-Distortion Optimization)을 이용하여 측정될 수 있다.The encoding efficiency may be determined in consideration of an error between the original data and the reconstructed data, an overhead occurring after the encoding, and the like. For example, the coding efficiency according to the predictive coding may be measured using a Lagrangian multiplier based rate-distortion optimization technique.
일 실시예에 따른 파티션들은, 제 1 파티션 모드 및 파티션 레벨에 기초하여 정의될 수 있다. 일 실시예에 따른 제 1 파티션 모드는 파티션의 형태와 방향성을 나타낸다. Partitions according to an embodiment may be defined based on the first partition mode and the partition level. The first partition mode according to an embodiment represents the shape and the orientation of the partition.
예를 들어, 제 1 파티션 모드에 따라 직사각형 파티션, 정사각형 파티션, 사각형이 아닌 파티션 등의 파티션 등의 파티션 형태가 정의될 수 있다. 예를 들어, 제 1 파티션 모드에 따라 부호화 단위의 수직, 수평, 수직 및 수평 방향, 대각선 방향으로 분할된 파티션; 부호화 단위의 좌측, 우측, 상단 또는 하단으로 치우쳐 분할된 파티션; 부호화 단위의 마주보는 너비끼리, 마주보는 높이끼리, 인접하는 너비와 높이가 분할된 파티션; 등의 부호화 단위가 파티션으로 분할되는 방향성이 정의될 수 있다.For example, a partition type such as a partition such as a rectangular partition, a square partition, a non-square partition, or the like may be defined according to the first partition mode. For example, partitions divided into vertical, horizontal, vertical and horizontal directions, and diagonal directions of the coding unit according to the first partition mode; A partition partitioned to the left, right, top, or bottom of the coding unit; Partitions in which adjacent widths and opposite heights of coding units are divided into adjacent widths and heights; Orientation in which coding units such as such are divided into partitions may be defined.
일 실시예에 따른 파티션 레벨은, 부호화 단위가 세부적인 움직임 예측을 위한 파티션으로 분할된 정도를 나타낸다. 또한 파티션 레벨에 따라, 부호화 단위의 너비 (높이)에 대비한 파티션의 너비(높이)의 비율이 결정될 수도 있다. The partition level according to an embodiment represents the degree to which a coding unit is divided into partitions for detailed motion prediction. In addition, the ratio of the width (height) of the partition to the width (height) of the coding unit may be determined according to the partition level.
예를 들어, 일 실시예에 따른 파티션 레벨이 증가함에 따라, 부호화 단위의 너비 및 높이가 잘게 분할된 파티션이 결정될 수 있다. 예를 들어, 부호화 단위의 너비 또는 높이가 n등분된 크기에 기초하여, 부호화 단위의 너비 또는 높이가 1:(n-1), 2:(n-2), ..., (n-2):2, (n-1):1의 비율로 분할된 파티션들이 결정될 수 있다. 이 경우, 파티션 레벨이 증가함에 따라 n이 증가할 수 있다. For example, as the partition level increases according to an embodiment, a partition having a finely divided width and height of a coding unit may be determined. For example, based on a size in which the width or height of the coding unit is divided into n, the width or height of the coding unit is 1: (n-1), 2: (n-2), ..., (n-2 Partitions partitioned in a ratio of: 2, (n-1): 1 can be determined. In this case, n may increase as the partition level increases.
다만, 일 실시예에 따른 파티션의 최소 크기는 제한되어 있고 부호화 단위가 무한히 분할될 수는 없다. 따라서, 계층적인 트리 구조에 따라 크기가 결정되는 현재 부호화 단위의 크기에 기초하여, 파티션의 파티션 레벨의 상한 및 하한 중 적어도 하나가 결정될 수 있다. 또한 시스템 또는 사용자 설정 상 파티션 레벨이 제한될 수도 있다. However, the minimum size of a partition according to an embodiment is limited and coding units may not be infinitely divided. Accordingly, at least one of an upper limit and a lower limit of a partition level of a partition may be determined based on the size of a current coding unit whose size is determined according to a hierarchical tree structure. In addition, partition levels may be limited by system or user settings.
또한, 일 실시예에 따른 제 1 파티션 모드에 기초하여 형태와 방향이 결정된 파티션들 중에서, 파티션들의 너비 및 높이가 증감할 수 있다. 일 실시예에 따른 제 1 파티션 모드에 기초하여 형태와 방향이 결정된 파티션의 너비 및 높이는 제 2 파티션 모드에 따라 정의될 수 있다. 즉, 제 2 파티션 모드는 제 1 파티션 모드에 따라 허용 가능한 파티션들 중 세부적인 파티션 종류를 결정할 수 있다.Also, among partitions whose shape and direction are determined based on the first partition mode, the width and height of the partitions may increase or decrease. Widths and heights of partitions whose shapes and directions are determined based on the first partition mode may be defined according to the second partition mode. That is, the second partition mode may determine a detailed partition type among the allowable partitions according to the first partition mode.
또한 제 1 파티션 모드의 파티션들은, 제 1 파티션 모드에 따라 파티션의 형태 및 방향성이 결정되며, 파티션의 너비 및 높이 중 적어도 하나가 파티션 레벨에 따라 결정되는 파티션의 최소 너비 또는 최소 높이의 배수로 증감하므로, 제 2 파티션 모드는 제 1 파티션 모드의 파티션들 중 각각의 파티션을 가리키도록 정의될 수도 있다. In addition, the partitions of the first partition mode, the shape and orientation of the partition is determined according to the first partition mode, and at least one of the width and height of the partition increases or decreases to a multiple of the minimum width or the minimum height of the partition determined according to the partition level The second partition mode may be defined to point to each of the partitions of the first partition mode.
예를 들어, 파티션 레벨에 따라 파티션의 최소 너비 및 최소 높이가 부호화 단위의 너비 및 높이의 n등분 값으로 결정될 때, 제 2 파티션 모드는 부호화 단위의 너비 또는 높이가 1:(n-1), 2:(n-2), ..., (n-2):2, (n-1):1의 비율로 분할된 각각의 파티션을 나타낸다.For example, when the minimum width and minimum height of the partition are determined as n equal values of the width and height of the coding unit according to the partition level, the second partition mode has a width or height of 1: (n-1), It represents each partition divided by the ratio of 2: (n-2), ..., (n-2): 2, (n-1): 1.
따라서 일 실시예에 따른 부호화부(11)는, 제 1 파티션 모드에 따라 제 2 파티션 모드를 더 결정할 수도 있으며, 제 2 파티션 모드의 종류 또는 개수는 제 1 파티션 모드 및 파티션 레벨에 따라 결정될 수 있다.Accordingly, the
일 실시예에 따른 출력부(12)는, 부호화부(11)에서 결정된 파티션의 제 1 파티션 모드 및 파티션 레벨을 나타내는 파티션 정보를 부호화하여 출력할 수 있다. 또한 파티션 정보는, 제 1 파티션 모드에 따라, 제 2 파티션 모드 정보를 더 포함할 수도 있다. 일 실시예에 따른 파티션 정보는, 파티션 레벨의 하한 또는 상한을 결정하는 파티션 레벨 제한 정보를 포함할 수도 있다. The
일 실시예에 따른 출력부(12)는, 부호화부(11)에 의해 결정된 파티션을 이용하여 예측 부호화함으로써 생성된 파티션의 움직임 벡터 및 레지듀얼을 출력할 수 있다. 또한, 일 실시예에 따른 출력부(12)는, 부호화부(11)에 의해 결정된 파티션을 이용한 예측 부호화 방식을 나타내는 예측 모드에 대한 정보와 함께, 부호화 모드에 대한 정보를 포함하는 부호화 정보를 부호화하여 출력할 수 있다. 일 실시예에 따른 부호화 정보는, SPS(Sequence Parameter Set)에 삽입될 수 있다. 일 실시예에 따른 부호화 정보는, 시퀀스, 픽처, 프레임, 슬라이스, 최대 부호화 단위 등의 데이터 단위 별로 부호화되어 삽입될 수 있다.The
도 2 는 본 발명의 일 실시예에 따른 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오 복호화 장치의 블록도를 도시한다. 2 is a block diagram of a video decoding apparatus using a variable partition for predictive encoding according to an embodiment of the present invention.
일 실시예에 따른 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오 복호화 장치(20)는, 추출부(21) 및 복호화부(22)를 포함한다. 이하 설명의 편의를 위한 일 실시예에 따른 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오 복호화 장치(20)를 일 실시예에 따른 비디오 복호화 장치(20)로 축약하여 지칭한다.The
일 실시예에 따른 비디오 복호화 장치(20)는 비디오의 픽처 시퀀스가 부호화된 비트스트림을 입력받고, 부호화된 픽처 데이터에 대한 엔트로피 복호화, 역양자화, 역변환, 픽처 간 인터 예측/보상, 픽처 내 인트라 예측을 거친 복호화를 통해 픽처를 복원한다. The
일 실시예에 따른 추출부(21)는, 수신된 비트스트림을 파싱하여, 부호화된 픽처 데이터 및 움직임 벡터를 추출할 수 있다. 일 실시예에 다른 추출부(21)는, 수신된 비트스트림을 파싱하여 부호화된 레지듀얼을 추출할 수 있다. The
일 실시예에 따른 추출부(21)는, 수신된 비트스트림을 파싱하여, 부호화 정보를 추출한다. 일 실시예에 따른 추출부(21)는, 부호화 정보 중 부호화 모드에 대한 정보, 파티션 정보 및 예측 모드에 대한 정보를 판독할 수 있다. 일 실시예에 따른 파티션 정보로부터, 부호화 단위의 파티션의 제 1 파티션 모드와 파티션 레벨이 판독될 수 있다. The
일 실시예에 따른 추출부(21)에 의해 추출된 파티션 정보는, 제 1 파티션 모드 및 파티션 레벨에 따라 구성되는 계층적 트리 구조의 파티션들 중 부호화 효율이 가장 높은 제 1 파티션 모드 및 파티션 레벨을 포함할 수 있다. The partition information extracted by the
일 실시예에 따른 복호화부(22)는, 추출부(21)에 의해 추출되어 판독된 파티션 정보에 기초하여, 픽처의 예측 복호화를 위한 파티션을 결정할 수 있다. 또한 일 실시예에 따른 복호화부(22)는, 추출부(21)에 의해 추출된 예측 모드 및 움직임 벡터를 이용하여 파티션의 레지듀얼을 예측 복호화할 수 있다.The
일 실시예에 따른 복호화부(22)는, 부호화 단위마다 파티션 정보에 기초하여 파티션을 결정할 수 있다. 일 실시예에 따른 복호화부(22)는, 파티션 정보 중 제 1 파티션 모드에 기초하여 파티션의 형태와 부호화 단위가 파티션으로 분할되는 방향성을 결정할 수 있다. 또한, 일 실시예에 따른 복호화부(22)는, 파티션 정보 중 파티션 레벨에 기초하여 부호화 단위가 파티션으로 조밀하게 분할되는 정도를 결정할 수 있다.The
예를 들어, 일 실시예에 따른 복호화부(22)는, 제 1 파티션 모드에 기초하여, 직사각형 파티션, 정사각형 파티션, 사각형이 아닌 파티션 등의 파티션 형태를 결정할 수 있다. 일 실시예에 따른 복호화부(22)는, 제 1 파티션 모드에 기초하여, 부호화 단위가 파티션으로 분할되는 방향성을 결정할 수 있다. 예를 들어, 제 1 파티션 모드에 따른 파티션은, 부호화 단위의 수직, 수평, 수직 및 수평 방향, 대각선 방향으로 분할된 파티션; 부호화 단위의 좌측, 우측, 상단 또는 하단으로 치우쳐 분할된 파티션; 부호화 단위의 마주보는 너비끼리, 마주보는 높이끼리, 인접하는 너비와 높이가 분할된 파티션; 등을 포함할 수 있다. For example, the
일 실시예에 따른 복호화부(22)는, 파티션 레벨에 기초하여, 부호화 단위의 너비 및 높이가 분할되는 비율을 결정할 수 있다. 파티션 레벨이 증가함에 따라, 부호화 단위의 너비 및 높이가 잘게 분할된 파티션이 결정될 수 있다. 예를 들어, 부호화 단위의 너비 및 높이 중 적어도 하나가 1:(n-1), 2:(n-2), ..., (n-2):2, (n-1):1의 비율로 분할된 파티션들이 결정될 때, 파티션 레벨이 증가함에 따라 n이 증가할 수 있다. The
계층적인 트리 구조에 따라 크기가 결정되는 현재 부호화 단위의 크기에 기초하여, 파티션의 파티션 레벨의 상한 또는 하한이 결정될 수 있다. 또한 시스템 또는 사용자 설정 상 파티션 레벨이 제한값에 대한 정보가 수신된 비트스트림으로부터 추출될 수도 있다. An upper limit or a lower limit of a partition level of a partition may be determined based on the size of a current coding unit whose size is determined according to a hierarchical tree structure. In addition, a partition level may be extracted from a bitstream in which information on a limit value is received according to a system or user setting.
일 실시예에 따른 추출부(21)는, 파티션 정보로부터, 제 1 파티션 모드에 기초하여 형태와 방향이 결정된 파티션들 중 소정 너비 및 높이의 파티션을 나타내는 제 2 파티션 모드를 더 추출할 수 있다. 따라서 일 실시예에 따른 복호화부(22)는, 파티션 정보의 제 1 파티션 모드 정보, 파티션 레벨 및 제 2 파티션 모드 정보에 기초하여, 부호화 단위마다 파티션들을 결정할 수 있다. The
일 실시예에 따른 복호화부(22)는, 제 1 파티션 모드에 기초하여 형태와 방향이 결정된 파티션들의 너비 및 높이를, 제 2 파티션 모드에 기초하여 증감할 수 있다. The
또한, 제 2 파티션 모드에 결정되는 파티션들의 너비 및 높이는, 제 1 파티션 모드에 따라 결정된 형태 및 방향성을 갖는 파티션의 너비 및 높이 중 적어도 하나가, 파티션 레벨에 따라 결정되는 파티션의 최소 너비 또는 최소 높이의 배수값으로 결정될 수도 있다. In addition, the width and height of the partitions determined in the second partition mode is at least one of the width and height of the partition having the shape and orientation determined according to the first partition mode, the minimum width or the minimum height of the partition determined according to the partition level It may also be determined as a multiple of.
예를 들어, 파티션 레벨에 따라 파티션의 최소 너비 및 최소 높이가 부호화 단위의 너비 및 높이의 n등분 값으로 결정될 수 있다. 일 실시예에 따른 복호화부(22)는, 제 2 파티션 모드에 기초하여 부호화 단위의 너비 또는 높이가 1:(n-1), 2:(n-2), ..., (n-2):2, (n-1):1의 비율로 분할된 각각의 파티션을 결정할 수 있다. For example, the minimum width and the minimum height of the partition may be determined as n equal values of the width and the height of the coding unit according to the partition level. The
일 실시예에 따른 복호화부(22)는, 파티션 정보에 기초하여 결정된 파티션들에 대해 예측 모드에 기초하여 예측 복호화를 수행하고, 부호화 모드에 기초하여 픽처를 복호화할 수 있다. The
일 실시예에 따른 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오 부호화 장치(10) 및 일 실시예에 따른 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오 복호화 장치(20)는, 기존의 매크로블록과 동일한 크기의 파티션, 2등분된 파티션, 4등분된 파티션 뿐만 아니라, 텍스처의 방향성와 위치의 변화와 파티션의 세부적인 움직임을 고려할 수 있는 파티션을 결정할 수 있다. 또한, 부호화 단위의 크기에 기초하여 파티션의 세부적인 움직임을 예측할 수 있는 파티션의 형태와 방향을 조절할 수 있으므로, 영상 특성을 충분히 고려한 예측 부호화 및 복호화가 가능하다.The
도 3 은 일 실시예에 따른 계층적 구조의 부호화 단위를 도시한다.3 illustrates coding units of a hierarchical structure, according to an embodiment.
일 실시예에 따른 부호화 단위의 계층적 구조(30)에 따르면, 부호화 단위 레벨이 0, 1, 2로 증가함에 따라, 부호화 단위(31, 32, 33)의 크기가 감소할 수 있다. 부호화 단위(31, 32, 33)의 크기가 증가함에 따라 부호화 단위 안에 다양한 형태와 방향의 텍스처 성분이 포함될 수 있으며, 비디오 시퀀스에서 시간의 흐름에 따라 부호화 단위 안에서 다른 움직임 영역이 포함될 수 있다. 따라서, 부호화 단위의 보다 세밀하고 정확한 예측 부호화를 위해서는, 부호화 단위의 크기에 기초하여 부호화 단위에 포함되는 파티션의 형태, 방향성 및 크기가 가변적일 필요가 있다.According to the
도 4 는 일 실시예에 따른 제 1 파티션 모드 및 파티션 레벨로 정의되는 트리 구조의 파티션들을 도시한다.4 illustrates partitions of a tree structure defined by a first partition mode and a partition level, according to an embodiment.
일 실시예에 따른 파티션의 트리 구조(50)는, 제 1 파티션 모드 및 파티션 레벨로 정의되는 파티션들로 구성될 수 있다. 일 실시예에 따른 비디오 부호화 장치(10)의 부호화부(11)는, 부호화 단위마다, 트리 구조(50)를 구성하는 파티션들을 모두 이용하여 예측 부호화를 수행한 후, 부호화 효율이 가장 높은 파티션을 결정하고, 출력부(12)는 결정된 파티션의 레지듀얼이 부호화되어 출력될 수 있다. The
일 실시예에 따른 제 1 파티션 모드는 파티션의 형태와 방향성을 나타내고, 파티션 레벨은 부호화 단위가 세부적인 움직임 예측을 위한 파티션으로 분할된 정도를 나타낼 수 있다. 제 1 파티션 모드와 파티션 레벨의 조합에 따라 파티션이 정의될 수 있다. The first partition mode according to an embodiment may indicate a form and direction of a partition, and the partition level may indicate a degree in which a coding unit is divided into partitions for detailed motion prediction. The partition may be defined according to a combination of the first partition mode and the partition level.
파티션 레벨 0의 파티션 그룹(49)은, 제 1 파티션 모드 0의 파티션 세트(40), 제 1 파티션 모드 1의 파티션 세트(41), 제 1 파티션 모드 2의 파티션 세트(42), 제 1 파티션 모드 3의 파티션 세트(43), 제 1 파티션 모드 4의 파티션 세트(44), 제 1 파티션 모드 5의 파티션 세트(45), 제 1 파티션 모드 6의 파티션 세트(46), 제 1 파티션 모드 7의 파티션 세트(47)를 포함한다.
파티션 레벨 0의 제 1 파티션 모드 0의 파티션 세트(40)는, 부호화 단위와 동일한 크기의 파티션(인덱스 0)을 포함한다. The partition set 40 of the
또한 파티션 레벨 0의 제 1 파티션 모드 1의 파티션 세트(41)는 부호화 단위의 마주보는 높이가 각각 1/2로 분할되어, 부호화 단위가 가로 방향으로 반분된 사각형 파티션들(인덱스 0, 1)을 포함할 수 있다. 또한 파티션 레벨 0의 제 1 파티션 모드 2의 파티션 세트(42)는 부호화 단위의 마주보는 너비가 각각 1/2로 분할되어, 부호화 단위가 세로 방향으로 반분된 사각형 파티션들(인덱스 0, 1)을 포함할 수 있다.In addition, the partition set 41 of the
파티션 레벨 0의 제 1 파티션 모드 3의 파티션 세트(43)는, 부호화 단위의 마주보는 높이 및 마주보는 너비가 모두 1/2로 분할되어, 부호화 단위가 가로세로 방향으로 4분할된 사각형 파티션들(인덱스 0, 1, 2, 3)을 포함할 수 있다.The partition set 43 of the
파티션 레벨 0의 제 1 파티션 모드 4의 파티션 세트(44)는, 부호화 단위의 좌측 상단에 위치하면서 부호화 단위의 좌측 높이 및 상단 너비가 각각 1/2로 분할된 크기의 사각형 파티션(인덱스 0)과, 나머지 조각의 비사각형 파티션(인덱스 1)을 포함할 수 있다. The partition set 44 of the
파티션 레벨 0의 제 1 파티션 모드 5의 파티션 세트(45)는, 부호화 단위의 우측 상단에 위치하면서 부호화 단위의 우측 높이 및 상단 너비가 각각 1/2로 분할된 크기의 사각형 파티션(인덱스 1)과, 나머지 조각의 비사각형 파티션(인덱스 0)을 포함할 수 있다. The partition set 45 of the first partition mode 5 of the
파티션 레벨 0의 제 1 파티션 모드 6의 파티션 세트(46)는, 부호화 단위의 좌측 하단에 위치하면서 부호화 단위의 좌측 높이 및 하단 너비가 각각 1/2로 분할된 크기의 사각형 파티션(인덱스 0)과, 나머지 조각의 비사각형 파티션(인덱스 1)을 포함할 수 있다. The partition set 46 of the first partition mode 6 of the
파티션 레벨 0의 제 1 파티션 모드 7의 파티션 세트(47)는, 부호화 단위의 우측 하단에 위치하면서 부호화 단위의 우측 높이 및 하단 너비가 각각 1/2로 분할된 크기의 사각형 파티션(인덱스 1)과, 나머지 조각의 비사각형 파티션(인덱스 0)을 포함할 수 있다. The partition set 47 of the first partition mode 7 of
제 1 파티션 모드 1 및 2는, 부호화 단위 내의 상하 영역 간에 또는 좌우 영역 간에 움직임이 다른 경우에 정확한 예측 부호화를 위한 파티션을 정의할 수 있다. 제 1 파티션 모드 3은, 부호화 단위 내에 다수의 객체 또는 다수의 영역이 존재하며 복합적인 움직임을 가지는 경우에 파티션별로 세밀한 예측 부호화를 위한 파티션을 정의할 수 있다.The
제 1 파티션 모드 4, 5, 6, 7은 부호화 단위 안에 대각선 방향의 에지가 위치할 때, 에지를 경계로 구획되는 영역들의 정확한 예측 부호화를 위한 파티션을 정의할 수 있다. 다만 제 1 파티션 모드 3, 4, 5, 6, 7이 이용되는 경우, 정확한 움직임 예측은 가능하지만 오버헤드가 증가하므로, 부호화 효율과 오버헤드 간의 트레이드 오프를 고려하여 사용되는 것이 바람직하다. In the
파티션 레벨은 부호화 단위가 세밀한 움직임 예측을 위해 파티션으로 조밀하게 분할된 정도를 나타내므로, 파티션 레벨이 증가할수록 파티션의 최소 높이 또는 최소 너비가 작아질 수 있다.The partition level represents the degree to which the coding unit is densely divided into partitions for fine motion prediction. As the partition level increases, the minimum height or the minimum width of the partition may decrease.
일 실시예에 따른 파티션의 트리 구조(50)에서, 파티션 단위의 최소 너비(최소 높이)는 부호화 단위의 너비(높이)를 2의 제곱수로 나눈 크기이고, 파티션 레벨이 증가함에 따라 2의 제곱수가 증가한다. In the
전술한 바와 같이, 파티션 레벨 0일 때는, 부호화 단위의 높이(너비)가 분할되지 않거나, 1/2로 분할된 경우를 포함한다. 파티션 레벨이 1로 증가하면, 파티션의 최소 높이(최소 너비)가 부호화 단위의 높이(너비)의 1/4일 수 있다. 파티션 레벨이 2로 증가하면, 파티션의 최소 높이(최소 너비)가 부호화 단위의 높이 또는 너비의 1/8일 수 있다. As described above, when the partition level is 0, the height (width) of the coding unit is not divided or is divided into 1/2. When the partition level is increased to 1, the minimum height (minimum width) of the partition may be 1/4 of the height (width) of the coding unit. When the partition level is increased to 2, the minimum height (minimum width) of the partition may be 1/8 of the height or width of the coding unit.
파티션 레벨에 상관없이 부호화 단위의 크기는 동일하다. 파티션 레벨 1의 파티션 그룹(59)은 파티션 레벨 0에 비해 정밀도가 2배 증가한다. 일 실시예로 파티션 레벨 0에서 제 1 파티션 모드 1은 부호화 크기의 높이가 1/2의 정밀도로 세분화된 파티션이고, 파티션 레벨 1에서 제 1 파티션 모드 1은 부호화 크기의 높이가 1/4의 정밀도로 세분화된 파티션이다. 나아가 파티션 레벨 2에서 제 1 파티션 모드 1은 부호화 크기의 높이가 1/8의 정밀도로 세분화된 파티션이다. Regardless of the partition level, the size of the coding unit is the same.
하나의 제 1 파티션 모드에서, 파티션 레벨들 간에 동일한 형태의 파티션이 중복적으로 발생할 수 있다. 예를 들어, 제 1 파티션 모드 3, 4, 5, 6, 7에서, 파티션 레벨 0의 파티션 세트 43, 44, 45, 46, 47은, 각각 파티션 레벨 1의 파티션 세트 53e, 54e, 55e, 56e, 57e과 동일한 형태이다. 제 1 파티션 모드 1, 2에서, 파티션 레벨 1의 파티션 세트 51a, 51b는 각각 파티션 레벨 2의 파티션 세트 61b, 61e와 동일한 형태이며, 파티션 레벨 1의 파티션 세트 52a, 52b는 각각 파티션 레벨 2의 파티션 세트 62b, 62e와 동일한 형태이다.In one first partition mode, partitions of the same type may occur redundantly between partition levels. For example, in the
동일한 제 1 파티션 모드 및 서로 다른 파티션 레벨에 기초하여 결정되는 파티션들이 서로 동일한 형태인 경우, 하위 파티션 레벨의 파티션만이 예측 부호화를 위해 이용될 수 있다. 예를 들어, 제 1 파티션 모드 3에서, 파티션 레벨 1의 파티션 세트 53e는 파티션 레벨 0의 파티션 세트 43과 동일한 형태이므로, 이들 중 하위 파티션 레벨 0의 제 1 파티션 모드 3의 파티션 세트 43만이 실제 예측 부호화에 이용되고 파티션 세트 43을 나타내는 파티션 정보만이 부호화될 수 있다. 이 경우, 파티션 세트 53e을 나타하기 위한 파티션 정보는 정의되지 않는다. When partitions determined based on the same first partition mode and different partition levels have the same shape, only partitions of a lower partition level may be used for predictive encoding. For example, in
파티션 레벨 1의 제 1 파티션 모드 1의 파티션 세트(51a, 51b)는, 부호화 단위의 마주보는 높이가 각각 1:3, 3:1로 분할된 사각형 파티션들(인덱스 0, 1)을 포함할 수 있다. 또한 파티션 레벨 1의 제 1 파티션 모드 2의 파티션 세트(52a, 52b)는, 부호화 단위의 마주보는 너비가 각각 1:3, 3:1로 분할된 사각형 파티션들(인덱스 0, 1)을 포함할 수 있다.The partition sets 51a and 51b of the
파티션 레벨 1의 제 1 파티션 모드 3의 파티션 세트(53a, 53b, 53c, 53d, 53e, 53f, 53g, 53h, 53i)는, 부호화 단위의 마주보는 높이 및 마주보는 너비 중 적어도 하나가 1:3, 2:2, 3:1로 분할되어, 부호화 단위가 가로세로 방향으로 4분할된 사각형 파티션들(인덱스 0, 1, 2, 3)이 정의될 수 있다. 다만 제 1 파티션 모드 3에서, 파티션 레벨 1의 파티션 세트 53e는, 파티션 레벨 0의 파티션 세트 43과 중복되므로 예측 부호화를 위해 사용되지 않을 수 있다. 또한, 파티션 레벨 1에서, 제 1 파티션 모드 3의 파티션 세트 53e를 나타내는 파티션 정보가 정의되지 않을 수 있다.The partition set 53a, 53b, 53c, 53d, 53e, 53f, 53g, 53h, 53i of the
파티션 레벨 1의 제 1 파티션 모드 4의 파티션 세트(54a, 54b, 54c, 54d, 54e, 54f, 54g, 54h, 54i)는, 부호화 단위의 좌측 상단에 위치하면서 부호화 단위의 좌측 높이 및 상단 너비 중 적어도 하나가 1:3, 2:2, 3:1로 분할된 크기의 사각형 파티션(인덱스 0)과 나머지 조각의 비사각형 파티션(인덱스 1)을 포함할 수 있다. 다만 제 1 파티션 모드 4에서, 파티션 레벨 1의 파티션 세트 54e는 파티션 레벨 0의 파티션 세트 44와 중복되므로, 예측 부호화를 위해 사용되지 않을 수 있다. 또한, 파티션 레벨 1에서, 제 1 파티션 모드 4의 파티션 세트 54e를 나타내는 파티션 정보가 정의되지 않을 수 있다.The partition sets 54a, 54b, 54c, 54d, 54e, 54f, 54g, 54h, and 54i of the
파티션 레벨 1의 제 1 파티션 모드 5의 파티션 세트(55a, 55b, 55c, 55d, 55e, 55f, 55g, 55h, 55i)는, 부호화 단위의 우측 상단에 위치하며 부호화 단위의 우측 높이 및 상단 너비 중 적어도 하나가 1:3, 2:2, 3:1로 분할된 크기의 사각형 파티션(인덱스 1)과, 나머지 조각의 비사각형 파티션(인덱스 0)을 포함할 수 있다. 다만 제 1 파티션 모드 5에서, 파티션 레벨 1의 파티션 세트 55e는 파티션 레벨 0의 파티션 세트 45와 중복되는 파티션이므로, 예측 부호화를 위해 사용되지 않을 수 있다. 또한, 파티션 레벨 1에서, 제 1 파티션 모드 5의 파티션 세트 55e를 나타내는 파티션 정보가 정의되지 않을 수 있다.The partition sets 55a, 55b, 55c, 55d, 55e, 55f, 55g, 55h, and 55i of the first partition mode 5 of
파티션 레벨 1의 제 1 파티션 모드 6의 파티션 세트(56a, 56b, 56c, 56d, 56e, 56f, 56g, 56h, 56i)는, 부호화 단위의 좌측 하단에 위치하며 부호화 단위의 좌측 높이 및 하단 너비 중 적어도 하나가 1:3, 2:2, 3:1로 분할된 크기의 사각형 파티션(인덱스 0)과, 나머지 조각의 비사각형 파티션(인덱스 1)을 포함할 수 있다. 다만 제 1 파티션 모드 6에서, 파티션 레벨 1의 파티션 세트 56e는 파티션 레벨 0의 파티션 세트 46과 중복되는 파티션이므로, 예측 부호화를 위해 사용되지 않을 수 있다. 또한, 파티션 레벨 1에서, 제 1 파티션 모드 6의 파티션 세트 56e를 나타내는 파티션 정보가 정의되지 않을 수 있다..The partition set 56a, 56b, 56c, 56d, 56e, 56f, 56g, 56h, 56i of the first partition mode 6 of
파티션 레벨 1의 제 1 파티션 모드 7의 파티션 세트(57a, 57b, 57c, 57d, 57e, 57f, 57g, 57h, 57i)는, 부호화 단위의 우측 하단에 위치하며 부호화 단위의 우측 높이 및 하단 너비 중 적어도 하나가 1:3, 2:2, 3:1로 분할된 크기의 사각형 파티션(인덱스 1)과, 나머지 조각의 비사각형 파티션(인덱스 0)을 포함할 수 있다. 다만 제 1 파티션 모드 7에서, 파티션 레벨 1의 파티션 세트 57e는 파티션 레벨 0의 파티션 세트 47과 중복되는 파티션이므로, 예측 부호화를 위해 사용되지 않을 수 있다. 또한, 파티션 레벨 1에서, 제 1 파티션 모드 7의 파티션 세트 57e를 나타내는 파티션 정보가 정의되지 않을 수 있다..The partition sets 57a, 57b, 57c, 57d, 57e, 57f, 57g, 57h, and 57i of the first partition mode 7 of
유사한 방식으로, 파티션 레벨 2의 제 1 파티션 모드 1의 파티션 세트(61a, 61b, 61c, 61d, 61e, 61f)는, 부호화 단위의 마주보는 높이가 각각 1:7, 2:6, 3:5, 5:3, 6:2, 7:1로 분할된 사각형 파티션들(인덱스 0, 1)을 포함할 수 있다. 다만 제 1 파티션 모드 1에서, 파티션 레벨 2의 파티션 세트 61b 와 61e는 각각 파티션 레벨 1의 파티션 세트 51a와 51b와 중복되는 파티션이므로, 파티션 레벨 2에서 제 1 파티션 모드 1의 파티션 세트 61b 와 61e를 나타내는 파티션 정보는 정의되지 않을 수 있다. 또한 파티션 레벨 2의 제 1 파티션 모드 2의 파티션 세트(62a, 62b, 62c, 62d, 62e, 62f)는, 부호화 단위의 마주보는 너비가 각각 1:7, 2:6, 3:5, 5:3, 6:2, 7:1로 분할된 사각형 파티션들(인덱스 0, 1)을 포함할 수 있다. 다만 제 1 파티션 모드 1에서, 파티션 레벨 2의 파티션 세트 62b 와 62e는 각각 파티션 레벨 1의 파티션 세트 52a와 52b와 중복되는 파티션이므로, 파티션 레벨 2에서 제 1 파티션 모드 1의 파티션 세트 62b와 62e를 나타내는 파티션 정보는 정의되지 않을 수 있다.In a similar manner, the partition sets 61a, 61b, 61c, 61d, 61e, and 61f of the
지면 관계상, 파티션 레벨 2의 제 1 파티션 모드 3, 4, 5, 6, 7을 도시하지는 않았지만, 파티션 레벨 2의 제 1 파티션 모드 3에서는, 부호화 단위의 마주보는 높이 및 마주보는 너비 중 적어도 하나가 1:7, 2:6, 3:5, 4:4, 5:3, 6:2, 7:1로 분할되어, 부호화 단위가 가로세로 방향으로 4분할된 사각형 파티션들이 정의될 수 있다. In view of space, the
또한, 파티션 레벨 2의 제 1 파티션 모드 4에서는, 부호화 단위의 좌측 상단에 위치하며 부호화 단위의 좌측 높이 및 상단 너비 중 적어도 하나가 1:7, 2:6, 3:5, 4:4, 5:3, 6:2, 7:1로 분할된 크기의 사각형 파티션과, 나머지 조각의 비사각형 파티션이 정의될 수 있다. In addition, in the
파티션 레벨 2의 제 1 파티션 모드 5에서는, 부호화 단위의 우측 상단에 위치하며 부호화 단위의 우측 높이 및 상단 너비 중 적어도 하나가 1:7, 2:6, 3:5, 4:4, 5:3, 6:2, 7:1로 분할된 크기의 사각형 파티션과, 나머지 조각의 비사각형 파티션이 정의될 수 있다. In the first partition mode 5 of
파티션 레벨 2의 제 1 파티션 모드 6에서는, 부호화 단위의 좌측 하단에 위치하며 부호화 단위의 좌측 높이 및 하단 너비 중 적어도 하나가 1:7, 2:6, 3:5, 4:4, 5:3, 6:2, 7:1로 분할된 크기의 사각형 파티션과, 나머지 조각의 비사각형 파티션이 정의될 수 있다. In the first partition mode 6 of
파티션 레벨 2의 제 1 파티션 모드 7에서는, 부호화 단위의 우측 높이 및 하단 너비 중 적어도 하나가 1:7, 2:6, 3:5, 4:4, 5:3, 6:2, 7:1로 분할되어, 부호화 단위의 우측 하단에 치우친 한 개의 사각형 파티션과 나머지 조각의 비사각형 파티션이 정의될 수 있다. In the first partition mode 7 of
부호화 크기가 충분히 크다면, 파티션 레벨 3, 파티션 레벨 4로 파티션 세트가 확장될 수 있다.If the encoding size is large enough, the partition set can be extended to
따라서 일 실시예에 따른 파티션의 트리 구조(50)에서, 제 1 파티션 모드에 기초하여 파티션의 형태와 방향성이 결정되고, 파티션 레벨에 기초하여 파티션의 최소 너비 및 최소 높이가 결정될 수 있다. 제 1 파티션 모드 및 파티션 레벨에 기초하여 결정된 사각형 파티션들은, 최소 너비의 배수인 파티션 너비와 최소 높이의 배수인 파티션 높이를 갖는 파티션들을 포함할 수 있다. 이 경우 제 2 파티션 모드는, 제 1 파티션 모드 및 파티션 레벨에 기초하여 결정된 파티션들 중 소정 너비 또는 높이의 파티션을 가리킬 수 있다.Therefore, in the
하나의 부호화 단위가 둘 이상의 파티션들을 포함하는 경우, 인덱스 0인 파티션의 너비 또는 높이가 결정되면 이에 기초하여 나머지 파티션의 너비 또는 높이가 결정되므로, 이하 설명의 편의를 위해 인덱스 0인 파티션의 너비 또는 높이에 대해서만 논한다. When one coding unit includes two or more partitions, the width or height of the remaining partition is determined based on the width or height of the
예를 들어 일 실시예에 따른 파티션의 트리 구조(50)에서, 파티션 레벨 1의 제 1 파티션 모드 1의 파티션들(51a, 51b)은, 파티션의 최소 높이가 부호화 단위의 높이의 1/4로 결정된다. 파티션 레벨 1의 제 1 파티션 모드 1의 파티션들(51a, 51b)의 높이는, 각각 파티션의 최소 높이의 1배 및 3배이다. 이 경우, 제 2 파티션 모드는, 파티션 레벨 1의 제 1 파티션 모드 1의 파티션 51a 및 파티션 51b 각각을 가리키도록 정의될 수 있다. For example, in the
유사한 방식으로, 파티션 레벨 1의 제 1 파티션 모드 4에서는, 사각형 파티션의 최소 너비 및 최소 높이가 부호화 단위의 너비 및 높이의 1/4로 결정되며, 부호화 단위의 좌측 상단에 치우친 한개의 사각형 파티션(인덱스 0)과 함께, 나머지 조각의 비사각형 파티션(인덱스 1)이 형성될 수 있다. 파티션 레벨 1의 제 1 파티션 모드 4의 제 2 파티션 모드는, 파티션의 너비 및 높이 중 적어도 하나가 최소값의 1배, 2배 또는 3배로 변동하면서 결정되는 파티션들 54a, 54b, 54c, 54d, 54f, 54g, 54h, 54i 중 각각을 가리키도록 정의될 수 있다. 전술한 바와 같이, 제 1 파티션 모드 4에서, 파티션 레벨 1의 파티션 54e는 사용되지 않는다.In a similar manner, in the
다만, 파티션 레벨 0에서는 제 2 파티션 모드가 별도로 정의될 필요는 없다. 또한, 제 1 파티션 모드 또는 파티션 레벨에 따라 존재할 수 있는 파티션 종류가 변동하므로, 제 2 파티션 모드의 개수, 범위 등이 변동될 수 있다.However, in
일 실시예에 따른 비디오 부호화 장치(10)는 트리 구조(50)를 구성하는 파티션들 중 하나의 파티션을 결정함으로써, 다양한 형태, 방향성 및 크기의 파티션에 기초한 예측 부호화가 가능하다. 다만 비디오 부호화 장치(10)의 예측 부호화의 정확성과 연산 속도 간의 트레이드 오프에서, 연산 속도가 더 중요한 경우에는, 일 실시예에 따른 비디오 부호화 장치(10)는 트리 구조(50)에 포함되는 파티션들의 제 1 파티션 모드, 파티션 레벨, 또는 제 2 파티션 모드의 선택 범위를 제한할 수도 있다. The
일 실시예에 따른 비디오 부호화 장치(10)는 파티션의 예측 모드 정보, 움직임 벡터, 레지듀얼을 부호화하면서, 각 파티션의 제 1 파티션 모드, 파티션 레벨, 제 2 파티션 모드 등의 파티션 정보를 부호화할 수 있다. 따라서 일 실시예에 따른 비디오 복호화 장치(11)는, 추출된 파티션 정보에 기초하여 파티션을 결정하고, 이를 이용하여 예측 복호화를 수행할 수 있다.The
일 실시예에 따른 최소 크기의 파티션은, 최소 부호화 단위가 4분할된 파티션일 수 있다. 일 실시예에 따른 파티션의 크기는 파티션 레벨에 기초하여 결정될 수 있지만, 파티션의 최소 크기보다 크거나 같고 부호화 단위보다 작거나 같아야 하므로, 파티션의 크기는 부호화 단위의 크기에 종속된다. 따라서 파티션 레벨도 부호화 단위의 크기에 연관될 수 있다. The partition of the minimum size according to an embodiment may be a partition having a minimum coding unit divided into four parts. The size of a partition according to an embodiment may be determined based on the partition level, but since the size of the partition should be greater than or equal to the minimum size of the partition and less than or equal to the coding unit, the size of the partition is dependent on the size of the coding unit. Therefore, the partition level may also be related to the size of the coding unit.
또한, 작은 크기의 부호화 단위 내의 영역에서는 작은 영역의 움직임을 예측하기 위한 파티션이 필요하다. 그러나, 부호화 단위가 클수록 부호화 단위 내의 영역에서 큰 영역의 움직임부터 작은 영역의 움직임까지도 발생할 수 있으므로, 크기가 큰 부호화 단위일수록 큰 파티션부터 작은 파티션을 이용한 예측 부호화가 필요하다. 따라서 파티션 레벨도 부호화 단위의 크기에 기초하여 결정되는 것이 바람직하다. In addition, a partition for predicting the motion of the small region is required in the region within the coding unit having a small size. However, since the larger the coding unit, the motion of the large region to the small region may occur in the region within the coding unit. Therefore, the larger the coding unit, the more predictive coding using the larger partition to the smaller partition is necessary. Therefore, it is preferable that the partition level is also determined based on the size of the coding unit.
따라서 일 실시예에 따른 부호화 단위의 크기에 기초하여, 정의 가능한 파티션 레벨의 관계는 표 1과 같다.Therefore, based on the size of the coding unit according to an embodiment, the relationship between the definable partition level is shown in Table 1.
따라서, 크기 8x8인 부호화 단위에 대해서는 최하 파티션 레벨인 파티션 레벨 0의 파티션들만이 결정될 수 있다. 크기 16x16인 부호화 단위에 대해서는 파티션 레벨 0 및 1의 파티션들이 결정될 수 있다. 크기 32x32, 64x64, 128x128인 부호화 단위에 대해서는 각각, 파티션 레벨 0으로부터 파티션 레벨 2, 3, 4까지의 파티션들이 결정될 수 있다. 따라서 부호화 단위의 크기에 기초하여 파티션 레벨이 가변적으로 허용될 수 있다.도 5 는 일 실시예에 따른 제 1 파티션 모드, 파티션 레벨과 제 2 파티션 모드의 관계를 도시한다. 즉, 도 5 에 도시된 부호화 단위(71, 72, 73) 내부의 점들을 이용하여, 파티션 레벨에 따라 정의될 수 있는 제 1파티션 모드 및 제 2파티션 모드의 형태가, 결정될 수 있다.Therefore, only partitions of
도 5에서 부호화 단위(71, 72, 73) 내부의 선은, 부호화 단위(71, 72, 73)에 포함되는 파티션의 높이 또는 너비가 될 수 있는 선을 나타내며, 점은 파티션의 너비와 높이가 만나는 교차점을 나타낸다. 예를 들어 부호화 단위(71, 72, 73) 내의 소정 교차점으로부터 부호화 단위(71, 72, 73) 내부의 선을 따라 부호화 단위(71, 72, 73)의 너비 또는 높이까지 닿는 직선을 그리면, 부호화 단위(71, 72, 73)가 분할된 파티션들이 형성될 수 있다. In FIG. 5, a line inside the
예를 들어, 파티션 레벨 0에서는, 부호화 단위(71) 내의 선들은 부호화 단위(71)의 높이 또는 너비를 2분할하는 선들이다. 부호화 단위(71) 안에 선들이 교차하여 1개의 교차점이 형성되며, 교차점으로부터 부호화 단위(71)의 좌측 높이, 우측 높이, 상단 너비 또는 하단 너비 중 두 곳까지 뻗은 직선으로 둘러쌓인 파티션들이 결정될 수 있다. 즉, 부호화 단위(71) 내의 선들의 교차점이 파티션의 꼭지점이 될 수 있다. 따라서 파티션 레벨 0의 제 1 파티션 모드마다, 부호화 단위(71) 내에서는 한 세트의 파티션만이 정의될 수 있다. 제 1 파티션 모드마다 한 세트의 파티션만이 정의되므로, 제 2 파티션 모드는 설정되지 않을 수도 있다.For example, at
또한, 파티션 레벨 1에서는, 부호화 단위(72) 내의 선들은 부호화 단위(72)의 높이 또는 너비를 4분할하는 선들이다. 부호화 단위(72) 내의 선들이 교차하면서 파티션 꼭지점은 9개 생성될 수 있지만, 파티션 레벨 0과 중복되는 가운데 교차점(흰색 교차점)을 제외한 8개 꼭지점을 기초로 파티션이 생성 될수 있다. 따라서 파티션 레벨 1의 제 1 파티션 모드마다, 부호화 단위(72) 내에 8개의 파티션 세트가 정의될 수 있다.In addition, at
유사한 방식으로, 파티션 레벨 2에서는, 부호화 단위(73) 내의 선들은 부호화 단위(73)의 높이 또는 너비를 8분할하는 선들이다. 부호화 단위(73) 내의 선들이 교차하면서 파티션 꼭지점은 49개 생성될 수 있지만, 상위 파티션 레벨 0과 파티션 레벨 1과 중복되는 9개의 교차점(흰색 교차점)들을 제외한 40개 꼭지점을 기초로 파티션이 생성될수 있다. 따라서 파티션 레벨 2의 제 1 파티션 모드마다, 부호화 단위(72) 내에 40개의 파티션 세트가 정의될 수 있다.In a similar manner, at
따라서 파티션 레벨에 따라, 하나의 제 1 파티션 모드에 포함되는 제 2 파티션 모드의 개수는 꼭지점의 개수에 상응될 수 있다.Therefore, according to the partition level, the number of second partition modes included in one first partition mode may correspond to the number of vertices.
도 6 은 본 발명의 일 실시예에 따른 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오 부호화 방법의 흐름도를 도시한다. 6 is a flowchart of a video encoding method using a variable partition for predictive encoding according to an embodiment of the present invention.
단계 81에서, 픽처를 부호화하기 위한 데이터 단위인 부호화 단위마다, 제 1 파티션 모드와 파티션 레벨에 기초하여 결정되는 파티션들을 이용하여 예측 부호화를 수행하여, 부호화 결과를 출력할 파티션이 결정된다. In
제 1 파티션 모드에 기초하여 파티션의 형태 및 분할 방향성이 결정되고, 파티션 레벨에 기초하여 파티션의 최소 너비 또는 최소 높이가 결정될 수 있다. 파티션별로 예측 부호화 결과를 비교하여 부호화 효율이 가장 높은 파티션을 결정하고, 결정된 파티션의 레지듀얼이 부호화될 수 있다. The shape and division direction of the partition may be determined based on the first partition mode, and the minimum width or the minimum height of the partition may be determined based on the partition level. By comparing the prediction encoding results for each partition, a partition having the highest encoding efficiency may be determined, and the residual of the determined partition may be encoded.
부호화 단위의 크기에 기초하여 파티션 레벨의 허용 범위가 결정될 수 있다. 제 1 파티션 모드에 따라, 소정 너비 및 높이의 파티션을 가리키기 위한 제 2 파티션 모드가 더 결정될 수 있다. 제 1 파티션 모드 및 파티션 레벨에 기초하여, 제 2 파티션 모드의 개수의 허용 범위가 결정될 수 있다. An allowable range of the partition level may be determined based on the size of the coding unit. According to the first partition mode, a second partition mode for indicating a partition of a predetermined width and height may be further determined. Based on the first partition mode and the partition level, an allowable range of the number of the second partition modes can be determined.
단계 82에서는, 전단계 81에서 결정된 파티션의 제 1 파티션 모드 및 파티션 레벨을 나타내는 파티션 정보가 부호화되어 출력된다. 파티션 정보는, 제 1 파티션 모드에 따라 제 2 파티션 모드를 더 포함할 수도 있다. 파티션마다 움직임 벡터 및 레지듀얼이 부호화되어 출력될 수 있다. 파티션 정보, 예측 모드 및 부호화 모드에 대한 정보가 포함된 부호화 정보가 부호화되어 출력될 수도 있다.In
도 7 은 본 발명의 일 실시예에 따른 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오 복호화 방법의 흐름도를 도시한다. 7 is a flowchart of a video decoding method using a variable partition for predictive encoding according to an embodiment of the present invention.
단계 91에서, 수신된 비트스트림으로부터, 부호화 단위들마다 파티션의 제 1 파티션 모드와 파티션 레벨을 나타내는 파티션 정보가 추출된다. 수신된 비트스트림을 파싱하여 파티션별로 움직임 벡터 및 레지듀얼이 추출될 수 있다. 수신된 비트스트림을 파싱하여 파티션 정보, 예측 모드 및 부호화 모드에 대한 정보가 포함된 부호화 정보가 추출될 수도 있다.In
단계 92에서, 전단계 91에서 추출된 파티션 정보의 제 1 파티션 모드 및 파티션 레벨에 기초하여 결정되는 파티션들을 이용하여 예측 복호화가 수행되며 픽처가 복호화된다. 파티션 정보로부터 제 1 파티션 모드와 파티션 레벨이 판독될 수 있으며, 제 1 파티션 모드에 따라 제 2 파티션 모드가 판독될 수도 있다. 제 1 파티션 모드에 기초하여 파티션의 형태 및 분할 방향성이 결정되고, 파티션 레벨에 기초하여 부호화 단위의 너비 또는 높이에 대비한 파티션의 너비 또는 높이가 결정될 수 있다. 파티션 별로 파티션의 레지듀얼이 복호화됨으로써, 픽처가 복호화될 수 있다.In
이하 도 8 내지 도 22을 참조하여 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초하여 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오 부호화 및 복호화가 개시된다.Hereinafter, video encoding and decoding using variable partitions for predictive encoding are disclosed based on coding units having a tree structure according to an embodiment of the present invention with reference to FIGS. 8 to 22.
도 8 는 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초하여 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오 복호화 장치의 블록도를 도시한다.8 is a block diagram of a video decoding apparatus using a variable partition for predictive encoding based on coding units having a tree structure, according to an embodiment of the present invention.
일 실시예에 따른 트리 구조에 따른 부호화 단위에 기초하여 데이터 단위의 병합을 이용하는 비디오 부호화 장치(100)는 최대 부호화 단위 분할부(110), 부호화 단위 결정부(120) 및 출력부(130)를 포함한다. 이하 설명의 편의를 위해, 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초하여 데이터 단위의 병합을 이용하는 비디오 부호화 장치(100)는 '비디오 부호화 장치(100)'로 축약하여 지칭한다.The
최대 부호화 단위 분할부(110)는 영상의 현재 픽처를 위한 최대 크기의 부호화 단위인 최대 부호화 단위에 기반하여 현재 픽처를 구획할 수 있다. 현재 픽처가 최대 부호화 단위보다 크다면, 현재 픽처의 영상 데이터는 적어도 하나의 최대 부호화 단위로 분할될 수 있다. 일 실시예에 따른 최대 부호화 단위는 크기 32x32, 64x64, 128x128, 256x256 등의 데이터 단위로, 가로 및 세로 크기가 2의 자승인 정사각형의 데이터 단위일 수 있다. 영상 데이터는 적어도 하나의 최대 부호화 단위별로 부호화 단위 결정부(120)로 출력될 수 있다.The maximum
일 실시예에 따른 부호화 단위는 최대 크기 및 심도로 특징지어질 수 있다. 심도란 최대 부호화 단위로부터 부호화 단위가 공간적으로 분할한 횟수를 나타내며, 심도가 깊어질수록 심도별 부호화 단위는 최대 부호화 단위로부터 최소 부호화 단위까지 분할될 수 있다. 최대 부호화 단위의 심도가 최상위 심도이며 최소 부호화 단위가 최하위 부호화 단위로 정의될 수 있다. 최대 부호화 단위는 심도가 깊어짐에 따라 심도별 부호화 단위의 크기는 감소하므로, 상위 심도의 부호화 단위는 복수 개의 하위 심도의 부호화 단위를 포함할 수 있다.The coding unit according to an embodiment may be characterized by a maximum size and depth. The depth indicates the number of times the coding unit is spatially divided from the maximum coding unit, and as the depth increases, the coding unit for each depth may be split from the maximum coding unit to the minimum coding unit. The depth of the largest coding unit is the highest depth and the minimum coding unit may be defined as the lowest coding unit. As the maximum coding unit decreases as the depth increases, the size of the coding unit for each depth decreases, and thus, the coding unit of the higher depth may include coding units of a plurality of lower depths.
전술한 바와 같이 부호화 단위의 최대 크기에 따라, 현재 픽처의 영상 데이터를 최대 부호화 단위로 분할하며, 각각의 최대 부호화 단위는 심도별로 분할되는 부호화 단위들을 포함할 수 있다. 일 실시예에 따른 최대 부호화 단위는 심도별로 분할되므로, 최대 부호화 단위에 포함된 공간 영역(spatial domain)의 영상 데이터가 심도에 따라 계층적으로 분류될 수 있다. As described above, the image data of the current picture may be divided into maximum coding units according to the maximum size of the coding unit, and each maximum coding unit may include coding units divided by depths. Since the maximum coding unit is divided according to depths, image data of a spatial domain included in the maximum coding unit may be hierarchically classified according to depths.
최대 부호화 단위의 높이 및 너비를 계층적으로 분할할 수 있는 총 횟수를 제한하는 최대 심도 및 부호화 단위의 최대 크기가 미리 설정되어 있을 수 있다.The maximum depth and the maximum size of the coding unit that limit the total number of times of hierarchically dividing the height and the width of the maximum coding unit may be preset.
부호화 단위 결정부(120)는, 심도마다 최대 부호화 단위의 영역이 분할된 적어도 하나의 분할 영역을 부호화하여, 적어도 하나의 분할 영역 별로 최종 부호화 결과가 출력될 심도를 결정한다. 즉 부호화 단위 결정부(120)는, 현재 픽처의 최대 부호화 단위마다 심도별 부호화 단위로 영상 데이터를 부호화하여 가장 작은 부호화 오차가 발생하는 심도를 선택하여 부호화 심도로 결정한다. 결정된 부호화 심도 및 최대 부호화 단위별 영상 데이터는 출력부(130)로 출력된다.The
최대 부호화 단위 내의 영상 데이터는 최대 심도 이하의 적어도 하나의 심도에 따라 심도별 부호화 단위에 기반하여 부호화되고, 각각의 심도별 부호화 단위에 기반한 부호화 결과가 비교된다. 심도별 부호화 단위의 부호화 오차의 비교 결과 부호화 오차가 가장 작은 심도가 선택될 수 있다. 각각의 최대화 부호화 단위마다 적어도 하나의 부호화 심도가 결정될 수 있다. Image data in the largest coding unit is encoded based on coding units according to depths according to at least one depth less than or equal to the maximum depth, and encoding results based on the coding units for each depth are compared. As a result of comparing the encoding error of the coding units according to depths, a depth having the smallest encoding error may be selected. At least one coding depth may be determined for each maximum coding unit.
최대 부호화 단위의 크기는 심도가 깊어짐에 따라 부호화 단위가 계층적으로 분할되어 분할되며 부호화 단위의 개수는 증가한다. 또한, 하나의 최대 부호화 단위에 포함되는 동일한 심도의 부호화 단위들이라 하더라도, 각각의 데이터에 대한 부호화 오차를 측정하고 하위 심도로의 분할 여부가 결정된다. 따라서, 하나의 최대 부호화 단위에 포함되는 데이터라 하더라도 위치에 따라 심도별 부호화 오차가 다르므로 위치에 따라 부호화 심도가 달리 결정될 수 있다. 따라서, 하나의 최대 부호화 단위에 대해 부호화 심도가 하나 이상 설정될 수 있으며, 최대 부호화 단위의 데이터는 하나 이상의 부호화 심도의 부호화 단위에 따라 구획될 수 있다.As the depth of the maximum coding unit increases, the coding unit is divided into hierarchically and the number of coding units increases. In addition, even in the case of coding units having the same depth included in one largest coding unit, a coding error of each data is measured, and whether or not division into a lower depth is determined. Therefore, even in the data included in one largest coding unit, since the encoding error for each depth is different according to the position, the coding depth may be differently determined according to the position. Accordingly, one or more coding depths may be set for one maximum coding unit, and data of the maximum coding unit may be partitioned according to coding units of one or more coding depths.
따라서, 일 실시예에 따른 부호화 단위 결정부(120)는, 현재 최대 부호화 단위에 포함되는 트리 구조에 따른 부호화 단위들이 결정될 수 있다. 일 실시예에 따른 '트리 구조에 따른 부호화 단위들'은, 현재 최대 부호화 단위에 포함되는 모든 심도별 부호화 단위들 중, 부호화 심도로 결정된 심도의 부호화 단위들을 포함한다. 부호화 심도의 부호화 단위는, 최대 부호화 단위 내에서 동일 영역에서는 심도에 따라 계층적으로 결정되고, 다른 영역들에 대해서는 독립적으로 결정될 수 있다. 마찬가지로, 현재 영역에 대한 부호화 심도는, 다른 영역에 대한 부호화 심도와 독립적으로 결정될 수 있다. Accordingly, the
일 실시예에 따른 최대 심도는 최대 부호화 단위로부터 최소 부호화 단위까지의 분할 횟수와 관련된 지표이다. 일 실시예에 따른 제 1 최대 심도는, 최대 부호화 단위로부터 최소 부호화 단위까지의 총 분할 횟수를 나타낼 수 있다. 일 실시예에 따른 제 2 최대 심도는 최대 부호화 단위로부터 최소 부호화 단위까지의 심도 레벨의 총 개수를 나타낼 수 있다. 예를 들어, 최대 부호화 단위의 심도가 0이라고 할 때, 최대 부호화 단위가 1회 분할된 부호화 단위의 심도는 1로 설정되고, 2회 분할된 부호화 단위의 심도가 2로 설정될 수 있다. 이 경우, 최대 부호화 단위로부터 4회 분할된 부호화 단위가 최소 부호화 단위라면, 심도 0, 1, 2, 3 및 4의 심도 레벨이 존재하므로 제 1 최대 심도는 4, 제 2 최대 심도는 5로 설정될 수 있다.The maximum depth according to an embodiment is an index related to the number of divisions from the maximum coding unit to the minimum coding unit. The first maximum depth according to an embodiment may represent the total number of divisions from the maximum coding unit to the minimum coding unit. The second maximum depth according to an embodiment may represent the total number of depth levels from the maximum coding unit to the minimum coding unit. For example, when the depth of the largest coding unit is 0, the depth of the coding unit obtained by dividing the largest coding unit once may be set to 1, and the depth of the coding unit divided twice may be set to 2. In this case, if the coding unit divided four times from the maximum coding unit is the minimum coding unit, since depth levels of 0, 1, 2, 3, and 4 exist, the first maximum depth is set to 4 and the second maximum depth is set to 5. Can be.
최대 부호화 단위의 예측 부호화 및 변환이 수행될 수 있다. 예측 부호화 및 변환도 마찬가지로, 최대 부호화 단위마다, 최대 심도 이하의 심도마다 심도별 부호화 단위를 기반으로 수행된다. 일 실시예에 따라 비디오 부호화를 위해 수행하는 변환은 주파수 변환, 직교 변환, 정수 변환 등을 포함할 수 있다. Predictive encoding and transformation of the largest coding unit may be performed. Similarly, prediction encoding and transformation are performed based on depth-wise coding units for each maximum coding unit and for each depth less than or equal to the maximum depth. According to an embodiment, the transform performed for video encoding may include a frequency transform, an orthogonal transform, an integer transform, and the like.
최대 부호화 단위가 심도별로 분할될 때마다 심도별 부호화 단위의 개수가 증가하므로, 심도가 깊어짐에 따라 생성되는 모든 심도별 부호화 단위에 대해 예측 부호화 및 변환을 포함한 부호화가 수행되어야 한다. 이하 설명의 편의를 위해 적어도 하나의 최대 부호화 단위 중 현재 심도의 부호화 단위를 기반으로 예측 부호화 및 변환을 설명하겠다.Since the number of coding units for each depth increases each time the maximum coding unit is divided for each depth, encoding including prediction encoding and transformation should be performed on all the coding units for each depth generated as the depth deepens. For convenience of explanation, the prediction encoding and the transformation will be described based on the coding unit of the current depth among at least one maximum coding unit.
일 실시예에 따른 비디오 부호화 장치(100)는, 영상 데이터의 부호화를 위한 데이터 단위의 크기 또는 형태를 다양하게 선택할 수 있다. 영상 데이터의 부호화를 위해서는 예측 부호화, 변환, 엔트로피 부호화 등의 단계를 거치는데, 모든 단계에 걸쳐서 동일한 데이터 단위가 사용될 수도 있으며, 단계별로 데이터 단위가 변경될 수도 있다.The
예를 들어 비디오 부호화 장치(100)는, 영상 데이터의 부호화를 위한 부호화 단위 뿐만 아니라, 부호화 단위의 영상 데이터의 예측 부호화를 수행하기 위해, 부호화 단위와 다른 데이터 단위를 선택할 수 있다. For example, the
최대 부호화 단위의 예측 부호화를 위해서는, 일 실시예에 따른 부호화 심도의 부호화 단위, 즉 더 이상 분할되지 않는 부호화 단위를 기반으로 예측 부호화가 수행될 수 있다. 이하, 예측 부호화의 기반이 되는 더 이상 분할되지 않는 부호화 단위를 '예측 단위'라고 지칭한다. 예측 단위가 분할된 파티션은, 예측 단위 및 예측 단위의 높이 및 너비 중 적어도 하나가 분할된 데이터 단위를 포함할 수 있다. For prediction encoding of the largest coding unit, prediction encoding may be performed based on a coding unit of a coded depth, that is, a coding unit that is no longer split. Hereinafter, a coding unit that is no longer divided based on prediction coding is referred to as a 'prediction unit'. The partition in which the prediction unit is divided may include a data unit in which at least one of the prediction unit and the height and the width of the prediction unit are divided.
예를 들어, 크기 2Nx2N(단, N은 양의 정수)의 부호화 단위가 더 이상 분할되지 않는 경우, 크기 2Nx2N의 예측 단위가 되며, 파티션의 크기는 2Nx2N, 2NxN, Nx2N, NxN 등일 수 있다. 일 실시예에 따른 파티션 타입은 예측 단위의 높이 또는 너비가 대칭적 비율로 분할된 대칭적 파티션들뿐만 아니라, 1:n 또는 n:1과 같이 비대칭적 비율로 분할된 파티션들, 기하학적인 형태로 분할된 파티션들, 임의적 형태의 파티션들 등을 선택적으로 포함할 수도 있다.For example, when a coding unit having a size of 2Nx2N (where N is a positive integer) is no longer split, it becomes a prediction unit of size 2Nx2N, and the size of a partition may be 2Nx2N, 2NxN, Nx2N, NxN, or the like. According to an embodiment, the partition type includes not only symmetric partitions in which the height or width of the prediction unit is divided by a symmetrical ratio, but also partitions divided in an asymmetrical ratio, such as 1: n or n: 1, by a geometric form. It may optionally include partitioned partitions, arbitrary types of partitions, and the like.
또한, 일 실시예에 따른 예측 단위는 도 1 내지 7을 참조하여 전술한 파티션들을 포함할 수도 있다. 즉, 일 실시예에 따른 제 1 파티션 모드에 기초하여 예측 단위의 형태 및 분할 방향성이 결정되고, 파티션 레벨에 기초하여 부호화 단위의 크기에 대비한 예측 단위의 크기 비율이 결정될 수도 있다. 파티션 레벨의 허용 범위, 즉, 파티션 레벨의 상한 또는 하한은 부호화 단위의 크기에 따라 결정될 수 있다.In addition, the prediction unit according to an embodiment may include the partitions described above with reference to FIGS. 1 to 7. That is, the shape and splitting direction of the prediction unit may be determined based on the first partition mode, and the ratio of the size of the prediction unit to the size of the coding unit may be determined based on the partition level. An allowable range of the partition level, that is, an upper limit or a lower limit of the partition level may be determined according to the size of a coding unit.
제 1 파티션 모드에 따라, 세부적인 파티션의 종류를 가리키기 위한 제 2 파티션 모드가 결정될 수도 있다. According to the first partition mode, a second partition mode for indicating the type of a detailed partition may be determined.
일 실시예에 따른 비디오 부호화 장치(100)는, 제 1 파티션 모드, 파티션 레벨의 계층적 관계에 기초하여 트리 구조를 구성하는 예측 단위들을 이용하여 예측 부호화를 수행하고 예측 결과를 비교하여, 부호화 효율이 가장 높은 파티션을 결정할 수 있다. 일 실시예에 따른 비디오 부호화 장치(100)는, 부호화 단위마다 부호화 효율이 가장 높은 제 1 파티션 모드 및 파티션 레벨의 파티션을 결정할 수 있다.The
예측 단위의 예측 모드는, 인트라 모드, 인터 모드 및 스킵 모드 중 적어도 하나일 수 있다. 예를 들어 인트라 모드 및 인터 모드는, 2Nx2N, 2NxN, Nx2N, NxN 크기의 파티션에 대해서 수행될 수 있다. 또한, 스킵 모드는 2Nx2N 크기의 파티션에 대해서만 수행될 수 있다. 부호화 단위 이내의 하나의 예측 단위마다 독립적으로 부호화가 수행되어 부호화 오차가 가장 작은 예측 모드가 선택될 수 있다.The prediction mode of the prediction unit may be at least one of an intra mode, an inter mode, and a skip mode. For example, the intra mode and the inter mode may be performed on partitions having sizes of 2N × 2N, 2N × N, N × 2N, and N × N. In addition, the skip mode may be performed only for partitions having a size of 2N × 2N. The encoding may be performed independently for each prediction unit within the coding unit to select a prediction mode having the smallest encoding error.
또한, 일 실시예에 따른 비디오 부호화 장치(100)는, 영상 데이터의 부호화를 위한 부호화 단위 뿐만 아니라, 부호화 단위와 다른 데이터 단위를 기반으로 부호화 단위의 영상 데이터의 변환을 수행할 수 있다. Also, the
부호화 단위의 변환을 위해서는, 부호화 단위보다 작거나 같은 크기의 변환 단위를 기반으로 변환이 수행될 수 있다. 예를 들어 변환 단위는, 인트라 모드를 위한 데이터 단위 및 인터 모드를 위한 변환 단위를 포함할 수 있다. In order to transform the coding unit, the transformation may be performed based on a transformation unit having a size smaller than or equal to the coding unit. For example, the transformation unit may include a data unit for intra mode and a transformation unit for inter mode.
일 실시예에 따른 트리 구조에 따른 부호화 단위와 유사한 방식으로, 부호화 단위 내의 변환 단위도 재귀적으로 더 작은 크기의 변환 단위로 분할되면서, 부호화 단위의 레지듀얼 데이터가 변환 심도에 따라 트리 구조에 따른 변환 단위에 따라 구획될 수 있다. In a similar manner to the coding unit according to the tree structure according to an embodiment, the transformation unit in the coding unit is also recursively divided into smaller transformation units, so that the residual data of the coding unit is determined according to the tree structure according to the transformation depth. Can be partitioned according to the conversion unit.
일 실시예에 따른 변환 단위에 대해서도, 부호화 단위의 높이 및 너비가 분할하여 변환 단위에 이르기까지의 분할 횟수를 나타내는 변환 심도가 설정될 수 있다. 예를 들어, 크기 2Nx2N의 현재 부호화 단위의 변환 단위의 크기가 2Nx2N이라면 변환 심도 0, 변환 단위의 크기가 NxN이라면 변환 심도 1, 변환 단위의 크기가 N/2xN/2이라면 변환 심도 2로 설정될 수 있다. 즉, 변환 단위에 대해서도 변환 심도에 따라 트리 구조에 따른 변환 단위가 설정될 수 있다.For a transform unit according to an embodiment, a transform depth indicating a number of divisions between the height and the width of the coding unit divided to the transform unit may be set. For example, if the size of the transform unit of the current coding unit of size 2Nx2N is 2Nx2N, the transform depth is 0, the
부호화 심도별 부호화 정보는, 부호화 심도 뿐만 아니라 예측 관련 정보 및 변환 관련 정보가 필요하다. 따라서, 부호화 단위 결정부(120)는 최소 부호화 오차를 발생시킨 부호화 심도 뿐만 아니라, 예측 단위를 파티션으로 분할한 파티션 타입, 예측 단위별 예측 모드, 변환을 위한 변환 단위의 크기 등을 결정할 수 있다.The encoded information for each coded depth requires not only the coded depth but also prediction related information and transformation related information. Accordingly, the
일 실시예에 따른 최대 부호화 단위의 트리 구조에 따른 부호화 단위 및 파티션의 결정 방식에 대해서는, 도 11 내지 12을 참조하여 상세히 후술한다.A method of determining a coding unit and a partition according to a tree structure of a maximum coding unit, according to an embodiment, will be described in detail later with reference to FIGS. 11 through 12.
부호화 단위 결정부(120)는 심도별 부호화 단위의 부호화 오차를 라그랑지 곱(Lagrangian Multiplier) 기반의 율-왜곡 최적화 기법(Rate-Distortion Optimization)을 이용하여 측정할 수 있다.The
출력부(130)는, 부호화 단위 결정부(120)에서 결정된 적어도 하나의 부호화 심도에 기초하여 부호화된 최대 부호화 단위의 영상 데이터 및 심도별 부호화 모드에 관한 정보를 비트스트림 형태로 출력한다. The
부호화된 영상 데이터는 영상의 레지듀얼 데이터의 부호화 결과일 수 있다.The encoded image data may be a result of encoding residual data of the image.
심도별 부호화 모드에 관한 정보는, 부호화 심도 정보, 예측 단위의 파티션 타입 정보, 예측 모드 정보, 변환 단위의 크기 정보 등을 포함할 수 있다.The information about the encoding modes according to depths may include encoding depth information, partition type information of a prediction unit, prediction mode information, size information of a transformation unit, and the like.
부호화 심도 정보는, 현재 심도로 부호화하지 않고 하위 심도의 부호화 단위로 부호화할지 여부를 나타내는 심도별 분할 정보를 이용하여 정의될 수 있다. 현재 부호화 단위의 현재 심도가 부호화 심도라면, 현재 부호화 단위는 현재 심도의 부호화 단위로 부호화되므로 현재 심도의 분할 정보는 더 이상 하위 심도로 분할되지 않도록 정의될 수 있다. 반대로, 현재 부호화 단위의 현재 심도가 부호화 심도가 아니라면 하위 심도의 부호화 단위를 이용한 부호화를 시도해보아야 하므로, 현재 심도의 분할 정보는 하위 심도의 부호화 단위로 분할되도록 정의될 수 있다.The coded depth information may be defined using depth-specific segmentation information indicating whether to encode to a coding unit of a lower depth without encoding to the current depth. If the current depth of the current coding unit is a coding depth, since the current coding unit is encoded in a coding unit of the current depth, split information of the current depth may be defined so that it is no longer divided into lower depths. On the contrary, if the current depth of the current coding unit is not the coding depth, encoding should be attempted using the coding unit of the lower depth, and thus split information of the current depth may be defined to be divided into coding units of the lower depth.
현재 심도가 부호화 심도가 아니라면, 하위 심도의 부호화 단위로 분할된 부호화 단위에 대해 부호화가 수행된다. 현재 심도의 부호화 단위 내에 하위 심도의 부호화 단위가 하나 이상 존재하므로, 각각의 하위 심도의 부호화 단위마다 반복적으로 부호화가 수행되어, 동일한 심도의 부호화 단위마다 재귀적(recursive) 부호화가 수행될 수 있다.If the current depth is not the coded depth, encoding is performed on the coding unit divided into the coding units of the lower depth. Since at least one coding unit of a lower depth exists in the coding unit of the current depth, encoding may be repeatedly performed for each coding unit of each lower depth, and recursive coding may be performed for each coding unit of the same depth.
하나의 최대 부호화 단위 안에 트리 구조의 부호화 단위들이 결정되며 부호화 심도의 부호화 단위마다 적어도 하나의 부호화 모드에 관한 정보가 결정되어야 하므로, 하나의 최대 부호화 단위에 대해서는 적어도 하나의 부호화 모드에 관한 정보가 결정될 수 있다. 또한, 최대 부호화 단위의 데이터는 심도에 따라 계층적으로 구획되어 위치 별로 부호화 심도가 다를 수 있으므로, 데이터에 대해 부호화 심도 및 부호화 모드에 관한 정보가 설정될 수 있다.Since coding units having a tree structure are determined in one largest coding unit and information about at least one coding mode should be determined for each coding unit of a coding depth, information about at least one coding mode may be determined for one maximum coding unit. Can be. In addition, since the data of the largest coding unit is divided hierarchically according to the depth, the coding depth may be different for each location, and thus information about the coded depth and the coding mode may be set for the data.
따라서, 일 실시예에 따른 출력부(130)는, 최대 부호화 단위에 포함되어 있는 부호화 단위, 예측 단위 및 최소 단위 중 적어도 하나에 대해, 해당 부호화 심도 및 부호화 모드에 대한 부호화 정보를 할당될 수 있다. Accordingly, the
일 실시예에 따른 최소 단위는, 최하위 부호화 심도인 최소 부호화 단위가 4분할된 크기의 정사각형의 데이터 단위이다. 일 실시예에 따른 최소 단위는, 최대 부호화 단위에 포함되는 모든 부호화 단위, 예측 단위, 파티션 단위 및 변환 단위 내에 포함될 수 있는 최대 크기의 정사각 데이터 단위일 수 있다.The minimum unit according to an embodiment is a square data unit having a size obtained by dividing the minimum coding unit, which is the lowest coding depth, into four divisions. The minimum unit according to an embodiment may be a square data unit having a maximum size that may be included in all coding units, prediction units, partition units, and transformation units included in the maximum coding unit.
예를 들어 출력부(130)를 통해 출력되는 부호화 정보는, 부호화 단위별 부호화 정보와 예측 단위별 부호화 정보로 분류될 수 있다. 부호화 단위별 부호화 정보는, 예측 모드 정보, 파티션 크기 정보를 포함할 수 있다. 예측 단위별로 전송되는 부호화 정보는 인터 모드의 추정 방향에 관한 정보, 인터 모드의 참조 영상 인덱스에 관한 정보, 움직임 벡터에 관한 정보, 인트라 모드의 크로마 성분에 관한 정보, 인트라 모드의 보간 방식에 관한 정보 등을 포함할 수 있다. 또한, 픽처, 슬라이스 또는 GOP별로 정의되는 부호화 단위의 최대 크기에 관한 정보 및 최대 심도에 관한 정보는 비트스트림의 헤더에 삽입될 수 있다.For example, the encoding information output through the
또한, 도 1 내지 7을 참조하여 전술된 제 1 파티션 모드, 파티션 레벨 등에 기초하여 예측 단위가 결정되는 경우, 출력부(130)는 파티션의 제 1 파티션 모드, 파티션 레벨을 포함하는 파티션 정보를 부호화 정보로서 부호화하여 출력할 수 있다. 또한 출력부(130)는, 예측 단위별로 움직임 벡터와 레지듀얼을 부호화되어 출력할 수도 있다.In addition, when the prediction unit is determined based on the first partition mode, partition level, etc. described above with reference to FIGS. 1 to 7, the
비디오 부호화 장치(100)의 가장 간단한 형태의 실시예에 따르면, 심도별 부호화 단위는 한 계층 상위 심도의 부호화 단위의 높이 및 너비를 반분한 크기의 부호화 단위이다. 즉, 현재 심도의 부호화 단위의 크기가 2Nx2N이라면, 하위 심도의 부호화 단위의 크기는 NxN 이다. 또한, 2Nx2N 크기의 현재 부호화 단위는 NxN 크기의 하위 심도 부호화 단위를 최대 4개 포함할 수 있다.According to an embodiment of the simplest form of the
따라서, 비디오 부호화 장치(100)는 현재 픽처의 특성을 고려하여 결정된 최대 부호화 단위의 크기 및 최대 심도를 기반으로, 각각의 최대 부호화 단위마다 최적의 형태 및 크기의 부호화 단위를 결정하여 트리 구조에 따른 부호화 단위들을 구성할 수 있다. 또한, 각각의 최대 부호화 단위마다 다양한 예측 모드, 변환 방식 등으로 부호화할 수 있으므로, 다양한 영상 크기의 부호화 단위의 영상 특성을 고려하여 최적의 부호화 모드가 결정될 수 있다. Accordingly, the
또한, 부호화 단위의 다양한 크기에 기초하여, 부호화 단위가 분할된 예측 단위 및 파티션의 종류도 제 1 파티션 모드, 파티션 레벨, 제 2 파티션 모드 등에 기초하여 다양화될 수 있으므로, 부호화 단위 안의 영상 특성에 기반한 예측 부호화가 가능하다. Further, based on various sizes of the coding unit, the prediction unit and the type of partition in which the coding unit is divided may also be diversified based on the first partition mode, the partition level, the second partition mode, and so on. Based on predictive coding is possible.
도 9 는 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초하여 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오 복호화 장치의 블록도를 도시한다.9 is a block diagram of a video decoding apparatus using a variable partition for predictive coding based on coding units having a tree structure, according to an embodiment of the present invention.
일 실시예에 따른 트리 구조에 따른 부호화 단위에 기초하여 데이터 단위의 병합을 이용하는 비디오 복호화 장치(200)는 수신부(210), 영상 데이터 및 부호화 정보 추출부(220) 및 영상 데이터 복호화부(230)를 포함한다. 이하 설명의 편의를 위해, 일 실시예에 따른 트리 구조에 따른 부호화 단위에 기초하여 데이터 단위의 병합을 이용하는 비디오 복호화 장치(200)는 '비디오 복호화 장치(200)'로 축약하여 지칭한다.The
일 실시예에 따른 비디오 복호화 장치(200)의 각종 프로세싱을 위한 부호화 단위, 심도, 예측 단위, 변환 단위, 각종 부호화 모드에 관한 정보 등 각종 용어의 정의는, 도 19 및 비디오 부호화 장치(100)를 참조하여 전술한 바와 동일하다. Definitions of various terms such as coding units, depths, prediction units, transformation units, and information about various encoding modes for various processings of the
수신부(205)는 부호화된 비디오에 대한 비트스트림을 수신하여 파싱(parsing)한다. 영상 데이터 및 부호화 정보 추출부(220)는 파싱된 비트스트림으로부터 최대 부호화 단위별로 트리 구조에 따른 부호화 단위들에 따라 부호화 단위마다 부호화된 영상 데이터를 추출하여 영상 데이터 복호화부(230)로 출력한다. 영상 데이터 및 부호화 정보 추출부(220)는 현재 픽처에 대한 헤더로부터 현재 픽처의 부호화 단위의 최대 크기에 관한 정보를 추출할 수 있다. The receiver 205 receives and parses a bitstream of an encoded video. The image data and
또한, 영상 데이터 및 부호화 정보 추출부(220)는 파싱된 비트스트림으로부터 최대 부호화 단위별로 트리 구조에 따른 부호화 단위들에 대한 부호화 심도 및 부호화 모드에 관한 정보를 추출한다. 추출된 부호화 심도 및 부호화 모드에 관한 정보는 영상 데이터 복호화부(230)로 출력된다. 즉, 비트열의 영상 데이터를 최대 부호화 단위로 분할하여, 영상 데이터 복호화부(230)가 최대 부호화 단위마다 영상 데이터를 복호화하도록 할 수 있다. Also, the image data and
최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보는, 하나 이상의 부호화 심도 정보에 대해 설정될 수 있으며, 부호화 심도별 부호화 모드에 관한 정보는, 해당 부호화 단위의 파티션 타입 정보, 예측 모드 정보 및 변환 단위의 크기 정보 등을 포함할 수 있다. 또한, 일 실시예에 따른 부호화 심도 및 부호화 모드에 대한 부호화 정보는, 현재 예측 단위 또는 현재 파티션에 대한 병합 관련 정보를 더 포함할 수도 있다.The information about the coded depth and the encoding mode for each largest coding unit may be set with respect to one or more coded depth information, and the information about the coding mode according to the coded depths may include partition type information, prediction mode information, and transformation unit of the corresponding coding unit. May include size information and the like. Also, the encoding information about the coding depth and the encoding mode according to an embodiment may further include merge related information about the current prediction unit or the current partition.
영상 데이터 및 부호화 정보 추출부(220)가 추출한 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보는, 일 실시예에 따른 비디오 부호화 장치(100)와 같이 부호화단에서, 최대 부호화 단위별 심도별 부호화 단위마다 반복적으로 부호화를 수행하여 최소 부호화 오차를 발생시키는 것으로 결정된 부호화 심도 및 부호화 모드에 관한 정보이다. 따라서, 비디오 복호화 장치(200)는 최소 부호화 오차를 발생시키는 부호화 방식에 따라 데이터를 복호화하여 영상을 복원할 수 있다.The information about the coded depth and the encoding mode according to the maximum coding units extracted by the image data and the
일 실시예에 따른 부호화 심도 및 부호화 모드에 대한 부호화 정보는, 해당 부호화 단위, 예측 단위 및 최소 단위 중 소정 데이터 단위에 대해 할당되어 있을 수 있으므로, 영상 데이터 및 부호화 정보 추출부(220)는 소정 데이터 단위별로 부호화 심도 및 부호화 모드에 관한 정보를 추출할 수 있다. 소정 데이터 단위별로, 해당 최대 부호화 단위의 부호화 심도 및 부호화 모드에 관한 정보가 기록되어 있다면, 동일한 부호화 심도 및 부호화 모드에 관한 정보를 갖고 있는 소정 데이터 단위들은 동일한 최대 부호화 단위에 포함되는 데이터 단위로 유추될 수 있다. Since the encoded information about the coded depth and the encoding mode according to an embodiment may be allocated to a predetermined data unit among the corresponding coding unit, the prediction unit, and the minimum unit, the image data and the
일 실시예에 따른 부호화 모드에 관한 정보는, 제 1 파티션 모드, 파티션 레벨을 포함하는 파티션 정보를 포함할 수 있다.The information about an encoding mode according to an embodiment may include partition information including a first partition mode and a partition level.
영상 데이터 복호화부(230)는 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보에 기초하여 각각의 최대 부호화 단위의 영상 데이터를 복호화하여 현재 픽처를 복원한다. 즉 영상 데이터 복호화부(230)는, 최대 부호화 단위에 포함되는 트리 구조에 따른 부호화 단위들 가운데 각각의 부호화 단위마다, 판독된 파티션 타입, 예측 모드, 변환 단위에 기초하여 부호화된 영상 데이터를 복호화할 수 있다. 복호화 과정은 인트라 예측 및 움직임 보상을 포함하는 예측 과정, 및 역변환 과정을 포함할 수 있다.The
영상 데이터 복호화부(230)는, 부호화 심도별 부호화 단위의 예측 단위의 파티션 타입 정보 및 예측 모드 정보에 기초하여, 부호화 단위마다 각각의 파티션 및 예측 모드에 따라 인트라 예측 또는 움직임 보상을 수행할 수 있다.The
일 실시예에 따른 영상 데이터 복호화부(230)는, 부호화 모드에 관한 정보 중 파티션 정보를 판독하고, 파티션 정보 중 제 1 파티션 모드 및 파티션 레벨에 기초하여 정의되는 파티션을 결정할 수 있다. 영상 데이터 복호화부(230)는, 일 실시예에 따른 제 1 파티션 모드에 기초하여 예측 단위의 형태 및 분할 방향성을 결정하고, 파티션 레벨에 기초하여 부호화 단위의 크기에 대비한 예측 단위의 크기 비율을 결정할 수 있다. 제 1 파티션 모드에 따라, 영상 데이터 복호화부(230)는 세부적인 파티션의 종류를 가리키기 위한 제 2 파티션 모드를 고려하여 파티션을 결정할 수도 있다. The
일 실시예에 따른 제 1 파티션 모드, 파티션 레벨 및 제 2 파티션 모드는, 부호화 과정에서 제 1 파티션 모드, 파티션 레벨의 계층적 관계에 기초하여 트리 구조를 구성하는 예측 단위들을 이용하여 예측 부호화를 수행하고 예측 결과를 비교하여, 부호화 효율이 가장 높다고 결정된 파티션을 정의하고 있다. 따라서 일 실시예에 따른 영상 데이터 복호화부(230)는, 부호화 단위마다 부호화 효율이 가장 높은 제 1 파티션 모드 및 파티션 레벨의 파티션을 이용하여 예측 복호화를 수행할 수 있다. The first partition mode, the partition level, and the second partition mode, according to an embodiment, perform predictive encoding using prediction units constituting a tree structure based on a hierarchical relationship between the first partition mode and the partition level in the encoding process. By comparing the prediction results, partitions determined to have the highest coding efficiency are defined. Accordingly, the
또한, 영상 데이터 복호화부(230)는, 최대 부호화 단위별 역변환을 위해, 부호화 심도별 부호화 단위의 변환 단위의 크기 정보를 포함하여 트리 구조에 따른 변환 단위를 판독하여, 부호화 단위마다 변환 단위에 기초한 역변환을 수행할 수 있다.In addition, the
영상 데이터 복호화부(230)는 심도별 분할 정보를 이용하여 현재 최대 부호화 단위의 부호화 심도를 결정할 수 있다. 만약, 분할 정보가 현재 심도에서 더 이상 분할되지 않음을 나타내고 있다면 현재 심도가 부호화 심도이다. 따라서, 영상 데이터 복호화부(230)는 현재 최대 부호화 단위의 영상 데이터에 대해 현재 심도의 부호화 단위를 예측 단위의 파티션 타입, 예측 모드 및 변환 단위 크기 정보를 이용하여 복호화할 수 있다. The
즉, 부호화 단위, 예측 단위 및 최소 단위 중 소정 데이터 단위에 대해 설정되어 있는 부호화 정보를 관찰하여, 동일한 분할 정보를 포함한 부호화 정보를 보유하고 있는 데이터 단위가 모여, 영상 데이터 복호화부(230)에 의해 동일한 부호화 모드로 복호화할 하나의 데이터 단위로 간주될 수 있다. In other words, by observing the encoding information set for a predetermined data unit among the coding unit, the prediction unit, and the minimum unit, the data units having the encoding information including the same split information are gathered, and the
일 실시예에 따른 비디오 복호화 장치(200)는, 부호화 과정에서 최대 부호화 단위마다 재귀적으로 부호화를 수행하여 최소 부호화 오차를 발생시킨 부호화 단위에 대한 부호화 정보를 획득하여, 현재 픽처에 대한 복호화에 이용할 수 있다. 즉, 최대 부호화 단위마다 최적 부호화 단위로 결정된 트리 구조에 따른 부호화 단위들의 부호화된 영상 데이터의 복호화가 가능해진다. According to an embodiment, the
또한 일 실시예에 따른 비디오 복호화 장치(200)는, 트리 구조에 따른 예측 단위들의 예측 부호화 결과를 비교하여 결정된 파티션의 결정 방식에 대한 파티션 정보를 추출하여 판독하고, 파티션 정보를 이용하여 예측 복호화를 수행하므로, 정확한 복호화가 가능하다. In addition, the
이하 도 10 내지 도 20을 참조하여 본 발명의 일 실시예에 따른 트리 구조에 따른 부호화 단위들, 예측 단위 및 변환 단위의 결정 방식이 상술된다.Hereinafter, a method of determining coding units, a prediction unit, and a transformation unit according to a tree structure according to an embodiment of the present invention will be described with reference to FIGS. 10 to 20.
도 10 은 본 발명의 일 실시예에 따른 부호화 단위의 개념을 도시한다.10 illustrates a concept of coding units, according to an embodiment of the present invention.
부호화 단위의 예는, 부호화 단위의 크기는 너비x높이로 표현되며, 크기 64x64인 부호화 단위부터, 32x32, 16x16, 8x8를 포함할 수 있다. 크기 64x64의 부호화 단위는 크기 64x64, 64x32, 32x64, 32x32의 파티션들로 분할될 수 있고, 크기 32x32의 부호화 단위는 크기 32x32, 32x16, 16x32, 16x16의 파티션들로, 크기 16x16의 부호화 단위는 크기 16x16, 16x8, 8x16, 8x8의 파티션들로, 크기 8x8의 부호화 단위는 크기 8x8, 8x4, 4x8, 4x4의 파티션들로 분할될 수 있다.As an example of a coding unit, a size of a coding unit may be expressed by a width x height, and may include 32x32, 16x16, and 8x8 from a coding unit having a size of 64x64. Coding units of size 64x64 may be partitioned into partitions of size 64x64, 64x32, 32x64, and 32x32, coding units of size 32x32 are partitions of size 32x32, 32x16, 16x32, and 16x16, and coding units of size 16x16 are 16x16. Coding units of size 8x8 may be divided into partitions of size 8x8, 8x4, 4x8, and 4x4, into partitions of 16x8, 8x16, and 8x8.
비디오 데이터(310)에 대해서는, 해상도는 1920x1080, 부호화 단위의 최대 크기는 64, 최대 심도가 2로 설정되어 있다. 비디오 데이터(320)에 대해서는, 해상도는 1920x1080, 부호화 단위의 최대 크기는 64, 최대 심도가 3로 설정되어 있다. 비디오 데이터(330)에 대해서는, 해상도는 352x288, 부호화 단위의 최대 크기는 16, 최대 심도가 1로 설정되어 있다. 최대 심도는, 최대 부호화 단위로부터 최소 부호화 단위까지의 총 분할 횟수를 나타낸다.As for the
해상도가 높거나 데이터량이 많은 경우 부호화 효율의 향상 뿐만 아니라 영상 특성을 정확히 반영하기 위해 부호화 사이즈의 최대 크기가 상대적으로 큰 것이 바람직하다. 따라서, 비디오 데이터(330)에 비해, 해상도가 높은 비디오 데이터(310, 320)는 부호화 사이즈의 최대 크기가 64로 선택될 수 있다.When the resolution is high or the amount of data is large, it is preferable that the maximum size of the coding size is relatively large in order to not only improve coding efficiency but also accurately reflect image characteristics. Accordingly, the
비디오 데이터(310)의 최대 심도는 2이므로, 비디오 데이터(310)의 부호화 단위(315)는 장축 크기가 64인 최대 부호화 단위로부터, 2회 분할하며 심도가 두 계층 깊어져서 장축 크기가 32, 16인 부호화 단위들까지 포함할 수 있다. 반면, 비디오 데이터(330)의 최대 심도는 1이므로, 비디오 데이터(330)의 부호화 단위(335)는 장축 크기가 16인 부호화 단위들로부터, 1회 분할하며 심도가 한 계층 깊어져서 장축 크기가 8인 부호화 단위들까지 포함할 수 있다. Since the maximum depth of the
비디오 데이터(320)의 최대 심도는 3이므로, 비디오 데이터(320)의 부호화 단위(325)는 장축 크기가 64인 최대 부호화 단위로부터, 3회 분할하며 심도가 세 계층 깊어져서 장축 크기가 32, 16, 8인 부호화 단위들까지 포함할 수 있다. 심도가 깊어질수록 세부 정보의 표현능력이 향상될 수 있다.Since the maximum depth of the
도 11 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 부호화부의 블록도를 도시한다.11 is a block diagram of an image encoder based on coding units, according to an embodiment of the present invention.
일 실시예에 따른 영상 부호화부(400)는, 비디오 부호화 장치(100)의 부호화 단위 결정부(120)에서 영상 데이터를 부호화하는데 거치는 작업들을 포함한다. 즉, 인트라 예측부(410)는 현재 프레임(405) 중 인트라 모드의 부호화 단위에 대해 인트라 예측을 수행하고, 움직임 추정부(420) 및 움직임 보상부(425)는 인터 모드의 현재 프레임(405) 및 참조 프레임(495)를 이용하여 인터 추정 및 움직임 보상을 수행한다.The
인트라 예측부(410), 움직임 추정부(420) 및 움직임 보상부(425)로부터 출력된 데이터는 주파수 변환부(430) 및 양자화부(440)를 거쳐 양자화된 변환 계수로 출력된다. 양자화된 변환 계수는 역양자화부(460), 주파수 역변환부(470)을 통해 공간 영역의 데이터로 복원되고, 복원된 공간 영역의 데이터는 디블로킹부(480) 및 루프 필터링부(490)를 거쳐 후처리되어 참조 프레임(495)으로 출력된다. 양자화된 변환 계수는 엔트로피 부호화부(450)를 거쳐 비트스트림(455)으로 출력될 수 있다.Data output from the
일 실시예에 따른 비디오 부호화 장치(100)에 적용되기 위해서는, 영상 부호화부(400)의 구성 요소들인 인트라 예측부(410), 움직임 추정부(420), 움직임 보상부(425), 주파수 변환부(430), 양자화부(440), 엔트로피 부호화부(450), 역양자화부(460), 주파수 역변환부(470), 디블로킹부(480) 및 루프 필터링부(490)가 모두, 최대 부호화 단위마다 최대 심도를 고려하여 트리 구조에 따른 부호화 단위들 중 각각의 부호화 단위에 기반한 작업을 수행하여야 한다. In order to be applied to the
특히, 인트라 예측부(410), 움직임 추정부(420) 및 움직임 보상부(425)는 현재 최대 부호화 단위의 최대 크기 및 최대 심도를 고려하여 트리 구조에 따른 부호화 단위들 중 각각의 부호화 단위의 파티션 및 예측 모드를 결정하며, 주파수 변환부(430)는 트리 구조에 따른 부호화 단위들 중 각각의 부호화 단위 내의 변환 단위의 크기를 결정하여야 한다.In particular, the
도 12 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 복호화부의 블록도를 도시한다.12 is a block diagram of an image decoder based on coding units, according to an embodiment of the present invention.
비트스트림(505)이 파싱부(510)를 거쳐 복호화 대상인 부호화된 영상 데이터 및 복호화를 위해 필요한 부호화에 관한 정보가 파싱된다. 부호화된 영상 데이터는 엔트로피 복호화부(520) 및 역양자화부(530)를 거쳐 역양자화된 데이터로 출력되고, 주파수 역변환부(540)를 거쳐 공간 영역의 영상 데이터가 복원된다. The
공간 영역의 영상 데이터에 대해서, 인트라 예측부(550)는 인트라 모드의 부호화 단위에 대해 인트라 예측을 수행하고, 움직임 보상부(560)는 참조 프레임(585)를 함께 이용하여 인터 모드의 부호화 단위에 대해 움직임 보상을 수행한다.For the image data of the spatial domain, the
인트라 예측부(550) 및 움직임 보상부(560)를 거친 공간 영역의 데이터는 디블로킹부(570) 및 루프 필터링부(580)를 거쳐 후처리되어 복원 프레임(595)으로 출력될 수 있다. 또한, 디블로킹부(570) 및 루프 필터링부(580)를 거쳐 후처리된 데이터는 참조 프레임(585)으로서 출력될 수 있다.Data in the spatial domain that has passed through the
비디오 복호화 장치(200)의 영상 데이터 복호화부(230)에서 영상 데이터를 복호화하기 위해, 일 실시예에 따른 영상 복호화부(500)의 파싱부(510) 이후의 단계별 작업들이 수행될 수 있다.In order to decode the image data in the
일 실시예에 따른 비디오 복호화 장치(200)에 적용되기 위해서는, 영상 복호화부(400)의 구성 요소들인 파싱부(510), 엔트로피 복호화부(520), 역양자화부(530), 주파수 역변환부(540), 인트라 예측부(550), 움직임 보상부(560), 디블로킹부(570) 및 루프 필터링부(580)가 모두, 최대 부호화 단위마다 트리 구조에 따른 부호화 단위들에 기반하여 작업을 수행하여야 한다. In order to be applied to the
특히, 인트라 예측부(550), 움직임 보상부(560)는 트리 구조에 따른 부호화 단위들 각각마다 파티션 및 예측 모드를 결정하며, 주파수 역변환부(540)는 부호화 단위마다 변환 단위의 크기를 결정하여야 한다.In particular, the
도 13 는 본 발명의 일 실시예에 따른 심도별 부호화 단위 및 파티션을 도시한다.13 is a diagram of deeper coding units according to depths, and partitions, according to an embodiment of the present invention.
일 실시예에 따른 비디오 부호화 장치(100) 및 일 실시예에 따른 비디오 복호화 장치(200)는 영상 특성을 고려하기 위해 계층적인 부호화 단위를 사용한다. 부호화 단위의 최대 높이 및 너비, 최대 심도는 영상의 특성에 따라 적응적으로 결정될 수도 있으며, 사용자의 요구에 따라 다양하게 설정될 수도 있다. 미리 설정된 부호화 단위의 최대 크기에 따라, 심도별 부호화 단위의 크기가 결정될 수 있다.The
일 실시예에 따른 부호화 단위의 계층 구조(600)는 부호화 단위의 최대 높이 및 너비가 64이며, 최대 심도가 4인 경우를 도시하고 있다. 이 때, 최대 심도는 최대 부호화 단위로부터 최소 부호화 단위까지의 총 분할 횟수를 나타낸다. 일 실시예에 따른 부호화 단위의 계층 구조(600)의 세로축을 따라서 심도가 깊어지므로 심도별 부호화 단위의 높이 및 너비가 각각 분할한다. 또한, 부호화 단위의 계층 구조(600)의 가로축을 따라, 각각의 심도별 부호화 단위의 예측 부호화의 기반이 되는 예측 단위 및 파티션이 도시되어 있다.The
즉, 부호화 단위(610)는 부호화 단위의 계층 구조(600) 중 최대 부호화 단위로서 심도가 0이며, 부호화 단위의 크기, 즉 높이 및 너비가 64x64이다. 세로축을 따라 심도가 깊어지며, 크기 32x32인 심도 1의 부호화 단위(620), 크기 16x16인 심도 2의 부호화 단위(630), 크기 8x8인 심도 3의 부호화 단위(640), 크기 4x4인 심도 4의 부호화 단위(650)가 존재한다. 크기 4x4인 심도 4의 부호화 단위(650)는 최소 부호화 단위이다.That is, the
각각의 심도별로 가로축을 따라, 부호화 단위의 예측 단위 및 파티션들이 배열된다. 즉, 심도 0의 크기 64x64의 부호화 단위(610)가 예측 단위라면, 예측 단위는 크기 64x64의 부호화 단위(610)에 포함되는 크기 64x64의 파티션(610), 크기 64x32의 파티션들(612), 크기 32x64의 파티션들(614), 크기 32x32의 파티션들(616)로 분할될 수 있다. Prediction units and partitions of the coding unit are arranged along the horizontal axis for each depth. That is, if the
마찬가지로, 심도 1의 크기 32x32의 부호화 단위(620)의 예측 단위는, 크기 32x32의 부호화 단위(620)에 포함되는 크기 32x32의 파티션(620), 크기 32x16의 파티션들(622), 크기 16x32의 파티션들(624), 크기 16x16의 파티션들(626)로 분할될 수 있다. Similarly, the prediction unit of the coding unit 620 having a size of 32x32 having a depth of 1 includes a partition 620 of size 32x32, partitions 622 of size 32x16 and a partition of size 16x32 included in the coding unit 620 of size 32x32. 624,
마찬가지로, 심도 2의 크기 16x16의 부호화 단위(630)의 예측 단위는, 크기 16x16의 부호화 단위(630)에 포함되는 크기 16x16의 파티션(630), 크기 16x8의 파티션들(632), 크기 8x16의 파티션들(634), 크기 8x8의 파티션들(636)로 분할될 수 있다. Similarly, the prediction unit of the
마찬가지로, 심도 3의 크기 8x8의 부호화 단위(640)의 예측 단위는, 크기 8x8의 부호화 단위(640)에 포함되는 크기 8x8의 파티션(640), 크기 8x4의 파티션들(642), 크기 4x8의 파티션들(644), 크기 4x4의 파티션들(646)로 분할될 수 있다. Similarly, the prediction unit of the
마지막으로, 심도 4의 크기 4x4의 부호화 단위(650)는 최소 부호화 단위이며 최하위 심도의 부호화 단위이고, 해당 예측 단위도 크기 4x4의 파티션(650)으로만 설정될 수 있다. 또한, 크기 4x2의 파티션들(652), 크기 2x4의 파티션들(654), 크기 2x2의 파티션들(656)이 이용될 수도 있다. Finally, the
도 13에 도시된 파티션들은, 각각의 부호화 단위의 높이 및 너비 중 적어도 하나가 1/2로 분할된 형태이므로, 도 1 내지 7을 참조하여 파티션 레벨 0의 제 1 파티션 모드 0, 1, 2, 3의 파티션 세트들(40, 41, 42, 43)에 대응될 수 있다. 예를 들어, 파티션 610, 620, 630, 640, 650은 파티션 레벨 0의 제 1 파티션 모드 0의 파티션 세트 40에 대응되며, 파티션 612, 622, 632, 642, 652은 파티션 레벨 0의 제 1 파티션 모드 1의 파티션 세트 41에 대응될 수 있다. 파티션 614, 624, 634, 644, 654은 파티션 레벨 0의 제 1 파티션 모드 2의 파티션 세트 42에 대응되며, 파티션 616, 626, 636, 646, 656은 파티션 레벨 0의 제 1 파티션 모드 3의 파티션 세트 43에 대응될 수 있다.Since the partitions shown in FIG. 13 have at least one of a height and a width of each coding unit divided into 1/2, the
일 실시예에 따른 비디오 부호화 장치(100)의 부호화 단위 결정부(120)는, 최대 부호화 단위(610)의 부호화 심도를 결정하기 위해, 최대 부호화 단위(610)에 포함되는 각각의 심도의 부호화 단위마다 부호화를 수행하여야 한다. The
동일한 범위 및 크기의 데이터를 포함하기 위한 심도별 부호화 단위의 개수는, 심도가 깊어질수록 심도별 부호화 단위의 개수도 증가한다. 예를 들어, 심도 1의 부호화 단위 한 개가 포함하는 데이터에 대해서, 심도 2의 부호화 단위는 네 개가 필요하다. 따라서, 동일한 데이터의 부호화 결과를 심도별로 비교하기 위해서, 한 개의 심도 1의 부호화 단위 및 네 개의 심도 2의 부호화 단위를 이용하여 각각 부호화되어야 한다.The number of deeper coding units according to depths for including data having the same range and size increases as the depth increases. For example, four coding units of
각각의 심도별 부호화를 위해서는, 부호화 단위의 계층 구조(600)의 가로축을 따라, 심도별 부호화 단위의 예측 단위들마다 부호화를 수행하여, 해당 심도에서 가장 작은 부호화 오차인 대표 부호화 오차가 선택될 수다. 또한, 부호화 단위의 계층 구조(600)의 세로축을 따라 심도가 깊어지며, 각각의 심도마다 부호화를 수행하여, 심도별 대표 부호화 오차를 비교하여 최소 부호화 오차가 검색될 수 있다. 최대 부호화 단위(610) 중 최소 부호화 오차가 발생하는 심도 및 파티션이 최대 부호화 단위(610)의 부호화 심도 및 파티션 타입으로 선택될 수 있다. For each depth coding, encoding may be performed for each prediction unit of a coding unit according to depths along a horizontal axis of the
도 14 은 본 발명의 일 실시예에 따른, 부호화 단위 및 변환 단위의 관계를 도시한다.14 illustrates a relationship between a coding unit and transformation units, according to an embodiment of the present invention.
일 실시예에 따른 비디오 부호화 장치(100) 또는 일 실시예에 따른 비디오 복호화 장치(200)는, 최대 부호화 단위마다 최대 부호화 단위보다 작거나 같은 크기의 부호화 단위로 영상을 부호화하거나 복호화한다. 부호화 과정 중 변환을 위한 변환 단위의 크기는 각각의 부호화 단위보다 크지 않은 데이터 단위를 기반으로 선택될 수 있다.The
예를 들어, 일 실시예에 따른 비디오 부호화 장치(100) 또는 일 실시예에 따른 비디오 복호화 장치(200)에서, 현재 부호화 단위(710)가 64x64 크기일 때, 32x32 크기의 변환 단위(720)를 이용하여 변환이 수행될 수 있다. For example, in the
또한, 64x64 크기의 부호화 단위(710)의 데이터를 64x64 크기 이하의 32x32, 16x16, 8x8, 4x4 크기의 변환 단위들로 각각 변환을 수행하여 부호화한 후, 원본과의 오차가 가장 적은 변환 단위가 선택될 수 있다.In addition, the data of the 64x64 coding unit 710 is transformed into 32x32, 16x16, 8x8, and 4x4 transform units of 64x64 size or less, and then encoded, and the transform unit having the least error with the original is selected. Can be.
도 15 은 본 발명의 일 실시예에 따라, 심도별 부호화 정보들을 도시한다.FIG. 15 illustrates encoding information according to depths, according to an embodiment of the present invention.
일 실시예에 따른 비디오 부호화 장치(100)의 출력부(130)는 부호화 모드에 관한 정보로서, 각각의 부호화 심도의 부호화 단위마다 파티션 타입에 관한 정보(800), 예측 모드에 관한 정보(810), 변환 단위 크기에 대한 정보(820)를 부호화하여 전송할 수 있다.The
파티션 타입에 대한 정보(800)는, 현재 부호화 단위의 예측 부호화를 위한 데이터 단위로서, 현재 부호화 단위의 예측 단위가 분할된 파티션의 형태에 대한 정보를 나타낸다. 예를 들어, 크기 2Nx2N의 현재 부호화 단위 CU_0는, 크기 2Nx2N의 파티션(802), 크기 2NxN의 파티션(804), 크기 Nx2N의 파티션(806), 크기 NxN의 파티션(808) 중 어느 하나의 타입으로 분할되어 이용될 수 있다. 이 경우 현재 부호화 단위의 파티션 타입에 관한 정보(800)는 크기 2Nx2N의 파티션(802), 크기 2NxN의 파티션(804), 크기 Nx2N의 파티션(806) 및 크기 NxN의 파티션(808) 중 하나를 나타내도록 설정된다.The information about the partition type 800 is a data unit for predictive encoding of the current coding unit and indicates information about a partition type in which the prediction unit of the current coding unit is divided. For example, the current coding unit CU_0 of size 2Nx2N may be any one of a
예측 모드에 관한 정보(810)는, 각각의 파티션의 예측 모드를 나타낸다. 예를 들어 예측 모드에 관한 정보(810)를 통해, 파티션 타입에 관한 정보(800)가 가리키는 파티션이 인트라 모드(812), 인터 모드(814) 및 스킵 모드(816) 중 하나로 예측 부호화가 수행되는지 여부가 설정될 수 있다.Information 810 relating to the prediction mode indicates the prediction mode of each partition. For example, through the information 810 about the prediction mode, whether the partition indicated by the information 800 about the partition type is performed in one of the
또한, 변환 단위 크기에 관한 정보(820)는 현재 부호화 단위를 어떠한 변환 단위를 기반으로 변환을 수행할지 여부를 나타낸다. 예를 들어, 변환 단위는 제 1 인트라 변환 단위 크기(822), 제 2 인트라 변환 단위 크기(824), 제 1 인터 변환 단위 크기(826), 제 2 인트라 변환 단위 크기(828) 중 하나일 수 있다.In addition, the information about the transform unit size 820 indicates whether to transform the current coding unit based on the transform unit. For example, the transform unit may be one of a first intra
일 실시예에 따른 비디오 복호화 장치(200)의 영상 데이터 및 부호화 정보 추출부(210)는, 각각의 심도별 부호화 단위마다 파티션 타입에 관한 정보(800), 예측 모드에 관한 정보(810), 변환 단위 크기에 대한 정보(820)를 추출하여 복호화에 이용할 수 있다.The image data and
파티션 타입에 관한 정보(800)는 일 실시예에 따른 부호화 모드에 관한 정보는 파티션 정보를 포함할 수도 있다. 예를 들어, 파티션 타입에 관한 정보(800)가 제 1 파티션 모드 정보, 파티션 레벨 및 제 2 파티션 모드 정보에 기초하여 결정된 파티션 타입을 포함할 수도 있다. The information about the partition type 800 may include information about the encoding mode according to an embodiment. For example, the information 800 regarding the partition type may include a partition type determined based on the first partition mode information, the partition level, and the second partition mode information.
도 16 는 본 발명의 일 실시예에 따른 심도별 부호화 단위를 도시한다.16 is a diagram of deeper coding units according to depths, according to an embodiment of the present invention.
심도의 변화를 나타내기 위해 분할 정보가 이용될 수 있다. 분할 정보는 현재 심도의 부호화 단위가 하위 심도의 부호화 단위로 분할될지 여부를 나타낸다. Segmentation information may be used to indicate a change in depth. The split information indicates whether a coding unit of a current depth is split into coding units of a lower depth.
심도 0 및 2N_0x2N_0 크기의 부호화 단위(900)의 예측 부호화를 위한 예측 단위(910)는 2N_0x2N_0 크기의 파티션 타입(912), 2N_0xN_0 크기의 파티션 타입(914), N_0x2N_0 크기의 파티션 타입(916), N_0xN_0 크기의 파티션 타입(918)을 포함할 수 있다. 예측 단위가 대칭적 비율로 분할된 파티션들(912, 914, 916, 918)만이 예시되어 있지만, 전술한 바와 같이 파티션 타입은 이에 한정되지 않고 비대칭적 파티션, 임의적 형태의 파티션, 기하학적 형태의 파티션 등을 포함할 수 있다.The
파티션 타입마다, 한 개의 2N_0x2N_0 크기의 파티션, 두 개의 2N_0xN_0 크기의 파티션, 두 개의 N_0x2N_0 크기의 파티션, 네 개의 N_0xN_0 크기의 파티션마다 반복적으로 예측 부호화가 수행되어야 한다. 크기 2N_0x2N_0, 크기 N_0x2N_0 및 크기 2N_0xN_0 및 크기 N_0xN_0의 파티션에 대해서는, 인트라 모드 및 인터 모드로 예측 부호화가 수행될 수 있다. 스킵 모드는 크기 2N_0x2N_0의 파티션에 예측 부호화가 대해서만 수행될 수 있다.For each partition type, prediction coding must be performed repeatedly for one 2N_0x2N_0 partition, two 2N_0xN_0 partitions, two N_0x2N_0 partitions, and four N_0xN_0 partitions. For partitions having a size 2N_0x2N_0, a size N_0x2N_0, a size 2N_0xN_0, and a size N_0xN_0, prediction encoding may be performed in an intra mode and an inter mode. The skip mode may be performed only for prediction encoding on partitions having a size of 2N_0x2N_0.
크기 2N_0x2N_0, 2N_0xN_0 및 N_0x2N_0의 파티션 타입(912, 914, 916) 중 하나에 의한 부호화 오차가 가장 작다면, 더 이상 하위 심도로 분할할 필요 없다.If the encoding error by one of the
크기 N_0xN_0의 파티션 타입(918)에 의한 부호화 오차가 가장 작다면, 심도 0를 1로 변경하며 분할하고(920), 심도 2 및 크기 N_0xN_0의 파티션 타입의 부호화 단위들(930)에 대해 반복적으로 부호화를 수행하여 최소 부호화 오차를 검색해 나갈 수 있다. If the encoding error of the
심도 1 및 크기 2N_1x2N_1 (=N_0xN_0)의 부호화 단위(930)의 예측 부호화를 위한 예측 단위(940)는, 크기 2N_1x2N_1의 파티션 타입(942), 크기 2N_1xN_1의 파티션 타입(944), 크기 N_1x2N_1의 파티션 타입(946), 크기 N_1xN_1의 파티션 타입(948)을 포함할 수 있다. The
또한, 크기 N_1xN_1 크기의 파티션 타입(948)에 의한 부호화 오차가 가장 작다면, 심도 1을 심도 2로 변경하며 분할하고(950), 심도 2 및 크기 N_2xN_2의 부호화 단위들(960)에 대해 반복적으로 부호화를 수행하여 최소 부호화 오차를 검색해 나갈 수 있다. In addition, if the encoding error due to the
최대 심도가 d인 경우, 심도별 분할 정보는 심도 d-1일 때까지 설정되고, 분할 정보는 심도 d-2까지 설정될 수 있다. 즉, 심도 d-2로부터 분할(970)되어 심도 d-1까지 부호화가 수행될 경우, 심도 d-1 및 크기 2N_(d-1)x2N_(d-1)의 부호화 단위(980)의 예측 부호화를 위한 예측 단위(990)는, 크기 2N_(d-1)x2N_(d-1)의 파티션 타입(992), 크기 2N_(d-1)xN_(d-1)의 파티션 타입(994), 크기 N_(d-1)x2N_(d-1)의 파티션 타입(996), 크기 N_(d-1)xN_(d-1)의 파티션 타입(998)을 포함할 수 있다. When the maximum depth is d, the split information for each depth may be set until the depth d-1, and the split information may be set up to the depth d-2. That is, when encoding is performed from the depth d-2 to the depth d-1 to the depth d-1, the prediction encoding of the
파티션 타입 가운데, 한 개의 크기 2N_(d-1)x2N_(d-1)의 파티션, 두 개의 크기 2N_(d-1)xN_(d-1)의 파티션, 두 개의 크기 N_(d-1)x2N_(d-1)의 파티션, 네 개의 크기 N_(d-1)xN_(d-1)의 파티션마다 반복적으로 예측 부호화를 통한 부호화가 수행되어, 최소 부호화 오차가 발생하는 파티션 타입이 검색될 수 있다. Among the partition types, one partition 2N_ (d-1) x2N_ (d-1), two partitions 2N_ (d-1) xN_ (d-1), two sizes N_ (d-1) x2N_ Prediction encoding is repeatedly performed for each partition of (d-1) and four partitions of size N_ (d-1) xN_ (d-1), so that a partition type having a minimum encoding error may be searched. .
크기 N_(d-1)xN_(d-1)의 파티션 타입(998)에 의한 부호화 오차가 가장 작더라도, 최대 심도가 d이므로, 심도 d-1의 부호화 단위 CU_(d-1)는 더 이상 하위 심도로의 분할 과정을 거치지 않으며, 현재 최대 부호화 단위(900)에 대한 부호화 심도가 심도 d-1로 결정되고, 파티션 타입은 N_(d-1)xN_(d-1)로 결정될 수 있다. 또한 최대 심도가 d이므로, 심도 d-1의 부호화 단위(952)에 대해 분할 정보는 설정되지 않는다.Even if the encoding error of the
데이터 단위(999)은, 현재 최대 부호화 단위에 대한 '최소 단위'라 지칭될 수 있다. 일 실시예에 따른 최소 단위는, 최하위 부호화 심도인 최소 부호화 단위가 4분할된 크기의 정사각형의 데이터 단위일 수 있다. 이러한 반복적 부호화 과정을 통해, 일 실시예에 따른 비디오 부호화 장치(100)는 부호화 단위(900)의 심도별 부호화 오차를 비교하여 가장 작은 부호화 오차가 발생하는 심도를 선택하여, 부호화 심도를 결정하고, 해당 파티션 타입 및 예측 모드가 부호화 심도의 부호화 모드로 설정될 수 있다. The
이런 식으로 심도 0, 1, ..., d-1, d의 모든 심도별 최소 부호화 오차를 비교하여 오차가 가장 작은 심도가 선택되어 부호화 심도로 결정될 수 있다. 부호화 심도, 및 예측 단위의 파티션 타입 및 예측 모드는 부호화 모드에 관한 정보로써 부호화되어 전송될 수 있다. 또한, 심도 0으로부터 부호화 심도에 이르기까지 부호화 단위가 분할되어야 하므로, 부호화 심도의 분할 정보만이 '0'으로 설정되고, 부호화 심도를 제외한 심도별 분할 정보는 '1'로 설정되어야 한다. In this way, the depth with the smallest error can be determined by comparing the minimum coding errors for all depths of
일 실시예에 따른 비디오 복호화 장치(200)의 영상 데이터 및 부호화 정보 추출부(220)는 부호화 단위(900)에 대한 부호화 심도 및 예측 단위에 관한 정보를 추출하여 부호화 단위(912)를 복호화하는데 이용할 수 있다. 일 실시예에 따른 비디오 복호화 장치(200)는 심도별 분할 정보를 이용하여 분할 정보가 '0'인 심도를 부호화 심도로 파악하고, 해당 심도에 대한 부호화 모드에 관한 정보를 이용하여 복호화에 이용할 수 있다.The image data and
도 17, 18 및 19는 본 발명의 일 실시예에 따른, 부호화 단위, 예측 단위 및 변환 단위의 관계를 도시한다.17, 18, and 19 illustrate a relationship between a coding unit, a prediction unit, and a transformation unit, according to an embodiment of the present invention.
부호화 단위(1010)는, 최대 부호화 단위에 대해 일 실시예에 따른 비디오 부호화 장치(100)가 결정한 부호화 심도별 부호화 단위들이다. 예측 단위(1060)는 부호화 단위(1010) 중 각각의 부호화 심도별 부호화 단위의 예측 단위들의 파티션들이며, 변환 단위(1070)는 각각의 부호화 심도별 부호화 단위의 변환 단위들이다.The coding units 1010 are coding units according to coding depths determined by the
심도별 부호화 단위들(1010)은 최대 부호화 단위의 심도가 0이라고 하면, 부호화 단위들(1012, 1054)은 심도가 1, 부호화 단위들(1014, 1016, 1018, 1028, 1050, 1052)은 심도가 2, 부호화 단위들(1020, 1022, 1024, 1026, 1030, 1032, 1048)은 심도가 3, 부호화 단위들(1040, 1042, 1044, 1046)은 심도가 4이다. If the depth-based coding units 1010 have a depth of 0, the
예측 단위들(1060) 중 일부 파티션(1014, 1016, 1022, 1032, 1048, 1050, 1052, 1054)는 부호화 단위가 분할된 형태이다. 즉, 파티션(1014, 1022, 1050, 1054)은 2NxN의 파티션 타입이며, 파티션(1016, 1048, 1052)은 Nx2N의 파티션 타입, 파티션(1032)은 NxN의 파티션 타입이다. 심도별 부호화 단위들(1010)의 예측 단위 및 파티션들은 각각의 부호화 단위보다 작거나 같다. Some of the
변환 단위들(1070) 중 일부(1052)의 영상 데이터에 대해서는 부호화 단위에 비해 작은 크기의 데이터 단위로 변환 또는 역변환이 수행된다. 또한, 변환 단위(1014, 1016, 1022, 1032, 1048, 1050, 1052, 1054)는 예측 단위들(1060) 중 해당 예측 단위 및 파티션와 비교해보면, 서로 다른 크기 또는 형태의 데이터 단위이다. 즉, 일 실시예에 따른 비디오 부호화 장치(100) 및 일 실시예에 다른 비디오 복호화 장치(200)는 동일한 부호화 단위에 대한 인트라 예측/움직임 추정/움직임 보상 작업, 및 변환/역변환 작업이라 할지라도, 각각 별개의 데이터 단위를 기반으로 수행할 수 있다.The image data of the
이에 따라, 최대 부호화 단위마다, 영역별로 계층적인 구조의 부호화 단위들마다 재귀적으로 부호화가 수행되어 최적 부호화 단위가 결정됨으로써, 재귀적 트리 구조에 따른 부호화 단위들이 구성될 수 있다. 부호화 정보는 부호화 단위에 대한 분할 정보, 파티션 타입 정보, 예측 모드 정보, 변환 단위 크기 정보를 포함할 수 있다. 이하 표 2은, 일 실시예에 따른 비디오 부호화 장치(100) 및 일 실시예에 따른 비디오 복호화 장치(200)에서 설정할 수 있는 일례를 나타낸다.Accordingly, coding is performed recursively for each coding unit having a hierarchical structure for each largest coding unit to determine an optimal coding unit. Thus, coding units having a recursive tree structure may be configured. The encoding information may include split information about a coding unit, partition type information, prediction mode information, and transformation unit size information. Table 2 below shows an example that can be set in the
인터
스킵 (2Nx2N만)Intra
Inter
Skip (2Nx2N only)
분할 정보 1Conversion unit
2NxN
Nx2N
NxN2Nx2N
2NxN
Nx2N
NxN
2NxnD
nLx2N
nRx2N2NxnU
2NxnD
nLx2N
nRx2N
(대칭형 파티션 타입)
N/2xN/2
(비대칭형 파티션 타입)NxN
(Symmetric partition type)
N / 2xN / 2
(Asymmetric partition type)
일 실시예에 따른 비디오 부호화 장치(100)의 출력부(130)는 트리 구조에 따른 부호화 단위들에 대한 부호화 정보를 출력하고, 일 실시예에 따른 비디오 복호화 장치(200)의 부호화 정보 추출부(220)는 수신된 비트스트림으로부터 트리 구조에 따른 부호화 단위들에 대한 부호화 정보를 추출할 수 있다.분할 정보는 현재 부호화 단위가 하위 심도의 부호화 단위들로 분할되는지 여부를 나타낸다. 현재 심도 d의 분할 정보가 0이라면, 현재 부호화 단위가 현재 부호화 단위가 하위 부호화 단위로 더 이상 분할되지 않는 심도가 부호화 심도이므로, 부호화 심도에 대해서 파티션 타입 정보, 예측 모드, 변환 단위 크기 정보가 정의될 수 있다. 분할 정보에 따라 한 단계 더 분할되어야 하는 경우에는, 분할된 4개의 하위 심도의 부호화 단위마다 독립적으로 부호화가 수행되어야 한다.The
예측 모드는, 인트라 모드, 인터 모드 및 스킵 모드 중 하나로 나타낼 수 있다. 인트라 모드 및 인터 모드는 모든 파티션 타입에서 정의될 수 있으며, 스킵 모드는 파티션 타입 2Nx2N에서만 정의될 수 있다. The prediction mode may be represented by one of an intra mode, an inter mode, and a skip mode. Intra mode and inter mode can be defined in all partition types, and skip mode can be defined only in partition type 2Nx2N.
파티션 타입 정보는, 예측 단위의 높이 또는 너비가 대칭적 비율로 분할된 대칭적 파티션 타입 2Nx2N, 2NxN, Nx2N 및 NxN 과, 비대칭적 비율로 분할된 비대칭적 파티션 타입 2NxnU, 2NxnD, nLx2N, nRx2N를 나타낼 수 있다. 비대칭적 파티션 타입 2NxnU 및 2NxnD는 각각 높이가 1:3 및 3:1로 분할된 형태이며, 비대칭적 파티션 타입 nLx2N 및 nRx2N은 각각 너비가 1:3 및 3:1로 분할된 형태를 나타낸다. 도 4의 트리 구조에 따른 파티션들을 참조하면, 비대칭적 파티션 타입 2NxnU 및 2NxnD는, 파티션 레벨 1의 제 1 파티션 모드 1 의 파티션 세트 51a, 51b에 대응되며, 비대칭적 파티션 타입 nLx2N 및 nRx2N및 2의 파티션 레벨 1의 제 1 파티션 모드 2 의 파티션 세트 52a, 52b에 대응될 수 있다.변환 단위 크기는 인트라 모드에서 두 종류의 크기, 인터 모드에서 두 종류의 크기로 설정될 수 있다. 즉, 변환 단위 분할 정보가 0 이라면, 변환 단위의 크기가 현재 부호화 단위의 크기 2Nx2N로 설정된다. 변환 단위 분할 정보가 1이라면, 현재 부호화 단위가 분할된 크기의 변환 단위가 설정될 수 있다. 또한 크기 2Nx2N인 현재 부호화 단위에 대한 파티션 타입이 대칭형 파티션 타입이라면 변환 단위의 크기는 NxN, 비대칭형 파티션 타입이라면 N/2xN/2로 설정될 수 있다. The partition type information indicates the symmetric partition types 2Nx2N, 2NxN, Nx2N and NxN, in which the height or width of the prediction unit is divided by the symmetrical ratio, and the asymmetric partition types 2NxnU, 2NxnD, nLx2N, nRx2N, which are divided by the asymmetrical ratio. Can be. The asymmetric partition types 2NxnU and 2NxnD are divided into heights 1: 3 and 3: 1, respectively, and the asymmetric partition types nLx2N and nRx2N are divided into 1: 3 and 3: 1 widths, respectively. Referring to the partitions according to the tree structure of FIG. 4, the asymmetric partition types 2NxnU and 2NxnD correspond to partition
일 실시예에 따른 트리 구조에 따른 부호화 단위들의 부호화 정보는, 부호화 심도의 부호화 단위, 예측 단위 및 최소 단위 단위 중 적어도 하나에 대해 할당될 수 있다. 부호화 심도의 부호화 단위는 동일한 부호화 정보를 보유하고 있는 예측 단위 및 최소 단위를 하나 이상 포함할 수 있다.Encoding information of coding units having a tree structure according to an embodiment may be allocated to at least one of a coding unit, a prediction unit, and a minimum unit unit of a coding depth. The coding unit of the coding depth may include at least one prediction unit and at least one minimum unit having the same encoding information.
따라서, 인접한 데이터 단위들끼리 각각 보유하고 있는 부호화 정보들을 확인하면, 동일한 부호화 심도의 부호화 단위에 포함되는지 여부가 확인될 수 있다. 또한, 데이터 단위가 보유하고 있는 부호화 정보를 이용하면 해당 부호화 심도의 부호화 단위를 확인할 수 있으므로, 최대 부호화 단위 내의 부호화 심도들의 분포가 유추될 수 있다.Therefore, if the encoding information held by each adjacent data unit is checked, it may be determined whether the adjacent data units are included in the coding unit having the same coding depth. In addition, since the coding unit of the corresponding coding depth may be identified by using the encoding information held by the data unit, the distribution of the coded depths within the maximum coding unit may be inferred.
따라서 이 경우 현재 부호화 단위가 주변 데이터 단위를 참조하여 예측하는 경우, 현재 부호화 단위에 인접하는 심도별 부호화 단위 내의 데이터 단위의 부호화 정보가 직접 참조되어 이용될 수 있다.Therefore, in this case, when the current coding unit is predicted with reference to the neighboring data unit, the encoding information of the data unit in the depth-specific coding unit adjacent to the current coding unit may be directly referred to and used.
또 다른 실시예로, 현재 부호화 단위가 주변 부호화 단위를 참조하여 예측 부호화가 수행되는 경우, 인접하는 심도별 부호화 단위의 부호화 정보를 이용하여, 심도별 부호화 단위 내에서 현재 부호화 단위에 인접하는 데이터가 검색됨으로써 주변 부호화 단위가 참조될 수도 있다. In another embodiment, when the prediction coding is performed by referring to the neighboring coding unit, the data adjacent to the current coding unit in the coding unit according to depths is encoded by using the encoding information of the adjacent coding units according to depths. The neighboring coding unit may be referred to by searching.
도 20 은 표 1의 부호화 모드 정보에 따른 부호화 단위, 예측 단위 및 변환 단위의 관계를 도시한다.20 illustrates a relationship between a coding unit, a prediction unit, and a transformation unit, according to encoding mode information of Table 1. FIG.
최대 부호화 단위(1300)는 부호화 심도의 부호화 단위들(1302, 1304, 1306, 1312, 1314, 1316, 1318)을 포함한다. 이 중 하나의 부호화 단위(1318)는 부호화 심도의 부호화 단위이므로 분할 정보가 0으로 설정될 수 있다. 크기 2Nx2N의 부호화 단위(1318)의 파티션 타입 정보는, 파티션 타입 2Nx2N(1322), 2NxN(1324), Nx2N(1326), NxN(1328), 2NxnU(1332), 2NxnD(1334), nLx2N(1336) 및 nRx2N(1338) 중 하나로 설정될 수 있다. The
이와 같은 파티션 타입은 도 4에서 명시된 파티션들 중 일부에 대응될 수 있다. 예를 들어, 파티션 타입 2Nx2N(1322)는 파티션 40 (파티션 레벨 0의 제 1 파티션 모드 0)에 대응할 수 있다. 파티션 타입 2NxN(1324) 및 Nx2N(1326)은 각각 파티션 세트 41 및 42(각각, 파티션 레벨 0의 제 1 파티션 레벨 1 및 2)에 대응할 수 있다. 파티션 타입 NxN(1328) 은 파티션 세트 43(파티션 레벨 0 의 제 1 파티션 모드 3)에 대응할 수 있다. 파티션 타입 2NxnU(1332) 및 2NxnD(1334)는 각각 파티션 세트 51a 및 51b (모두 파티션 레벨 1 및 제 1 파티션 모드 1)에 대응할 수 있다. 파티션 타입 nLx2N(1336) 및 nRx2N(1338)는 각각 파티션 세트 52a 및 52b (모두 파티션 레벨 1 및 제 1 파티션 모드 2)에 대응할 수 있다.변환 단위 분할 정보(TU size flag)는 변환 인덱스의 일종으로서, 변환 인덱스에 대응하는 변환 단위의 크기는 부호화 단위의 예측 단위 타입 또는 파티션 타입에 따라 변경될 수 있다. This partition type may correspond to some of the partitions specified in FIG. 4. For example,
예를 들어, 파티션 타입 정보가 대칭형 파티션 타입 2Nx2N(1322), 2NxN(1324), Nx2N(1326) 및 NxN(1328) 중 하나로 설정되어 있는 경우, 변환 단위 분할 정보가 0이면 크기 2Nx2N의 변환 단위(1342)가 설정되고, 변환 단위 분할 정보가 1이면 크기 NxN의 변환 단위(1344)가 설정될 수 있다.For example, when the partition type information is set to one of the symmetric
파티션 타입 정보가 비대칭형 파티션 타입 2NxnU(1332), 2NxnD(1334), nLx2N(1336) 및 nRx2N(1338) 중 하나로 설정된 경우, 변환 단위 분할 정보(TU size flag)가 0이면 크기 2Nx2N의 변환 단위(1352)가 설정되고, 변환 단위 분할 정보가 1이면 크기 N/2xN/2의 변환 단위(1354)가 설정될 수 있다.When the partition type information is set to one of the asymmetric partition types 2NxnU (1332), 2NxnD (1334), nLx2N (1336), and nRx2N (1338), if the conversion unit partition information (TU size flag) is 0, a conversion unit of size 2Nx2N ( 1352 is set, and if the transform unit split information is 1, a
도 18을 참조하여 전술된 변환 단위 분할 정보(TU size flag)는 0 또는 1의 값을 갖는 플래그이지만, 일 실시예에 따른 변환 단위 분할 정보가 1비트의 플래그로 한정되는 것은 아니며 설정에 따라 0, 1, 2, 3.. 등으로 증가하며 변환 단위가 계층적으로 분할될 수도 있다. 변환 단위 분할 정보는 변환 인덱스의 한 실시예로써 이용될 수 있다. The conversion unit splitting information (TU size flag) described above with reference to FIG. 18 is a flag having a value of 0 or 1, but the conversion unit splitting information according to an embodiment is not limited to a 1-bit flag and is set to 0 according to a setting. , 1, 2, 3., etc., and may be divided hierarchically. The transformation unit partition information may be used as an embodiment of the transformation index.
이 경우, 일 실시예에 따른 변환 단위 분할 정보를 변환 단위의 최대 크기, 변환 단위의 최소 크기와 함께 이용하면, 실제로 이용된 변환 단위의 크기가 표현될 수 있다. 일 실시예에 따른 비디오 부호화 장치(100)는, 최대 변환 단위 크기 정보, 최소 변환 단위 크기 정보 및 최대 변환 단위 분할 정보를 부호화할 수 있다. 부호화된 최대 변환 단위 크기 정보, 최소 변환 단위 크기 정보 및 최대 변환 단위 분할 정보는 SPS에 삽입될 수 있다. 일 실시예에 따른 비디오 복호화 장치(200)는 최대 변환 단위 크기 정보, 최소 변환 단위 크기 정보 및 최대 변환 단위 분할 정보를 이용하여, 비디오 복호화에 이용할 수 있다. In this case, when the transformation unit split information according to an embodiment is used together with the maximum size of the transformation unit and the minimum size of the transformation unit, the size of the transformation unit actually used may be expressed. The
예를 들어, (a) 현재 부호화 단위가 크기 64x64이고, 최대 변환 단위 크기는 32x32이라면, (a-1) 변환 단위 분할 정보가 0일 때 변환 단위의 크기가 32x32, (a-2) 변환 단위 분할 정보가 1일 때 변환 단위의 크기가 16x16, (a-3) 변환 단위 분할 정보가 2일 때 변환 단위의 크기가 8x8로 설정될 수 있다.For example, (a) if the current coding unit is 64x64 in size and the maximum transform unit size is 32x32, (a-1) when the transform unit split information is 0, the size of the transform unit is 32x32, (a-2) When the split information is 1, the size of the transform unit may be set to 16 × 16, and (a-3) when the split unit information is 2, the size of the transform unit may be set to 8 × 8.
다른 예로, (b) 현재 부호화 단위가 크기 32x32이고, 최소 변환 단위 크기는 32x32이라면, (b-1) 변환 단위 분할 정보가 0일 때 변환 단위의 크기가 32x32로 설정될 수 있으며, 변환 단위의 크기가 32x32보다 작을 수는 없으므로 더 이상의 변환 단위 분할 정보가 설정될 수 없다.As another example, (b) if the current coding unit is size 32x32 and the minimum transform unit size is 32x32, (b-1) when the transform unit split information is 0, the size of the transform unit may be set to 32x32. Since the size cannot be smaller than 32x32, no further conversion unit split information can be set.
또 다른 예로, (c) 현재 부호화 단위가 크기 64x64이고, 최대 변환 단위 분할 정보가 1이라면, 변환 단위 분할 정보는 0 또는 1일 수 있으며, 다른 변환 단위 분할 정보가 설정될 수 없다.As another example, (c) if the current coding unit is 64x64 and the maximum transform unit split information is 1, the transform unit split information may be 0 or 1, and no other transform unit split information may be set.
따라서, 최대 변환 단위 분할 정보를 'MaxTransformSizeIndex', 최소 변환 단위 크기를 'MinTransformSize', 변환 단위 분할 정보가 0인 경우의 변환 단위 크기를 'RootTuSize'라고 정의할 때, 현재 부호화 단위에서 가능한 최소 변환 단위 크기 'CurrMinTuSize'는 아래 관계식 (1) 과 같이 정의될 수 있다.Therefore, when the maximum transform unit split information is defined as 'MaxTransformSizeIndex', the minimum transform unit size is 'MinTransformSize', and the transform unit split information is 0, the minimum transform unit possible in the current coding unit is defined as 'RootTuSize'. The size 'CurrMinTuSize' can be defined as in relation (1) below.
CurrMinTuSizeCurrMinTuSize
= max (MinTransformSize, RootTuSize/(2^MaxTransformSizeIndex)) ... (1)= max (MinTransformSize, RootTuSize / (2 ^ MaxTransformSizeIndex)) ... (1)
현재 부호화 단위에서 가능한 최소 변환 단위 크기 'CurrMinTuSize'와 비교하여, 변환 단위 분할 정보가 0인 경우의 변환 단위 크기인 'RootTuSize'는 시스템상 채택 가능한 최대 변환 단위 크기를 나타낼 수 있다. 즉, 관계식 (1)에 따르면, 'RootTuSize/(2^MaxTransformSizeIndex)'는, 변환 단위 분할 정보가 0인 경우의 변환 단위 크기인 'RootTuSize'를 최대 변환 단위 분할 정보에 상응하는 횟수만큼 분할한 변환 단위 크기이며, 'MinTransformSize'는 최소 변환 단위 크기이므로, 이들 중 작은 값이 현재 현재 부호화 단위에서 가능한 최소 변환 단위 크기 'CurrMinTuSize'일 수 있다.Compared to the minimum transform unit size 'CurrMinTuSize' possible in the current coding unit, 'RootTuSize', which is a transform unit size when the transform unit split information is 0, may indicate a maximum transform unit size that can be adopted in the system. That is, according to relation (1), 'RootTuSize / (2 ^ MaxTransformSizeIndex)' is a transformation obtained by dividing 'RootTuSize', which is the size of the transformation unit when the transformation unit division information is 0, by the number of times corresponding to the maximum transformation unit division information. Since the unit size is 'MinTransformSize' is the minimum transform unit size, a smaller value among them may be the minimum transform unit size 'CurrMinTuSize' possible in the current coding unit.
일 실시예에 따른 최대 변환 단위 크기 RootTuSize는 예측 모드에 따라 달라질 수도 있다. According to an embodiment, the maximum transform unit size RootTuSize may vary depending on a prediction mode.
예를 들어, 현재 예측 모드가 인터 모드라면 RootTuSize는 아래 관계식 (2)에 따라 결정될 수 있다. 관계식 (2)에서 'MaxTransformSize'는 최대 변환 단위 크기, 'PUSize'는 현재 예측 단위 크기를 나타낸다.For example, if the current prediction mode is the inter mode, RootTuSize may be determined according to the following relation (2). In relation (2), 'MaxTransformSize' represents the maximum transform unit size and 'PUSize' represents the current prediction unit size.
RootTuSize = min(MaxTransformSize, PUSize) ......... (2)RootTuSize = min (MaxTransformSize, PUSize) ......... (2)
즉 현재 예측 모드가 인터 모드라면, 변환 단위 분할 정보가 0인 경우의 변환 단위 크기인 'RootTuSize'는 최대 변환 단위 크기 및 현재 예측 단위 크기 중 작은 값으로 설정될 수 있다.That is, when the current prediction mode is the inter mode, 'RootTuSize', which is a transform unit size when the transform unit split information is 0, may be set to a smaller value among the maximum transform unit size and the current prediction unit size.
현재 파티션 단위의 예측 모드가 예측 모드가 인트라 모드라면 모드라면 'RootTuSize'는 아래 관계식 (3)에 따라 결정될 수 있다. 'PartitionSize'는 현재 파티션 단위의 크기를 나타낸다. If the prediction mode of the current partition unit is a mode when the prediction mode is an intra mode, 'RootTuSize' may be determined according to Equation (3) below. 'PartitionSize' represents the size of the current partition unit.
RootTuSize = min(MaxTransformSize, PartitionSize) ...........(3) RootTuSize = min (MaxTransformSize, PartitionSize) ........... (3)
즉 현재 예측 모드가 인트라 모드라면, 변환 단위 분할 정보가 0인 경우의 변환 단위 크기인 'RootTuSize'는 최대 변환 단위 크기 및 현재 파티션 단위 크기 중 작은 값으로 설정될 수 있다.That is, if the current prediction mode is the intra mode, the conversion unit size 'RootTuSize' when the conversion unit split information is 0 may be set to a smaller value among the maximum conversion unit size and the current partition unit size.
다만, 파티션 단위의 예측 모드에 따라 변동하는 일 실시예에 따른 현재 최대 변환 단위 크기 'RootTuSize'는 일 실시예일 뿐이며, 현재 최대 변환 단위 크기를 결정하는 요인이 이에 한정되는 것은 아님을 유의하여야 한다. However, it should be noted that the current maximum conversion unit size 'RootTuSize' according to an embodiment that changes according to the prediction mode of the partition unit is only an embodiment, and a factor determining the current maximum conversion unit size is not limited thereto.
도 10 내지 도 20를 참조하여 전술된 예측 단위 또는 파티션들은, 도 4 의 파티션들의 트리 구조(50) 중 파티션 레벨 0의 제 1 파티션 모드 0, 1, 2, 3 과 파티션 레벨 1의 제 1 파티션 모드 1, 2의 파티션들만으로 제한적으로 이용된 실시예를 개시한다. 시스템 상황 및 설정에 따라, 파티션 레벨 및 제 1 파티션 모드의 상한이 선택적으로 제한될 수 있다. 다만 도 10 내지 도 20에서 개시된 파티션 레벨 및 제 1 파티션 모드는, 일 실시예일 뿐이므로 본 발명의 아이디어가 이에 한정되는 것은 아님을 유의하여야 한다.The prediction unit or partitions described above with reference to FIGS. 10 to 20 may include the
도 21 은 일 실시예에 따른 트리 구조에 따른 부호화 단위에 기초하여 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오 부호화 방법의 흐름도를 도시한다.21 is a flowchart of a video encoding method using a variable partition for prediction encoding, based on a coding unit having a tree structure, according to an embodiment.
단계 1210에서, 비디오의 현재 픽처가 최대 부호화 단위들로 구획할 수 있다. 단계 1220에서, 현재 픽처의 최대 부호화 단위마다 심도별 부호화 단위로 영상 데이터를 부호화한다. 부호화 단위 마다 제 1 파티션 모드 및 파티션 레벨에 기초한 트리 구조의 파티션을 이용한 예측 부호화가 수행되어, 예측 부호화 효율이 가장 높은 파티션 또는 예측 단위가 결정될 수 있다. 예측 오차를 포함하여 부호화 효율이 가장 높은 심도를 선택하여 부호화 심도로 결정하고, 부호화 심도로 결정된 심도의 부호화 단위들로 구성된 트리 구조에 따른 부호화 단위들이 결정될 수 있다. In
단계 1230에서, 최대 부호화 단위마다, 트리 구조에 따른 부호화 단위들, 예측 단위들 또는 파티션들에 기초하여 부호화된 레지듀얼 데이터와 움직임 벡터가 부호화될 수 있다. 예측 단위를 결정하기 위한 제 1 파티션 정보, 파티션 레벨 등을 포함하는 파티션 정보가 부호화 심도, 예측 모드 및 부호화 모드에 관한 정보와 함께 부호화되어, 부호화 정보로서 출력될 수 있다.In
도 22 는 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초하여 예측 부호화를 위한 가변적인 파티션을 이용하는 비디오 복호화 방법의 흐름도를 도시한다.22 is a flowchart of a video decoding method using a variable partition for predictive encoding based on coding units having a tree structure, according to an embodiment of the present invention.
단계 1310에서, 부호화된 비디오에 대한 비트스트림이 수신되고 파싱된다. 단계 1320에서, 파싱된 비트스트림으로부터 최대 부호화 단위별로 트리 구조에 따른 부호화 단위들에 따라 부호화 단위마다 부호화 심도 및 부호화 모드에 관한 정보가 추출된다. 부호화 심도 및 부호화 모드에 관한 정보 중, 일 실시예에 따른 파티션 정보가 추출될 수 있다. 파티션 정보는 제 1 파티션 모드 및 파티션 레벨을 포함할 수 있으며, 제 1 파티션 모드에 따라 제 2 파티션 모드를 더 포함할 수도 있다. 예측 단위별로 부호화된 레지듀얼 데이터와 움직임 벡터가 추출될 수도 있다.In step 1310, the bitstream for the encoded video is received and parsed. In
단계 1330에서, 최대 부호화 단위마다, 부호화 심도 및 부호화 모드에 관한 정보에 기초하여 트리 구조에 따른 부호화 단위를 결정하고, 파티션 정보에 기초하여 예측 단위 및 파티션을 결정하고, 예측 단위 및 파티션에 대한 예측 복호화가 수행될 수 있다. 파티션 정보 중 제 1 파티션 정보 및 파티션 레벨에 기초하여, 부호화 단위가 분할된 예측 단위 및 파티션의 형태, 분할 방향성 및 크기가 결정될 수 있다. 예측 단위 및 파티션마다, 예측 모드 정보 및 움직임 벡터를 이용하여 레지듀얼 데이터가 복호화됨으로써, 픽처가 복원될 수 있다. In
일 실시예에 따른 트리 구조에 따른 부호화 단위에 기초하여 가변적인 파티션을 이용하는 비디오 부호화 장치(100)는, 트기 구조에 따른 부호화 단위의 가변적인 크기에 기초하여, 트리 구조에 따른 다양한 크기, 다양한 형태 및 다양한 예측 모드의 예측 단위들(파티션)을 이용하여 예측 부호화를 수행하고, 결과를 비교하여 부호화 효율이 가장 높은 예측 단위(파티션)를 결정할 수 있다. 따라서, 부호화 단위의 크기에 따라 변경될 수 있는 부호화 단위 내 영상 특성을 고려한 예측 부호화가 가능하다. According to an embodiment, the
또한, 예측 부호화에 이용된 예측 단위를 결정한 요소에 대한 정보가 부호화되어 전송됨으로써, 일 실시예에 따른 트리 구조에 따른 부호화 단위에 기초하여 데이터 단위의 병합을 이용하는 비디오 복호화 장치(200)는 정확한 복원도 보장될 수 있다. In addition, since the information about the element which determines the prediction unit used for the prediction encoding is encoded and transmitted, the
한편, 상술한 본 발명의 실시예들은 컴퓨터에서 실행될 수 있는 프로그램으로 작성가능하고, 컴퓨터로 읽을 수 있는 기록매체를 이용하여 상기 프로그램을 동작시키는 범용 디지털 컴퓨터에서 구현될 수 있다. 상기 컴퓨터로 읽을 수 있는 기록매체는 마그네틱 저장매체(예를 들면, 롬, 플로피 디스크, 하드디스크 등), 광학적 판독 매체(예를 들면, 시디롬, 디브이디 등)와 같은 저장매체를 포함한다.Meanwhile, the above-described embodiments of the present invention can be written as a program that can be executed in a computer, and can be implemented in a general-purpose digital computer that operates the program using a computer-readable recording medium. The computer-readable recording medium may include a storage medium such as a magnetic storage medium (eg, a ROM, a floppy disk, a hard disk, etc.) and an optical reading medium (eg, a CD-ROM, a DVD, etc.).
이제까지 본 발명에 대하여 그 바람직한 실시예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.So far I looked at the center of the preferred embodiment for the present invention. Those skilled in the art will appreciate that the present invention can be implemented in a modified form without departing from the essential features of the present invention. Therefore, the disclosed embodiments should be considered in descriptive sense only and not for purposes of limitation. The scope of the present invention is shown in the claims rather than the foregoing description, and all differences within the scope will be construed as being included in the present invention.
Claims (5)
상기 최대부호화단위의 크기 정보에 기초하여 비디오에 포함되는 픽쳐를 복수개의 최대부호화단위로 분할하는 단계;
상기 분할 정보에 기초하여 상기 복수개의 최대부호화단위 중 현재 최대 부호화 단위를 하나 이상의 부호화단위로 재귀적으로 분할하는 단계;
파티션 정보에 기초하여 상기 적어도 하나의 부호화단위 중 현재 부호화 단위에서 적어도 하나의 예측 단위를 결정하는 단계; 및
상기 적어도 하나의 예측 단위에 대한 예측을 수행하는 단계를 포함하고,
상기 파티션 정보는 상기 부호화 단위의 크기에 기초하여 대칭적 파티션 타입 및 비대칭적 파티션 타입 중 하나를 나타내며,
상기 비대칭적 파티션 타입은 상기 부호화 단위의 크기가 소정 크기 이상인 경우에 상기 부호화 단위의 높이 및 너비 중 적어도 하나를 비대칭적 비율로 세분화하여 분할한 비대칭적 파티션을 포함하는 것을 특징으로 하는 비디오 복호화 방법.Receiving a bitstream including size information of a maximum coding unit and split information of a coding unit;
Dividing a picture included in the video into a plurality of maximum coding units based on the size information of the maximum coding unit;
Recursively dividing a current maximum coding unit among the plurality of maximum coding units into one or more coding units based on the split information;
Determining at least one prediction unit in a current coding unit among the at least one coding unit based on partition information; And
Performing prediction on the at least one prediction unit,
The partition information indicates one of a symmetric partition type and an asymmetric partition type based on the size of the coding unit.
And wherein the asymmetric partition type includes an asymmetric partition obtained by dividing at least one of a height and a width of the coding unit into an asymmetrical ratio when the size of the coding unit is greater than or equal to a predetermined size.
상기 최대부호화단위의 크기 정보에 기초하여 비디오에 포함되는 픽쳐를 복수개의 최대부호화단위로 분할하고, 상기 분할 정보에 기초하여 상기 복수개의 최대부호화단위 중 현재 최대 부호화 단위를 하나 이상의 부호화단위로 재귀적으로 분할하고, 파티션 정보에 기초하여 상기 적어도 하나의 부호화단위 중 현재 부호화 단위에서 적어도 하나의 예측 단위를 결정하고, 상기 적어도 하나의 예측 단위에 대한 예측을 수행하는 복호화부를 포함하고,
상기 파티션 정보는 상기 부호화 단위의 크기에 기초하여 대칭적 파티션 타입 및 비대칭적 파티션 타입 중 하나를 나타내며,
상기 비대칭적 파티션 타입은 상기 부호화 단위의 크기가 소정 크기 이상인 경우에 상기 부호화 단위의 높이 및 너비 중 적어도 하나를 비대칭적 비율로 세분화하여 분할한 비대칭적 파티션을 포함하는 것을 특징으로 하는 비디오 복호화 장치.A receiver configured to receive a bitstream including size information of a maximum coding unit and split information of a coding unit;
The picture included in the video is divided into a plurality of maximum coding units based on the size information of the maximum coding unit, and the current maximum coding unit among the plurality of maximum coding units is recursively converted into one or more coding units based on the split information. And a decoder configured to determine at least one prediction unit from a current coding unit among the at least one coding unit based on partition information, and to perform prediction on the at least one prediction unit.
The partition information indicates one of a symmetric partition type and an asymmetric partition type based on the size of the coding unit.
And wherein the asymmetric partition type includes an asymmetric partition obtained by dividing at least one of a height and a width of the coding unit into an asymmetric ratio when the size of the coding unit is greater than or equal to a predetermined size.
분할 정보에 기초하여 상기 복수개의 최대부호화단위 중 현재 최대 부호화 단위를 하나 이상의 부호화단위로 재귀적으로 분할하는 단계;
파티션 정보에 기초하여 상기 적어도 하나의 부호화단위 중 현재 부호화 단위에서 적어도 하나의 예측 단위를 결정하는 단계;
상기 적어도 하나의 예측 단위에 대한 예측을 수행하는 단계; 및
상기 최대부호화단위의 크기 정보, 부호화 단위의 분할 정보 및 파티션 정보를 포함하는 비트스트림을 생성하는 단계를 포함하며,
상기 파티션 정보는 상기 부호화 단위의 크기에 기초하여 대칭적 파티션 타입 및 비대칭적 파티션 타입 중 하나를 나타내며,
상기 비대칭적 파티션 타입은 상기 부호화 단위의 크기가 소정 크기 이상인 경우에 상기 부호화 단위의 높이 및 너비 중 적어도 하나를 비대칭적 비율로 세분화하여 분할한 비대칭적 파티션을 포함하는 것을 특징으로 하는 비디오 부호화 방법.Dividing a picture included in the video into a plurality of maximum coding units based on the size information of the maximum coding unit;
Recursively dividing a current maximum coding unit among the plurality of maximum coding units into one or more coding units based on split information;
Determining at least one prediction unit in a current coding unit among the at least one coding unit based on partition information;
Performing prediction on the at least one prediction unit; And
Generating a bitstream including size information of the largest coding unit, split information of a coding unit, and partition information;
The partition information indicates one of a symmetric partition type and an asymmetric partition type based on the size of the coding unit.
The asymmetric partition type includes an asymmetric partition obtained by dividing at least one of a height and a width of the coding unit into an asymmetric ratio when the size of the coding unit is greater than or equal to a predetermined size.
상기 적어도 하나의 예측 단위에 대한 예측을 수행하고, 상기 최대부호화단위의 크기 정보, 부호화 단위의 분할 정보 및 파티션 정보를 포함하는 비트스트림을 생성하는 부호화부를 포함하며,
상기 파티션 정보는 상기 부호화 단위의 크기에 기초하여 대칭적 파티션 타입 및 비대칭적 파티션 타입 중 하나를 나타내며,
상기 비대칭적 파티션 타입은 상기 부호화 단위의 크기가 소정 크기 이상인 경우에 상기 부호화 단위의 높이 및 너비 중 적어도 하나를 비대칭적 비율로 세분화하여 분할한 비대칭적 파티션을 포함하는 것을 특징으로 하는 비디오 부호화 장치.The picture included in the video is divided into a plurality of maximum coding units based on the size information of the maximum coding unit, and the current maximum coding unit among the plurality of maximum coding units is recursively divided into one or more coding units based on the split information. A splitter configured to determine at least one prediction unit from a current coding unit among the at least one coding unit based on partition information; And
An encoder which performs prediction on the at least one prediction unit and generates a bitstream including size information of the largest coding unit, split information of a coding unit, and partition information,
The partition information indicates one of a symmetric partition type and an asymmetric partition type based on the size of the coding unit.
And wherein the asymmetric partition type includes an asymmetric partition obtained by dividing at least one of a height and a width of the coding unit into an asymmetrical ratio when the size of the coding unit is greater than or equal to a predetermined size.
상기 최대부호화단위의 크기 정보에 기초하여 비디오에 포함되는 픽쳐는 복수개의 최대부호화단위로 분할되며, 상기 분할 정보에 기초하여 상기 복수개의 최대부호화단위 중 현재 최대 부호화 단위는 하나 이상의 부호화단위로 재귀적으로 분할되며, 상기 파티션 정보에 기초하여 상기 적어도 하나의 부호화단위 중 현재 부호화 단위에서 적어도 하나의 예측 단위가 결정되며, 상기 적어도 하나의 예측 단위에 대한 예측이 수행되며, 상기 파티션 정보는 상기 부호화 단위의 크기에 기초하여 대칭적 파티션 타입 및 비대칭적 파티션 타입 중 하나를 나타내며, 상기 비대칭적 파티션 타입은 상기 부호화 단위의 크기가 소정 크기 이상인 경우에 상기 부호화 단위의 높이 및 너비 중 적어도 하나를 비대칭적 비율로 세분화하여 분할한 비대칭적 파티션을 포함하는 것을 특징으로 하는 기록매체.A computer-readable recording medium including a bitstream, wherein the bitstream includes size information of a maximum coding unit, partition information of a coding unit, and partition information,
The picture included in the video is divided into a plurality of maximum coding units based on the size information of the maximum coding unit, and the current maximum coding unit among the plurality of maximum coding units is recursively into one or more coding units based on the split information. Divided into, and at least one prediction unit is determined from a current coding unit among the at least one coding unit, prediction is performed on the at least one prediction unit, and the partition information is determined by the coding unit. Represents one of a symmetric partition type and an asymmetric partition type based on the size of the asymmetric partition type. Partitioned asymmetric partitions Recording medium, characterized in that including.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US29531210P | 2010-01-15 | 2010-01-15 | |
US61/295,312 | 2010-01-15 |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020110004019A Division KR101853811B1 (en) | 2010-01-15 | 2011-01-14 | Method and apparatus for video encoding based on prediction using variable partition, and method and apparatus for video decoding based on prediction using variable partition |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020190119089A Division KR102125565B1 (en) | 2010-01-15 | 2019-09-26 | Method and apparatus for video encoding based on prediction using variable partition, and method and apparatus for video decoding based on prediction using variable partition |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20180058213A KR20180058213A (en) | 2018-05-31 |
KR102028127B1 true KR102028127B1 (en) | 2019-10-02 |
Family
ID=58191897
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020180048021A KR102028127B1 (en) | 2010-01-15 | 2018-04-25 | Method and apparatus for video encoding based on prediction using variable partition, and method and apparatus for video decoding based on prediction using variable partition |
KR1020190119089A KR102125565B1 (en) | 2010-01-15 | 2019-09-26 | Method and apparatus for video encoding based on prediction using variable partition, and method and apparatus for video decoding based on prediction using variable partition |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020190119089A KR102125565B1 (en) | 2010-01-15 | 2019-09-26 | Method and apparatus for video encoding based on prediction using variable partition, and method and apparatus for video decoding based on prediction using variable partition |
Country Status (2)
Country | Link |
---|---|
KR (2) | KR102028127B1 (en) |
CN (1) | CN106454380B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
MX2021016156A (en) | 2019-06-19 | 2022-02-22 | Lg Electronics Inc | Image encoding and decoding method and device for limiting partition condition of chroma block, and method for transmitting bitstream. |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040081238A1 (en) * | 2002-10-25 | 2004-04-29 | Manindra Parhy | Asymmetric block shape modes for motion estimation |
WO2010002214A2 (en) * | 2008-07-02 | 2010-01-07 | 삼성전자 주식회사 | Image encoding method and device, and decoding method and device therefor |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
HUP0301368A3 (en) * | 2003-05-20 | 2005-09-28 | Amt Advanced Multimedia Techno | Method and equipment for compressing motion picture data |
KR100654436B1 (en) * | 2004-07-07 | 2006-12-06 | 삼성전자주식회사 | Method for video encoding and decoding, and video encoder and decoder |
KR100995226B1 (en) * | 2005-07-22 | 2010-11-17 | 미쓰비시덴키 가부시키가이샤 | Image encoding device, image decoding device, image encoding method, image decoding method, computer readable recording medium having image encoding program recorded therein, and computer readable recording medium having image decoding program recorded therein |
US20080123947A1 (en) * | 2005-07-22 | 2008-05-29 | Mitsubishi Electric Corporation | Image encoding device, image decoding device, image encoding method, image decoding method, image encoding program, image decoding program, computer readable recording medium having image encoding program recorded therein |
KR101455578B1 (en) * | 2005-09-26 | 2014-10-29 | 미쓰비시덴키 가부시키가이샤 | Dynamic image encoding device and dynamic image decoding device |
-
2011
- 2011-01-14 CN CN201610657596.1A patent/CN106454380B/en active Active
-
2018
- 2018-04-25 KR KR1020180048021A patent/KR102028127B1/en active IP Right Grant
-
2019
- 2019-09-26 KR KR1020190119089A patent/KR102125565B1/en active IP Right Grant
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040081238A1 (en) * | 2002-10-25 | 2004-04-29 | Manindra Parhy | Asymmetric block shape modes for motion estimation |
WO2010002214A2 (en) * | 2008-07-02 | 2010-01-07 | 삼성전자 주식회사 | Image encoding method and device, and decoding method and device therefor |
Also Published As
Publication number | Publication date |
---|---|
CN106454380A (en) | 2017-02-22 |
KR20190112704A (en) | 2019-10-07 |
KR20180058213A (en) | 2018-05-31 |
KR102125565B1 (en) | 2020-06-22 |
CN106454380B (en) | 2019-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102072733B1 (en) | Method and apparatus for video encoding based on coding units according tree structure, method and apparatus for video decoding based on coding units according tree structure | |
KR102041886B1 (en) | Method and apparatus for video encoding with inter prediction using collocated picture, method and apparatus for video decoding with inter prediction using collocated picture | |
KR101853811B1 (en) | Method and apparatus for video encoding based on prediction using variable partition, and method and apparatus for video decoding based on prediction using variable partition | |
KR102071583B1 (en) | Method and apparatus for encoding video with encoding hierarchical-structured symbol, method and apparatus for decoding video with decoding hierarchical-structured symbol | |
KR102052128B1 (en) | Method and appratus for encoding video using selective scan mode, method and appratus for decoding video using selective scan mode | |
KR101547497B1 (en) | Method and apparatus for video encoding with intra prediction by unification of availability check, method and apparatus for video decoding with intra prediction by unification of availability check | |
KR102317682B1 (en) | Video encoding method and device involving intra prediction, and video decoding method and device | |
KR20110112167A (en) | Video encoding method and device therefor, and decoding method and device therefor with in-loop filtering based on coding unit according to tree structure | |
KR20110112178A (en) | Video encoding method and apparatus using transform index, and video decoding method and apparatus | |
KR20120005932A (en) | Video encoding method and apparatus therefor using block merging, video decoding method and apparatus therefor using block merging | |
JP2015144472A (en) | Method for decoding video and apparatus for decoding video | |
KR20130002286A (en) | Method and apparatus for video encoding with intra prediction, method and apparatus for video decoding with intra prediction | |
KR20120080548A (en) | Method and apparatus for prediction using bi- and uni-directional prediction, method and apparatus for video encoding/decoding with prediction and compensation using bi- and uni-directional prediction | |
KR102028127B1 (en) | Method and apparatus for video encoding based on prediction using variable partition, and method and apparatus for video decoding based on prediction using variable partition |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A107 | Divisional application of patent | ||
A201 | Request for examination | ||
PA0107 | Divisional application |
Comment text: Divisional Application of Patent Patent event date: 20180425 Patent event code: PA01071R01D Filing date: 20110114 Application number text: 1020110004019 |
|
PA0201 | Request for examination | ||
PG1501 | Laying open of application | ||
E902 | Notification of reason for refusal | ||
PE0902 | Notice of grounds for rejection |
Comment text: Notification of reason for refusal Patent event date: 20180716 Patent event code: PE09021S01D |
|
E90F | Notification of reason for final refusal | ||
PE0902 | Notice of grounds for rejection |
Comment text: Final Notice of Reason for Refusal Patent event date: 20190128 Patent event code: PE09021S02D |
|
E701 | Decision to grant or registration of patent right | ||
PE0701 | Decision of registration |
Patent event code: PE07011S01D Comment text: Decision to Grant Registration Patent event date: 20190626 |
|
GRNT | Written decision to grant | ||
PR0701 | Registration of establishment |
Comment text: Registration of Establishment Patent event date: 20190926 Patent event code: PR07011E01D |
|
PR1002 | Payment of registration fee |
Payment date: 20190927 End annual number: 3 Start annual number: 1 |
|
PG1601 | Publication of registration | ||
PR1001 | Payment of annual fee |
Payment date: 20220830 Start annual number: 4 End annual number: 4 |
|
PR1001 | Payment of annual fee |
Payment date: 20230830 Start annual number: 5 End annual number: 5 |
|
PR1001 | Payment of annual fee |
Payment date: 20240829 Start annual number: 6 End annual number: 6 |