KR102601268B1 - Method and apparatus for processing a video signal - Google Patents

Method and apparatus for processing a video signal Download PDF

Info

Publication number
KR102601268B1
KR102601268B1 KR1020180021637A KR20180021637A KR102601268B1 KR 102601268 B1 KR102601268 B1 KR 102601268B1 KR 1020180021637 A KR1020180021637 A KR 1020180021637A KR 20180021637 A KR20180021637 A KR 20180021637A KR 102601268 B1 KR102601268 B1 KR 102601268B1
Authority
KR
South Korea
Prior art keywords
block
coding
transform
transform block
asymmetric
Prior art date
Application number
KR1020180021637A
Other languages
Korean (ko)
Other versions
KR20180098159A (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 주식회사 케이티
Publication of KR20180098159A publication Critical patent/KR20180098159A/en
Application granted granted Critical
Publication of KR102601268B1 publication Critical patent/KR102601268B1/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • 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

본 발명은 비디오 신호 처리 방법 및 장치에 관한 것이다. 본 발명에 따른 영상 복호화 방법은,부호화된 신택스 요소로부터 변환 블록 코딩 지시자 정보를 확인하는 단계,상기 변환 블록 코딩 지시자 정보가 변환 블록내에 적어도 하나 이상의 유효한 변환 계수가 존재함을 지시하면,상기 변환 블록내 변환 계수를 복호화하는 단계를 포함한다.본 발명에 의하면, 부호화/복호화 대상 변환 블록을 효율적으로 처리함으로써, 영상 신호의 부호화/복호화 효율을 증가시킬 수 있다. The present invention relates to a video signal processing method and device. The video decoding method according to the present invention includes the steps of checking transform block coding indicator information from an encoded syntax element, if the transform block coding indicator information indicates that at least one valid transform coefficient exists in the transform block, the transform block It includes the step of decoding the inner transform coefficient. According to the present invention, the encoding/decoding efficiency of the video signal can be increased by efficiently processing the encoding/decoding target transform block.

Description

비디오 신호 처리 방법 및 장치{METHOD AND APPARATUS FOR PROCESSING A VIDEO SIGNAL}Video signal processing method and apparatus {METHOD AND APPARATUS FOR PROCESSING A VIDEO SIGNAL}

본 발명은 비디오 신호 처리 방법 및 장치에 관한 것이다.The present invention relates to a video signal processing method and device.

최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 응용 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 데이터량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 저장하는 경우, 전송 비용과 저장 비용이 증가하게 된다. 영상 데이터가 고해상도, 고품질화 됨에 따라 발생하는 이러한 문제들을 해결하기 위해서는 고효율의 영상 압축 기술들이 활용될 수 있다.Recently, demand for high-resolution, high-quality images such as HD (High Definition) images and UHD (Ultra High Definition) images is increasing in various application fields. As video data becomes higher resolution and higher quality, the amount of data increases relative to existing video data. Therefore, when video data is transmitted using media such as existing wired or wireless broadband lines or stored using existing storage media, transmission costs and Storage costs increase. High-efficiency video compression technologies can be used to solve these problems that arise as video data becomes higher resolution and higher quality.

영상 압축 기술로 현재 픽쳐의 이전 또는 이후 픽쳐로부터 현재 픽쳐에 포함된 화소값을 예측하는 화면 간 예측 기술, 현재 픽쳐 내의 화소 정보를 이용하여 현재 픽쳐에 포함된 화소값을 예측하는 화면 내 예측 기술, 출현 빈도가 높은 값에 짧은 부호를 할당하고 출현 빈도가 낮은 값에 긴 부호를 할당하는 엔트로피 부호화 기술 등 다양한 기술이 존재하고 이러한 영상 압축 기술을 이용해 영상 데이터를 효과적으로 압축하여 전송 또는 저장할 수 있다.Inter-screen prediction technology that predicts the pixel value included in the current picture from pictures before or after the current picture using video compression technology, intra-screen prediction technology that predicts the pixel value included in the current picture using pixel information in the current picture, There are various technologies, such as entropy coding technology, which assigns short codes to values with a high frequency of occurrence and long codes to values with a low frequency of occurrence. Using these video compression technologies, video data can be effectively compressed and transmitted or stored.

한편, 고해상도 영상에 대한 수요가 증가함과 함께, 새로운 영상 서비스로서 입체 영상 컨텐츠에 대한 수요도 함께 증가하고 있다. 고해상도 및 초고해상도의 입체 영상 콘텐츠를 효과적으로 제공하기 위한 비디오 압축 기술에 대하여 논의가 진행되고 있다.Meanwhile, as the demand for high-resolution video increases, the demand for three-dimensional video content as a new video service is also increasing. Discussions are underway regarding video compression technology to effectively provide high-resolution and ultra-high-resolution stereoscopic video content.

본 발명은 영상 신호를 부호화/복호화함에 있어서, 부호화/복호화 대상 블록을 효과적으로 분할할 수 있는 멀티 트리 파티셔닝 방법 및 장치를 제공하는 것을 목적으로 한다.The purpose of the present invention is to provide a multi-tree partitioning method and device that can effectively divide encoding/decoding target blocks when encoding/decoding video signals.

본 발명은 영상 신호를 부호화/복호화함에 있어서, 부호화/복호화 대상 블록을 대칭 형태 또는 비대칭 형태의 블록으로 분할하는 멀티 트리 파티셔닝 방법 및 장치를 제공하는 것을 목적으로 한다.The purpose of the present invention is to provide a multi-tree partitioning method and device for dividing an encoding/decoding target block into symmetric or asymmetric blocks when encoding/decoding a video signal.

본 발명은 멀티 트리 파티셔닝에의해 분할된 코딩 블록에 대응하는 변환 블록내의 변환 계수를 부호화 및/또는복호화 하는 방법 및 장치를 제공하는 것을 목적으로 한다.The purpose of the present invention is to provide a method and device for encoding and/or decoding transform coefficients in a transform block corresponding to a coding block divided by multi-tree partitioning.

본 발명은 상기 부호화 방법에 의해 부호화된 영상 신호 비트스트림을포함하는 기록매체를 제공하는 것을 목적으로 한다.The purpose of the present invention is to provide a recording medium containing a video signal bitstream encoded by the above encoding method.

본 발명에서 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급하지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved in the present invention are not limited to the technical problems mentioned above, and other technical problems not mentioned will be clearly understood by those skilled in the art from the description below. You will be able to.

본 발명에 따른 영상 복호화 방법은, 부호화된 신택스 요소로부터, 변환 블록 코딩 지시자 정보를 확인하는 단계, 및 상기 변환 블록 코딩 지시자 정보가 변환 블록내에 적어도 하나 이상의 유효한 변환 계수가 존재함을 지시하면, 상기 변환 블록내 변환 계수를 복호화하는 단계를 포함한다.The video decoding method according to the present invention includes the steps of checking transform block coding indicator information from an encoded syntax element, and if the transform block coding indicator information indicates that at least one valid transform coefficient exists in a transform block, It includes the step of decoding the transform coefficients in the transform block.

또한, 상기 변환 블록 코딩 지시자 정보가 변환 블록내에 적어도 하나 이상의 유효한 변환 계수가 존재함을 지시하는 것이 아니면, 상기 변환 블록내 모든 변환 계수를 기결정된 값으로 설정한다. Additionally, if the transform block coding indicator information does not indicate that at least one valid transform coefficient exists in the transform block, all transform coefficients in the transform block are set to predetermined values.

또한, 상기 변환 블록이 인터 예측 모드에 의해 생성된 블록으로 판단되는 경우에만, 상기 변환 블록 코딩 지시자 정보를 확인한다. Additionally, only when the transform block is determined to be a block generated by inter prediction mode, the transform block coding indicator information is checked.

또한, 상기 변환 계수를 복호화하는 단계는, 상기 변환 블록에 대응하는 색차신호 성분 지시자 신택스 요소 (cbf_cb, cbf_cr)가 모두 '0'이 아닌 경우에만, 변환 블록에 대응하는 휘도신호 성분 지시자 신택스 요소 (cbf_luma)를 검출하여 복호화한다.In addition, the step of decoding the transform coefficient involves using a luminance signal component indicator syntax element ( cbf_luma) is detected and decrypted.

또한, 상기 변환 블록에 대응하는 색차신호 성분 지시자 신택스 요소 (cbf_cb, cbf_cr) 중 적어도 어느 하나가 '0'인 경우에는, 변환 블록에 대응하는 휘도신호 성분 지시자 신택스 요소(cbf_luma)를 고려하지 않는다.Additionally, when at least one of the chrominance signal component indicator syntax elements (cbf_cb, cbf_cr) corresponding to the transform block is '0', the luminance signal component indicator syntax element (cbf_luma) corresponding to the transform block is not considered.

또한, 상기 코딩 블록의 크기를 기결정된 기준 크기와 비교하고, 상기 비교 결과 기준 크기 이상인 코딩 블록에 대해서만, 상기 변환 블록 코딩 지시자 정보를 확인한다.Additionally, the size of the coding block is compared with a predetermined reference size, and the transform block coding indicator information is checked only for coding blocks whose size is larger than the reference size as a result of the comparison.

또한, 상기 코딩 블록의 형태를 확인하고, 코딩 블록이 정방형인 경우에만, 상기 변환 블록 코딩 지시자 정보를 확인한다.Additionally, the shape of the coding block is checked, and only when the coding block is square, the transform block coding indicator information is checked.

또한, 상기 코딩 블록의 파티셔닝 타입을 확인하고, 코딩 블록이 쿼드 트리 파티셔닝으로 분할된 경우에만, 상기 변환 블록 코딩 지시자 정보를 확인한다.Additionally, the partitioning type of the coding block is checked, and only when the coding block is divided by quad tree partitioning, the transform block coding indicator information is checked.

본 발명에 따른 또 다른 영상 복호화 방법은, 부호화된 신택스 요소로부터 변환 블록이 적어도 하나 이상의 서브 변환 블록으로 구분되고, 상기 구분된 각 서브 변환 블록에 대응하는 서브 블록 코딩 지시자 정보(CSBF)를 확인하는 단계, 및 상기 서브 블록 코딩 지시자 정보(CSBF)가 상기 서브 변환 블록내에 적어도 하나 이상의 유효한 변환 계수가 존재함을 지시하면, 상기 서브 변환 블록내 변환 계수를 복호화하는 단계를 포함한다.Another video decoding method according to the present invention involves dividing a transform block into at least one sub-transform block from an encoded syntax element, and checking sub-block coding indicator information (CSBF) corresponding to each divided sub-transform block. and, when the sub-block coding indicator information (CSBF) indicates that at least one valid transform coefficient exists in the sub-transform block, decoding the transform coefficient in the sub-transform block.

또한, 상기 코딩 블록의 크기를 기결정된 기준 크기와 비교하고, 상기 비교 결과 기준 크기 이상인 코딩 블록에 대해서만, 상기 서브 블록 코딩 지시자 정보(CSBF)를 확인한다.In addition, the size of the coding block is compared with a predetermined reference size, and the sub-block coding indicator information (CSBF) is checked only for coding blocks whose size is larger than the reference size as a result of the comparison.

또한, 상기 코딩 블록의 크기를 기결정된 기준 크기와 비교하고, 상기 비교 결과 기준 크기 이상인 코딩 블록에 대해서는, NxN 서브 변환 블록 단위마다 서브 블록 코딩 지시자 정보(CSBF)를 확인하고, 상기 비교 결과 기준 크기 보다 작은 코딩 블록에 대해서는, MxM (M<N) 서브 변환 블록 단위마다 서브 블록 코딩 지시자 정보(CSBF)를 확인한다.In addition, the size of the coding block is compared with a predetermined reference size, and for coding blocks that are larger than the standard size as a result of the comparison, sub-block coding indicator information (CSBF) is checked for each NxN sub-transform block unit, and the standard size as a result of the comparison is checked. For smaller coding blocks, sub-block coding indicator information (CSBF) is checked for each MxM (M<N) sub-transform block unit.

또한, 상기 코딩 블록의 형태를 확인하고, 코딩 블록이 정방형인 경우에는, 상기 서브 블록 코딩 지시자 정보(CSBF)를 확인한다.Additionally, the shape of the coding block is checked, and if the coding block is square, the sub-block coding indicator information (CSBF) is checked.

또한, 상기 코딩 블록의 형태를 확인하고, 코딩 블록이 비정방형 극소 비대칭인 경우에는, 상기 서브 블록 코딩 지시자 정보(CSBF)가 적용되는 서브 변환 블록 단위를 확인하고, 상기 확인된 서브 변환 블록 단위마다, 상기 서브 블록 코딩 지시자 정보(CSBF)를 확인한다.In addition, the type of the coding block is confirmed, and if the coding block is non-square and minimally asymmetric, the sub-transform block unit to which the sub-block coding indicator information (CSBF) is applied is confirmed, and each confirmed sub-transform block unit is checked. , check the sub-block coding indicator information (CSBF).

또한, 상기 코딩 블록이 비정방형 극소 비대칭인 경우에는, 상기 서브 블록 코딩 지시자 정보(CSBF)가 적용되는 서브 변환 블록 단위는, 적어도 너비 또는 높이중 어느 하나가기결정된 크기 보다 작은 값을 가진다. 상기 기결정된 크기는 4 이하로 정의할 수 있다.In addition, when the coding block is non-square and minimally asymmetric, the sub-transform block unit to which the sub-block coding indicator information (CSBF) is applied has at least one of width or height smaller than the predetermined size. The predetermined size may be defined as 4 or less.

또한, 상기 코딩 블록이 비정방형 극소 비대칭인 경우에는, 상기 서브 블록 코딩 지시자 정보(CSBF)가 적용되는 서브 변환 블록 단위는, 적어도 너비 또는 높이중 어느 하나는 1 인 값을 가진다.In addition, when the coding block is non-square and minimally asymmetric, the sub-transform block unit to which the sub-block coding indicator information (CSBF) is applied has at least one of width or height having a value of 1.

또한, 상기 코딩 블록이 비정방형 극소 비대칭인 경우에는, 상기 서브 블록 코딩 지시자 정보(CSBF)가 적용되는 서브 변환 블록 단위는, 서브 변환 블록내에 포함되는 샘플 수를 기준으로 구분된다.In addition, when the coding block is non-square and minimally asymmetric, the sub-transform block unit to which the sub-block coding indicator information (CSBF) is applied is divided based on the number of samples included in the sub-transform block.

본 발명에 따른 영상 부호화 방법은, 파티셔닝된 현재 코딩 블록의 크기가 기준 크기 이상인 경우에는, 상기 현재 코딩 블록내의 변환 블록을 부호화하는 단계, 및 상기 부호화된 변환 블록에 유효한 변환 계수가 존재하는 지를 판단하여, 상기 변환 블록마다 변환 블록 코딩 지시자 정보를 시그날링하는 단계를 포함하되, 상기 변환 블록 코딩 지시자 정보는상기 변환 블록내에 적어도 하나 이상의 유효한 변환 계수가 존재하는 지 여부를 지시한다.The video encoding method according to the present invention includes, when the size of the partitioned current coding block is larger than the reference size, encoding a transform block in the current coding block, and determining whether a valid transform coefficient exists in the encoded transform block. Thus, it includes signaling transform block coding indicator information for each transform block, wherein the transform block coding indicator information indicates whether at least one valid transform coefficient exists in the transform block.

본 발명에 따른 다른 영상 부호화 방법은, 파티셔닝된 현재 코딩 블록의 크기가 기준 크기 이상인 경우에는, 상기 현재 코딩 블록내의 변환 블록을 적어도 하나 이상의 서브 변환 블록으로 구분하는 단계, 및 상기 서브 변환 블록에 유효한 변환 계수가 존재하는 지를 판단하여, 상기 구분된 상기 서브 변환 블록 마다 서브 블록 코딩 지시자 정보(CSBF)를 시그날링하는 단계를 포함하되, 상기 서브 변환 블록 코딩 지시자 정보는 상기 서브 변환 블록내에 적어도 하나 이상의 유효한 변환 계수가 존재하는 지 여부를 지시한다.Another video encoding method according to the present invention includes, when the size of the partitioned current coding block is larger than the reference size, dividing the transform block in the current coding block into at least one sub-transform block, and valid for the sub-transform block. Determining whether a transform coefficient exists and signaling sub-block coding indicator information (CSBF) for each of the divided sub-transform blocks, wherein the sub-transform block coding indicator information is present in at least one sub-transform block in the sub-transform block. Indicates whether a valid conversion coefficient exists.

본 발명에 따른 영상 복호화 장치는, 부호화된 신택스 요소로부터 변환 블록 코딩 지시자 정보를 확인하고, 상기 변환 블록 코딩 지시자 정보가 변환 블록내에 적어도 하나 이상의 유효한 변환 계수가 존재함을 지시하면, 상기 변환 블록내 변환 계수를 복호화하는 복호화기를 포함한다.The video decoding device according to the present invention checks transform block coding indicator information from an encoded syntax element, and if the transform block coding indicator information indicates that at least one valid transform coefficient exists in the transform block, It includes a decoder that decodes the transform coefficient.

본 발명에 따른 다른 영상 복호화 장치는, 부호화된 신택스 요소로부터 변환 블록이 적어도 하나 이상의 서브 변환 블록으로 구분되고, 상기 구분된 각 서브 변환 블록에 대응하는 서브 블록 코딩 지시자 정보(CSBF)를 확인하고, 상기 서브 블록 코딩 지시자 정보(CSBF)가 상기 서브 변환 블록내에 적어도 하나 이상의 유효한 변환 계수가 존재함을 지시하면, 상기 서브 변환 블록내 변환 계수를 복호화하는 복호화기를 포함한다.Another video decoding device according to the present invention divides a transform block into at least one sub-transform block from an encoded syntax element, checks sub-block coding indicator information (CSBF) corresponding to each divided sub-transform block, and When the sub-block coding indicator information (CSBF) indicates that at least one valid transform coefficient exists in the sub-transform block, it includes a decoder that decodes the transform coefficient in the sub-transform block.

본 발명에 따른, 영상 신호 비트스트림을 포함하는 기록매체에 있어서,상기 기록매체에 포함된 영상 신호 비트스트림은,파티셔닝된 현재 코딩 블록의 크기가 기준 크기 이상인 경우에는, 상기 현재 코딩 블록내의 변환 블록을 부호화하는 단계, 및 상기 부호화된 변환 블록에 유효한 변환 계수가 존재하는 지를 판단하여, 상기 변환 블록 마다 변환 블록 코딩 지시자 정보를 시그날링하는 단계를 포함하되, 상기 변환 블록 코딩 지시자 정보는 변환 블록내에 적어도 하나 이상의 유효한 변환 계수가 존재하는 지 여부를 지시하는 영상 부호화방법에 의해 부호화된 것을 특징으로 한다.According to the present invention, in a recording medium including a video signal bitstream, the video signal bitstream included in the recording medium is a transform block in the current coding block when the size of the partitioned current coding block is larger than the reference size. Encoding, and determining whether a valid transform coefficient exists in the encoded transform block, and signaling transform block coding indicator information for each transform block, wherein the transform block coding indicator information is stored in the transform block. It is characterized by being encoded using an image encoding method that indicates whether at least one valid transformation coefficient exists.

본 발명에 따른, 영상 신호 비트스트림을 포함하는 또 다른 기록매체에 있어서,상기 기록매체에 포함된 영상 신호 비트스트림은,파티셔닝된 현재 코딩 블록의 크기가 기준 크기 이상인 경우에는, 상기 현재 코딩 블록내의 변환 블록을 적어도 하나 이상의 서브 변환 블록으로 구분하는 단계, 상기 서브 변환 블록에 유효한 변환 계수가 존재하는 지를 판단하여, 상기 구분된 상기 서브 변환 블록 마다 서브 블록 코딩 지시자 정보(CSBF)를 시그날링하는 단계를 포함하되, 상기 서브 변환 블록 코딩 지시자 정보는상기 서브 변환 블록내에 적어도 하나 이상의 유효한 변환 계수가 존재하는 지 여부를 지시하는영상 부호화 방법에 의해 부호화된 것을 특징으로 한다.In another recording medium including a video signal bitstream according to the present invention, the video signal bitstream included in the recording medium is, when the size of the partitioned current coding block is larger than the reference size, the video signal bitstream within the current coding block. Dividing a transform block into at least one sub-transform block, determining whether a valid transform coefficient exists in the sub-transform block, and signaling sub-block coding indicator information (CSBF) for each of the divided sub-transform blocks. Including, wherein the sub-transform block coding indicator information is characterized in that it is encoded by a video encoding method that indicates whether at least one valid transform coefficient exists in the sub-transform block.

본 발명에 대하여 위에서 간략하게 요약된 특징들은 후술하는 본 발명의 상세한 설명의 예시적인 양상일 뿐이며, 본 발명의 범위를 제한하는 것은 아니다.The features briefly summarized above with respect to the present invention are merely exemplary aspects of the detailed description of the present invention that follows, and do not limit the scope of the present invention.

본 발명에 의하면, 효율적으로 부호화/복호화 대상 블록을 분할함으로써, 영상 신호의 부호화/복호화 효율을 증가시킬 수 있다.According to the present invention, the encoding/decoding efficiency of a video signal can be increased by efficiently dividing the encoding/decoding target block.

본 발명에 의하면, 부호화/복호화 대상 블록을 대칭 형태 또는 비대칭 형태의 블록으로 분할함으로써 영상 신호의 부호화/복호화 효율을 증가시킬 수 있다.According to the present invention, the encoding/decoding efficiency of a video signal can be increased by dividing the encoding/decoding target block into symmetric or asymmetric blocks.

본 발명에 의하면, 부호화/복호화 대상 변환 블록을 효율적으로 처리함으로써, 영상 신호의 부호화/복호화 효율을 증가시킬 수 있다. According to the present invention, the encoding/decoding efficiency of a video signal can be increased by efficiently processing the conversion block to be encoded/decoded.

본 발명에서 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The effects that can be obtained from the present invention are not limited to the effects mentioned above, and other effects not mentioned can be clearly understood by those skilled in the art from the description below. will be.

도 1은 본 발명의 일 실시예에 따른 영상 부호화 장치를 나타낸 블록도이다.
도 2는 본 발명의 일 실시예에 따른 영상 복호화 장치를 나타낸 블록도이다.
도 3은 코딩 블록이 화면 간 예측으로 부호화되었을 때, 코딩 블록에 적용될 수 있는 파티션 모드를 예시한 도면이다.
도 4는 발명이 적용되는 일 실시예로서, 쿼드 트리(Quad tree) 및 바이너리 트리(Binary tree) 분할(partitioning)이 허용되는 파티션 형태를 나타낸 도면이다.
도 5는 본 발명이 적용되는 일 실시예로서, 쿼드 트리 및 바이너리 트리 분할에 기반하여 코딩 블록을 계층적으로 분할하는 일예를 도시한 것이다.
도 6은 본 발명이 적용되는 일 실시예로서, 쿼드 트리 및 대칭형 바이너리 트리 분할에 기반하여 코딩 블록을 계층적으로 분할하는 일예를 도시한 것이다.
도 7은 본 발명이 적용되는 일 실시예로서, 비대칭형 바이너리 트리 분할이 허용되는 파티션 형태를 나타낸 도면이다.
도 8은 본 발명이 적용되는 일 실시예로서, 쿼드 트리 및 대칭형/비대칭형 바이너리 트리 분할에 기반한 코딩 블록의 분할 형태를 예시한 것이다.
도 9는 본 발명이 적용되는 일 실시예로서, 쿼드 트리 및 바이너리 트리 분할에 기반한 코딩 블록 분할 방법에 대한 흐름도이다.
도 10은 본 발명이 적용되는 일 실시예로서, 쿼드 트리 및 바이너리 트리 분할이 적용되는 네트워크 추상화 계층 (NAL)에 포함되는 신택스 요소(syntax element)를 예를 들어 도시한 것이다.
도 11은 본 발명이 적용되는 다른 실시예로서, 비대칭형 쿼드 트리 분할이 허용되는 파티션 형태를 나타낸 도면이다.
도 12는 본 발명이 적용되는 다른 실시예로서, 비대칭형 쿼드 트리 분할에 기반한 코딩 블록 분할 방법에 대한 흐름도이다.
도 13은 본 발명이 적용되는 다른 실시예로서, 비대칭형 쿼드 트리 분할이 적용되는 네트워크 추상화 계층 (NAL)에 포함되는 신택스 요소(syntax element)를 예를 들어 도시한 것이다.
도 14는 본 발명이 적용되는 또 다른 실시예로서, 쿼드 트리 및 트리플 트리 분할이 허용되는 파티션 형태를 나타낸 도면이다.
도 15는 본 발명이 적용되는 또 다른 실시예로서, 쿼드 트리 및 트리플 트리 분할 에 기반한 코딩 블록 분할 방법에 대한 흐름도이다.
도 16은 본 발명이 적용되는 또 다른 실시예로서, 쿼드 트리 및 트리플 트리 분할이 적용되는 네트워크 추상화 계층 (NAL)에 포함되는 신택스 요소(syntax element)를 예를 들어 도시한 것이다.
도 17은 본 발명이 적용되는 또 다른 실시예로서, 멀티 트리 분할이 허용되는 기본 파티션 형태를 나타낸 도면이다.
도 18은 본 발명이 적용되는 또 다른 실시예로서, 멀티 트리 분할이 허용되는 확장된 파티션 형태를 나타낸 도면이다.
도 19는 본 발명이 적용되는 또 다른 실시예로서, 멀티 트리 분할에 기반한 코딩 블록 분할 방법에 대한 흐름도이다.
도 20은 본 발명이 적용되는 또 다른 실시예로서, 멀티 트리 분할에 의해 분할된 코딩 블록에 대응하는 변환 블록의 변환블록 코딩 지시자 정보를 설명하기 위해 도시한 것이다.
도 21 및 도 22는 본 발명이 적용되는 또 다른 실시예로서, 변환 블록의 변환 블록 코딩 지시자 정보를 이용한 영상 복호화 방법을 도시한 것이다.
도 23 내지 도 26은, 본 발명이 적용되는 또 다른 실시예들로서, 변환 블록의 변환 블록 코딩 지시자 정보를 이용한 영상 부호화 방법을 도시한 것이다.
도 27 및 도 28은 본 발명이 적용되는 또 다른 실시예로서, 변환 블록의 변환 블록 코딩 지시자 정보를 이용한 또 다른 영상 복호화 방법을 도시한 것이다.
도 29는 본 발명이 적용되는 또 다른 실시예로서, 변환 블록을 복수의 서브 변환 블록으로 구분하고, 각 서브 변환 블록별 구비되는 서브 블록 코딩 지시자 정보를 설명하기 위해 도시한 것이다.
도 30 내지 도 32는 본 발명이 적용되는 또 다른 실시예로서, 변환 블록을 복수의 서브 변환 블록으로 구분하는 다양한 실시예 및 구분된 서브 변환 블록별 서브 블록 코딩 지시자를 도시한 것이다.
도 33은본 발명이 적용되는 또 다른 실시예로서, 서브 변환 블록별 서브 블록 코딩 지시자를 이용한 영상 부호화 방법을 도시한 것이다.
도34는, 본 발명이 적용되는 또 다른 실시예로서, 비정방 코딩 블록에 대응하는 서브 변환 블록별 서브 블록 코딩 지시자를 이용한 영상 부호화 방법을 도시한 것이다.
도35는, 본 발명이 적용되는 또 다른 실시예로서, 극소 비대칭 코딩 블록에 대응하는 서브 변환 블록별 서브 블록 코딩 지시자를 이용한 영상 부호화 방법을 도시한 것이다.
도36은 본 발명이 적용되는 또 다른 실시예로서, 극소 비대칭 코딩 블록에 대응하는 서브 변환 블록별 서브 블록 코딩 지시자를 이용한 영상 복호화 방법을 도시한 것이다.
도37은 본 발명이 적용되는 또 다른 실시예로서, 변환 블록에 적용되는 네트워크 추상화 계층(NAL)에 포함되는 신택스 요소(syntax element)를 예를들어 도시한 것이다.
Figure 1 is a block diagram showing a video encoding device according to an embodiment of the present invention.
Figure 2 is a block diagram showing an image decoding device according to an embodiment of the present invention.
Figure 3 is a diagram illustrating a partition mode that can be applied to a coding block when the coding block is encoded with inter-screen prediction.
FIG. 4 is a diagram illustrating a partition type in which quad tree and binary tree partitioning is allowed, as an embodiment to which the invention is applied.
Figure 5 is an embodiment to which the present invention is applied, showing an example of hierarchically dividing a coding block based on quad tree and binary tree division.
Figure 6 is an embodiment to which the present invention is applied, showing an example of hierarchically partitioning a coding block based on quad tree and symmetric binary tree partitioning.
Figure 7 is an embodiment to which the present invention is applied, and is a diagram showing a partition type in which asymmetric binary tree division is permitted.
Figure 8 is an embodiment to which the present invention is applied, illustrating the division form of a coding block based on quad tree and symmetric/asymmetric binary tree division.
Figure 9 is a flowchart of a coding block partitioning method based on quad tree and binary tree partitioning as an embodiment to which the present invention is applied.
Figure 10 is an embodiment to which the present invention is applied, showing as an example a syntax element included in a network abstraction layer (NAL) to which quad tree and binary tree partitioning is applied.
Figure 11 is another embodiment to which the present invention is applied, a diagram showing a partition type in which asymmetric quad tree partitioning is permitted.
Figure 12 is a flowchart of a coding block partitioning method based on asymmetric quad tree partitioning as another embodiment to which the present invention is applied.
Figure 13 is another embodiment to which the present invention is applied, showing as an example a syntax element included in a network abstraction layer (NAL) to which asymmetric quad tree partitioning is applied.
Figure 14 is another embodiment to which the present invention is applied, a diagram showing a partition type in which quad tree and triple tree division is permitted.
Figure 15 is another embodiment to which the present invention is applied, a flowchart of a coding block partitioning method based on quad tree and triple tree partitioning.
Figure 16 is another embodiment to which the present invention is applied, showing as an example a syntax element included in a network abstraction layer (NAL) to which quad tree and triple tree partitioning is applied.
Figure 17 is another embodiment to which the present invention is applied, and is a diagram showing a basic partition type to which multi-tree division is permitted.
Figure 18 is another embodiment to which the present invention is applied, a diagram showing an extended partition form that allows multi-tree division.
Figure 19 is a flowchart of a coding block division method based on multi-tree division as another embodiment to which the present invention is applied.
Figure 20 is another embodiment to which the present invention is applied, and is shown to explain transform block coding indicator information of a transform block corresponding to a coding block divided by multi-tree division.
Figures 21 and 22 are another embodiment to which the present invention is applied, showing an image decoding method using transform block coding indicator information of a transform block.
Figures 23 to 26 show another embodiment to which the present invention is applied and illustrate an image encoding method using transform block coding indicator information of a transform block.
Figures 27 and 28 are another embodiment to which the present invention is applied, showing another image decoding method using transform block coding indicator information of a transform block.
Figure 29 is another embodiment to which the present invention is applied, dividing a transform block into a plurality of sub-transform blocks and illustrating sub-block coding indicator information provided for each sub-transform block.
Figures 30 to 32 are another embodiment to which the present invention is applied, showing various embodiments of dividing a transform block into a plurality of sub-transform blocks and a sub-block coding indicator for each divided sub-transform block.
Figure 33 is another embodiment to which the present invention is applied, showing an image encoding method using a sub-block coding indicator for each sub-transformation block.
Figure 34 is another embodiment to which the present invention is applied, showing an image encoding method using a sub-block coding indicator for each sub-transform block corresponding to a non-square coding block.
Figure 35 is another embodiment to which the present invention is applied, showing an image encoding method using a sub-block coding indicator for each sub-transform block corresponding to a very asymmetric coding block.
Figure 36 is another embodiment to which the present invention is applied, showing an image decoding method using a sub-block coding indicator for each sub-transform block corresponding to a very asymmetric coding block.
Figure 37 is another embodiment to which the present invention is applied, showing as an example a syntax element included in a network abstraction layer (NAL) applied to a transform block.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다.Since the present invention can make various changes and have various embodiments, specific embodiments will be illustrated in the drawings and described in detail in the detailed description. However, this is not intended to limit the present invention to specific embodiments, and should be understood to include all changes, equivalents, and substitutes included in the spirit and technical scope of the present invention. While describing each drawing, similar reference numerals are used for similar components.

제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.Terms such as first, second, etc. may be used to describe various components, but the components should not be limited by the terms. The above terms are used only for the purpose of distinguishing one component from another. For example, a first component may be named a second component, and similarly, the second component may also be named a first component without departing from the scope of the present invention. The term and/or includes any of a plurality of related stated items or a combination of a plurality of related stated items.

본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in this application are only used to describe specific embodiments and are not intended to limit the invention. Singular expressions include plural expressions unless the context clearly dictates otherwise. In this application, terms such as “comprise” or “have” are intended to designate the presence of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification, but are not intended to indicate the presence of one or more other features. It should be understood that this does not exclude in advance the possibility of the existence or addition of elements, numbers, steps, operations, components, parts, or combinations thereof.

또한, 본 출원에서 사용한 “유닛(unit)”은 “블록(block)”으로 대체할 수 있으며, 따라서, 본 명세서에서 “코딩 트리 유닛”과 “코딩 트리 블록”, “코딩 유닛”과 “코딩 블록”, “예측 유닛”과 “예측 블록”, “변환 유닛”과 “변환 블록”은 각각 동일한 의미로 해석할 수 있다.In addition, “unit” used in this application can be replaced with “block,” and therefore, in this specification, “coding tree unit” and “coding tree block”, “coding unit” and “coding block”. ”, “Prediction unit” and “Prediction block”, “Conversion unit” and “Conversion block” can each be interpreted to have the same meaning.

이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성요소에 대해서는 동일한 참조부호를 사용하고 동일한 구성요소에 대해서 중복된 설명은 생략한다.Hereinafter, preferred embodiments of the present invention will be described in more detail with reference to the attached drawings. Hereinafter, the same reference numerals will be used for the same components in the drawings, and duplicate descriptions of the same components will be omitted.

도 1은 본 발명의 일실시예에 따른 영상 부호화 장치를 나타낸 블록도이다. Figure 1 is a block diagram showing a video encoding device according to an embodiment of the present invention.

도 1을 참조하면, 영상 부호화 장치(100)는 픽쳐 분할부(110), 예측부(120, 125), 변환부(130), 양자화부(135), 재정렬부(160), 엔트로피 부호화부(165), 역양자화부(140), 역변환부(145), 필터부(150) 및 메모리(155)를 포함할 수 있다.Referring to FIG. 1, the image encoding device 100 includes a picture segmentation unit 110, prediction units 120 and 125, a conversion unit 130, a quantization unit 135, a reordering unit 160, and an entropy encoding unit ( 165), an inverse quantization unit 140, an inverse transform unit 145, a filter unit 150, and a memory 155.

도 1에 나타난 각 구성부들은 영상 부호화 장치에서 서로 다른 특징적인 기능들을 나타내기 위해 독립적으로 도시한 것으로, 각 구성부들이 분리된 하드웨어나 하나의 소프트웨어 구성단위로 이루어짐을 의미하지 않는다. 즉, 각 구성부는 설명의 편의상 각각의 구성부로 나열하여 포함한 것으로 각 구성부 중 적어도 두 개의 구성부가 합쳐져 하나의 구성부로 이루어지거나, 하나의 구성부가 복수개의 구성부로 나뉘어져 기능을 수행할 수 있고 이러한 각 구성부의 통합된 실시예 및 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.Each component shown in FIG. 1 is shown independently to represent different characteristic functions in the video encoding device, and does not mean that each component is comprised of separate hardware or a single software component. That is, each component is listed and included as a separate component for convenience of explanation, and at least two of each component can be combined to form one component, or one component can be divided into a plurality of components to perform a function, and each of these components can be divided into a plurality of components. Integrated embodiments and separate embodiments of the constituent parts are also included in the scope of the present invention as long as they do not deviate from the essence of the present invention.

또한, 일부의 구성 요소는 본 발명에서 본질적인 기능을 수행하는 필수적인 구성 요소는 아니고 단지 성능을 향상시키기 위한 선택적 구성 요소일 수 있다. 본 발명은 단지 성능 향상을 위해 사용되는 구성 요소를 제외한 본 발명의 본질을 구현하는데 필수적인 구성부만을 포함하여 구현될 수 있고, 단지 성능 향상을 위해 사용되는 선택적 구성 요소를 제외한 필수 구성 요소만을 포함한 구조도 본 발명의 권리범위에 포함된다.Additionally, some components may not be essential components that perform essential functions in the present invention, but may simply be optional components to improve performance. The present invention can be implemented by including only essential components for implementing the essence of the present invention excluding components used only to improve performance, and a structure including only essential components excluding optional components used only to improve performance. is also included in the scope of rights of the present invention.

픽쳐 분할부(110)는 입력된 픽쳐를 적어도 하나의 처리 단위로 분할할 수 있다. 이때, 처리 단위는 예측 단위(Prediction Unit: PU)일 수도 있고, 변환 단위(Transform Unit: TU)일 수도 있으며, 부호화 단위(Coding Unit: CU)일 수도 있다. 픽쳐 분할부(110)에서는 하나의 픽쳐에 대해 복수의 부호화 단위, 예측 단위 및 변환 단위의 조합으로 분할하고 소정의 기준(예를 들어, 비용 함수)으로 하나의 부호화 단위, 예측 단위 및 변환 단위 조합을 선택하여 픽쳐를 부호화 할 수 있다.The picture division unit 110 may divide the input picture into at least one processing unit. At this time, the processing unit may be a prediction unit (PU), a transformation unit (TU), or a coding unit (CU). The picture division unit 110 divides one picture into a combination of a plurality of coding units, prediction units, and transformation units, and combines one coding unit, prediction unit, and transformation unit based on a predetermined standard (for example, a cost function). You can encode the picture by selecting .

예를 들어, 하나의 픽쳐는 복수개의 부호화 단위로 분할될 수 있다. 픽쳐에서 부호화 단위를 분할하기 위해서는 쿼드 트리 구조(Quad Tree Structure)와 같은 재귀적인 트리 구조를 사용할 수 있는데 하나의 영상 또는 최대 크기 부호화 단위(largest coding unit)를 루트로 하여 다른 부호화 단위로 분할되는 부호화 유닛은 분할된 부호화 단위의 개수만큼의 자식 노드를 가지고 분할될 수 있다. 일정한 제한에 따라 더 이상 분할되지 않는 부호화 단위는 리프 노드가 된다. 즉, 하나의 코딩 유닛에 대하여 정방형 분할만이 가능하다고 가정하는 경우, 하나의 부호화 단위는 최대 4개의 다른 부호화 단위로 분할될 수 있다.For example, one picture may be divided into a plurality of coding units. To split the coding unit in a picture, a recursive tree structure such as the Quad Tree Structure can be used. Coding is split into other coding units with one image or the largest coding unit as the root. A unit can be divided into child nodes equal to the number of divided coding units. A coding unit that is no longer divided according to certain restrictions becomes a leaf node. That is, assuming that only square division is possible for one coding unit, one coding unit can be divided into up to four different coding units.

이하, 본 발명의 실시예에서는 부호화 단위는 부호화를 수행하는 단위의 의미로 사용할 수도 있고, 복호화를 수행하는 단위의 의미로 사용할 수도 있다.Hereinafter, in the embodiments of the present invention, the coding unit may be used to mean a unit that performs encoding, or may be used to mean a unit that performs decoding.

예측 단위는 하나의 부호화 단위 내에서 동일한 크기의 적어도 하나의 정사각형 또는 직사각형 등의 형태를 가지고 분할된 것일 수도 있고, 하나의 부호화 단위 내에서 분할된 예측 단위 중 어느 하나의 예측 단위가 다른 하나의 예측 단위와 상이한 형태 및/또는 크기를 가지도록 분할된 것일 수도 있다.A prediction unit may be divided into at least one square or rectangular shape of the same size within one coding unit, and any one of the prediction units divided within one coding unit may be a prediction unit of another prediction unit. It may be divided to have a different shape and/or size than the unit.

부호화 단위를 기초로 인트라 예측을 수행하는 예측 단위를 생성시 최소 부호화 단위가 아닌 경우, 복수의 예측 단위 NxN 으로 분할하지 않고 인트라 예측을 수행할 수 있다.If the prediction unit for which intra prediction is performed based on the coding unit is not the minimum coding unit when generated, intra prediction can be performed without dividing the prediction unit into a plurality of prediction units NxN.

예측부(120, 125)는 인터 예측을 수행하는 인터 예측부(120)와 인트라 예측을 수행하는 인트라 예측부(125)를 포함할 수 있다. 예측 단위에 대해 인터 예측을 사용할 것인지 또는 인트라 예측을 수행할 것인지를 결정하고, 각 예측 방법에 따른 구체적인 정보(예컨대, 인트라 예측 모드, 모션 벡터, 참조 픽쳐 등)를 결정할 수 있다. 이때, 예측이 수행되는 처리 단위와 예측 방법 및 구체적인 내용이 정해지는 처리 단위는 다를 수 있다. 예컨대, 예측의 방법과 예측 모드 등은 예측 단위로 결정되고, 예측의 수행은 변환 단위로 수행될 수도 있다. 생성된 예측 블록과 원본 블록 사이의 잔차값(잔차 블록)은 변환부(130)로 입력될 수 있다. 또한, 예측을 위해 사용한 예측 모드 정보, 모션 벡터 정보 등은 잔차값과 함께 엔트로피 부호화부(165)에서 부호화되어 복호화기에 전달될 수 있다. 특정한 부호화 모드를 사용할 경우, 예측부(120, 125)를 통해 예측 블록을 생성하지 않고, 원본 블록을 그대로 부호화하여 복호화부에 전송하는 것도 가능하다.The prediction units 120 and 125 may include an inter prediction unit 120 that performs inter prediction and an intra prediction unit 125 that performs intra prediction. It is possible to determine whether to use inter prediction or intra prediction for a prediction unit, and determine specific information (eg, intra prediction mode, motion vector, reference picture, etc.) according to each prediction method. At this time, the processing unit in which the prediction is performed and the processing unit in which the prediction method and specific contents are determined may be different. For example, the prediction method and prediction mode are determined in prediction units, and prediction may be performed in transformation units. The residual value (residual block) between the generated prediction block and the original block may be input to the conversion unit 130. Additionally, prediction mode information, motion vector information, etc. used for prediction may be encoded in the entropy encoder 165 together with the residual value and transmitted to the decoder. When using a specific encoding mode, it is possible to encode the original block as is and transmit it to the decoder without generating a prediction block through the prediction units 120 and 125.

인터 예측부(120)는 현재 픽쳐의 이전 픽쳐 또는 이후 픽쳐 중 적어도 하나의 픽쳐의 정보를 기초로 예측 단위를 예측할 수도 있고, 경우에 따라서는 현재 픽쳐 내의 부호화가 완료된 일부 영역의 정보를 기초로 예측 단위를 예측할 수도 있다. 인터 예측부(120)는 참조 픽쳐 보간부, 모션 예측부, 움직임 보상부를 포함할 수 있다. The inter prediction unit 120 may predict a prediction unit based on information on at least one picture among the pictures before or after the current picture, and in some cases, prediction based on information on a partially encoded region within the current picture. Units can also be predicted. The inter prediction unit 120 may include a reference picture interpolation unit, a motion prediction unit, and a motion compensation unit.

참조 픽쳐 보간부에서는 메모리(155)로부터 참조 픽쳐 정보를 제공받고 참조 픽쳐에서 정수 화소 이하의 화소 정보를 생성할 수 있다. 휘도 화소의 경우, 1/4 화소 단위로 정수 화소 이하의 화소 정보를 생성하기 위해 필터 계수를 달리하는 DCT 기반의 8탭 보간 필터(DCT-based Interpolation Filter)가 사용될 수 있다. 색차 신호의 경우 1/8 화소 단위로 정수 화소 이하의 화소 정보를 생성하기 위해 필터 계수를 달리하는 DCT 기반의 4탭 보간 필터(DCT-based Interpolation Filter)가 사용될 수 있다.The reference picture interpolation unit may receive reference picture information from the memory 155 and generate pixel information of an integer number of pixels or less from the reference picture. In the case of luminance pixels, a DCT-based 8-tap interpolation filter with different filter coefficients can be used to generate pixel information of an integer pixel or less in 1/4 pixel units. In the case of color difference signals, a DCT-based 4-tap interpolation filter with different filter coefficients can be used to generate pixel information of an integer pixel or less in 1/8 pixel units.

모션 예측부는 참조 픽쳐 보간부에 의해 보간된 참조 픽쳐를 기초로 모션 예측을 수행할 수 있다. 모션 벡터를 산출하기 위한 방법으로 FBMA(Full search-based Block Matching Algorithm), TSS(Three Step Search), NTS(New Three-Step Search Algorithm) 등 다양한 방법이 사용될 수 있다. 모션 벡터는 보간된 화소를 기초로 1/2 또는 1/4 화소 단위의 모션 벡터값을 가질 수 있다. 모션 예측부에서는 모션 예측 방법을 다르게 하여 현재 예측 단위를 예측할 수 있다. 모션 예측 방법으로 스킵(Skip) 방법, 머지(Merge) 방법, AMVP(Advanced Motion Vector Prediction) 방법, 인트라 블록 카피(Intra Block Copy) 방법 등 다양한 방법이 사용될 수 있다.The motion prediction unit may perform motion prediction based on a reference picture interpolated by the reference picture interpolation unit. Various methods such as FBMA (Full search-based Block Matching Algorithm), TSS (Three Step Search), and NTS (New Three-Step Search Algorithm) can be used to calculate the motion vector. The motion vector may have a motion vector value in units of 1/2 or 1/4 pixels based on the interpolated pixels. The motion prediction unit can predict the current prediction unit by using a different motion prediction method. As a motion prediction method, various methods such as the skip method, the merge method, the Advanced Motion Vector Prediction (AMVP) method, and the intra block copy method can be used.

인트라 예측부(125)는 현재 픽쳐 내의 화소 정보인 현재 블록 주변의 참조 픽셀 정보를 기초로 예측 단위를 생성할 수 있다. 현재 예측 단위의 주변 블록이 인터 예측을 수행한 블록이어서, 참조 픽셀이 인터 예측을 수행한 픽셀일 경우, 인터 예측을 수행한 블록에 포함되는 참조 픽셀을 주변의 인트라 예측을 수행한 블록의 참조 픽셀 정보로 대체하여 사용할 수 있다. 즉, 참조 픽셀이 가용하지 않는 경우, 가용하지 않은 참조 픽셀 정보를 가용한 참조 픽셀 중 적어도 하나의 참조 픽셀로 대체하여 사용할 수 있다.The intra prediction unit 125 may generate a prediction unit based on reference pixel information around the current block, which is pixel information in the current picture. If the neighboring block of the current prediction unit is a block on which inter prediction has been performed and the reference pixel is a pixel on which inter prediction has been performed, the reference pixel included in the block on which inter prediction has been performed is the reference pixel of the block on which intra prediction has been performed. It can be used in place of information. That is, when a reference pixel is not available, the unavailable reference pixel information can be replaced with at least one reference pixel among available reference pixels.

인트라 예측에서 예측 모드는 참조 픽셀 정보를 예측 방향에 따라 사용하는 방향성 예측 모드와 예측을 수행시 방향성 정보를 사용하지 않는 비방향성 모드를 가질 수 있다. 휘도 정보를 예측하기 위한 모드와 색차 정보를 예측하기 위한 모드가 상이할 수 있고, 색차 정보를 예측하기 위해 휘도 정보를 예측하기 위해 사용된 인트라 예측 모드 정보 또는 예측된 휘도 신호 정보를 활용할 수 있다.In intra prediction, the prediction mode can include a directional prediction mode that uses reference pixel information according to the prediction direction and a non-directional mode that does not use directional information when performing prediction. The mode for predicting luminance information and the mode for predicting chrominance information may be different, and intra prediction mode information used to predict luminance information or predicted luminance signal information may be used to predict chrominance information.

인트라 예측을 수행할 때 예측 단위의 크기와 변환 단위의 크기가 동일할 경우, 예측 단위의 좌측에 존재하는 픽셀, 좌측 상단에 존재하는 픽셀, 상단에 존재하는 픽셀을 기초로 예측 단위에 대한 인트라 예측을 수행할 수 있다. 그러나 인트라 예측을 수행할 때 예측 단위의 크기와 변환 단위의 크기가 상이할 경우, 변환 단위를 기초로 한 참조 픽셀을 이용하여 인트라 예측을 수행할 수 있다. 또한, 최소 부호화 단위에 대해서만 NxN 분할을 사용하는 인트라 예측을 사용할 수 있다.When performing intra prediction, if the size of the prediction unit and the size of the transformation unit are the same, intra prediction for the prediction unit is made based on the pixel on the left, the pixel on the top left, and the pixel on the top of the prediction unit. can be performed. However, when performing intra prediction, if the size of the prediction unit and the size of the transformation unit are different, intra prediction can be performed using a reference pixel based on the transformation unit. Additionally, intra prediction using NxN partitioning can be used only for the minimum coding unit.

인트라 예측 방법은 예측 모드에 따라 참조 화소에 AIS(Adaptive Intra Smoothing) 필터를 적용한 후 예측 블록을 생성할 수 있다. 참조 화소에 적용되는 AIS 필터의 종류는 상이할 수 있다. 인트라 예측 방법을 수행하기 위해 현재 예측 단위의 인트라 예측 모드는 현재 예측 단위의 주변에 존재하는 예측 단위의 인트라 예측 모드로부터 예측할 수 있다. 주변 예측 단위로부터 예측된 모드 정보를 이용하여 현재 예측 단위의 예측 모드를 예측하는 경우, 현재 예측 단위와 주변 예측 단위의 인트라 예측 모드가 동일하면 소정의 플래그 정보를 이용하여 현재 예측 단위와 주변 예측 단위의 예측 모드가 동일하다는 정보를 전송할 수 있고, 만약 현재 예측 단위와 주변 예측 단위의 예측 모드가 상이하면 엔트로피 부호화를 수행하여 현재 블록의 예측 모드 정보를 부호화할 수 있다.The intra prediction method can generate a prediction block after applying an Adaptive Intra Smoothing (AIS) filter to the reference pixel according to the prediction mode. The type of AIS filter applied to the reference pixel may be different. To perform the intra prediction method, the intra prediction mode of the current prediction unit can be predicted from the intra prediction mode of prediction units existing around the current prediction unit. When predicting the prediction mode of the current prediction unit using predicted mode information from neighboring prediction units, if the intra prediction mode of the current prediction unit and neighboring prediction units are the same, predetermined flag information is used to predict the current prediction unit and neighboring prediction units. Information that the prediction modes of are the same can be transmitted, and if the prediction modes of the current prediction unit and neighboring prediction units are different, entropy encoding can be performed to encode the prediction mode information of the current block.

또한, 예측부(120, 125)에서 생성된 예측 단위를 기초로 예측을 수행한 예측 단위와 예측 단위의 원본 블록과 차이값인 잔차값(Residual) 정보를 포함하는 잔차 블록이 생성될 수 있다. 생성된 잔차 블록은 변환부(130)로 입력될 수 있다. Additionally, based on the prediction units generated by the prediction units 120 and 125, a residual block may be generated that includes residual information that is the difference between the prediction unit on which prediction was performed and the original block of the prediction unit. The generated residual block may be input to the conversion unit 130.

변환부(130)에서는 원본 블록과 예측부(120, 125)를 통해 생성된 예측 단위의 잔차값(residual)정보를 포함한 잔차 블록을 DCT(Discrete Cosine Transform), DST(Discrete Sine Transform), KLT와 같은 변환 방법을 사용하여 변환시킬 수 있다. 잔차 블록을 변환하기 위해 DCT를 적용할지, DST를 적용할지 또는 KLT를 적용할지는 잔차 블록을 생성하기 위해 사용된 예측 단위의 인트라 예측 모드 정보를 기초로 결정할 수 있다. The transform unit 130 transforms the residual block, including the original block and the residual value information of the prediction unit generated through the prediction units 120 and 125, into DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), KLT and It can be converted using the same conversion method. Whether to apply DCT, DST, or KLT to transform the residual block can be determined based on intra prediction mode information of the prediction unit used to generate the residual block.

양자화부(135)는 변환부(130)에서 주파수 영역으로 변환된 값들을 양자화할 수 있다. 블록에 따라 또는 영상의 중요도에 따라 양자화 계수는 변할 수 있다. 양자화부(135)에서 산출된 값은 역양자화부(140)와 재정렬부(160)에 제공될 수 있다.The quantization unit 135 may quantize the values converted to the frequency domain by the conversion unit 130. The quantization coefficient may change depending on the block or the importance of the image. The value calculated by the quantization unit 135 may be provided to the inverse quantization unit 140 and the realignment unit 160.

재정렬부(160)는 양자화된 잔차값에 대해 계수값의 재정렬을 수행할 수 있다.The rearrangement unit 160 may rearrange coefficient values for the quantized residual values.

재정렬부(160)는 계수 스캐닝(Coefficient Scanning) 방법을 통해 2차원의 블록 형태 계수를 1차원의 벡터 형태로 변경할 수 있다. 예를 들어, 재정렬부(160)에서는 지그-재그 스캔(Zig-Zag Scan)방법을 이용하여 DC 계수부터 고주파수 영역의 계수까지 스캔하여 1차원 벡터 형태로 변경시킬 수 있다. 변환 단위의 크기 및 인트라 예측 모드에 따라 지그-재그 스캔 대신 2차원의 블록 형태 계수를 열 방향으로 스캔하는 수직 스캔, 2차원의 블록 형태 계수를 행 방향으로 스캔하는 수평 스캔이 사용될 수도 있다. 즉, 변환 단위의 크기 및 인트라 예측 모드에 따라 지그-재그 스캔, 수직 방향 스캔 및 수평 방향 스캔 중 어떠한 스캔 방법이 사용될지 여부를 결정할 수 있다.The rearrangement unit 160 can change the coefficients in a two-dimensional block form into a one-dimensional vector form through a coefficient scanning method. For example, the realignment unit 160 can scan from DC coefficients to coefficients in the high frequency region using a zig-zag scan method and change it into a one-dimensional vector form. Depending on the size of the transformation unit and the intra prediction mode, a vertical scan that scans the two-dimensional block-type coefficients in the column direction or a horizontal scan that scans the two-dimensional block-type coefficients in the row direction may be used instead of the zig-zag scan. That is, depending on the size of the transformation unit and the intra prediction mode, it can be determined which scan method among zig-zag scan, vertical scan, and horizontal scan will be used.

엔트로피 부호화부(165)는 재정렬부(160)에 의해 산출된 값들을 기초로 엔트로피 부호화를 수행할 수 있다. 엔트로피 부호화는 예를 들어, 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 부호화 방법을 사용할 수 있다.The entropy encoding unit 165 may perform entropy encoding based on the values calculated by the reordering unit 160. Entropy coding can use various coding methods, such as Exponential Golomb, Context-Adaptive Variable Length Coding (CAVLC), and Context-Adaptive Binary Arithmetic Coding (CABAC).

엔트로피 부호화부(165)는 재정렬부(160) 및 예측부(120, 125)로부터 부호화 단위의 잔차값 계수 정보 및 블록 타입 정보, 예측 모드 정보, 분할 단위 정보, 예측 단위 정보 및 전송 단위 정보, 모션 벡터 정보, 참조 프레임 정보, 블록의 보간 정보, 필터링 정보 등 다양한 정보를 부호화할 수 있다. The entropy encoding unit 165 receives the residual value coefficient information and block type information of the coding unit, prediction mode information, division unit information, prediction unit information and transmission unit information, and motion information from the reordering unit 160 and the prediction units 120 and 125. Various information such as vector information, reference frame information, block interpolation information, and filtering information can be encoded.

엔트로피 부호화부(165)에서는 재정렬부(160)에서 입력된 부호화 단위의 계수값을 엔트로피 부호화할 수 있다.The entropy encoding unit 165 may entropy encode the coefficient value of the coding unit input from the reordering unit 160.

역양자화부(140) 및 역변환부(145)에서는 양자화부(135)에서 양자화된 값들을 역양자화하고 변환부(130)에서 변환된 값들을 역변환한다. 역양자화부(140) 및 역변환부(145)에서 생성된 잔차값(Residual)은 예측부(120, 125)에 포함된 움직임 추정부, 움직임 보상부 및 인트라 예측부를 통해서 예측된 예측 단위와 합쳐져 복원 블록(Reconstructed Block)을 생성할 수 있다. The inverse quantization unit 140 and the inverse transformation unit 145 inversely quantize the values quantized in the quantization unit 135 and inversely transform the values transformed in the transformation unit 130. The residual value generated in the inverse quantization unit 140 and the inverse transform unit 145 is restored by combining the prediction units predicted through the motion estimation unit, motion compensation unit, and intra prediction unit included in the prediction units 120 and 125. You can create a block (Reconstructed Block).

필터부(150)는 디블록킹 필터, 오프셋 보정부, ALF(Adaptive Loop Filter)중 적어도 하나를 포함할 수 있다.The filter unit 150 may include at least one of a deblocking filter, an offset correction unit, and an adaptive loop filter (ALF).

디블록킹 필터는 복원된 픽쳐에서 블록간의 경계로 인해 생긴 블록 왜곡을 제거할 수 있다. 디블록킹을 수행할지 여부를 판단하기 위해 블록에 포함된 몇 개의 열 또는 행에 포함된 픽셀을 기초로 현재 블록에 디블록킹 필터 적용할지 여부를 판단할 수 있다. 블록에 디블록킹 필터를 적용하는 경우 필요한 디블록킹 필터링 강도에 따라 강한 필터(Strong Filter) 또는 약한 필터(Weak Filter)를 적용할 수 있다. 또한 디블록킹 필터를 적용함에 있어 수직 필터링 및 수평 필터링 수행시 수평 방향 필터링 및 수직 방향 필터링이 병행 처리되도록 할 수 있다.The deblocking filter can remove block distortion caused by boundaries between blocks in the restored picture. To determine whether to perform deblocking, it is possible to determine whether to apply a deblocking filter to the current block based on the pixels included in several columns or rows included in the block. When applying a deblocking filter to a block, a strong filter or a weak filter can be applied depending on the required deblocking filtering strength. Additionally, when applying a deblocking filter, horizontal filtering and vertical filtering can be processed in parallel when vertical filtering and horizontal filtering are performed.

오프셋 보정부는 디블록킹을 수행한 영상에 대해 픽셀 단위로 원본 영상과의 오프셋을 보정할 수 있다. 특정 픽쳐에 대한 오프셋 보정을 수행하기 위해 영상에 포함된 픽셀을 일정한 수의 영역으로 구분한 후 오프셋을 수행할 영역을 결정하고 해당 영역에 오프셋을 적용하는 방법 또는 각 픽셀의 에지 정보를 고려하여 오프셋을 적용하는 방법을 사용할 수 있다.The offset correction unit may correct the offset of the deblocked image from the original image in pixel units. In order to perform offset correction for a specific picture, the pixels included in the image are divided into a certain number of areas, then the area to perform offset is determined and the offset is applied to that area, or the offset is performed by considering the edge information of each pixel. You can use the method of applying .

ALF(Adaptive Loop Filtering)는 필터링한 복원 영상과 원래의 영상을 비교한 값을 기초로 수행될 수 있다. 영상에 포함된 픽셀을 소정의 그룹으로 나눈 후 해당 그룹에 적용될 하나의 필터를 결정하여 그룹마다 차별적으로 필터링을 수행할 수 있다. ALF를 적용할지 여부에 관련된 정보는 휘도 신호는 부호화 단위(Coding Unit, CU) 별로 전송될 수 있고, 각각의 블록에 따라 적용될 ALF 필터의 모양 및 필터 계수는 달라질 수 있다. 또한, 적용 대상 블록의 특성에 상관없이 동일한 형태(고정된 형태)의 ALF 필터가 적용될 수도 있다. Adaptive Loop Filtering (ALF) can be performed based on a comparison between the filtered restored image and the original image. After dividing the pixels included in the image into predetermined groups, filtering can be performed differentially for each group by determining one filter to be applied to that group. Information related to whether to apply ALF may be transmitted for each coding unit (CU), and the shape and filter coefficients of the ALF filter to be applied may vary for each block. Additionally, an ALF filter of the same type (fixed type) may be applied regardless of the characteristics of the block to which it is applied.

메모리(155)는 필터부(150)를 통해 산출된 복원 블록 또는 픽쳐를 저장할 수 있고, 저장된 복원 블록 또는 픽쳐는 인터 예측을 수행 시 예측부(120, 125)에 제공될 수 있다.The memory 155 may store a reconstructed block or picture calculated through the filter unit 150, and the stored reconstructed block or picture may be provided to the prediction units 120 and 125 when inter prediction is performed.

도 2는 본 발명의 일실시예에 따른 영상 복호화 장치를 나타낸 블록도이다.Figure 2 is a block diagram showing an image decoding device according to an embodiment of the present invention.

도 2를 참조하면, 영상 복호화기(200)는 엔트로피 복호화부(210), 재정렬부(215), 역양자화부(220), 역변환부(225), 예측부(230, 235), 필터부(240), 메모리(245)가 포함될 수 있다.Referring to FIG. 2, the image decoder 200 includes an entropy decoder 210, a reordering unit 215, an inverse quantization unit 220, an inverse transform unit 225, a prediction unit 230, 235, and a filter unit ( 240) and memory 245 may be included.

영상 부호화기에서 영상 비트스트림이 입력된 경우, 입력된 비트스트림은 영상 부호화기와 반대의 절차로 복호화될 수 있다.When a video bitstream is input from a video encoder, the input bitstream can be decoded in a procedure opposite to that of the video encoder.

엔트로피 복호화부(210)는 영상 부호화기의 엔트로피 부호화부에서 엔트로피 부호화를 수행한 것과 반대의 절차로 엔트로피 복호화를 수행할 수 있다. 예를 들어, 영상 부호화기에서 수행된 방법에 대응하여 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 방법이 적용될 수 있다. The entropy decoding unit 210 may perform entropy decoding in a procedure opposite to the procedure in which entropy encoding is performed in the entropy encoding unit of the video encoder. For example, various methods such as Exponential Golomb, CAVLC (Context-Adaptive Variable Length Coding), and CABAC (Context-Adaptive Binary Arithmetic Coding) can be applied in response to the method performed in the image encoder.

엔트로피 복호화부(210)에서는 부호화기에서 수행된 인트라 예측 및 인터 예측에 관련된 정보를 복호화할 수 있다.The entropy decoder 210 can decode information related to intra prediction and inter prediction performed by the encoder.

재정렬부(215)는 엔트로피 복호화부(210)에서 엔트로피 복호화된 비트스트림을 부호화부에서 재정렬한 방법을 기초로 재정렬을 수행할 수 있다. 1차원 벡터 형태로 표현된 계수들을 다시 2차원의 블록 형태의 계수로 복원하여 재정렬할 수 있다. 재정렬부(215)에서는 부호화부에서 수행된 계수 스캐닝에 관련된 정보를 제공받고 해당 부호화부에서 수행된 스캐닝 순서에 기초하여 역으로 스캐닝하는 방법을 통해 재정렬을 수행할 수 있다.The reordering unit 215 may rearrange the bitstream entropy-decoded by the entropy decoding unit 210 based on the method in which the encoder rearranges the bitstream. Coefficients expressed in the form of a one-dimensional vector can be restored and rearranged as coefficients in the form of a two-dimensional block. The reordering unit 215 may receive information related to coefficient scanning performed by the encoder and perform reordering by reverse scanning based on the scanning order performed by the encoder.

역양자화부(220)는 부호화기에서 제공된 양자화 파라미터와 재정렬된 블록의 계수값을 기초로 역양자화를 수행할 수 있다. The inverse quantization unit 220 may perform inverse quantization based on the quantization parameters provided by the encoder and the coefficient values of the rearranged blocks.

역변환부(225)는 영상 부호화기에서 수행한 양자화 결과에 대해 변환부에서 수행한 변환 즉, DCT, DST, 및 KLT에 대해 역변환 즉, 역 DCT, 역 DST 및 역 KLT를 수행할 수 있다. 역변환은 영상 부호화기에서 결정된 전송 단위를 기초로 수행될 수 있다. 영상 복호화기의 역변환부(225)에서는 예측 방법, 현재 블록의 크기 및 예측 방향 등 복수의 정보에 따라 변환 기법(예를 들어, DCT, DST, KLT)이 선택적으로 수행될 수 있다.The inverse transform unit 225 may perform inverse transform, that is, inverse DCT, inverse DST, and inverse KLT, on the transform performed by the transformer, that is, DCT, DST, and KLT, on the quantization result performed by the image encoder. Inverse transformation can be performed based on the transmission unit determined by the video encoder. The inverse transform unit 225 of the video decoder may selectively perform a transformation technique (eg, DCT, DST, KLT) according to a plurality of information such as a prediction method, the size of the current block, and the prediction direction.

예측부(230, 235)는 엔트로피 복호화부(210)에서 제공된 예측 블록 생성 관련 정보와 메모리(245)에서 제공된 이전에 복호화된 블록 또는 픽쳐 정보를 기초로 예측 블록을 생성할 수 있다. The prediction units 230 and 235 may generate a prediction block based on prediction block generation-related information provided by the entropy decoder 210 and previously decoded block or picture information provided by the memory 245.

전술한 바와 같이 영상 부호화기에서의 동작과 동일하게 인트라 예측을 수행시 예측 단위의 크기와 변환 단위의 크기가 동일할 경우, 예측 단위의 좌측에 존재하는 픽셀, 좌측 상단에 존재하는 픽셀, 상단에 존재하는 픽셀을 기초로 예측 단위에 대한 인트라 예측을 수행하지만, 인트라 예측을 수행시 예측 단위의 크기와 변환 단위의 크기가 상이할 경우, 변환 단위를 기초로 한 참조 픽셀을 이용하여 인트라 예측을 수행할 수 있다. 또한, 최소 부호화 단위에 대해서만 NxN 분할을 사용하는 인트라 예측을 사용할 수도 있다.As described above, when performing intra prediction in the same manner as in the operation of the video encoder, when the size of the prediction unit and the size of the transformation unit are the same, the pixel that exists on the left of the prediction unit, the pixel that exists in the upper left, and the pixel that exists on the top Intra prediction is performed for the prediction unit based on the pixel, but when performing intra prediction, if the size of the prediction unit and the size of the transformation unit are different, intra prediction is performed using a reference pixel based on the transformation unit. You can. Additionally, intra prediction using NxN partitioning only for the minimum coding unit can be used.

예측부(230, 235)는 예측 단위 판별부, 인터 예측부 및 인트라 예측부를 포함할 수 있다. 예측 단위 판별부는 엔트로피 복호화부(210)에서 입력되는 예측 단위 정보, 인트라 예측 방법의 예측 모드 정보, 인터 예측 방법의 모션 예측 관련 정보 등 다양한 정보를 입력 받고 현재 부호화 단위에서 예측 단위를 구분하고, 예측 단위가 인터 예측을 수행하는지 아니면 인트라 예측을 수행하는지 여부를 판별할 수 있다. 인터 예측부(230)는 영상 부호화기에서 제공된 현재 예측 단위의 인터 예측에 필요한 정보를 이용해 현재 예측 단위가 포함된 현재 픽쳐의 이전 픽쳐 또는 이후 픽쳐 중 적어도 하나의 픽쳐에 포함된 정보를 기초로 현재 예측 단위에 대한 인터 예측을 수행할 수 있다. 또는, 현재 예측 단위가 포함된 현재 픽쳐 내에서 기-복원된 일부 영역의 정보를 기초로 인터 예측을 수행할 수도 있다.The prediction units 230 and 235 may include a prediction unit determination unit, an inter prediction unit, and an intra prediction unit. The prediction unit discriminator receives various information such as prediction unit information input from the entropy decoder 210, prediction mode information of the intra prediction method, and motion prediction-related information of the inter prediction method, distinguishes the prediction unit from the current coding unit, and makes predictions. It is possible to determine whether a unit performs inter-prediction or intra-prediction. The inter prediction unit 230 uses the information required for inter prediction of the current prediction unit provided by the video encoder to make current prediction based on information included in at least one picture of the picture before or after the current picture including the current prediction unit. Inter prediction for units can be performed. Alternatively, inter prediction may be performed based on information on a pre-restored partial region within the current picture including the current prediction unit.

인터 예측을 수행하기 위해 부호화 단위를 기준으로 해당 부호화 단위에 포함된 예측 단위의 모션 예측 방법이 스킵 모드(Skip Mode), 머지 모드(Merge 모드), AMVP 모드(AMVP Mode), 인트라 블록 카피 모드 중 어떠한 방법인지 여부를 판단할 수 있다.To perform inter prediction, based on the coding unit, the motion prediction method of the prediction unit included in the coding unit is Skip Mode, Merge Mode, AMVP Mode, and Intra Block Copy Mode. You can judge whether it is a certain method or not.

인트라 예측부(235)는 현재 픽쳐 내의 화소 정보를 기초로 예측 블록을 생성할 수 있다. 예측 단위가 인트라 예측을 수행한 예측 단위인 경우, 영상 부호화기에서 제공된 예측 단위의 인트라 예측 모드 정보를 기초로 인트라 예측을 수행할 수 있다. 인트라 예측부(235)에는 AIS(Adaptive Intra Smoothing) 필터, 참조 화소 보간부, DC 필터를 포함할 수 있다. AIS 필터는 현재 블록의 참조 화소에 필터링을 수행하는 부분으로써 현재 예측 단위의 예측 모드에 따라 필터의 적용 여부를 결정하여 적용할 수 있다. 영상 부호화기에서 제공된 예측 단위의 예측 모드 및 AIS 필터 정보를 이용하여 현재 블록의 참조 화소에 AIS 필터링을 수행할 수 있다. 현재 블록의 예측 모드가 AIS 필터링을 수행하지 않는 모드일 경우, AIS 필터는 적용되지 않을 수 있다.The intra prediction unit 235 may generate a prediction block based on pixel information in the current picture. If the prediction unit is a prediction unit that has performed intra prediction, intra prediction can be performed based on the intra prediction mode information of the prediction unit provided by the video encoder. The intra prediction unit 235 may include an Adaptive Intra Smoothing (AIS) filter, a reference pixel interpolation unit, and a DC filter. The AIS filter is a part that performs filtering on the reference pixels of the current block, and can be applied by determining whether or not to apply the filter according to the prediction mode of the current prediction unit. AIS filtering can be performed on the reference pixel of the current block using the prediction mode and AIS filter information of the prediction unit provided by the video encoder. If the prediction mode of the current block is a mode that does not perform AIS filtering, the AIS filter may not be applied.

참조 화소 보간부는 예측 단위의 예측 모드가 참조 화소를 보간한 화소값을 기초로 인트라 예측을 수행하는 예측 단위일 경우, 참조 화소를 보간하여 정수값 이하의 화소 단위의 참조 화소를 생성할 수 있다. 현재 예측 단위의 예측 모드가 참조 화소를 보간하지 않고 예측 블록을 생성하는 예측 모드일 경우 참조 화소는 보간되지 않을 수 있다. DC 필터는 현재 블록의 예측 모드가 DC 모드일 경우 필터링을 통해서 예측 블록을 생성할 수 있다.If the prediction mode of the prediction unit is a prediction unit that performs intra prediction based on pixel values obtained by interpolating the reference pixel, the reference pixel interpolator may interpolate the reference pixel to generate a reference pixel in pixel units of an integer value or less. If the prediction mode of the current prediction unit is a prediction mode that generates a prediction block without interpolating the reference pixel, the reference pixel may not be interpolated. The DC filter can generate a prediction block through filtering when the prediction mode of the current block is DC mode.

복원된 블록 또는 픽쳐는 필터부(240)로 제공될 수 있다. 필터부(240)는 디블록킹 필터, 오프셋 보정부, ALF를 포함할 수 있다.The restored block or picture may be provided to the filter unit 240. The filter unit 240 may include a deblocking filter, an offset correction unit, and an ALF.

영상 부호화기로부터 해당 블록 또는 픽쳐에 디블록킹 필터를 적용하였는지 여부에 대한 정보 및 디블록킹 필터를 적용하였을 경우, 강한 필터를 적용하였는지 또는 약한 필터를 적용하였는지에 대한 정보를 제공받을 수 있다. 영상 복호화기의 디블록킹 필터에서는 영상 부호화기에서 제공된 디블록킹 필터 관련 정보를 제공받고 영상 복호화기에서 해당 블록에 대한 디블록킹 필터링을 수행할 수 있다. Information on whether a deblocking filter has been applied to the corresponding block or picture can be received from the video encoder, and when a deblocking filter has been applied, information on whether a strong filter or a weak filter has been applied. In the deblocking filter of the video decoder, information related to the deblocking filter provided by the video encoder is provided and the video decoder can perform deblocking filtering on the corresponding block.

오프셋 보정부는 부호화시 영상에 적용된 오프셋 보정의 종류 및 오프셋 값 정보 등을 기초로 복원된 영상에 오프셋 보정을 수행할 수 있다.The offset correction unit may perform offset correction on the reconstructed image based on the type of offset correction applied to the image during encoding and offset value information.

ALF는 부호화기로부터 제공된 ALF 적용 여부 정보, ALF 계수 정보 등을 기초로 부호화 단위에 적용될 수 있다. 이러한 ALF 정보는 특정한 파라메터 셋에 포함되어 제공될 수 있다.ALF can be applied to the coding unit based on ALF application availability information, ALF coefficient information, etc. provided from the encoder. This ALF information may be included and provided in a specific parameter set.

메모리(245)는 복원된 픽쳐 또는 블록을 저장하여 참조 픽쳐 또는 참조 블록으로 사용할 수 있도록 할 수 있고 또한 복원된 픽쳐를 출력부로 제공할 수 있다. The memory 245 can store the restored picture or block so that it can be used as a reference picture or reference block, and can also provide the restored picture to an output unit.

전술한 바와 같이 이하, 본 발명의 실시예에서는 설명의 편의상 코딩 유닛(Coding Unit)을 부호화 단위라는 용어로 사용하지만, 부호화뿐만 아니라 복호화를 수행하는 단위가 될 수도 있다.As described above, hereinafter, in the embodiments of the present invention, the term coding unit is used as a coding unit for convenience of explanation, but it may also be a unit that performs not only encoding but also decoding.

또한, 현재 블록은, 부호화/복호화 대상 블록을 나타내는 것으로,부호화/복호화 단계에 따라, 코딩 트리 블록(또는 코딩 트리 유닛), 부호화 블록(또는 부호화 유닛), 변환 블록(또는 변환 유닛) 또는 예측 블록(또는 예측 유닛) 등을 나타내는 것일 수 있다. 본 명세서에서, '유닛'은 특정 부호화/복호화 프로세스를 수행하기 위한 기본 단위를 나타내고, '블록'은 소정 크기의 샘플 어레이를 나타낼 수 있다. 별도의 구분이 없는 한, '블록'과 '유닛'은 동등한 의미로 사용될 수 있다. 예컨대, 후술되는 실시예에서, 부호화 블록(코딩 블록) 및 부호화 유닛(코딩 유닛)은 상호 동등한 의미인 것으로 이해될 수 있다. In addition, the current block represents an encoding/decoding target block and, depending on the encoding/decoding stage, is a coding tree block (or coding tree unit), a coding block (or coding unit), a transform block (or transform unit), or a prediction block. (or prediction unit), etc. In this specification, 'unit' may represent a basic unit for performing a specific encoding/decoding process, and 'block' may represent a sample array of a predetermined size. Unless otherwise specified, ‘block’ and ‘unit’ can be used with the same meaning. For example, in embodiments described later, a coding block (coding block) and a coding unit (coding unit) may be understood to have equivalent meanings.

하나의 픽쳐는 정방형 또는 비정방형의 기본 블록으로 분할되어 부호화/복호화될 수 있다. 이때, 기본 블록은, 코딩 트리 유닛(Coding Tree Unit)이라 호칭될 수 있다. 코딩 트리 유닛은, 시퀀스 또는 슬라이스에서 허용하는 가장 큰 크기의 코딩 유닛으로 정의될 수도 있다. 코딩 트리 유닛이 정방형 또는 비정방형인지 여부 또는 코딩 트리 유닛의 크기와 관련한 정보는 시퀀스 파라미터 셋트, 픽처 파라미터 셋트 또는 슬라이스 헤더 등을 통해 시그널링될 수 있다. 코딩 트리 유닛은 더 작은 크기의 파티션으로 분할될 수 있다. 이때, 코딩 트리 유닛을 분할함으로써 생성된 파티션을 뎁스 1이라 할 경우, 뎁스 1인 파티션을 분할함으로써 생성된 파티션은 뎁스 2로 정의될 수 있다. 즉, 코딩 트리 유닛 내 뎁스 k인 파티션을 분할함으로써 생성된 파티션은 뎁스 k+1을 갖는 것으로 정의될 수 있다.One picture can be divided into square or non-square basic blocks and encoded/decoded. At this time, the basic block may be called a Coding Tree Unit. A coding tree unit may be defined as the largest size coding unit allowed by a sequence or slice. Information regarding whether the coding tree unit is square or non-square or the size of the coding tree unit may be signaled through a sequence parameter set, a picture parameter set, or a slice header. Coding tree units can be divided into partitions of smaller sizes. At this time, if the partition created by splitting the coding tree unit is referred to as depth 1, the partition created by splitting the partition of depth 1 may be defined as depth 2. That is, a partition created by dividing a partition with depth k within a coding tree unit can be defined as having depth k+1.

도 3은 코딩 블록이 화면 내 예측 또는 화면 간 예측으로 부호화되었을 때, 코딩 블록에 적용될 수 있는 파티션 모드를 예시한 도면이다.코딩 트리 유닛이 분할됨에 따라 생성된 임의 크기의 파티션을 코딩 유닛이라 정의할 수 있다. 예를 들어, 도 3 (a)는 코딩 유닛이 2Nx2N 크기을 도시하였다. 코딩 유닛은 재귀적으로 분할되거나, 예측, 양자화, 변환 또는 인루프 필터링 등을 수행하기 위한 기본 단위로 분할될 수 있다. 일 예로, 코딩 유닛이 분할됨에 따라 생성된 임의 크기의 파티션은 코딩 유닛으로 정의되거나, 예측, 양자화, 변환 또는 인루프 필터링 등을 수행하기 위한 기본 단위인 변환 유닛(TU: Transform Unit) 또는 예측 유닛(PU: Prediction Unit)으로 정의될 수 있다.Figure 3 is a diagram illustrating a partition mode that can be applied to a coding block when the coding block is encoded by intra-prediction or inter-picture prediction. A partition of arbitrary size created as a coding tree unit is divided is defined as a coding unit. can do. For example, Figure 3(a) shows that the coding unit is 2Nx2N in size. Coding units can be divided recursively or into basic units for performing prediction, quantization, transformation, or in-loop filtering. As an example, a partition of arbitrary size created as a coding unit is divided is defined as a coding unit, or a transform unit (TU: Transform Unit) or prediction unit, which is a basic unit for performing prediction, quantization, transformation, or in-loop filtering. It can be defined as (PU: Prediction Unit).

또는, 코딩 블록이 결정되면, 코딩 블록의 예측 분할을 통해 코딩 블록과 동일한 크기 또는 코딩 블록보다 작은 크기를 갖는 예측 블록(Prediction Block)을 결정할 수 있다. 코딩 블록의 예측 분할은 코딩 블록의 분할 형태를 나타내는 파티션 모드(Part_mode)에 의해 수행될 수 있다. 예측 블록의 크기 또는 형태는 코딩 블록의 파티션 모드에 따라 결정될 수 있다. 코딩 블록의 분할 형태는 파티션 후보 중 어느 하나를 특정하는 정보를 통해 결정될 수 있다. 이때, 코딩 블록이 이용할 수 있는 파티션 후보에는 코딩 블록의 크기, 형태 또는 부호화 모드 등에 따라 비대칭 파티션 형태(예컨대, nLx2N, nRx2N, 2NxnU, 2NxnD)가 포함될 수 있다. 일 예로, 코딩 블록이 이용할 수 있는 파티션 후보는 현재 블록의 부호화 모드에 따라 결정될 수 있다. 예를 들어, 코딩 블록이 화면 간 예측으로 부호화된 경우, 코딩 블록에는 도 3 (b)에 도시된 예에서와 같이, 8개의 파티션 모드 중 어느 하나가 적용될 수 있다. 반면, 코딩 블록이 화면 내 예측으로 부호화된 경우, 코딩 블록에는 도 3 (b)의 8개 파티션 모드중 PART_2Nx2N 또는 PART_NxN 이 적용될 수 있다. Alternatively, once the coding block is determined, a prediction block having the same size as the coding block or a size smaller than the coding block can be determined through prediction division of the coding block. Prediction division of a coding block can be performed by a partition mode (Part_mode) indicating the division type of the coding block. The size or shape of the prediction block may be determined according to the partition mode of the coding block. The division type of the coding block can be determined through information specifying one of the partition candidates. At this time, partition candidates that can be used by the coding block may include an asymmetric partition type (eg, nLx2N, nRx2N, 2NxnU, 2NxnD) depending on the size, shape, or encoding mode of the coding block. As an example, a partition candidate that a coding block can use may be determined according to the encoding mode of the current block. For example, when a coding block is encoded by inter-prediction, any one of eight partition modes may be applied to the coding block, as in the example shown in FIG. 3(b). On the other hand, when the coding block is encoded by intra-picture prediction, PART_2Nx2N or PART_NxN among the eight partition modes in FIG. 3 (b) may be applied to the coding block.

PART_NxN은 코딩 블록이 최소 크기를 갖는 경우 적용될 수 있다. 여기서, 코딩 블록의 최소 크기는 부호화기 및 복호화기에서 기 정의된 것일 수 있다. 또는, 코딩 블록의 최소 크기에 관한 정보는 비트스트림을 통해 시그널링될 수도 있다. 일 예로, 코딩 블록의 최소 크기는 슬라이스 헤더를 통해 시그널링되고, 이에 따라, 슬라이스별로 코딩 블록의 최소 크기가 정의될 수 있다. PART_NxN can be applied when the coding block has a minimum size. Here, the minimum size of the coding block may be predefined in the encoder and decoder. Alternatively, information about the minimum size of a coding block may be signaled through a bitstream. As an example, the minimum size of a coding block is signaled through a slice header, and accordingly, the minimum size of a coding block may be defined for each slice.

다른 예로, 코딩 블록이 이용할 수 있는 파티션 후보는 코딩 블록의 크기 또는 형태 중 적어도 하나에 따라 상이하게 결정될 수도 있다. 일 예로, 코딩 블록이 이용할 수 있는 파티션 후보의 개수 또는 종류는 코딩 블록의 크기 또는 형태 중 적어도 하나에 따라 상이하게 결정될 수 있다. As another example, partition candidates that can be used by a coding block may be determined differently depending on at least one of the size or shape of the coding block. As an example, the number or type of partition candidates that a coding block can use may be determined differently depending on at least one of the size or shape of the coding block.

또는, 코딩 블록이 이용할 수 있는 파티션 후보들 중 비대칭 파티션 후보들의 종류 또는 개수를 코딩 블록의 크기 또는 형태에 따라 제한할 수도 있다. 일 예로, 코딩 블록이 이용할 수 있는 비대칭 파티션 후보의 개수 또는 종류는 코딩 블록의 크기 또는 형태 중 적어도 하나에 따라 상이하게 결정될 수 있다.Alternatively, the type or number of asymmetric partition candidates among partition candidates that a coding block can use may be limited depending on the size or shape of the coding block. As an example, the number or type of asymmetric partition candidates that a coding block can use may be determined differently depending on at least one of the size or shape of the coding block.

일반적으로, 예측 블록의 크기는 64x64 부터 4x4의 크기를 가질 수 있다. 단, 코딩 블록이 화면 간 예측으로 부호화된 경우, 움직임 보상을 수행할 때, 메모리 대역폭(memory bandwidth)을 줄이기 위해, 예측 블록이 4x4 크기를 갖지 않도록 할 수 있다. Generally, the size of the prediction block can range from 64x64 to 4x4. However, when a coding block is encoded with inter-screen prediction, the prediction block may not have a size of 4x4 to reduce memory bandwidth when performing motion compensation.

파티션 모드를 이용하여, 코딩 블록을 재귀적으로 분할하는 것도 가능하다. 즉, 파티션 인덱스가 지시하는 파티션 모드에 따라 코딩 블록을 분할할 수 있고, 코딩 블록이 분할됨에 따라 생성된 각 파티션이 코딩 블록으로 정의될 수 있다. Using partition mode, it is also possible to recursively partition coding blocks. That is, the coding block can be divided according to the partition mode indicated by the partition index, and each partition created as the coding block is divided can be defined as a coding block.

이하, 코딩 유닛을 재귀적으로 분할하는 방법에 대해 보다 상세히 설명하기로 한다. 설명의 편의를 위해, 이하, 코딩 트리 유닛도 코딩 유닛의 범주에 포함되는 것으로 가정 한다. 즉, 후술되는 실시예에서, 코딩 유닛은, 코딩 트리 유닛을 가리키거나, 코딩 트리 유닛이 분할됨에 따라 생성되는 코딩 유닛을 의미할 수 있다. 또한, 코딩 블록이 재귀적으로 분할되는 경우, 코딩 블록이 분할됨에 따라 생성되는 '파티션'은 '코딩 블록'을 의미하는 것으로 이해될 수 있다.Hereinafter, a method for recursively dividing a coding unit will be described in more detail. For convenience of explanation, hereinafter, it is assumed that coding tree units are also included in the category of coding units. That is, in an embodiment described later, the coding unit may refer to a coding tree unit or may mean a coding unit created as the coding tree unit is divided. Additionally, when a coding block is divided recursively, the 'partition' created as the coding block is divided may be understood to mean a 'coding block'.

코딩 유닛은 적어도 하나의 라인에 의해 분할될 수 있다. 이때, 코딩 유닛을 분할하는 라인은 소정의 각도를 가질 수도 있다. 여기서, 소정의 각도는, 0도 내지 360도 범위 내의 값일 수 있다. 예컨대, 0도 라인은, 수평 라인, 90도 라인은 수직 라인을 의미하고, 45도 또는 135도 라인은 대각선 라인을 의미할 수 있다. A coding unit may be divided by at least one line. At this time, the line dividing the coding unit may have a predetermined angle. Here, the predetermined angle may be a value within the range of 0 degrees to 360 degrees. For example, a 0 degree line may mean a horizontal line, a 90 degree line may mean a vertical line, and a 45 degree or 135 degree line may mean a diagonal line.

코딩 유닛이 복수의 라인에 의해 분할되는 경우, 복수의 라인은 모두 동일한 각도를 가질 수 있다. 또는, 복수의 라인 중 적어도 하나는 다른 라인과 상이한 각도를 가질 수도 있다. 또는, 코딩 트리 유닛 또는 코딩 유닛을 분할하는 복수의 라인은 기 정의된 각도 차(예컨대, 90도)를 갖도록 설정될 수도 있다.When a coding unit is divided by a plurality of lines, the plurality of lines may all have the same angle. Alternatively, at least one of the plurality of lines may have a different angle from other lines. Alternatively, the coding tree unit or a plurality of lines dividing the coding unit may be set to have a predefined angle difference (eg, 90 degrees).

코딩 트리 유닛 또는 코딩 유닛을 분할하는 라인에 관한 정보는, 파티션 모드로 정의되어 부호화될 수 있다. 또는, 라인의 개수, 방향, 각도, 블록 내 라인의 위치 등에 대한 정보가 부호화될 수도 있다.Information about lines dividing a coding tree unit or a coding unit may be defined and encoded in a partition mode. Alternatively, information about the number of lines, direction, angle, position of the line within the block, etc. may be encoded.

설명의 편의를 위해, 후술되는 실시예에서는, 코딩 트리 유닛 또는 코딩 유닛은 수직선 및 수평선 중 적어도 하나를 이용하여, 복수의 코딩 유닛으로 분할되는 것으로 가정한다.For convenience of explanation, in the embodiment described later, it is assumed that the coding tree unit or coding unit is divided into a plurality of coding units using at least one of a vertical line and a horizontal line.

코딩 유닛의 파티셔닝이, 수직선(Vertical Line) 또는 수평선(Horizontal Line) 중 적어도 하나에 기초하여 수행된다고 가정할 때, 코딩 유닛을 파티셔닝하는 수직선 또는 수평선의 개수는 적어도 하나 이상일 수 있다. 일 예로, 하나의 수직선 또는 하나의 수평선을 이용하여, 코딩 트리 유닛 또는 코딩 유닛을 2개의 파티션으로 분할하거나, 두개의 수직선 또는 두개의 수평선을 이용하여, 코딩 유닛을 3개의 파티션으로 분할할 수 있다. 또는, 하나의 수직선 및 하나의 수평선을 이용하여, 코딩 유닛을 길이 및 너비가 1/2 인 4개의 파티션으로 분할할 수도 있다.Assuming that partitioning of the coding unit is performed based on at least one of a vertical line or a horizontal line, the number of vertical or horizontal lines partitioning the coding unit may be at least one. For example, a coding tree unit or a coding unit can be divided into two partitions using one vertical line or one horizontal line, or a coding unit can be divided into three partitions using two vertical lines or two horizontal lines. . Alternatively, one vertical line and one horizontal line may be used to divide the coding unit into four partitions whose length and width are 1/2.

코딩 트리 유닛 또는 코딩 유닛을 적어도 하나의 수직선 또는 적어도 하나의 수평선을 이용하여 복수의 파티션으로 분할하는 경우, 파티션들은 균일한 크기를 가질 수 있다. 또는, 어느 하나의 파티션이 나머지 파티션과 다른 크기를 갖거나, 각 파티션이 상이한 크기를 가질 수도 있다.When dividing a coding tree unit or a coding unit into a plurality of partitions using at least one vertical line or at least one horizontal line, the partitions may have uniform sizes. Alternatively, one partition may have a different size from the remaining partitions, or each partition may have a different size.

후술되는 실시예들에서는, 코딩 유닛이 4개의 파티션으로 분할되는 것을, 쿼드 트리 기반의 분할이라 가정하고, 코딩 유닛이 2개의 파티션으로 분할되는 것을 바이너리 트리 기반의 분할이라 가정한다. 또한, 코딩 유닛이 3개의 파티션으로 분할되는 것을 트리플 트리 기반의 분할이라 가정한다. 또한 상기 적어도 2가지 이상의 분할 방식을 적용하여 분할되는 것을 멀티 트리 기반의 분할이라 가정한다. In embodiments described later, it is assumed that the coding unit is divided into four partitions as quad tree-based division, and that the coding unit is divided into two partitions is assumed to be binary tree-based division. Additionally, it is assumed that the coding unit is divided into three partitions as a triple tree-based division. Additionally, it is assumed that division by applying at least two of the above division methods is multi-tree based division.

후술되는 도면에서는, 코딩 유닛을 분할하기 위해, 소정 개수의 수직선 또는 소정 개수의 수평선이 이용되는 것으로 도시할 것이나, 도시된 것보다 더 많은 수의 수직선 또는 더 많은 수의 수평선을 이용하여, 코딩 유닛을 도시된 것보다 더 많은 수의 파티션 또는 도시된 것보다 더 적은 수의 파티션으로 분할하는 것 역시 본 발명의 범주에 포함된다고 할 것이다. In the drawings described later, it will be shown that a predetermined number of vertical lines or a predetermined number of horizontal lines are used to divide the coding unit, but by using a larger number of vertical lines or a larger number of horizontal lines than shown, the coding unit Dividing into a larger number of partitions than shown or into a smaller number of partitions than shown will also be included within the scope of the present invention.

도 4는 발명이 적용되는 일 실시예로서, 쿼드 트리(Quad tree) 및 바이너리 트리(Binary tree) 분할(partitioning)이 허용되는 파티션 형태를 나타낸 도면이다.FIG. 4 is a diagram illustrating a partition type in which quad tree and binary tree partitioning is allowed, as an embodiment to which the invention is applied.

입력 영상 신호는 소정의 블록 단위로 복호화되며, 이와 같이 입력 영상 신호를 복호화하기 위한 기본 단위를 코딩 블록이라 한다. 코딩 블록은 인트라/인터 예측, 변환, 양자화를 수행하는 단위가 될 수 있다. 또한, 코딩 블록 단위로 예측 모드(예컨대, 화면 내 예측 모드 또는 화면 간 예측 모드)가 결정되고, 코딩 블록에 포함된 예측 블록들은, 결정된 예측 모드를 공유할 수 있다. 코딩 블록은 8x8 내지 64x64 범위에 속하는 임의의 크기를 가진 정방형 또는 비정방형 블록일 수 있고, 128x128, 256x256 또는 그 이상의 크기를 가진 정방형 또는 비정방형 블록일 수 있다. The input video signal is decoded in units of predetermined blocks, and the basic unit for decoding the input video signal is called a coding block. A coding block can be a unit that performs intra/inter prediction, transformation, and quantization. Additionally, a prediction mode (eg, intra-prediction mode or inter-screen prediction mode) is determined on a coding block basis, and prediction blocks included in the coding block may share the determined prediction mode. Coding blocks can be square or non-square blocks of any size ranging from 8x8 to 64x64, or square or non-square blocks with sizes of 128x128, 256x256 or larger.

구체적으로, 코딩 블록은 쿼드 트리(quad tree)와 바이너리 트리(binary tree) 중 적어도 하나에 기초하여 계층적으로 분할될 수 있다. 여기서, 쿼드 트리 기반의 분할은 2Nx2N 코딩 블록이 4개의 NxN 코딩 블록으로 분할되는 방식(도 4(a))을, 바이너리 트리 기반의 분할은 하나의 코딩 블록이 2개의 코딩 블록으로 분할되는 방식을 각각 의미할 수 있다. 바이너리 트리 기반의 분할이 수행되었다 하더라도, 하위 뎁스에서는 정방형인 코딩 블록이 존재할 수 있다. Specifically, the coding block may be hierarchically divided based on at least one of a quad tree and a binary tree. Here, the quad tree-based splitting is a method in which a 2Nx2N coding block is split into four NxN coding blocks (Figure 4(a)), and the binary tree-based splitting is a method in which one coding block is split into two coding blocks. Each can mean something. Even if binary tree-based segmentation is performed, square coding blocks may exist at lower depths.

바이너리 트리 기반의 분할은 대칭적으로 수행될 수도 있고, 비대칭적으로 수행될 수도 있다. 또한, 바이너리 트리 기반으로 분할된 코딩 블록은 정방형 블록일 수도 있고, 직사각형과 같은 비정방형 블록일 수도 있다. 일 예로, 바이너리 트리 기반의 분할이 허용되는 파티션 형태는 도 4 (b)에 도시된 예에서와 같이, 대칭형(symmetric)인 2NxN (수평 방향 비 정방 코딩 유닛) 또는 Nx2N (수직 방향 비정방 코딩 유닛)이 될 수 있다. 또한, 일 예로, 바이너리 트리 기반의 분할이 허용되는 파티션 형태는 도 4 (c)에 도시된 예에서와 같이, 비대칭형(asymmetric)인 nLx2N, nRx2N, 2NxnU 또는 2NxnD 중 적어도 하나를 포함할 수 있다.Binary tree-based partitioning may be performed symmetrically or asymmetrically. Additionally, coding blocks divided based on a binary tree may be square blocks or non-square blocks such as rectangles. As an example, the partition type that allows binary tree-based division is symmetric 2NxN (horizontal non-square coding unit) or Nx2N (vertical non-square coding unit), as shown in the example shown in FIG. 4 (b). ) can be. Additionally, as an example, the partition type that allows binary tree-based partitioning may include at least one of asymmetric nLx2N, nRx2N, 2NxnU, or 2NxnD, as shown in the example shown in FIG. 4 (c). .

바이너리 트리 기반의 분할은, 대칭형 또는 비대칭 형태의 파티션 중 어느 하나만 제한적으로 허용될 수도 있다. 이 경우, 코딩 트리 유닛을, 정방형 블록으로 구성하는 것은 쿼드 트리 CU 파티셔닝에 해당하고, 코딩 트리 유닛을, 대칭형인 비정방형 블록으로 구성하는 것은 바이너리 트리 CU 파티셔닝에 해당할 수 있다. 코딩 트리 유닛을 정방형 블록과 대칭형 비정방형 블록으로 구성하는 것은 쿼드 및 바이너리 트리 CU 파티셔닝에 해당할 수 있다.Binary tree-based partitioning may only allow one of symmetric or asymmetric partitions. In this case, configuring the coding tree unit with square blocks may correspond to quad tree CU partitioning, and configuring the coding tree unit with symmetric non-square blocks may correspond to binary tree CU partitioning. Constructing a coding tree unit into square blocks and symmetric non-square blocks may correspond to quad and binary tree CU partitioning.

이하, 상기 쿼드 트리 및 바이너리 트리에 기반한 분할 방식을 QTBT (Quad-Tree & Binary-Tree) 분할로 명명한다. Hereinafter, the partitioning method based on the quad tree and binary tree is called QTBT (Quad-Tree & Binary-Tree) partition.

쿼드 트리 및 바이너리 트리에 기반한 분할 결과, 더 이상 분할되지 않는 코딩 블록은 예측 블록 또는 변환 블록으로 이용될 수 있다. 즉, 쿼드 트리 및 바이너리 트리에 기반한 QTBT (Quad-Tree & Binary-Tree) 분할 방법에서는, 코딩 블록이 예측 블록이 되고, 예측 블록이 변환 블록이 될 수 있다. 일 예로, QTBT 분할 방법을 이용한 경우, 코딩 블록 단위로 예측 영상을 생성하고, 코딩 블록 단위로 원본 영상과 예측 영상간의 차분인 잔차 신호가 변환될 수 있다. 여기서, 코딩 블록 단위로 예측 영상을 생성하는 것은, 코딩 블록을 기준으로 모션 정보가 결정되거나, 코딩 블록을 기준으로 하나의 인트라 예측 모드가 결정되는 것을 의미할 수 있다. 이에 따라, 코딩 블록은, 스킵 모드, 화면 내 예측 또는 화면 간 예측 중 적어도 하나를 이용하여 부호화될 수 있다.As a result of division based on quad tree and binary tree, coding blocks that are no longer divided can be used as prediction blocks or transformation blocks. That is, in the QTBT (Quad-Tree & Binary-Tree) partitioning method based on quad tree and binary tree, the coding block can be a prediction block, and the prediction block can be a transformation block. For example, when using the QTBT segmentation method, a predicted image can be generated in units of coding blocks, and a residual signal, which is the difference between the original image and the predicted image, can be converted in units of coding blocks. Here, generating a prediction image in units of coding blocks may mean that motion information is determined based on the coding block, or one intra prediction mode is determined based on the coding block. Accordingly, the coding block may be encoded using at least one of skip mode, intra prediction, or inter prediction.

다른 예로, 코딩 블륵을 분할하여, 코딩 블록보다 작은 크기를 갖는 예측 블록 또는 변환 블록을 이용하는 것도 가능하다.As another example, it is possible to divide the coding block and use a prediction block or transform block with a smaller size than the coding block.

QTBT 분할 방법에서, BT는 대칭형 분할만이 허용되도록 설정될 수 있다. 다만, 블록 경계에서 오브젝트와 배경이 나누어지는 경우에도, 대칭형 이진 분할만을 허용한다면, 부호화 효율이 낮아질 수 있다. 이에 본 발명에서는, 부호화 효율을 높이기 위해, 코딩 블록을 비대칭으로 파티셔닝하는 방법을 다른 실시예로 후술하고자 한다. 비대칭 바이너리 트리 파티셔닝(Asymetric Binary Tree Partitioning)은 코딩 블록을 2개의 더 작은 코딩 블록으로 분할하는 것을 나타낸다. 비대칭 바이너리 트리 파티셔닝의 결과, 코딩 블록은 2개의 비대칭 형태의 코딩 블록으로 분할될 수 있다.In the QTBT partitioning method, BT can be set to allow only symmetric partitioning. However, even when the object and background are divided at the block boundary, if only symmetric binary segmentation is allowed, encoding efficiency may be lowered. Accordingly, in the present invention, in order to increase coding efficiency, a method of asymmetrically partitioning coding blocks will be described later as another embodiment. Asymmetric Binary Tree Partitioning refers to splitting a coding block into two smaller coding blocks. As a result of asymmetric binary tree partitioning, a coding block can be divided into two asymmetric coding blocks.

바이너리 트리 기반의 분할은 쿼드 트리 기반의 분할이 더 이상 수행되지 않는 코딩 블록에 대해서 수행될 수 있다.바이너리 트리 기반으로 분할된 코딩 블록에 대해서는 쿼드 트리 기반의 분할이 더 이상 수행되지 않을 수 있다.Binary tree-based partitioning may be performed on coding blocks for which quad-tree-based partitioning is no longer performed. Quad-tree-based partitioning may no longer be performed on coding blocks partitioned based on binary trees.

또한, 하위 뎁스의 분할은 상위 뎁스의 분할 형태에 종속적으로 결정될 수 있다. 일 예로, 2개 이상의 뎁스에서 바이너리 트리 기반의 분할이 허용된 경우, 하위 뎁스에서는 상위 뎁스의 바이너리 트리 분할 형태와 동일한 형태의 바이너리 트리 기반의 분할만이 허용될 수 있다. 예컨대, 상위 뎁스에서 2NxN 형태로 바이너리 트리 기반의 분할이 수행된 경우, 하위 뎁스에서도 2NxN 형태의 바이너리 트리 기반의 분할이 수행될 수 있다. 또는, 상위 뎁스에서 Nx2N 형태로 바이너리 트리 기반의 분할이 수행된 경우, 하위 뎁스에서도 Nx2N 형태의 바이너리 트리 기반의 분할이 허용될 수 있다. Additionally, the division of the lower depth may be determined dependent on the division type of the upper depth. For example, when binary tree-based partitioning is allowed at two or more depths, only binary tree-based partitioning of the same type as the binary tree partitioning form of the upper depth may be allowed at the lower depth. For example, if binary tree-based segmentation in the form of 2NxN is performed at the upper depth, binary tree-based segmentation in the form of 2NxN may also be performed at the lower depth. Alternatively, if binary tree-based partitioning in Nx2N format is performed at the upper depth, Nx2N binary tree-based partitioning may be allowed at lower depths.

반대로, 하위 뎁스에서, 상위 뎁스의 바이너리 트리 분할 형태와 상이한 형태의 바이너리 트리 기반의 분할만을 허용하는 것도 가능하다. Conversely, at lower depths, it is also possible to allow only binary tree-based partitioning in a form different from the binary tree partitioning form at higher depths.

시퀀스, 슬라이스, 코딩 트리 유닛 또는 코딩 유닛에 대해, 특정 형태의 바이너리 트리 기반의 분할만이 사용되도록 제한할 수도 있다. 일 예로, 코딩 트리 유닛에 대해 2NxN 또는 Nx2N 형태의 바이너리 트리 기반의 분할만이 허용되도록 제한할 수 있다. 허용되는 파티션 형태는 부호화기 또는 복호화기에 기 정의되어 있을 수도 있고, 허용되는 파티션 형태 또는 허용되지 않는 파티션 형태에 관한 정보를 부호화하여 비트스트림을 통해 시그널링할 수도 있다.For a sequence, slice, coding tree unit, or coding unit, only a specific type of binary tree-based partitioning may be restricted to be used. As an example, coding tree units may be restricted to allow only binary tree-based division in the form of 2NxN or Nx2N. The allowable partition type may be predefined in the encoder or decoder, or information regarding the allowable or unacceptable partition type may be encoded and signaled through a bitstream.

도 5는 본 발명이 적용되는 일 실시예로서, 쿼드 트리 및 바이너리 트리 분할에 기반하여 코딩 블록을 계층적으로 분할하는 일예를 도시한 것이다.Figure 5 is an embodiment to which the present invention is applied, showing an example of hierarchically dividing a coding block based on quad tree and binary tree division.

도 5에 도시된 바와 같이, 분할 깊이(split depth)가 k인 제1 코딩 블록 300은 쿼드 트리(quad tree)에 기반하여 복수의 제2 코딩 블록으로 분할될 수 있다. 예를 들어, 제2 코딩 블록 310 내지 340은 제1 코딩 블록의 너비와 높이의 절반 크기를 가진 정방형 블록이며, 제2 코딩 블록의 분할 깊이는 k+1로 증가될 수 있다.As shown in FIG. 5, the first coding block 300 with a split depth of k may be divided into a plurality of second coding blocks based on a quad tree. For example, the second coding blocks 310 to 340 are square blocks with half the width and height of the first coding block, and the division depth of the second coding block can be increased to k+1.

분할 깊이가 k+1인 제2 코딩 블록 310은 분할 깊이가 k+2인 복수의 제3 코딩 블록으로 분할될 수 있다. 제2 코딩 블록 310의 분할은 분할 방식에 따라 쿼트 트리 또는 바이너리 트리 중 어느 하나를 선택적으로 이용하여 수행될 수 있다. 여기서, 분할 방식은 쿼드 트리 기반으로의 분할을 지시하는 정보 또는 바이너리 트리 기반의 분할을 지시하는 정보 중 적어도 하나에 기초하여 결정될 수 있다.The second coding block 310 with a split depth of k+1 may be divided into a plurality of third coding blocks with a split depth of k+2. Division of the second coding block 310 may be performed selectively using either a quot tree or a binary tree depending on the division method. Here, the division method may be determined based on at least one of information indicating quad tree-based division or information indicating binary tree-based division.

제2 코딩 블록 310이 쿼트 트리 기반으로 분할되는 경우, 제2 코딩 블록 310은 제2 코딩 블록의 너비와 높이의 절반 크기를 가진 4개의 제3 코딩 블록 310a으로 분할되며, 제3 코딩 블록 310a의 분할 깊이는 k+2로 증가될 수 있다. 반면, 제2 코딩 블록 310이 바이너리 트리 기반으로 분할되는 경우, 제2 코딩 블록 310은 2개의 제3 코딩 블록으로 분할될 수 있다. 이때, 2개의 제3 코딩 블록 각각은 제2 코딩 블록의 너비와 높이 중 어느 하나가 절반 크기인 비정방형 블록이며, 분할 깊이는 k+2로 증가될 수 있다. 제2 코딩 블록은 분할 방향에 따라 가로 방향 또는 세로 방향의 비정방형 블록으로 결정될 수 있고, 분할 방향은 바이너리 트리 기반의 분할이 세로 방향인지 또는 가로 방향인지에 관한 정보에 기초하여 결정될 수 있다.When the second coding block 310 is divided based on a quot tree, the second coding block 310 is divided into four third coding blocks 310a with a size of half the width and height of the second coding block, and the third coding block 310a The division depth can be increased to k+2. On the other hand, when the second coding block 310 is divided based on a binary tree, the second coding block 310 may be divided into two third coding blocks. At this time, each of the two third coding blocks is a non-square block whose width or height is half the size of the second coding block, and the division depth can be increased to k+2. The second coding block may be determined to be a horizontal or vertical non-square block depending on the division direction, and the division direction may be determined based on information about whether the binary tree-based division is vertical or horizontal.

한편, 제2 코딩 블록 310은 쿼드 트리 또는 바이너리 트리에 기반하여 더 이상 분할되지 않는 말단 코딩 블록으로 결정될 수도 있고, 이 경우 해당 코딩 블록은 예측 블록 또는 변환 블록으로 이용될 수 있다.Meanwhile, the second coding block 310 may be determined to be an end coding block that is no longer divided based on a quad tree or binary tree, and in this case, the corresponding coding block can be used as a prediction block or a transform block.

제3 코딩 블록 310a은 제2 코딩 블록 310의 분할과 마찬가지로 말단 코딩 블록으로 결정되거나, 쿼드 트리 또는 바이너리 트리에 기반하여 추가적으로 분할될 수 있다. The third coding block 310a may be determined as an end coding block similar to the division of the second coding block 310, or may be additionally divided based on a quad tree or binary tree.

한편, 바이너리 트리 기반으로 분할된 제3 코딩 블록 310b은 추가적으로 바이너리 트리에 기반하여 세로 방향의 코딩 블록(310b-2) 또는 가로 방향의 코딩 블록(310b-3)으로 더 분할될 수도 있고, 해당 코딩 블록의 분할 깊이는 k+3으로 증가될 수 있다. 또는, 제3 코딩 블록 310b는 바이너리 트리에 기반하여 더 이상 분할되지 않는 말단 코딩 블록(310b-1)으로 결정될 수 있고, 이 경우 해당 코딩 블록(310b-1)은 예측 블록 또는 변환 블록으로 이용될 수 있다. 다만, 상술한 분할 과정은 쿼드 트리 기반의 분할이 허용되는 코딩 블록의 크기/깊이에 관한 정보, 바이너리 트리 기반의 분할이 허용되는 코딩 블록의 크기/깊이에 대한 정보 또는 바이너리 트리 기반의 분할이 허용되지 않는 코딩 블록의 크기/깊이에 대한 정보 중 적어도 하나에 기초하여 제한적으로 수행될 수 있다.Meanwhile, the third coding block 310b divided based on the binary tree may be further divided into a vertical coding block 310b-2 or a horizontal coding block 310b-3 based on the binary tree, and the corresponding coding The division depth of a block can be increased to k+3. Alternatively, the third coding block 310b may be determined to be the terminal coding block 310b-1 that is no longer divided based on the binary tree, and in this case, the coding block 310b-1 may be used as a prediction block or transform block. You can. However, the above-described division process requires information about the size/depth of the coding block for which quad-tree-based division is allowed, information about the size/depth of the coding block for which binary tree-based division is allowed, or binary tree-based division is allowed. It may be performed limitedly based on at least one of information about the size/depth of a coding block that is not used.

코딩 블록이 가질 수 있는 크기는 소정 개수로 제한되거나, 소정 단위 내 코딩 블록의 크기는 고정된 값을 가질 수도 있다. 일 예로, 시퀀스 내 코딩 블록의 크기 또는 픽처 내 코딩 블록의 크기는, 256x256, 128x128 또는 32x32로 제한될 수 있다. 시퀀스 또는 픽처 내 코딩 블록의 크기를 나타내는 정보가 시퀀스 헤더 또는 픽처 헤더를 통해 시그널링 될 수 있다. The size that a coding block can have may be limited to a predetermined number, or the size of a coding block within a predetermined unit may have a fixed value. For example, the size of a coding block within a sequence or a size of a coding block within a picture may be limited to 256x256, 128x128, or 32x32. Information indicating the size of a coding block within a sequence or picture may be signaled through a sequence header or picture header.

쿼드 트리 및 바이너리 트리에 기반한 분할 결과, 코딩 유닛은, 정방형 또는 임의 크기의 직사각형을 띨 수 있다.As a result of partitioning based on quad tree and binary tree, the coding unit may be square or rectangular in shape.

도 6은 본 발명이 적용되는 일 실시예로서, 쿼드 트리 및 대칭형 바이너리 트리 분할에 기반하여 코딩 블록을 계층적으로 분할하는 일예를 도시한 것이다.Figure 6 is an embodiment to which the present invention is applied, showing an example of hierarchically partitioning a coding block based on quad tree and symmetric binary tree partitioning.

도 6은 특정 형태, 예를 들어 대칭형 바이너리 트리 기반의 분할만이 허용된 예를 나타낸 도면이다. 도 6의 (a)는 Nx2N 형태의 바이너리 트리 기반의 분할만이 허용되도록 제한된 예를 나타낸다. 예를 들어, 뎁스 1 코딩 블록 601은 뎁스 2에서 2개의 Nx2N 블록 (601a, 601b)으로 분할되고, 또한, 뎁스 2 코딩 블록 602는 뎁스 3에서 2개의 Nx2N 블록 (602a, 602b)로 분할 가능하다. Figure 6 is a diagram illustrating an example in which only division based on a specific type, for example, a symmetric binary tree, is allowed. Figure 6(a) shows an example where only Nx2N binary tree-based division is allowed. For example, depth 1 coding block 601 can be split into two Nx2N blocks (601a, 601b) at depth 2, and depth 2 coding block 602 can be split into two Nx2N blocks (602a, 602b) at depth 3. .

도 6의 (b)는 2NxN 형태의 바이너리 트리 기반의 분할만이 허용되도록 제한된 예를 나타낸다. 예를 들어, 뎁스 1 코딩 블록 603은 뎁스 2에서 2개의 2NxN 블록 (603a, 603b)으로 분할되고, 또한, 뎁스 2 코딩 블록 604는 뎁스 3에서 2개의 2NxN 블록 (604a, 604b)로 분할 가능하다.Figure 6(b) shows an example where only 2NxN binary tree-based division is allowed. For example, the depth 1 coding block 603 can be split into two 2NxN blocks (603a, 603b) at depth 2, and also the depth 2 coding block 604 can be split into two 2NxN blocks (604a, 604b) at depth 3. .

도 6의 (c)는 대칭형 바이너리 트리로 분할된 블록을 다시 대칭형 바이너리 트리로 분할하는 예를 나타낸다. 예를 들어, 뎁스 1 코딩 블록 605는, 뎁스 2에서 2개의 Nx2N 블록 (605a, 605b)으로 분할되고, 또한, 상기 분할후 생성된 뎁스 2 코딩 블록 605a는 뎁스 3에서 2개의 Nx2N 블록 (605a1, 605a2)로 분할 가능하다. 상기 분할 방식은 대칭형 바이너리 트리 분할에 의해 생성된 2NxN 코딩 블록에 대해서도 동일하게 적용 가능하다. Figure 6(c) shows an example of dividing a block divided into a symmetric binary tree again into a symmetric binary tree. For example, the depth 1 coding block 605 is divided into two Nx2N blocks (605a, 605b) at depth 2, and the depth 2 coding block 605a generated after the division is divided into two Nx2N blocks (605a1, 605b) at depth 3. 605a2) can be divided. The above partitioning method is equally applicable to 2NxN coding blocks generated by symmetric binary tree partitioning.

상기 쿼드 트리 또는 바이너리 트리 기반의 적응적 분할을 구현하기 위해 쿼드 트리 기반의 분할을 지시하는 정보, 쿼드 트리 기반의 분할이 허용되는 코딩 블록의 크기/깊이에 관한 정보, 바이너리 트리 기반의 분할을 지시하는 정보, 바이너리 트리 기반의 분할이 허용되는 코딩 블록의 크기/깊이에 대한 정보, 바이너리 트리 기반의 분할이 허용되지 않는 코딩 블록의 크기/깊이에 대한 정보 또는 바이너리 트리 기반의 분할이 세로 방향인지 또는 가로 방향인지에 관한 정보 등이 이용될 수 있다. 일 예로, quad_split_flag는 코딩 블록이 4개의 코딩 블록으로 분할되는지 여부를 나타내고, binary_split_flag는 코딩 블록이 2개의 코딩 블록으로 분할되는지 여부를 나타낼 수 있다. 코딩 블록이 2개의 코딩 블록으로 분할되는 경우, 코딩 블록의 분할 방향이 수직 방향인지 또는 수평 방향인지 여부를 나타내는 is_hor_split_flag가 시그널링될 수 있다.In order to implement the quad-tree or binary tree-based adaptive partitioning, information indicating quad-tree-based partitioning, information regarding the size/depth of the coding block for which quad-tree-based partitioning is allowed, and indicating binary tree-based partitioning information about the size/depth of coding blocks for which binary tree-based splitting is allowed, information about the size/depth of coding blocks for which binary tree-based splitting is not allowed, or whether the binary tree-based splitting is vertical, or Information about whether it is horizontally oriented can be used. As an example, quad_split_flag may indicate whether the coding block is split into four coding blocks, and binary_split_flag may indicate whether the coding block is split into two coding blocks. When a coding block is split into two coding blocks, is_hor_split_flag indicating whether the split direction of the coding block is vertical or horizontal may be signaled.

또한, 코딩 트리 유닛 또는 소정의 코딩 유닛에 대해, 바이너리 트리 분할이 허용되는 횟수, 바이너리 트리 분할이 허용되는 깊이 또는 바이너리 트리 분할이 허용된 뎁스의 개수 등이 획득될 수 있다. 상기 정보는 코딩 트리 유닛 또는 코딩 유닛 단위로 부호화되어, 비트스트림을 통해 복호화기로 전송될 수 있다.Additionally, for a coding tree unit or a predetermined coding unit, the number of times binary tree splitting is allowed, the depth at which binary tree splitting is allowed, or the number of depths at which binary tree splitting is allowed, etc. can be obtained. The information may be encoded in coding tree units or coding units and transmitted to the decoder through a bitstream.

일 예로, 비트스트림을 통해, 바이너리 트리 분할이 허용되는 최대 뎁스를 나타내는 신택스 'max_binary_depth_idx_minus1'가 비트스트림을 통해 부호화/복호화될 수 있다. 이 경우, max_binary_depth_idx_minus1+1이 바이너리 트리 분할이 허용되는 최대 뎁스를 가리킬 수 있다.As an example, the syntax 'max_binary_depth_idx_minus1' indicating the maximum depth at which binary tree division is allowed may be encoded/decoded through the bitstream. In this case, max_binary_depth_idx_minus1+1 may indicate the maximum depth at which binary tree division is allowed.

또한, 전술한 도 6 (c) 예를 살펴보면, 뎁스 2인 코딩 유닛 (예, 605a, 605b) 및 뎁스 3인 코딩 유닛 (예, 605a1, 605a2)에 대해 바이너리 트리 분할이 수행된 결과가 도시되었다. 이에 따라, 코딩 트리 유닛 내 바이너리 트리 분할이 수행된 횟수(예, 2회)를 나타내는 정보, 코딩 트리 유닛 내 바이너리 트리 분할이 허용된 최대 뎁스(예, 뎁스 3)를 나타내는 정보 또는 코딩 트리 유닛 내 바이너리 트리 분할이 허용된 뎁스의 개수(예, 2개, 뎁스 2 및 뎁스 3)를 나타내는 정보 중 적어도 하나가 비트스트림을 통해 부호화/복호화될 수 있다.In addition, looking at the example of FIG. 6 (c) described above, the results of binary tree division are shown for coding units with a depth of 2 (e.g., 605a, 605b) and coding units with a depth of 3 (e.g., 605a1, 605a2). . Accordingly, information indicating the number of times the binary tree split within the coding tree unit was performed (e.g., twice), information indicating the maximum depth allowed for the binary tree split within the coding tree unit (e.g., depth 3), or information indicating the number of times the binary tree split within the coding tree unit was performed (e.g., 2 times). At least one of the information indicating the number of depths (e.g., 2, depth 2, and depth 3) permitted for binary tree division may be encoded/decoded through a bitstream.

다른 예로, 바이너리 트리 분할이 허용되는 횟수, 바이너리 트리 분할이 허용되는 깊이 또는 바이너리 트리 분할이 허용된 뎁스의 개수 중 적어도 하나는 시퀀스, 슬라이스별로 획득될 수 있다. 일 예로, 상기 정보는, 시퀀스, 픽처 또는 슬라이스 단위로 부호화되어 비트스트림을 통해 전송될 수 있다. 이에 따라, 제1 슬라이스 및 제2 슬라이스의, 바이너리 트리 분할 횟수, 바이너리 트리 분할이 허용되는 최대 뎁스 또는 바이너리 트리 분할이 허용되는 뎁스의 개수 중 적어도 하나가 상이할 수 있다. 일 예로, 제1 슬라이스에서는, 하나의 뎁스에서만 바이너리 트리 분할이 허용되는 반면, 제2 슬라이스에서는, 두개의 뎁스에서 바이너리 트리 분할이 허용될 수 있다. As another example, at least one of the number of times binary tree division is allowed, the depth at which binary tree division is allowed, or the number of depths at which binary tree division is allowed may be obtained for each sequence and slice. As an example, the information may be encoded in units of sequences, pictures, or slices and transmitted through a bitstream. Accordingly, at least one of the number of binary tree divisions, the maximum depth at which binary tree division is allowed, or the number of depths at which binary tree division is allowed for the first slice and the second slice may be different. For example, in a first slice, binary tree splitting may be allowed only at one depth, while in a second slice, binary tree splitting may be allowed at two depths.

또 다른 일 예로, 슬라이스 또는 픽쳐의 시간레벨 식별자(Temporal_ID)에 따라 바이너리 트리 분할이 허용되는 횟수, 바이너리 트리 분할이 허용되는 깊이 또는 바이너리 트리 분할이 허용되는 뎁스의 개수 중 적어도 하나를 상이하게 설정할 수도 있다. 여기서, 시간레벨 식별자(Temporal_ID)는, 시점(view), 공간(spatial), 시간(temporal) 또는 화질(quality) 중 적어도 하나 이상의 스케일러빌리티(Scalability)를 갖는 영상의 복수개의 레이어 각각을 식별하기 위한 것이다.As another example, at least one of the number of times binary tree division is allowed, the depth at which binary tree division is allowed, or the number of depths at which binary tree division is allowed may be set differently depending on the temporal level identifier (Temporal_ID) of the slice or picture. there is. Here, the temporal level identifier (Temporal_ID) is used to identify each of a plurality of layers of the image with at least one scalability of view, spatial, temporal, or quality. will be.

또한, 바이너리 파티셔닝으로 파티션된 CU에서는 Transform skip을 사용하지 않도록 제한할 수도 있다. 또는 비 정방형으로 파티션된 CU에서는 수평 방향 또는 수직 방향 중 적어도 어느 하나의 방향에서만 transformskip을 적용할 수도 있다. 수평방향 transform skip만 적용하는 것은, 수평 방향으로 transform 수행없이 스케일링과 양자화만 수행하고, 수직 방향으로 DCT 나 DST 등 적어도 어느 하나의 transform을 특정하여 변환을 수행하는 것을 나타낸다. Additionally, the use of Transform skip can be restricted in CUs partitioned using binary partitioning. Alternatively, in a non-square partitioned CU, transformskip may be applied only in at least one of the horizontal or vertical directions. Applying only the horizontal transform skip indicates performing only scaling and quantization without performing the transform in the horizontal direction, and performing transformation by specifying at least one transform such as DCT or DST in the vertical direction.

이와 마찬가지로, 수직방향 transform skip만 적용하는 것은 수평 방향으로 DCT 나 DST 등 적어도 어느 하나의 transform을 특정하여 변환을 수행하고, 수직 방향으로 transform 수행없이 스케일링과 양자화만 수행하는 것을 나타낸다. 수평 방향 transform skip을 적용할지를 알려주는 신택스 hor_transform_skip_flag과 수직 방향 transform skip을 적용 여부를 알려주는 신택스 ver_transform_skip_flag을 시그날링할 수도 있다. Likewise, applying only the vertical transform skip indicates performing transformation by specifying at least one transform, such as DCT or DST, in the horizontal direction, and only scaling and quantization without performing the transform in the vertical direction. The syntax hor_transform_skip_flag, which indicates whether to apply horizontal transform skip, and the syntax ver_transform_skip_flag, which indicates whether to apply vertical transform skip, may be signaled.

수평방향 또는 수직방향 중 적어도 어느 하나에 transform skip을 적용할 때, CU의 형태에 따라 어느 방향으로 transform skip을 적용할 지를 시그날링 할 수도 있다.구체적으로 예를 들어, 2NxN 형태의 CU인 경우에 수평 방향으로 transform을 수행하고 수직 방향으로 transform skip을 적용할 수도 있으며, Nx2N 형태의 CU인 경우에 수평 방향으로 transform skip을 적용하고 수직 방향을 transform을 수행할 수도 있다. 여기서 transform은 DCT 또는 DST 중 적어도 어느 하나일 수 있다.When applying transform skip to at least one of the horizontal or vertical directions, signaling may be performed in which direction to apply transform skip depending on the type of CU. Specifically, for example, in the case of a CU in the form of 2NxN. You can perform transform in the horizontal direction and apply transform skip in the vertical direction. In the case of an Nx2N type CU, you can also apply transform skip in the horizontal direction and perform transform in the vertical direction. Here, the transform may be at least one of DCT or DST.

또 다른 예를 들어, 2NxN 형태의 CU인 경우에 수직 방향으로 transform을 수행하고 수평 방향으로 transform skip을 적용할 수도 있으며, Nx2N 형태의 CU인 경우에 수직 방향으로 transform skip을 적용하고 수평 방향을 transform을 수행할 수도 있다. 여기서 transform은 DCT 또는 DST 중 적어도 어느 하나일 수 있다.For another example, in the case of a 2NxN type CU, transform can be performed in the vertical direction and transform skip can be applied in the horizontal direction, and in the case of an Nx2N type CU, transform skip can be applied in the vertical direction and transform in the horizontal direction. You can also perform . Here, the transform may be at least one of DCT or DST.

도 7은 본 발명이 적용되는 일 실시예로서, 비대칭형 바이너리 트리 분할이 허용되는 파티션 형태를 나타낸 도면이다.2Nx2N 코딩 블록은 너비 비가 n:(1-n)인 2개의 코딩 블록 또는 높이 비가 n:(1-n)인 2개의 코딩 블록으로 분할될 수 있다. 여기서, n은 0보다 크고 1보다 작은 실수를 나타낼 수 있다. Figure 7 is an embodiment to which the present invention is applied and is a diagram showing a partition form in which asymmetric binary tree partitioning is allowed. A 2Nx2N coding block is two coding blocks with a width ratio of n:(1-n) or a height ratio of n. It can be divided into two coding blocks: :(1-n). Here, n can represent a real number greater than 0 and less than 1.

도 7에서는, 예를 들어 코딩 블록에 비대칭 바이너리 트리 파티셔닝이 적용됨에 따라, 너비 비가 1:3 인 2개의 코딩 블록 (701, 702), 또는 3:1인 2개의 코딩 블록 (703, 704), 또는 높이 비가 1:3 인 2개의 코딩 블록 (705, 706) 또는 3:1인 2개의 코딩 블록(707, 708)이 생성되는 것으로 도시되었다.In Figure 7, for example, as asymmetric binary tree partitioning is applied to the coding blocks, two coding blocks (701, 702) with a width ratio of 1:3, or two coding blocks (703, 704) with a width ratio of 3:1, Alternatively, it is shown that two coding blocks (705, 706) with a height ratio of 1:3 or two coding blocks (707, 708) with a height ratio of 3:1 are generated.

구체적으로, WxH 크기의 코딩 블록이 수직 방향으로 분할됨에 따라, 너비가 1/4W인 좌측 파티션 및 너비가 3/4W인 우측 파티션이 생성될 수 있다. 위와 같이, 좌측 파티션의 너비가 우측 파티션의 너비보다 작은 분할 형태를 nLx2N 바이너리 파티션이라 호칭할 수 있다.Specifically, as a coding block of size WxH is divided in the vertical direction, a left partition with a width of 1/4W and a right partition with a width of 3/4W can be created. As shown above, a partition type in which the width of the left partition is smaller than the width of the right partition can be called an nLx2N binary partition.

WxH 크기의 코딩 블록이 수직 방향으로 분할됨에 따라, 너비가 3/4W인 좌측 파티션 및 너비가 1/4W인 우측 파티션이 생성될 수도 있다. 위와 같이, 우측 파티션의 너비가 좌측 파티션의 너비보다 작은 분할 형태를 nRx2N 바이너리 파티션이라 호칭할 수 있다. As a coding block of size WxH is divided in the vertical direction, a left partition with a width of 3/4W and a right partition with a width of 1/4W may be created. As shown above, a partition type in which the width of the right partition is smaller than the width of the left partition can be called an nRx2N binary partition.

WxH 크기의 코딩 블록이 수평 방향으로 분할됨에 따라, 높이가 1/4H인 상단 파티션 및 높이가 3/4H인 하단 파티션이 생성될 수 있다. 위와 같이, 상단 파티션의 높이가 하단 파티션의 높이보다 작은 분할 형태를 2NxnU 바이너리 파티션이라 호칭할 수 있다. As a coding block of size WxH is divided in the horizontal direction, an upper partition with a height of 1/4H and a lower partition with a height of 3/4H can be created. As shown above, a partition type in which the height of the upper partition is smaller than the height of the lower partition can be called a 2NxnU binary partition.

WxH 크기의 코딩 블록이 수평 방향으로 분할됨에 따라, 높이가 3/4H인 상단 파티션 및 높이가 1/4H인 하단 파티션이 생성될 수 있다. 위와 같이, 하단 파티션의 높이가 상단 파티션의 높이보다 작은 분할 형태를 2NxnD 바이너리 파티션이라 호칭할 수 있다.As a coding block of size WxH is divided in the horizontal direction, an upper partition with a height of 3/4H and a lower partition with a height of 1/4H can be created. As shown above, a partition type in which the height of the lower partition is smaller than the height of the upper partition can be called a 2NxnD binary partition.

도 7에서는 두 코딩 블록간의 너비 비 또는 높이 비가 1:3 또는 3:1인 경우를 예시하였으나, 비대칭 바이너리 트리 파티셔닝에 의해 생성되는 두 코딩 블록 간 너비 비 또는 높이 비가 이에 한정되는 것은 아니다. 코딩 블록은 도 7에 도시된 것과 상이한 너비 비 또는 상이한 높이 비를 갖는 2개의 코딩 블록으로 분할될 수도 있다.FIG. 7 illustrates a case where the width or height ratio between two coding blocks is 1:3 or 3:1, but the width or height ratio between two coding blocks generated by asymmetric binary tree partitioning is not limited to this. A coding block may be split into two coding blocks with a different width ratio or a different height ratio than shown in Figure 7.

비대칭 바이너리 트리 파티셔닝을 이용하는 경우, 코딩 블록의 비대칭 바이너리 파티션 형태는 비트스트림을 통해 시그널링되는 정보에 기초하여 결정될 수 있다.일 예로, 코딩 블록의 분할 형태는 코딩 블록의 분할 방향을 나타내는 정보 및 코딩 블록이 분할됨에 따라 생성되는 제1 파티션이 제2 파티션보다 작은 크기를 갖는지 여부를 나타내는 정보를 기초로 결정될 수 있다.When using asymmetric binary tree partitioning, the asymmetric binary partition type of the coding block can be determined based on information signaled through the bitstream. For example, the division type of the coding block includes information indicating the division direction of the coding block and the coding block. It may be determined based on information indicating whether the first partition created as a result of this division has a smaller size than the second partition.

코딩 블록의 분할 방향을 나타내는 정보는, 코딩 블록이 수직 방향으로 분할되었는지 또는 수평 방향으로 분할되었는지 여부를 나타내는 1비트의 플래그일 수 있다. 일 예로, hor_binary_flag 는 코딩 블록이 수평 방향으로 분할되었는지 여부를 나타낼 수 있다. hor_binary_flag의 값이 1인 것은, 코딩 블록이 수평 방향으로 분할됨을 나타내고, hor_binary_flag의 값이 0인 것은, 코딩 블록이 수직 방향으로 분할됨을 나타낼 수 있다. 또는 코딩 블록이 수직 방향으로 분할되었는지 여부를 나타내는 ver_binary_flag가 이용될 수도 있다.Information indicating the division direction of the coding block may be a 1-bit flag indicating whether the coding block is divided in the vertical or horizontal direction. As an example, hor_binary_flag may indicate whether a coding block is divided in the horizontal direction. A value of hor_binary_flag of 1 may indicate that the coding block is divided in the horizontal direction, and a value of hor_binary_flag of 0 may indicate that the coding block is divided in the vertical direction. Alternatively, ver_binary_flag may be used, indicating whether the coding block is divided in the vertical direction.

제1 파티션이 제2 파티션보다 작은 크기를 갖는지 여부를 나타내는 정보는, 1비트의 플래그일 수 있다. 일 예로, is_left_above_small_part_flag는 코딩 블록이 분할됨에 따라 생성된 좌측 또는 상단 파티션의 크기가 우측 또는 하측 파티션 보다 작은지 여부를 나타낼 수 있다. is_left_above_small_part_flag의 값이 1인 것은 좌측 또는 상단 파티션의 크기가 우측 또는 하단 파티션보다 작은 것을 의미하고, is_left_above_small_part_flag의 값이 0인 것은 좌측 또는 상단 파티션의 크기가 우측 또는 하단 파티션보다 큰 것을 의미할 수 있다. 또는, 우측 또는 하단 파티션의 크기가 좌측 또는 상단 파티션보다 작은지 여부를 나타내는 is_right_bottom_small_part_flag를 사용할 수도 있다.Information indicating whether the first partition has a smaller size than the second partition may be a 1-bit flag. As an example, is_left_above_small_part_flag may indicate whether the size of the left or upper partition created as a coding block is divided is smaller than the right or lower partition. A value of is_left_above_small_part_flag of 1 means that the size of the left or top partition is smaller than the right or bottom partition, and a value of is_left_above_small_part_flag of 0 may mean that the size of the left or top partition is larger than the right or bottom partition. Alternatively, is_right_bottom_small_part_flag can be used, which indicates whether the size of the right or bottom partition is smaller than the left or top partition.

또는, 제1 파티션 및 제2 파티션 간의 너비비, 높이비 또는 넓이비를 나타내는 정보를 사용하여 제1 파티션 및 제2 파티션의 크기를 결정할 수도 있다.Alternatively, the sizes of the first partition and the second partition may be determined using information indicating the width ratio, height ratio, or area ratio between the first partition and the second partition.

hor_binary_flag의 값이 0이고, is_left_above_small_part_flag의 값이 1인 것은, nLx2N 바이너리 파티션을 나타내고, hor_binary_flag의 값이 0이고, is_left_above_small_part_flag의 값이 0인 것은, nRx2N 바이너리 파티션을 나타낼 수 있다. 또한, hor_binary_flag의 값이 1이고, is_left_above_small_part_flag의 값이 1인 것은, 2NxnU 바이너리 파티션을 나타내고, hor_binary_flag의 값이 1이고, is_left_above_small_part_flag의 값이 0인 것은 2NxnD 바이너리 파티션을 나타낼 수 있다.A value of hor_binary_flag of 0 and a value of is_left_above_small_part_flag of 1 may indicate an nLx2N binary partition, and a value of hor_binary_flag of 0 and a value of is_left_above_small_part_flag of 0 may indicate an nRx2N binary partition. Additionally, a value of hor_binary_flag of 1 and a value of is_left_above_small_part_flag of 1 may indicate a 2NxnU binary partition, and a value of hor_binary_flag of 1 and a value of is_left_above_small_part_flag of 0 may indicate a 2NxnD binary partition.

다른 예로, 코딩 블록의 비대칭 바이너리 파티션 형태는, 코딩 블록의 파티션 형태를 지시하는 인덱스 정보에 의해 결정될 수도 있다. 여기서, 인덱스 정보는 비트스트림을 통해 시그널링되는 정보로, 고정된 길이(즉, 고정된 비트 수)로 부호화될 수도 있고, 가변 길이로 부호화될 수도 있다. 일 예로, 하기 표 1은 비대칭 바이너리 파티션별 파티션 인덱스를 나타낸 것이다.As another example, the asymmetric binary partition type of the coding block may be determined by index information indicating the partition type of the coding block. Here, the index information is information signaled through a bitstream, and may be encoded with a fixed length (i.e., a fixed number of bits) or a variable length. As an example, Table 1 below shows the partition index for each asymmetric binary partition.

Asymetric partition indexAsymetric partition index BinarizationBinarization nLx2NnLx2N 00 00 nRx2NnRx2N 1One 1010 2NxnU2NxnU 22 100100 2NxnD2NxnD 33 111111

비대칭 바이너리 트리 파티셔닝은 QTBT 분할 방법에 종속적으로 이용될 수 있다.일 예로, 코딩 블록에 더 이상 쿼드 트리 분할 또는 바이너리 트리 분할이 적용되지 않는 경우, 해당 코딩 블록에 비대칭 바이너리 트리 분할을 적용할 것인지 여부가 결정될 수 있다. 여기서, 코딩 블록에 비대칭 바이너리 트리 분할을 적용할 것인지 여부는 비트스트림을 통해 시그널링되는 정보에 의해 결정될 수 있다. 예컨대, 상기 정보는 1비트의 플래그 'asymmetric_binary_tree_flag'일 수 있고, 상기 플래그에 기초하여, 코딩 블록에 비대칭 바이너리 트리 분할이 적용되는지 여부가 결정될 수 있다.또는, 코딩 블록이 2개의 블록으로 분할되는 것으로 결정되는 경우, 그 분할 형태가 바이너리 트리 분할인지 또는 비대칭 바이너리 트리 분할인지 여부가 결정될 수도 있다. 여기서, 코딩 블록의 분할 형태가 바이너리 트리 분할인지 또는 비대칭 바이너리 트리 분할인지 여부는 비트스트림을 통해 시그널링되는 정보에 의해 결정될 수 있다. 예컨대, 상기 정보는 1비트의 플래그 'is_asymmetric_split_flag'일 수 있고, 상기 플래그에 기초하여, 코딩 블록이 대칭 또는 비대칭 형태로 분할되는지 여부가 결정될 수 있다.Asymmetric binary tree partitioning may be used depending on the QTBT partitioning method. For example, when quad tree partitioning or binary tree partitioning is no longer applied to a coding block, whether to apply asymmetric binary tree partitioning to the coding block. can be decided. Here, whether to apply asymmetric binary tree partitioning to the coding block can be determined by information signaled through the bitstream. For example, the information may be a 1-bit flag 'asymmetric_binary_tree_flag', and based on the flag, it may be determined whether asymmetric binary tree division is applied to the coding block. Alternatively, the coding block may be divided into two blocks. When determined, it may be determined whether the division type is binary tree division or asymmetric binary tree division. Here, whether the division type of the coding block is binary tree division or asymmetric binary tree division can be determined by information signaled through the bitstream. For example, the information may be a 1-bit flag 'is_asymmetric_split_flag', and based on the flag, it may be determined whether the coding block is split symmetrically or asymmetrically.

다른 예로, 대칭형 바이너리 파티션 및 비대칭형 바이너리 파티션에 서로 다른 인덱스를 할당하고, 인덱스 정보에 따라, 코딩 블록이 대칭 형태 또는 비대칭 형태로 분할되는지 여부를 결정할 수도 있다. 일 예로, 표 2는 대칭형 바이너리 파티션 및 비대칭형 바이너리 파티션에 각기 다른 인덱스가 할당된 예를 나타낸 것이다.As another example, different indexes may be assigned to the symmetric binary partition and the asymmetric binary partition, and depending on the index information, it may be determined whether the coding block is divided into a symmetric or asymmetric form. As an example, Table 2 shows an example in which different indexes are assigned to a symmetric binary partition and an asymmetric binary partition.

Binary partition indexBinary partition index BinarizationBinarization 2NxN (수평 방향 바이너리 파티션)2NxN (horizontal binary partition) 00 00 Nx2N(수직 방향 바이너리 파티션)Nx2N (vertically oriented binary partition) 1One 1010 nLx2NnLx2N 22 110110 nRx2NnRx2N 33 11101110 2NxnU2NxnU 44 1111011110 2NxnD2NxnD 55 1111111111

코딩 트리 블록 또는 코딩 블록은, 쿼드 트리 분할, 바이너리 트리 분할 또는 비대칭 바이너리 트리 분할을 통해 복수의 코딩 블록으로 세분화될 수 있다. 일 예로, 도 8은 QTBT 및 비대칭 바이너리 트리 분할을 이용하여 코딩 블록이 복수의 코딩 블록으로 분할되는 예를 나타낸 도면이다. 도 9를 참조하면, 첫번째 그립의 뎁스 2 파티셔닝, 두번째 그림의 뎁스 3 파티셔닝, 세번째 그림의 뎁스 3 파티셔닝에서 각각 비대칭 바이너리 트리 분할이 수행된 것을 확인할 수 있다.비대칭 바이너리 트리 파티셔닝을 통해 분할된 코딩 블록은 더 이상 분할되지 않도록 제한될 수 있다. 일 예로, 비대칭 바이너리 트리 파티셔닝을 통해 생성된 코딩 블록에는 쿼드 트리, 바이너리 트리 또는 비대칭 바이너리 트리 관련 정보가 부호화/복호화되지 않을 수 있다. 즉, 비대칭 바이너리 트리 파티셔닝을 통해 생성된 코딩 블록에 대해서는, 쿼드 트리 분할 여부를 나타내는 플래그, 바이너리 트리 분할 여부를 타나내는 플래그, 비대칭 바이너리 트리 분할 여부를 나타내는 플래그, 바이너리 트리 또는 비대칭 바이너리 트리 분할 방향을 나타내는 플래그, 또는 비대칭 바이너리 파티션을 나타내는 인덱스 정보 등의 신택스의 부호화/복호화가 생략될 수 있다.A coding tree block or coding block may be subdivided into a plurality of coding blocks through quad tree partitioning, binary tree partitioning, or asymmetric binary tree partitioning. As an example, FIG. 8 is a diagram showing an example in which a coding block is divided into a plurality of coding blocks using QTBT and asymmetric binary tree partitioning. Referring to Figure 9, it can be seen that asymmetric binary tree partitioning was performed in the depth 2 partitioning of the first grip, the depth 3 partitioning of the second picture, and the depth 3 partitioning of the third picture. Coding blocks divided through asymmetric binary tree partitioning may be restricted from further division. As an example, information related to a quad tree, binary tree, or asymmetric binary tree may not be encoded/decoded in a coding block generated through asymmetric binary tree partitioning. That is, for coding blocks generated through asymmetric binary tree partitioning, a flag indicating whether to split the quad tree, a flag indicating whether to split the binary tree, a flag indicating whether to split the asymmetric binary tree, and the direction of splitting the binary tree or asymmetric binary tree. Encoding/decoding of syntax, such as a flag indicating a flag or index information indicating an asymmetric binary partition, may be omitted.

다른 예로, 바이너리 트리 파티셔닝을 허용할 것인지 여부는 QTBT의 허용 여부에 종속적으로 결정될 수 있다. 일 예로, QTBT에 기초한 분할 방법이 사용되지 않는 픽쳐 또는 슬라이스에서는 비대칭 바이너리 트리 파티셔닝이 사용되지 않도록 제한될 수 있다.As another example, whether to allow binary tree partitioning may be determined dependent on whether to allow QTBT. As an example, asymmetric binary tree partitioning may be restricted from being used in pictures or slices in which a QTBT-based partitioning method is not used.

비대칭 바이너리 트리 파티셔닝이 허용되는지 여부를 나타내는 정보가 블록 단위, 슬라이스 단위 또는 픽처 단위로 부호화되어 시그널링될 수도 있다. 여기서, 비대칭 바이너리 트리 파티셔닝이 허용되는지 여부를 나타내는 정보는 1비트의 플래그일 수 있다. 일 예로, is_used_asymmetric_QTBT_enabled_flag의 값이 0인 것은, 비대칭 바이너리 트리 파티셔닝이 사용되지 않음을 나타낼 수 있다. 픽처 단위 또는 슬라이스 단위로 바이너리 트리 파티셔닝이 사용되지 않는 경우, is_used_asymmetric_QTBT_enabled_flag를 시그널링하지 않고, 그 값을 0으로 설정할 수도 있다.Information indicating whether asymmetric binary tree partitioning is allowed may be encoded and signaled on a block, slice, or picture basis. Here, information indicating whether asymmetric binary tree partitioning is allowed may be a 1-bit flag. As an example, a value of is_used_asymmetric_QTBT_enabled_flag of 0 may indicate that asymmetric binary tree partitioning is not used. If binary tree partitioning is not used on a picture or slice basis, is_used_asymmetric_QTBT_enabled_flag may not be signaled and its value may be set to 0.

도 8은 본 발명이 적용되는 일 실시예로서, 쿼드 트리 및 대칭형/비대칭형 바이너리 트리 분할에 기반한 코딩 블록의 분할 형태를 예시한 것이다.Figure 8 is an embodiment to which the present invention is applied, illustrating the division form of a coding block based on quad tree and symmetric/asymmetric binary tree division.

도 8의 (a)는 nLx2N 형태의 비대칭형 바이너리 트리 기반의 분할이 허용된 예를 나타낸다. 예를 들어, 뎁스 1 코딩 블록 801은 뎁스 2에서 비대칭형 2개의 nLx2N 블록 (801a, 801b)으로 분할되고, 또한, 뎁스 2 코딩 블록 801b는 뎁스 3에서 대칭형 2개의 Nx2N 블록 (801b1, 801b2)로 분할된 예를 도시한 것이다. Figure 8(a) shows an example in which splitting based on an asymmetric binary tree in the nLx2N format is allowed. For example, depth 1 coding block 801 is split into two asymmetric nLx2N blocks (801a, 801b) at depth 2, and also depth 2 coding block 801b is split into two symmetric Nx2N blocks (801b1, 801b2) at depth 3. An example of division is shown.

도 8의 (b)는, nRx2N 형태의 비대칭형 바이너리 트리 기반의 분할이 허용된 예를 나타낸다. 예를 들어, 뎁스 2 코딩 블록 802는 뎁스 3에서 비대칭형 2개의 nRx2N 블록 (802a, 802b)으로 분할된 예를 도시한 것이다.Figure 8(b) shows an example in which splitting based on an asymmetric binary tree in the nRx2N format is allowed. For example, the depth 2 coding block 802 is divided into two asymmetric nRx2N blocks 802a and 802b at depth 3.

도 8의 (c)는 2NxnU 형태의 비대칭형 바이너리 트리 기반의 분할이 허용된 예를 나타낸다. 예를 들어, 뎁스 2 코딩 블록 803은 뎁스 3에서 비대칭형 2개의 2NxnU 블록 (803a, 803b)으로 분할된 예를 도시한 것이다.Figure 8 (c) shows an example in which splitting based on an asymmetric binary tree in the form of 2NxnU is allowed. For example, the depth 2 coding block 803 shows an example of being divided into two asymmetric 2NxnU blocks (803a, 803b) at depth 3.

코딩 블록의 크기, 형태, 분할 깊이 또는 분할 형태 등에 기초하여, 코딩 블록에 허용되는 분할 형태가 결정될 수도 있다. 일 예로, 쿼드 트리 분할에 의해 생성된 코딩 블록 및 바이너리 트리 분할에 의해 생성된 코딩 블록 사이 허용되는 분할 타입, 파티션 형태 또는 파티션 개수 중 적어도 하나는 상이할 수 있다.Based on the size, shape, division depth, or division type of the coding block, an allowable division type for the coding block may be determined. As an example, at least one of the partition type, partition type, or number of partitions allowed between the coding block generated by quad tree partition and the coding block generated by binary tree partition may be different.

일 예로, 코딩 블록이 쿼드 트리 분할에 의해 생성된 것일 경우, 해당 코딩 블록에는, 쿼드 트리 분할, 바이너리 트리 분할 및 비대칭 바이너리 트리 분할 모두 허용될 수 있다. 즉, 코딩 블록이 쿼드 트리 분할에 기초하여 생성된 것일 경우, 코딩 블록에는 도 10에 나타난 모든 파티션 형태가 적용될 수 있다.일 예로, 2Nx2N 파티션은 코딩 블록이 더 이상 분할되지 않는 경우를 나타내고, NxN은 코딩 블록이 쿼드트리 분할되는 경우를 나타내며, Nx2N 및 2NxN은 코딩 블록이 바이너리 트리 분할되는 경우를 나타낼 수 있다. 또한, nLx2N, nRx2N, 2NxnU 및 2NxnD는 코딩 블록이 비대칭 바이너리 트리 분할되는 경우를 나타낼 수 있다.For example, when a coding block is generated by quad-tree partitioning, quad-tree partitioning, binary tree partitioning, and asymmetric binary tree partitioning may all be allowed for the coding block. That is, if the coding block is generated based on quad tree partitioning, all partition types shown in Figure 10 can be applied to the coding block. For example, a 2Nx2N partition indicates a case where the coding block is no longer partitioned, and NxN indicates a case where a coding block is divided into a quad tree, and Nx2N and 2NxN may indicate a case where a coding block is divided into a binary tree. Additionally, nLx2N, nRx2N, 2NxnU, and 2NxnD may indicate a case where a coding block is divided into an asymmetric binary tree.

반면, 코딩 블록이 바이너리 트리 분할에 의해 생성된 것일 경우, 해당 코딩 블록에는 비대칭 바이너리 트리 분할을 제한할 수 있다. 즉, 코딩 블록이 바이너리 트리 분할에 기초하여 생성된 것일 경우, 코딩 블록에는 도 7에 도시된 파티션 형태들 중 비대칭 파티션 형태(nLx2N, nRx2N, 2NxnU, 2NxnD)을 적용하는 것이 제한될 수 있다.On the other hand, if the coding block is generated by binary tree partitioning, asymmetric binary tree partitioning may be restricted to the corresponding coding block. That is, if the coding block is generated based on binary tree division, application of the asymmetric partition type (nLx2N, nRx2N, 2NxnU, 2NxnD) among the partition types shown in FIG. 7 to the coding block may be limited.

도 9는 본 발명이 적용되는 일 실시예로서, 쿼드 트리 및 바이너리 트리 분할에 기반한 코딩 블록 분할 방법에 대한 흐름도이다.Figure 9 is a flowchart of a coding block partitioning method based on quad tree and binary tree partitioning as an embodiment to which the present invention is applied.

뎁스 k 코딩 블록을, 뎁스 k+1 코딩 블록으로 분할하는 것으로 가정한다. 우선, 뎁스 k 현재 블록에 쿼드 트리 분할이 적용되는 지를 판단한다(S910). 만약 쿼드 트리 분할이 적용되었다면, 현재 블록을 4개의 정방형 블록으로 분할한다(S920). 반면, 만약 쿼드 트리 분할이 적용되지 않았다면, 현재 블록에 바이너리 트리 분할이 적용되는 지를 판단한다(S930). 만약 바이너리 트리 분할도 적용되지 않았다면, 현재 블록은 분할 없이 뎁스 k+1 코딩 블록이 된다. 상기 S930 판단 결과, 현재 블록에 바이너리 트리 분할이 적용되었다면, 대칭형 바이너리 분할 또는 비대칭형 바이너리 분할 중 어느 방식이 적용되는 지를 확인한다(S940). 상기 S940 판단 결과에 따라, 현재 블록에 적용되는 파티션 형태를 결정한다(S950). 예를 들어, 상기 S950 단계에 적용되는 파티션 형태는, 대칭형인 경우 도 4(b) 형태중 어느 하나, 또는 비대칭형인 경우 도4(c) 형태 중 어느 하나가 될 수 있다. 상기 S950을 통해, 결정된 파티션 형태에 따라, 현재 블록을 2개의 뎁스 k+1 코딩 블록으로 분할하게 된다(S960). It is assumed that the depth k coding block is divided into depth k+1 coding blocks. First, it is determined whether quad tree division is applied to the current block with depth k (S910). If quad tree partitioning is applied, the current block is partitioned into four square blocks (S920). On the other hand, if quad tree division is not applied, it is determined whether binary tree division is applied to the current block (S930). If binary tree splitting is also not applied, the current block becomes a depth k+1 coding block without splitting. As a result of the determination at S930, if binary tree partitioning has been applied to the current block, it is checked whether symmetric binary partitioning or asymmetric binary partitioning is applied (S940). According to the determination result at S940, the partition type applied to the current block is determined (S950). For example, the partition shape applied in step S950 may be any one of the shapes of FIG. 4(b) if it is symmetrical, or the shape of FIG. 4(c) if it is asymmetric. Through S950, the current block is divided into two depth k+1 coding blocks according to the determined partition type (S960).

도 10은 본 발명이 적용되는 일 실시예로서, 쿼드 트리 및 바이너리 트리 분할이 적용되는 네트워크 추상화 계층 (NAL)에 포함되는 신택스 요소(syntax element)를 예를 들어 도시한 것이다.Figure 10 is an embodiment to which the present invention is applied, showing as an example a syntax element included in a network abstraction layer (NAL) to which quad tree and binary tree partitioning is applied.

본 발명이 적용되는 압축된 영상은, 예를 들어 네트워크 추상화 계층 (Network Abstract Layer, 이하 'NAL' 이라 함) 단위로 패킷화 되어 전송 매체를 통해 전송될 수 있다. 단, 본 발명은 NAL에 한정되지 않으며, 향후 개발될 다양한 데이터 전송 방식에도 적용 가능하다. 본 발명이 적용되는 NAL 유닛은, 예를 들어, 도 10에 도시된 바와 같이 비디오 파라미터 셋 (VPS), 시퀀스 파라미터 셋(SPS), 픽쳐 파라미터 셋(PPS) 및 적어도 하나 이상의 슬라이스 셋(Slice)을 포함할 수 있다. Compressed video to which the present invention is applied can be, for example, packetized in units of Network Abstract Layer (hereinafter referred to as 'NAL') and transmitted through a transmission medium. However, the present invention is not limited to NAL and can be applied to various data transmission methods to be developed in the future. For example, the NAL unit to which the present invention is applied includes a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), and at least one slice set (Slice), as shown in FIG. 10. It can be included.

예를 들어, 도 10에서는 시퀀스 파라미터 셋(SPS)에 포함된 신택스 요소를 도시하였으나, 픽쳐 파라미터 셋(PPS) 또는 슬라이스 셋(Slice)에 신택스 요소를 포함하는 것도 가능하다. 또한, 신택스 요소별로 시퀀스 단위 또는 픽쳐 단위에 공통적으로 적용될 신택스 요소는 시퀀스 파라미터 셋(SPS) 또는 픽쳐 파라미터 셋(PPS)에 포함되도록 할 수 있다. 반면, 해당 슬라이스에만 적용되는 신택스 요소는 슬라이스 셋(Slice)에 포함되는 것이 바람직하다. 따라서, 이는 부호화 성능 및 효율을 고려하여 선택이 가능하다. For example, Figure 10 shows syntax elements included in a sequence parameter set (SPS), but it is also possible to include syntax elements in a picture parameter set (PPS) or slice set (Slice). Additionally, for each syntax element, syntax elements to be commonly applied to the sequence unit or picture unit can be included in the sequence parameter set (SPS) or picture parameter set (PPS). On the other hand, it is desirable that syntax elements that apply only to the corresponding slice are included in the slice set (Slice). Therefore, it can be selected considering coding performance and efficiency.

관련하여, 쿼드 트리 및 바이너리 트리 분할이 적용되는 신택스 요소를 설명하면 다음과 같다. 도 10에 도시된 모든 신택스 요소를 필수 요소로 설정하는 것도 가능하지만, 부호화 효율 및 성능을 고려하여, 이중 신택스 요소를 선택적으로 설정하는 것도 가능하다. In relation to this, the syntax elements to which quad tree and binary tree partitioning are applied are described as follows. Although it is possible to set all syntax elements shown in FIG. 10 as essential elements, it is also possible to selectively set dual syntax elements in consideration of coding efficiency and performance.

일 예로, 'quad_split_flag'는 코딩 블록이 4개의 코딩 블록으로 분할되는지 여부를 나타낸다. 'binary_split_flag'는 코딩 블록이 2개의 코딩 블록으로 분할되는지 여부를 나타낼 수 있다. 코딩 블록이 2개의 코딩 블록으로 분할되는 경우, 코딩 블록의 분할 방향이 수직 방향인지 또는 수평 방향인지 여부를 나타내는 'is_hor_split_flag'가 시그널링될 수 있다. “is_hor_split_flag = 1” 이면 수평방향을 “is_hor_split_flag = 0” 이면 수직방향을 나타내는 것으로 정의할 수 있다. As an example, 'quad_split_flag' indicates whether a coding block is split into four coding blocks. 'binary_split_flag' may indicate whether a coding block is split into two coding blocks. When a coding block is split into two coding blocks, 'is_hor_split_flag' indicating whether the split direction of the coding block is vertical or horizontal may be signaled. “is_hor_split_flag = 1” can be defined as horizontal direction, and “is_hor_split_flag = 0” can be defined as vertical direction.

또한, 다른 대안으로, 'isUseBinaryTreeFlag'를 통해 현재 블록에 바이너리 트리 파티셔닝이 적용 여부를 나타내고, 또한, 코딩 블록의 분할 방향을 나타내는 신택스 요소로서, 'hor_binary_flag' 는 코딩 블록이 수평 방향으로 분할되었는지 여부를 나타낼 수 있다. 예를 들어, “hor_binary_flag = 1”인 경우, 코딩 블록이 수평 방향으로 분할됨을 나타내고, “hor_binary_flag = 0”인 경우, 코딩 블록이 수직 방향으로 분할됨을 나타낼 수 있다. 또는 'hor_binary_flag' 대신 코딩 블록이 수직 방향으로 분할되었는지 여부를 나타내는 ver_binary_flag가 이용하여 동일한 방식으로 설정할 수 있다. Additionally, as another alternative, 'isUseBinaryTreeFlag' indicates whether binary tree partitioning is applied to the current block, and as a syntax element indicating the division direction of the coding block, 'hor_binary_flag' indicates whether the coding block is divided in the horizontal direction. It can be expressed. For example, “hor_binary_flag = 1” may indicate that the coding block is divided in the horizontal direction, and “hor_binary_flag = 0” may indicate that the coding block is divided in the vertical direction. Alternatively, it can be set in the same way by using ver_binary_flag, which indicates whether the coding block is divided in the vertical direction, instead of 'hor_binary_flag'.

또한, 바이너리 트리 분할이 허용되는 최대 뎁스를 나타내는 신택스 요소로서, 'max_binary_depth_idx_minus1'을 정의할 수 있다. 예를 들어, “max_binary_depth_idx_minus1 + 1”이 바이너리 트리 분할이 허용되는 최대 뎁스를 가리킬 수 있다.Additionally, 'max_binary_depth_idx_minus1' can be defined as a syntax element indicating the maximum depth at which binary tree division is allowed. For example, “max_binary_depth_idx_minus1 + 1” may indicate the maximum depth at which binary tree splitting is allowed.

또한, 수평 방향 transform skip을 적용할지를 알려주는 신택스 요소로서, 'hor_transform_skip_flag'과 수직 방향 transform skip을 적용 여부를 알려주는 신택스 요소로 'ver_transform_skip_flag'을 설정할 수도 있다.Additionally, 'hor_transform_skip_flag' can be set as a syntax element indicating whether to apply horizontal transform skip, and 'ver_transform_skip_flag' can be set as a syntax element indicating whether to apply vertical transform skip.

또한, 비대칭 바이너리 트리 파티셔닝이 허용되는지 여부를 나타내는 신택스 요소로서, 'is_used_asymmetric_QTBT_enabled_flag'을 정의할 수 있다. 예를 들어, “is_used_asymmetric_QTBT_enabled_flag = 1” 이면, 비대칭 바이너리 트리 파티셔닝이 사용되었음을 나타내고, “is_used_asymmetric_QTBT_enabled_flag = 0” 이면, 비대칭 바이너리 트리 파티셔닝이 사용되지 않았음을 나타낼 수 있다. 반면, 픽처 단위 또는 슬라이스 단위로 바이너리 트리 파티셔닝이 사용되지 않는 경우, is_used_asymmetric_QTBT_enabled_flag를 시그널링하지 않고, 그 값을 0으로 설정할 수도 있다. 또한, 다른 대안으로, 'asymmetric_binary_tree_flag'를 통해 현재 블록에 비대칭형 바이너리 트리 파티셔닝이 적용되는 지를 나타낼 수 있다.Additionally, 'is_used_asymmetric_QTBT_enabled_flag' can be defined as a syntax element indicating whether asymmetric binary tree partitioning is allowed. For example, if “is_used_asymmetric_QTBT_enabled_flag = 1”, it may indicate that asymmetric binary tree partitioning was used, and if “is_used_asymmetric_QTBT_enabled_flag = 0”, it may indicate that asymmetric binary tree partitioning was not used. On the other hand, if binary tree partitioning is not used on a picture or slice basis, is_used_asymmetric_QTBT_enabled_flag may not be signaled and its value may be set to 0. Additionally, as another alternative, 'asymmetric_binary_tree_flag' can be used to indicate whether asymmetric binary tree partitioning is applied to the current block.

또한, 비대칭형 바이너리 트리 분할을 나타내는 신택스 요소로서, 'is_left_above_small_part_flag'는 코딩 블록이 분할됨에 따라 생성된 좌측 또는 상단 파티션의 크기가 우측 또는 하측 파티션 보다 작은지 여부를 나타낼 수 있다. 예를 들어, “is_left_above_small_part_flag =1” 인 경우, 좌측 또는 상단 파티션의 크기가 우측 또는 하단 파티션보다 작은 것을 의미하고, “is_left_above_small_part_flag = 0”인 경우, 좌측 또는 상단 파티션의 크기가 우측 또는 하단 파티션보다 큰 것을 의미할 수 있다. 또는, 'is_left_above_small_part_flag' 대신, 우측 또는 하단 파티션의 크기가 좌측 또는 상단 파티션보다 작은지 여부를 나타내는 'is_right_bottom_small_part_flag'를 사용할 수도 있다.Additionally, as a syntax element indicating asymmetric binary tree division, 'is_left_above_small_part_flag' may indicate whether the size of the left or upper partition created as the coding block is divided is smaller than the right or lower partition. For example, if “is_left_above_small_part_flag = 1”, it means that the size of the left or top partition is smaller than the right or bottom partition, and if “is_left_above_small_part_flag = 0”, it means that the size of the left or top partition is larger than the right or bottom partition. It can mean something. Alternatively, instead of 'is_left_above_small_part_flag', you can use 'is_right_bottom_small_part_flag', which indicates whether the size of the right or bottom partition is smaller than the left or top partition.

관련하여, 상기 신택스 요소들을 조합하여 코딩 블록의 비대칭형 바이너리 파티션 형태를 정의하는 것이 가능하다. 예를 들어, “hor_binary_flag = 0” 이고“is_left_above_small_part_flag =1” 이면 nLx2N 바이너리 파티션을 나타내고, “hor_binary_flag = 0”이고, “is_left_above_small_part_flag = 0” 이면 nRx2N 바이너리 파티션을 나타내는 것으로 설정할 수 있다. 또한, “hor_binary_flag = 1”이고 “is_left_above_small_part_flag = 1” 이면 2NxnU 바이너리 파티션을 나타내고, “hor_binary_flag = 1”이고 “is_left_above_small_part_flag = 0”이면 2NxnD 바이너리 파티션을 나타낼 수 있다. 마찬가지로, 상기 'ver_binary_flag' 및 'is_right_bottom_small_part_flag'의 조합을 이용하여 비대칭형 바이너리 파티션 형태를 나타낼 수 도 있다. In relation to this, it is possible to define an asymmetric binary partition form of a coding block by combining the above syntax elements. For example, if “hor_binary_flag = 0” and “is_left_above_small_part_flag =1”, it can be set to indicate an nLx2N binary partition, and if “hor_binary_flag = 0” and “is_left_above_small_part_flag = 0”, it can be set to indicate an nRx2N binary partition. Additionally, if “hor_binary_flag = 1” and “is_left_above_small_part_flag = 1”, it can indicate a 2NxnU binary partition, and if “hor_binary_flag = 1” and “is_left_above_small_part_flag = 0”, it can indicate a 2NxnD binary partition. Likewise, an asymmetric binary partition form can be indicated using a combination of 'ver_binary_flag' and 'is_right_bottom_small_part_flag'.

또한, 다른 대안으로, Asymetric_partition_index'에 의해 전술한 표 1의 인덱스를 표시하거나, 또는 'Binary_partition_index'에 의해 전술한 표 2의 인덱스를 표시함에 의해, 코딩 블록의 비대칭형 바이너리 파티션 형태를 정의하는 것이 가능하다. Additionally, as another alternative, it is possible to define an asymmetric binary partition form of the coding block by indicating the index of the above-described Table 1 by 'Asymetric_partition_index', or by indicating the index of the above-described Table 2 by 'Binary_partition_index'. do.

상술한 예에서 살펴본 바와 같이, 코딩 유닛(또는 코딩 트리 유닛)은 적어도 하나의 수직선 또는 수평선 등에 의해 재귀적으로 분할될 수 있다. 일 예로, 쿼드 트리 분할은, 수평선 및 수직선을 이용하여 코딩 블록을 분할하는 방법이고, 바이너리 트리 분할은, 수평선 또는 수직선을 이용하여 코딩 블록을 분할하는 방법으로 요약될 수 있다. 쿼드 트리 분할 및 바이너리 트리 분할되는 코딩 블록의 파티션 형태는 도 4 내지 도 8에 도시된 예에 한정되지 않으며, 도시된 것 이외의 확장된 파티션 형태가 사용될 수 있다. 즉, 코딩 블록은 도 4 내지 도 8에 도시된 것과 다른 형태로 재귀적으로 분할될 수 있다. As seen in the above example, a coding unit (or coding tree unit) may be recursively divided by at least one vertical or horizontal line. As an example, quad tree partitioning can be summarized as a method of partitioning a coding block using horizontal and vertical lines, and binary tree partitioning can be summarized as a method of partitioning a coding block using horizontal or vertical lines. The partition form of the coding block that is divided into quad tree division and binary tree division is not limited to the examples shown in FIGS. 4 to 8, and extended partition forms other than those shown may be used. That is, the coding block may be recursively divided into a form different from that shown in FIGS. 4 to 8.

도 11은 본 발명이 적용되는 다른 실시예로서, 비대칭형 쿼드 트리 분할이 허용되는 파티션 형태를 나타낸 도면이다.Figure 11 is another embodiment to which the present invention is applied, a diagram showing a partition type in which asymmetric quad tree partitioning is permitted.

현재 블록이 쿼드 트리 분할되는 경우, 수평선 또는 수직선 중 적어도 하나는 코딩 블록을 비대칭 형태로 분할할 수도 있다. 여기서, 비대칭은, 수평선에 의해 분할된 블록들의 높이가 동일하지 않은 경우 또는 수직선에 의해 분할된 블록들의 너비가 동일하지 않은 경우 등을 의미할 수 있다. 일 예로, 수평선은 코딩 블록을 비대칭 형태로 분할함에 반해, 수직선은 코딩 블록을 대칭 형태로 분할할 수도 있고, 수평선은 코딩 블록을 대칭 형태로 분할함에 반해, 수직선은 코딩 블록을 비대칭 형태로 분할할 수도 있다. 또는, 수평선 및 수직선 모두 코딩 블록을 비대칭 형태로 분할할 수도 있다.When the current block is divided into a quad tree, at least one of the horizontal or vertical lines may divide the coding block in an asymmetric form. Here, asymmetry may mean that the heights of blocks divided by horizontal lines are not the same or the widths of blocks divided by vertical lines are not the same. For example, a horizontal line may divide a coding block in an asymmetrical form, while a vertical line may divide a coding block in a symmetrical form, and while a horizontal line may divide a coding block in a symmetrical form, a vertical line may divide a coding block in an asymmetrical form. It may be possible. Alternatively, the coding block may be divided in an asymmetric manner by both horizontal and vertical lines.

도 11 (a)는 코딩 블록의 대칭형 쿼드 트리 분할 형태를 나타내고, (b)~(k)는 코딩 블록의 비대칭형 쿼드 트리 분할 형태를 나타낸 도면이다. 도 11 (a)는 수평선 및 수직선이 모두 대칭형 분할에 이용된 예를 나타낸 것이다. 도 11 (b) 및 (c)는 수평선은 대칭형 분할에 이용된 반면, 수직선은 비대칭형 분할에 이용된 예를 나타낸 것이다. 도 11 (d) 및 (e)는 수직선은 대칭형 분할에 이용된 반면, 수평선은 비대칭형 분할에 이용된 예를 나타낸 것이다.Figure 11 (a) shows a symmetrical quad-tree division form of a coding block, and (b) to (k) are diagrams showing an asymmetric quad-tree partition form of a coding block. Figure 11 (a) shows an example in which both horizontal and vertical lines are used for symmetrical division. Figures 11 (b) and (c) show examples where horizontal lines are used for symmetrical division, while vertical lines are used for asymmetrical division. Figures 11 (d) and (e) show examples where vertical lines are used for symmetrical division, while horizontal lines are used for asymmetrical division.

코딩 블록의 분할 형태를 특정하기 위해, 코딩 블록의 분할 형태와 관련된 정보를 부호화할 수 있다. 여기서, 상기 정보는, 코딩 블록의 분할 형태가 대칭형인지 또는 비대칭형인지를 나타내는 제1 지시자를 포함할 수 있다. 제1 지시자는 블록 단위로 부호화될 수도 있고, 수직선 또는 수평선 별로 부호화될 수 있다. 일 예로, 제1 지시자는 수직선이 대칭 분할에 이용되는지 여부를 나타내는 정보 및 수평선이 대칭 분할에 이용되는지 여부를 나타내는 정보를 포함할 수 있다.In order to specify the division type of the coding block, information related to the division type of the coding block may be encoded. Here, the information may include a first indicator indicating whether the division form of the coding block is symmetric or asymmetric. The first indicator may be encoded in blocks, or may be encoded in vertical or horizontal lines. As an example, the first indicator may include information indicating whether a vertical line is used for symmetric division and information indicating whether a horizontal line is used for symmetric division.

또는, 상기 제1 지시자는 수직선 또는 수평선 중 적어도 하나에 대해서만 부호화되고, 제1 지시자가 부호화되지 않는 다른 하나의 분할 형태는 제1 지시자에 의해 종속적으로 유도될 수도 있다. 예컨대, 제1 지시자가 부호화되지 않는 다른 하나의 분할 형태는 제1 지시자와 반대의 값을 가질 수 있다. 즉, 제1 지시자가 수직선이 비대칭분할에 이용됨을 나타내는 경우, 수평선은 제1 지시자와 반대인 대칭 분할에 이용되도록 설정될 수 있다.Alternatively, the first indicator may be encoded only for at least one of a vertical line or a horizontal line, and another segmentation form in which the first indicator is not encoded may be derived dependently by the first indicator. For example, another segmentation form in which the first indicator is not encoded may have a value opposite to that of the first indicator. That is, when the first indicator indicates that a vertical line is used for asymmetric division, the horizontal line may be set to be used for symmetric division opposite to the first indicator.

제1 지시자가 비대칭 분할임을 나타내는 경우, 수직선 또는 수평선에 대해 제2 지시자를 추가 부호화할 수도 있다. 여기서, 제2 지시자는, 비대칭 분할에 이용되는 수직선 또는 수평선의 위치 또는 수직선 또는 수평선에 의해 분할되는 블록 간의 비율 중 적어도 하나를 나타낼 수 있다. If the first indicator indicates asymmetric division, a second indicator may be additionally encoded for a vertical or horizontal line. Here, the second indicator may indicate at least one of the position of a vertical or horizontal line used for asymmetric division or a ratio between blocks divided by a vertical or horizontal line.

복수의 수직선 또는 복수의 수평선을 이용하여, 쿼드 트리 분할이 수행될 수도 있다. 일 예로, 하나 이상의 수직선 또는 하나 이상의 수평선 중 적어도 하나를 조합함으로써, 코딩 블록을 4개의 블록으로 분할하는 것도 가능하다.Quad tree division may be performed using a plurality of vertical lines or a plurality of horizontal lines. For example, it is possible to divide a coding block into four blocks by combining at least one of one or more vertical lines or one or more horizontal lines.

도 11 (f)~(k)는 복수의 수직선/수평선과 하나의 수평선/수직선을 조합함으로써, 코딩 블록을 비대칭적으로 분할하는 예를 나타낸 도면이다. Figures 11 (f) to (k) are diagrams showing an example of asymmetrically dividing a coding block by combining a plurality of vertical/horizontal lines and one horizontal/vertical line.

도 11 (f)~(k)를 참조하면, 쿼드트리 분할은, 두개의 수직선 또는 두개의 수평선에 의해 코딩 블록을 세개의 블록으로 분할하고, 분할된 3개의 블록 중 어느 하나를 2개의 블록으로 분할함으로써 수행될 수 있다. 이때, 도 11 (f)~(k)에 도시된 예에서와 같이, 두개의 수직선 또는 두개의 수평선에 의해 분할된 블록 중 가운데에 위치한 블록이 하나의 수평선 또는 수직선에 의해 분할될 수 있다. 도시된 예에 그치지 않고, 코딩 블록의 일측 경계에 위치한 블록이 하나의 수평선 또는 수직선에 의해 분할될 수도 있다. 또는, 3개의 파티션 중 분할되는 파티션을 특정하기 위한 정보(예컨대, 파티션 인덱스)가 비트스트림을 통해 시그날링될 수도 있다. Referring to Figures 11 (f) to (k), quad tree division divides a coding block into three blocks by two vertical lines or two horizontal lines, and divides any one of the three divided blocks into two blocks. This can be done by dividing. At this time, as in the example shown in FIGS. 11 (f) to (k), a block located in the middle of blocks divided by two vertical lines or two horizontal lines may be divided by one horizontal line or vertical line. In addition to the example shown, a block located on one boundary of a coding block may be divided by a single horizontal or vertical line. Alternatively, information (eg, partition index) for specifying which of the three partitions is divided may be signaled through a bitstream.

수평선 또는 수직선 중 적어도 하나는 코딩 블록을 비대칭 형태로 분할하는데 이용되고, 다른 하나는 코딩 블록을 대칭 형태로 분할하는데 이용될 수 있다. 일 예로, 복수의 수직선 또는 수평선이 코딩 블록을 대칭 형태로 분할하는데 이용되거나, 하나의 수평선 또는 수직선이 코딩 블록을 대칭 형태로 분할하는데 이용될 수 있다. 또는, 수평선 또는 수직선 모두 코딩 블록을 대칭 형태로 분할하는데 이용되거나, 비대칭 형태로 분할하는데 이용될 수도 있다.At least one of the horizontal or vertical lines may be used to divide the coding block in an asymmetric form, and the other line may be used to divide the coding block in a symmetric form. For example, a plurality of vertical or horizontal lines may be used to divide a coding block in a symmetrical form, or a single horizontal or vertical line may be used to divide a coding block in a symmetrical form. Alternatively, both horizontal and vertical lines may be used to divide the coding block in a symmetrical form or may be used to divide the coding block in an asymmetrical form.

예를 들어, 도 11(f)는, 2개 수직선에 의해 비대칭 형태로 분할된 가운데 코딩 블록을 수평선에 의해 2개의 대칭형 코딩 블록으로 분할한 파티션 형태를 도시한 것이다. 또한, 도 11(g)는 2개 수평선에 의해 비대칭 형태로 분할된 가운데 코딩 블록을 수직선에 의해 2개의 대칭형 코딩 블록으로 분할한 파티션 형태를 도시한 것이다.For example, Figure 11(f) shows a partition form in which a central coding block is asymmetrically divided by two vertical lines and is divided into two symmetric coding blocks by a horizontal line. Additionally, FIG. 11(g) shows a partition form in which the middle coding block is asymmetrically divided by two horizontal lines and is divided into two symmetric coding blocks by a vertical line.

반면, 도 11(h) 및 (i)는, 2개 수직선에 의해 비대칭 형태로 분할된 가운데 코딩 블록을 수평선에 의해 다시 2개의 비대칭형 코딩 블록으로 분할한 파티션 형태를 도시한 것이다. 또한, 도 11(j) 및 (k)는, 2개 수평선에 의해 비대칭 형태로 분할된 가운데 코딩 블록을 수직선에 의해 다시 2개의 비대칭형 코딩 블록으로 분할한 파티션 형태를 도시한 것이다.On the other hand, Figures 11(h) and (i) show a partition form in which the central coding block, which is asymmetrically divided by two vertical lines, is further divided into two asymmetric coding blocks by a horizontal line. In addition, Figures 11 (j) and (k) show a partition form in which the central coding block, which is asymmetrically divided by two horizontal lines, is further divided into two asymmetric coding blocks by a vertical line.

복수의 수직선/수평선과 하나의 수평선/수직선을 조합하는 경우, 코딩 블록은 적어도 2개의 서로 다른 크기로 구성된 4개의 파티션(즉, 4개의 코딩 블록)으로 분할된다. 이처럼 코딩 블록을 적어도 2개의 서로 다른 크기로 구성된 4개의 파티션으로 분할하는 것을 3종 비대칭 쿼드 트리 파티셔닝(Triple Type Asymmetric Quad-treeCU partitioning)이라 호칭할 수 있다.When combining multiple vertical/horizontal lines and one horizontal/vertical line, the coding block is divided into four partitions (i.e., four coding blocks) of at least two different sizes. In this way, dividing a coding block into four partitions of at least two different sizes can be called Triple Type Asymmetric Quad-treeCU partitioning.

3종 비대칭 쿼드 트리 파티셔닝에 관한 정보는 전술한 제1 지시자 또는 제2 지시자 중 적어도 하나를 기초로 부호화될 수 있다. 일 예로, 제1 지시자는 코딩 블록의 분할 형태가 대칭형인지 또는 비대칭형인지를 나타낼 수 있다. 제1 지시자는 블록 단위로 부호화될 수도 있고, 수직선 또는 수평선 별로 부호화될 수도 있다. 일 예로, 제1 지시자는 하나 이상의 수직선이 대칭 분할에 이용되는지 여부를 나타내는 정보 및 하나 이상의 수평선이 대칭 분할에 이용되는지 여부를 나타내는 정보를 포함할 수 있다. Information about type 3 asymmetric quad tree partitioning may be encoded based on at least one of the above-described first indicator or second indicator. As an example, the first indicator may indicate whether the division form of the coding block is symmetric or asymmetric. The first indicator may be encoded in blocks, or may be encoded in vertical or horizontal lines. As an example, the first indicator may include information indicating whether one or more vertical lines are used for symmetric division and information indicating whether one or more horizontal lines are used for symmetric division.

또는, 상기 제1 지시자는 수직선 또는 수평선 중 적어도 하나에 대해서만 부호화되고, 제1 지시자가 부호화되지 않는 다른 하나의 분할 형태는 제1 지시자에 의해 종속적으로 유도될 수도 있다.Alternatively, the first indicator may be encoded only for at least one of a vertical line or a horizontal line, and another segmentation form in which the first indicator is not encoded may be derived dependently by the first indicator.

제1 지시자가 비대칭 분할을 나타내는 경우, 수직선 또는 수평선에 대해 제2 지시자를 추가 부호화할 수도 있다. 여기서, 제2 지시자는, 비대칭 분할에 이용되는 수직선 또는 수평선의 위치 또는 수직선 또는 수평선에 의해 분할되는 블록 간의 비율 중 적어도 하나를 나타낼 수 있다.If the first indicator indicates asymmetric division, a second indicator may be additionally encoded for a vertical or horizontal line. Here, the second indicator may indicate at least one of the position of a vertical or horizontal line used for asymmetric division or a ratio between blocks divided by a vertical or horizontal line.

도 12는 본 발명이 적용되는 다른 실시예로서, 비대칭형 쿼드 트리 분할에 기반한 코딩 블록 분할 방법에 대한 흐름도이다.Figure 12 is a flowchart of a coding block partitioning method based on asymmetric quad tree partitioning as another embodiment to which the present invention is applied.

뎁스 k 코딩 블록을, 뎁스 k+1 코딩 블록으로 분할하는 것으로 가정한다. 우선, 뎁스 k 현재 블록에 쿼드 트리 분할이 적용되는 지를 판단한다(S1210). 상기 단계 S1210 판단결과, 쿼드 트리 분할이 적용되지 않았다면, 현재 블록은 분할 없이 뎁스 k+1 코딩 블록이 된다. 만약,단계 S1210 판단결과, 쿼드 트리 분할이 적용되었다면, 현재 블록에 비대칭 쿼드 트리 분할이 적용되는 지를 판단한다(S1220). 만약 비대칭형 쿼드 트리 분할이 적용되지 않고 대칭형 쿼드 트리 분할이 적용되었다면, 현재 블록을 4개의 정방형 블록으로 분할한다(S1230). It is assumed that the depth k coding block is divided into depth k+1 coding blocks. First, it is determined whether quad tree division is applied to the current block with depth k (S1210). As a result of the determination in step S1210, if quad tree division is not applied, the current block becomes a depth k+1 coding block without division. If, as a result of the determination in step S1210, quad-tree partitioning has been applied, it is determined whether asymmetric quad-tree partitioning is applied to the current block (S1220). If asymmetric quad-tree partitioning is not applied and symmetric quad-tree partitioning is applied, the current block is divided into four square blocks (S1230).

반면, 만약 비대칭형 쿼드 트리 분할이 적용되었다면, 현재 블록에 3종 비대칭 쿼드 트리 분할이 적용되는 지를 판단한다(S1240). 만약 3종 비대칭 쿼드 트리 분할이 적용되지 않았다면, 현재 블록을 4개의 2종 비대칭 블록으로 분할한다(S1250). 이때 파티션 정보에 따라 도 11 (b)~(e) 중 어느 하나의 파티션 형태로 분할될 수 있다. On the other hand, if asymmetric quad-tree partitioning is applied, it is determined whether three types of asymmetric quad-tree partitioning are applied to the current block (S1240). If type 3 asymmetric quad tree partitioning is not applied, the current block is divided into four type 2 asymmetric blocks (S1250). At this time, it may be divided into any one of the partition types shown in Figures 11 (b) to (e) according to the partition information.

반면, 만약 3종 비대칭 쿼드 트리 분할이 적용되었다면, 현재 블록을 4개의 3종 비대칭 블록으로 분할한다(S1260). 이때 파티션 정보에 따라 도 11 (f)~(k) 중 어느 하나의 파티션 형태로 분할될 수 있다.On the other hand, if type 3 asymmetric quad tree partitioning is applied, the current block is divided into 4 type 3 asymmetric blocks (S1260). At this time, it may be divided into any one of the partition types shown in Figures 11 (f) to (k) according to the partition information.

도 13은 본 발명이 적용되는 다른 실시예로서, 비대칭 쿼드 트리 분할이 적용되는 네트워크 추상화 계층 (NAL)에 포함되는 신택스 요소(syntax element)를 예를 들어 도시한 것이다. 본 발명이 적용되는 NAL 유닛은, 예를 들어, 비디오 파라미터 셋 (VPS), 시퀀스 파라미터 셋(SPS), 픽쳐 파라미터 셋(PPS) 및 적어도 하나 이상의 슬라이스 셋(Slice)을 포함할 수 있다. Figure 13 is another embodiment to which the present invention is applied, showing as an example a syntax element included in a network abstraction layer (NAL) to which asymmetric quad tree partitioning is applied. The NAL unit to which the present invention is applied may include, for example, a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), and at least one slice set (Slice).

예를 들어, 도 13에서는 시퀀스 파라미터 셋(SPS)에 포함된 신택스 요소를 도시하였으나, 픽쳐 파라미터 셋(PPS) 또는 슬라이스 셋(Slice)에 신택스 요소를 포함하는 것도 가능하다. 또한, 신택스 요소별로 시퀀스 단위 또는 픽쳐 단위에 공통적으로 적용될 신택스 요소는 시퀀스 파라미터 셋(SPS) 또는 픽쳐 파라미터 셋(PPS)에 포함되도록 할 수 있다. 반면, 해당 슬라이스에만 적용되는 신택스 요소는 슬라이스 셋(Slice)에 포함되는 것이 바람직하다. 따라서, 이는 부호화 성능 및 효율을 고려하여 선택이 가능하다. For example, Figure 13 shows syntax elements included in a sequence parameter set (SPS), but it is also possible to include syntax elements in a picture parameter set (PPS) or slice set (Slice). Additionally, for each syntax element, syntax elements to be commonly applied to the sequence unit or picture unit can be included in the sequence parameter set (SPS) or picture parameter set (PPS). On the other hand, it is desirable that syntax elements that apply only to the corresponding slice are included in the slice set (Slice). Therefore, it can be selected considering coding performance and efficiency.

신택스 요소 'Is_used_asymmertic_quad_tree_flag'는 쿼드 트리 분할이 비대칭으로 수행되는 지 여부를 나타낸다. 또한, 'Is_used_triple_asymmertic_quad_tree_flag'는 쿼드 트리 분할이 3종 비대칭으로 수행되는 지 여부를 나타낸다. 따라서, 만약 “Is_used_asymmertic_quad_tree_flag = 0” 이면 대칭 쿼드 트리 분할을 의미하므로, 'Is_used_triple_asymmertic_quad_tree_flag'는 시그날링 되지 않는다. 반면, “Is_used_asymmertic_quad_tree_flag = 1” 이고, “Is_used_triple_asymmertic_quad_tree_flag = 1” 이면 3종 비대칭 쿼드 트리 분할을 의미한다. 또한, “Is_used_asymmertic_quad_tree_flag = 1” 이고, “Is_used_triple_asymmertic_quad_tree_flag = 0” 이면 2종 비대칭 쿼드 트리 분할을 의미한다.The syntax element 'Is_used_asymmertic_quad_tree_flag' indicates whether quad tree partitioning is performed asymmetrically. Additionally, 'Is_used_triple_asymmertic_quad_tree_flag' indicates whether quad tree division is performed in three types of asymmetry. Therefore, if “Is_used_asymmertic_quad_tree_flag = 0”, it means symmetric quad tree division, so ‘Is_used_triple_asymmertic_quad_tree_flag’ is not signaled. On the other hand, if “Is_used_asymmertic_quad_tree_flag = 1” and “Is_used_triple_asymmertic_quad_tree_flag = 1”, it means 3 types of asymmetric quad tree splitting. Additionally, if “Is_used_asymmertic_quad_tree_flag = 1” and “Is_used_triple_asymmertic_quad_tree_flag = 0”, it means type 2 asymmetric quad tree splitting.

신택스 요소 'hor_asymmetric_flag'는 비대칭 쿼드 트리 분할의 방향을 나타낸다. 즉, 상기 “Is_used_asymmertic_quad_tree_flag = 1” 인 경우, 수평 방향 또는 수직 방향으로의 비대칭 분할 여부를 나타낼 수 있다. 예를 들어, “hor_asymmetric_flag = 1” 이면 수평 방향으로 비대칭을 나타내고, “hor_asymmetric_flag = 0” 이면 수직 방향으로 비대칭을 나타낸다. 또한 다른 다른 대안으로, 'ver_asymmetric_flag'를 활용하는 것도 가능하다. The syntax element 'hor_asymmetric_flag' indicates the direction of asymmetric quad tree partitioning. That is, when “Is_used_asymmertic_quad_tree_flag = 1”, it can indicate whether there is asymmetric division in the horizontal or vertical direction. For example, “hor_asymmetric_flag = 1” indicates asymmetry in the horizontal direction, and “hor_asymmetric_flag = 0” indicates asymmetry in the vertical direction. Also, as another alternative, it is also possible to use 'ver_asymmetric_flag'.

신택스 요소 'width_left_asymmetric_flag'는 비대칭 쿼드 트리 분할의 또 다른 방향을 나타낸다. 즉, 상기 “Is_used_asymmertic_quad_tree_flag = 1” 인 경우, 너비 방향 좌측 또는 우측 방향으로의 비대칭 분할 여부를 나타낼 수 있다. 예를 들어, “width_left_asymmetric_flag' = 1” 이면 너비 좌측 방향으로 비대칭을 나타내고, “width_left_asymmetric_flag = 0” 이면 너비 우측방향으로 비대칭을 나타낸다. The syntax element 'width_left_asymmetric_flag' indicates another direction of asymmetric quad tree partitioning. That is, when “Is_used_asymmertic_quad_tree_flag = 1”, it can indicate whether there is asymmetric division in the left or right width direction. For example, if “width_left_asymmetric_flag' = 1”, it indicates asymmetry in the left direction of the width, and if “width_left_asymmetric_flag = 0”, it indicates asymmetry in the right direction of the width.

또한 신택스 요소 'height_top_asymmetric_flag'는 비대칭 쿼드 트리 분할의 또 다른 방향을 나타낸다. 즉, 상기 “Is_used_asymmertic_quad_tree_flag = 1” 인 경우, 높이 방향 상측 또는 하측 방향으로의 비대칭 분할 여부를 나타낼 수 있다. 예를 들어, “height_top_asymmetric_flag' = 1” 이면 높이 상측 방향으로 비대칭을 나타내고, “height_top_asymmetric_flag = 0” 이면 높이 하측 방향으로 비대칭을 나타낸다. Additionally, the syntax element 'height_top_asymmetric_flag' indicates another direction of asymmetric quad tree partitioning. That is, when “Is_used_asymmertic_quad_tree_flag = 1”, it can indicate whether there is asymmetric division in the upper or lower height direction. For example, if “height_top_asymmetric_flag' = 1”, it indicates asymmetry in the upper direction of the height, and if “height_top_asymmetric_flag = 0”, it indicates asymmetry in the lower direction.

또한, 신택스 요소 'is_used_symmetric_line_flag'는 3종 비대칭 쿼드 트리 분할의 경우, 가운데 블록에 대한 대칭 블록 여부를 나타낸다. 즉, 상기 “Is_used_asymmertic_quad_tree_flag = 1” 및 “Is_used_triple_asymmertic_quad_tree_flag = 1” 인 경우, 가운데 블록의 대칭 분할 여부를 나타낸다. Additionally, the syntax element 'is_used_symmetric_line_flag' indicates whether or not the middle block is a symmetric block in the case of type 3 asymmetric quad tree partitioning. That is, when “Is_used_asymmertic_quad_tree_flag = 1” and “Is_used_triple_asymmertic_quad_tree_flag = 1”, it indicates whether the center block is symmetrically divided.

따라서, 상기 신택스 요소들의 조합을 통해, 도 11 (a)~(k) 에 도시된 파티션 형태를 표현하는 것이 가능하다. 예를 들어, “Is_used_asymmertic_quad_tree_flag = 0” 이면 도 11(a) 파티션 형태와 같이 4개 대칭 블록으로 분할됨을 의미한다. Therefore, it is possible to express the partition form shown in Figures 11 (a) to (k) through a combination of the above syntax elements. For example, if “Is_used_asymmertic_quad_tree_flag = 0”, it means that it is divided into 4 symmetrical blocks as shown in the partition form in Figure 11(a).

또한, “Is_used_asymmertic_quad_tree_flag = 1” 이고 “Is_used_triple_asymmertic_quad_tree_flag = 0” 이면, 도 11 (b)~(e) 파티션 형태중 어느 하나에 해당된다. 이 경우, “hor_asymmetric_flag = 1” 이고 “width_left_asymmetric_flag' = 1” 이면 도 11 (b) 파티션 형태를 의미한다. 또한, “hor_asymmetric_flag = 1” 이고 “width_left_asymmetric_flag' = 0” 이면 도 11 (c) 파티션 형태를 의미한다. 또한, “hor_asymmetric_flag = 0” 이고 “height_top_asymmetric_flag' = 1” 이면 도 11 (d) 파티션 형태를 의미한다. 또한, “hor_asymmetric_flag = 0” 이고 “height_top_asymmetric_flag' = 0” 이면 도 11 (e) 파티션 형태를 의미한다.Additionally, if “Is_used_asymmertic_quad_tree_flag = 1” and “Is_used_triple_asymmertic_quad_tree_flag = 0”, it corresponds to any one of the partition types in Figures 11 (b) to (e). In this case, “hor_asymmetric_flag = 1” and “width_left_asymmetric_flag' = 1” means the partition type in Figure 11 (b). Additionally, if “hor_asymmetric_flag = 1” and “width_left_asymmetric_flag' = 0”, it means the partition type in Figure 11 (c). Additionally, if “hor_asymmetric_flag = 0” and “height_top_asymmetric_flag' = 1”, it means the partition type shown in Figure 11 (d). Additionally, if “hor_asymmetric_flag = 0” and “height_top_asymmetric_flag' = 0”, it means the partition type in Figure 11 (e).

또한, “Is_used_asymmertic_quad_tree_flag = 1” 이고 “Is_used_triple_asymmertic_quad_tree_flag = 1” 이면, 도 11 (f)~(k) 파티션 형태중 어느 하나에 에 해당된다. 이 경우, “is_used_symmetric_line_flag = 1” 이면, 도 11 (f),(g) 파티션 형태중 어느 하나에 해당되고, “is_used_symmetric_line_flag = 0” 이면, 도 11 (h)~(k) 파티션 형태중 어느 하나에 해당된다. 또한, 상기 “is_used_symmetric_line_flag = 1” 이고, “hor_asymmetric_flag = 1” 이면 도 11 (f) 파티션 형태로 정의하고, “hor_asymmetric_flag 0” 이면 도 11 (g) 파티션 형태로 정의할 수 있다. Additionally, if “Is_used_asymmertic_quad_tree_flag = 1” and “Is_used_triple_asymmertic_quad_tree_flag = 1”, it corresponds to any one of the partition types in Figures 11 (f) to (k). In this case, if “is_used_symmetric_line_flag = 1”, it corresponds to any one of the partition types of Figures 11 (f) and (g), and if “is_used_symmetric_line_flag = 0”, it corresponds to any of the partition types of Figures 11 (h) to (k). It applies. In addition, if “is_used_symmetric_line_flag = 1” and “hor_asymmetric_flag = 1”, it can be defined as the partition type of Figure 11 (f), and if “hor_asymmetric_flag 0”, it can be defined as the partition type of Figure 11 (g).

또한, “Is_used_asymmertic_quad_tree_flag = 1”, “Is_used_triple_asymmertic_quad_tree_flag = 1” 및 “is_used_symmetric_line_flag = 0” 인 경우에는, “hor_asymmetric_flag”, “width_left_asymmetric_flag” 및 “height_top_asymmetric_flag” 에 의해 파티션 형태를 정의할 수 있다. 예를 들어, “hor_asymmetric_flag = 1” 이고 “height_top_asymmetric_flag= 0” 이면, 도 11 (h) 파티션 형태를 의미한다. 또한, “hor_asymmetric_flag = 1” 이고 “height_top_asymmetric_flag= 1” 이면, 도 11 (i) 파티션 형태를 의미한다. 또한, “hor_asymmetric_flag = 0” 이고 “width_left_asymmetric_flag' = 0” 이면 도 11 (j) 파티션 형태를 의미한다. 또한, “hor_asymmetric_flag = 0” 이고 “width_left_asymmetric_flag' = 1” 이면 도 11 (k) 파티션 형태를 의미한다. Additionally, in the case of “Is_used_asymmertic_quad_tree_flag = 1”, “Is_used_triple_asymmertic_quad_tree_flag = 1” and “is_used_symmetric_line_flag = 0”, the partition type can be defined by “hor_asymmetric_flag”, “width_left_asymmetric_flag” and “height_top_asymmetric_flag”. For example, if “hor_asymmetric_flag = 1” and “height_top_asymmetric_flag = 0”, it means the partition type shown in Figure 11 (h). Additionally, if “hor_asymmetric_flag = 1” and “height_top_asymmetric_flag= 1”, it means the partition type in Figure 11 (i). Additionally, if “hor_asymmetric_flag = 0” and “width_left_asymmetric_flag' = 0”, it means the partition type of Figure 11 (j). Additionally, if “hor_asymmetric_flag = 0” and “width_left_asymmetric_flag' = 1”, it means the partition type shown in Figure 11 (k).

또한, 다른 대안으로, 'asymmetric_quadtree_partition_index'에 의해 상기 도 11(a)~(k) 파티션 형태를 각각 인덱스로 표시하는 것도 가능하다. Additionally, as another alternative, it is also possible to display each of the partition types of FIGS. 11(a) to 11(k) as an index using 'asymmetric_quadtree_partition_index'.

도 14는 본 발명이 적용되는 또 다른 실시예로서, 쿼드 트리 및 트리플 트리 분할이 허용되는 파티션 형태를 나타낸 도면이다.Figure 14 is another embodiment to which the present invention is applied, a diagram showing a partition type in which quad tree and triple tree division is permitted.

코딩 블록은 쿼드 트리(quad tree)와 트리플 트리(triple tree) 중 적어도 하나에 기초하여 계층적으로 분할될 수 있다. 여기서, 쿼드 트리 기반의 분할은 2Nx2N 코딩 블록이 4개의 NxN 코딩 블록으로 분할되는 방식(도 14(a))을, 트리플 트리 기반의 분할은 하나의 코딩 블록이 3개의 코딩 블록으로 분할되는 방식을 각각 의미할 수 있다. 트리플 트리 기반의 분할이 수행되었다 하더라도, 하위 뎁스에서는 정방형인 코딩 블록이 존재할 수 있다. Coding blocks may be hierarchically divided based on at least one of a quad tree and a triple tree. Here, the quad tree-based splitting is a method in which a 2Nx2N coding block is split into four NxN coding blocks (FIG. 14(a)), and the triple tree-based splitting is a method in which one coding block is split into three coding blocks. Each can mean something. Even if triple tree-based segmentation is performed, square coding blocks may exist at lower depths.

트리플 트리 기반의 분할은 대칭적으로 수행될 수도 있고 (도 14(b)), 비대칭적으로 수행될 수도 있다 (도 14(c)). 또한, 트리플 트리 기반으로 분할된 코딩 블록은 정방형 블록일 수도 있고, 직사각형과 같은 비정방형 블록일 수도 있다. 일 예로, 트리플 트리 기반의 분할이 허용되는 파티션 형태는 도 14 (b)에 도시된 예에서와 같이, 너비 또는 높이가 동일한 대칭형(symmetric)인 2Nx(2N/3) (수평 방향 비 정방 코딩 유닛) 또는 (2N/3)x2N (수직 방향 비정방 코딩 유닛)이 될 수 있다. 또한, 일 예로, 트리플 트리 기반의 분할이 허용되는 파티션 형태는 도 14 (c)에 도시된 예에서와 같이, 적어도 너비 또는 높이가 상이한 코딩 블록을 포함하는 비대칭형(asymmetric) 파티션 형태가 될 수 있다. 예를 들어, 도 14 (c)에 의한 비대칭형 트리플 트리 파티션 형태는, 적어도 2개의 코딩 블록(1401, 1403)은 동일한 너비 (또는 높이) 크기로 k값을 가지고 양측에 위치하도록 정의하고, 나머지 하나의 블록(1402)은 너비 (또는 높이) 크기로 2k 값을 가지며 상기 동일 크기 블록들 (1401, 1403) 사이에 위치하도록 정의할 수 있다. Triple tree-based partitioning may be performed symmetrically (Figure 14(b)) or asymmetrically (Figure 14(c)). Additionally, the coding block divided based on the triple tree may be a square block or a non-square block such as a rectangle. As an example, the partition type that allows triple tree-based partitioning is 2Nx(2N/3) (horizontal non-square coding unit), which is symmetric with the same width or height, as shown in the example shown in FIG. 14 (b). ) or (2N/3)x2N (vertically non-square coding unit). Additionally, as an example, a partition form that allows triple tree-based partitioning may be an asymmetric partition form that includes coding blocks with at least different widths or heights, as shown in the example shown in Figure 14 (c). there is. For example, in the asymmetric triple tree partition form shown in Figure 14 (c), at least two coding blocks 1401 and 1403 are defined to be located on both sides with the same width (or height) size and k value, and the remaining One block 1402 has a width (or height) of 2k and can be defined to be located between the blocks 1401 and 1403 of the same size.

관련하여, CTU 또는 CU를 도 14에 도시한 바와 같이 비 정방 형태인 3개의 서브 파티션로 나누는 방식을, 트리플 트리 파티셔닝 방법(triple tree CU partitioning)이라고 부른다. 트리플 트리 파티셔닝으로 나뉘어진 CU는 추가적으로 파티셔닝을 수행하지 않도록 제한할 수도 있다.In relation to this, the method of dividing the CTU or CU into three non-square sub-partitions as shown in FIG. 14 is called triple tree partitioning method (triple tree CU partitioning). CUs divided by triple tree partitioning may be restricted from performing additional partitioning.

도 15는 본 발명이 적용되는 또 다른 실시예로서, 쿼드 트리 및 트리플 트리 분할 에 기반한 코딩 블록 분할 방법에 대한 흐름도이다.Figure 15 is another embodiment to which the present invention is applied, a flowchart of a coding block partitioning method based on quad tree and triple tree partitioning.

뎁스 k 코딩 블록을, 뎁스 k+1 코딩 블록으로 분할하는 것으로 가정한다. 우선, 뎁스 k 현재 블록에 쿼드 트리 분할이 적용되는 지를 판단한다(S1510). 만약 쿼드 트리 분할이 적용되었다면, 현재 블록을 4개의 정방형 블록으로 분할한다(S1520). 반면, 만약 쿼드 트리 분할이 적용되지 않았다면, 현재 블록에 트리플 트리 분할이 적용되는 지를 판단한다(S1530). 만약 트리플 트리 분할도 적용되지 않았다면, 현재 블록은 분할 없이 뎁스 k+1 코딩 블록이 된다. It is assumed that the depth k coding block is divided into depth k+1 coding blocks. First, it is determined whether quad tree division is applied to the current block with depth k (S1510). If quad tree partitioning is applied, the current block is partitioned into four square blocks (S1520). On the other hand, if quad tree division is not applied, it is determined whether triple tree division is applied to the current block (S1530). If triple tree partitioning is not applied, the current block becomes a depth k+1 coding block without partitioning.

상기 S1530 판단 결과, 현재 블록에 트리플 트리 분할이 적용되었다면, 대칭형 트리플 분할 또는 비대칭형 트리플 분할 중 어느 방식이 적용되는 지를 확인한다(S1540). 상기 S1540 판단 결과에 따라, 현재 블록에 적용되는 파티션 형태를 결정한다(S1550). 예를 들어, 상기 S1550 단계에 적용되는 파티션 형태는, 대칭형인 경우 도 14(b) 형태중 어느 하나가 적용되고, 비대칭형인 경우 도 14(c) 형태 중 어느 하나가 될 수 있다. 상기 단계 S1550을 통해, 결정된 파티션 형태에 따라, 현재 블록을 3개의 뎁스 k+1 코딩 블록으로 분할하게 된다(S1560). As a result of the determination in S1530, if triple tree division has been applied to the current block, it is checked whether symmetric triple division or asymmetric triple division is applied (S1540). According to the determination result in S1540, the partition type applied to the current block is determined (S1550). For example, the partition shape applied in step S1550 may be any one of the shapes in FIG. 14(b) if it is symmetrical, and any one of the shapes in FIG. 14(c) if it is asymmetric. Through step S1550, the current block is divided into three depth k+1 coding blocks according to the determined partition type (S1560).

도 16은 본 발명이 적용되는 또 다른 실시예로서, 쿼드 트리 및 트리플 트리 분할이 적용되는 네트워크 추상화 계층 (NAL)에 포함되는 신택스 요소(syntax element)를 예를 들어 도시한 것이다. 본 발명이 적용되는 NAL 유닛은, 예를 들어, 비디오 파라미터 셋 (VPS), 시퀀스 파라미터 셋(SPS), 픽쳐 파라미터 셋(PPS) 및 적어도 하나 이상의 슬라이스 셋(Slice)을 포함할 수 있다. Figure 16 is another embodiment to which the present invention is applied, showing as an example a syntax element included in a network abstraction layer (NAL) to which quad tree and triple tree partitioning is applied. The NAL unit to which the present invention is applied may include, for example, a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), and at least one slice set (Slice).

예를 들어, 도 16에서는 시퀀스 파라미터 셋(SPS)에 포함된 신택스 요소를 도시하였으나, 픽쳐 파라미터 셋(PPS) 또는 슬라이스 셋(Slice)에 신택스 요소를 포함하는 것도 가능하다. 또한, 신택스 요소별로 시퀀스 단위 또는 픽쳐 단위에 공통적으로 적용될 신택스 요소는 시퀀스 파라미터 셋(SPS) 또는 픽쳐 파라미터 셋(PPS)에 포함되도록 할 수 있다. 반면, 해당 슬라이스에만 적용되는 신택스 요소는 슬라이스 셋(Slice)에 포함되는 것이 바람직하다. 따라서, 이는 부호화 성능 및 효율을 고려하여 선택이 가능하다. For example, Figure 16 shows syntax elements included in a sequence parameter set (SPS), but it is also possible to include syntax elements in a picture parameter set (PPS) or slice set (Slice). Additionally, for each syntax element, syntax elements to be commonly applied to the sequence unit or picture unit can be included in the sequence parameter set (SPS) or picture parameter set (PPS). On the other hand, it is desirable that syntax elements that apply only to the corresponding slice are included in the slice set (Slice). Therefore, it can be selected considering encoding performance and efficiency.

신택스 요소 'quad_split_flag'는 코딩 블록이 4개의 코딩 블록으로 분할되는지 여부를 나타낸다. 'triple_split_flag'는 코딩 블록이 3개의 코딩 블록으로 분할되는지 여부를 나타낼 수 있다. 코딩 블록이 3개의 코딩 블록으로 분할되는 경우, 코딩 블록의 분할 방향이 수직 방향인지 또는 수평 방향인지 여부를 나타내는 'is_hor_split_flag'가 시그널링될 수 있다. “is_hor_split_flag = 1” 이면 수평 방향을 “is_hor_split_flag = 0” 이면 수직방향을 나타내는 것으로 정의할 수 있다. The syntax element 'quad_split_flag' indicates whether the coding block is split into four coding blocks. 'triple_split_flag' may indicate whether a coding block is split into three coding blocks. When a coding block is split into three coding blocks, 'is_hor_split_flag' indicating whether the split direction of the coding block is vertical or horizontal may be signaled. “is_hor_split_flag = 1” can be defined as horizontal direction, and “is_hor_split_flag = 0” can be defined as vertical direction.

또한, 다른 대안으로, 'isUseTripleTreeFlag'를 통해 현재 블록에 트리플 트리 파티셔닝이 적용 여부를 나타내고, 또한, 코딩 블록의 분할 방향을 나타내는 신택스 요소로서, 'hor_triple_flag' 는 코딩 블록이 수평 방향으로 분할되었는지 여부를 나타낼 수 있다. 예를 들어, “hor_triple_flag = 1”인 경우, 코딩 블록이 수평 방향으로 분할됨을 나타내고, “hor_triple_flag = 0”인 경우, 코딩 블록이 수직 방향으로 분할됨을 나타낼 수 있다. 또는 'hor_triple_flag' 대신 코딩 블록이 수직 방향으로 분할되었는지 여부를 나타내는 ver_triple_flag가 이용하여 동일한 방식으로 설정할 수 있다. Additionally, as another alternative, 'isUseTripleTreeFlag' indicates whether triple tree partitioning is applied to the current block, and as a syntax element indicating the division direction of the coding block, 'hor_triple_flag' indicates whether the coding block is divided in the horizontal direction. It can be expressed. For example, “hor_triple_flag = 1” may indicate that the coding block is divided in the horizontal direction, and “hor_triple_flag = 0” may indicate that the coding block is divided in the vertical direction. Alternatively, it can be set in the same way by using ver_triple_flag, which indicates whether the coding block is divided in the vertical direction, instead of 'hor_triple_flag'.

또한, 비대칭 트리플 트리 파티셔닝이 허용되는지 여부를 나타내는 신택스 요소로서, 'asymmetric_triple_tree_flag'을 정의할 수 있다. 예를 들어, “asymmetric_triple_tree_flag = 1” 이면 비대칭 트리플 트리 파티셔닝이 사용되었음을 나타내고, “asymmetric_triple_tree_flag = 0” 이면, 비대칭 트리플 트리 파티셔닝이 사용되지 않았음을 나타낼 수 있다. 반면, 픽처 단위 또는 슬라이스 단위로 트리플 트리 파티셔닝이 사용되지 않는 경우, 'asymmetric_triple_tree_flag'를 시그널링하지 않고, 그 값을 0으로 설정할 수도 있다. Additionally, 'asymmetric_triple_tree_flag' can be defined as a syntax element indicating whether asymmetric triple tree partitioning is allowed. For example, “asymmetric_triple_tree_flag = 1” may indicate that asymmetric triple tree partitioning was used, and “asymmetric_triple_tree_flag = 0” may indicate that asymmetric triple tree partitioning was not used. On the other hand, if triple tree partitioning is not used on a picture or slice basis, 'asymmetric_triple_tree_flag' may not be signaled and its value may be set to 0.

따라서, 상기 신택스 요소들의 조합을 통해, 도 14 (a)~(c) 에 도시된 파티션 형태를 표현하는 것이 가능하다. 예를 들어, “isUseTripleTreeFlag = 0” 이면 도 14(a) 파티션 형태와 같이 4개 대칭 블록으로 분할됨을 의미한다. Therefore, it is possible to express the partition form shown in Figures 14 (a) to (c) through a combination of the above syntax elements. For example, if “isUseTripleTreeFlag = 0”, it means that it is divided into four symmetrical blocks as shown in the partition form in Figure 14(a).

또한, “isUseTripleTreeFlag = 1” 이고 “asymmetric_triple_tree_flag = 0” 이면, 도 14 (b) 파티션 형태중 어느 하나에 해당된다. 이때, “hor_triple_flag = 1”이면, 도 14 (b) (2N/3)x2N 파티션 형태를 의미하는 것으로 정의하고. “hor_triple_flag = 0”이면, 도 14 (b) 2Nx(2N/3) 파티션 형태를 의미하는 것으로 정의할 수 있다.Additionally, if “isUseTripleTreeFlag = 1” and “asymmetric_triple_tree_flag = 0”, it corresponds to any one of the partition types in Figure 14 (b). At this time, if “hor_triple_flag = 1”, it is defined to mean the (2N/3)x2N partition type in Figure 14 (b). If “hor_triple_flag = 0”, it can be defined to mean the 2Nx (2N/3) partition type in Figure 14 (b).

또한, “isUseTripleTreeFlag = 1” 이고 “asymmetric_triple_tree_flag = 1” 이면, 도 14 (c) 파티션 형태중 어느 하나에 해당된다. 이때, “hor_triple_flag = 1”이면, 도 14 (c) 왼쪽 파티션 형태를 의미하는 것으로 정의하고. “hor_triple_flag = 0”이면, 도 14 (c) 오른쪽 파티션 형태를 의미하는 것으로 정의할 수 있다.Additionally, if “isUseTripleTreeFlag = 1” and “asymmetric_triple_tree_flag = 1”, it corresponds to any one of the partition types in Figure 14 (c). At this time, if “hor_triple_flag = 1”, it is defined to mean the left partition type in Figure 14 (c). If “hor_triple_flag = 0”, it can be defined to mean the right partition type of Figure 14 (c).

또한, 다른 대안으로, 'asymmetric_tripletree_partition_index'에 의해 상기 도 14(a)~(c) 파티션 형태를 각각 인덱스로 표시하는 것도 가능하다. Additionally, as another alternative, it is also possible to display each of the partition shapes of FIGS. 14(a) to 14(c) as an index using 'asymmetric_tripletree_partition_index'.

도 17은 본 발명이 적용되는 또 다른 실시예로서, 멀티 트리 분할이 허용되는 파티션 형태를 나타낸 도면이다.Figure 17 is another embodiment to which the present invention is applied, a diagram showing a partition type in which multi-tree division is permitted.

전술한 쿼드 트리 파티셔닝, 바이너리 파티셔닝, 또는 트리플 트리 파티셔닝중 적어도 어느 하나를 이용하여 CTU 또는 CU를 파티셔닝하는 방법을 멀티 트리 파티셔닝(multi tree CU partitioning)이라고 부른다. 전술한 예시 중 어느 N개의 파티션을 사용하여 CTU 또는 CU를 파티셔닝할 수 있다. 구체적으로 예를 들어, 도 17과 같이 9개의 파티셔닝을 이용하여 CTU 또는 CU를 파티셔닝할 수 있다. A method of partitioning a CTU or CU using at least one of the aforementioned quad tree partitioning, binary partitioning, or triple tree partitioning is called multi tree partitioning. A CTU or CU can be partitioned using any of the N partitions in the examples described above. Specifically, for example, a CTU or CU can be partitioned using 9 partitions as shown in FIG. 17.

시퀀스 단위 또는 픽쳐 단위로 쿼드 트리 파티셔닝, 바이너리 트리 파티셔닝, 또는 트리플 트리 파티셔닝 모두를 사용하여 파티셔닝을 하거나, 그 중 어느 하나 또는 어느 두개의 파티셔닝을 사용하여 CTU 또는 CU를 파티셔닝 할 수도 있다. Partitioning may be performed on a sequence or picture basis using all of quad tree partitioning, binary tree partitioning, or triple tree partitioning, or a CTU or CU may be partitioned using any one or both of them.

쿼드 트리 파티셔닝은 기본으로 사용하고, 바이너리 트리 파티셔닝과 트리플 트리 파티셔닝은 선택적으로 사용할 수도 있다. 이 때, 시퀀스 헤더(sequence parameter set) 또는 픽쳐 헤더(picture parameter set)에서 바이너리 트리 파티셔닝을 사용하는지 및/또는 트리플 트리 파티셔닝을 사용하는지를 시그날링할 수 있다. Quad tree partitioning is used by default, and binary tree partitioning and triple tree partitioning can be used optionally. At this time, whether binary tree partitioning and/or triple tree partitioning is used may be signaled in the sequence header (sequence parameter set) or picture header (picture parameter set).

또는 쿼드 트리 파티셔닝과 트리플 트리 파티셔닝은 기본으로 사용하고, 바이너리 트리 파티셔닝은 선택적으로 사용할 수도 있다. 예를 들어, 시퀀스 헤더에서 바이너리 트리 파티셔닝을 사용하는지 여부를 나타내는 신택스 isUseBinaryTreeFlag을 시그날링할 수 있다. isUseBinaryTreeFlag값이 1이면 현재 시퀀스에서 바이너리 트리 파티셔닝을 사용하여 CTU 또는 CU를 파티셔닝할 수 있다. 시퀀스 헤더에서 트리플 트리 파티셔닝을 사용하는지 여부를 나타내는 신택스 isUseTripleTreeFlag을 시그날링할 수도 있다. isUseTripleTreeFlag값이 1이면 현재 시퀀스 헤더에서 트리플 트리 파티셔닝을 사용하여 CTU 또는 CU를 파티셔닝할 수 있다.Alternatively, quad tree partitioning and triple tree partitioning can be used by default, and binary tree partitioning can be used optionally. For example, the syntax isUseBinaryTreeFlag can be signaled in the sequence header to indicate whether binary tree partitioning is used. If the isUseBinaryTreeFlag value is 1, the CTU or CU can be partitioned using binary tree partitioning in the current sequence. The syntax isUseTripleTreeFlag may be signaled in the sequence header to indicate whether triple tree partitioning is used. If the isUseTripleTreeFlag value is 1, the CTU or CU can be partitioned using triple tree partitioning in the current sequence header.

멀티 트리 파티셔닝에 의해 분할된 파티션 형태는, 예를 들어, 도 17 (a)~(i)에 도시된 9개 기본 파티션으로 한정할 수 있다. 도 17 (a)는 쿼드 트리 파티션 형태를 나타내고, (b)~(c)는 대칭형 바이너리 트리 파티션 형태를 나타내고, (d)~(e)는 비대칭형 트리플 트리 파티션 형태를 나타내고, (f)~(i)는 비대칭형 바이너리 트리 파티션 형태를 나타낸다. 관련하여 도 17에 도시된 각 파티션 형태에 대해서는 전술한 바와 동일하여 이하 상세한 설명은 생략한다.The partition type divided by multi-tree partitioning can be limited to, for example, the 9 basic partitions shown in Figures 17 (a) to (i). 17 (a) shows a quad tree partition form, (b) to (c) show a symmetric binary tree partition form, (d) to (e) show an asymmetric triple tree partition form, and (f) ~ (i) represents an asymmetric binary tree partition form. In relation to this, each partition type shown in FIG. 17 is the same as described above, so detailed description below will be omitted.

또한, 다른 대안으로, 멀티 트리 파티셔닝에 의해 분할된 파티션 형태로서, 예를 들어, 도 18 (j)~(u)에 도시된 12개의 파티션을 더 포함하는 것으로 확장할 수 있다. 도 18 (j)~(m)은 비대칭 쿼드 트리 파티션 형태를 나타내고, (n)~(s)는 3종 비대칭 쿼드 트리 파티션 형태를 나타내고, (t)~(u)는 대칭형 트리플 트리 파티션 형태를 나타내다. 관련하여 도 18에 도시된 각 파티션 형태에 대해서는 전술한 바와 동일하여 이하 상세한 설명은 생략한다.Additionally, as another alternative, it can be expanded to further include 12 partitions as shown in Figures 18 (j) to (u), for example, as a partition type divided by multi-tree partitioning. 18 (j) to (m) represent an asymmetric quad tree partition type, (n) to (s) represent three types of asymmetric quad tree partition types, and (t) to (u) represent a symmetric triple tree partition type. Express. In relation to this, each partition type shown in FIG. 18 is the same as described above, so detailed description below will be omitted.

도 19는 본 발명이 적용되는 또 다른 실시예로서, 멀티 트리 분할에 기반한 코딩 블록 분할 방법에 대한 흐름도이다.Figure 19 is a flowchart of a coding block division method based on multi-tree division as another embodiment to which the present invention is applied.

뎁스 k 코딩 블록을, 뎁스 k+1 코딩 블록으로 분할하는 것으로 가정한다. 우선, 뎁스 k 현재 블록에 쿼드 트리 분할이 적용되는 지를 판단한다(S1910). 만약 쿼드 트리 분할이 적용되지 않았다면, 현재 블록에 바이너리 트리 분할이 적용되는 지를 판단한다(S1950). 또한, 만약 바이너리 트리 분할이 적용되지 않았다면, 현재 블록에 트리플 트리 분할이 적용되는 지를 판단한다(S1990). 만약 상기 단계 S1950 판단결과, 트리플 트리 분할도 적용되지 않았다면, 현재 블록은 분할 없이 뎁스 k+1 코딩 블록이 된다.It is assumed that the depth k coding block is divided into depth k+1 coding blocks. First, it is determined whether quad tree division is applied to the current block with depth k (S1910). If quad tree partitioning is not applied, it is determined whether binary tree partitioning is applied to the current block (S1950). Additionally, if binary tree partitioning is not applied, it is determined whether triple tree partitioning is applied to the current block (S1990). If, as a result of the determination in step S1950, triple tree partitioning is not applied, the current block becomes a depth k+1 coding block without partitioning.

여기서, 상기 단계 S1910 판단 결과, 만약 쿼드 트리 분할이 적용되었다면, 대칭 또는 비대칭 쿼드 트리 분할 여부를 확인한다(S1920). 이후, 파티션 정보를 확인하여 현재 블록의 블록 파티션 형태를 결정하고(S1930), 결정된 파티션 형태에 따라 현재 블록을 4개의 블록으로 분할한다(S1940). 예를 들어, 대칭형 쿼드 트리가 적용된 경우에는, 도 17 (a) 파티션 형태로 분할한다. 또한, 비대칭형 쿼드 트리가 적용된 경우에는, 도 18 (j)~(m) 중 어느 하나의 파티션 형태로 분할한다. 또는, 3종 비대칭형 쿼드 트리가 적용된 경우에는, 도 18 (n)~(s) 중 어느 하나의 파티션 형태로 분할한다. 단, 전술한 바와 같이, 만약 멀티 트리 파티션 형태를 도 17의 기본 파티션 형태만 적용하는 경우에는, 쿼드 트리의 비대칭 여부를 판단하지 않고, 도 17 (a)의 대칭 정방형 블록만 적용할 수 있다. Here, as a result of the determination in step S1910, if quad tree division is applied, it is checked whether symmetric or asymmetric quad tree division is performed (S1920). Afterwards, the partition information is checked to determine the block partition type of the current block (S1930), and the current block is divided into four blocks according to the determined partition type (S1940). For example, when a symmetrical quad tree is applied, it is divided in the partition format shown in Figure 17 (a). Additionally, when an asymmetric quad tree is applied, it is divided into one of the partition types shown in Figures 18 (j) to (m). Alternatively, when a three-type asymmetric quad tree is applied, it is divided into one of the partition types shown in Figures 18 (n) to (s). However, as described above, if only the basic partition type of FIG. 17 is applied as the multi-tree partition type, only the symmetrical square block of FIG. 17 (a) can be applied without determining whether the quad tree is asymmetric.

또한, 상기 단계 S1950 판단 결과, 만약 바이너리 트리 분할이 적용되었다면, 대칭 또는 비대칭 바이너리 트리 분할 여부를 확인한다(S1960). 이후, 파티션 정보를 확인하여 현재 블록의 블록 파티션 형태를 결정하고(S1970), 결정된 파티션 형태에 따라 현재 블록을 2개의 블록으로 분할한다(S1980). 예를 들어, 대칭형 바이너리 트리가 적용된 경우에는, 도 17 (b) 및 (c) 중 어느 하나의 파티션 형태로 분할한다. 또한, 비대칭형 바이너리 트리가 적용된 경우에는, 도 17 (f)~(i) 중 어느 하나의 파티션 형태로 분할한다. Additionally, as a result of the determination in step S1950, if binary tree division is applied, it is checked whether symmetric or asymmetric binary tree division is performed (S1960). Afterwards, the partition information is checked to determine the block partition type of the current block (S1970), and the current block is divided into two blocks according to the determined partition type (S1980). For example, when a symmetric binary tree is applied, it is divided into one of the partition types shown in Figures 17 (b) and (c). Additionally, when an asymmetric binary tree is applied, it is divided into one of the partition types shown in Figures 17 (f) to (i).

또한, 상기 단계 S1990 판단 결과, 만약 트리플 트리 분할이 적용되었다면, 대칭 또는 비대칭 트리플 트리 분할 여부를 확인한다(S1960). 이후, 파티션 정보를 확인하여 현재 블록의 블록 파티션 형태를 결정하고(S1970), 결정된 파티션 형태에 따라 현재 블록을 3개의 블록으로 분할한다(S1980). 예를 들어, 비대칭형 트리플 트리가 적용된 경우에는, 도 17 (d) 및 (e) 중 어느 하나의 파티션 형태로 분할한다. 또한, 대칭형 바이너리 트리가 적용된 경우에는, 도 18 (t)~(u) 중 어느 하나의 파티션 형태로 분할한다. 단, 전술한 바와 같이, 만약 멀티 트리 파티션 형태를 도 17의 기본 파티션 형태만 적용하는 경우에는, 트리플 트리의 비대칭 여부를 판단하지 않고, 17 (d) 및 (e)의 기 정의된 비대칭 트리플 블록만 적용할 수 있다. Additionally, as a result of the determination in step S1990, if triple tree division is applied, it is checked whether symmetric or asymmetric triple tree division is performed (S1960). Afterwards, the partition information is checked to determine the block partition type of the current block (S1970), and the current block is divided into three blocks according to the determined partition type (S1980). For example, when an asymmetric triple tree is applied, it is divided into one of the partition types shown in Figure 17 (d) and (e). Additionally, when a symmetric binary tree is applied, it is divided into one of the partition types shown in Figures 18 (t) to (u). However, as described above, if only the basic partition form of FIG. 17 is applied to the multi-tree partition form, it is not determined whether the triple tree is asymmetric, and the predefined asymmetric triple block of 17 (d) and (e) is used. It can only be applied.

. 멀티 트리 파티셔닝을 표현하는 신택스 요소로서, 멀티 트리 분할 여부를 나타내는 'is_used_Multitree_flag'를 정의할 수 있다. 또한, 전술한 도 10, 13 및 16에서 도시되고 설명된 신택스 요소들을 멀티 트리 파티셔 형태를 결정하는 정보로 활용하는 것이 가능하다.. As a syntax element expressing multi-tree partitioning, 'is_used_Multitree_flag', which indicates whether multi-tree partitioning, can be defined. Additionally, it is possible to use the syntax elements shown and described in FIGS. 10, 13, and 16 described above as information for determining the multi-tree partitioner type.

도 20은 본 발명이 적용되는 또 다른 실시예로서, 멀티 트리 분할에 의해 분할된 코딩 블록에 대응하는 변환 블록의 변환 블록 코딩 지시자 정보를 설명하기 위해 도시한 것이다.Figure 20 is another embodiment to which the present invention is applied, and is shown to explain transform block coding indicator information of a transform block corresponding to a coding block divided by multi-tree division.

전술한 도 1 변환부(130) 및 양자화부(135)에서는, 변환 및/또는 양자화를 위한 소정의 블록 단위에 기초하여, 잔차 신호에 변환 및/또는 양자화를 수행하여 잔차 계수를 생성할 수 있다. 이하, 잔차 계수는 양자화된 변환 계수 또는 변환 계수 등으로 불릴 수 있다. 상기 소정의 블록 단위는 잔차 신호의 성분 별(예를 들어, 휘도 성분, 색차 성분)로 각각 상이하게 정의될 수도 있다. 잔차 계수는 휘도 성분 (Luma), 색차 성분 Cb, 색차 성분 Cr 에 대응하는 독립적인 블록 단위로 부호화/복호화될 수 있다. 이 때 변환을 수행하는 기초 블록을 전술한 “변환 블록” 또는 “변환 유닛”이라고 부른다. 변환 블록은 정방형 또는 비정방형일 수 있다.The transform unit 130 and quantization unit 135 described above in FIG. 1 may generate residual coefficients by performing transformation and/or quantization on the residual signal based on a predetermined block unit for transformation and/or quantization. . Hereinafter, the residual coefficient may be referred to as a quantized transform coefficient or transform coefficient. The predetermined block unit may be defined differently for each component of the residual signal (eg, luminance component, chrominance component). The residual coefficient can be encoded/decoded in independent block units corresponding to the luminance component (Luma), the chrominance component Cb, and the chrominance component Cr. At this time, the basic block that performs conversion is called the “conversion block” or “conversion unit” described above. Transform blocks can be square or non-square.

구체적으로 예를 들어, 4x4 변환 블록, 8x8변환 블록, 16x16 변환 블록, 32x32 변환 블록, 64x64 변환 블록과 같은 정방 형태의 변환 블록과 4x8 변환 블록, 8x4 변환 블록, 8x16 변환 블록, 16x8 변환 블록, 16x32 변환 블록, 32x16 변환 블록, 32x64 변환 블록, 64x32 변환 블록, 4x16 변환 블록, 4x32변환 블록, 8x32 변환 블록과 같은 비 정방 형태의 변환 블록을 사용하여 변환 부호화/복호화를 수행할 수 있다. Specifically, for example, a square-type conversion block such as a 4x4 conversion block, an 8x8 conversion block, a 16x16 conversion block, a 32x32 conversion block, and a 64x64 conversion block, as well as a 4x8 conversion block, an 8x4 conversion block, an 8x16 conversion block, a 16x8 conversion block, and a 16x32 conversion block. Transformation encoding/decoding can be performed using non-square transform blocks such as transform blocks, 32x16 transform blocks, 32x64 transform blocks, 64x32 transform blocks, 4x16 transform blocks, 4x32 transform blocks, and 8x32 transform blocks.

전술한 바와 같이, 멀티 트리 파티셔닝을 통해 결정된 CU가 그대로 변환 블록으로 이용될 수 있다. 또는, 해당 CU에 대해 추가적인 파티셔닝을 수행하여 변환 블록이 결정될 수도 있고, 멀티 트리 파티션닝을 통해 분할된 복수의 CUs을 병합하여 변환 블록이 결정될 수도 있다. 이는 부호화기/복호화기에서 정한 변환 블록의 최소 크기에 따른 것일 수도 있고, 변환 계수 스캔을 위한 최소 블록 단위에 따른 것일 수도 있다.As described above, the CU determined through multi-tree partitioning can be used as a transform block. Alternatively, the transform block may be determined by performing additional partitioning on the corresponding CU, or the transform block may be determined by merging a plurality of CUs divided through multi-tree partitioning. This may be based on the minimum size of the transform block determined by the encoder/decoder, or it may be based on the minimum block unit for transform coefficient scanning.

도 20을 참조하면, 예를 들어, 코딩 블록 또는 코딩 트리 블록(2010)은 전술한 멀티 트리 파티셔닝 방법에 따라 복수의 코딩 블록들로 분할될 수 있다. 또한, 분할된 각 코딩 블록들은 대응하는 적어도 하나 이상의 변환 블록을 가진다. 예를 들어, 도 20은 분할된 코딩 블록 2011은 8x8 변환 블록 2011a 를 포함하고, 분할된 코딩 블록 2012는 2개의 4x8 변환 블록 2012a, 2012b 를 포함하는 경우를 도시한 것이다. Referring to FIG. 20, for example, a coding block or coding tree block 2010 may be divided into a plurality of coding blocks according to the multi-tree partitioning method described above. Additionally, each divided coding block has at least one corresponding transform block. For example, FIG. 20 shows a case where the divided coding block 2011 includes an 8x8 transform block 2011a, and the divided coding block 2012 includes two 4x8 transform blocks 2012a and 2012b.

복호화 단계에서는 양자화 및/또는 변환된 잔차 계수에 역양자화 및/또는 역변환을 수행하여 잔차 신호를 생성할 수 있으며, 이 과정을 잔차 계수 복호화 또는 변환 계수 복호화라고 부른다. In the decoding step, a residual signal can be generated by performing inverse quantization and/or inverse transformation on the quantized and/or transformed residual coefficients, and this process is called residual coefficient decoding or transformation coefficient decoding.

관련하여, 상기 변환 블록들 (2011a, 2012a, 2012b)내에 속한 적어도 하나 이상의 '0'이 아닌 유효한 변환 계수가 존재하는 지를 나타내는 신택스 요소로서, 변환 블록 코딩 지시자(rqt_root_cbf)를 시그날링하여 정의할 수 있다.예를 들어,“rqt_root_cbf = 1”이면,변환 블록내 적어도 하나 이상의 '0'이 아닌 유효한 변환 계수가 존재함을 지시하는 것으로 정의한다.반면, “rqt_root_cbf = 0”이면,변환 블록내 모든 변환 계수가 '0'의 값을 가짐을 지시하는 것으로 정의한다.따라서,시그날링된 변환 블록 코딩 지시자(rqt_root_cbf)값에 따라 변환블록 내의 변환 계수를 복호화할지 여부를 선택적으로 결정할 수 있다. In relation to this, it can be defined by signaling the transform block coding indicator (rqt_root_cbf) as a syntax element indicating whether there is at least one valid transform coefficient other than '0' belonging to the transform blocks (2011a, 2012a, 2012b). For example, if “rqt_root_cbf = 1”, it is defined to indicate that there is at least one valid non-zero conversion coefficient in the conversion block. On the other hand, if “rqt_root_cbf = 0”, all conversion coefficients in the conversion block are It is defined as indicating that the transform coefficient has the value of '0'. Therefore, it is possible to selectively decide whether to decode the transform coefficient in the transform block according to the value of the signaled transform block coding indicator (rqt_root_cbf).

도 21 및 도 22는 본 발명이 적용되는 또 다른 실시예로서, 변환 블록의 변환 블록 코딩 지시자 정보를 이용한 영상 복호화 방법을 도시한 것이다.Figures 21 and 22 are another embodiment to which the present invention is applied, showing an image decoding method using transform block coding indicator information of a transform block.

우선, 도 21을 참조하면, 복호화기 (예를 들어, 200)는 부호화된 비트스트림을 수신하여 비트스트림내 포함된 신택스 요소를 파싱(parsing) 한다(S2110). 상기 파싱된 신택스 요소에는 영상 신호 복호화를 위한 모든 신택스 요소들을 포함한다. 특히, 전술한 멀티 트리 파티셔닝을 위한 신택스 요소들 및 후술할 변환 블록 복호화에 관련된 신택스 요소 들이 포함되어 있다.First, referring to FIG. 21, a decoder (eg, 200) receives an encoded bitstream and parses syntax elements included in the bitstream (S2110). The parsed syntax element includes all syntax elements for video signal decoding. In particular, syntax elements for the above-described multi-tree partitioning and syntax elements related to transform block decoding to be described later are included.

상기 신택스 요소중, 변환 블록 코딩 지시자(rqt_root_cbf) 플래그 값을 검출하여 확인한다(S2120). 즉, 상기 rqt_root_cbf 값이 '1' 인 경우는, 변환 블록내 변환 계수 복호화를 수행한다(S2130). 반면, 상기 rqt_root_cbf 값이 '0' 인 경우는, 변환 블록내 변환 계수 복호화를 수행하지 않고, 해당 변환 블록내 변환 계수를 기결정된 값으로 설정한다(S2140). 예를 들어, 상기 rqt_root_cbf 값이 '0' 인 경우는, 변환 블록내 변환 계수를 모두 '0'으로 설정할 수 있다. Among the syntax elements, the transform block coding indicator (rqt_root_cbf) flag value is detected and confirmed (S2120). That is, when the rqt_root_cbf value is '1', transform coefficient decoding within the transform block is performed (S2130). On the other hand, when the rqt_root_cbf value is '0', decoding of the transform coefficient within the transform block is not performed, and the transform coefficient within the corresponding transform block is set to a predetermined value (S2140). For example, if the rqt_root_cbf value is '0', all transform coefficients in the transform block can be set to '0'.

또는, 도 22을 참조하면, 복호화기 (예를 들어, 200)는 부호화된 비트스트림을 수신하여 비트스트림내 포함된 신택스 요소를 파싱(parsing) 한다(S2210). 상기 파싱된 신택스 요소에는 영상 신호 복호화를 위한 모든 신택스 요소들을 포함한다. 특히, 상기 파싱된 신택스 요소에는, 전술한 멀티 트리 파티셔닝을 위한 신택스 요소들 및 변환 블록 신택스 요소뿐만 아니라, 코딩 블록에 대응한 예측 모드 정보를 포함하고 있다. 관련하여, 상기 변환 블록 코딩 지시자 rqt_root_cbf 는 변환 블록에 대응하는 예측 블록이 인터 예측으로 부호화된 경우에만 사용하도록 제한적으로 적용할 수 있다. Alternatively, referring to FIG. 22, the decoder (eg, 200) receives the encoded bitstream and parses syntax elements included in the bitstream (S2210). The parsed syntax element includes all syntax elements for video signal decoding. In particular, the parsed syntax element includes not only the syntax elements and transform block syntax elements for multi-tree partitioning described above, but also prediction mode information corresponding to the coding block. In relation to this, the transform block coding indicator rqt_root_cbf can be limited to use only when the prediction block corresponding to the transform block is encoded by inter prediction.

따라서, 예측 블록이 인터 예측인지를 확인하고(S2220), 만약예측 블록이 인터 예측이 아니면, 상기 변환 블록 코딩 지시자 rqt_root_cbf 정보를 검출하지 않고 복호화를 수행한다. 반면, 예측 블록이 인터 예측이라면, 전술한 도 21의 흐름도와 동일하게, 상기 변환 블록 코딩 지시자 rqt_root_cbf 정보를 검출하여 복호화를 수행한다(S2230). 즉, 상기 rqt_root_cbf 값이 '1' 인 경우는, 변환 블록내 변환 계수 복호화를 수행한다(S2240). 반면, 상기 rqt_root_cbf 값이 '0' 인 경우는, 변환 블록내 변환 계수 복호화를 수행하지 않고, 해당 변환 블록내 변환 계수를 기결정된 값, 예를 들어 '0', 으로 설정한다(S2250). Therefore, it is checked whether the prediction block is inter prediction (S2220), and if the prediction block is not inter prediction, decoding is performed without detecting the transform block coding indicator rqt_root_cbf information. On the other hand, if the prediction block is inter prediction, the transform block coding indicator rqt_root_cbf information is detected and decoding is performed in the same manner as the flowchart of FIG. 21 (S2230). That is, when the rqt_root_cbf value is '1', transform coefficient decoding within the transform block is performed (S2240). On the other hand, when the rqt_root_cbf value is '0', decoding of the transform coefficient within the transform block is not performed, and the transform coefficient within the corresponding transform block is set to a predetermined value, for example, '0' (S2250).

관련하여, 상기 단계 S2130 및 S2240 에 의해, 변환 블록내 변환 계수 복호화를 수행하는 단계는, 해당 변환 블록 또는 코딩 블록에 대응하는,신택스 요소로서 “cbf_cb”, “cbf_cr” 및 “cbf_luma” 값을 이용하여 복호화를 수행할 수 있다. 여기서, 상기 “cbf_cb”는 '0'아닌 색차 성분 Cb의 변환 계수가 존재하는지를 나타내는 신택스 요소를 의미하고, “cbf_cr”은 '0'아닌 색차 성분 Cr의 변환 계수가 존재하는지를 나타내는 신택스 요소를 의미하고, “cbf_luma”'0'아닌 휘도 성분의 변환 계수가 존재하는지를 나타내는 신택스 요소를 의미한다. In relation to this, the step of performing transform coefficient decoding within a transform block by steps S2130 and S2240 uses “cbf_cb”, “cbf_cr”, and “cbf_luma” values as syntax elements corresponding to the corresponding transform block or coding block. Thus, decryption can be performed. Here, “cbf_cb” refers to a syntax element indicating whether a conversion coefficient of the color difference component Cb that is not ‘0’ exists, and “cbf_cr” refers to a syntax element that indicates whether a conversion coefficient of the color difference component Cr that is not ‘0’ exists, , “cbf_luma” refers to a syntax element that indicates whether a conversion coefficient for a luminance component other than ‘0’ exists.

이하, 상기 신택스 요소들(”rqt_root_cbf”, “cbf_cb”, “cbf_cr” 및 “cbf_luma”)이부호화된 비트스트림에 포함되는 부호화 방법 또는 시그날링 방법에 대해 설명한다. Hereinafter, an encoding method or signaling method in which the syntax elements (“rqt_root_cbf”, “cbf_cb”, “cbf_cr”, and “cbf_luma”) are included in the encoded bitstream will be described.

도 23 내지 도 26은, 본 발명이 적용되는 또 다른 실시예들로서, 변환 블록의 변환 블록 코딩 지시자 정보를 이용한 영상 부호화 방법을 도시한 것이다. 특히 변환 블록 복호화에 관련된 신택스 요소를 시그날링하는 방법을 도시한 것이다.Figures 23 to 26 show another embodiment to which the present invention is applied and illustrate an image encoding method using transform block coding indicator information of a transform block. In particular, it shows a method of signaling syntax elements related to transform block decoding.

도 23을 참조하면, 우선 rqt_root_cbf 값을 시그날링 한다(S2310). 상기rqt_root_cbf 값은,전술한 바와 같이 부호화된 변환 블록내에 적어도 하나 이상의 '0'이 아닌 유효한 변환 계수가 존제하는 지를 확인하여 시그날링 한다.상기 시그날링된 rqt_root_cbf 값을 확인하다(S2320). rqt_root_cbf 값이 '0' 인 경우에는 다른 신택스 요소 cbf_cb, cbf_cr 및 cbf_luma를 시그날링 하지 않고 종료한다. 반면, 상기 시그날링된 rqt_root_cbf 값이 '1' 인 경우에는, 상기 신택스 요소중 cbf_cb 및 cbf_cr 값을 시그날링 한다(S2330, S2340). 만약, 상기 시그날링된 cbf_cb 및 cbf_cr 값이 모두 '0'이 아니라면(S2350), 상기 다른 신택스 요소 cbf_luma를 시그날링 하게 된다(S2360). 반면, 상기 시그날링된 cbf_cb 및 cbf_cr 값중 적어도 어느 하나기 '0'을 값을 가진다면, 상기 신택스 요소 cbf_luma를 시그날링 하지 ?腑? 종료한다. 관련하여, cbf_cb와 cbf_cr 값 모두 '0'이 아닌 경우, cbf_luma 값은 기-정의된 디폴트 값 (defualt value, ex, '1')으로 설정될 수 있다.Referring to FIG. 23, first, the rqt_root_cbf value is signaled (S2310). The rqt_root_cbf value is signaled by checking whether at least one valid transform coefficient other than '0' exists in the encoded transform block as described above. The signaled rqt_root_cbf value is checked (S2320). If the rqt_root_cbf value is '0', it terminates without signaling other syntax elements cbf_cb, cbf_cr, and cbf_luma. On the other hand, when the signaled rqt_root_cbf value is '1', the cbf_cb and cbf_cr values among the syntax elements are signaled (S2330, S2340). If both the signaled cbf_cb and cbf_cr values are not '0' (S2350), the other syntax element cbf_luma is signaled (S2360). On the other hand, if at least one of the signaled cbf_cb and cbf_cr values has the value '0', the syntax element cbf_luma is not signaled. Quit. Relatedly, if both the cbf_cb and cbf_cr values are not '0', the cbf_luma value may be set to a pre-defined default value (defualt value, ex, '1').

즉, 본 발명에 의할 경우, 상위 신택스 요소인 변환 블록 코딩 지시자 rqt_root_cbf 값에 따라, 하위 신택스 요소로 색차 성분 Cb 및 Cr이 존재하는 지를 지시하는 신택스 요소 cbf_cb 및 cbf_cr 값의 시그날링 여부를 결정할 수 있다. 또한, 하위 신택스 요소 cbf_cb 및 cbf_cr 값이 모두 '1'을 가지는 경우에만, 변환 블록내 휘도 성분 존재를 지시하는 신택스 요소 cbf_luma를 시그날링하게 된다. 따라서, 순차적인 시그날링을 통해 불필요한 신택스 요소를 비트스트림에 포함시키지 않아도 됨에 따라, 전체적인 부호화 효율을 높일 수 있게 된다. That is, according to the present invention, it is possible to determine whether to signal the syntax elements cbf_cb and cbf_cr values indicating the presence of color difference components Cb and Cr as lower syntax elements, depending on the value of the transform block coding indicator rqt_root_cbf, which is the upper syntax element. there is. Additionally, only when both the lower syntax element cbf_cb and cbf_cr values have '1', the syntax element cbf_luma indicating the presence of the luminance component in the transform block is signaled. Therefore, by eliminating the need to include unnecessary syntax elements in the bitstream through sequential signaling, overall coding efficiency can be improved.

또한, 상기 단계 S2350 및 S2360의 다른 대안으로, 상기 시그날링된 cbf_cb 및 cbf_cr 값중 어느 하나라도 '0'이 아니라면, 상기 다른 신택스 요소 cbf_luma를 시그날링 하도록 할 수 있다. 또는, cbf_cb 또는 cbf_cr 값 중 적어도 하나가 '0'인 경우에 cbf_luma 값이 시그날링될 수 있다. Additionally, as another alternative to steps S2350 and S2360, if any of the signaled cbf_cb and cbf_cr values is not '0', the other syntax element cbf_luma may be signaled. Alternatively, the cbf_luma value may be signaled when at least one of the cbf_cb or cbf_cr values is '0'.

또는, 역으로 cbf_luma 값에 기초하여 cbf_cb 및/또는 cbf_cr 값이 선택적으로 시그날링 될 수 있다. 예를 들어, cbf_luma 값이 0인 경우, cbf_cb 및/또는 cbf_cr 값은 기-정의된 디폴트 값 (defual value, ex, '0')으로 설정될 수 있다. 따라서, cbf_luma 값이 1인 경우에만 cbf_cb 및/또는 cbf_cr 이 시그날링될 수 있다.Or, conversely, the cbf_cb and/or cbf_cr values may be selectively signaled based on the cbf_luma value. For example, if the cbf_luma value is 0, the cbf_cb and/or cbf_cr value may be set to a pre-defined default value (defual value, ex, '0'). Therefore, cbf_cb and/or cbf_cr can be signaled only when the cbf_luma value is 1.

관련하여, 상기 cbf_luma 가 최초로 시그날링되는 단위와 cbf_cb 및/또는 cbf_cr이 최초로 시그날링되는 단위가 동일할 수도 있고, 서로 상이할 수도 있다. 또는, 하나의 코딩 블록(또는 변환 블록)에 대해서 cbf_luma 가 최종적으로 시그날링되는 단위와 cbf_cb 및/또는 cbf_cr이 최종적으로 시그날링되는 단위가 동일할 수도 있고, 서로 상이할 수도 있다. 시그날링되는 단위가 상이하다라 함은, 시그날링되는 단위의 크기, 뎁스 또는 형태 중 적어도 하나가 상이함을 의미할 수 있다.In relation to this, the unit in which cbf_luma is first signaled and the unit in which cbf_cb and/or cbf_cr are first signaled may be the same or different from each other. Alternatively, for one coding block (or transform block), the unit in which cbf_luma is finally signaled and the unit in which cbf_cb and/or cbf_cr are finally signaled may be the same or different from each other. That the signaling units are different may mean that at least one of the size, depth, or shape of the signaling units is different.

도 24는 코딩 블록의 크기에 따라, 하위 신택스 요소들을 선택적으로 시그날링하는 부호화 방법을 제시한다. 즉, 신택스 요소 rqt_root_cbf는, 코딩 블록의 크기에 따라 선택적으로 부호화할 수 있다. 또한, 하위 신택스 요소 cbf_cb, cbf_cr 및 cbf_luma 는 상위 신택스 요소 rqt_root_cbf 값에 따라, 시그날링 여부가 결정될 수 있다. 즉, 도 24의 단계 S2410~S2460은, 전술한 도 23의 단계 S2310~S2360와 실질적으로 동일한 과정으로 이루어진다. Figure 24 presents an encoding method for selectively signaling lower-order syntax elements according to the size of the coding block. That is, the syntax element rqt_root_cbf can be selectively encoded according to the size of the coding block. Additionally, signaling of the lower syntax elements cbf_cb, cbf_cr, and cbf_luma may be determined depending on the value of the upper syntax element rqt_root_cbf. That is, steps S2410 to S2460 of FIG. 24 consist of substantially the same process as steps S2310 to S2360 of FIG. 23 described above.

예를 들어, 도 24를 참조하면, 코딩 블록의 크기를 기설정된 기준 크기 값(예를 들어, MxN)과 비교한다(S2400). 만약 코딩 블록의 크기가 기준크기 보다 큰 경우에는, 단계 S2410~S2460을 통해, 신택스 요소 rqt_root_cbf 및, cbf_cb, cbf_cr,cbf_luma를 순차적으로 시그날링할 수 있다. 반면, 코딩 블록의 크기가 기준크기 보다 작은 경우에는, 단계 S2470~S2490을 통해, 신택스 요소 cbf_cb, cbf_cr,cbf_luma를 각각 시그날링할 수 있다.For example, referring to FIG. 24, the size of the coding block is compared with a preset reference size value (eg, MxN) (S2400). If the size of the coding block is larger than the standard size, the syntax elements rqt_root_cbf, cbf_cb, cbf_cr, and cbf_luma can be signaled sequentially through steps S2410 to S2460. On the other hand, if the size of the coding block is smaller than the standard size, the syntax elements cbf_cb, cbf_cr, and cbf_luma can be signaled through steps S2470 to S2490, respectively.

여기서, 코딩 블록의 크기는 너비(width), 높이(height), 너비와 높이의 합, 코딩 블록에 속한 샘플 개수 등으로 표현될 수 있다. 또한, 상기 기준 크기 값은, 기정의된 정방형 NxN 블록 크기를 기준으로 하는 것이 가능하다. 단 본 발명은 이에 한정되는 것은 아니다. Here, the size of the coding block can be expressed as width, height, the sum of the width and height, the number of samples belonging to the coding block, etc. Additionally, the reference size value may be based on a predefined square NxN block size. However, the present invention is not limited to this.

또는 다른 대안으로, 상기 S2400 단계를 통해, 역으로 코딩 블록의 크기가 기설정된 기준 크기 값보다 작은 경우에 rqt_root_cbf를 시그날링하도록 제한할 수도 있다. Or, as another alternative, through step S2400, signaling of rqt_root_cbf may be restricted, conversely, when the size of the coding block is smaller than a preset reference size value.

도 25는 코딩 블록의 형태에 따라, 하위 신택스 요소들을 선택적으로 시그날링하는 부호화 방법을 제시한다. 즉, 신택스 요소 rqt_root_cbf는, 코딩 블록의 형태에 따라 선택적으로 부호화할 수 있다. 또한, 하위 신택스 요소 cbf_cb, cbf_cr 및 cbf_luma 는 상위 신택스 요소 rqt_root_cbf 값에 따라, 시그날링 여부가 결정될 수 있다. 즉, 도 25의 단계 S2510~S2560은, 전술한 도 23의 단계 S2310~S2360와 실질적으로 동일한 과정으로 이루어진다. Figure 25 presents an encoding method for selectively signaling lower-order syntax elements according to the type of coding block. That is, the syntax element rqt_root_cbf can be selectively encoded according to the type of coding block. Additionally, signaling of the lower syntax elements cbf_cb, cbf_cr, and cbf_luma may be determined depending on the value of the upper syntax element rqt_root_cbf. That is, steps S2510 to S2560 of FIG. 25 consist of substantially the same process as steps S2310 to S2360 of FIG. 23 described above.

즉, 코딩 블록의 형태에 따라 rqt_root_cbf를 선택적으로 부호화할 수도 있다. 예를 들어, 코딩 블록이 비정방 형태 코딩 블록인지, 정방 형태 코딩 블록인지에 따라 rqt_root_cbf를 선택적으로 부호화할 수도 있다. 구체적으로 예를 들어, 정방 형태 코딩 블록에서는 블록의 형태 및 예측 모드에 기반하여 선택적으로 rqt_root_cbf를 시그날링하고, 비정방 형태 코딩 블록에서는 rqt_root_cbf를 시그날링하지 않고 cbf_luma, cbf_cb, cbf_cr을 시그날링할 수 있다.That is, rqt_root_cbf may be selectively encoded depending on the type of coding block. For example, rqt_root_cbf may be selectively encoded depending on whether the coding block is a non-square coding block or a square coding block. Specifically, for example, in a square coding block, rqt_root_cbf can be selectively signaled based on the shape and prediction mode of the block, and in a non-square coding block, cbf_luma, cbf_cb, and cbf_cr can be signaled without signaling rqt_root_cbf. there is.

구체적으로, 도 25를 참조하면, 코딩 블록의 형태가 비정방형 인지를 확인한다(S2500). 만약 코딩 블록의 형태가 정방형에 해당되면, 단계 S2510~S2560을 통해, 신택스 요소 rqt_root_cbf 및, cbf_cb, cbf_cr,cbf_luma를 순차적으로 시그날링할 수 있다. 반면, 코딩 블록의 형태가 비정방형에 해당되면, 단계 S2570~S2590을 통해, 신택스 요소 cbf_cb, cbf_cr,cbf_luma를 각각 시그날링할 수 있다.Specifically, referring to FIG. 25, it is confirmed whether the shape of the coding block is non-square (S2500). If the shape of the coding block is square, the syntax elements rqt_root_cbf, cbf_cb, cbf_cr, and cbf_luma can be signaled sequentially through steps S2510 to S2560. On the other hand, if the shape of the coding block is non-square, the syntax elements cbf_cb, cbf_cr, and cbf_luma can be signaled through steps S2570 to S2590, respectively.

도 26은 코딩 블록의 형태에 따라, 파티셔닝 방식에 따라 신택스 요소들을 선택적으로 시그날링하는 부호화 방법을 제시한다. 즉, 신택스 요소 rqt_root_cbf는, 코딩 블록의 파티셔닝 방식에 따라 선택적으로 부호화할 수 있다. 또한, 하위 신택스 요소 cbf_cb, cbf_cr 및 cbf_luma 는 상위 신택스 요소 rqt_root_cbf 값에 따라, 시그날링 여부가 결정될 수 있다. 즉, 도 26의 단계 S2610~S2660은, 전술한 도 23의 단계 S2310~S2360와 실질적으로 동일한 과정으로 이루어진다. Figure 26 presents an encoding method that selectively signals syntax elements according to the partitioning method according to the type of coding block. That is, the syntax element rqt_root_cbf can be selectively encoded according to the partitioning method of the coding block. Additionally, signaling of the lower syntax elements cbf_cb, cbf_cr, and cbf_luma may be determined depending on the value of the upper syntax element rqt_root_cbf. That is, steps S2610 to S2660 of FIG. 26 consist of substantially the same process as steps S2310 to S2360 of FIG. 23 described above.

즉, 코딩 블록의 파티셔닝 방식에 따라 rqt_root_cbf를 선택적으로 부호화할 수 있다. 예를 들어, 쿼드 트리 파티셔닝으로 나누어진 코딩 블록에서는 rqt_root_cbf를 시그날링하고, 바이너리 트리 파티셔닝이나 트리플 트리 파티셔닝으로 분할된 코딩 블록에서는 rqt_root_cbf를 시그날링하지 않고cbf_luma, cbf_cb, cbf_cr을 시그날링할 수 있다.That is, rqt_root_cbf can be selectively encoded according to the partitioning method of the coding block. For example, in a coding block divided by quad tree partitioning, rqt_root_cbf can be signaled, and in a coding block divided by binary tree partitioning or triple tree partitioning, cbf_luma, cbf_cb, and cbf_cr can be signaled without signaling rqt_root_cbf.

구체적으로, 도 26을 참조하면, 현재 코딩 블록이 쿼드 트리 파티셔닝으로 분할되는 지를 확인한다(S2600). 만약 현재 코딩 블록이 쿼드 트리 파티셔닝으로 분할된 경우에는, 단계 S2610~S2660을 통해, 신택스 요소 rqt_root_cbf 및, cbf_cb, cbf_cr,cbf_luma를 순차적으로 시그날링할 수 있다. 반면, 코딩 블록이 쿼드 트리 파티셔닝이 아니 다른 방식으로 분할된 경우에는, 단계 S2670~S2690을 통해, 신택스 요소 cbf_cb, cbf_cr,cbf_luma를 각각 시그날링할 수 있다.Specifically, referring to FIG. 26, it is confirmed whether the current coding block is divided by quad tree partitioning (S2600). If the current coding block is divided by quad tree partitioning, the syntax elements rqt_root_cbf, cbf_cb, cbf_cr, and cbf_luma can be signaled sequentially through steps S2610 to S2660. On the other hand, if the coding block is partitioned in a manner other than quad tree partitioning, the syntax elements cbf_cb, cbf_cr, and cbf_luma can be signaled through steps S2670 to S2690, respectively.

도 27 및 도 28은 본 발명이 적용되는 또 다른 실시예로서, 변환 블록의 변환 블록 코딩 지시자 정보를 이용한 또 다른 영상 복호화 방법을 도시한 것이다. 관련하여, 도 27의 복호화 방법은 전술한 도 23의 부호화 방법에 대응하고, 도 28의 복호화 방법은 전술한 도 24~도26의 부호화 방법에 대응한다. Figures 27 and 28 are another embodiment to which the present invention is applied, showing another image decoding method using transform block coding indicator information of a transform block. In relation to this, the decoding method of FIG. 27 corresponds to the encoding method of FIG. 23 described above, and the decoding method of FIG. 28 corresponds to the encoding method of FIGS. 24 to 26 described above.

도 27을 참조하면, 복호화기 (예를 들어, 200)는 부호화된 비트스트림을 수신하여 비트스트림내 포함된 신택스 요소를 파싱(parsing) 한다(S2710). 상기 파싱된 신택스 요소에는 영상 신호 복호화를 위한 모든 신택스 요소들을 포함한다. 특히, 변환 블록 복호화에 필요한 신택스 요소 rqt_root_cbf 및 cbf_cb, cbf_cr,cbf_luma를 적어도 하나 이상 포함한다. Referring to FIG. 27, the decoder (eg, 200) receives the encoded bitstream and parses syntax elements included in the bitstream (S2710). The parsed syntax element includes all syntax elements for video signal decoding. In particular, it includes at least one syntax element rqt_root_cbf, cbf_cb, cbf_cr, and cbf_luma required for transform block decoding.

상기 신택스 요소중, 변환 블록 코딩 지시자(rqt_root_cbf) 플래그 값을 검출하여 확인한다(S2720). 즉, 상기 rqt_root_cbf 값이 '0' 인 경우는, 변환 블록내 변환 계수 복호화를 수행하지 않고, 해당 변환 블록내 잔차 신호를 기결정된 값으로 설정한다(S2730). 예를 들어, 상기 rqt_root_cbf 값이 '0' 인 경우는, 변환 블록내 변환 계수를 모두 '0'으로 설정할 수 있다.Among the syntax elements, the transform block coding indicator (rqt_root_cbf) flag value is detected and confirmed (S2720). That is, when the rqt_root_cbf value is '0', transform coefficient decoding within the transform block is not performed, and the residual signal within the corresponding transform block is set to a predetermined value (S2730). For example, if the rqt_root_cbf value is '0', all transform coefficients in the transform block can be set to '0'.

반면, 상기 rqt_root_cbf 값이 '1' 인 경우는, 변환 블록내 변환 계수 복호화를 수행한다. 즉, 상기 파싱된 신택스 요소 rqt_root_cbf 값이 '1' 인 경우에, 파싱된 하위 신택스 요소 cbf_cb 및 cbf_cr 값이 모두 '0'인지를 확인한다(S2740). 만약, 상기 파싱된 신택스 요소 cbf_cb 및 cbf_cr 값이 모두 '0'이 아닌 경우에는, 또 다른 신택스 요소 cbf_luma를 검출한다(S2750). 이후, 상기 cbf_cb, cbf_cr및 cbf_luma 값이 각 해당 변환 계수의 존재를 지시하는 경우에는(ex. '1'), 대응하는 변환 계수를 검출하여 복호화를 수행하게 된다(S2760). 또는 cbf_cb와 cbf_cr 값 모두 '0'이 아닌 경우, cbf_luma 값은 기-정의된 디폴트 값 (defualt value, ex, '1')으로 자동 설정될 수 있다. 이 경우 cbf_luma 값은 비트스트림으로부터 파싱되지 않더라도 바로 '1'로 설정될 수 있다. On the other hand, when the rqt_root_cbf value is '1', transform coefficient decoding within the transform block is performed. That is, when the parsed syntax element rqt_root_cbf value is '1', it is checked whether the parsed lower syntax element cbf_cb and cbf_cr values are both '0' (S2740). If both the parsed syntax element cbf_cb and cbf_cr values are not '0', another syntax element cbf_luma is detected (S2750). Thereafter, when the cbf_cb, cbf_cr, and cbf_luma values indicate the existence of each corresponding transform coefficient (ex. '1'), the corresponding transform coefficient is detected and decoding is performed (S2760). Alternatively, if both the cbf_cb and cbf_cr values are not '0', the cbf_luma value may be automatically set to a pre-defined default value (defualt value, ex, '1'). In this case, the cbf_luma value can be immediately set to '1' even if it is not parsed from the bitstream.

반면, 상기 시그날링된 cbf_cb 및 cbf_cr 값중 적어도 어느 하나가'0'을 값을 가진다면, 상기 신택스 요소 cbf_luma가 비트스트림에 시그날링되지 않았음을 의미하므로, cbf_luma를 검출할 필요 없이, 대응하는 변환 계수를 검출하여 복호화를 수행하게 된다(S2760). On the other hand, if at least one of the signaled cbf_cb and cbf_cr values has the value '0', it means that the syntax element cbf_luma is not signaled in the bitstream, so the corresponding conversion is performed without the need to detect cbf_luma. The coefficient is detected and decoding is performed (S2760).

도 28을 참조하면, 복호화기 (예를 들어, 200)는 부호화된 비트스트림을 수신하여 비트스트림내 포함된 신택스 요소를 파싱(parsing) 한다(S2810). 상기 파싱된 신택스 요소에는 영상 신호 복호화를 위한 모든 신택스 요소들을 포함한다. 또한, 특히, 상기 파싱된 신택스 요소에는 코딩 블록의 크기, 형태, 파티셔닝 방법을 지시하는 신택스 요소를 포함한다. 또한, 상기 코딩 블록의 크기, 형태, 파티셔닝 방법에 관한 신택스 요소의 조건에 따라, 변환 블록 복호화에 필요한 신택스 요소 rqt_root_cbf 및 cbf_cb, cbf_cr,cbf_luma를 적어도 하나 이상 포함한다.Referring to FIG. 28, the decoder (eg, 200) receives the encoded bitstream and parses syntax elements included in the bitstream (S2810). The parsed syntax element includes all syntax elements for video signal decoding. In addition, in particular, the parsed syntax element includes syntax elements indicating the size, shape, and partitioning method of the coding block. In addition, according to the conditions of syntax elements regarding the size, shape, and partitioning method of the coding block, it includes at least one syntax element rqt_root_cbf, cbf_cb, cbf_cr, and cbf_luma required for transform block decoding.

상기 파싱된 신택스 요소를 통해, 코딩 블록의 크기, 형태 및/또는 파티셔닝 방법에 대해 확인할 수 있다. 즉, 상기 파싱된 신택스 요소를 통해, 코딩 블록의 크기, 형태 및/또는 파티셔닝 방법이 기정의된 기준값과 비교하여(S2810), 신택스 요소 rqt_root_cbf의 검출 여부를 결정할 수 있다. 예를 들어, 상기 S2810 단계를 통해, 신택스 요소 rqt_root_cbf 가 존재하는 것으로 판단되는 경우를 제1 타입으로 정의하고, 신택스 요소 rqt_root_cbf 가 존재하지 않는 것으로 판단되는 경우를 제2 타입으로 정의할 수 있다.Through the parsed syntax element, the size, shape, and/or partitioning method of the coding block can be confirmed. That is, through the parsed syntax element, the size, shape, and/or partitioning method of the coding block can be compared with a predefined reference value (S2810) to determine whether to detect the syntax element rqt_root_cbf. For example, through step S2810, the case where it is determined that the syntax element rqt_root_cbf exists can be defined as the first type, and the case where it is determined that the syntax element rqt_root_cbf does not exist can be defined as the second type.

예를 들어, 전술한 도 24 ~ 도 26의 rqt_root_cbf 시그날링 방법을 참조하면, 현재 코딩 블록이 기준 크기 이상 이거나, 정방형태 이거나, 또는 쿼드 트리 파티셔닝으로 분할된 블록인 경우에는, 상기 제1 타입에 해당되어, 신택스 요소 rqt_root_cbf 를 검출하게 된다 (S2850). 상기 단계 S2850(A)은 전술한 도 27의 단계 S2720~S2770을 수행하는 과정과 동일하므로 이하 상세한 설명을 제외한다. For example, referring to the rqt_root_cbf signaling method of FIGS. 24 to 26 described above, if the current coding block is larger than the standard size, is square, or is a block divided by quad tree partitioning, the first type Correspondingly, the syntax element rqt_root_cbf is detected (S2850). Since step S2850(A) is the same as the process of performing steps S2720 to S2770 of FIG. 27 described above, the detailed description below is omitted.

반면, 만약, 현재 코딩 블록이 상기 제1 타입에 해당되지 않고 제2 타입에 해당되면, 신택스 요소 rqt_root_cbf 가 비트스트림에 포함되지 않았음을 의미한다. 따라서, rqt_root_cbf 의 검출 없이, 다른 신택스 요소 cbf_cb, cbf_cr및 cbf_luma 값을 비트스트림으로부터 검출하게 된다(S2830). 이후 상기 검출된 신택스 요소 cbf_cb, cbf_cr및 cbf_luma 값이 각 해당 변환 계수의 존재를 지시하는 경우에는(ex. '1'), 대응하는 변환 계수를 검출하여 복호화를 수행하게 된다(S2840). 또는 cbf_cb와 cbf_cr 값 모두 '0'이 아닌 경우, cbf_luma 값은 기-정의된 디폴트 값 (defualt value, ex, '1')으로 자동 설정될 수 있다. 이 경우 cbf_luma 값은 비트스트림으로부터 파싱되지 않더라도 바로 '1'로 설정될 수 있다. On the other hand, if the current coding block does not correspond to the first type but to the second type, it means that the syntax element rqt_root_cbf is not included in the bitstream. Therefore, without detecting rqt_root_cbf, other syntax element cbf_cb, cbf_cr, and cbf_luma values are detected from the bitstream (S2830). Afterwards, when the detected syntax element cbf_cb, cbf_cr, and cbf_luma values indicate the existence of each corresponding transform coefficient (ex. '1'), the corresponding transform coefficient is detected and decoding is performed (S2840). Alternatively, if both the cbf_cb and cbf_cr values are not '0', the cbf_luma value may be automatically set to a pre-defined default value (defualt value, ex, '1'). In this case, the cbf_luma value can be immediately set to '1' even if it is not parsed from the bitstream.

도 29는 본 발명이 적용되는 또 다른 실시예로서, 변환 블록을 복수의 서브 변환 블록으로 구분하고, 각 서브 변환 블록별 구비되는 서브 블록 코딩 지시자 정보를 설명하기 위해 도시한 것이다.Figure 29 is another embodiment to which the present invention is applied, dividing a transform block into a plurality of sub-transform blocks and illustrating sub-block coding indicator information provided for each sub-transform block.

변환 블록을 복호화 할 때 변환 블록의 크기가 기준크기, 예를 들어 4x4, 보다 큰 경우에는 도 29와 같이 서브 블록 단위 (예, 4x4)마다, '0'이 아닌 변환 계수가 적어도 하나 이상 존재하는 지를 나타내는 서브 블록 코딩 지시자 “coded_sub_block_flag”(CSBF)값을 신택스 요소로 사용하여 부호화 및 복호화 효율을 높일 수 있다.When decoding a transform block, if the size of the transform block is larger than the standard size, for example, 4x4, there is at least one transform coefficient other than '0' for each subblock unit (e.g., 4x4), as shown in FIG. 29. Encoding and decoding efficiency can be improved by using the sub-block coding indicator “coded_sub_block_flag” (CSBF) value indicating the flag as a syntax element.

예를 들어, 8x8 변환 블록 2900을, 4개의 4x4 서브 변환 블록 (2901~2904)로 구분한 후, 각 서브 변환 블록 마다, 상기 신택스 요소 “coded_sub_block_flag”(이하, CSBF) 값을 설정한다. 예를 들어, 서브 변환 블록내 적어도 '0'이 아닌 계수가 하나 이상 존재하면, CSBF 값을 '1'로 설정하고 (2901, 2902, 2903), 서브 변환 블록내 모든 계수가 '0'인 경우에는 CSBF 값을 '0'으로 설정한다 (2904).For example, after dividing the 8x8 transform block 2900 into four 4x4 sub-transform blocks (2901 to 2904), the value of the syntax element “coded_sub_block_flag” (hereinafter CSBF) is set for each sub-transform block. For example, if there is at least one coefficient other than '0' in the sub-transformation block, the CSBF value is set to '1' (2901, 2902, 2903), and if all coefficients in the sub-transformation block are '0' The CSBF value is set to '0' (2904).

따라서, 현재 변환 블록을 더욱 세분하는 서브 변환 블록으로 구분하고, CSBF를 각 서브 변환 블록마다 적용함에 따라, “CSBF = 0” 인 서브 블록에 대해서는 투가 시그날링 및 복호화가 필요치 않게 되어, 더욱 부호화 및 복호화 효율을 높일 수 있게 된다. Therefore, as the current transform block is divided into further sub-transform blocks and CSBF is applied to each sub-transform block, investment signaling and decoding are not required for the sub-block with “CSBF = 0”, resulting in further encoding. And decoding efficiency can be increased.

즉, 블록 내에 있는 각 변환 계수가 '0'인지 또는 '0'이 아닌지를 나타내는 변환 계수 레벨 플래그 (significant flag)에 기초하여 변환 계수를 부호화할 수 있다. Coded_sub_block_flag이 0이 아닌 경우에는 0이 아닌 변환 계수가 적어도 하나 이상 존재하며, 블록 내에 있는 모든 변환 계수의 변환 계수 레벨을 부호화할 수 있다. 블록 내에 있는 모든 변환 계수 레벨을 변환 계수 레벨 맵 (significant map)이라고 부른다. Significant map을 부호화한 후에 0이 아닌 변환 계수의 절대값과 부호 (sign)을 부호화 할 수 있다. That is, the transform coefficients can be encoded based on a transform coefficient level flag (significant flag) indicating whether each transform coefficient in the block is '0' or not '0'. If Coded_sub_block_flag is non-0, there is at least one non-zero transform coefficient, and the transform coefficient levels of all transform coefficients in the block can be encoded. All transform coefficient levels within a block are called a transform coefficient level map (significant map). After encoding the significant map, the absolute value and sign of the non-zero transformation coefficient can be encoded.

도 30 내지 도 32는 본 발명이 적용되는 또 다른 실시예로서, 변환 블록을 복수의 서브 변환 블록으로 구분하는 다양한 실시예 및 구분된 서브 변환 블록별 서브 블록 코딩 지시자를 도시한 것이다.Figures 30 to 32 are another embodiment to which the present invention is applied, showing various embodiments of dividing a transform block into a plurality of sub-transform blocks and a sub-block coding indicator for each divided sub-transform block.

전술한 바이너리 파티셔닝 또는 트리플 트리 파티셔닝을 사용하는 경우에는 코딩 블록의 너비 또는 높이 중 적어도 어느 하나가 소정의 상수(예를 들어, 4 또는 그 이상)보다 작거나 블록의 너비와 높이의 비(w/h 또는 h/w, 여기서 w는 코딩 블록의 너비, h는 코딩 블록의 높이를 나타냄)가 소정의 상수보다 작은 경우가 발생할 수 있으며, 이를 극소 비대칭 코딩 블록이라고 부른다. When using the above-described binary partitioning or triple tree partitioning, at least one of the width or height of the coding block is smaller than a predetermined constant (for example, 4 or more) or the ratio of the width and height of the block (w/ A case may occur where h or h/w (where w represents the width of the coding block and h represents the height of the coding block) is smaller than a predetermined constant, and this is called a minimally asymmetric coding block.

예를 들어, 코딩 블록의 너비 또는 높이 중 적어도 어느 하나가 4 보다 작은 경우에는 2x2 블록 단위 또는 2x4 블록 단위 또는 2x8 블록 단위 중 적어도 어느 하나의 단위로 단위로 상기 CSBF 플래그를 시그날링할 수도 있다. For example, if at least one of the width or height of the coding block is less than 4, the CSBF flag may be signaled in at least one of 2x2 block units, 2x4 block units, and 2x8 block units.

또는 코딩블록의 크기가 2xN인 극소 비대칭 코딩 블록에서는 도 30에 도시된 바와 같이, (a) 2x2 블록,(b) 2x4 블록, 또는 (c) 2x8 블록 중 적어도 어느 하나의 단위로 CSBF를 시그날링할 수 있다. 또한, 유사하게, 코딩블록의 크기가 Nx2인 극소 비대칭 코딩 블록에서는 도 31에 도시된 바와 같이, (a)8x2 블록,(b) 4x2 블록, 또는 (c) 2x2 블록 중 적어도 어느 하나의 단위로 CSBF를 시그날링할 수 있다.Or, in a very small asymmetric coding block where the size of the coding block is 2xN, CSBF is signaled in at least one of (a) 2x2 block, (b) 2x4 block, or (c) 2x8 block, as shown in FIG. can do. Additionally, similarly, in the extremely asymmetric coding block where the size of the coding block is Nx2, as shown in FIG. 31, it is divided into at least one of (a) 8x2 block, (b) 4x2 block, or (c) 2x2 block. CSBF can be signaled.

관련하여, 시퀀스 헤더 또는 픽쳐 헤더 또는 슬라이스 헤더에 극소 비대칭 코딩 블록에서 CSBF를 부호화하는 단위를 나타내는 신택스 요소를 시그날링할수도 있다. CSBF를 부호화하는 단위는, CSBF를 부호화하는 최소 단위, 최대 단위 또는 최소-최대 단위 간의 차이 등의 형태로 부호화될 수 있다.In relation to this, a syntax element representing a unit for encoding CSBF in a very small asymmetric coding block may be signaled in the sequence header, picture header, or slice header. The unit encoding the CSBF may be encoded in the form of a minimum unit encoding the CSBF, a maximum unit, or a difference between the minimum and maximum units.

또는 블록 형태와 상관없이 소정의 개수를 가진 샘플 단위로 CSBF 플래그를 시그날링 할 수도 있다. 여기서, 소정의 개수는 4개, 8개, 16개 또는 그 이상일 수 있다. 부호화기는 CSBF를 부호화하는 단위의 최적의 개수를 결정하고, 이를 부호화할 수 있다. 상기 개수에 관한 정보는 CSBF를 부호화하는 단위의 최소/최대 샘플 개수 또는 최소/최대 샘플 개수 간의 차이 등의 형태로 부호화될 수 있다.Alternatively, the CSBF flag may be signaled in units of samples with a predetermined number regardless of block type. Here, the predetermined number may be 4, 8, 16 or more. The encoder can determine the optimal number of units for encoding CSBF and encode it. The information regarding the number may be encoded in the form of the minimum/maximum sample number of the CSBF encoding unit or the difference between the minimum/maximum sample number.

예를 들어, 도 32에 도시된 바와 같이, CU0와 CU2은 1x16 형태의 극소 비대칭 코딩 블록이고, CU1은 2x16 형태의 극소 비대칭 코딩 블록인 경우에는 16개의 샘플 단위로 CSBF를 시그날링할 수 있다. 구체적으로 CU0와 CU2에서 CSBF를 시그날링하고, CU1에서는 2x8 단위로 CSBF 플래그를 시그날링할 수도 있다.For example, as shown in FIG. 32, when CU0 and CU2 are minimally asymmetric coding blocks in the form of 1x16, and CU1 is a minimally asymmetric coding block in the form of 2x16, CSBF can be signaled in units of 16 samples. Specifically, CSBF may be signaled in CU0 and CU2, and the CSBF flag may be signaled in 2x8 units in CU1.

또한, 코딩 블록의 크기에 따라 선택적으로 CSBF를 부호화하는 블록의 크기를 설정할 수도 있다. 구체적으로 예를 들어, 코딩 블록의 크기가 기 설정된 기준 값보다 큰 경우에는 NxN 단위로 CSBF를 시그날링할 수 있고, 코딩 유닛의 크기가 기 설정된 기준 값보다 작은 경우에는 MxM 단위로 CSBF를 시그날링 할 수도 있다. 여기서, N과 M은 2, 4, 8, 16 또는 그 이상일 수 있다. N은 M과 동일할 수도 있고, M보다 큰 값일 수도 있다. 예를 들어, 64x64 블록이면 8x8 단위로 CSBF를 시그날링하고, 32x32 블록이면 4x4 단위로 CSBF를 시그날링할수 있다. CSBF를 부호화하는 블록은 정방 형태에 한하지 않으며, 비정방 형태일 수도 있다. 극소 코딩 유닛인 경우에는 2x8, 8x2, 2x4, 4x2 또는 2x2 중 적어도 어느 하나의 단위로 CSBF를 시그날링 할 수도 있다. Additionally, the size of the block that encodes the CSBF can be selectively set according to the size of the coding block. Specifically, for example, if the size of the coding block is larger than a preset reference value, CSBF may be signaled in NxN units, and if the size of the coding unit is smaller than the preset reference value, CSBF may be signaled in MxM units. You may. Here, N and M can be 2, 4, 8, 16 or more. N may be the same as M or may be a value greater than M. For example, if it is a 64x64 block, CSBF can be signaled in 8x8 units, and if it is a 32x32 block, CSBF can be signaled in 4x4 units. The block encoding the CSBF is not limited to the square form and may also be in a non-square form. In the case of a very small coding unit, CSBF may be signaled in at least one unit among 2x8, 8x2, 2x4, 4x2, or 2x2.

또는, CSBF가 시그날링되는 블록의 크기, 뎁스, 및/또는 형태를 나타내는 정보가 시그날링될 수도 있다. 해당 정보는 시퀀스, 픽쳐, 슬라이스, 타일, CTU, CU, TU 등 중 적어도 하나의 레벨에서 시그날링될 수 있다. 예를 들어, TU 단위로 CSBF가 시그날링되는 블록의 크기가 4x4인지, 8x8인지 또는 16x16인지를 나타내는 인덱스가 시그날링될 수 있다. 또는, 2Nx2N 크기의 TU에 대해서, CSBF가 시그날링되는 블록의 뎁스 값이 0인 경우에는 2Nx2N 단위로 CSBF가 시그날링되고, 뎁스 값이 2인 경우에는 (N/2)x(N/2) 단위로 CSBF가 시그날링될 수 있다. 또는, CSBF가 시그날링되는 블록 단위는, 소정의 개수의 수직/수평 라인으로 TU를 분할하여 결정될 수 있다. 이때 수직/수평 라인의 개수, 간격 등에 대한 정보가 시그날링될 수도 있다.Alternatively, information indicating the size, depth, and/or shape of the block for which the CSBF is signaled may be signaled. The information may be signaled at at least one level among sequence, picture, slice, tile, CTU, CU, and TU. For example, an index indicating whether the size of the block for which CSBF is signaled in TU units is 4x4, 8x8, or 16x16 may be signaled. Or, for a TU of size 2Nx2N, if the depth value of the block for which CSBF is signaled is 0, CSBF is signaled in units of 2Nx2N, and if the depth value is 2, (N/2)x(N/2) CSBF may be signaled in units. Alternatively, the block unit in which CSBF is signaled may be determined by dividing the TU into a predetermined number of vertical/horizontal lines. At this time, information about the number and spacing of vertical/horizontal lines may be signaled.

도 33은 서브 변환 블록별 서브 블록 코딩 지시자를 이용한 영상 부호화 방법을 도시한 것이다. 도33을 참조하면, 현재 코딩 블록 CU의 크기가 기준 크기 보다 큰 지를 확인한다(S3310). 예를 들어, 상기 기준 크기는 PxP (ex, P=8, 16, 32, 64, 126 중 기정의된 값으로 설정)로 정의할 수 있다.만약 현재 코딩 블록 크기가 기준 크기 보다 작은 경우에는,MxM 크기로 서브 변환 블록을 구분하고,구분된 MxM 서브 변환 블록 단위 마다 부호화를 수행한 후, CSBF#i (i=1,2…m) 값을 시그날링한다(S3320). 반면, 현재 코딩 블록 크기가 기준 크기 보다 큰 경우에는, NxN (N>M) 크기로 서브 변환 블록을 구분하고,구분된 NxN 서브 변환 블록 단위 마다 부호화를 수행한 후, CSBF#i (i=1,2…n) 값을 시그날링한다(S3330).Figure 33 shows an image encoding method using a sub-block coding indicator for each sub-transformation block. Referring to Figure 33, it is checked whether the size of the current coding block CU is larger than the reference size (S3310). For example, the standard size can be defined as PxP (ex, P=set to a predefined value among 8, 16, 32, 64, 126). If the current coding block size is smaller than the standard size, Sub-transform blocks are divided into MxM sizes, encoding is performed for each divided MxM sub-transform block unit, and then the CSBF#i (i=1,2...m) value is signaled (S3320). On the other hand, if the current coding block size is larger than the reference size, sub-transform blocks are divided into NxN (N>M) sizes, and coding is performed for each divided NxN sub-transform block unit, then CSBF#i (i=1 ,2…n) value is signaled (S3330).

도34는, 본 발명이 적용되는 또 다른 실시예로서, 비정방 코딩 블록에 대응하는 서브 변환 블록별 서브 블록 코딩 지시자를 이용한 영상 부호화 방법을 도시한 것이다. 도34를참조하면, 현재 코딩 블록 CU의 형태가 비정방 형태 인지를 확인한다(S3410), 만약 현재 코딩 블록이 정방 형태이면, 전술한 도 33의 부호화 방법 (B: 3310, 3320, 3330)을 적용할 수 있다(S3440). 반면, 만약 현재 코딩 블록 CU의 형태가 비정방 형태라고 하면, CSBF가 적용되는 새로운 서브 변환 블록 단위를 결정하게 된다(S3430). 즉, 비정방 코딩 블록에 대해서는, 도 33에서 정의된 NxN 또는 MxM 서브 변환 블록 크기를 그대로 활용하기 보다는, 새로운 크기의 서브 변환 블록을 정의하는 것이 필요하다. 예를 들어, 상기 새로운 서브 변환 블록 단위는 정방형 (ex, 2x2, 4x4, 8x8,..) 또는 비정방형 (ex, 2x4, 2x8, 4x2, 8x2,…)이 될 수 있다. 또는, 상기 새로운 서브 변환 블록 단위는 특정 블록 형태가 아닌 샘플 수에 따라 결정하는 것도 가능하다. Figure 34 is another embodiment to which the present invention is applied, showing an image encoding method using a sub-block coding indicator for each sub-transform block corresponding to a non-square coding block. Referring to FIG. 34, it is checked whether the current coding block CU is in a non-square form (S3410). If the current coding block is a square form, the encoding method (B: 3310, 3320, 3330) of FIG. 33 described above is used. Applicable (S3440). On the other hand, if the form of the current coding block CU is non-square, a new sub-transform block unit to which CSBF is applied is determined (S3430). That is, for non-square coding blocks, it is necessary to define a sub-transform block of a new size rather than using the NxN or MxM sub-transform block size defined in FIG. 33 as is. For example, the new sub-transformation block unit may be square (ex, 2x2, 4x4, 8x8,...) or non-square (ex, 2x4, 2x8, 4x2, 8x2,...). Alternatively, the new sub-transformation block unit may be determined based on the number of samples rather than a specific block type.

상기 S3430 단계를 통해 서브 변환 블록 단위가 결정되면, 결정된 서브 변환 블록별로 부호화를 수행하고, 부호화된 결과에 따라 CSBF#i (i=1,2…n) 값을 시그날링한다(S3440).When the sub-transform block unit is determined through step S3430, encoding is performed for each determined sub-transform block, and the CSBF#i (i=1,2...n) value is signaled according to the encoded result (S3440).

도35는, 본 발명이 적용되는 또 다른 실시예로서, 극소 비대칭 코딩 블록에 대응하는 서브 변환 블록별 서브 블록 코딩 지시자를 이용한 영상 부호화 방법을 도시한 것이다. 도35를 참조하면, 우선 현재 코딩 블록 CU의 형태가 비정방 형태인지를 확인한다(S3510), Figure 35 is another embodiment to which the present invention is applied, showing an image encoding method using a sub-block coding indicator for each sub-transform block corresponding to a very asymmetric coding block. Referring to Figure 35, first check whether the current coding block CU is in a non-square form (S3510).

만약 현재 코딩 블록이 정방 형태이면, 전술한 도 33의 부호화 방법 (B: 3310, 3320, 3330)을 적용할 수 있다. 반면, 만약 현재 코딩 블록 CU의 형태가 비정방 형태라고 하면, 극소 비대칭 코딩 블록에 해당되는 지를 더 확인한다(S3520). 예를 들어, 상기 극소 비대칭 코딩 블록은 바이너리 파티셔닝 또는 트리플 트리 파티셔닝에 의해 분할된 코딩 블록의 너비 또는 높이 중 적어도 어느 하나가 소정의 상수(예를 들어, 4 또는 그 이상)보다 작은 경우 또는 블록의 너비와 높이의 비(w/h 또는 h/w, 여기서 w는 코딩 블록의 너비, h는 코딩 블록의 높이를 나타냄)가 소정의 상수보다 작은 경우로 정의할 수 있다. 단 본 발명은 이에 한정되지 않으며, 다양한 종류의 극소 비대칭 코딩 블록 형태를 정의하는 것이 가능하다.If the current coding block is in a square form, the encoding method (B: 3310, 3320, 3330) of FIG. 33 described above can be applied. On the other hand, if the form of the current coding block CU is non-square, it is further checked whether it corresponds to a minimally asymmetric coding block (S3520). For example, the extremely asymmetric coding block is a block in which at least one of the width or height of the coding block divided by binary partitioning or triple tree partitioning is smaller than a predetermined constant (for example, 4 or more) or It can be defined as a case where the width-to-height ratio (w/h or h/w, where w represents the width of the coding block and h represents the height of the coding block) is smaller than a predetermined constant. However, the present invention is not limited to this, and it is possible to define various types of extremely asymmetric coding blocks.

단, 다른 대안으로, 상기 단계 S3510에 의한 비정방 CU 확인 없이, 바로 다음 단계 S3520을 수행하는 것도 가능하다. 즉, 예를 들어, 상기 S3510 단계와 상기 S3520 단계는 하나의 과정으로 통합해서 적용할 수도 있다.However, as another alternative, it is also possible to immediately perform the next step S3520 without confirming the non-square CU in step S3510. That is, for example, steps S3510 and S3520 may be integrated and applied as one process.

만약, 현재 코딩 블록 CU의 형태가 극소 비대칭 코딩 블록에 해당되지 않으면, 전술한 도 33의 부호화 방법 (B: 3310, 3320, 3330)을 적용할 수 있다(S3560). 즉, 도33의 단계 S3310, S3320, S3330에서 설명한 바와 같이, CU의 크기를 기준크기와 비교하여, 그 결과에 따라, MxM 또는 NxN (N>M) 서브 변환 블록 단위로 부호화를 수행하게 된다.If the form of the current coding block CU does not correspond to a minimally asymmetric coding block, the coding method (B: 3310, 3320, 3330) of FIG. 33 described above can be applied (S3560). That is, as described in steps S3310, S3320, and S3330 of FIG. 33, the size of the CU is compared with the reference size, and according to the result, encoding is performed in units of MxM or NxN (N>M) sub-transformation blocks.

반면, 만약 현재 코딩 블록 CU의 형태가 비정방 형태이면서 극소 비대칭 코딩 블록에는 해당되면, CSBF가 적용되는 새로운 서브 변환 블록 단위를 결정하게 된다(S3530). 즉, 극소 비대칭 코딩 블록에 대해서는, 도 33에서 정의된 NxN 또는 MxM 서브 변환 블록 크기를 그대로 활용하기 보다는, 새로운 크기의 서브 변환 블록을 정의하는 것이 필요하다. 예를 들어, 상기 새로운 서브 변환 블록 단위는 정방형 (ex, 2x2, 4x4, 8x8,..) 또는 비정방형 (ex, 2x4, 2x8, 4x2, 8x2,…)이 될 수 있다. 또는, 상기 새로운 서브 변환 블록 단위는 특정 블록 형태가 아닌 샘플 수에 따라 결정하는 것도 가능하다. 또한, 샘플 수로 서브 변환 블록을 결정하는 경우는 도 32에 도시한 바와 같이 하나의 극소 비대칭 코딩 블록(예를 들어, 도32 CU1)을 동일한 샘플 수를 포함하는 상이한 형태의 서브 변환 블록으로 구분하는 것이 가능하게 된다. On the other hand, if the form of the current coding block CU is non-square and corresponds to a minimally asymmetric coding block, a new sub-transform block unit to which CSBF is applied is determined (S3530). That is, for extremely asymmetric coding blocks, it is necessary to define a sub-transform block of a new size rather than using the NxN or MxM sub-transform block size defined in FIG. 33 as is. For example, the new sub-transformation block unit may be square (ex, 2x2, 4x4, 8x8,...) or non-square (ex, 2x4, 2x8, 4x2, 8x2,...). Alternatively, the new sub-transformation block unit may be determined based on the number of samples rather than a specific block type. In addition, when determining a sub-transform block based on the number of samples, as shown in FIG. 32, one extremely asymmetric coding block (e.g., CU1 in FIG. 32) is divided into sub-transform blocks of different types including the same number of samples. It becomes possible.

상기 S3530 단계를 통해 서브 변환 블록 단위가 결정되면, 결정된 서브 변환 블록별로 부호화를 수행하고, 부호화된 결과에 따라 CSBF#i (i=1,2…n) 값을 시그날링하게 된다(S3540).When the sub-transform block unit is determined through step S3530, encoding is performed for each determined sub-transform block, and the CSBF#i (i=1,2...n) value is signaled according to the encoded result (S3540).

도36은 본 발명이 적용되는 또 다른 실시예로서, 코딩 블록 타입에 대응하는 서브 변환 블록별 서브 블록 코딩 지시자를 이용한 영상 복호화 방법을 도시한 것이다. Figure 36 is another embodiment to which the present invention is applied, showing an image decoding method using a sub-block coding indicator for each sub-transform block corresponding to the coding block type.

도 36을 참조하면, 복호화기 (예를 들어, 200)는 부호화된 비트스트림을 수신하여 비트스트림내 포함된 신택스 요소를 파싱(parsing) 한다(S3610). 상기 파싱된 신택스 요소에는 영상 신호 복호화를 위한 모든 신택스 요소들을 포함한다. 특히, 파싱된 신택스 요소에는 현재 코딩 블록의 크기, 형태, 파티셔닝 방법을 지시하는 신택스 요소들을 포함한다. 또한, 파싱된 신택스 요소에는, 상기 서브 변환 블록 코딩 지시자 CSBF 정보가 특정 조건하에 포함되어 있다.Referring to FIG. 36, the decoder (eg, 200) receives the encoded bitstream and parses syntax elements included in the bitstream (S3610). The parsed syntax element includes all syntax elements for video signal decoding. In particular, the parsed syntax element includes syntax elements that indicate the size, shape, and partitioning method of the current coding block. Additionally, the parsed syntax element includes the sub-transform block coding indicator CSBF information under specific conditions.

상기 파싱된 신택스 요소를 통해, 현재 코딩 블록의 크기 및/또는 형태를 기 정의된 기준 크기 또는 형태와 비교하여(S3620), 신택스 요소 CSBF#i 의 검출 여부를 결정할 수 있다. 예를 들어, 상기 S3620 단계를 통해, 현재 코딩 블록에 신택스 요소 CSBF#i 가 존재하는 것으로 판단되는 경우를 제3 타입으로 정의하고, 신택스 요소 CSBF#i 가 존재하지 않는 것으로 판단되는 경우를 제4 타입으로 정의할 수 있다. 예를 들어, 전술한 도 33 ~ 도 35의 CSBF#i 시그날링 방법을 참조하면, 현재 코딩 블록이 기준 크기 이상의 정방형태 이거나, 또는 크기와 상관없이 비정방 형태인 경우에는, 상기 제3 타입으로 판단할 수 있다. 단, 현재 코딩 블록이 제3타입에 해당되는 지 여부를 판단하는 조건은, 부호화기 및 복호화간의 정의에 따라 상기 방식외에도 다양한 조건으로 설정가능하다.Through the parsed syntax element, the size and/or shape of the current coding block can be compared with a predefined reference size or shape (S3620) to determine whether to detect the syntax element CSBF#i. For example, through step S3620, the case where it is determined that the syntax element CSBF#i exists in the current coding block is defined as the third type, and the case where it is determined that the syntax element CSBF#i does not exist is defined as the fourth type. It can be defined as a type. For example, referring to the CSBF#i signaling method of FIGS. 33 to 35 described above, if the current coding block is in a square shape larger than the standard size or is in a non-square shape regardless of the size, the third type is used. You can judge. However, the condition for determining whether the current coding block corresponds to the third type can be set to various conditions other than the above method depending on the definition between the encoder and decoder.

반면, 만약, 현재 코딩 블록이 상기 제3 타입에 해당되지 않고 제4 타입에 해당되면, 변환 블록이 서브 변환 블록으로 구분되지 않았고, 신택스 요소 CSBF#i 가 비트스트림에 포함되지 않았음을 의미한다. 따라서, CSBF#i 의 검출 없이, 다른 신택스 요소 예를 들어,전술한rqt_root_cbf,cbf_cb, cbf_cr및 cbf_luma 값을 비트스트림으로부터 검출하여 변환 블록내 변환 계수를 복호화한다(S3630). On the other hand, if the current coding block does not correspond to the third type but corresponds to the fourth type, it means that the transform block is not divided into sub-transform blocks and the syntax element CSBF#i is not included in the bitstream. . Therefore, without detecting CSBF#i, other syntax elements, such as the above-described rqt_root_cbf, cbf_cb, cbf_cr, and cbf_luma values, are detected from the bitstream to decode the transform coefficients in the transform block (S3630).

상기 S3620단계를 통해,현재 코딩 블록이 신택스 요소 CSBF#i가 포함된 제3타입으로 판단되면, 신택스 요소 CSBF#i를 적용한 서브 변환 블록 단위를 확인한다(S3640). 예를 들어, 서브 변환 블록 단위는 전술한 NxN 또는 MxM (M<N) 의 정방형 이거나 또는, 2x4, 2x8, 4x2, 8x2 와 같은 비정방형 일수 있다. 또는, 예를 들어, 서브 변환 블록 단위는 동일한 크기의 블록 단위가 아닌, 샘플 수 (예, 16 샘플, 8샘플)로 구분될 수 있다.If the current coding block is determined to be a third type including the syntax element CSBF#i through step S3620, the sub-transformation block unit to which the syntax element CSBF#i is applied is confirmed (S3640). For example, the sub-transform block unit may be square, such as NxN or MxM (M<N), as described above, or may be non-square, such as 2x4, 2x8, 4x2, or 8x2. Or, for example, sub-transformation block units may be divided by the number of samples (e.g., 16 samples, 8 samples) rather than block units of the same size.

예를 들어, S3640단계를 통해 신택스 요소 CSBF#i 를 적용한 서브 변환 블록 단위가 n개 존재하는 경우, i=1 로 설정한 후 각 서브 변환 블록마다 시그날링된 CSBF#i (i=1,2…n) 값을 확인한다.즉, CSBF#1, CSBF#2,CSBF#3,…,CSBF#n, 순으로 확인 할 수 있다.For example, if there are n sub-conversion block units to which the syntax element CSBF#i is applied through step S3640, set i=1 and then CSBF#i signaled for each sub-conversion block (i=1,2 …n) Check the values, i.e. CSBF#1, CSBF#2, CSBF#3,… ,CSBF#n, can be checked in that order.

예를 들어, 첫번째 서브 변환 블록에 대응하는 상기 시그날링된 CSBF#1 값이 '1'인지를 확인한다(S3650). 만약 “CSBF#1 = 1”이면, 해당 첫번째 서브 변환 블록내에 '0'이 아닌 변환 계수가 존재하는 것을 의미하고, 해당 변환 계수를 복호화하게 된다(S3670). 상기 변환 계수를 복호화 하는 S3670단계는, 상기 서브 변환 블록별 대응하는 시그날링된 신택스 요소 cbf_cb, cbf_cr및 cbf_luma 값을 검출하여 복호화에 활용할 수 있다. For example, it is checked whether the signaled CSBF#1 value corresponding to the first sub-conversion block is '1' (S3650). If “CSBF#1 = 1”, it means that a transform coefficient other than ‘0’ exists in the first sub-transform block, and the transform coefficient is decoded (S3670). In step S3670 of decoding the transform coefficient, the signaled syntax element cbf_cb, cbf_cr, and cbf_luma values corresponding to each sub-transform block can be detected and utilized for decoding.

반면, “CSBF#1 = 0”이면, 해당 첫번째 서브 변환 블록내 모든 변환 계수 값을 모두 '0'으로 설정하게 된다(S3660). 상기 단계 S3650, S3660, S3670 과정은, 마지막 서브 변환 블록에 대응한 CSBF#n 값이 검출될 때까지 반복된다(S3680, S3690). On the other hand, if “CSBF#1 = 0”, all transformation coefficient values in the first sub-transformation block are set to ‘0’ (S3660). The steps S3650, S3660, and S3670 are repeated until the CSBF#n value corresponding to the last sub-conversion block is detected (S3680, S3690).

도37은 본 발명이 적용되는 또 다른 실시예로서, 변환 블록에 적용되는 네트워크 추상화 계층(NAL)에 포함되는 신택스 요소(syntax element)를 예를들어 도시한 것이다Figure 37 is another embodiment to which the present invention is applied, showing as an example a syntax element included in the network abstraction layer (NAL) applied to the transform block.

본 발명이 적용되는 NAL 유닛은, 예를 들어, 비디오 파라미터 셋 (VPS), 시퀀스 파라미터 셋(SPS), 픽쳐 파라미터 셋(PPS) 및 적어도 하나 이상의 슬라이스 셋(Slice)을 포함할 수 있다. 예를 들어, 도 37에서는 슬라이스 셋(Slice)에 포함된 포함된 신택스 요소를 도시하였으나, 시퀀스 파라미터 셋(SPS)또는 픽쳐 파라미터 셋(PPS)에 해당 신택스 요소를 포함하는 것도 가능하다. 또한, 신택스 요소별로 시퀀스 단위 또는 픽쳐 단위에 공통적으로 적용될 신택스 요소는 시퀀스 파라미터 셋(SPS) 또는 픽쳐 파라미터 셋(PPS)에 포함되도록 하고,특정 슬라이스에만 적용되는 신택스 요소는 슬라이스 셋(Slice)에 포함되도록 구분하는 것도 가능하다.따라서, 이는 부호화 성능 및 효율을 고려하여 선택이 가능하다.The NAL unit to which the present invention is applied may include, for example, a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), and at least one slice set (Slice). For example, Figure 37 shows syntax elements included in a slice set (Slice), but it is also possible to include the corresponding syntax elements in a sequence parameter set (SPS) or picture parameter set (PPS). In addition, for each syntax element, syntax elements that will be commonly applied to sequence units or picture units are included in the sequence parameter set (SPS) or picture parameter set (PPS), and syntax elements that apply only to specific slices are included in the slice set (Slice). It is also possible to differentiate them as much as possible. Therefore, this can be selected considering encoding performance and efficiency.

신택스 요소rqt_root_cbf는 변환 블록 코딩 지시자로서, “rqt_root_cbf = 1”이면,변환 블록내 적어도 하나 이상의 '0'이 아닌 변환 계수가 존재함의 지시한다.반면, “rqt_root_cbf = 0”이면,변환 블록내 모든 변환 계수가 '0'의 값을 가짐을 지시한다.The syntax element rqt_root_cbf is a transformation block coding indicator. If “rqt_root_cbf = 1”, it indicates that at least one non-zero transformation coefficient exists in the transformation block. On the other hand, if “rqt_root_cbf = 0”, all transformations in the transformation block. Indicates that the coefficient has the value of '0'.

또한,신택스 요소 cbf_cb, cbf_cr및 cbf_luma는 변환 블록내 색차 성분 Cb, 색차 성분 Cr 또느 휘도 성분 luma의 코딩 지시자를 의미한다. Additionally, the syntax elements cbf_cb, cbf_cr, and cbf_luma mean coding indicators of the chrominance component Cb, the chrominance component Cr, or the luminance component luma in the transform block.

또한,신택스 요소 coded_sub_block_flag[i] (CSBF#i)는 서브 변환 블록 코딩 지시자로서, “coded_sub_block_flag[i] = 1”이면, i번째 서브 변환 블록내 적어도 하나 이상의 '0'이 아닌 변환 계수가 존재함의 지시한다.반면,coded_sub_block_flag[i] = 1”이면, i번째 서브변환 블록내 모든 변환 계수가 '0'의 값을 가짐을 지시한다.In addition, the syntax element coded_sub_block_flag[i] (CSBF#i) is a sub-transform block coding indicator. If “coded_sub_block_flag[i] = 1”, at least one non-‘0’ transform coefficient exists in the i-th sub-transform block. Indicates. On the other hand, if coded_sub_block_flag[i] = 1”, it indicates that all transformation coefficients in the i-th sub-transformation block have the value of ‘0’.

또한,신택스 요소 idx_coded_sub_block, width_coded_sub_block, 및 NumSample_in_coded_sub_block은, 서브 변환 블록의 크기 또는 형태를 확인하는 정보로 활용 가능하다.Additionally, the syntax elements idx_coded_sub_block, width_coded_sub_block, and NumSample_in_coded_sub_block can be used as information to check the size or shape of the sub-conversion block.

예를 들어,신택스 요소 idx_coded_sub_block 는 CSBF#i 가 적용되는 서브 변환 블록을 인덱스하여 지시하는 경우에 활용될 수 있다.또한, 신택스 요소 width_coded_sub_block은 CSBF#i 가 적용되는 서브 변환 블록의 너비 크기를 정의하기 위해 활용될 수 있다.또한,신택스 요소 NumSample_in_coded_sub_block은 CSBF#i 가 적용되는 서브 변환 블록내에 포함되는 샘플 수를 정의하기 위해 활용될 수 있다.For example, the syntax element idx_coded_sub_block can be used to index and indicate the sub-transform block to which CSBF#i is applied. Additionally, the syntax element width_coded_sub_block defines the width size of the sub-transform block to which CSBF#i is applied. In addition, the syntax element NumSample_in_coded_sub_block can be used to define the number of samples included in the sub-conversion block to which CSBF#i is applied.

상술한 실시예는 일련의 단계 또는 순서도를 기초로 설명되고 있으나, 이는 발명의 시계열적 순서를 한정한 것은 아니며, 필요에 따라 동시에 수행되거나 다른 순서로 수행될 수 있다. 또한, 상술한 실시예에서 블록도를 구성하는 구성요소(예를 들어, 유닛, 모듈 등) 각각은 하드웨어 장치 또는 소프트웨어로 구현될 수도 있고, 복수의 구성요소가 결합하여 하나의 하드웨어 장치 또는 소프트웨어로 구현될 수도 있다. 상술한 실시예는 다양한 컴퓨터 구성요소를 통하여 수행될 수 있는 프로그램 명령어의 형태로 구현되어 컴퓨터 판독 가능한 기록 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능한 기록 매체는 프로그램 명령어, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 컴퓨터 판독 가능한 기록 매체의 예에는, 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM, DVD와 같은 광기록 매체, 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 ROM, RAM, 플래시 메모리 등과 같은 프로그램 명령어를 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 상기 하드웨어 장치는 본 발명에 따른 처리를 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있다.Although the above-described embodiments are explained based on a series of steps or flowcharts, this does not limit the chronological order of the invention, and may be performed simultaneously or in a different order as needed. Additionally, in the above-described embodiment, each of the components (e.g., units, modules, etc.) constituting the block diagram may be implemented as a hardware device or software, and a plurality of components may be combined to form a single hardware device or software. It may be implemented. The above-described embodiments may be implemented in the form of program instructions that can be executed through various computer components and recorded on a computer-readable recording medium. The computer-readable recording medium may include program instructions, data files, data structures, etc., singly or in combination. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks and magnetic tapes, optical recording media such as CD-ROMs and DVDs, and magneto-optical media such as floptical disks. media), and hardware devices specifically configured to store and perform program instructions, such as ROM, RAM, flash memory, etc. The hardware device may be configured to operate as one or more software modules to perform processing according to the invention.

100 : 부호화기 110 : 픽쳐분할부
120, 230 : 인터 예측부 125, 235 : 인트라 예측부
130 : 변환부 135 : 양자화부
200 : 복호화기 210 : 엔트로피 복호화부
215 : 재정렬부 220 : 역양자화부
225 : 역변환부
100: Encoder 110: Picture division unit
120, 230: Inter prediction unit 125, 235: Intra prediction unit
130: conversion unit 135: quantization unit
200: decoder 210: entropy decoder
215: rearrangement unit 220: inverse quantization unit
225: Inverse conversion unit

Claims (22)

비트스트림으로부터 변환 블록의 코딩 지시자를 복호화하는 단계; 및
상기 코딩 지시자가 상기 변환 블록 내 적어도 하나 이상의 유효한 변환 계수가 존재함을 지시하는 경우, 상기 변환 블록 내 서브 변환 블록에 대해, 상기 서브 변환 블록 내 유효한 변환 계수가 존재하는지 여부를 결정하는 단계, 상기 서브 변환 블록의 크기는, 상기 변환 블록의 크기와 같거나 작음;
상기 서브 변환 블록 내 유효한 변환 계수가 존재하는 것으로 결정된 경우, 상기 서브 변환 블록 내 변환 계수를 복호화하는 단계를 포함하되,
상기 변환 블록이 극소 비대칭 블록인 경우와, 상기 변환 블록이 상기 극소 비대칭 블록이 아닌 경우에 있어서, 상기 서브 변환 블록의 크기 및 형태 중 적어도 하나가 상이하고, 상기 변환 블록의 너비 및 높이 중 적어도 하나가 4보다 작은 경우, 상기 변환 블록은 상기 극소 비대칭 블록임,
상기 변환 블록이 상기 극소 비대칭 블록인 경우에는, 상기 서브 변환 블록은 2x2 크기의 정방형태, 또는 8x2 또는 2x8 크기의 비정방 형태로 결정되는 반면, 상기 변환 블록이 상기 극소 비대칭 블록이 아닌 경우에는, 상기 서브 변환 블록은, 4x4 크기의 정방 형태로 결정되는 것을 특징으로 하고,
상기 변환 블록이 코딩 블록을 분할하여 생성된 2개의 파티션들 중 하나인 경우, 상기 코딩 지시자가 상기 비트스트림에 불포함되는 것을 특징으로 하는, 영상 복호화 방법.
Decoding a coding indicator of a transform block from a bitstream; and
When the coding indicator indicates that at least one valid transform coefficient exists in the transform block, determining, for a sub-transform block in the transform block, whether a valid transform coefficient exists in the sub-transform block, The size of the sub-transform block is equal to or smaller than the size of the transform block;
When it is determined that a valid transform coefficient exists in the sub-transform block, decoding the transform coefficient in the sub-transform block,
When the transform block is a minimally asymmetric block and when the transform block is not the minimally asymmetric block, at least one of the size and shape of the sub-transform block is different, and at least one of the width and height of the transform block is different. If is less than 4, the transform block is the minimal asymmetric block,
If the transform block is the minimal asymmetric block, the sub-transform block is determined to be a square of 2x2 size, or a non-square shape of 8x2 or 2x8. On the other hand, if the transform block is not the minimal asymmetric block, The sub-transformation block is characterized in that it is determined in a square shape of 4x4 size,
When the transform block is one of two partitions created by dividing a coding block, the coding indicator is not included in the bitstream.
삭제delete 제1 항에 있어서,
상기 영상 복호화 방법은, 상기 변환 블록에 대한 역변환을 스킵할 것인지 여부를 결정하는 단계를 더 포함하고,
상기 변환 블록이 코딩 블록을 분할하여 생성된 2개의 파티션들 중 하나인 경우, 상기 변환 블록에 대해 상기 역변환을 스킵하는 것은 허용되지 않는 것을 특징으로 하는, 영상 복호화 방법.
According to claim 1,
The image decoding method further includes determining whether to skip inverse transformation for the transform block,
When the transform block is one of two partitions created by dividing a coding block, skipping the inverse transform for the transform block is not allowed.
제3 항에 있어서,
상기 코딩 블록을 대칭 형태로 분할할 것인지 또는 비대칭 형태로 분할할 것인지 여부는, 상기 비트스트림을 통해 시그날링되는 제1 플래그를 기초로 결정되고,
상기 제1 플래그가, 상기 코딩 블록이 비대칭 형태로 분할됨을 지시하는 경우, 상기 코딩 블록은, 상기 코딩 블록의 1/4 크기를 갖는 제1 파티션 및 상기 코딩 블록의 3/4 크기를 갖는 제2 파티션으로 분할되고,
상기 변환 블록은 상기 제1 파티션인 것을 특징으로 하는, 영상 복호화 방법.
According to clause 3,
Whether to split the coding block in a symmetrical or asymmetrical form is determined based on a first flag signaled through the bitstream,
When the first flag indicates that the coding block is divided in an asymmetric form, the coding block has a first partition with a size of 1/4 of the coding block and a second partition with a size of 3/4 of the coding block. Divided into partitions,
An image decoding method, wherein the transform block is the first partition.
제4 항에 있어서,
상기 제1 파티션 및 상기 제2 파티션의 위치는, 상기 비트스트림을 통해 시그날링되는 제2 플래그를 기초로 결정되는 것을 특징으로 하는, 영상 복호화 방법.
According to clause 4,
A video decoding method, characterized in that the positions of the first partition and the second partition are determined based on a second flag signaled through the bitstream.
제5 항에 있어서,
상기 코딩 블록이 수평 방향으로 분할된 경우, 상기 제2 플래그에 기초하여, 상기 제1 파티션이 상기 제2 파티션의 상단에 위치하는지 또는 하단에 위치하는지 여부가 결정되고,
상기 코딩 블록이 수직 방향으로 분할된 경우, 상기 제2 플래그에 기초하여, 상기 제1 파티션이 상기 제2 파티션의 좌측에 위치하는지 또는 우측에 위치하는지 여부가 결정되는 것을 특징으로 하는, 영상 복호화 방법.
According to clause 5,
When the coding block is divided in the horizontal direction, it is determined whether the first partition is located at the top or bottom of the second partition based on the second flag,
When the coding block is divided in the vertical direction, it is determined whether the first partition is located on the left or right of the second partition based on the second flag. .
변환 블록 내 변환 계수를 부호화하는 단계; 및
상기 변환 블록 내 유효한 변환 계수가 포함되어 있는지 여부를 나타내는 코딩 지시자를 부호화하는 단계를 포함하되,
상기 변환 블록 내 적어도 하나 이상의 유효한 변환 계수가 존재하는 경우, 서브 변환 블록별로, 상기 변환 계수가 부호화되고, 상기 서브 변환 블록의 크기는, 상기 변환 블록의 크기와 작거나 같음,
상기 변환 블록이 극소 비대칭 블록인 경우와, 상기 변환 블록이 상기 극소 비대칭 블록이 아닌 경우에 있어서, 상기 서브 변환 블록의 크기 및 형태 중 적어도 하나가 상이하고, 상기 변환 블록의 너비 및 높이 중 적어도 하나가 4보다 작은 경우, 상기 변환 블록은 상기 극소 비대칭 블록임,
상기 변환 블록이 상기 극소 비대칭 블록인 경우에는, 상기 서브 변환 블록은 2x2 크기의 정방형태, 또는 8x2 또는 2x8 크기의 비정방 형태로 결정되는 반면, 상기 변환 블록이 상기 극소 비대칭 블록이 아닌 경우에는, 상기 서브 변환 블록은, 4x4 크기의 정방 형태로 결정되고,
상기 변환 블록이 코딩 블록을 분할하여 생성된 2개의 파티션들 중 하나인 경우, 비트스트림에 상기 코딩 지시자를 부호화하는 것이 생략되는 것을 특징으로 하는, 영상 부호화 방법.
Encoding transform coefficients within a transform block; and
Comprising the step of encoding a coding indicator indicating whether a valid transform coefficient is included in the transform block,
If there is at least one valid transform coefficient in the transform block, the transform coefficient is encoded for each sub-transform block, and the size of the sub-transform block is smaller than or equal to the size of the transform block,
When the transform block is a minimally asymmetric block and when the transform block is not the minimally asymmetric block, at least one of the size and shape of the sub-transform block is different, and at least one of the width and height of the transform block is different. If is less than 4, the transform block is the minimal asymmetric block,
If the transform block is the minimal asymmetric block, the sub-transform block is determined to be a square of 2x2 size, or a non-square shape of 8x2 or 2x8. On the other hand, if the transform block is not the minimal asymmetric block, The sub-transformation block is determined to be a square of 4x4 size,
When the transform block is one of two partitions created by dividing a coding block, encoding the coding indicator in the bitstream is omitted.
삭제delete 제7 항에 있어서,
상기 영상 부호화 방법은, 상기 변환 블록에 대한 변환을 스킵할 것인지 여부를 결정하는 단계를 더 포함하고,
상기 변환 블록이 코딩 블록을 분할하여 생성된 2개의 파티션들 중 하나인 경우, 상기 변환 블록에 대해 상기 변환을 스킵하는 것은 허용되지 않는 것을 특징으로 하는, 영상 부호화 방법.
According to clause 7,
The image encoding method further includes determining whether to skip transformation for the transform block,
When the transform block is one of two partitions created by dividing a coding block, skipping the transform for the transform block is not allowed.
제9 항에 있어서,
상기 코딩 블록이 대칭 형태로 분할되는지 또는 비대칭 형태로 분할되는지 여부를 나타내는 제1 플래그가 명시적으로 부호화되고,
상기 코딩 블록이 비대칭 형태로 분할되는 경우, 상기 코딩 블록은, 상기 코딩 블록의 1/4 크기를 갖는 제1 파티션 및 상기 코딩 블록의 3/4 크기를 갖는 제2 파티션으로 분할되고,
상기 변환 블록은, 상기 제1 파티션인 것을 특징으로 하는, 영상 부호화 방법.
According to clause 9,
A first flag indicating whether the coding block is divided symmetrically or asymmetrically is explicitly encoded,
When the coding block is divided in an asymmetric form, the coding block is divided into a first partition with a size of 1/4 of the coding block and a second partition with a size of 3/4 of the coding block,
An image encoding method, wherein the transform block is the first partition.
제10 항에 있어서,
상기 제1 파티션 및 상기 제2 파티션의 위치를 나타내는, 제2 플래그가 명시적으로 부호화되는 것을 특징으로 하는, 영상 부호화 방법.
According to claim 10,
A video encoding method, characterized in that a second flag indicating the positions of the first partition and the second partition is explicitly encoded.
변환 블록 내 변환 계수를 부호화하는 단계; 및
상기 변환 블록 내 유효한 변환 계수가 포함되어 있는지 여부를 나타내는 코딩 지시자를 부호화하는 단계를 포함하되,
상기 변환 블록 내 적어도 하나 이상의 유효한 변환 계수가 존재하는 경우, 서브 변환 블록별로, 상기 변환 계수가 부호화되고, 상기 서브 변환 블록의 크기는, 상기 변환 블록의 크기와 같거나 작음,
상기 변환 블록이 극소 비대칭 블록인 경우와, 상기 변환 블록이 상기 극소 비대칭 블록이 아닌 경우에 있어서, 상기 서브 변환 블록의 크기 및 형태 중 적어도 하나가 상이하고, 상기 변환 블록의 너비 및 높이 중 적어도 하나가 4보다 작은 경우, 상기 변환 블록은 상기 극소 비대칭 블록임,
상기 변환 블록이 상기 극소 비대칭 블록인 경우에는, 상기 서브 변환 블록은 2x2 크기의 정방형태, 또는 8x2 또는 2x8 크기의 비정방 형태로 결정되는 반면, 상기 변환 블록이 상기 극소 비대칭 블록이 아닌 경우에는, 상기 서브 변환 블록은, 4x4 크기의 정방 형태로 결정되고,
상기 변환 블록이 코딩 블록을 분할하여 생성된 2개의 파티션들 중 하나인 경우, 비트스트림에 상기 코딩 지시자를 부호화하는 것이 생략되는 것을 특징으로 하는, 영상 부호화 방법에 의해 부호화된 비트스트림을 기록한 컴퓨터로 판독 가능한 기록 매체.
Encoding transform coefficients within a transform block; and
Comprising the step of encoding a coding indicator indicating whether a valid transform coefficient is included in the transform block,
If there is at least one valid transform coefficient in the transform block, the transform coefficient is encoded for each sub-transform block, and the size of the sub-transform block is equal to or smaller than the size of the transform block,
When the transform block is a minimally asymmetric block and when the transform block is not the minimally asymmetric block, at least one of the size and shape of the sub-transform block is different, and at least one of the width and height of the transform block is different. If is less than 4, the transform block is the minimal asymmetric block,
If the transform block is the minimal asymmetric block, the sub-transform block is determined to be a square of 2x2 size, or a non-square shape of 8x2 or 2x8. On the other hand, if the transform block is not the minimal asymmetric block, The sub-transformation block is determined to be a square of 4x4 size,
When the transform block is one of two partitions created by dividing a coding block, encoding the coding indicator in the bitstream is omitted. A computer that records a bitstream encoded by an image encoding method. A readable recording medium.
삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete
KR1020180021637A 2017-02-24 2018-02-23 Method and apparatus for processing a video signal KR102601268B1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR20170024641 2017-02-24
KR1020170024641 2017-02-24
KR1020170030281 2017-03-09
KR20170030281 2017-03-09

Publications (2)

Publication Number Publication Date
KR20180098159A KR20180098159A (en) 2018-09-03
KR102601268B1 true KR102601268B1 (en) 2023-11-10

Family

ID=63253862

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180021637A KR102601268B1 (en) 2017-02-24 2018-02-23 Method and apparatus for processing a video signal

Country Status (2)

Country Link
KR (1) KR102601268B1 (en)
WO (1) WO2018155984A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111107378A (en) * 2018-10-26 2020-05-05 北京字节跳动网络技术有限公司 Signaling of split information
MX2021005255A (en) * 2018-11-06 2021-09-08 Interdigital Vc Holdings Inc Parameter grouping among plural coding units for video encoding and decoding.
WO2020098649A1 (en) * 2018-11-12 2020-05-22 Huawei Technologies Co., Ltd. Video encoder, video decoder and methods
CN116744008A (en) 2018-12-15 2023-09-12 华为技术有限公司 Image reconstruction method and device
KR20220151233A (en) * 2019-02-28 2022-11-14 삼성전자주식회사 Video encoding and decoding method for predicting chroma component, and video encoding and decoding device for predicting chroma component
KR102204438B1 (en) * 2019-03-15 2021-01-18 삼성전자주식회사 Method and apparatus for image encoding, and method and apparatus for image decoding

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170280162A1 (en) 2016-03-22 2017-09-28 Qualcomm Incorporated Constrained block-level optimization and signaling for video coding tools

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR960013055A (en) * 1994-09-27 1996-04-20 김광호 Conditional Quidtree Segmentation Image Compression Method and Apparatus
AU2012277220B2 (en) * 2011-06-30 2016-08-11 Sun Patent Trust Image decoding method, image coding method, image decoding apparatus, image coding apparatus, and image coding and decoding apparatus
WO2013118485A1 (en) * 2012-02-08 2013-08-15 パナソニック株式会社 Image-encoding method, image-decoding method, image-encoding device, image-decoding device, and image-encoding-decoding device
WO2013161194A1 (en) * 2012-04-23 2013-10-31 日本電気株式会社 Video coding device, video coding method, and program
MX347473B (en) * 2012-07-02 2017-04-27 Samsung Electronics Co Ltd Method and apparatus for entropy coding video and method and apparatus for entropy decoding video.
KR101603887B1 (en) * 2014-04-17 2016-03-18 충북대학교 산학협력단 Method for coding data by fast coding unit decision in high efficiency video coding

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170280162A1 (en) 2016-03-22 2017-09-28 Qualcomm Incorporated Constrained block-level optimization and signaling for video coding tools

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ITU-T Rec. H.265/High efficiency video coding (2013.04.13.) 1부.*
Yuan Yuan et al, CE2: Non-Square Quadtree Transform for symmetric and asymmetric motion partition, JCT-VC of ITU-T and ISO/IEC, JCTVC-F412 (2011.07.12.) 1부.*

Also Published As

Publication number Publication date
WO2018155984A1 (en) 2018-08-30
KR20180098159A (en) 2018-09-03

Similar Documents

Publication Publication Date Title
KR102471208B1 (en) Method and apparatus for processing a video signal
KR102559063B1 (en) Method and apparatus for processing a video signal
KR102599115B1 (en) Method and apparatus for processing a video signal
KR102471206B1 (en) Method and apparatus for processing a video signal
KR102559062B1 (en) Method and apparatus for processing a video signal
KR102601268B1 (en) Method and apparatus for processing a video signal
KR102424418B1 (en) Method and apparatus for processing a video signal
KR102424419B1 (en) Method and apparatus for processing a video signal
KR20180051424A (en) Method and apparatus for processing a video signal
KR102601267B1 (en) Method and apparatus for processing a video signal
KR102471209B1 (en) Method and apparatus for processing a video signal
KR102511546B1 (en) Method and apparatus for processing a video signal
KR102559061B1 (en) Method and apparatus for processing a video signal
KR20190044533A (en) Method and apparatus for processing a video signal
KR20230150935A (en) Video signal processing method and apparatus
KR20180015599A (en) Method and apparatus for processing a video signal
CN112166614B (en) Method and apparatus for processing video signal
KR20190139785A (en) Method and apparatus for processing video signal
KR20180098158A (en) Method and apparatus for processing a video signal
KR20180103733A (en) Method and apparatus for image encoding or image decoding
KR20190133628A (en) Method and apparatus for processing a video
KR20190113654A (en) Method and apparatus for processing video signal
KR20210065063A (en) Method and apparatus for video encoding/decoding and recording medium for storing bitstream

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E90F Notification of reason for final refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant