KR20160058741A - Method and apparatus for video encoding considering hierarchical coded block pattern, and method and apparatus for video decoding considering hierarchical coded block pattern - Google Patents

Method and apparatus for video encoding considering hierarchical coded block pattern, and method and apparatus for video decoding considering hierarchical coded block pattern Download PDF

Info

Publication number
KR20160058741A
KR20160058741A KR1020160058785A KR20160058785A KR20160058741A KR 20160058741 A KR20160058741 A KR 20160058741A KR 1020160058785 A KR1020160058785 A KR 1020160058785A KR 20160058785 A KR20160058785 A KR 20160058785A KR 20160058741 A KR20160058741 A KR 20160058741A
Authority
KR
South Korea
Prior art keywords
unit
encoding
depth
coding
conversion
Prior art date
Application number
KR1020160058785A
Other languages
Korean (ko)
Other versions
KR101676794B1 (en
Inventor
천민수
정해경
민정혜
김일구
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020160058785A priority Critical patent/KR101676794B1/en
Publication of KR20160058741A publication Critical patent/KR20160058741A/en
Application granted granted Critical
Publication of KR101676794B1 publication Critical patent/KR101676794B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/30Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability
    • H04N19/34Scalability techniques involving progressive bit-plane based encoding of the enhancement layer, e.g. fine granular scalability [FGS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/463Embedding additional information in the video signal during the compression process by compressing encoding parameters before transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • H04N19/615Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding using motion compensated temporal filtering [MCTF]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/80Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
    • H04N19/82Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation involving filtering within a prediction loop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/96Tree coding, e.g. quad-tree coding

Abstract

According to the present invention, disclosed is a method for decoding a video, comprising: a step of extracting encoded image data of the current picture allocated for a maximum encoding unit as the largest encoding unit, information on encoding mode and intensity for each maximum encoding unit, and encoding unit pattern information indicating whether the texture information for each maximum encoding unit has been encoded or not by receiving/parsing a bit stream of a encoded video; and a step of decoding the encoded image data for each maximum encoding unit based on the information of the encoding mode and intensity for each maximum encoding unit and the encoding unit pattern information. According to the present invention, an encoding unit is controlled by considering the characteristics an image, thereby enhancing image compression efficiency.

Description

계층적인 부호화 블록 패턴 정보를 이용한 비디오 부호화 방법 및 장치, 비디오 복호화 방법 및 장치{Method and apparatus for video encoding considering hierarchical coded block pattern, and method and apparatus for video decoding considering hierarchical coded block pattern}BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to a video coding method and apparatus using hierarchical coding block pattern information, a video decoding method and apparatus using the hierarchical coding block pattern information,

본 발명은 비디오의 부호화 및 복호화에 관한 것이다.The present invention relates to encoding and decoding of video.

고해상도 또는 고화질 비디오 컨텐트를 재생, 저장할 수 있는 하드웨어의 개발 및 보급에 따라, 고해상도 또는 고화질 비디오 컨텐트를 효과적으로 부호화하거나 복호화하는 비디오 코덱의 필요성이 증대하고 있다. 기존의 비디오 코덱에 따르면, 비디오는 소정 크기의 매크로블록에 기반하여 제한된 부호화 방식에 따라 부호화되고 있다. 또한, 기존의 비디오 코덱은 매크로블록별로 부호화 블록 패턴(Coded Block Pattern)을 부호화하여 이용한다.Background of the Invention [0002] As the development and dissemination of hardware capable of playing back and storing high-resolution or high-definition video content increases the need for video codecs to effectively encode or decode high-definition 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. In addition, the existing video codec encodes a coded block pattern for each macroblock.

본 발명은 계층적 심도를 고려하여 부호화 단위의 텍스처 정보가 부호화되었는지 여부를 나타내는 정보를 이용한 비디오의 부호화 및 복호화에 관한 것이다.The present invention relates to encoding and decoding of video using information indicating whether or not texture information of a coding unit is coded in consideration of hierarchical depth.

본 발명의 일 실시예에 따른 비디오 복호화 방법은, 부호화된 비디오에 대한 비트스트림을 수신하여 파싱(parsing)하는 단계; 최대 크기의 부호화 단위인 최대 부호화 단위에 할당되는 현재 픽처의 부호화된 영상 데이터, 상기 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보 및 상기 최대 부호화 단위의 텍스처 정보가 부호화되었는지 여부를 나타내는 부호화 단위 패턴 정보를 추출하는 단계; 및 상기 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보 및 상기 부호화 단위 패턴 정보에 기초하여, 상기 최대 부호화 단위별 부호화된 영상 데이터를 복호화하는 단계를 포함한다.According to an embodiment of the present invention, there is provided a video decoding method including: receiving and parsing a bitstream of encoded video; An encoding unit pattern for indicating whether or not texture information of a current picture allocated to a maximum encoding unit which is a maximum size encoding unit, information on a encoding depth and encoding mode of the maximum encoding unit, and texture information of the maximum encoding unit are coded Extracting information; And decoding the encoded image data for each maximum encoding unit based on the information on the encoding depth and the encoding mode for each maximum encoding unit and the encoding unit pattern information.

일 실시예에 따른 부호화 단위는 최대 크기 및 심도로 특징지어질 수 있다. An encoding unit according to an embodiment may be characterized by a maximum size and a depth.

심도란 부호화 단위가 계층적으로 분할되는 단계를 나타내며, 심도가 깊어질수록 심도별 부호화 단위는 최대 부호화 단위로부터 최소 부호화 단위까지 분할될 수 있다. 본 명세서에서는, 높은 심도 또는 상위 심도로부터 낮은 심도 또는 하위 심도의 방향으로 '심도가 깊어진다'고 정의한다. 심도가 깊어짐에 따라 최대 부호화 단위의 분할 횟수가 증가하고, 최대 부호화 단위의 분할 가능한 총 횟수가 '최대 심도'로 대응된다. 부호화 단위의 최대 크기 및 최대 심도가 미리 설정되어 있을 수 있다. Depth indicates a stage in which coding units are hierarchically divided. As the depth increases, the depth coding units can be divided from the maximum coding unit to the minimum coding unit. In the present specification, it is defined that the depth is deepened from a high depth or a high depth toward a low depth or a bottom depth. As the depth increases, the number of division of the maximum encoding unit increases and the total number of divisions of the maximum encoding unit corresponds to 'maximum depth'. The maximum size and the maximum depth of the encoding unit may be preset.

일 실시예의 상기 최대 부호화 단위의 부호화 단위 패턴 정보는, 상기 최대 부호화 단위에 포함되는 적어도 하나의 부호화 심도별 부호화 단위마다 설정되어 있는 부호화 심도 부호화 단위 패턴 정보; 및 변환 심도별로, 상위 심도의 계층적 부호화 단위 패턴 정보의 부호화 여부를 나타내는 계층적 부호화 단위 패턴 정보 중 적어도 하나를 포함할 수 있다.The coding unit pattern information of the maximum coding unit of the embodiment includes coding depth coding unit pattern information set for each coding unit of at least one coding depth included in the maximum coding unit; And hierarchical encoding unit pattern information indicating whether to encode hierarchical encoding unit pattern information of a higher depth, according to the conversion depth.

일 실시예의 상기 복호화 단계는, 부호화 심도별 부호화 단위의 부호화 단위 패턴 정보에 기초하여, 상기 부호화 심도별 부호화 단위의 부호화된 텍스처 정보가 존재한다면, 상기 부호화 심도별 부호화 단위에 포함된 적어도 하나의 변환 단위의 텍스처 정보가 부호화되었는지 여부를 나타내는 변환 단위 패턴 정보를 추출하는 단계를 포함할 수 있다.In the decoding step of the embodiment, if the encoded texture information of the encoding depth-based encoding unit exists, based on the encoding unit pattern information of the encoding depth-based encoding unit, the decoding step may include at least one conversion And extracting conversion unit pattern information indicating whether or not the texture information of the unit is coded.

일 실시예의 상기 복호화 단계는, 상기 변환 단위 패턴 정보에 기초하여 상기 변환 단위의 부호화된 텍스처 정보가 존재한다면, 상기 부호화된 텍스처 정보를 복호화하는 단계를 더 포함할 수 있다.The decoding step may further include decoding the encoded texture information if the encoded texture information of the conversion unit exists based on the conversion unit pattern information.

일 실시예의 상기 복호화 단계는, 상기 변환 단위 패턴 정보에 기초하여, 상기 변환 단위의 부호화된 텍스처 정보가 존재하지 않는다면, 상기 변환 단위의 이웃 정보를 이용하여 상기 변환 단위를 복호화하는 단계를 더 포함할 수 있다.The decoding step of the embodiment may further include decoding the conversion unit using the neighbor information of the conversion unit if the encoded texture information of the conversion unit does not exist based on the conversion unit pattern information .

일 실시예의 상기 부호화 심도 부호화 단위 패턴 정보는, 영상 데이터의 컬러 성분에 따라 추출될 수 있다. 일 실시예의 상기 부호화 심도 부호화 단위가 네 개 이상의 변환 단위를 포함하는 경우, 상기 부호화 심도별 부호화 단위의 상기 루마 성분을 네 개의 하위 그룹으로 나누어, 상기 하위 그룹마다 소정 비트수의 부호화 심도 부호화 단위 패턴 정보가 더 추출될 수 있다.The coding depth decoding unit pattern information of one embodiment can be extracted according to the color component of the image data. If the encoding depth-encoding unit of the embodiment includes four or more conversion units, the luma component of the encoding depth-based encoding unit is divided into four sub-groups, and the encoding depth- More information can be extracted.

본 발명의 일 실시예에 따른 비디오 부호화 방법은, 현재 픽처를 최대 크기의 부호화 단위인 적어도 하나의 최대 부호화 단위로 분할하는 단계; 상기 최대 부호화 단위의 영역을 분할하는 횟수가 증가함에 따라 깊어지는 심도에 기초하여, 상기 심도마다 상기 최대 부호화 단위의 영역이 분할된 적어도 하나의 분할 영역을 부호화하여, 상기 적어도 하나의 분할 영역 별로 최종 부호화 결과가 출력될 심도를 결정하는 단계; 및 상기 최대 부호화 단위마다 상기 적어도 하나의 분할 영역 별 최종 부호화 결과인 영상 데이터, 심도 및 예측 모드에 관한 부호화 정보, 및 상기 최대 부호화 단위마다 텍스처 정보가 부호화되었는지 여부를 나타내는 부호화 단위 패턴 정보를 부호화하여 출력하는 단계를 포함한다.According to an aspect of the present invention, there is provided a video encoding method including: dividing a current picture into at least one maximum encoding unit that is a maximum-size encoding unit; Encoding the at least one divided area in which the area of the maximum encoding unit is divided for each depth, based on a depth that increases as the number of times of dividing the area of the maximum encoding unit increases, Determining a depth at which the result is to be output; And coding unit pattern information indicating whether or not texture information is coded for each of the maximum coding units, the coding information for the depth, the prediction mode, and the image data being the final coding result for each of the at least one divided region by the maximum coding unit And outputting.

일 실시예에 따라 상기 출력 단계는, 상기 최대 부호화 단위의 상기 텍스처 정보 중 변환 계수가 모두 0인지 여부에 따라 상기 부호화 단위 패턴 정보를 설정하여 부호화하는 단계를 포함할 수 있다.According to an exemplary embodiment of the present invention, the outputting step may include coding and setting the coding unit pattern information according to whether the transform coefficients of the texture information of the maximum coding unit are all zeroes.

일 실시예에 따라 상기 출력 단계는, 상기 최대 부호화 단위의 적어도 하나의 부호화 심도별로, 상기 부호화 심도의 부호화 단위의 변환 계수가 모두 0인지 여부에 따라 상기 부호화 심도 부호화 단위 패턴 정보를 설정하여 부호화하는 단계를 포함할 수 있다.According to an exemplary embodiment of the present invention, the encoding step sets and encodes the coded DCT unit pattern information according to whether or not all the transform coefficients of the coding unit of the coding depth are 0 for each of at least one coding depth of the maximum coding unit Step < / RTI >

일 실시예에 따라 상기 출력 단계는, 현재 심도의 상위 심도의 부호화 단위에 대한 계층적 부호화 단위 패턴 정보 및 텍스처 정보가 부호화되지 않는 경우, 상기 최상위 심도로부터 상기 현재 심도까지의 계층적 부호화 단위 패턴 정보를 설정하여 부호화하는 단계를 포함할 수 있다.According to an exemplary embodiment, the outputting step may include: when the hierarchical encoding unit pattern information and the texture information for the encoding unit of the current depth are not encoded, the encoding unit pattern information for the current depth, And encoding the bitstream.

일 실시예에 따라 상기 비디오 부호화 방법은, 상기 현재 픽처, 슬라이스, 최대 부호화 단위 중 적어도 하나에 대해 상기 부호화 심도 부호화 단위 패턴 정보 및 상기 심도별 계층적 부호화 단위 패턴 정보 중 적어도 어느 하나를 이용할지 결정하는 단계를 더 포함할 수 있다.According to one embodiment, the video coding method determines whether to use at least one of the coding depth coding unit pattern information and the depth coding unit pattern information for at least one of the current picture, the slice, and the maximum coding unit The method comprising the steps of:

일 실시예에 따라 상기 출력 단계는, 상기 최대 부호화 단위의 부호화 단위 패턴 정보에 기초하여, 상기 부호화 심도별 부호화 단위에 포함된 적어도 하나의 변환 단위마다, 상기 변환 단위의 텍스처 정보의 부호화 여부를 나타내는 변환 단위 패턴 정보를 설정할지 여부를 결정하는 단계를 포함할 수 있다.According to an exemplary embodiment, the outputting step may include a step of, based on the encoding unit pattern information of the maximum encoding unit, encoding the texture information of the conversion unit for each of at least one conversion unit included in the encoding depth- And determining whether to set the conversion unit pattern information.

본 발명의 일 실시예에 따른 비디오 복호화 장치는, 부호화된 비디오에 대한 비트스트림을 수신하여 파싱(parsing)하는 수신부; 상기 비트스트림으로부터 최대 크기의 부호화 단위인 최대 부호화 단위에 할당되는 현재 픽처의 영상 데이터, 상기 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보, 및 상기 최대 부호화 단위의 텍스처 정보가 부호화되었는지 여부를 나타내는 부호화 단위 패턴 정보를 추출하는 추출부; 및 상기 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보 및 부호화 단위 패턴 정보에 기초하여, 상기 최대 부호화 단위별 부호화된 영상 데이터를 복호화하는 영상 데이터 복호화부를 포함한다.According to an aspect of the present invention, there is provided a video decoding apparatus including: a receiving unit for receiving and parsing a bitstream of encoded video; A coding depth of the current picture, a coding depth per coding unit, a coding mode, and texture information of the maximum coding unit, which are allocated to a maximum coding unit which is the maximum coding unit from the bitstream, An extraction unit for extracting coding unit pattern information; And an image data decoding unit decoding the image data encoded by the maximum encoding unit based on information on the encoding depth and encoding mode for each of the maximum encoding units and the encoding unit pattern information.

본 발명의 일 실시예에 따른 비디오 부호화 장치는, 현재 픽처를 최대 크기의 부호화 단위인 적어도 하나의 최대 부호화 단위로 분할하는 최대 부호화 단위 분할부; 상기 최대 부호화 단위의 영역을 분할하는 횟수가 증가함에 따라 깊어지는 심도에 기초하여, 상기 심도마다 상기 최대 부호화 단위의 영역이 분할된 적어도 하나의 분할 영역을 부호화하여, 상기 적어도 하나의 분할 영역 별로 최종 부호화 결과가 출력될 심도를 결정하는 부호화 심도 결정부; 및 상기 최대 부호화 단위마다 상기 적어도 하나의 분할 영역 별 최종 부호화 결과인 영상 데이터, 심도 및 예측 모드에 관한 부호화 정보, 및 텍스처 정보가 부호화되었는지 여부를 나타내는 부호화 단위 패턴 정보를 부호화하여 출력하는 출력부를 포함한다.A video encoding apparatus according to an embodiment of the present invention includes: a maximum encoding unit division unit that divides a current picture into at least one maximum encoding unit, which is a maximum-size encoding unit; Encoding the at least one divided area in which the area of the maximum encoding unit is divided for each depth, based on a depth that increases as the number of times of dividing the area of the maximum encoding unit increases, An encoding depth determination unit for determining a depth at which a result is output; And an output unit for encoding and outputting coding unit pattern information indicating whether or not the image data, the depth information, the prediction mode, and the texture information are coded, for each of the maximum coding units for each of the maximum coding units do.

본 발명은, 일 실시예에 따른 비디오 복호화 방법을 구현하기 위한 프로그램이 기록된 컴퓨터로 판독 가능한 기록 매체를 포함한다.The present invention includes a computer-readable recording medium on which a program for implementing a video decoding method according to an embodiment is recorded.

본 발명은, 일 실시예에 따른 비디오 부호화 방법을 구현하기 위한 프로그램이 기록된 컴퓨터로 판독 가능한 기록 매체를 포함한다.The present invention includes a computer-readable recording medium on which a program for implementing a video encoding method according to an embodiment is recorded.

도 1 은 본 발명의 일 실시예에 따른 비디오 부호화 장치의 블록도를 도시한다.
도 2 는 본 발명의 일 실시예에 따른 비디오 복호화 장치의 블록도를 도시한다.
도 3 은 본 발명의 일 실시예에 따른 부호화 단위의 개념을 도시한다.
도 4 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 부호화부의 블록도를 도시한다.
도 5 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 복호화부의 블록도를 도시한다.
도 6 는 본 발명의 일 실시예에 따른 심도별 부호화 단위 및 예측 단위를 도시한다.
도 7 은 본 발명의 일 실시예에 따른, 부호화 단위 및 변환 단위의 관계를 도시한다.
도 8 은 본 발명의 일 실시예에 따라, 심도별 부호화 정보들을 도시한다.
도 9 는 본 발명의 일 실시예에 따른 심도별 부호화 단위를 도시한다.
도 10a, 10b 및 10c는 본 발명의 일 실시예에 따른, 부호화 단위, 예측 단위 및 주파수 변환 단위의 관계를 도시한다.
도 11 은 본 발명의 일 실시예에 따른 부호화 단위별 부호화 정보를 도시한다.
도 12 는 본 발명의 일 실시예에 따른 비디오 부호화 방법의 흐름도를 도시한다.
도 13 은 본 발명의 일 실시예에 따른 비디오 복호화 방법의 흐름도를 도시한다.
도 14 는 본 발명의 일 실시예에 따라 부호화 단위 패턴 정보를 이용하는 비디오 부호화 장치를 도시한다.
도 15 는 본 발명의 일 실시예에 따라 부호화 단위 패턴 정보를 이용하는 비디오 복호화 장치를 도시한다.
도 16a, 16b 및 16c 은 본 발명의 일 실시예에 따라 부호화 심도의 부호화 단위가 하나의 변환 단위를 포함하는 경우, 부호화 심도 부호화 단위 패턴 정보의 실시예들을 도시한다.
도 17a, 17b 및 17c 은 본 발명의 일 실시예에 따라 부호화 심도의 부호화 단위가 하나의 네 개의 변환 단위를 포함하는 경우, 부호화 심도 부호화 단위 패턴 정보의 실시예들을 도시한다.
도 18a, 18b 및 18c 은 본 발명의 일 실시예에 따라 부호화 심도의 부호화 단위가 다수의 변환 단위를 포함하는 경우, 부호화 심도 부호화 단위 패턴 정보의 실시예들을 도시한다.
도 19 은 본 발명의 일 실시예에 따른 계층적 부호화 단위 패턴 정보를 도시한다.
도 20 는 본 발명의 일 실시예에 따라 부호화 단위 패턴 정보를 이용하는 비디오 부호화 방법을 도시한다.
도 21 는 본 발명의 일 실시예에 따라 부호화 단위 패턴 정보를 이용하는 비디오 복호화 방법을 도시한다.
1 shows a block diagram of a video encoding apparatus according to an embodiment of the present invention.
2 shows a block diagram of a video decoding apparatus according to an embodiment of the present invention.
FIG. 3 illustrates a concept of an encoding unit according to an embodiment of the present invention.
4 is a block diagram of an image encoding unit based on an encoding unit according to an embodiment of the present invention.
5 is a block diagram of an image decoding unit based on an encoding unit according to an embodiment of the present invention.
FIG. 6 illustrates a depth-based coding unit and a prediction unit according to an embodiment of the present invention.
FIG. 7 shows a relationship between an encoding unit and a conversion unit according to an embodiment of the present invention.
FIG. 8 illustrates depth-specific encoding information, in accordance with an embodiment of the present invention.
FIG. 9 shows a depth encoding unit according to an embodiment of the present invention.
FIGS. 10A, 10B, and 10C illustrate the relationship between an encoding unit, a prediction unit, and a frequency conversion unit according to an embodiment of the present invention.
FIG. 11 shows encoding information for each encoding unit according to an embodiment of the present invention.
12 shows a flowchart of a video coding method according to an embodiment of the present invention.
13 shows a flowchart of a video decoding method according to an embodiment of the present invention.
FIG. 14 illustrates a video coding apparatus using coding unit pattern information according to an embodiment of the present invention.
FIG. 15 illustrates a video decoding apparatus using coding unit pattern information according to an embodiment of the present invention.
FIGS. 16A, 16B, and 16C illustrate embodiments of coding depth coding unit pattern information when the coding unit of the coding depth includes one conversion unit according to an embodiment of the present invention.
FIGS. 17A, 17B, and 17C illustrate embodiments of encoded depth-encoded unit pattern information when the encoding unit of the encoding depth includes one of four conversion units according to an embodiment of the present invention.
FIGS. 18A, 18B, and 18C illustrate embodiments of encoded depth-encoded unit pattern information when the encoding unit of the encoding depth includes a plurality of conversion units according to an embodiment of the present invention.
19 shows hierarchical coding unit pattern information according to an embodiment of the present invention.
20 illustrates a video coding method using coding unit pattern information according to an embodiment of the present invention.
FIG. 21 illustrates a video decoding method using coding unit pattern information according to an embodiment of the present invention.

이하 도 1 내지 도 26을 참조하여 본 발명의 일 실시예에 따른 비디오 부호화 장치 및 비디오 복호화 장치, 비디오 부호화 방법 및 비디오 복호화 방법이 상술된다. 도 1 내지 도 14을 참조하여 본 발명의 일 실시예에 따라 공간적으로 계층적인 데이터 단위에 기반한 비디오의 부호화 및 비디오의 복호화가 후술되고, 도 14 내지 도 26을 참조하여 본 발명의 일 실시예에 따른 부호화 단위 패턴 정보를 이용하는 비디오의 부호화 및 비디오의 복호화가 후술된다.Hereinafter, a video encoding apparatus and a video decoding apparatus, a video encoding method, and a video decoding method according to an embodiment of the present invention will be described with reference to FIGS. 1 to 26. Referring to FIGS. 1 to 14, encoding and decoding of video based on spatially hierarchical data units according to an embodiment of the present invention will be described below, and with reference to FIGS. 14 to 26, The coding of the video using the coding unit pattern information and the decoding of the video will be described below.

이하 도 1 내지 도 13을 참조하여 본 발명의 일 실시예에 따른 비디오 부호화 장치 및 비디오 복호화 장치, 비디오 부호화 방법 및 비디오 복호화 방법이 상술된다.Hereinafter, a video encoding apparatus, a video encoding apparatus, a video encoding method, and a video decoding method according to an embodiment of the present invention will be described with reference to FIGS. 1 to 13.

도 1 은 본 발명의 일 실시예에 따른 비디오 부호화 장치의 블록도를 도시한다.1 shows a block diagram of a video encoding apparatus according to an embodiment of the present invention.

일 실시예에 따른 비디오 부호화 장치(100)는 최대 부호화 단위 분할부(110), 부호화 심도 결정부(120) 및 출력부(130)를 포함한다.The video coding apparatus 100 according to an embodiment includes a maximum coding unit division unit 110, a coding depth determination unit 120, and an output unit 130.

최대 부호화 단위 분할부(110)는 영상의 현재 픽처를 위한 최대 크기의 부호화 단위인 최대 부호화 단위에 기반하여 현재 픽처를 구획할 수 있다. 현재 픽처가 최대 부호화 단위보다 크다면, 현재 픽처의 영상 데이터는 적어도 하나의 최대 부호화 단위로 분할될 수 있다. 영상 데이터는 적어도 하나의 최대 부호화 단위별로 부호화 심도 결정부(120)로 출력될 수 있다.The maximum coding unit division unit 110 may divide a current picture based on a maximum coding unit which is a coding unit of a maximum size for a current picture of an image. If the current picture is larger than the maximum encoding unit, the image data of the current picture may be divided into at least one maximum encoding unit. The image data may be output to the coding depth determination unit 120 for each of at least one maximum coding unit.

일 실시예에 따른 부호화 단위는 최대 크기 및 심도로 특징지어질 수 있다. 심도란 부호화 단위가 계층적으로 분할되는 단계를 나타내며, 심도가 깊어질수록 심도별 부호화 단위는 최대 부호화 단위로부터 최소 부호화 단위까지 분할될 수 있다. 최대 부호화 단위의 심도가 최상위 심도이며 최소 부호화 단위가 최하위 부호화 단위로 정의될 수 있다. 최대 부호화 단위는 심도가 깊어짐에 따라 심도별 부호화 단위의 크기는 감소하므로, 상위 심도의 부호화 단위는 복수 개의 하위 심도의 부호화 단위를 포함할 수 있다.An encoding unit according to an embodiment may be characterized by a maximum size and a depth. Depth indicates a stage in which coding units are hierarchically divided. As the depth increases, the depth coding units can be divided from the maximum coding unit to the minimum coding unit. The depth of the maximum encoding unit is the highest depth and the minimum encoding unit can be defined as the least significant encoding unit. As the depth of the maximum encoding unit increases, the size of the depth-dependent encoding unit decreases, so that the encoding unit of the higher depth may include a plurality of lower-depth encoding units.

전술한 바와 같이 부호화 단위의 최대 크기에 따라, 현재 픽처의 영상 데이터를 최대 부호화 단위로 분할하며, 각각의 최대 부호화 단위는 심도별로 분할되는 부호화 단위들을 포함할 수 있다. 일 실시예에 따른 최대 부호화 단위는 심도별로 분할되므로, 최대 부호화 단위에 포함된 공간 영역(spatial domain)의 영상 데이터가 심도에 따라 계층적으로 분류될 수 있다. As described above, according to the maximum size of an encoding unit, the image data of the current picture is divided into a maximum encoding unit, and each maximum encoding unit may include encoding units divided by depth. Since the maximum encoding unit according to an embodiment is divided by depth, image data of a spatial domain included in the maximum encoding unit can be hierarchically classified according to depth.

최대 부호화 단위의 높이 및 너비를 계층적으로 분할할 수 있는 총 횟수를 제한하는 최대 심도 및 부호화 단위의 최대 크기가 미리 설정되어 있을 수 있다.The maximum depth for limiting the total number of times the height and width of the maximum encoding unit can be hierarchically divided and the maximum size of the encoding unit may be preset.

부호화 심도 결정부(120)는, 심도마다 최대 부호화 단위의 영역이 분할된 적어도 하나의 분할 영역을 부호화하여, 적어도 하나의 분할 영역 별로 최종 부호화 결과가 출력될 심도를 결정한다. 즉 부호화 심도 결정부(120)는, 현재 픽처의 최대 부호화 단위마다 심도별 부호화 단위로 영상 데이터를 부호화하여 가장 작은 부호화 오차가 발생하는 심도를 선택하여 부호화 심도로 결정한다. 결정된 부호화 심도 및 최대 부호화 단위별 영상 데이터는 출력부(130)로 출력된다.The coding depth determiner 120 encodes at least one divided area in which the area of the maximum coding unit is divided for each depth, and determines the depth at which the final coding result is output for each of at least one of the divided areas. That is, the coding depth determination unit 120 selects the depth at which the smallest coding error occurs, and determines the coding depth as the coding depth by coding the image data in units of depth coding for each maximum coding unit of the current picture. The determined coding depth and the image data of each coding unit are output to the output unit 130.

최대 부호화 단위 내의 영상 데이터는 최대 심도 이하의 적어도 하나의 심도에 따라 심도별 부호화 단위에 기반하여 부호화되고, 각각의 심도별 부호화 단위에 기반한 부호화 결과가 비교된다. 심도별 부호화 단위의 부호화 오차의 비교 결과 부호화 오차가 가장 작은 심도가 선택될 수 있다. 각각의 최대화 부호화 단위마다 적어도 하나의 부호화 심도가 결정될 수 있다. The image data in the maximum encoding unit is encoded based on the depth encoding unit according to at least one depth below the maximum depth, and the encoding results based on the respective depth encoding units are compared. As a result of the comparison of the encoding error of the depth-dependent encoding unit, the depth with the smallest encoding error can be selected. At least one coding depth may be determined for each maximum coding unit.

최대 부호화 단위의 크기는 심도가 깊어짐에 따라 부호화 단위가 계층적으로 분할되어 분할되며 부호화 단위의 개수는 증가한다. 또한, 하나의 최대 부호화 단위에 포함되는 동일한 심도의 부호화 단위들이라 하더라도, 각각의 데이터에 대한 부호화 오차를 측정하고 하위 심도로의 분할 여부가 결정된다. 따라서, 하나의 최대 부호화 단위에 포함되는 데이터라 하더라도 위치에 따라 심도별 부호화 오차가 다르므로 위치에 따라 부호화 심도가 달리 결정될 수 있다. 따라서, 하나의 최대 부호화 단위에 대해 부호화 심도가 하나 이상 설정될 수 있으며, 최대 부호화 단위의 데이터는 하나 이상의 부호화 심도의 부호화 단위에 따라 구획될 수 있다.As the depth of the maximum encoding unit increases, the encoding unit is hierarchically divided and divided, and the number of encoding units increases. In addition, even if encoding units of the same depth included in one maximum encoding unit, the encoding error of each data is measured and it is determined whether or not the encoding unit is divided into lower depths. Therefore, even if the data included in one maximum coding unit has a different coding error according to the position, the coding depth can be determined depending on 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 divided according to one or more coding depth encoding units.

최대 부호화 단위의 예측 부호화 및 주파수 변환이 수행될 수 있다. 예측 부호화 및 주파수 변환도 마찬가지로, 최대 부호화 단위마다, 최대 심도 이하의 심도마다 심도별 부호화 단위를 기반으로 수행된다. The predictive encoding and frequency conversion of the maximum encoding unit can be performed. Likewise, predictive coding and frequency conversion are performed on the basis of the depth coding unit for each maximum coding unit and for each depth below the maximum depth.

최대 부호화 단위가 심도별로 분할될 때마다 심도별 부호화 단위의 개수가 증가하므로, 심도가 깊어짐에 따라 생성되는 모든 심도별 부호화 단위에 대해 예측 부호화 및 주파수 변환을 포함한 부호화가 수행되어야 한다. 이하 설명의 편의를 위해 적어도 하나의 최대 부호화 단위 중 현재 심도의 부호화 단위을 기반으로 예측 부호화 및 주파수 변환을 설명하겠다.Since the number of coding units per depth is increased every time the maximum coding unit is divided by the depth, the coding including the predictive coding and the frequency conversion should be performed for every depth coding unit as the depth increases. For convenience of explanation, predictive coding and frequency conversion will be described based on a coding unit of a current depth among at least one maximum coding unit.

일 실시예에 따른 비디오 부호화 장치(100)는, 영상 데이터의 부호화를 위한 데이터 단위의 크기 또는 형태를 다양하게 선택할 수 있다. 영상 데이터의 부호화를 위해서는 예측 부호화, 주파수 변환, 엔트로피 부호화 등의 단계를 거치는데, 모든 단계에 걸쳐서 동일한 데이터 단위가 사용될 수도 있으며, 단계별로 데이터 단위가 변경될 수도 있다.The video encoding apparatus 100 according to an exemplary embodiment may select various sizes or types of data units for encoding image data. To encode the image data, a step such as predictive encoding, frequency conversion, and entropy encoding is performed. The same data unit may be used for all steps, and the data unit may be changed step by step.

예를 들어 비디오 부호화 장치(100)는, 영상 데이터의 부호화를 위한 부호화 단위 뿐만 아니라, 부호화 단위의 영상 데이터의 예측 부호화를 수행하기 위해, 부호화 단위와 다른 데이터 단위를 선택할 수 있다. For example, the video coding apparatus 100 can select not only a coding unit for coding image data but also a data unit different from the coding unit in order to perform predictive coding of the image data of the coding unit.

최대 부호화 단위의 예측 부호화를 위해서는, 최대 부호화 단위의 심도별 부호화 단위의 부분적 데이터 단위를 기반으로 예측 부호화가 수행될 수 있다. 부호화 단위의 부분적 데이터 단위는, 부호화 단위 및 심도별 부호화 단위의 높이 및 너비 중 적어도 하나가 분할된 데이터 단위를 포함할 수 있다. For predictive coding of the maximum coding unit, predictive coding may be performed based on the partial data unit of the coding unit for each depth of the maximum coding unit. The partial data unit of the encoding unit may include a data unit in which at least one of the height and the width of the encoding unit and the depth encoding unit is divided.

예를 들어, 부호화 단위의 크기가 2Nx2N(단, N은 양의 정수)인 경우, 부분적 데이터 단위의 크기는 2Nx2N, 2NxN, Nx2N, NxN 등일 수 있다. 부호화 단위의 높이 또는 너비 중 적어도 하나를 반분하는 형태의 데이터 단위 이외에도 다양하게 분할한 형태의 데이터 단위를 기반으로 예측 부호화가 수행될 수도 있다. 이하, 예측 부호화의 기반이 되는 데이터 단위는 '예측 단위'라고 지칭될 수 있다.For example, when the size of the encoding unit is 2Nx2N (where N is a positive integer), the size of the partial data unit may be 2Nx2N, 2NxN, Nx2N, NxN, and the like. Prediction coding may be performed based on data units of various types, in addition to data units of a type in which at least one of the height and the width of an encoding unit is divided by half. Hereinafter, a data unit on which prediction encoding is based may be referred to as a 'prediction unit'.

부호화 단위의 예측 모드는, 인트라 모드, 인터 모드 및 스킵 모드 중 적어도 하나일 수 있다. 예를 들어 인트라 모드 및 인터 모드는, 2Nx2N, 2NxN, Nx2N, NxN 크기의 예측 단위에 대해서 수행될 수 있다. 또한, 스킵 모드는 2Nx2N 크기의 예측 단위에 대해서만 수행될 수 있다. 부호화 단위 이내의 하나의 예측 단위마다 독립적으로 부호화가 수행되어 부호화 오차가 가장 작은 예측 모드가 선택될 수 있다.The prediction mode of the encoding 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 can be performed for prediction units of 2Nx2N, 2NxN, Nx2N, and NxN sizes. In addition, the skip mode can be performed only for a prediction unit of 2Nx2N size. Encoding is performed independently for each prediction unit within an encoding unit, and a prediction mode having the smallest encoding error can be selected.

또한, 일 실시예에 따른 비디오 부호화 장치(100)는, 영상 데이터의 부호화를 위한 부호화 단위 뿐만 아니라, 부호화 단위와 다른 데이터 단위를 기반으로 부호화 단위의 영상 데이터의 주파수 변환을 수행할 수 있다.In addition, the video encoding apparatus 100 according to an exemplary embodiment may perform frequency conversion of image data of an encoding unit based on not only an encoding unit for encoding image data but also a data unit different from the encoding unit.

부호화 단위의 주파수 변환을 위해서는, 부호화 단위보다 작거나 같은 크기의 데이터 단위를 기반으로 주파수 변환이 수행될 수 있다. 예를 들어, 주파수 변환을 위한 데이터 단위는, 인트라 모드를 위한 데이터 단위 및 인터 모드를 위한 데이터 단위를 포함할 수 있다. 이하, 주파수 변환의 기반이 되는 데이터 단위는 '변환 단위'라고 지칭될 수 있다.For frequency conversion of a coding unit, frequency conversion may be performed based on a data unit having a size smaller than or equal to the coding unit. For example, a data unit for frequency conversion may include a data unit for intra mode and a data unit for inter mode. Hereinafter, the data unit on which the frequency conversion is based may be referred to as a 'conversion unit'.

부호화 심도별 부호화 정보는, 부호화 심도 뿐만 아니라 예측 관련 정보 및 주파수 변환 관련 정보가 필요하다. 따라서, 부호화 심도 결정부(120)는 최소 부호화 오차를 발생시킨 부호화 심도 뿐만 아니라, 부호화 심도의 부호화 단위를 예측 단위로 분할한 파티션 타입, 예측 단위별 예측 모드, 주파수 변환을 위한 변환 단위의 크기 등을 결정할 수 있다.The coding information according to the coding depth needs not only the coding depth but also prediction related information and frequency conversion related information. Therefore, the coding depth determiner 120 not only determines the coding depth at which the minimum coding error is generated, but also the partition type in which the coding unit of the coding depth is divided into prediction units, the prediction unit-specific prediction mode, Can be determined.

부호화 심도 결정부(120)는 심도별 부호화 단위의 부호화 오차를 라그랑지 곱(Lagrangian Multiplier) 기반의 율-왜곡 최적화 기법(Rate-Distortion Optimization)을 이용하여 측정할 수 있다.The coding depth determination unit 120 may measure the coding error of the depth-dependent coding unit using a Lagrangian Multiplier-based rate-distortion optimization technique.

출력부(130)는, 부호화 심도 결정부(120)에서 결정된 적어도 하나의 부호화 심도에 기초하여 부호화된 최대 부호화 단위의 영상 데이터및 심도별 부호화 모드에 관한 정보를 비트스트림 형태로 출력한다. The output unit 130 outputs, in the form of a bit stream, video data of the maximum encoding unit encoded based on at least one encoding depth determined by the encoding depth determination unit 120 and information on the depth encoding mode.

부호화된 영상 데이터는 영상의 레지듀얼 데이터의 부호화 결과일 수 있다.The encoded image data may be a result of encoding residual data of the image.

심도별 부호화 모드에 관한 정보는, 부호화 심도 정보, 부호화 심도의 부호화 단위의 예측 단위의 파티션 타입 정보, 예측 단위별 예측 모드 정보, 변환 단위의 크기 정보 등을 포함할 수 있다.The information on the depth-dependent coding mode may include coding depth information, partition type information of a prediction unit of a coding unit of coding depth, prediction mode information per prediction unit, size information of a conversion unit, and the like.

부호화 심도 정보는, 현재 심도로 부호화하지 않고 하위 심도의 부호화 단위로 부호화할지 여부를 나타내는 심도별 분할 정보를 이용하여 정의될 수 있다. 현재 부호화 단위의 현재 심도가 부호화 심도라면, 현재 부호화 단위는 현재 심도의 부호화 단위로 부호화되므로 현재 심도의 분할 정보는 더 이상 하위 심도로 분할되지 않도록 정의될 수 있다. 반대로, 현재 부호화 단위의 현재 심도가 부호화 심도가 아니라면 하위 심도의 부호화 단위를 이용한 부호화를 시도해보아야 하므로, 현재 심도의 분할 정보는 하위 심도의 부호화 단위로 분할되도록 정의될 수 있다.The coding depth information can be defined using depth division information indicating whether or not coding is performed at the lower depth coding unit without coding at the current depth. If the current depth of the current encoding unit is the encoding depth, the current encoding unit is encoded in the current depth encoding unit, so that the division information of the current depth can be defined so as not to be further divided into lower depths. On the other hand, if the current depth of the current encoding unit is not the encoding depth, the encoding using the lower depth encoding unit should be tried. Therefore, the division information of the current depth may be defined to be divided into the lower depth encoding units.

현재 심도가 부호화 심도가 아니라면, 하위 심도의 부호화 단위로 분할된 부호화 단위에 대해 부호화가 수행된다. 현재 심도의 부호화 단위 내에 하위 심도의 부호화 단위가 하나 이상 존재하므로, 각각의 하위 심도의 부호화 단위마다 반복적으로 부호화가 수행되어, 동일한 심도의 부호화 단위마다 재귀적(recursive) 부호화가 수행될 수 있다.If the current depth is not the encoding depth, encoding is performed on the encoding unit divided into lower-depth encoding units. Since there are one or more lower-level coding units in the current-depth coding unit, the coding is repeatedly performed for each lower-level coding unit so that recursive coding can be performed for each coding unit of the same depth.

하나의 최대 부호화 단위 안에 적어도 하나의 부호화 심도가 결정되며 부호화 심도마다 적어도 하나의 부호화 모드에 관한 정보가 결정되어야 하므로, 하나의 최대 부호화 단위에 대해서는 적어도 하나의 부호화 모드에 관한 정보가 결정될 수 있다. 또한, 최대 부호화 단위의 데이터는 심도에 따라 계층적으로 구획되어 위치 별로 부호화 심도가 다를 수 있으므로, 데이터에 대해 부호화 심도 및 부호화 모드에 관한 정보가 설정될 수 있다.At least one coding depth is determined in one maximum coding unit and at least one coding mode information is determined for each coding depth so that information on at least one coding mode can be determined for one maximum coding unit. Since the data of the maximum encoding unit is hierarchically divided according to the depth and the depth of encoding may be different for each position, information on the encoding depth and the encoding mode may be set for the data.

따라서, 일 실시예에 따른 출력부(130)는, 최대 부호화 단위에 포함되어 있는 최소 부호화 단위마다 해당 부호화 정보를 설정할 수 있다. 즉, 부호화 심도의 부호화 단위는 동일한 부호화 정보를 보유하고 있는 최소 부호화 단위를 하나 이상 포함하고 있다. 이를 이용하여, 인근 최소 부호화 단위들이 동일한 심도별 부호화 정보를 갖고 있다면, 동일한 최대 부호화 단위에 포함되는 최소 부호화 단위일 수 있다.Accordingly, the output unit 130 according to the embodiment can set the corresponding encoding information for each minimum encoding unit included in the maximum encoding unit. That is, the coding unit of the coding depth includes at least one minimum coding unit that holds the same coding information. By using this, if the neighboring minimum encoding units have the same depth encoding information, it can be the minimum encoding unit included in the same maximum encoding unit.

예를 들어 출력부(130)를 통해 출력되는 부호화 정보는, 심도별 부호화 단위별 부호화 정보와 예측 단위별 부호화 정보로 분류될 수 있다. 심도별 부호화 단위별 부호하 정보는, 예측 모드 정보, 파티션 크기 정보를 포함할 수 있다. 예측 단위별로 전송되는 부호화 정보는 인터 모드의 추정 방향에 관한 정보, 인터 모드의 참조 영상 인덱스에 관한 정보, 움직임 벡터에 관한 정보, 인트라 모드의 크로마 성분에 관한 정보, 인트라 모드의 보간 방식에 관한 정보 등을 포함할 수 있다. 또한, 픽처, 슬라이스 또는 GOP별로 정의되는 부호화 단위의 최대 크기에 관한 정보 및 최대 심도에 관한 정보는 비트스트림의 헤더에 삽입될 수 있다.For example, the encoding information output through the output unit 130 may be classified into encoding information per depth unit and encoding information per prediction unit. The under-coding-by-depth coding unit information may include prediction mode information and partition size information. The encoding information to be transmitted for each prediction unit includes information about the estimation direction of the inter mode, information about the reference picture index of the inter mode, information on the motion vector, information on the chroma component of the intra mode, information on the interpolation mode of the intra mode And the like. Information on the maximum size of a coding unit defined for each picture, slice or GOP, and information on the maximum depth can be inserted into the header of the bitstream.

비디오 부호화 장치(100)의 가장 간단한 형태의 실시예에 따르면, 심도별 부호화 단위는 한 계층 상위 심도의 부호화 단위의 높이 및 너비를 반분한 크기의 부호화 단위이다. 즉, 현재 심도의 부호화 단위의 크기가 2Nx2N이라면, 하위 심도의 부호화 단위의 크기는 NxN 이다. 또한, 2Nx2N 크기의 현재 부호화 단위는 NxN 크기의 하위 심도 부호화 단위를 최대 4개 포함할 수 있다.According to the simplest embodiment of the video coding apparatus 100, the coding unit for depth is a coding unit which is half the height and width of the coding unit of one layer higher depth. That is, if the size of the current depth encoding unit is 2Nx2N, the size of the lower depth encoding unit is NxN. In addition, the current encoding unit of 2Nx2N size can include a maximum of 4 sub-depth encoding units of NxN size.

따라서, 일 실시예에 따른 비디오 복호화 장치(100)는 현재 픽처의 특성을 고려하여 결정된 최대 부호화 단위의 크기 및 최대 심도를 기반으로, 각각의 최대 부호화 단위마다 최적의 형태 및 크기의 부호화 단위를 결정할 수 있다. 또한, 각각의 최대 부호화 단위마다 다양한 예측 모드, 주파수 변환 방식 등으로 부호화할 수 있으므로, 다양한 영상 크기의 부호화 단위의 영상 특성을 고려하여 최적의 부호화 모드가 결정될 수 있다.Therefore, the video decoding apparatus 100 according to an embodiment determines an encoding unit of an optimal shape and size for each maximum encoding unit based on the size and the maximum depth of the maximum encoding unit determined in consideration of the characteristics of the current picture . In addition, since each encoding unit can be encoded by various prediction modes, frequency conversion methods, and the like, an optimal encoding mode can be determined in consideration of image characteristics of encoding units of various image sizes.

따라서, 영상의 해상도가 매우 높거나 데이터량이 매우 큰 영상을 기존 매크로블록 단위로 부호화한다면, 픽처당 매크로블록의 수가 과도하게 많아진다. 이에 따라, 매크로블록마다 생성되는 압축 정보도 많아지므로 압축 정보의 전송 부담이 커지고 데이터 압축 효율이 감소하는 경향이 있다. 따라서, 일 실시예에 따른 비디오 부호화 장치는, 영상의 크기를 고려하여 부호화 단위의 최대 크기를 증가시키면서, 영상 특성을 고려하여 부호화 단위를 조절할 수 있으므로, 영상 압축 효율이 증대될 수 있다.Therefore, if an image having a very high image resolution or a very large data amount is encoded in units of existing macroblocks, the number of macroblocks per picture becomes excessively large. This increases the amount of compression information generated for each macroblock, so that the burden of transmission of compressed information increases and the data compression efficiency tends to decrease. Therefore, the video encoding apparatus according to an embodiment can increase the maximum size of the encoding unit in consideration of the image size, and adjust the encoding unit in consideration of the image characteristic, so that the image compression efficiency can be increased.

도 2 는 본 발명의 일 실시예에 따른 비디오 복호화 장치의 블록도를 도시한다.2 shows a block diagram of a video decoding apparatus according to an embodiment of the present invention.

일 실시예에 따른 비디오 복호화 장치(200)는 수신부(210), 영상 데이터 및 부호화 정보 추출부(220) 및 영상 데이터 복호화부(230)를 포함한다. 일 실시예에 따른 비디오 복호화 장치(200)의 각종 프로세싱을 위한 부호화 단위, 심도, 예측 단위, 변환 단위, 각종 부호화 모드에 관한 정보 등 각종 용어의 정의는, 도 1 및 비디오 부호화 장치(100)을 참조하여 전술한 바와 동일하다. The video decoding apparatus 200 includes a receiving unit 210, an image data and encoding information extracting unit 220, and an image data decoding unit 230. The definition of various terms such as coding unit, depth, prediction unit, conversion unit, and information on various coding modes for various processing of the video decoding apparatus 200 according to an embodiment is the same as that of FIG. 1 and the video coding apparatus 100 Are the same as described above.

수신부(205)는 부호화된 비디오에 대한 비트스트림을 수신하여 파싱(parsing)한다. 영상 데이터 및 부호화 정보 추출부(220)는 파싱된 비트스트림으로부터 최대 부호화 단위별로 영상 데이터를 추출하여 영상 데이터 복호화부(230)로 출력한다. 영상 데이터 및 부호화 정보 추출부(220)는 현재 픽처에 대한 헤더로부터 현재 픽처의 부호화 단위의 최대 크기에 관한 정보를 추출할 수 있다. The receiving unit 205 receives and parses the bitstream of the encoded video. The image data and encoding information extracting unit 220 extracts image data for each maximum encoding unit from the parsed bit stream and outputs the extracted image data to the image data decoding unit 230. The image data and encoding information extracting unit 220 can extract information on the maximum size of the encoding unit of the current picture from the header of the current picture.

또한, 영상 데이터 및 부호화 정보 추출부(220)는 파싱된 비트스트림으로부터 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보를 추출한다. 추출된 부호화 심도 및 부호화 모드에 관한 정보는 영상 데이터 복호화부(230)로 출력된다. 즉, 비트열의 영상 데이터를 최대 부호화 단위로 분할하여, 영상 데이터 복호화부(230)가 최대 부호화 단위마다 영상 데이터를 복호화하도록 할 수 있다. Also, the image data and encoding information extracting unit 220 extracts information on the encoding depth and the encoding mode for each maximum encoding unit from the parsed bitstream. The information on the extracted coding depth and coding mode is output to the image data decoding unit 230. That is, the video data of the bit stream can be divided into the maximum encoding units, and the video data decoding unit 230 can decode the video data per maximum encoding unit.

최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보는, 하나 이상의 부호화 심도 정보에 대해 설정될 수 있으며, 부호화 심도별 부호화 모드에 관한 정보는, 부호화 단위별 예측 단위의 파티션 타입 정보, 예측 모드 정보 및 변환 단위의 크기 정보 등을 포함할 수 있다. 또한, 부호화 심도 정보로서, 심도별 분할 정보가 추출될 수도 있다.Information on the coding depth and the coding mode per coding unit can be set for one or more coding depth information, and the information on the coding mode for each coding depth includes information on partition type information, prediction mode information, Size information of the conversion unit, and the like. In addition, as the encoding depth information, depth-based segmentation information may be extracted.

영상 데이터 및 부호화 정보 추출부(220)가 추출한 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보는, 일 실시예에 따른 비디오 부호화 장치(100)와 같이 부호화단에서, 최대 부호화 단위별 심도별 부호화 단위마다 반복적으로 부호화를 수행하여 최소 부호화 오차를 발생시키는 것으로 결정된 부호화 심도 및 부호화 모드에 관한 정보이다. 따라서, 비디오 복호화 장치(200)는 최소 부호화 오차를 발생시키는 부호화 방식에 따라 데이터를 복호화하여 영상을 복원할 수 있다.The encoding depth and encoding mode information extracted by the image data and encoding information extracting unit 220 may be encoded in the encoding unit such as the video encoding apparatus 100 according to one embodiment, And information on the coding depth and coding mode determined to repeatedly perform coding for each unit to generate the minimum coding error. Therefore, the video decoding apparatus 200 can decode the data according to the coding scheme that generates the minimum coding error to recover the video.

영상 데이터 및 부호화 정보 추출부(220)는 최소 부호화 단위별로 부호화 심도 및 부호화 모드에 관한 정보를 추출할 수 있다. 최소 부호화 단위별로, 해당 최대 부호화 단위의 부호화 심도 및 부호화 모드에 관한 정보가 기록되어 있다면, 동일한 부호화 심도 및 부호화 모드에 관한 정보를 갖고 있는 최소 부호화 단위들은 동일한 최대 부호화 단위에 포함되는 데이터 단위로 유추될 수 있다. 즉, 동일한 정보의 최소 부호화 단위를 모아 복호화하면, 부호화 오차가 가장 작은 부호화 심도의 부호화 단위를 기반으로 한 복호화가 가능하다.The image data and encoding information extracting unit 220 can extract information on the encoding depth and the encoding mode for each minimum encoding unit. If information on the coding depth and the coding mode of the corresponding maximum coding unit is recorded for each minimum coding unit, the minimum coding units having the same coding depth and information on the coding mode are estimated as data units included in the same maximum coding unit . That is, if the minimum coding units of the same information are collected and decoded, it is possible to decode based on the coding units of the coding depth with the smallest coding error.

영상 데이터 복호화부(230)는 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보에 기초하여 각각의 최대 부호화 단위의 영상 데이터를 복호화하여 현재 픽처를 복원한다. 최대 부호화 단위별 부호화 심도 정보에 기초하여, 영상 데이터 복호화부(230)는 적어도 하나의 부호화 심도의 부호화 단위마다 영상 데이터를 복호화할 수 있다. 복호화 과정은 인트라 예측 및 움직임 보상을 포함하는 예측 과정, 및 주파수 역변환 과정을 포함할 수 있다.The image data decoding unit 230 decodes the image data of each maximum encoding unit based on the information on the encoding depth and the encoding mode for each maximum encoding unit to reconstruct the current picture. The image data decoding unit 230 can decode the image data for each coding unit of at least one coding depth based on the coding depth information for each coding unit. The decoding process may include a prediction process including intra prediction and motion compensation, and an inverse frequency conversion process.

영상 데이터 복호화부(230)는, 부호화 단위별 예측 부호화를 위해, 부호화 심도별 부호화 단위의 예측 단위의 파티션 타입 정보 및 예측 모드 정보에 기초하여, 부호화 단위마다 각각의 예측 단위 및 예측 모드로 인트라 예측 또는 움직임 보상을 수행할 수 있다.The image data decoding unit 230 decodes each of the prediction units and prediction modes for each coding unit on the basis of the partition type information and the prediction mode information of the prediction unit of the coding unit for each coding depth for each coding unit, Or motion compensation.

또한, 영상 데이터 복호화부(230)는, 최대 부호화 단위별 주파수 역변환을 위해, 부호화 심도별 부호화 단위의 변환 단위의 크기 정보에 기초하여, 부호화 단위마다 각각의 변환 단위로 주파수 역변환을 수행할 수 있다.In addition, the image data decoding unit 230 may perform frequency inverse transform for each encoding unit on the basis of the size information of the conversion unit of each encoding depth-based encoding unit for frequency inverse conversion for each maximum encoding unit .

영상 데이터 복호화부(230)는 심도별 분할 정보를 이용하는 현재 최대 부호화 단위의 부호화 심도를 결정할 수 있다. 만약, 분할 정보가 현재 심도로 복호화할 것을 나타내고 있다면 현재 심도가 부호화 심도이다. 따라서, 영상 데이터 복호화부(230)는 현재 최대 부호화 단위의 영상 데이터에 대해 현재 심도의 부호화 단위를 예측 단위의 파티션 타입, 예측 모드 및 변환 단위 크기 정보를 이용하여 복호화할 수 있다. The image data decoding unit 230 can determine the coding depth of the current maximum encoding unit using the division information by depth. If the partition information indicates that the current depth is to be decoded, the current depth is the depth of the encoding. Therefore, the image data decoding unit 230 can decode the current depth encoding unit for the image data of the current maximum encoding unit using the partition type, the prediction mode, and the conversion unit size information of the prediction unit.

즉, 최소 부호화 단위에 대해 설정되어 있는 부호화 정보를 관찰하여, 동일한 분할 정보를 포함한 부호화 정보를 보유하고 있는 최소 부호화 단위를 모아, 하나의 데이터 단위로 복호화할 수 있다. That is, it is possible to observe the encoding information set for the minimum encoding unit and to decode the minimum encoding units that hold the encoding information including the same division information, into one data unit.

일 실시예에 따른 비디오 복호화 장치(200)는, 부호화 과정에서 최대 부호화 단위마다 재귀적으로 부호화를 수행하여 최소 부호화 오차를 발생시킨 부호화 단위에 대한 정보를 획득하여, 현재 픽처에 대한 복호화에 이용할 수 있다. 즉, 최대 부호화 단위마다 최적 부호화 단위로 영상 데이터의 복호화가 가능해진다.The video decoding apparatus 200 according to an exemplary embodiment recursively performs encoding for each maximum encoding unit in the encoding process to obtain information on an encoding unit that has generated the minimum encoding error and can use the encoded information for decoding the current picture have. That is, it is possible to decode video data in the optimal encoding unit for each maximum encoding unit.

따라서, 높은 해상도의 영상 또는 데이터량이 과도하게 많은 영상이라도 부호화단으로부터 전송된 최적 부호화 모드에 관한 정보를 이용하여, 영상의 특성에 적응적으로 결정된 부호화 단위의 크기 및 부호화 모드에 따라 효율적으로 영상 데이터를 복호화하여 복원할 수 있다.Accordingly, even if an image with a high resolution or an excessively large amount of data is used, the information on the optimal encoding mode transmitted from the encoding end is used, and the image data is efficiently encoded according to the encoding unit size and encoding mode, Can be decoded and restored.

도 3 은 계층적 부호화 단위의 개념을 도시한다.FIG. 3 shows the concept of a hierarchical coding unit.

부호화 단위의 예는, 너비x높이가 64x64인 부호화 단위부터, 32x32, 16x16, 8x8, 및 4x4를 포함할 수 있다. 정사각형 형태의 부호화 단위 이외에도, 너비x높이가 64x32, 32x64, 32x16, 16x32, 16x8, 8x16, 8x4, 4x8인 부호화 단위들이 존재할 수 있다.An example of an encoding unit may include 32x32, 16x16, 8x8, and 4x4 from an encoding unit with a width x height of 64x64. In addition to the square-shaped encoding units, there may be encoding units whose width x height is 64x32, 32x64, 32x16, 16x32, 16x8, 8x16, 8x4, 4x8.

비디오 데이터(310)에 대해서는, 해상도는 1920x1080, 부호화 단위의 최대 크기는 64, 최대 심도가 2로 설정되어 있다. 비디오 데이터(320)에 대해서는, 해상도는 1920x1080, 부호화 단위의 최대 크기는 64, 최대 심도가 4로 설정되어 있다. 비디오 데이터(330)에 대해서는, 해상도는 352x288, 부호화 단위의 최대 크기는 16, 최대 심도가 2로 설정되어 있다.With respect to the video data 310, the resolution is set to 1920 x 1080, the maximum size of the encoding unit is set to 64, and the maximum depth is set to 2. With respect to the video data 320, the resolution is set to 1920 x 1080, the maximum size of the encoding unit is set to 64, and the maximum depth is set to 4. With respect to the video data 330, the resolution is set to 352 x 288, the maximum size of the encoding unit is set to 16, and the maximum depth is set to 2.

해상도가 높거나 데이터량이 많은 경우 부호화 효율의 향상 뿐만 아니라 영상 특성을 정확히 반형하기 위해 부호화 사이즈의 최대 크기가 상대적으로 큰 것이 바람직하다. 따라서, 비디오 데이터(330)에 비해, 해상도가 높은 비디오 데이터(310, 320)는 부호화 사이즈의 최대 크기가 64로 선택될 수 있다.It is preferable that the maximum size of the coding size is relatively large in order to improve the coding efficiency as well as to accurately characterize the image characteristics when the resolution or the data amount is large. Therefore, the maximum size of the video data 310 and 320 having the higher resolution than the video data 330 can be selected to be 64. FIG.

최대 심도는 계층적 부호화 단위에서 총 계층수를 나타낸다. 따라서, 비디오 데이터(310)의 최대 심도는 2이므로, 비디오 데이터(310)의 부호화 단위(315)는 장축 크기가 64인 최대 부호화 단위로부터, 심도가 두 계층 깊어져서 장축 크기가 32, 16인 부호화 단위들까지 포함할 수 있다. 반면, 비디오 데이터(330)의 최대 심도는 2이므로, 비디오 데이터(330)의 부호화 단위(335)는 장축 크기가 16인 부호화 단위들로부터, 심도가 두 계층 깊어져서 장축 크기가 8, 4인 부호화 단위들까지 포함할 수 있다. The maximum depth indicates the total number of layers in the hierarchical encoding unit. Therefore, since the maximum depth of the video data 310 is 2, the encoding unit 315 of the video data 310 is encoded from a maximum encoding unit having a major axis size of 64, Units. On the other hand, since the maximum depth of the video data 330 is 2, the encoding unit 335 of the video data 330 has a depth of two layers from the encoding units having the major axis size of 16, Units.

비디오 데이터(320)의 최대 심도는 4이므로, 비디오 데이터(320)의 부호화 단위(325)는 장축 크기가 64인 최대 부호화 단위로부터, 심도가 네 계층 깊어져서 장축 크기가 32, 16, 8, 4인 부호화 단위들까지 포함할 수 있다. 심도가 깊어질수록 세부 정보의 표현능력이 향상될 수 있다.Since the maximum depth of the video data 320 is 4, the encoding unit 325 of the video data 320 has a depth of four layers from 32 to 16, 8, and 4 Encoding units. The deeper the depth, the better the ability to express detail.

도 4 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 부호화부의 블록도를 도시한다.4 is a block diagram of an image encoding unit based on an encoding unit according to an embodiment of the present invention.

일 실시예에 따른 영상 부호화부(400)는, 비디오 부호화 장치(100)의 부호화 심도 결정부(120)에서 영상 데이터를 부호화하는데 거치는 작업들을 포함한다. 즉, 인트라 예측부(410)는 현재 프레임(405) 중 인트라 모드의 부호화 단위에 대해 인트라 예측을 수행하고, 움직임 추정부(420) 및 움직임 보상부(425)는 인터 모드의 현재 프레임(405) 및 참조 프레임(495)를 이용하여 인터 추정 및 움직임 보상을 수행한다.The image encoding unit 400 according to an exemplary embodiment includes operations to encode image data in the encoding depth determination unit 120 of the video encoding apparatus 100. That is, the intraprediction unit 410 performs intraprediction on the intra-mode encoding unit of the current frame 405, and the motion estimation unit 420 and the motion compensation unit 425 perform intraprediction on the current frame 405 of the inter- And a reference frame 495. The inter-frame estimation and the motion compensation are performed using the reference frame and the reference frame.

인트라 예측부(410), 움직임 추정부(420) 및 움직임 보상부(425)로부터 출력된 데이터는 주파수 변환부(430) 및 양자화부(440)를 거쳐 양자화된 변환 계수로 출력된다. 양자화된 변환 계수는 역양자화부(460), 주파수 역변환부(470)을 통해 공간 영역의 데이터로 복원되고, 복원된 공간 영역의 데이터는 디블로킹부(480) 및 루프 필터링부(490)를 거쳐 후처리되어 참조 프레임(495)으로 출력된다. 양자화된 변환 계수는 엔트로피 부호화부(450)를 거쳐 비트스트림(455)으로 출력될 수 있다.The data output from the intraprediction unit 410, the motion estimation unit 420 and the motion compensation unit 425 is output as a quantized transform coefficient through the frequency transform unit 430 and the quantization unit 440. The quantized transform coefficients are reconstructed into spatial domain data through the inverse quantization unit 460 and the frequency inverse transform unit 470 and the data of the reconstructed spatial domain is passed through the deblocking unit 480 and the loop filtering unit 490 Processed and output to the reference frame 495. [ The quantized transform coefficient may be output to the bitstream 455 via the entropy encoding unit 450.

일 실시예에 따른 비디오 부호화 장치(100)에 적용되기 위해서는, 영상 부호화부(400)의 구성 요소들인 인트라 예측부(410), 움직임 추정부(420), 움직임 보상부(425), 주파수 변환부(430), 양자화부(440), 엔트로피 부호화부(450), 역양자화부(460), 주파수 역변환부(470), 디블로킹부(480) 및 루프 필터링부(490)가 모두, 최대 부호화 단위마다 최대 심도를 고려한 심도별 부호화 단위에 기반하여 작업을 수행하여야 한다. The motion estimation unit 420, the motion compensation unit 425, and the frequency transformation unit 420, which are components of the image encoding unit 400, are applied to the video encoding apparatus 100 according to an embodiment of the present invention. The quantization unit 440, the entropy encoding unit 450, the inverse quantization unit 460, the frequency inverse transform unit 470, the deblocking unit 480, and the loop filtering unit 490, The work should be performed based on the depth encoding unit considering the maximum depth.

특히, 인트라 예측부(410), 움직임 추정부(420) 및 움직임 보상부(425)는 부호화 단위의 최대 크기 및 심도를 고려하여 부호화 단위 내의 예측 단위 및 예측 모드를 결정하며, 주파수 변환부(430)는 부호화 단위의 최대 크기 및 심도를 고려하여 변환 단위의 크기를 고려하여야 한다.In particular, the intra prediction unit 410, the motion estimation unit 420, and the motion compensation unit 425 determine the prediction unit and the prediction mode in the coding unit in consideration of the maximum size and depth of the coding unit, and the frequency conversion unit 430 ) Should consider the size of the conversion unit considering the maximum size and depth of the encoding unit.

도 5 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 복호화부의 블록도를 도시한다.5 is a block diagram of an image decoding unit based on an encoding unit according to an embodiment of the present invention.

비트스트림(505)이 파싱부(510)를 거쳐 복호화 대상인 부호화된 영상 데이터 및 복호화를 위해 필요한 부호화에 관한 정보가 파싱된다. 부호화된 영상 데이터는 엔트로피 복호화부(520) 및 역양자화부(530)를 거쳐 역양자화된 데이터로 출력되고, 주파수 역변환부(540)를 거쳐 공간 영역의 영상 데이터가 복원된다. The bitstream 505 passes through the parsing unit 510 and the encoded image data to be decoded and the encoding-related information necessary for decoding are parsed. The encoded image data is output as inverse quantized data through the entropy decoding unit 520 and the inverse quantization unit 530, and the image data in the spatial domain is restored through the frequency inverse transform unit 540.

공간 영역의 영상 데이터에 대해서, 인트라 예측부(550)는 인트라 모드의 부호화 단위에 대해 인트라 예측을 수행하고, 움직임 보상부(560)는 참조 프레임(585)를 함께 이용하여 인터 모드의 부호화 단위에 대해 움직임 보상을 수행한다.The intra-prediction unit 550 performs intraprediction on the intra-mode encoding unit for the video data in the spatial domain, and the motion compensating unit 560 performs intra-prediction on the intra-mode encoding unit using the reference frame 585 And performs motion compensation for the motion compensation.

인트라 예측부(550) 및 움직임 보상부(560)를 거친 공간 영역의 데이터는 디블로킹부(570) 및 루프 필터링부(580)를 거쳐 후처리되어 복원 프레임(595)으로 출력될 수 있다. 또한, 디블로킹부(570) 및 루프 필터링부(580)를 거쳐 후처리된 데이터는 참조 프레임(585)으로서 출력될 수 있다.The data in the spatial domain that has passed through the intra prediction unit 550 and the motion compensation unit 560 may be post-processed through the deblocking unit 570 and the loop filtering unit 580 and output to the reconstruction frame 595. Further, the post-processed data via deblocking unit 570 and loop filtering unit 580 may be output as reference frame 585.

비디오 복호화 장치(200)의 영상 데이터 복호화부(230)에서 영상 데이터를 복호화하기 위해, 일 실시예에 따른 영상 복호화부(500)의 파싱부(510) 이후의 단계별 작업들이 수행될 수 있다.In order to decode the image data in the image data decoding unit 230 of the video decoding apparatus 200, operations after the parsing unit 510 of the image decoding unit 500 according to the embodiment may be performed.

일 실시예에 따른 비디오 복호화 장치(200)에 적용되기 위해서는, 영상 복호화부(500)의 구성 요소들인 파싱부(510), 엔트로피 복호화부(520), 역양자화부(530), 주파수 역변환부(540), 인트라 예측부(550), 움직임 보상부(560), 디블로킹부(570) 및 루프 필터링부(580)가 모두, 최대 부호화 단위마다 부호화 심도의 부호화 단위에 기반하여 작업을 수행하여야 한다. The entropy decoding unit 520, the inverse quantization unit 530, and the frequency inverse transforming unit 520, which are the components of the video decoding unit 500, in order to be applied to the video decoding apparatus 200 according to one embodiment. The intraprediction unit 550, the motion compensation unit 560, the deblocking unit 570 and the loop filtering unit 580 all have to perform an operation based on the encoding unit of the encoding depth for each maximum encoding unit .

특히, 인트라 예측부(550), 움직임 보상부(560)는 부호화 단위의 최대 크기 및 심도를 고려하여 부호화 단위 및 예측 모드를 결정하며, 주파수 역변환부(540)는 부호화 단위의 최대 크기 및 심도를 고려하여 변환 단위의 크기를 고려하여야 한다.In particular, the intra prediction unit 550 and the motion compensation unit 560 determine a coding unit and a prediction mode in consideration of the maximum size and depth of a coding unit, and the frequency inverse transform unit 540 sets the maximum size and depth of the coding unit The size of the conversion unit should be considered.

도 6 는 본 발명의 일 실시예에 따른 심도별 부호화 단위 및 예측 단위를 도시한다.FIG. 6 illustrates a depth-based coding unit and a prediction unit according to an embodiment of the present invention.

일 실시예에 따른 비디오 부호화 장치(100) 및 일 실시예에 따른 비디오 복호화 장치(200)는 영상 특성을 고려하기 위해 계층적인 부호화 단위를 사용한다. 부호화 단위의 최대 높이 및 너비, 최대 심도는 영상의 특성에 따라 적응적으로 결정될 수도 있으며, 사용자의 요구에 따라 다양하게 설정될 수도 있다. 미리 설정된 부호화 단위의 최대 크기에 따라, 심도별 부호화 단위의 크기가 결정될 수 있다.The video encoding apparatus 100 and the video decoding apparatus 200 according to an exemplary embodiment use a hierarchical encoding unit to consider an image characteristic. The maximum height, width, and maximum depth of the encoding unit may be adaptively determined according to the characteristics of the image, or may be variously set according to the demand of the user. The size of each coding unit may be determined according to the maximum size of a predetermined coding unit.

일 실시예에 따른 부호화 단위의 계층 구조(600)는 부호화 단위의 최대 높이 및 너비가 64이며, 최대 심도가 4인 경우를 도시하고 있다. 일 실시예에 따른 부호화 단위의 계층 구조(600)의 세로축을 따라서 심도가 깊어지므로 심도별 부호화 단위의 높이 및 너비가 각각 분할한다. 또한, 부호화 단위의 계층 구조(600)의 가로축을 따라, 각각의 심도별 부호화 단위의 예측 부호화의 기반이 되는 부분적 데이터 단위인 예측 단위가 도시되어 있다.The hierarchical structure 600 of the encoding unit according to an embodiment shows a case where the maximum height and width of the encoding unit is 64 and the maximum depth is 4. Since the depth is deeper along the vertical axis of the hierarchical structure 600 of the encoding unit according to the embodiment, the height and width of the encoding unit for each depth are divided. In addition, along the horizontal axis of the hierarchical structure 600 of the coding unit, a prediction unit which is a partial data unit on which prediction coding of each depth coding unit is based is shown.

즉, 부호화 단위(610)는 부호화 단위의 계층 구조(600) 중 최대 부호화 단위로서 심도가 0이며, 부호화 단위의 크기, 즉 높이 및 너비가 64x64이다. 세로축을 따라 심도가 깊어지며, 크기 32x32인 심도 1의 부호화 단위(620), 크기 16x16인 심도 2의 부호화 단위(630), 크기 8x8인 심도 3의 부호화 단위(640), 크기 4x4인 심도 4의 부호화 단위(650)가 존재한다. 크기 4x4인 심도 4의 부호화 단위(650)는 최소 부호화 단위이다.That is, the coding unit 610 is the largest coding unit among the hierarchical structures 600 of the coding units and has a depth of 0, and the size of the coding units, that is, the height and the width, is 64x64. A depth-1 encoding unit 620 having a size of 32x32, a depth-2 encoding unit 620 having a size 16x16, a depth-3 encoding unit 640 having a size 8x8, a depth 4x4 having a size 4x4, There is an encoding unit 650. An encoding unit 650 of depth 4 of size 4x4 is the minimum encoding unit.

각각의 심도별로 가로축을 따라, 부호화 단위의 예측 단위로서, 부분적 데이터 단위들이 배열된다. 즉, 심도 0의 크기 64x64의 부호화 단위(610)의 예측 단위는, 크기 64x64의 부호화 단위(610)에 포함되는 크기 64x64의 부분적 데이터 단위(610), 크기 64x32의 부분적 데이터 단위들(612), 크기 32x64의 부분적 데이터 단위들(614), 크기 32x32의 부분적 데이터 단위들(616)일 수 있다. 반대로 보면, 부호화 단위는 변환 단위들(610, 612, 614, 616)을 포함하는 최소 크기의 정사각형의 데이터 단위일 수 있다.The partial data units are arranged as a prediction unit of the encoding unit along the horizontal axis for each depth. That is, the prediction unit of the encoding unit 610 having a size of 64x64 with a depth of 0 is a partial data unit 610 having a size of 64x64, partial data units 612 having a size of 64x32 included in the encoding unit 610 of size 64x64, Partial data units 614 of size 32x64, and partial data units 616 of size 32x32. Conversely, the encoding unit may be a minimum-sized square data unit including the conversion units 610, 612, 614, and 616.

마찬가지로, 심도 1의 크기 32x32의 부호화 단위(620)의 예측 단위는, 크기 32x32의 부호화 단위(620)에 포함되는 크기 32x32의 부분적 데이터 단위(620), 크기 32x16의 부분적 데이터 단위들(622), 크기 16x32의 부분적 데이터 단위들(624), 크기 16x16의 부분적 데이터 단위들(626)일 수 있다. Likewise, the prediction unit of the encoding unit 620 of the size 32x32 of the depth 1 is the partial data unit 620 of the size 32x32, the partial data units 622 of the size 32x16, and the partial data unit 620 of the size 32x32 included in the encoding unit 620 of the size 32x32, Partial data units 624 of size 16x32, partial data units 626 of size 16x16.

마찬가지로, 심도 2의 크기 16x16의 부호화 단위(630)의 예측 단위는, 크기 16x16의 부호화 단위(630)에 포함되는 크기 16x16의 부분적 데이터 단위(630), 크기 16x8의 부분적 데이터 단위들(632), 크기 8x16의 부분적 데이터 단위들(634), 크기 8x8의 부분적 데이터 단위들(636)일 수 있다. Likewise, the prediction unit of a 16x16 size 16x16 encoding unit is a 16x16 partial data unit 630, a 16x8 partial data unit 632, and a 16x16 partial data unit 630 included in the 16x16 encoding unit 630, Partial data units 634 of size 8x16, and partial data units 636 of size 8x8.

마찬가지로, 심도 3의 크기 8x8의 부호화 단위(640)의 예측 단위는, 크기 8x8의 부호화 단위(640)에 포함되는 크기 8x8의 부분적 데이터 단위(640), 크기 8x4의 부분적 데이터 단위들(642), 크기 4x8의 부분적 데이터 단위들(644), 크기 4x4의 부분적 데이터 단위들(646)일 수 있다. Likewise, the prediction unit of the encoding unit 640 of the size 8x8 of the depth 3 includes the partial data unit 640 of the size 8x8, the partial data units 642 of the size 8x4, and the partial data units 640 of the size 8x8 included in the encoding unit 640 of the size 8x8, Partial data units 644 of size 4x8, and partial data units 646 of size 4x4.

마지막으로, 심도 4의 크기 4x4의 부호화 단위(650)는 최소 부호화 단위이며 최하위 심도의 부호화 단위이고, 해당 예측 단위도 크기 4x4의 데이터 단위(650)이다.Finally, a coding unit 650 of size 4x4 is the minimum coding unit and the coding unit of the lowest depth, and the prediction unit is a data unit 650 of size 4x4.

일 실시예에 따른 비디오 부호화 장치(100)의 부호화 심도 결정부(120)는, 최대 부호화 단위(610)의 부호화 심도를 결정하기 위해, 최대 부호화 단위(610)에 포함되는 각각의 심도의 부호화 단위마다 부호화를 수행하여야 한다. The coding depth determiner 120 of the video coding apparatus 100 according to an exemplary embodiment of the present invention determines the coding depth of the maximum coding unit 610 by multiplying the coding unit of each depth included in the maximum coding unit 610 Encoding is performed.

동일한 범위 및 크기의 데이터를 포함하기 위한 심도별 부호화 단위의 개수는, 심도가 깊어질수록 심도별 부호화 단위의 개수도 증가한다. 예를 들어, 심도 1의 부호화 단위 한 개가 포함하는 데이터에 대해서, 심도 2의 부호화 단위는 네 개가 필요하다. 따라서, 동일한 데이터의 부호화 결과를 심도별로 비교하기 위해서, 한 개의 심도 1의 부호화 단위 및 네 개의 심도 2의 부호화 단위를 이용하여 각각 부호화되어야 한다.The number of coding units per depth to include data of the same range and size increases as the depth of the coding unit increases. For example, for data containing one coding unit at depth 1, four coding units at depth 2 are required. Therefore, in order to compare the encoding results of the same data by depth, they should be encoded using a single depth 1 encoding unit and four depth 2 encoding units, respectively.

각각의 심도별 부호화를 위해서는, 부호화 단위의 계층 구조(600)의 가로축을 따라, 심도별 부호화 단위의 예측 단위들마다 부호화를 수행하여, 해당 심도에서 가장 작은 부호화 오차인 대표 부호화 오차가 선택될 수다. 또한, 부호화 단위의 계층 구조(600)의 세로축을 따라 심도가 깊어지며, 각각의 심도마다 부호화를 수행하여, 심도별 대표 부호화 오차를 비교하여 최소 부호화 오차가 검색될 수 있다. 최대 부호화 단위(610) 중 최소 부호화 오차가 발생하는 심도가 최대 부호화 단위(610)의 부호화 심도 및 파티션 타입으로 선택될 수 있다. For each depth-of-field coding, encoding is performed for each prediction unit of the depth-dependent coding unit along the horizontal axis of the hierarchical structure 600 of the coding unit, and a representative coding error, which is the smallest coding error at the corresponding depth, is selected . In addition, depths are deepened along the vertical axis of the hierarchical structure 600 of encoding units, and the minimum encoding errors can be retrieved by comparing the representative encoding errors per depth by performing encoding for each depth. The depth at which the minimum coding error occurs among the maximum coding units 610 can be selected as the coding depth and the partition type of the maximum coding unit 610. [

도 7 은 본 발명의 일 실시예에 따른, 부호화 단위 및 변환 단위의 관계를 도시한다. FIG. 7 shows a relationship between an encoding unit and a conversion unit according to an embodiment of the present invention.

일 실시예에 따른 비디오 부호화 장치(100) 또는 일 실시예에 따른 비디오 복호화 장치(200)는, 최대 부호화 단위마다 최대 부호화 단위보다 작거나 같은 크기의 부호화 단위로 영상을 부호화하거나 복호화한다. 부호화 과정 중 주파수 변환을 위한 변환 단위의 크기는 각각의 부호화 단위보다 크지 않은 데이터 단위를 기반으로 선택될 수 있다.The video coding apparatus 100 or the video decoding apparatus 200 according to an embodiment encodes or decodes an image in units of coding units smaller than or equal to the maximum coding unit for each maximum coding unit. The size of the conversion unit for frequency conversion during encoding can be selected based on data units that are not larger than the respective encoding units.

예를 들어, 일 실시예에 따른 비디오 부호화 장치(100) 또는 일 실시예에 따른 비디오 복호화 장치(200)에서, 현재 부호화 단위(710)가 64x64 크기일 때, 32x32 크기의 변환 단위(720)를 이용하여 주파수 변환이 수행될 수 있다. For example, in the video encoding apparatus 100 or the video encoding apparatus 200 according to an embodiment, when the current encoding unit 710 is 64x64 size, the 32x32 conversion unit 720 The frequency conversion can be performed.

또한, 64x64 크기의 부호화 단위(710)의 데이터를 64x64 크기 이하의 32x32, 16x16, 8x8, 4x4 크기의 변환 단위들로 각각 주파수 변환을 수행하여 부호화한 후, 원본과의 오차가 가장 적은 변환 단위가 선택될 수 있다.In addition, the data of the encoding unit 710 of 64x64 size is encoded by performing the frequency conversion with the conversion units of 32x32, 16x16, 8x8, and 4x4 size of 64x64 or smaller, respectively, and then the conversion unit having the smallest error with the original Can be selected.

도 8 은 본 발명의 일 실시예에 따라, 심도별 부호화 정보들을 도시한다.FIG. 8 illustrates depth-specific encoding information, in accordance with an embodiment of the present invention.

일 실시예에 따른 비디오 부호화 장치(100)의 부호화 정보 부호화부는 부호화 모드에 관한 정보로서, 각각의 부호화 심도의 부호화 단위마다 파티션 타입에 관한 정보(800), 예측 모드에 관한 정보(810), 변환 단위 크기에 대한 정보(820)를 부호화하여 전송할 수 있다.The encoding information encoding unit of the video encoding apparatus 100 according to the embodiment is information on an encoding mode, and includes information on a partition type 800, information on a prediction mode 810, Information 820 on the unit size can be encoded and transmitted.

파티션 타입에 대한 정보(800)는, 현재 부호화 단위의 예측 부호화를 위해 예측 단위로서, 현재 부호화 단위가 분할된 타입에 대한 정보를 나타낸다. 예를 들어, 심도 0 및 크기 2Nx2N의 현재 부호화 단위 CU_0는, 크기 2Nx2N의 예측 단위(802), 크기 2NxN의 예측 단위(804), 크기 Nx2N의 예측 단위(806), 크기 NxN의 예측 단위(808) 중 어느 하나의 타입으로 분할되어 예측 단위로 이용될 수 있다. 이 경우 현재 부호화 단위의 파티션 타입에 관한 정보(800)는 크기 2Nx2N의 예측 단위(802), 크기 2NxN의 예측 단위(804), 크기 Nx2N의 예측 단위(806) 및 크기 NxN의 예측 단위(808) 중 하나를 나타내도록 설정된다.The partition type information 800 indicates information on a type in which the current encoding unit is divided as a prediction unit for predictive encoding of the current encoding unit. For example, the current encoding unit CU_0 of depth 0 and size 2Nx2N includes a prediction unit 802 of size 2Nx2N, a prediction unit 804 of size 2NxN, a prediction unit 806 of size Nx2N, a prediction unit 808 of size NxN ) And can be used as a prediction unit. In this case, information 800 regarding the partition type of the current encoding unit includes a prediction unit 802 of size 2Nx2N, a prediction unit 804 of size 2NxN, a prediction unit 806 of size Nx2N, and a prediction unit 808 of size NxN. Lt; / RTI >

예측 모드에 관한 정보(810)는, 각각의 예측 단위의 예측 모드를 나타낸다. 예를 들어 예측 모드에 관한 정보(810)를 통해, 파티션 타입에 관한 정보(800)가 가리키는 예측 단위가 인트라 모드(812), 인터 모드(814) 및 스킵 모드(816) 중 하나로 예측 부호화가 수행되는지 여부가 설정될 수 있다.The information 810 on the prediction mode indicates the prediction mode of each prediction unit. The prediction unit indicated by the information 800 relating to the partition type is predicted to be one of the intra mode 812, the inter mode 814 and the skip mode 816 through the prediction mode information 810, for example. Can be set.

또한, 변환 단위 크기에 관한 정보(820)는 현재 부호화 단위를 어떠한 변환 단위를 기반으로 주파수 변환을 수행할지 여부를 나타낸다. 예를 들어, 변환 단위는 제 1 인트라 변환 단위 크기(822), 제 2 인트라 변환 단위 크기(824), 제 1 인터 변환 단위 크기(826), 제 2 인트라 변환 단위 크기(828) 중 하나일 수 있다.In addition, the information 820 on the conversion unit size indicates whether to perform frequency conversion on the basis of which conversion unit the current encoding unit is performed. For example, the conversion unit may be one of a first intra-conversion unit size 822, a second intra-conversion unit size 824, a first inter-conversion unit size 826, have.

일 실시예에 따른 비디오 복호화 장치(200)의 부호화 정보 추출부는, 각각의 심도별 부호화 단위마다 파티션 타입에 관한 정보(800), 예측 모드에 관한 정보(810), 변환 단위 크기에 대한 정보(820)를 추출하여 복호화에 이용할 수 있다.The encoding information extracting unit of the video decoding apparatus 200 according to the embodiment extracts the information 800 about the partition type, the information 810 about the prediction mode, the information 820 about the conversion unit size ) Can be extracted and used for decoding.

도 9 는 본 발명의 일 실시예에 따른 심도별 부호화 단위를 도시한다. FIG. 9 shows a depth encoding unit according to an embodiment of the present invention.

심도의 변화를 나타내기 위해 분할 정보가 이용될 수 있다. 분할 정보는 현재 심도의 부호화 단위가 하위 심도의 부호화 단위로 분할될지 여부를 나타낸다. Partition information may be used to indicate changes in depth. The division information indicates whether the current-depth encoding unit is divided into lower-depth encoding units.

심도 0 및 2N_0x2N_0 크기의 부호화 단위의 예측 부호화를 위한 예측 단위(910)는 2N_0x2N_0 크기의 파티션 타입(912), 2N_0xN_0 크기의 파티션 타입(914), N_0x2N_0 크기의 파티션 타입(916), N_0xN_0 크기의 파티션 타입(918)을 포함할 수 있다. The prediction unit 910 for the prediction encoding of the coding units of depth 0 and 2N_0x2N_0 has a partition type 912 of 2N_0x2N_0 size, a partition type 914 of 2N_0xN_0 size, a partition type 916 of N_0x2N_0 size, a partition of size N_0xN_0 Type < / RTI >

파티션 타입마다, 한 개의 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, predictive encoding should be repeatedly performed for each prediction unit of 2N_0x2N_0 size, two 2N_0xN_0 size prediction units, two N_0x2N_0 size prediction units, and four N_0xN_0 size prediction units. For a prediction unit of size 2N_0x2N_0, size N_0x2N_0, size 2N_0xN_0, and size N_0xN_0, predictive coding may be performed in intra mode and inter mode. The skip mode can be performed only for predictive encoding in a prediction unit of size 2N_0x2N_0.

크기 N_0xN_0의 파티션 타입(918)에 의한 부호화 오차가 가장 작다면, 심도 0를 1로 변경하고(920), 심도 2 및 크기 N_0xN_0의 파티션 타입의 부호화 단위들(922, 924, 926, 928)에 대해 반복적으로 최소 부호화 오차를 검색해 나갈 수 있다. If the coding error by the partition type 918 of the size N_0xN_0 is the smallest, the depth 0 is changed to 1 (920), and the coding units 922, 924, 926 and 928 of the partition type of the depth 2 and the size N_0xN_0 are changed The minimum coding error can be repeatedly searched for.

동일한 심도의 부호화 단위들(922, 924, 926, 928)에 대해 부호화가 반복적으로 수행되므로, 이중 하나만 예를 들어 심도 1의 부호화 단위의 부호화를 설명한다. 심도 1 및 크기 2N_1x2N_1 (=N_0xN_0)의 부호화 단위의 예측 부호화를 위한 예측 단위(930)는, 크기 2N_1x2N_1의 파티션 타입(932), 크기 2N_1xN_1의 파티션 타입(934), 크기 N_1x2N_1의 파티션 타입(936), 크기 N_1xN_1의 파티션 타입(938)을 포함할 수 있다. 파티션 타입마다, 한 개의 크기 2N_1x2N_1의 예측 단위, 두 개의 크기 2N_1xN_1의 예측 단위, 두 개의 크기 N_1x2N_1의 예측 단위, 네 개의 크기 N_1xN_1의 예측 단위마다 반복적으로 예측 부호화가 수행되어야 한다.Since encoding is repeatedly performed on the encoding units 922, 924, 926, and 928 of the same depth, encoding of only one of the encoding units of depth 1, for example, will be described. The prediction unit 930 for predicting the coding unit of the depth 1 and the size 2N_1x2N_1 (= N_0xN_0) includes a partition type 932 of size 2N_1x2N_1, a partition type 934 of size 2N_1xN_1, a partition type 936 of size N_1x2N_1, , And a partition type 938 of size N_1xN_1. For each partition type, predictive coding should be repeatedly performed for each prediction unit of a size 2N_1x2N_1, a prediction unit of two sizes 2N_1xN_1, a prediction unit of two sizes N_1x2N_1, and a prediction unit of four sizes N_1xN_1.

또한, 크기 N_1xN_1 크기의 파티션 타입(938)에 의한 부호화 오차가 가장 작다면, 심도 1을 심도 2로 변경하면서(940), 심도 2 및 크기 N_2xN_2의 부호화 단위들(942, 944, 946, 948)에 대해 반복적으로 최소 부호화 오차를 검색해 나갈 수 있다. If the coding error by the partition type 938 of the size N_1xN_1 is the smallest, the coding units 942, 944, 946 and 948 of the depth 2 and the size N_2xN_2 are changed while changing the depth 1 to the depth 2 (940) The minimum coding error can be repeatedly searched for.

최대 심도가 d인 경우, 심도별 분할 정보는 심도 d-1일 때까지 설정될 수 있다. 즉, 심도 d-1 및 크기 2N_(d-1)x2N_(d-1)의 부호화 단위의 예측 부호화를 위한 예측 단위(950)는, 크기 2N_(d-1)x2N_(d-1)의 파티션 타입(952), 크기 2N_(d-1)xN_(d-1)의 파티션 타입(954), 크기 N_(d-1)x2N_(d-1)의 파티션 타입(956), 크기 N_(d-1)xN_(d-1)의 파티션 타입(958)을 포함할 수 있다. If the maximum depth is d, the depth-based segmentation information can be set until the depth d-1. That is, the prediction unit 950 for predictive coding of the coding unit of the depth d-1 and the size 2N_ (d-1) x2N_ (d-1) A partition type 954 of size 2N_ (d-1) xN_ (d-1), a partition type 956 of size N_ (d-1) x2N_ 1) xN_ (d-1) < / RTI >

파티션 타입마다, 한 개의 크기 2N_(d-1)x2N_(d-1)의 예측 단위, 두 개의 크기 2N_(d-1)xN_(d-1)의 예측 단위, 두 개의 크기 N_(d-1)x2N_(d-1)의 예측 단위, 네 개의 크기 N_(d-1)xN_(d-1)의 예측 단위마다 반복적으로 예측 부호화를 통한 부호화가 수행되어야 한다. 최대 심도가 d이므로, 심도 d-1의 부호화 단위(952)는 더 이상 분할 과정을 거치지 않는다.(D-1) x2N_ (d-1), two predicted units of two sizes 2N_ (d-1) (d-1) x2N_ (d-1), four sizes N_ (d-1) xN_ (d-1). Since the maximum depth is d, the coding unit 952 of depth d-1 no longer undergoes the division process.

일 실시예에 따른 비디오 부호화 장치(100)는 부호화 단위(912)를 위한 부호화 심도를 결정하기 위해, 심도별 부호화 오차를 비교하여 가장 작은 부호화 오차가 발생하는 심도를 선택한다. The video coding apparatus 100 according to an exemplary embodiment compares depth-based coding errors to determine the depth of coding for the coding unit 912, and selects the depth at which the smallest coding error occurs.

예를 들어, 심도 0의 부호화 단위에 대한 부호화 오차는 파티션 타입(912, 914, 916, 918)마다 예측 부호화를 수행한 후 가장 작은 부호화 오차가 발생하는 예측 단위가 결정된다. 마찬가지로 심도 0, 1, ..., d-1 마다 부호화 오차가 가장 작은 예측 단위가 검색될 수 있다. 심도 d에서는, 크기 2N_dx2N_d의 부호화 단위이면서 예측 단위(960)를 기반으로 한 예측 부호화를 통해 부호화 오차가 결정될 수 있다. For example, a coding error for a coding unit of depth 0 is predicted for each partition type 912, 914, 916, and 918, and a prediction unit in which the smallest coding error occurs is determined. Similarly, a prediction unit having the smallest coding error can be searched for every depth 0, 1, ..., d-1. At the depth d, the coding error can be determined through predictive coding based on the prediction unit 960, which is a coding unit of size 2N_dx2N_d.

이런 식으로 심도 0, 1, ..., d-1, d의 모든 심도별 최소 부호화 오차를 비교하여 오차가 가장 작은 심도가 선택되어 부호화 심도로 결정될 수 있다. 부호화 심도 및 해당 심도의 예측 단위는 부호화 모드에 관한 정보로써 부호화되어 전송될 수 있다. 또한, 심도 0으로부터 부호화 심도에 이르기까지 부호화 단위가 분할되어야 하므로, 부호화 심도의 분할 정보만이 '0'으로 설정되고, 부호화 심도를 제외한 심도별 분할 정보는 '1'로 설정되어야 한다. In this way, the minimum coding error of each of the depths 0, 1, ..., d-1, and d is compared and the depth with the smallest error is selected to be determined as the coding depth. The coding depth and the prediction unit of the corresponding depth can be encoded and transmitted as information on the coding mode. In addition, since the coding unit must be divided from the depth 0 to the coding depth, only the division information of the coding depth is set to '0', and the division information by depth is set to '1' except for the coding depth.

일 실시예에 따른 비디오 복호화 장치(200)의 부호화 정보 추출부(220)는 부호화 단위(912)에 대한 부호화 심도 및 예측 단위에 관한 정보를 추출하여 부호화 단위(912)를 복호화하는데 이용할 수 있다. 일 실시예에 따른 비디오 복호화 장치(200)는 심도별 분할 정보를 이용하여 분할 정보가 '0'인 심도를 부호화 심도로 파악하고, 해당 심도에 대한 부호화 모드에 관한 정보를 이용하여 복호화에 이용할 수 있다.The encoding information extracting unit 220 of the video decoding apparatus 200 according to an exemplary embodiment may extract information on the encoding depth and prediction unit of the encoding unit 912 and decode the encoding unit 912. [ The video decoding apparatus 200 according to an exemplary embodiment of the present invention uses division information by depth to grasp the depth with the division information of '0' as a coding depth and can use it for decoding using information on the coding mode for the corresponding depth have.

도 10a, 10b 및 10c는 본 발명의 일 실시예에 따른, 부호화 단위, 예측 단위 및 주파수 변환 단위의 관계를 도시한다.FIGS. 10A, 10B, and 10C illustrate the relationship between an encoding unit, a prediction unit, and a frequency conversion unit according to an embodiment of the present invention.

부호화 단위(1010)는, 최대 부호화 단위에 대해 일 실시예에 따른 비디오 부호화 장치(100)가 결정한 부호화 심도별 부호화 단위들이다. 예측 단위(1060)는 부호화 단위(1010) 중 각각의 부호화 심도별 부호화 단위의 예측 단위들이며, 변환 단위(1070)는 각각의 부호화 심도별 부호화 단위의 변환 단위들이다.The coding unit 1010 is coding units for coding depth determined by the video coding apparatus 100 according to the embodiment with respect to the maximum coding unit. The prediction unit 1060 is a prediction unit of each coding depth unit among the coding units 1010 and the conversion unit 1070 is a conversion unit of each coding depth unit.

심도별 부호화 단위들(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이다. When the depth of the maximum encoding unit is 0, the depth of the encoding units 1012 and 1054 is 1 and the depth of the encoding units 1014, 1016, 1018, 1028, 1050, The coding units 1020, 1022, 1024, 1026, 1030, 1032 and 1048 have a depth of 3 and the coding units 1040, 1042, 1044 and 1046 have a depth of 4.

예측 단위들(1060) 중 일부(1014, 1016, 1022, 1032, 1048, 1050, 1052, 1054)는 부호화 단위가 분할된 타입이다. 즉, 예측 단위(1014, 1022, 1050, 1054)는 2NxN의 파티션 타입이며, 예측 단위(1016, 1048, 1052)는 Nx2N의 파티션 타입, 예측 단위(1032)는 NxN의 파티션 타입이다. 즉, 심도별 부호화 단위들(1010)의 예측 단위는 각각의 부호화 단위보다 작거나 같다. A portion (1014, 1016, 1022, 1032, 1048, 1050, 1052, 1054) of the prediction units 1060 is a type in which the coding unit is divided. That is, the prediction units 1014, 1022, 1050 and 1054 are partition types of 2NxN, the prediction units 1016, 1048 and 1052 are partition types of Nx2N, and the prediction units 1032 are partition types of NxN. That is, the prediction unit of the depth-dependent coding units 1010 is smaller than or equal to each coding unit.

변환 단위들(1070) 중 일부(1052)의 영상 데이터에 대해서는 부호화 단위에 비해 작은 크기의 데이터 단위로 주파수 변환 또는 주파수 역변환이 수행된다. 또한, 변환 단위(1014, 1016, 1022, 1032, 1048, 1050, 1052, 1054)는 예측 단위들(1060) 중 해당 예측 단위와 비교해보면, 서로 다른 크기 또는 형태의 데이터 단위이다. 즉, 일 실시예에 따른 비디오 부호화 장치(100) 및 일 실시예에 다른 비디오 복호화 장치(200)는 동일한 부호화 단위에 대한 인트라 예측/움직임 추정/움직임 보상 작업, 및 주파수 변환/역변환 작업이라 할지라도, 각각 별개의 데이터 단위를 기반으로 수행할 수 있다.The image data of a part 1052 of the conversion units 1070 is subjected to frequency conversion or frequency inverse conversion in units of data smaller in size than the encoding unit. The conversion units 1014, 1016, 1022, 1032, 1048, 1050, 1052, and 1054 are data units of different sizes or types when compared with the prediction units of the prediction units 1060. That is, the video encoding apparatus 100 according to the embodiment and the video decoding apparatus 200 according to an embodiment can perform the intra prediction / motion estimation / motion compensation operation for the same encoding unit and the frequency conversion / , Each based on a separate data unit.

도 11 은 본 발명의 일 실시예에 따른 부호화 단위별 부호화 정보를 도시한다.FIG. 11 shows encoding information for each encoding unit according to an embodiment of the present invention.

일 실시예에 따른 비디오 부호화 장치(100)의 출력부(130)는 부호화 단위별 부호화 정보를 출력하고, 일 실시예에 따른 비디오 복호화 장치(200)의 부호화 정보 추출부(220)는 부호화 단위별 부호화 정보를 추출할 수 있다.The output unit 130 of the video encoding apparatus 100 according to an exemplary embodiment outputs encoding information for each encoding unit and the encoding information extracting unit 220 of the video decoding apparatus 200 according to an exemplary embodiment extracts encoding information for each encoding unit It is possible to extract the encoding information.

부호화 정보는 부호화 단위에 대한 분할 정보, 파티션 타입 정보, 예측 모드 정보, 변환 단위 크기 정보를 포함할 수 있다. 도 11에 도시되어 있는 부호화 정보들은 일 실시예에 따른 비디오 부호화 장치(100) 및 일 실시예에 따른 비디오 복호화 장치(200)에서 설정할 수 있는 일례이다.The encoding information may include division information for the encoding unit, partition type information, prediction mode information, and conversion unit size information. The encoding information shown in FIG. 11 is an example that can be set in the video encoding apparatus 100 according to the embodiment and the video encoding apparatus 200 according to an embodiment.

분할 정보는 해당 부호화 단위의 부호화 심도를 나타낼 수 있다. 즉, 분할 정보에 따라 더 이상 분할되지 않는 심도가 부호화 심도이므로, 부호화 심도에 대해서 파티션 타입 정보, 예측 모드, 변환 단위 크기 정보가 정의될 수 있다. 분할 정보에 따라 한 단계 더 분할되어야 하는 경우에는, 분할된 4개의 하위 심도의 부호화 단위마다 독립적으로 부호화가 수행되어야 한다.The division information may indicate the coding depth of the corresponding encoding unit. That is, since depths that are no longer divided according to the division information are coding depths, partition type information, prediction mode, and conversion unit size information can be defined with respect to the coding depth. When it is necessary to further divide by one division according to the division information, encoding should be performed independently for each of four divided sub-depth coding units.

파티션 타입 정보는, 부호화 심도의 부호화 단위의 변환 단위의 파티션 타입을 2Nx2N, 2NxN, Nx2N 및 NxN 중 하나로 나타낼 수 있다. 예측 모드는, 인트라 모드, 인터 모드 및 스킵 모드 중 하나로 나타낼 수 있다. 인트라 모드 및 인터 모드는 파티션 타입 2Nx2N, 2NxN, Nx2N 및 NxN에서 정의될 수 있으며, 스킵 모드는 파티션 타입 2Nx2N에서만 정의될 수 있다. 변환 단위 크기는 인트라 모드에서 두 종류의 크기, 인터 모드에서 두 종류의 크기로 설정될 수 있다.As the partition type information, the partition type of the conversion unit of the coding unit of the coding depth can be represented by 2Nx2N, 2NxN, Nx2N and NxN. The prediction mode may be represented by one of an intra mode, an inter mode, and a skip mode. The intra mode and the inter mode can be defined in the partition types 2Nx2N, 2NxN, Nx2N and NxN, and the skip mode can be defined only in the partition type 2Nx2N. The conversion unit size can be set to two kinds of sizes in the intra mode and two kinds of sizes in the inter mode.

부호화 단위 내의 최소 부호화 단위마다, 소속되어 있는 부호화 심도의 부호화 단위별 부호화 정보를 수록하고 있을 수 있다. 따라서, 인접한 최소 부호화 단위들끼리 각각 보유하고 있는 부호화 정보들을 확인하면, 동일한 부호화 심도의 부호화 단위에 포함되는지 여부가 확인될 수 있다. 또한, 최소 부호화 단위가 보유하고 있는 부호화 정보를 이용하면 해당 부호화 심도의 부호화 단위를 확인할 수 있으므로, 최대 부호화 단위 내의 부호화 심도들의 분포가 유추될 수 있다.The encoding unit-specific encoding information of the belonging encoding depth may be stored for each minimum encoding unit in the encoding unit. Therefore, if encoding information held in each of the adjacent minimum encoding units is checked, it can be confirmed whether or not the encoding information is included in the encoding unit of the same encoding depth. In addition, since the encoding unit of the encoding depth can be identified by using the encoding information held in the minimum encoding unit, the distribution of encoding depths in the maximum encoding unit can be inferred.

따라서 이 경우 현재 부호화 단위가 주변 데이터 단위를 참조하여 예측하기 경우, 현재 부호화 단위에 인접하는 심도별 부호화 단위 내의 최소 부호화 단위의 부호화 정보가 직접 이용됨으로써 최소 부호화 단위의 데이터가 참조될 수 있다.In this case, when the current encoding unit is predicted with reference to the neighboring data unit, the encoding information of the minimum encoding unit in the depth encoding unit adjacent to the current encoding unit is directly used, so that the data of the minimum encoding unit can be referred to.

또 다른 실시예로, 심도별 부호화 단위의 부호화 정보가 심도별 부호화 단위 내 중 대표되는 최소 부호화 단위에 대해서만 저장되어 있을 수 있다. 이 경우 현재 부호화 단위가 주변 부호화 단위를 참조하여 예측되는 경우, 인접하는 심도별 부호화 단위의 부호화 정보를 이용하여, 심도별 부호화 단위 내에서 현재 부호화 단위에 인접하는 데이터가 검색됨으로써 참조될 수도 있다.In yet another embodiment, the encoding information of the depth encoding unit may be stored only for the minimum encoding unit represented in the depth encoding unit. In this case, when the current encoding unit is predicted by referring to the surrounding encoding unit, the data adjacent to the current encoding unit in the depth encoding unit may be retrieved using the encoding information of the adjacent depth encoding unit.

*도 12 는 본 발명의 일 실시예에 따른 비디오 부호화 방법의 흐름도를 도시한다.12 shows a flowchart of a video encoding method according to an embodiment of the present invention.

단계 1210에서, 현재 픽처는 적어도 하나의 최대 부호화 단위로 분할된다. 또한, 가능한 총 분할 횟수를 나타내는 최대 심도가 미리 설정될 수도 있다.In step 1210, the current picture is divided into at least one maximum encoding unit. In addition, the maximum depth indicating the possible total number of divisions may be set in advance.

단계 1220에서, 심도마다 최대 부호화 단위의 영역이 분할된 적어도 하나의 분할 영역시 부호화되어, 적어도 하나의 분할 영역 별로 최종 부호화 결과가 출력될 심도가 결정된다. 최대 부호화 단위가 단계별로 분할되며 심도가 깊어질 때마다, 하위 심도별 부호화 단위들마다 반복적으로 부호화가 수행되어야 한다. In step 1220, the area of the maximum coding unit is coded at least in one divided area for each depth, and the depth at which the final coding result is output for each of at least one of the divided areas is determined. The maximum encoding unit is divided into stages, and each time the depth is deepened, it is necessary to repeatedly perform encoding for each lower-depth encoding unit.

또한, 심도별 부호화 단위마다, 부호화 오차가 가장 작은 파티션 타입별 변환 단위가 결정되어야 한다. 부호화 단위의 최소 부호화 오차를 발생시키는 부호화 심도가 결정되기 위해서는, 모든 심도별 부호화 단위마다 부호화 오차가 측정되어 비교되어야 한다. For each depth-based coding unit, the conversion unit for each partition type having the smallest coding error should be determined. In order to determine the coding depth that causes the minimum coding error of the coding unit, the coding error should be measured and compared for each coding unit of each depth.

단계 1230에서, 최대 부호화 단위마다 적어도 하나의 분할 영역 별 최종 부호화 결과인 영상 데이터와, 부호화 심도 및 부호화 모드에 관한 정보가 출력된다. 부호화 모드에 관한 정보는 부호화 심도에 관한 정보 또는 분할 정보, 부호화 심도의 파티션 타입 정보, 예측 모드 정보 및 변환 단위 크기 정보 등을 포함할 수 있다. 부호화된 부호화 모드에 관한 정보는, 부호화된 영상 데이터와 함께 복호화단으로 전송될 수 있다.In step 1230, video data as a final encoding result for each of at least one divided area and information on the coding depth and coding mode are output for each maximum coding unit. The information on the encoding mode may include information on the encoding depth or division information, partition type information of the encoding depth, prediction mode information, and conversion unit size information. Information on the encoded encoding mode can be transmitted to the decoding end together with the encoded video data.

도 13 은 본 발명의 일 실시예에 따른 비디오 복호화 방법의 흐름도를 도시한다.13 shows a flowchart of a video decoding method according to an embodiment of the present invention.

단계 1310에서, 부호화된 비디오에 대한 비트스트림가 수신되어 파싱된다. In step 1310, a bitstream for the encoded video is received and parsed.

단계 1320에서, 파싱된 비트스트림으로부터 최대 크기의 최대 부호화 단위에 할당되는 현재 픽처의 영상 데이터 및 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보가 추출된다. 최대 부호화 단위별 부호화 심도는, 현재 픽처의 부호화 과정에서 최대 부호화 단위별로 부호화 오차가 가장 적은 심도로 선택된 심도이다. 최대 부호화 단위별 부호화는, 최대 부호화 단위를 심도별로 계층적으로 분할한 적어도 하나의 데이터 단위에 기반하여 영상 데이터가 부호화된 것이다. 따라서, 부호화 단위별 부호화 심도를 파악한 후 각각의 영상 데이터를 복호화함으로써 영상의 부복호화의 효율성이 향상될 수 있다.In step 1320, the image data of the current picture allocated to the largest coding unit of the maximum size from the parsed bitstream, and information on the coding depth and coding mode of each coding unit are extracted. The coding depth for each maximum coding unit is the depth selected with the smallest coding error for each maximum coding unit in the process of coding the current picture. The encoding of the maximum encoding unit is the image data encoded based on at least one data unit obtained by dividing the maximum encoding unit hierarchically by depth. Accordingly, the decoding efficiency of the image can be improved by decoding each image data after grasping the coding depth for each coding unit.

단계 1330에서, 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보에 기초하여 각각의 최대 부호화 단위의 영상 데이터가 복호화된다. 복호화된 영상 데이터는 재생 장치에 의해 재생되거나, 저장 매체에 저장되거나, 네트워크를 통해 전송될 수 있다.In step 1330, the image data of each maximum encoding unit is decoded based on the information on the encoding depth and the encoding mode for each maximum encoding unit. The decoded video data can be reproduced by a reproducing apparatus, stored in a storage medium, or transmitted through a network.

이하, 도 14 내지 도 26을 참조하여 본 발명의 일 실시예에 따르는 부호화 단위 패턴 정보를 이용하는 비디오 부호화 및 비디오 복호화가 상술된다.Hereinafter, video coding and video decoding using coding unit pattern information according to an embodiment of the present invention will be described with reference to FIGS. 14 to 26. FIG.

도 14 는 본 발명의 일 실시예에 따라 부호화 단위 패턴 정보를 이용하는 비디오 부호화 장치를 도시한다.FIG. 14 illustrates a video coding apparatus using coding unit pattern information according to an embodiment of the present invention.

일 실시예에 따른 비디오 부호화 장치(1400)는 최대 부호화 단위 분할부(1410), 부호화 심도 결정부(1420), 및 출력부(1460)를 포함한다. 출력부(1460)는 부호화된 영상 데이터 출력부(1430), 부호화 정보 출력부(1440) 및 부호화 단위 패턴 정보 출력부(1450)를 포함한다. The video encoding apparatus 1400 according to one embodiment includes a maximum encoding unit division unit 1410, a coding depth determination unit 1420, and an output unit 1460. The output unit 1460 includes an encoded image data output unit 1430, an encoded information output unit 1440, and an encoded unit pattern information output unit 1450.

최대 부호화 단위 분할부(1410) 및 부호화 심도 결정부(1420)는 도 1을 참조하여 전술된 비디오 부호화 장치(100)의 최대 부호화 단위 분할부(110) 및 부호화 심도 결정부(120)에 각각 대응된다. 부호화된 영상 데이터 출력부(1430) 및 부호화 정보 출력부(1440)는 도 1을 참조하여 전술된 비디오 부호화 장치(100)의 출력부(130)의 일부 기능을 수행한다. 다만, 일 실시예에 따라 부호화 단위 패턴 정보 출력부(1450)에 의해 부호화 단위 패턴 정보를 부호화하는 특징들이 이하 상술된다.The maximum coding unit division unit 1410 and the coding depth determination unit 1420 correspond to the maximum coding unit division unit 110 and the coding depth determination unit 120 of the video coding apparatus 100 described above with reference to FIG. do. The encoded image data output unit 1430 and the encoded information output unit 1440 perform some functions of the output unit 130 of the video encoding apparatus 100 described above with reference to FIG. However, the features for encoding the encoding unit pattern information by the encoding unit pattern information output unit 1450 according to an embodiment will be described in detail below.

일 실시예에 따라 최대 부호화 단위 분할부(1410)는 영상의 현재 픽처를 위한 최대 크기의 부호화 단위인 최대 부호화 단위에 기반하여 현재 픽처를 구획하고, 부호화 심도 결정부(1420)는 최대 부호화 단위마다 심도별 부호화 단위로 영상 데이터를 부호화하여 가장 작은 부호화 오차가 발생하는 심도를 선택하여 부호화 심도로 결정한다.According to an embodiment, the maximum coding unit division unit 1410 divides the current picture based on the maximum coding unit which is a coding unit of the maximum size for the current picture of the picture, and the coding depth determination unit 1420 divides the current picture by the maximum coding unit The image data is encoded in the depth-dependent coding unit, and the depth at which the smallest coding error occurs is selected to determine the coding depth.

일 실시예에 따라 부호화된 영상 데이터 출력부(1430)는, 부호화 심도에 기초하여 부호화된 최대 부호화 단위의 영상 데이터의 비트스트림을 출력한다. 부호화 정보 출력부(1440)는, 최대 부호화 단위마다 심도별 부호화 모드에 관한 정보를 부호화하여 출력한다.The image data output unit 1430, which is encoded according to an embodiment, outputs a bit stream of image data of the maximum encoding unit encoded based on the encoding depth. The encoding information output unit 1440 encodes and outputs information on the depth encoding mode for each maximum encoding unit.

일 실시예에 따른 부호화 단위 패턴 정보 출력부(1450)는, 최대 부호화 단위마다 텍스처 정보가 부호화되었는지 여부를 나타내는 부호화 단위 패턴 정보를 부호화하여 출력한다. 텍스처 정보는 해당 데이터 단위에 대한 양자화 파라미터, 변환 계수, 변환 인덱스 등을 포함한다.The encoding unit pattern information output unit 1450 according to the embodiment encodes and outputs encoding unit pattern information indicating whether or not texture information is encoded for each maximum encoding unit. The texture information includes a quantization parameter, a transform coefficient, a transform index, and the like for the data unit.

일 실시예에 따른 비디오 부호화 장치(1400)가 영상 부호화부(400)에 대응되는 경우, 현재 부호화 단위의 영상 데이터에 대해 인트라 예측부(410), 움직임 추정부(420) 및 움직임 보상부(425)를 통해 움직임 예측 또는 움직임 보상된 데이터가 생성되고, 움직임 예측 또는 움직임 보상된 데이터는 주파수 변환부(430) 및 양자화부(440)를 통해 주파수 변환되어 양자화됨으로써, 현재 부호화 단위의 변환 계수가 생성된다. The motion estimation unit 420 and the motion compensation unit 425 may be configured to perform a predetermined operation on the video data of the current encoding unit when the video encoding apparatus 1400 according to the embodiment corresponds to the image encoding unit 400. [ ), And the motion-predicted or motion-compensated data is frequency-converted and quantized through the frequency transforming unit 430 and the quantizing unit 440, thereby generating a transform coefficient of the current encoding unit do.

이렇게 생성된 현재 부호화 단위의 변환 계수가 전부 0인지 여부에 따라 현재 부호화 단위에 대한 부호화 단위 패턴 정보가 설정된다. 부호화 단위 패턴 정보에 의해 부호화되는 것으로 설정된 부호화 단위의 변환 계수는 엔트로피 부호화부(450)를 거침으로써 부호화된 비트스트림이 출력될 수 있다.The coding unit pattern information for the current coding unit is set according to whether the conversion coefficient of the current coding unit thus generated is all 0 or not. The transform coefficients of the encoding units set to be encoded by the encoding unit pattern information can be outputted as a bit stream encoded by passing through the entropy encoding unit 450. [

부호화 단위의 텍스처 정보를 부호화할 필요성이 없는 경우와 텍스처 정보를 부호화할 필요성이 있는 경우에 따라 부호화된 텍스처 정보의 전송 여부를 구별하기 위해 부호화 단위 패턴 정보가 이용된다. 예를 들어, 부호화 단위 내의 모든 변환 계수가 0인 경우 텍스처 정보를 부호화할 필요성이 없음을 나타내도록 부호화 단위 패턴 정보가 설정된다. 반대로 부호화 단위에 0이 아닌 변환 계수가 존재한다면 텍스처 정보가 부호화되었음을 나타내도록 부호화 단위 패턴 정보가 설정된다.The coding unit pattern information is used to distinguish whether the encoded texture information is transmitted or not when there is no need to encode the texture information of the encoding unit and when it is necessary to encode the texture information. For example, the coding unit pattern information is set so as to indicate that there is no need to encode texture information when all the conversion coefficients in the coding unit are zero. Conversely, if there is a non-zero transform coefficient in the encoding unit, the encoding unit pattern information is set so as to indicate that the texture information is encoded.

일 실시예에 따른 부호화 단위 패턴 정보로서, 부호화 심도 부호화 단위 패턴 정보 및 계층적 부호화 단위 패턴 정보가 개시된다.As the coding unit pattern information according to the embodiment, the coding depth coding unit pattern information and the hierarchical coding unit pattern information are started.

부호화 심도 부호화 단위 패턴 정보는, 최대 부호화 단위 내에 적어도 하나의 부호화 심도의 부호화 단위에 대해서만 각각 설정되고, 부호화 심도의 부호화 단위의 텍스처 정보의 부호화 여부를 나타낸다. 예를 들어, 부호화 심도 부호화 단위 패턴 정보는 부호화 심도의 심도별 부호화 단위의 변환 계수가 모두 0인지 여부를 나타낼 수 있다.The encoded depth-encoding-unit pattern information is set only for the encoding units of at least one encoding depth in the maximum encoding unit, and indicates whether or not the texture information of the encoding unit of the encoding depth is encoded. For example, the encoded depth-encoded-unit pattern information may indicate whether all of the conversion coefficients of the depth-based encoding units of the depth-of-encoding depth are zero.

계층적 부호화 단위 패턴 정보는, 적어도 하나의 변환 심도별로 설정된다. 최대 크기의 변환 단위의 변환 심도가 최하위 변환 심도이며, 심도가 한 단계씩 깊어질수록 변환 단위는 분할된다. 또한, 현재 변환 심도의 변환 단위는 한 단계 상위 변환 심도의 변환 단위를 네 개 포함할 수 있다.The hierarchical coding unit pattern information is set for each of at least one conversion depth. The conversion depth of the maximum size conversion unit is the lowest conversion depth, and the conversion unit is divided as the depth is deepened by one step. In addition, the conversion unit of the current conversion depth can include four conversion units of one higher conversion depth.

현재 변환 심도의 계층적 부호화 단위 패턴 정보는, 한 단계 하위 변환 심도의 최대 부호화 단위들에 대한 계층적 부호화 단위 패턴 정보가 부호화되었는지 여부를 나타낸다. 부호화 단위 패턴 정보 출력부(1450)는 최상위 변환 심도로부터 최하위 변환 심도 또는 소정 심도까지 매 변환 심도마다 계층적 부호화 단위 패턴 정보를 설정하여 부호화한다.The hierarchical coding unit pattern information of the current conversion depth indicates whether or not the hierarchical coding unit pattern information for the largest coding units of one step lower conversion depth is coded. The coding unit pattern information output unit 1450 sets and encodes the hierarchical coding unit pattern information for each conversion depth from the highest conversion depth to the lowest conversion depth or a predetermined depth.

예를 들어, 변환 심도별로 계층적 부호화 단위 패턴 정보가 설정되고, 최하위 변환 심도에서는 변환 단위의 텍스처 정보가 부호화되어야 한다.For example, hierarchical coding unit pattern information is set for each conversion depth, and texture information of a conversion unit is encoded at the lowest conversion depth.

변환 심도는 심도 및 부호화 심도와 연동될 수 있다. 즉, 변환 단위에 대한 변환 심도가 부호화 단위에 대한 심도가 동일하거나, 변환 심도가 심도보다 한 단계 상위 심도로 고정되어 설정될 수 있다. 또는 변환 심도가 부호화 단위를 위한 심도와 전혀 별개로 구현될 수도 있다.Conversion depth can be interlocked with depth and coding depth. That is, the conversion depth for the conversion unit may be set to the same depth as the encoding unit, or the conversion depth may be fixed to one higher depth than the depth. Or the conversion depth may be implemented separately from the depth for the encoding unit.

일 실시예에 따른 비디오 부호화 장치(1400)는, GOP(Group of Pictures), 픽처, 슬라이드, 최대 부호화 단위 중 적어도 하나의 데이터 단위별로, 부호화 심도 부호화 단위 패턴 정보 및 계층적 부호화 단위 패턴 정보 중 하나 또는 둘다 부호화될지 여부가 선택적으로 설정될 수 있다.The video coding apparatus 1400 according to an exemplary embodiment of the present invention may include at least one of coding depth coding unit pattern information and hierarchical coding unit pattern information for at least one data unit among a group of pictures (GOP), a picture, a slide and a maximum coding unit Or both may be selectively encoded.

예를 들어, 부호화 심도 부호화 단위 패턴 정보 및 계층적 부호화 단위 패턴 정보가 모두 사용된다면, 부호화 단위 패턴 정보 출력부(1450)는 최상위 심도로부터 부호화 심도까지는 심도별로 계층적 부호화 단위 패턴 정보를 설정하고, 부호화 심도에서는 부호화 심도의 부호화 단위의 부호화 심도 부호화 단위 패턴 정보를 설정하여 부호화할 수 있다.For example, if both the coding depth unit coding pattern information and the hierarchical coding unit pattern information are used, the coding unit pattern information output unit 1450 sets hierarchical coding unit pattern information for each depth from the highest depth to the coding depth, At the coding depth, the coding depth coding unit pattern information of the coding unit of the coding depth can be set and encoded.

부호화 심도 부호화 단위는 적어도 하나의 변환 단위를 포함할 수 있고, 변환 단위마다 텍스처 정보의 부호화 여부를 나타내는 변환 단위 패턴 정보가 설정될 수 있다. 예를 들어, 변환 단위 패턴 정보는 변환 단위가 0이 아닌 변환 계수를 포함하는지 여부를 나타낸다.The encoding depth encoding unit may include at least one conversion unit, and conversion unit pattern information indicating whether or not the texture information is encoded may be set for each conversion unit. For example, the conversion unit pattern information indicates whether or not the conversion unit includes a non-zero conversion coefficient.

부호화 단위 패턴 정보 출력부(1450)는, 변환 단위의 텍스처 정보를 부호화할 필요성이 있는 경우, 각각의 변환 단위에 대한 변환 단위 패턴 정보를 설정하고, 이 변환 단위들을 포함하는 부호화 단위의 부호화 심도 부호화 단위 패턴 정보를 설정하여 부호화할 수 있다.When it is necessary to encode the texture information of the conversion unit, the encoding unit pattern information output unit 1450 sets conversion unit pattern information for each conversion unit, and performs encoding depth encoding of the encoding unit including the conversion units The unit pattern information can be set and encoded.

만일, 부호화 심도 부호화 단위의 복수의 변환 단위들에 0이 아닌 변환 계수가 전혀 없다면, 부호화된 영상 데이터 출력부(1430)는 부호화된 텍스처 정보를 출력할 필요가 없다. 또한 일 실시예에 따른 부호화 단위 패턴 정보 출력부(1450)는, 동일한 부호화 심도 부호화 단위에 속하는 변환 단위들이 각각 0이 아닌 변환 계수를 전혀 포함하지 않는다면, 변환 단위 패턴 정보를 부호화할 필요가 없다. 대신에 부호화 단위 패턴 정보 출력부(1450)는, 부호화 심도 부호화 단위의 텍스처 정보의 부호화 필요성이 없음을 나타내는 부호화 심도 부호화 단위 패턴 정보를, 부호화 심도 부호화 단위에 대해 설정하여 부호화할 수 있다.If there are no non-zero transform coefficients in the plurality of transform units of the coded depth coding unit, the coded image data output unit 1430 need not output the coded texture information. Also, the encoding unit pattern information output unit 1450 according to the embodiment does not need to encode the conversion unit pattern information if the conversion units belonging to the same encoding depth encoding unit do not include any non-zero conversion coefficients. The coding unit pattern information output unit 1450 may set the coding depth coding unit pattern information indicating that there is no necessity of coding the texture information of the coding depth coding unit by setting the coding depth coding unit for the coding depth coding unit.

부호화 심도 부호화 단위 패턴 정보는 영상 데이터의 컬러 성분에 따라 설정될 수 있다. 예를 들어, 루마 성분 및 크로마 성분에 대해, 또는 루마 성분, 크로마 성분, 제 1 크로마 성분, 제 2 크로마 성분 각각에 대해, 부호화 심도 부호화 단위 패턴 정보가 설정될 수 있다. 상세한 실시예는 도 16a, 16b, 16c, 17a, 17b, 17c, 18a, 18b 및 18c를 통해 상술된다.The encoded depth-encoding unit pattern information may be set according to the color component of the image data. For example, for the luma component and the chroma component, or for each of the luma component, the chroma component, the first chroma component, and the second chroma component, the encoding depth encoding unit pattern information may be set. Detailed embodiments are described in detail with respect to Figures 16a, 16b, 16c, 17a, 17b, 17c, 18a, 18b and 18c.

각 최대 부호화 단위에 대해 심도별 부호화 단위 및 변환 단위의 크기에 따라 1비트 혹은 그 이상의 부호화 단위 패턴 정보가 설정될 수 있다.For each maximum encoding unit, one or more encoding unit pattern information may be set according to the depth encoding unit and the size of the conversion unit.

도 15 는 본 발명의 일 실시예에 따라 부호화 단위 패턴 정보를 이용하는 비디오 복호화 장치를 도시한다.FIG. 15 illustrates a video decoding apparatus using coding unit pattern information according to an embodiment of the present invention.

일 실시예에 따르는 비디오 복호화 장치(1500)는 수신부(1501), 추출부(1505) 및 영상 데이터 복호화부(1540)를 포함한다. 추출부(1505)는 영상 데이터 획득부(1510), 부호화 정보 추출부(1520) 및 부호화 단위 패턴 정보 추출부(1530)를 포함한다. The video decoding apparatus 1500 according to one embodiment includes a receiving unit 1501, an extracting unit 1505, and a video data decoding unit 1540. The extraction unit 1505 includes an image data acquisition unit 1510, an encoding information extraction unit 1520, and an encoding unit pattern information extraction unit 1530.

수신부(1501) 및 영상 데이터 복호화부(1540)는 도 2를 참조하여 전술된 비디오 복호화 장치(200)의 수신부(210) 및 여상 데이터 북호화부(230)에 각각 대응한다. 영상 데이터 획득부(1510), 부호화 정보 추출부(1520) 및 영상 데이터 복호화부(1540)는 도 2를 참조하여 전술된 비디오 복호화 장치(200)의 영상 데이터 및 부호화 정보 추출부(220)의 일부 기능을 수행한다. 다만, 비디오 복호화 장치(1500)를 참조하여 일 실시예에 따라 부호화 단위 패턴 정보 추출부(1530)로부터 추출된 부호화 단위 패턴 정보를 이용하여 복호화하는 특징이 이하 상술된다.The receiving unit 1501 and the image data decoding unit 1540 correspond to the receiving unit 210 and the farrow data book enriching unit 230 of the video decoding apparatus 200 described above with reference to FIG. The video data obtaining unit 1510, the encoding information extracting unit 1520 and the video data decoding unit 1540 may be configured to store the video data and a part of the encoding information extracting unit 220 of the video decoding apparatus 200 described above with reference to FIG. Function. Hereinafter, a feature of decrypting using the coding unit pattern information extracted from the coding unit pattern information extracting unit 1530 according to one embodiment with reference to the video decoding apparatus 1500 will be described below.

수신부(1501)는 부호화된 비디오에 대한 비트스트림을 수신하여 파싱(parsing)하고, 추출부(1505)는 파싱된 수신한 비트스트림으로부터 각종 부호화된 정보를 추출한다. 영상 데이터 획득부(1510)는 파싱된 수신한 비트스트림으로부터, 최대 부호화 단위별로 부호화된 영상 데이터를 획득할 수 있다. 부호화 정보 추출부(1520)는 수신한 비트스트림을 파싱하여, 현재 픽처에 대한 헤더로부터 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보를 추출한다.The receiving unit 1501 receives and parses a bitstream of the encoded video, and the extracting unit 1505 extracts various encoded information from the parsed bitstream. The image data obtaining unit 1510 can obtain the image data encoded per maximum encoding unit from the parsed received bitstream. The encoding information extracting unit 1520 parses the received bit stream, and extracts information on the encoding depth and the encoding mode for each maximum encoding unit from the header for the current picture.

부호화 단위 패턴 정보 추출부(1530)는 최대 부호화 단위마다, 최대 부호화 단위의 텍스처 정보가 부호화되었는지 여부를 나타내는 부호화 단위 패턴 정보를 추출한다. 부호화 단위 패턴 정보 추출부(1530)는, 부호화 단위 패턴 정보로서, 현재 최대 부호화 단위에 대해 설정되어 있는 부호화 심도 부호화 단위 패턴 정보, 계층적 부호화 단위 패턴 정보를 추출할 수 있다.The coding unit pattern information extracting unit 1530 extracts coding unit pattern information indicating whether or not texture information of the maximum coding unit is coded for each maximum coding unit. The coding unit pattern information extracting unit 1530 can extract the coding depth coding unit pattern information and the hierarchical coding unit pattern information set for the current maximum coding unit as the coding unit pattern information.

부호화 심도 부호화 단위 패턴 정보 및 계층적 부호화 단위 패턴 정보 중 하나만 추출되어 이용될지, 또는 둘 다 추출되어 이용될지 여부는, GOP, 픽처, 슬라이드 또는 최대 부호화 단위별로 설정되어 있을 수 있다.Whether only one of the coding depth-coding unit pattern information and the hierarchical coding unit pattern information is extracted or used may be set for each GOP, picture, slide, or maximum coding unit.

부호화 심도의 부호화 단위 하나에 대해, 한 단위의 부호화 심도 부호화 단위 패턴 정보가 추출될 수 있으며, 최상위 심도로부터 부호화 심도까지의 심도마다 한 단위의 계층적 부호화 단위 패턴 정보가 추출될 수 있다. 부호화 심도 패턴 정보의 한 단위는 소정의 비트 수일 수 있다. 각 최대 부호화 단위에 대해 심도별 부호화 단위 및 변환 단위의 크기에 따라 1비트 혹은 그 이상의 부호화 단위 패턴 정보가 설정될 수 있다. 예를 들어, 부호화 심도 패턴 정보가 플래그 형식이라면 한 단위는 한 비트이다. One coding depth coding unit pattern information can be extracted for one coding depth coding unit and one unit of hierarchical coding unit pattern information can be extracted for each depth from the highest depth to the coding depth. One unit of the coding depth pattern information may be a predetermined number of bits. For each maximum encoding unit, one or more encoding unit pattern information may be set according to the depth encoding unit and the size of the conversion unit. For example, if the coding depth pattern information is flag type, one unit is one bit.

영상 데이터 복호화부(1540)는 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보, 및 부호화 단위 패턴 정보에 기초하여 각각의 최대 부호화 단위의 부호화된 영상 데이터를 복호화하여 현재 픽처를 복원한다.The image data decoding unit 1540 decodes the coded image data of each maximum coding unit based on the coding depth and coding mode information per coding unit and the coding unit pattern information to reconstruct the current picture.

일 실시예에 따른 영상 데이터 복호화부(1540)는 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보에 기초하여, 현재 최대 부호화 단위의 적어도 하나의 부호화 심도를 확인하고 현재 최대 부호화 단위에 포함된 부호화 심도별 부호화 단위의 계층적 구조를 파악할 수 있다.The image data decoding unit 1540 according to an exemplary embodiment determines at least one coding depth of the current maximum coding unit based on information on the coding depth and the coding mode for each maximum coding unit, It is possible to grasp the hierarchical structure of the depth-dependent coding units.

또한, 영상 데이터 복호화부(1540)는, 부호화 단위 패턴 정보 추출부(1530)로부터 추출된 최대 부호화 단위에 대한 부호화 단위 패턴 정보에 기초하여, 최대 부호화 단위의 텍스처 정보 중 변환 계수에 대해 주파수 역변환을 수행하며 복호화할 수 있다.In addition, the image data decoding unit 1540 performs frequency inverse transform on the transform coefficients of the texture information of the maximum encoding unit based on the encoding unit pattern information for the maximum encoding unit extracted from the encoding unit pattern information extracting unit 1530 And can decode it.

일 실시예에 따른 영상 데이터 복호화부(1540)가 영상 복호화부(500)에 대응되는 경우, 부호화 단위의 텍스처 정보 중 변환 계수는 역양자화부(530) 및 주파수 역변환부(540)를 통해 시간 영역의 데이터로 역변환될 수 있다. In a case where the image data decoding unit 1540 according to an embodiment corresponds to the image decoding unit 500, the transform coefficients among the texture information of the encoding units are transformed through the inverse quantization unit 530 and the frequency inverse transform unit 540, As shown in FIG.

즉, 영상 데이터 복호화부(1540)는, 부호화 단위 패턴 정보에 의해 현재 부호화 단위의 텍스처 정보가 부호화되어 있음을 확인하면, 엔트로피 복호화부(520)로부터 엔트로피 복호화된 현재 부호화 단위의 변환 계수를 수신하고, 변환 계수에 대해 주파수 역변환을 수행할 수 있다. 주파수 역변환된 시간 공간 상의 데이터는 인트라 예측부(550), 움직임 보상부(560), 디블로킹부(570), 루프 필터링부(580)를 통해 복원 프레임(595)으로 복원될 수 있다.That is, when it is confirmed that the texture information of the current coding unit is coded by the coding unit pattern information, the image data decoding unit 1540 receives the transformation coefficient of the current coding unit entropy-decoded from the entropy decoding unit 520 , And perform inverse frequency transform on the transform coefficients. The inversely transformed time-space data may be reconstructed into the reconstructed frame 595 through the intraprediction unit 550, the motion compensation unit 560, the deblocking unit 570, and the loop filtering unit 580.

부호화 단위 패턴 정보 추출부(1530)는 현재 최대 부호화 단위의 부호화 심도별 부호화 단위에 대한 부호화 단위 패턴 정보로서, 부호화 심도 부호화 패턴 정보 또는 계층적 부호화 패턴 정보를 검색할 수 있다.The coding unit pattern information extracting unit 1530 can search the coding depth pattern coding information or the hierarchical coding pattern information as coding unit pattern information for the coding unit for each coding depth of the current maximum coding unit.

부호화 심도 부호화 패턴 정보가 검색된 경우, 일 실시예에 따른 영상 데이터 복호화부(1540)는 부호화 심도 부호화 단위 패턴 정보에 기초하여, 현재 부호화 심도의 부호화 단위의 복호화 방식을 결정할 수 있다.When the encoded depth-encoding-pattern information is searched, the image data decoder 1540 according to an exemplary embodiment may determine a decoding scheme of the current encoding depth based on the depth-encoded-unit pattern information.

예를 들어, 부호화 심도 부호화 패턴 정보에 기초하여 현재 부호화 심도의 부호화 단위의 텍스처 정보가 부호화되지 않은 것으로 확인된다면, 영상 데이터 복호화부(1540)는 현재 부호화 심도의 부호화 단위의 이웃 정보를 참조하여 현재 부호화 심도의 부호화 단위를 복호화할 수 있다.For example, if it is determined that the texture information of the coding unit of the current coding depth is not coded based on the coding depth coding pattern information, the image data decoding unit 1540 refers to the neighbor information of the coding unit of the current coding depth, The encoding unit of the encoding depth can be decoded.

또한, 부호화 심도 부호화 패턴 정보에 기초하여 현재 부호화 심도의 부호화 단위의 텍스처 정보가 부호화된 것으로 확인된다면, 영상 데이터 복호화부(1540)는 현재 부호화 심도의 부호화 단위의 부호화된 텍스처 정보 중 변환 계수를 주파수 역변환하며 현재 부호화 심도의 부호화 단위를 복호화할 수 있다. 계층적 부호화 패턴 정보가 검색된 경우, 일 실시예에 따른 영상 데이터 복호화부(1540)는 계층적 부호화 단위 패턴 정보에 기초하여, 현재 변환 심도의 하위 변환 심도에 대한 계층적 부호화 패턴 정보의 존재 여부 및 현재 변환 심도의 변환 단위의 복호화 방식을 결정할 수 있다.If it is determined that the texture information of the coding unit of the current coding depth is coded based on the coding depth coding pattern information, the image data decoding unit 1540 decodes the conversion coefficient among the coded texture information of the coding unit of the current coding depth, And can decode the current encoding depth encoding unit. When the hierarchical coding pattern information is searched, the image data decoding unit 1540 according to an embodiment determines whether there is hierarchical coding pattern information on the lower transformation depth of the current conversion depth, based on the hierarchical coding unit pattern information, The decoding method of the conversion unit of the current conversion depth can be determined.

예를 들어, 현재 변환 심도에 대한 계층적 부호화 단위 패턴 정보에 기초하여, 현재 변환 심도의 하위 심도에 대한 계층적 부호화 패턴 정보가 존재한다고 확인되면, 일 실시예에 따른 영상 데이터 복호화부(1540)는 하위 변환 심도에 대한 계층적 부호화 패턴 정보를 확인하는 것이 바람직하다. 반면에, 현재 변환 심도에 대한 계층적 부호화 단위 패턴 정보에 기초하여, 하위 변환 심도에 대한 계층적 부호화 패턴 정보가 존재하지 않는다고 확인되면, 일 실시예에 따른 영상 데이터 복호화부(1540)는 현재 변환 심도의 변환 단위에 대한 복호화를 수행할 수 있다.For example, if it is determined that the hierarchical coding pattern information for the lower depth of the current conversion depth is present based on the hierarchical coding unit pattern information for the current conversion depth, the image data decoding unit 1540 according to the embodiment, It is preferable to confirm the hierarchical coding pattern information on the lower transform depth. On the other hand, if it is determined that there is no hierarchical coding pattern information for the lower transform depth based on the hierarchical coding unit pattern information for the current transformed depth, the image data decoding unit 1540 according to the embodiment performs the current transform It is possible to perform decoding on the conversion unit of depth.

부호화 심도 부호화 패턴 정보 및 계층적 부호화 패턴 정보가 모두 검색되는 경우에는, 일 실시예에 따른 영상 데이터 복호화부(1540)는 현재 변환 심도에 대한 계층적 부호화 단위 패턴 정보에 기초하여, 상위 변환 심도에 대한 계층적 부호화 패턴 정보의 부호화 여부를 확인한다.When both the coding depth pattern coding information and the hierarchical coding pattern information are searched, the image data decoding unit 1540 according to an exemplary embodiment decodes the coding depth information Whether or not the coding of the hierarchical coding pattern information is encoded.

하위 변환 심도의 계층적 부호화 패턴 정보가 존재한다고 확인되면, 하위 변환 심도의 계층적 부호화 패턴 정보를 확인하여야 한다. 만약, 현재 변환 심도에 대한 계층적 부호화 단위 패턴 정보에 따라 하위 변환 심도의 계층적 부호화 패턴 정보가 존재하지 않는다고 확인되면, 일 실시예에 따른 영상 데이터 복호화부(1540)는 현재 변환 심도의 변환 단위와 관련된 부호화 심도 부호화 패턴 정보를 이용하여 현재 변환 심도의 변환 단위에 대한 복호화를 수행할 수 있다.If it is confirmed that the hierarchical coding pattern information of the lower transformation depth exists, the hierarchical coding pattern information of the lower transformation depth should be checked. If it is determined that the hierarchical coding pattern information of the lower transform depth does not exist according to the hierarchical coding unit pattern information for the current transformed depth, the image data decoding unit 1540 according to an embodiment determines the transform unit It is possible to perform decoding on the conversion unit of the current conversion depth using the encoding depth-encoding-pattern information related to the conversion depth.

또한, 현재 변환 심도가 최상위 심도 또는 기설정된 최종 심도라면, 변환 심도별 계층적 부호화 패턴 정보 값과는 무관하게 현재 변환 심도의 변환 단위에 대한 복호화가 수행되도록 설정될 수 있다. 현재 변환 심도의 변환 단위에 대한 복호화에 의해, 텍스처 정보, 즉 양자화 파라미터, 변환 계수 및 변환 인덱스 등이 복호화될 수 있다.In addition, if the current depth of cut is the highest depth or the predetermined final depth, decoding may be performed on the current depth of the conversion unit irrespective of the hierarchical coding pattern information value per conversion depth. The texture information, that is, the quantization parameter, the transform coefficient, the transform index, and the like, can be decoded by decoding the transform unit of the current transform depth.

부호화 심도의 부호화 단위는 적어도 하나의 변환 단위를 포함하며, 변환 단위마다 설정되어 있는 변환 단위 패턴 정보에 기초하여 변환 단위별 주파수 역변환을 통해 부호화 단위의 복호화가 수행될 수 있다. 즉, 변환 단위 패턴 정보에 기초하여 해당 변환 단위의 텍스처 정보가 부호화되었는지 여부가 확인될 수 있다.The encoding unit of the encoding depth includes at least one conversion unit, and decoding of the encoding unit can be performed through frequency inverse conversion for each conversion unit based on the conversion unit pattern information set for each conversion unit. That is, it can be confirmed whether or not the texture information of the conversion unit is encoded based on the conversion unit pattern information.

따라서, 일 실시예에 따른 영상 데이터 복호화부(1540)는 부호화 심도에 대한 부호화 심도 부호화 단위 패턴 정보에 기초하여 해당 부호화 단위에 부호화된 텍스처 정보가 존재함이 확인된다면, 해당 부호화 단위의 변환 단위별 변환 단위 패턴 정보를 확인한다.Accordingly, if it is determined that the texture information encoded in the encoding unit exists on the basis of the encoding depth-encoding unit pattern information on the encoding depth, the image data decoding unit 1540 according to an exemplary embodiment may convert Check the conversion unit pattern information.

변환 단위 패턴 정보에 기초하여 해당 변환 단위에 부호화된 텍스처 정보가 존재한다고 확인되면, 일 실시예에 따른 영상 데이터 복호화부(1540)는 해당 변환 단위의 변환 계수를 주파수 역변환할 수 있다. 반면에 변환 단위 패턴 정보에 기초하여 해당 변환 단위에 부호화된 텍스처 정보가 존재하지 않는다고 확인되면, 일 실시예에 따른 영상 데이터 복호화부(1540)는 해당 변환 단위의 이웃 정보를 이용하여 변환 단위의 부호화된 영상 데이터를 복호화할 수 있다.If it is determined that the texture information encoded in the conversion unit exists on the basis of the conversion unit pattern information, the image data decoding unit 1540 according to the embodiment can invert the conversion coefficient of the conversion unit. On the other hand, if it is determined that the texture information encoded in the conversion unit does not exist on the basis of the conversion unit pattern information, the image data decoding unit 1540 according to the embodiment uses the neighbor information of the conversion unit, It is possible to decode the image data.

만약 부호화 심도에 대한 부호화 심도 부호화 단위 패턴 정보에 기초하여 해당 부호화 단위에 부호화된 텍스처 정보가 존재하지 않음이 확인된다면, 해당 부호화 단위의 모든 변환 단위에 대한 변환 단위 패턴 정보도 역시 부호화되어 있지 않다. 따라서, 이 경우 일 실시예에 따른 영상 데이터 복호화부(1540)는 해당 부호화 단위의 변환 단위별 변환 단위 패턴 정보를 검색할 필요 없다.If it is confirmed that there is no texture information encoded in the encoding unit based on the encoding depth encoding unit pattern information for the encoding depth, the conversion unit pattern information for all the conversion units of the encoding unit is also not encoded. Therefore, in this case, the image data decoding unit 1540 according to the embodiment does not need to search the conversion unit pattern information for each conversion unit of the encoding unit.

일 실시예에 따른 비디오 부호화 장치(1400) 및 비디오 복호화 장치(1500)에서는, 계층적 구조의 부호화 단위 및 변환 단위를 바탕으로 부호화된 부호화 단위 패턴 정보 또는 변환 단위 패턴 정보를 이용할 수 있다. 따라서, 복수개의 변환 단위의 그룹을 포함하는 부호화 단위에 대해 설정되는 부호화 단위 패턴 정보에 기초하여, 변환 단위마다 각각에 대한 변환 단위 패턴 정보의 부호화 여부가 결정될 수 있다. 변환 단위에 비해 부호화 단위의 개수가 상대적으로 적으므로, 모든 변환 단위에 대해 변환 단위 패턴 정보를 설정하는 것에 비해, 부호화 단위에 대해 설정된 부호화 단위 패턴 정보를 이용하는 것이 데이터량을 줄이는데 유리하며, 비트 전송 효율이 향상될 수 있다.In the video encoding apparatus 1400 and the video decoding apparatus 1500 according to the embodiment, the encoding unit pattern information or the conversion unit pattern information encoded based on the encoding unit and the conversion unit of the hierarchical structure can be used. Therefore, whether to encode the conversion unit pattern information for each conversion unit can be determined based on the encoding unit pattern information set for the encoding unit including the group of the plurality of conversion units. Compared to the conversion unit, the number of encoding units is relatively small. Compared with setting conversion unit pattern information for all conversion units, it is advantageous to use the encoding unit pattern information set for the encoding unit to reduce the amount of data, The efficiency can be improved.

이하, 도 16a, 16b, 16c, 17a, 17b, 17c, 18a, 18b 및 18c를 참조하여 영상 데이터의 컬러 성분에 따라 설정되는 부호화 심도 부호화 단위 패턴 정보의 실시예들이 기술된다. 이하 실시예들에서 부호화 단위 패턴 정보의 한 단위가 1비트이지만 이에 한정되는 것은 아니다.Embodiments of encoded depth-encoding unit pattern information set according to color components of image data will be described below with reference to Figs. 16A, 16B, 16C, 17A, 17B, 17C, 18A, 18B and 18C. In the following embodiments, one unit of the coding unit pattern information is 1 bit, but is not limited thereto.

도 16a, 16b 및 16c 은 본 발명의 일 실시예에 따라 부호화 심도의 부호화 단위가 하나의 변환 단위를 포함하는 경우, 부호화 심도 부호화 단위 패턴 정보의 실시예들을 도시한다.FIGS. 16A, 16B, and 16C illustrate embodiments of coding depth coding unit pattern information when the coding unit of the coding depth includes one conversion unit according to an embodiment of the present invention.

YCbCr 컬러 규격에 따른 컬러 영상 데이터의 제 1 부호화 단위는, 루마 성분의 부호화 단위(1600), 제 1 크로마 성분의 부호화 단위(1610) 및 제 2 크로마 성분의 부호화 단위(1620)로 구성된다.The first encoding unit of the color image data according to the YCbCr color standard is composed of a luma component encoding unit 1600, a first chroma component encoding unit 1610, and a second chroma component encoding unit 1620.

제 1 부호화 단위의 변환 단위의 크기가 제 1 부호화 단위의 크기와 동일한 경우, 제 1 부호화 단위가 변환 단위 하나만을 포함한다. 따라서, 제 1 부호화 단위의 변환 단위는 루마 성분의 변환 단위(1605), 제 1 크로마 성분의 변환 단위(1615) 및 제 2 크로마 성분의 변환 단위(1625)로 구성된다. 변환 단위(1605, 1615, 1625)마다 변환 단위 패턴 정보가 설정되어 있을 수 있다.If the size of the conversion unit of the first encoding unit is equal to the size of the first encoding unit, the first encoding unit includes only one conversion unit. Therefore, the conversion unit of the first encoding unit is composed of a luma component conversion unit 1605, a first chroma component conversion unit 1615, and a second chroma component conversion unit 1625. The conversion unit pattern information may be set for each of the conversion units 1605, 1615, and 1625. [

도 16a에서는, 제 1 부호화 단위에 대해 부호화 심도 부호화 단위 패턴 정보가 별도로 부호화되지 않는다. 이 경우 일 실시예에 따른 부호화 단위 패턴 정보 출력부(1450)는 제 1 부호화 단위에 대한 부호화 심도 부호화 단위 패턴 정보를 출력하지 않는다. 일 실시예에 따른 영상 데이터 복호화부(1540)는 제 1 부호화 단위에 대한 부호화 심도 부호화 단위 패턴 정보의 확인 없이, 루마 성분의 변환 단위(1605), 제 1 크로마 성분의 변환 단위(1615), 제 2 크로마 성분의 변환 단위(1625)의 변환 단위 패턴 정보만 확인하고 이를 기초로 변환 단위들(1605, 1615, 1625)의 변환 계수를 주파수 역변환을 수행할 수 있다.16A, the coding depth coding unit pattern information is not separately encoded for the first coding unit. In this case, the coding unit pattern information output unit 1450 according to the embodiment does not output the coding depth coding unit pattern information for the first coding unit. The image data decoding unit 1540 according to the embodiment may convert the luma component conversion unit 1605, the first chroma component conversion unit 1615, and the second chroma component conversion unit 1610 without checking the encoding depth encoding unit pattern information for the first encoding unit. It is possible to perform inverse frequency conversion of the transform coefficients of the transform units 1605, 1615, and 1625 based on only the transform unit pattern information of the transform unit 1625 of two chroma components.

도 16b에서는, 제 1 부호화 단위의 루마 성분의 부호화 단위(1600), 제 1 크로마 성분의 부호화 단위(1610) 및 제 2 크로마 성분의 부호화 단위(1620)를 포함하는 그룹(1630)에 대해 1비트의 부호화 심도 부호화 단위 패턴 정보가 설정된다. 이 경우 일 실시예에 따른 부호화 단위 패턴 정보 출력부(1450)는 제 1 부호화 단위에 대해 1비트의 부호화 심도 부호화 단위 패턴 정보를 출력한다.16B, a group 1630 including a coding unit 1600 of the luma component of the first coding unit, a coding unit 1610 of the first chroma component, and a coding unit 1620 of the second chroma component is 1 bit The coding depth-coding unit pattern information of the coding depth-coding unit is set. In this case, the coding unit pattern information output unit 1450 according to the embodiment outputs 1-bit coding depth coding unit pattern information for the first coding unit.

도 16c에서는, 제 1 부호화 단위의 루마 성분의 부호화 단위(1600)의 그룹(1640), 제 1 크로마 성분의 부호화 단위(1610) 및 제 2 크로마 성분의 부호화 단위(1620)를 포함하는 그룹(1650)에 대해 그룹별로 각각 1비트의 부호화 심도 부호화 단위 패턴 정보가 설정된다. 이 경우 일 실시예에 따른 부호화 단위 패턴 정보 출력부(1450)는 제 1 부호화 단위에 대해 총 2비트의 부호화 심도 부호화 단위 패턴 정보를 출력한다.16C, a group 1650 including a group 1640 of luma component encoding units 1600, a first chroma component encoding unit 1610, and a second chroma component encoding unit 1620 in the first encoding unit 1-bit coded depth-coding unit pattern information is set for each group. In this case, the coding unit pattern information output unit 1450 according to an embodiment outputs a total of 2 bits of coding depth coding unit pattern information for the first coding unit.

일 실시예에 따른 영상 데이터 복호화부(1540)는 제 1 부호화 단위에 대한 1비트의 부호화 심도 부호화 단위 패턴 정보(도 16b) 또는 2비트의 부호화 심도 부호화 단위 패턴 정보(도 16c)를 확인하여 해당 부호화 단위에 부호화된 텍스처 정보가 존재하는지 확인한다. 부호화 단위에 부호화된 텍스처 정보가 존재한다면, 영상 데이터 복호화부(1540)는 해당 변환 단위의 변환 단위 패턴 정보를 확인하여 이에 기초하여 변환 계수를 주파수 역변환을 수행할 수 있다.The image data decoding unit 1540 according to the embodiment checks 1-bit Coded Depth-Coding Unit Pattern information (FIG. 16B) or 2-bit Coded Depth Coding Unit Pattern information (FIG. 16C) for the first coding unit, And checks whether the encoded texture information exists in the encoding unit. If the encoded texture information is present in the encoding unit, the image data decoding unit 1540 can confirm the conversion unit pattern information of the conversion unit and perform inverse frequency conversion on the conversion coefficient based on the information.

*도 17a, 17b 및 17c 은 본 발명의 일 실시예에 따라 부호화 심도의 부호화 단위가 하나의 네 개의 변환 단위를 포함하는 경우, 부호화 심도 부호화 단위 패턴 정보의 실시예들을 도시한다.FIGS. 17A, 17B and 17C show embodiments of coding depth coding unit pattern information when the coding unit of coding depth includes one four conversion units according to an embodiment of the present invention.

YCbCr 컬러 규격에 따른 컬러 영상 데이터의 제 2 부호화 단위는, 루마 성분의 부호화 단위(1700), 제 1 크로마 성분의 부호화 단위(1710) 및 제 2 크로마 성분의 부호화 단위(1720)로 구성된다.The second encoding unit of the color image data according to the YCbCr color standard is composed of a luma component encoding unit 1700, a first chroma component encoding unit 1710, and a second chroma component encoding unit 1720.

제 2 부호화 단위가 네 개의 변환 단위를 포함하는 경우, 제 2 부호화 단위의 컬러 성분별 부호화 단위도 각각 네 개의 변환 단위를 포함한다. 즉, 루마 성분의 부호화 단위(1700)에 대해 네 개의 루마 성분의 변환 단위(1702, 1704, 1706, 1708)를 포함하고, 제 1 크로마 성분의 부호화 단위(1710)는 네 개의 제 1 크로마 성분의 변환 단위(1712, 1714, 1716, 1718)를 포함하며, 제 2 크로마 성분의 부호화 단위(1720)는 네 개의 제 2 크로마 성분의 변환 단위(1722, 1724, 1726, 1728)를 포함한다.When the second encoding unit includes four conversion units, each color-component encoding unit of the second encoding unit also includes four conversion units. That is, the encoding unit 1710 of the first chroma component includes four luma component conversion units 1702, 1704, 1706, and 1708 for the luma component encoding unit 1700, Conversion unit 1712, 1714, 1716 and 1718 and the second chroma component encoding unit 1720 includes four second chroma component conversion units 1722, 1724, 1726 and 1728.

도 17a에서는, 제 1 부호화 단위의 루마 성분의 부호화 단위(1600)만을 포함하는 그룹(1730)에 대해 1비트의 부호화 심도 부호화 단위 패턴 정보가 설정된다. 제 1 크로마 성분의 부호화 단위(1710) 및 제 2 크로마 성분의 부호화 단위(1720)에 대해 부호화 심도 부호화 단위 패턴 정보가 별도로 부호화되지 않는다.In Fig. 17A, 1-bit encoding depth encoding unit pattern information is set for the group 1730 including only the luma component encoding unit 1600 of the first encoding unit. The coding depth encoding unit pattern information is not separately encoded for the coding unit 1710 of the first chroma component and the coding unit 1720 of the second chroma component.

이 경우 일 실시예에 따른 부호화 단위 패턴 정보 출력부(1450)는 루마 성분의 부호화 단위(1700)에 대한 부호화 심도 부호화 패턴 정보 1비트를 출력한다. 일 실시예에 따른 영상 데이터 복호화부(1540)는 제 2 부호화 단위의 루마 성분에 대한 1비트의 부호화 단위 패턴 정보를 확인하여 루마 성분의 부호화 단위(1700)에 부호화된 텍스처 정보가 존재하는지 확인한다. 부호화된 텍스처 정보가 존재한다면, 영상 데이터 복호화부(1540)는 루마 성분의 변환 단위(1702, 1704, 1706, 1708)의 변환 단위 패턴 정보를 확인하여 이에 기초하여 변환 단위(1702, 1704, 1706, 1708)의 변환 계수를 주파수 역변환을 수행할 수 있다.In this case, the coding unit pattern information output unit 1450 according to the embodiment outputs 1 bit of coding depth coding pattern information for the coding unit 1700 of the luma component. The image data decoding unit 1540 according to an exemplary embodiment checks one-bit encoding unit pattern information for the luma component of the second encoding unit and determines whether encoded texture information is present in the encoding unit 1700 of the luma component . If the encoded texture information is present, the image data decoding unit 1540 verifies the conversion unit pattern information of the luma component conversion units 1702, 1704, 1706, and 1708, and converts the conversion unit patterns 1702, 1704, 1706, 1708) can perform frequency inverse transform.

또한, 일 실시예에 따른 영상 데이터 복호화부(1540)는 제 1 부호화 단위 제 1 크로마 성분 및 제 2 크로마 성분에 대한 부호화 심도 부호화 단위 패턴 정보를 확인하지 않고, 제 1 크로마 성분의 변환 단위(1712, 1714, 1716, 1718), 제 2 크로마 성분의 변환 단위(1722, 1724, 1726, 1728)의 변환 단위 패턴 정보만 확인하고 이를 기초로 변환 단위(1712, 1714, 1716, 1718, 1722, 1724, 1726, 1728)의 변환 계수를 주파수 역변환을 수행할 수 있다.In addition, the image data decoding unit 1540 according to an embodiment does not check the encoding depth encoding unit pattern information for the first encoding unit first chroma component and the second chroma component, and converts the encoding depth encoding unit pattern information for the first chroma component conversion unit 1712 1714, 1716, and 1718), only the conversion unit pattern information of the conversion units 1722, 1724, 1726, and 1728 of the second chroma component is checked, and conversion units 1712, 1714, 1716, 1718, 1722, 1726, and 1728 can perform frequency inverse transform.

도 17b에서는, 제 2 부호화 단위의 루마 성분의 부호화 단위(1700), 제 1 크로마 성분의 부호화 단위(1710) 및 제 2 크로마 성분의 부호화 단위(1720)를 포함하는 그룹(1740)에 대해 1비트의 부호화 심도 부호화 단위 패턴 정보가 설정된다. 이 경우 일 실시예에 따른 부호화 단위 패턴 정보 출력부(1450)는 제 2 부호화 단위에 대해 1비트의 부호화 심도 부호화 단위 패턴 정보를 출력한다.17B, a group 1740 including the coding unit 1700 of the luma component of the second coding unit, the coding unit 1710 of the first chroma component, and the coding unit 1720 of the second chroma component is 1 bit The coding depth-coding unit pattern information of the coding depth-coding unit is set. In this case, the coding unit pattern information output unit 1450 according to the embodiment outputs 1-bit coding depth coding unit pattern information for the second coding unit.

도 17c에서는, 제 2 부호화 단위의 루마 성분의 부호화 단위(1700)의 그룹(1750), 제 1 크로마 성분의 부호화 단위(1710)의 그룹(1760) 및 제 2 크로마 성분의 부호화 단위(1720)의 그룹(1770)에 대해 그룹별로 각각 1비트의 부호화 심도 부호화 단위 패턴 정보가 설정된다. 이 경우 일 실시예에 따른 부호화 단위 패턴 정보 출력부(1450)는 제 2 부호화 단위에 대해 3비트의 부호화 심도 부호화 단위 패턴 정보를 출력한다.17C, the group 1750 of the luma component encoding unit 1700 of the second encoding unit, the group 1760 of the encoding unit 1710 of the first chroma component, and the group 1760 of the encoding unit 1720 of the second chroma component 1-bit coded depth-encoding-unit pattern information is set for each group for the group 1770. In this case, the coding unit pattern information output unit 1450 according to the embodiment outputs 3 bits of coding depth coding unit pattern information for the second coding unit.

일 실시예에 따른 영상 데이터 복호화부(1540)는 제 2 부호화 단위에 대한 1비트의 부호화 심도 부호화 단위 패턴 정보(도 17b) 또는 3비트의 부호화 심도 부호화 단위 패턴 정보(도 17c)를 확인하여 해당 부호화 단위에 부호화된 텍스처 정보가 존재하는지 확인한다. 부호화 단위에 부호화된 텍스처 정보가 존재한다면, 영상 데이터 복호화부(1540)는 부호화 단위에 속하는 변환 단위의 변환 단위 패턴 정보를 확인하여 이에 기초하여 변환 계수를 주파수 역변환을 수행할 수 있다.The image data decoding unit 1540 according to the embodiment checks the 1-bit depth-coded coding unit pattern information (FIG. 17B) or the 3-bit Coded Depth Coding Unit pattern information (FIG. 17C) for the second coding unit, And checks whether the encoded texture information exists in the encoding unit. If the encoded texture information is present in the encoding unit, the image data decoding unit 1540 can confirm the conversion unit pattern information of the conversion unit belonging to the encoding unit and perform inverse frequency conversion of the conversion coefficient based on the information.

도 18a, 18b 및 18c 은 본 발명의 일 실시예에 따라 부호화 심도의 부호화 단위가 다수의 변환 단위를 포함하는 경우, 부호화 심도 부호화 단위 패턴 정보의 실시예들을 도시한다.FIGS. 18A, 18B, and 18C illustrate embodiments of encoded depth-encoded unit pattern information when the encoding unit of the encoding depth includes a plurality of conversion units according to an embodiment of the present invention.

YCbCr 컬러 규격에 따른 컬러 영상 데이터의 제 3 부호화 단위는, 루마 성분의 부호화 단위(1800), 제 1 크로마 성분의 부호화 단위(1810) 및 제 2 크로마 성분의 부호화 단위(1820)로 구성된다.The third encoding unit of the color image data according to the YCbCr color standard is composed of a luma component encoding unit 1800, a first chroma component encoding unit 1810, and a second chroma component encoding unit 1820.

제 3 부호화 단위가 네 개 이상의 변환 단위를 포함하는 경우, 제 3 부호화 단위의 루마 성분의 부호화 단위도 동일한 개수의 변환 단위를 포함한다. 예를 들어, 제 3 부호화 단위가 16개의 변환 단위를 포함하는 경우, 루마 성분의 부호화 단위(1800)에 대해 16개의 루마 성분의 변환 단위(1801, 1802, 1803, 1804, 1805, 1806, 1807, 1808, 1809, 1810, 1811, 1812, 1813, 1814, 1815, 1816)를 포함한다.When the third encoding unit includes four or more conversion units, the encoding units of luma components of the third encoding unit include the same number of conversion units. For example, when the third encoding unit includes 16 conversion units, 16 luma component conversion units (1801, 1802, 1803, 1804, 1805, 1806, 1807, 1808, 1809, 1810, 1811, 1812, 1813, 1814, 1815, 1816).

제 1 크로마 성분에 대한 부호화 단위(1820) 및 제 2 크로마 성분에 대한 부호화 단위(1830)는 각각 네 개의 변환 단위를 포함할 수 있다. 즉, 제 1 크로마 성분의 부호화 단위(1810)는 네 개의 제 1 크로마 성분의 변환 단위(1822, 1824, 1826, 1828)를 포함하고, 제 2 크로마 성분의 부호화 단위(1830)는 네 개의 제 2 크로마 성분의 변환 단위(1832, 1834, 1836, 1838)를 포함한다.The encoding unit 1820 for the first chroma component and the encoding unit 1830 for the second chroma component may each include four conversion units. That is, the first chroma component encoding unit 1810 includes four first chroma component conversion units 1822, 1824, 1826, and 1828, and the second chroma component encoding unit 1830 includes four second (1832, 1834, 1836, 1838) of the chroma component.

루마 성분의 부호화 단위의 일부에 대한 부호화 심도 부호화 단위 패턴 정보로서, 소정 개수의 루마 성분의 변환 단위를 포함하는 그룹에 대해 한 단위의 부호화 심도 부호화 단위 패턴 정보가 설정될 수 있다. 예를 들어, 루마 성분의 부호화 단위(1800) 중 네 개의 루마 성분의 변환 단위들을 포함하는 그룹들에 대해 각각 부호화 심도 부호화 단위 패턴 정보가 설정될 수 있다.As the encoded depth-encoding unit pattern information for a part of the encoding unit of the luma component, one unit of the encoding depth-encoding unit pattern information may be set for a group including a conversion unit of a predetermined number of luma components. For example, the coding depth encoding unit pattern information may be set for groups including four luma component conversion units of the luma encoding unit 1800, respectively.

즉, 루마 성분의 부호화 단위(1800) 중, 네 개의 변환 단위(1801, 1802, 1803, 1804)를 포함하는 그룹(1840), 네 개의 변환 단위(1805, 1806, 1807, 1808)를 포함하는 그룹(1850), 네 개의 변환 단위(1809, 1810, 1811, 1812)를 포함하는 그룹(1860) 및 네 개의 변환 단위(1813, 1814, 1815, 1816)를 포함하는 그룹(1870)에 대해 각각 한 비트씩 부호화 단위 패턴 정보가 설정될 수 있다.That is, of the luma component encoding units 1800, a group 1840 including four conversion units 1801, 1802, 1803, and 1804, a group including four conversion units 1805, 1806, 1807, and 1808 A group 1860 including four conversion units 1850, four conversion units 1809, 1810, 1811, and 1812, and a group 1870 including four conversion units 1813, 1814, 1815, Coding unit pattern information can be set.

도 18a에서는, 제 1 크로마 성분의 부호화 단위(1820) 및 제 2 크로마 성분의 부호화 단위(1830)에 대해 부호화 심도 부호화 단위 패턴 정보가 별도로 부호화되지 않는다.In Fig. 18A, the coding depth encoding unit pattern information is not separately encoded for the coding unit 1820 of the first chroma component and the coding unit 1830 of the second chroma component.

이 경우 일 실시예에 따른 부호화 단위 패턴 정보 출력부(1450)는 루마 성분의 부호화 단위의 그룹들(1840, 1850, 1860, 1870)에 대한 4비트의 부호화 심도 부호화 패턴 정보를 출력한다. 일 실시예에 따른 영상 데이터 복호화부(1540)는 제 3 부호화 단위의 루마 성분에 대한 4비트의 부호화 심도 부호화 단위 패턴 정보를 확인하여 루마 성분의 부호화 단위의 그룹들(1840, 1850, 1860, 1870) 별로 부호화된 텍스처 정보가 존재하는지 확인한다.In this case, the encoding unit pattern information output unit 1450 according to an embodiment outputs 4-bit encoding depth encoding pattern information for the groups 1840, 1850, 1860, and 1870 of the luma component encoding unit. The image data decoding unit 1540 according to an embodiment identifies the 4-bit Coded Depth-Coding Unit pattern information for the luma component of the third coding unit and outputs the 4-bit Coded Depth-Coding Unit Pattern information to the luma component coding unit groups 1840, 1850, 1860, 1870 ) Of the texture information.

또한, 일 실시예에 따른 영상 데이터 복호화부(1540)는 제 1 부호화 단위 제 1 크로마 성분 및 제 2 크로마 성분에 대한 부호화 심도 부호화 단위 패턴 정보를 확인하지 않고, 제 1 크로마 성분의 변환 단위(1822, 1824, 1826, 1828), 제 2 크로마 성분의 변환 단위(1832, 1834, 1836, 1838)의 변환 단위 패턴 정보만 확인할 수 있다.In addition, the image data decoding unit 1540 according to an embodiment does not check the encoding depth encoding unit pattern information for the first encoding unit first chroma component and the second chroma component, , 1824, 1826, and 1828), and only the conversion unit pattern information of the conversion units 1832, 1834, 1836, and 1838 of the second chroma component can be confirmed.

도 18b에서는, 제 3 부호화 단위의 루마 성분의 부호화 단위의 그룹들(1840, 1850, 1860, 1870), 제 1 크로마 성분의 부호화 단위(1820)의 그룹(1880) 및 제 2 크로마 성분의 부호화 단위(1830)의 그룹(1885)에 대해, 그룹별로 1비트의 부호화 심도 부호화 단위 패턴 정보가 설정된다. 이 경우 일 실시예에 따른 부호화 단위 패턴 정보 출력부(1450)는 제 2 부호화 단위에 대해 6비트의 부호화 심도 부호화 단위 패턴 정보를 출력한다.18B, the groups 1840, 1850, 1860 and 1870 of luma components of the third encoding unit, the group 1880 of the encoding units 1820 of the first chroma component, 1-bit coded depth-coding unit pattern information is set for each group in the group 1885 of the group 1885 of the coded-depth-coded information 1830. In this case, the coding unit pattern information output unit 1450 according to an embodiment outputs 6-bit coding depth coding unit pattern information for the second coding unit.

도 18c에서는, 제 3 부호화 단위의 루마 성분의 부호화 단위의 그룹들(1840, 1850, 1860, 1870), 제 1 크로마 성분의 부호화 단위(1820) 및 제 2 크로마 성분의 부호화 단위(1830)를 포함하는 그룹(1890)에 대해 그룹별로 각각 1비트의 부호화 심도 부호화 단위 패턴 정보가 설정된다. 이 경우 일 실시예에 따른 부호화 단위 패턴 정보 출력부(1450)는 제 2 부호화 단위에 대해 5비트의 부호화 심도 부호화 단위 패턴 정보를 출력한다.18C includes groups 1840, 1850, 1860 and 1870 of luma components of the third encoding unit, encoding unit 1820 of the first chroma component and encoding unit 1830 of the second chroma component 1-bit coded depth-coding unit pattern information is set for each group for the group 1890 to be coded. In this case, the coding unit pattern information output unit 1450 according to the embodiment outputs 5-bit coding depth coding unit pattern information for the second coding unit.

일 실시예에 따른 영상 데이터 복호화부(1540)는 제 2 부호화 단위에 대한 6비트의 부호화 심도 부호화 단위 패턴 정보(도 18b) 또는 5비트의 부호화 심도 부호화 단위 패턴 정보(도 18c)를 확인하여 해당 부호화 단위에 부호화된 텍스처 정보가 존재하는지 확인한다. 부호화 단위에 부호화된 텍스처 정보가 존재한다면, 영상 데이터 복호화부(1540)는 해당 부호화 단위에 포함되는 해당 변환 단위의 변환 단위 패턴 정보를 확인하여 이에 기초하여 변환 계수를 주파수 역변환을 수행할 수 있다.The image data decoding unit 1540 according to the embodiment checks 6-bit Coded Depth-Coding Unit Pattern information (FIG. 18B) or 5-bit Coded Depth Coding Unit pattern information (FIG. 18C) for the second coding unit, And checks whether the encoded texture information exists in the encoding unit. If the encoded texture information is present in the encoding unit, the image data decoding unit 1540 can confirm the conversion unit pattern information of the conversion unit included in the encoding unit, and perform inverse frequency conversion on the conversion coefficient based on the information.

도 19 은 본 발명의 일 실시예에 따른 계층적 부호화 단위 패턴 정보를 도시한다.19 shows hierarchical coding unit pattern information according to an embodiment of the present invention.

최대 부호화 단위(1900)에 대해 변환 단위들(1912, 1914, 1916, 1918, 1920, 1930, 1942, 1944, 1946, 1948, 1954, 1956, 1958)이 설정되어 있고, 변환 심도에 따라 크기가 다르다. 예를 들어, 최대 부호화 단위(1900)와 동일한 크기의 변환 단위가 변환 심도 0에 대응되지만, 최대 부호화 단위(1900)는 변환 심도 0의 변환 단위를 포함하고 있지는 않다.The conversion units 1912, 1914, 1916, 1918, 1920, 1930, 1942, 1944, 1946, 1948, 1954, 1956 and 1958 are set for the maximum encoding unit 1900, . For example, although the conversion unit of the same size as the maximum encoding unit 1900 corresponds to the conversion depth 0, the maximum encoding unit 1900 does not include the conversion unit of the conversion depth 0.

변환 심도 1은 변환 심도 0의 변환 단위의 높이 및 너비를 각각 반분한 크기의 변환 단위로써, 변환 단위 1920 및 1930이 변환 심도 1에 해당한다. 이러한 방식으로 변환 단위 1912, 1914, 1916, 1918, 1954, 1956 및 1958 은 변환 심도 2에 해당하고, 변환 단위 1942, 1944, 1946 및 1948은 변환 심도 3에 해당한다.Conversion depth 1 is a conversion unit of half the height and width of a conversion unit of conversion depth 0, and conversion units 1920 and 1930 correspond to conversion depth 1. In this way, the conversion units 1912, 1914, 1916, 1918, 1954, 1956 and 1958 correspond to the conversion depth 2, and the conversion units 1942, 1944, 1946 and 1948 correspond to the conversion depth 3.

계층적 부호화 단위 패턴 정보는, 하위 변환 심도에 대한 계층적 부호화 단위 패턴 정보가 부호화될지 여부를 나타낸다. 더불어, 계층적 부호화 단위 패턴 정보에 따라 하위 변환 심도의 텍스처 정보의 부호화 여부에 관한 정보도 유추될 수 있다.The hierarchical coding unit pattern information indicates whether or not hierarchical coding unit pattern information on the lower conversion depth is to be coded. In addition, according to the hierarchical coding unit pattern information, information on whether or not the texture information of the lower transformation depth is encoded can be derived.

최대 부호화 단위(1900)는 변환 심도 0의 변환 단위가 없으므로 변환 심도 0의 상위 변환 심도 1의 변환 단위의 텍스처 정보의 부호화가 필요하다. 따라서, 변환 심도 0에 대해 1비트의 계층적 부호화 단위 패턴 정보(1960)가 설정된다.Since the maximum encoding unit (1900) does not have a conversion unit of conversion depth 0, it is necessary to encode the texture information of the conversion unit of conversion conversion depth 1 of conversion depth 0. Therefore, 1-bit hierarchical coding unit pattern information 1960 is set for the conversion depth 0.

변환 심도 1에서는, 변환 단위 1920 및 1930은 현재 변환 심도 1에서 복호화되면 되므로, 더 이상의 하위 변환 심도 2의 변환 단위의 텍스처 정보가 부호화될 필요 없다. 또한, 하위 변환 심도 2의 계층적 부호화 단위 패턴 정보가 설정될 필요도 없다. 따라서, 변환 단위 1920 및 1930 각각에 대해서는, 하위 변환 심도 2의 계층적 부호화 단위 패턴 정보의 텍스처 정보의 부호화가 필요 없음을 나타내는 변환 심도 1의 계층적 부호화 단위 패턴 정보가 1비트씩 필요하다.In the conversion depth 1, since the conversion units 1920 and 1930 are to be decoded at the current conversion depth 1, the texture information of the conversion unit of the lower conversion depth 2 need not be encoded. In addition, the hierarchical coding unit pattern information of the lower transformation depth 2 does not need to be set. Hence, for each of the conversion units 1920 and 1930, the hierarchical coding unit pattern information of the conversion depth 1 indicating that the texture information of the hierarchical coding unit pattern information of the lower conversion depth 2 need not be encoded is required for each bit.

다만, 변환 단위 1912, 1914, 1916, 1918을 포함하는 변환 심도 1의 그룹 및 변환 단위 1942, 1944, 1946, 1948, 1954, 1956, 1958을 포함하는 변환 심도 1의 그룹 각각에 대해서는, 하위 변환 심도 2의 변환 단위의 텍스처 정보의 부호화가 필요하다. 따라서, 하위 변환 심도 2의 부호화 단위 패턴 정보의 부호화가 필요하며, 이를 나타내는 변환 심도 1의 계층적 부호화 단위 패턴 정보가 상기 그룹별로 한 비트씩 설정되어야 한다.However, for each of the groups of conversion depths 1 including conversion units 1912, 1914, 1916 and 1918 and for each group of conversion depths 1 including conversion units 1942, 1944, 1946, 1948, 1954, 1956 and 1958, It is necessary to encode the texture information of the conversion unit of 2. Therefore, it is necessary to encode the coding unit pattern information of the sub-conversion depth 2, and the hierarchical coding unit pattern information of the conversion depth 1 representing the same should be set for each group by one bit.

따라서, 변환 심도 1에 대해 총 4비트의 계층적 부호화 단위 패턴 정보(1970)가 설정된다.Therefore, a total of 4 bits of hierarchical coding unit pattern information 1970 is set for the conversion depth 1.

변환 심도 2에서는, 변환 단위 1912, 1914, 1916, 1918, 1954, 1956 및 1958은 현재 변환 심도 2에서 복호화되면 되므로, 더 이상의 하위 변환 심도 3의 변환 단위의 텍스처 정보가 부호화될 필요 없으며, 하위 변환 심도 3의 계층적 부호화 단위 패턴 정보가 설정될 필요도 없다. 따라서, 변환 단위 1912, 1914, 1916, 1918, 1954, 1956 및 1958 각각에 대해서는, 하위 변환 심도 3의 계층적 부호화 단위 패턴 정보의 부호화가 필요 없음을 나타내는 변환 심도 2의 계층적 부호화 단위 패턴 정보가 변환 단위별로 1비트씩 필요하다.In the conversion depth 2, since the conversion units 1912, 1914, 1916, 1918, 1954, 1956 and 1958 are to be decoded at the current conversion depth 2, the texture information of the conversion unit of the further lower conversion depth 3 need not be encoded, The hierarchical coding unit pattern information of depth 3 need not be set. Therefore, for each of the conversion units 1912, 1914, 1916, 1918, 1954, 1956, and 1958, the hierarchical encoding unit pattern information of the conversion depth 2 indicating that the encoding of the hierarchical encoding unit pattern information of the lower conversion depth 3 is not necessary One bit per conversion unit is required.

다만, 변환 단위 1942, 1944, 1946 및 1948을 포함하는 변환 심도 2의 그룹에 대해서는, 하위 변환 심도 3의 변환 단위의 텍스처 정보의 부호화가 필요하다. 따라서, 하위 변환 심도 3의 부호화 단위 패턴 정보의 부호화가 필요하며, 이를 나타내는 변환 심도 2의 계층적 부호화 단위 패턴 정보가 한 비트 설정되어야 한다.However, for the group of the conversion depth 2 including the conversion units 1942, 1944, 1946 and 1948, it is necessary to encode the texture information of the conversion unit of the lower conversion depth 3. Therefore, it is necessary to encode the coding unit pattern information of the lower conversion depth 3, and one bit of the hierarchical coding unit pattern information of the conversion depth 2 should be set.

따라서, 변환 심도 2에 대해 총 8비트의 계층적 부호화 단위 패턴 정보(1980)가 설정된다.Therefore, a total of 8 bits of hierarchical coding unit pattern information 1980 is set for the conversion depth 2.

변환 심도 3은 최종 변환 심도이므로, 변환 단위 1942, 1944, 1946 및 1948에 대해 하위 변환 심도의 계층적 부호화 단위 패턴 정보가 부호화될 필요 없음을 나타내는 변환 심도 3의 계층적 부호화 단위 패턴 정보를 변환 단위별로 한 비트씩 설정하여야 한다. 따라서, 변환 심도 3에 대해 총 4비트의 계층적 부호화 단위 패턴 정보(1990)가 설정될 수 있다.Since the conversion depth 3 is the final conversion depth, the hierarchical coding unit pattern information of the conversion depth 3 indicating that the hierarchical coding unit pattern information of the lower conversion depth need not be encoded for the conversion units 1942, 1944, 1946 and 1948, You should set a bit by bit. Therefore, a total of 4 bits of hierarchical coding unit pattern information 1990 can be set for the conversion depth of 3.

도 20 는 본 발명의 일 실시예에 따라 부호화 단위 패턴 정보를 이용하는 비디오 부호화 방법을 도시한다.20 illustrates a video coding method using coding unit pattern information according to an embodiment of the present invention.

단계 2010에서 현재 픽처는 최대 크기의 부호화 단위인 적어도 하나의 최대 부호화 단위로 분할되고, 단계 2020에서 심도마다 최대 부호화 단위의 영역이 분할된 적어도 하나의 분할 영역으로 부호화되어, 적어도 하나의 분할 영역 별로 최종 부호화 결과가 출력될 심도가 결정된다.In step 2010, the current picture is divided into at least one maximum coding unit, which is a coding unit of the maximum size. In step 2020, the coding unit is coded into at least one divided area in which the area of the maximum coding unit is divided for each depth, The depth at which the final encoding result is output is determined.

단계 2030에서는 각각의 최대 부호화 단위마다 하나의 부호화 심도로 부호화된 영상 데이터와, 부호화 심도 및 부호화 모드에 관한 정보가 부호화되어 출력된다. 또한, 최대 부호화 단위마다 부호화 단위 패턴 정보가 부호화되어 출력된다. In step 2030, image data encoded with one coding depth for each maximum coding unit, and information on the coding depth and coding mode are coded and output. Also, the coding unit pattern information is coded and output for each maximum coding unit.

최대 부호화 단위의 부호화 단위 패턴 정보로서, 최대 부호화 단위의 부호화 심도별 부호화 단위의 텍스처 정보가 부호화되었는지 여부를 나타내는 부호화 심도 부호화 단위 패턴 정보가 부호화될 수 있다. 또한, 변환 심도에 따라 계층적으로 계층적 부호화 단위 패턴 정보가 부호화되는 경우, 각각의 변환 심도별 계층적 부호화 단위 패턴 정보는, 해당 변환 심도의 하위 변환 심도의 계층적 부호화 단위 패턴 정보가 부호화되는지 여부를 나타낸다.As the coding unit pattern information of the maximum coding unit, coding depth coding unit pattern information indicating whether or not the texture information of the coding unit of each coding depth in the maximum coding unit is coded can be encoded. When the hierarchical coding unit pattern information is coded hierarchically according to the conversion depth, the hierarchical coding unit pattern information for each conversion depth is coded in such a manner that the hierarchical coding unit pattern information of the lower conversion depth of the conversion depth is coded Respectively.

도 21 는 본 발명의 일 실시예에 따라 부호화 단위 패턴 정보를 이용하는 비디오 복호화 방법을 도시한다.FIG. 21 illustrates a video decoding method using coding unit pattern information according to an embodiment of the present invention.

단계 2110에서 부호화된 비디오에 대한 비트스트림가 수신되어 파싱된다.In step 2110, the bitstream for the encoded video is received and parsed.

단계 2120에서, 파싱된 비트스트림으로부터 최대 크기의 최대 부호화 단위에 할당되는 현재 픽처의 영상 데이터 및 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보가 추출된다. 또한, 최대 부호화 단위마다 최대 부호화 단위의 텍스처 정보가 부호화되었는지 여부를 나타내는 부호화 단위 패턴 정보가 추출된다. 최대 부호화 단위의 부호화 단위 패턴 정보로서, 최대 부호화 단위의 부호화 심도별 부호화 단위에 대한 부호화 심도 부호화 단위 패턴 정보 및 계층적 부호화 단위 패턴 정보가 추출될 수 있다.In step 2120, the image data of the current picture allocated to the maximum encoding unit of the maximum size from the parsed bit stream, and the information on the encoding depth and coding mode of each encoding unit are extracted. Also, encoding unit pattern information indicating whether or not the texture information of the maximum encoding unit is encoded is extracted for each maximum encoding unit. As the coding unit pattern information of the maximum coding unit, the coding depth coding unit pattern information and the hierarchical coding unit pattern information for the coding unit for each coding depth of the maximum coding unit can be extracted.

단계 2130에서, 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보 및 부호화 단위 패턴 정보에 기초하여, 최대 부호화 단위의 부호화된 영상 데이터가 복호화되어 영상 데이터가 복원된다. 부호화 심도 부호화 단위 패턴 정보에 기초하여, 부호화 심도의 부호화 단위의 텍스처 정보가 부호화되었는지 여부를 확인할 수 있다. 또한, 변환 심도마다 계층적 부호화 단위 패턴 정보에 기초하여 하위 변환 심도의 계층적 부호화 단위 패턴 정보가 부호화되었는지 여부를 확인할 수 있다.In step 2130, the encoded image data of the maximum encoding unit is decoded based on the information on the encoding depth and encoding mode and the encoding unit pattern information for each maximum encoding unit, and the image data is restored. It is possible to confirm whether or not the texture information of the coding unit of the coding depth is coded based on the coding depth coding unit pattern information. It is also possible to confirm whether or not the hierarchical coding unit pattern information of the lower transformation depth is coded based on the hierarchical coding unit pattern information for each conversion depth.

부호화 심도의 부호화 단위에서는, 변환 단위에 대한 변환 단위 패턴 정보에 기초하여 변환 계수가 주파수 역변환되어, 변환 단위의 부호화된 데이터가 복호화될 수 있다.In the coding unit of the coding depth, the conversion coefficient is frequency-inversely converted based on the conversion unit pattern information for the conversion unit, and the encoded data of the conversion unit can be decoded.

매크로블록 단위를 변환 단위로써 영상 데이터의 주파수 변환에 이용하는 종전 기술에서는, 영상 데이터의 주파수 변환 및 주파수 역변환시 크기 16x16 또는 8x8의 매크로블록을 변환 단위로 이용한다. 부호화 결과, 매크로블록마다 부호화 블록 패턴(Coded Block Pattern) 정보를 부호화하여 전송하고, 복호화 과정에서 이용된다.In the conventional technique using macroblock units for frequency conversion of image data as conversion units, macroblocks of 16x16 or 8x8 size are used as conversion units for frequency conversion and inverse frequency conversion of image data. As a result of encoding, coded block pattern information is encoded and transmitted for each macroblock, and is used in the decoding process.

반면에 일 실시예에 따른 계층적 구조의 부호화 단위 및 변환 단위를 기반으로 하는 부호화 단위 패턴 정보를 이용함으로써, 매크로블록보다 크거나 임의의 크기의 부호화 단위에 대해 부호화 블록 패턴 정보를 부호화할 수 있으며, 계층적 구조의 복수의 변환 단위를 포함하는 부호화 단위에 대해 통합적으로 부호화 단위 패턴 정보가 부호화될 수 있다. 따라서, 부호화 단위 패턴 정보의 부복호화 및 전송에 있어서 효율성이 향상된다.On the other hand, by using the coding unit pattern information based on the coding unit and the conversion unit of the hierarchical structure according to the embodiment, it is possible to encode the coding block pattern information for a coding unit having a size larger than a macroblock or an arbitrary size , The encoding unit pattern information can be encoded integrally with respect to the encoding units including a plurality of conversion units in a hierarchical structure. Therefore, the efficiency of coding and transmitting the coding unit pattern information is improved.

한편, 상술한 본 발명의 실시예들은 컴퓨터에서 실행될 수 있는 프로그램으로 작성가능하고, 컴퓨터로 읽을 수 있는 기록매체를 이용하여 상기 프로그램을 동작시키는 범용 디지털 컴퓨터에서 구현될 수 있다. 상기 컴퓨터로 읽을 수 있는 기록매체는 마그네틱 저장매체(예를 들면, 롬, 플로피 디스크, 하드디스크 등), 광학적 판독 매체(예를 들면, 시디롬, 디브이디 등) 및 캐리어 웨이브(예를 들면, 인터넷을 통한 전송)와 같은 저장매체를 포함한다.The above-described embodiments of the present invention can be embodied in a general-purpose digital computer that can be embodied as a program that can be executed by a computer and operates the program using a computer-readable recording medium. The computer readable recording medium may be a magnetic storage medium such as a ROM, a floppy disk, a hard disk, etc., an optical reading medium such as a CD-ROM or a DVD and a carrier wave such as the Internet Lt; / RTI > transmission).

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

Claims (5)

비트스트림으로부터 획득된 부호화 단위의 최대 크기에 대한 정보를 이용하여, 픽쳐를 적어도 하나의 최대 부호화 단위로 분할하는 단계;
상기 비트스트림으로부터 획득된 분할 정보를 이용하여 상기 적어도 하나의 최대 부호화 단위로부터 하나 이상의 부호화 단위를 결정하는 단계;
상기 하나 이상의 부호화 단위 중 현재 부호화 단위에 포함된 현재 레벨의 변환단위의 분할여부를 나타내는 변환 인덱스 정보를 상기 비트스트림으로부터 획득하는 단계;
상기 변환 인덱스 정보가 상기 현재 레벨의 변환 단위의 분할을 나타내면, 상기 현재 레벨의 변환 단위를 하위 레벨의 변환 단위들로 분할하는 단계; 및
상기 변환 인덱스 정보가 상기 현재 레벨의 변환 단위의 비분할을 나타내면, 상기 현재 레벨의 변환 단위에 대한 패턴 정보를 획득하는 단계를 포함하고,
상기 패턴 정보는 상기 현재 레벨의 변환 단위가 0이 아닌 변환 계수를 포함하는지 여부를 나타내고,
상기 현재 레벨의 변환 단위는 4개의 하위 레벨의 변환단위로 분할되는 것을 특징으로 하는 복호화 방법.
Dividing a picture into at least one maximum encoding unit using information on a maximum size of the encoding units obtained from the bitstream;
Determining one or more encoding units from the at least one maximum encoding unit using the partition information obtained from the bitstream;
Acquiring, from the bitstream, conversion index information indicating whether or not the current level conversion unit included in the current encoding unit among the one or more encoding units is divided;
Dividing the conversion unit of the current level into conversion units of lower level if the conversion index information indicates division of the conversion unit of the current level; And
And acquiring pattern information on a conversion unit of the current level if the conversion index information indicates non-division of the conversion unit of the current level,
Wherein the pattern information indicates whether the conversion unit of the current level includes a non-zero conversion coefficient,
Wherein the conversion unit of the current level is divided into four lower-level conversion units.
제 1 항에 있어서,
상기 현재 레벨의 변환 단위는 상기 현재 부호화 단위 내에 포함되고,
상기 현재 레벨의 변환 단위의 크기는 상기 부호화 단위의 크기와 같거나 보다 작은 것을 특징으로 하는 복호화 방법.
The method according to claim 1,
Wherein the current level conversion unit is included in the current encoding unit,
Wherein the size of the current level conversion unit is equal to or smaller than the size of the encoding unit.
제 2 항에 있어서,
상기 현재 레벨의 변환 단위는 상기 현재 부호화 단위의 높이 및 너비를 분할하여 결정되는 것을 특징으로 하는 복호화 방법.
3. The method of claim 2,
Wherein the current level conversion unit is determined by dividing a height and a width of the current encoding unit.
제 1 항에 있어서,
상기 현재 부호화 단위는 부호화된 비디오의 픽처가 부호화된 데이터 단위이고, 상기 현재 레벨의 변환 단위는 상기 현재 부호화 단위의 데이터가 변환된 데이터 단위인 것을 특징으로 하는 복호화 방법.
The method according to claim 1,
Wherein the current encoding unit is a data unit in which a picture of the encoded video is encoded and the conversion unit of the current level is a data unit in which the data of the current encoding unit is converted.
비트스트림으로부터 획득된 부호화 단위의 최대 크기에 대한 정보를 이용하여, 픽쳐를 적어도 하나의 최대 부호화 단위로 분할하고,
상기 비트스트림으로부터 획득된 분할 정보를 이용하여 상기 적어도 하나의 최대 부호화 단위로부터 하나 이상의 부호화 단위를 결정하고,
상기 하나 이상의 부호화 단위 중 현재 부호화 단위에 포함된 현재 레벨의 변환단위의 분할여부를 나타내는 변환 인덱스 정보를 상기 비트스트림으로부터 획득하고,
상기 변환 인덱스 정보가 상기 현재 레벨의 변환 단위의 분할을 나타내면, 상기 현재 레벨의 변환 단위를 하위 레벨의 변환 단위들로 분할하고,
상기 변환 인덱스 정보가 상기 현재 레벨의 변환 단위의 비분할을 나타내면, 상기 현재 레벨의 변환 단위에 대한 패턴 정보를 획득하는 복호화부를 포함하고,
상기 패턴 정보는 상기 현재 레벨의 변환 단위가 0이 아닌 변환 계수를 포함하는지 여부를 나타내고,
상기 현재 레벨의 변환 단위는 4개의 하위 레벨의 변환단위로 분할되는 것을 특징으로 하는 복호화 방법.
The picture is divided into at least one maximum encoding unit using information on the maximum size of the encoding units obtained from the bit stream,
Determining at least one encoding unit from the at least one maximum encoding unit using the segmentation information obtained from the bitstream,
Acquiring, from the bitstream, conversion index information indicating whether or not the conversion unit of the current level included in the current encoding unit among the one or more encoding units is divided,
And if the conversion index information indicates division of the conversion unit of the current level, the conversion unit of the current level is divided into conversion units of the lower level,
And a decoding unit for obtaining pattern information on a conversion unit of the current level if the conversion index information indicates non-division of the conversion unit of the current level,
Wherein the pattern information indicates whether the conversion unit of the current level includes a non-zero conversion coefficient,
Wherein the conversion unit of the current level is divided into four lower-level conversion units.
KR1020160058785A 2016-05-13 2016-05-13 Method and apparatus for video encoding considering hierarchical coded block pattern, and method and apparatus for video decoding considering hierarchical coded block pattern KR101676794B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020160058785A KR101676794B1 (en) 2016-05-13 2016-05-13 Method and apparatus for video encoding considering hierarchical coded block pattern, and method and apparatus for video decoding considering hierarchical coded block pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020160058785A KR101676794B1 (en) 2016-05-13 2016-05-13 Method and apparatus for video encoding considering hierarchical coded block pattern, and method and apparatus for video decoding considering hierarchical coded block pattern

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020090075337A Division KR101624649B1 (en) 2009-08-14 2009-08-14 Method and apparatus for video encoding considering hierarchical coded block pattern, and method and apparatus for video decoding considering hierarchical coded block pattern

Publications (2)

Publication Number Publication Date
KR20160058741A true KR20160058741A (en) 2016-05-25
KR101676794B1 KR101676794B1 (en) 2016-11-16

Family

ID=56114576

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020160058785A KR101676794B1 (en) 2016-05-13 2016-05-13 Method and apparatus for video encoding considering hierarchical coded block pattern, and method and apparatus for video decoding considering hierarchical coded block pattern

Country Status (1)

Country Link
KR (1) KR101676794B1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050053297A (en) * 2003-12-02 2005-06-08 학교법인 성균관대학 Method and apparatus of video encoding
US20050152453A1 (en) * 2003-12-18 2005-07-14 Samsung Electronics Co., Ltd. Motion vector estimation method and encoding mode determining method
US20060039470A1 (en) * 2004-08-19 2006-02-23 Korea Electronics Technology Institute Adaptive motion estimation and mode decision apparatus and method for H.264 video codec
KR20060021149A (en) * 2004-09-02 2006-03-07 삼성전자주식회사 Method for selecting macro block type

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050053297A (en) * 2003-12-02 2005-06-08 학교법인 성균관대학 Method and apparatus of video encoding
US20050152453A1 (en) * 2003-12-18 2005-07-14 Samsung Electronics Co., Ltd. Motion vector estimation method and encoding mode determining method
US20060039470A1 (en) * 2004-08-19 2006-02-23 Korea Electronics Technology Institute Adaptive motion estimation and mode decision apparatus and method for H.264 video codec
KR20060021149A (en) * 2004-09-02 2006-03-07 삼성전자주식회사 Method for selecting macro block type

Also Published As

Publication number Publication date
KR101676794B1 (en) 2016-11-16

Similar Documents

Publication Publication Date Title
KR101624649B1 (en) Method and apparatus for video encoding considering hierarchical coded block pattern, and method and apparatus for video decoding considering hierarchical coded block pattern
KR101675118B1 (en) Method and apparatus for video encoding considering order of skip and split, and method and apparatus for video decoding considering order of skip and split
KR101487686B1 (en) Method and apparatus for video encoding, and method and apparatus for video decoding
KR101857800B1 (en) Method and apparatus for video encoding considering order of skip and split, and method and apparatus for video decoding considering order of skip and split
KR101743248B1 (en) Method and apparatus for video encoding using pattern information of hierarchical data unit, and method and apparatus for video decoding using pattern information of hierarchical data unit
KR101617336B1 (en) Method and apparatus for video encoding, and method and apparatus for video decoding
KR101676794B1 (en) Method and apparatus for video encoding considering hierarchical coded block pattern, and method and apparatus for video decoding considering hierarchical coded block pattern
KR101676793B1 (en) Method and apparatus for video encoding considering hierarchical coded block pattern, and method and apparatus for video decoding considering hierarchical coded block pattern
KR101700368B1 (en) Method and apparatus for video encoding using pattern information of hierarchical data unit, and method and apparatus for video decoding using pattern information of hierarchical data unit
KR101624662B1 (en) Method and apparatus for video encoding considering hierarchical coded block pattern, and method and apparatus for video decoding considering hierarchical coded block pattern
KR101624661B1 (en) Method and apparatus for video encoding considering hierarchical coded block pattern, and method and apparatus for video decoding considering hierarchical coded block pattern
KR101943991B1 (en) Method and apparatus for video encoding, and method and apparatus for video decoding
KR101917656B1 (en) Method and apparatus for video encoding considering order of skip and split, and method and apparatus for video decoding considering order of skip and split
KR101768209B1 (en) Method and apparatus for video encoding considering order of skip and split, and method and apparatus for video decoding considering order of skip and split
KR101894398B1 (en) Method and apparatus for video encoding using pattern information of hierarchical data unit, and method and apparatus for video decoding using pattern information of hierarchical data unit
KR101826333B1 (en) Method and apparatus for video encoding using pattern information of hierarchical data unit, and method and apparatus for video decoding using pattern information of hierarchical data unit
KR101750052B1 (en) Method and apparatus for video encoding, and method and apparatus for video decoding
KR101785568B1 (en) Method and apparatus for video encoding using pattern information of hierarchical data unit, and method and apparatus for video decoding using pattern information of hierarchical data unit
KR101675120B1 (en) Method and apparatus for video encoding considering order of skip and split, and method and apparatus for video decoding considering order of skip and split
KR101644092B1 (en) Method and apparatus for video encoding, and method and apparatus for video decoding
KR101643621B1 (en) Method and apparatus for video encoding, and method and apparatus for video decoding
KR101573335B1 (en) Method and apparatus for video encoding, and method and apparatus for video decoding
KR101540684B1 (en) Method and apparatus for video encoding, and method and apparatus for video decoding
KR101694823B1 (en) Method and apparatus for video encoding using pattern information of hierarchical data unit, and method and apparatus for video decoding using pattern information of hierarchical data unit
KR101452862B1 (en) Method and apparatus for video encoding, and method and apparatus for video decoding

Legal Events

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

Payment date: 20191030

Year of fee payment: 4