KR102511611B1 - Image encoding method/apparatus, image decoding method/apparatus and and recording medium for storing bitstream - Google Patents

Image encoding method/apparatus, image decoding method/apparatus and and recording medium for storing bitstream Download PDF

Info

Publication number
KR102511611B1
KR102511611B1 KR1020170127939A KR20170127939A KR102511611B1 KR 102511611 B1 KR102511611 B1 KR 102511611B1 KR 1020170127939 A KR1020170127939 A KR 1020170127939A KR 20170127939 A KR20170127939 A KR 20170127939A KR 102511611 B1 KR102511611 B1 KR 102511611B1
Authority
KR
South Korea
Prior art keywords
block
splitting
binary tree
target block
size
Prior art date
Application number
KR1020170127939A
Other languages
Korean (ko)
Other versions
KR20180041576A (en
Inventor
문주희
임성원
원동재
Original Assignee
세종대학교산학협력단
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 세종대학교산학협력단 filed Critical 세종대학교산학협력단
Priority to CN202310595313.5A priority Critical patent/CN116489400A/en
Priority to CN202310595151.5A priority patent/CN116489398A/en
Priority to CN202310595161.9A priority patent/CN116489399A/en
Priority to CN202310508607.XA priority patent/CN116389726A/en
Priority to CN202310596009.2A priority patent/CN116489405A/en
Priority to CN202310596456.8A priority patent/CN116489406A/en
Priority to CN202310512086.5A priority patent/CN116320404A/en
Priority to CN202310595383.0A priority patent/CN116489401A/en
Priority to CN202310511853.0A priority patent/CN116320403A/en
Priority to CN202310511201.7A priority patent/CN116405669A/en
Priority to CN202310594159.XA priority patent/CN116489394A/en
Priority to CN202310595418.0A priority patent/CN116489402A/en
Priority to CN202310595869.4A priority patent/CN116489404A/en
Priority to CN202310595082.8A priority patent/CN116489396A/en
Priority to CN202310592033.9A priority patent/CN116489392A/en
Priority to CN202310595849.7A priority patent/CN116489403A/en
Priority to US16/341,792 priority patent/US11057624B2/en
Priority to CN202310593832.8A priority patent/CN116489393A/en
Priority to CN201780063610.8A priority patent/CN109937570B/en
Priority to PCT/KR2017/011213 priority patent/WO2018070786A1/en
Priority to CN202310512074.2A priority patent/CN116405670A/en
Priority to CN202310595129.0A priority patent/CN116489397A/en
Priority to CN202310594432.9A priority patent/CN116489395A/en
Publication of KR20180041576A publication Critical patent/KR20180041576A/en
Priority to US17/328,273 priority patent/US11659178B2/en
Priority to US17/818,650 priority patent/US20220400258A1/en
Priority to KR1020230033494A priority patent/KR20230042236A/en
Application granted granted Critical
Publication of KR102511611B1 publication Critical patent/KR102511611B1/en
Priority to US18/313,281 priority patent/US11778184B1/en
Priority to US18/468,547 priority patent/US11902521B2/en
Priority to US18/468,555 priority patent/US11909970B2/en
Priority to US18/468,561 priority patent/US11909971B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/14Coding unit complexity, e.g. amount of activity or edge presence estimation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/563Motion estimation with padding, i.e. with filling of non-object values in an arbitrarily shaped picture block or region for estimation purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/80Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
    • H04N19/82Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation involving filtering within a prediction loop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/96Tree coding, e.g. quad-tree coding

Abstract

본 발명은 영상 부호화 방법 및 영상 복호화 방법을 제공한다. 본 발명의 영상 부호화 방법은, 현재 영상을 복수의 블록들로 분할하는 제1 분할 단계, 및 상기 복수의 블록들 중 상기 현재 영상의 경계를 포함하는 분할 대상 블록을 복수의 하위 블록들로 분할하는 제2 분할 단계를 포함하고, 상기 제2 분할 단계는, 상기 하위 블록들 중 상기 현재 영상의 경계를 포함하는 하위 블록이 존재하지 않을 때까지, 상기 현재 영상의 경계를 포함하는 하위 블록을 상기 분할 대상 블록으로하여 재귀적으로 수행된다.The present invention provides an image encoding method and an image decoding method. An image encoding method of the present invention includes a first division step of dividing a current image into a plurality of blocks, and dividing a division target block including a boundary of the current image among the plurality of blocks into a plurality of sub-blocks. and a second dividing step, wherein the sub-block including the boundary of the current image is divided until the sub-block including the boundary of the current image does not exist among the sub-blocks. It is performed recursively with the target block.

Figure R1020170127939
Figure R1020170127939

Description

영상 부호화 방법/장치, 영상 복호화 방법/장치 및 비트스트림을 저장한 기록 매체{IMAGE ENCODING METHOD/APPARATUS, IMAGE DECODING METHOD/APPARATUS AND AND RECORDING MEDIUM FOR STORING BITSTREAM}Image encoding method/device, image decoding method/device, and recording medium storing bitstream

본 발명은 영상 부호화/복호화 방법 및 장치에 관한 것이다. 특히, 영상 부호화/복호화에 있어서의 영상 경계 처리 방법 및 장치에 관한 것이다. 더욱 상세하게는, 영상의 패딩 및 트리 구조에서 영상의 경계를 효율적으로 처리하기 위한 방법 및 장치에 관한 것이다.The present invention relates to a video encoding/decoding method and apparatus. In particular, it relates to a video boundary processing method and apparatus in video encoding/decoding. More particularly, it relates to a method and apparatus for efficiently processing image padding and borders of images in a tree structure.

최근, 인터넷에서는 동영상과 같은 멀티미디어 데이터의 수요가 급격히 증가하고 있다. 하지만 채널(Channel)의 대역폭(Bandwidth)이 발전하는 속도는 급격히 증가하고 있는 멀티미디어 데이터의 양을 따라가기 힘든 상황이다. 이러한 추세의 일환으로 국제 표준화 기구인 ITU-T의 VCEG(Video Coding Expert Group)과 ISO/IEC의 MPEG(Moving Picture Expert Group)에서는 꾸준한 공동 연구를 통하여 동영상 압축 표준을 연구하는 중이다.Recently, the demand for multimedia data such as moving pictures is rapidly increasing on the Internet. However, it is difficult to keep up with the rapidly increasing amount of multimedia data at the rate at which the bandwidth of a channel develops. As part of this trend, ITU-T's Video Coding Expert Group (VCEG) and ISO/IEC's Moving Picture Expert Group (MPEG) are studying video compression standards through steady joint research.

동영상 압축은 크게 화면 내 예측, 화면 간 예측, 변환, 양자화, 엔트로피(Entropy coding) 부호화, 인루프 필터(In-loop filter)로 구성된다. 이 중, 화면 내 예측은 현재 블록 주변에 존재하는 복원된 화소들을 이용하여 현재 블록을 위한 예측 블록을 생성하는 기술을 말한다. 이 때 부호화 과정이 블록 단위로 수행되기 때문에 영상의 크기가 블록 크기의 배수가 되지 않는다면 블록 단위로 부호화가 수행되기 어렵다는 문제점이 존재한다.Video compression is largely composed of intra-prediction, inter-prediction, transform, quantization, entropy coding, and in-loop filter. Among them, intra-prediction refers to a technique of generating a prediction block for a current block using reconstructed pixels existing around the current block. At this time, since the encoding process is performed in units of blocks, there is a problem in that it is difficult to perform encoding in units of blocks unless the size of the image is a multiple of the block size.

본 발명은 영상의 부호화/복호화에 있어서, 블록 단위로 영상의 크기를 맞추기 위한 패딩 방법 및 장치를 제공하는 것을 목적으로 한다.An object of the present invention is to provide a padding method and apparatus for adjusting the size of an image in units of blocks in encoding/decoding of an image.

또한, 본 발명은 영상의 부호화/복호화에 있어서, 영상 경계 처리에 효율적인 블록 분할 방법 및 장치를 제공하는 것을 목적으로 한다.In addition, an object of the present invention is to provide a block division method and apparatus that are efficient in video boundary processing in video encoding/decoding.

또한, 본 발명은 본 발명에 따른 영상 부호화 방법/장치에 의해 생성된 비트스트림을 저장하는 컴퓨터 판독 가능한 기록 매체를 제공하는 것을 목적으로 한다.Another object of the present invention is to provide a computer-readable recording medium storing a bitstream generated by the image encoding method/apparatus according to the present invention.

본 발명에 따른 영상 부호화 방법은, 현재 영상을 복수의 블록들로 분할하는 제1 분할 단계, 및 상기 복수의 블록들 중 상기 현재 영상의 경계를 포함하는 분할 대상 블록을 복수의 하위 블록들로 분할하는 제2 분할 단계를 포함하고, 상기 제2 분할 단계는, 상기 하위 블록들 중 상기 현재 영상의 경계를 포함하는 하위 블록이 존재하지 않을 때까지, 상기 현재 영상의 경계를 포함하는 하위 블록을 상기 분할 대상 블록으로하여 재귀적으로 수행될 수 있다.An image encoding method according to the present invention includes a first division step of dividing a current image into a plurality of blocks, and dividing a division target block including a boundary of the current image among the plurality of blocks into a plurality of sub-blocks. and a second division step of dividing the sub-blocks including the boundary of the current image until the sub-block including the boundary of the current image does not exist among the sub-blocks. It can be performed recursively using a partitioning target block.

본 발명에 따른 영상 부호화 방법에 있어서, 상기 제1 분할 단계는, 상기 현재 영상을 동일한 크기의 복수의 최대 블록으로 분할하는 단계일 수 있다.In the image encoding method according to the present invention, the first dividing step may be a step of dividing the current image into a plurality of largest blocks having the same size.

본 발명에 따른 영상 부호화 방법에 있어서, 상기 제2 분할 단계는, 상기 분할 대상 블록에 대해 쿼드 트리 분할 또는 이진 트리 분할을 수행하는 단계일 수 있다.In the video encoding method according to the present invention, the second splitting step may be a step of performing quad tree splitting or binary tree splitting on the splitting target block.

본 발명에 따른 영상 부호화 방법에 있어서, 상기 분할 대상 블록이 상기 쿼드 트리 분할이 가능한 크기인 경우, 상기 제2 분할 단계는 상기 분할 대상 블록에 대해 상기 쿼드 트리 분할을 수행하고, 상기 분할 대상 블록이 상기 쿼드 트리 분할이 가능하지 않은 크기인 경우, 상기 제2 분할 단계는 상기 분할 대상 블록에 대해 상기 이진 트리 분할을 수행할 수 있다.In the video encoding method according to the present invention, when the division target block has a size capable of performing the quad tree division, the second division step performs the quad tree division on the division target block, and the division target block When the quad tree splitting is not possible, the binary tree splitting may be performed on the splitting target block in the second splitting step.

본 발명에 따른 영상 부호화 방법에 있어서, 상기 제2 분할 단계에서 상기 분할 대상 블록에 대해 상기 쿼드 트리 분할 또는 상기 이진 트리 분할이 수행된 경우, 상기 분할 대상 블록이 쿼드 트리 분할되는지의 여부를 나타내는 제1 분할 정보 또는 상기 분할 대상 블록이 이진 트리 분할되는지의 여부를 나타내는 제2 분할 정보는 부호화되지 않을 수 있다.In the video encoding method according to the present invention, when the quad-tree splitting or the binary tree splitting is performed on the splitting target block in the second splitting step, a second step indicating whether the splitting block is quad-tree splitted or not 1 split information or 2 split information indicating whether the split target block is binary tree split may not be encoded.

본 발명에 따른 영상 부호화 방법에 있어서, 상기 제2 분할 단계에서 상기 분할 대상 블록에 대해 상기 이진 트리 분할이 수행된 경우, 상기 이진 트리 분할의 분할 방향은, 상기 분할 대상 블록에 포함되고 동시에 상기 현재 영상의 경계 내의 영역인 부호화 대상 블록의 형태에 기초하여 결정될 수 있다.In the video encoding method according to the present invention, when the binary tree splitting is performed on the splitting target block in the second splitting step, the splitting direction of the binary tree splitting is included in the splitting block and simultaneously the current splitting target block. It may be determined based on the shape of the encoding target block, which is an area within the boundary of the image.

본 발명에 따른 영상 부호화 방법에 있어서, 상기 제2 분할 단계에서 상기 분할 대상 블록에 대해 상기 이진 트리 분할이 수행된 경우, 상기 이진 트리 분할의 분할 방향을 나타내는 분할 방향 정보는 부호화되지 않을 수 있다.In the video encoding method according to the present invention, when the binary tree splitting is performed on the splitting target block in the second splitting step, splitting direction information indicating a splitting direction of the binary tree splitting may not be encoded.

본 발명에 따른 영상 부호화 방법에 있어서, 상기 제2 분할 단계는, 상기 분할 대상 블록에 포함되고 동시에 상기 현재 영상의 경계 밖의 영역인 남은 영역의 크기와 소정의 임계값을 비교하는 단계를 더 포함하고, 상기 비교 결과에 기초하여, 상기 분할 대상 블록에 대해 상기 쿼드 트리 분할 및 상기 이진 트리 분할 중 하나를 수행할 수 있다.In the video encoding method according to the present invention, the second segmentation step further comprises comparing the size of a remaining area included in the segmentation target block and at the same time, which is an area outside the boundary of the current video, with a predetermined threshold value; , Based on the comparison result, one of the quad tree partitioning and the binary tree partitioning may be performed on the partitioning target block.

본 발명에 따른 영상 부호화 방법에 있어서, 상기 남은 영역의 크기는 상기 남은 영역의 가로 길이 및 세로 길이 중 작은 쪽이고, 상기 제2 분할 단계는, 상기 남은 영역의 크기가 상기 소정의 임계값보다 큰 경우, 상기 분할 대상 블록에 대해 상기 쿼드 트리 분할을 수행하고, 상기 남은 영역의 크기가 상기 소정의 임계값보다 작은 경우, 상기 분할 대상 블록에 대해 상기 이진 트리 분할을 수행할 수 있다.In the video encoding method according to the present invention, the size of the remaining area is the smaller of the horizontal length and the vertical length of the remaining area, and in the second dividing step, the size of the remaining area is greater than the predetermined threshold value. , the quad tree splitting may be performed on the splitting target block, and if the size of the remaining area is smaller than the predetermined threshold value, the binary tree splitting may be performed on the splitting target block.

본 발명에 따른 영상 부호화 방법에 있어서, 상기 제2 분할 단계는, 상기 분할 대상 블록에 대해 이진 트리 분할을 수행하는 단계이고, 상기 이진 트리 분할의 분할 방향은, 상기 분할 대상 블록에 포함되고 동시에 상기 현재 영상의 경계 밖의 영역인 남은 영역의 형태에 기초하여 결정될 수 있다.In the video encoding method according to the present invention, the second splitting step is a step of performing binary tree splitting on the splitting object block, and the splitting direction of the binary tree splitting is included in the splitting object block and simultaneously It may be determined based on the shape of the remaining area, which is an area outside the boundary of the current image.

본 발명에 따른 영상 부호화 방법에 있어서, 상기 이진 트리 분할의 분할 방향은, 상기 남은 영역의 형태가 세로로 긴 블록인 경우, 세로 방향이고, 상기 남은 영역의 형태가 가로로 긴 블록인 경우, 가로 방향일 수 있다.In the video encoding method according to the present invention, the splitting direction of the binary tree partitioning is the vertical direction when the shape of the remaining area is a vertically long block, and the horizontal direction when the shape of the remaining area is a horizontally long block. direction can be

본 발명에 따른 영상 복호화 방법은, 현재 영상을 복수의 블록들로 분할하는 제1 분할 단계, 및 상기 복수의 블록들 중 상기 현재 영상의 경계를 포함하는 분할 대상 블록을 복수의 하위 블록들로 분할하는 제2 분할 단계를 포함하고, 상기 제2 분할 단계는, 상기 하위 블록들 중 상기 현재 영상의 경계를 포함하는 하위 블록이 존재하지 않을 때까지, 상기 현재 영상의 경계를 포함하는 하위 블록을 상기 분할 대상 블록으로하여 재귀적으로 수행될 수 있다.An image decoding method according to the present invention includes a first division step of dividing a current image into a plurality of blocks, and dividing a division target block including a boundary of the current image among the plurality of blocks into a plurality of sub-blocks. and a second division step of dividing the sub-blocks including the boundary of the current image until the sub-block including the boundary of the current image does not exist among the sub-blocks. It can be performed recursively using a partitioning target block.

본 발명에 따른 영상 복호화 방법에 있어서, 상기 제2 분할 단계는, 상기 분할 대상 블록에 대해 쿼드 트리 분할 또는 이진 트리 분할을 수행하는 단계일 수 있다.In the video decoding method according to the present invention, the second splitting step may be a step of performing quad tree splitting or binary tree splitting on the splitting target block.

본 발명에 따른 영상 복호화 방법에 있어서, 상기 분할 대상 블록이 상기 쿼드 트리 분할이 가능한 크기인 경우, 상기 제2 분할 단계는 상기 분할 대상 블록에 대해 상기 쿼드 트리 분할을 수행하고, 상기 분할 대상 블록이 상기 쿼드 트리 분할이 가능하지 않은 크기인 경우, 상기 제2 분할 단계는 상기 분할 대상 블록에 대해 상기 이진 트리 분할을 수행할 수 있다.In the video decoding method according to the present invention, when the division target block has a size capable of performing the quad tree division, the second division step performs the quad tree division on the division target block, and the division target block When the quad tree splitting is not possible, the binary tree splitting may be performed on the splitting target block in the second splitting step.

본 발명에 따른 영상 복호화 방법에 있어서, 상기 제2 분할 단계에서 상기 분할 대상 블록에 대해 상기 쿼드 트리 분할 또는 상기 이진 트리 분할이 수행된 경우, 상기 분할 대상 블록이 쿼드 트리 분할되는지의 여부를 나타내는 제1 분할 정보 또는 상기 분할 대상 블록이 이진 트리 분할되는지의 여부를 나타내는 제2 분할 정보는 비트스트림으로부터 복호화되지 않고, 소정의 값으로 유도될 수 있다.In the video decoding method according to the present invention, when the quad-tree splitting or the binary tree splitting is performed on the splitting target block in the second splitting step, the second indicating whether the splitting block is quad-tree splitted or not 1 split information or second split information indicating whether the split target block is binary tree split may be derived as a predetermined value without being decoded from the bitstream.

본 발명에 따른 영상 복호화 방법에 있어서, 상기 제2 분할 단계에서 상기 분할 대상 블록에 대해 상기 이진 트리 분할이 수행된 경우, 상기 이진 트리 분할의 분할 방향은, 상기 분할 대상 블록에 포함되고 동시에 상기 현재 영상의 경계 내의 영역인 복호화 대상 블록의 형태에 기초하여 결정될 수 있다.In the video decoding method according to the present invention, when the binary tree splitting is performed on the splitting object block in the second splitting step, the splitting direction of the binary tree splitting is included in the splitting object block and simultaneously the current splitting direction. It may be determined based on the shape of the decoding target block, which is an area within the boundary of the image.

본 발명에 따른 영상 복호화 방법에 있어서, 상기 제2 분할 단계에서 상기 분할 대상 블록에 대해 상기 이진 트리 분할이 수행된 경우, 상기 이진 트리 분할의 분할 방향을 나타내는 분할 방향 정보는 비트스트림으로부터 복호화되지 않고, 소정의 값으로 유도될 수 있다.In the video decoding method according to the present invention, when the binary tree splitting is performed on the splitting target block in the second splitting step, splitting direction information indicating the splitting direction of the binary tree splitting is not decoded from the bitstream. , can be derived to a predetermined value.

본 발명에 따른 영상 복호화 방법에 있어서, 상기 제2 분할 단계는, 상기 분할 대상 블록에 포함되고 동시에 상기 현재 영상의 경계 밖의 영역인 남은 영역의 크기와 소정의 임계값을 비교하는 단계를 더 포함하고, 상기 비교 결과에 기초하여, 상기 분할 대상 블록에 대해 상기 쿼드 트리 분할 및 상기 이진 트리 분할 중 하나를 수행할 수 있다.In the video decoding method according to the present invention, the second segmentation step further comprises comparing the size of a remaining area included in the segmentation target block and at the same time, which is an area outside the boundary of the current video, with a predetermined threshold value; , Based on the comparison result, one of the quad tree partitioning and the binary tree partitioning may be performed on the partitioning target block.

본 발명에 따른 영상 복호화 방법에 있어서, 상기 남은 영역의 크기는 상기 남은 영역의 가로 길이 및 세로 길이 중 작은 쪽이고, 상기 제2 분할 단계는, 상기 남은 영역의 크기가 상기 소정의 임계값보다 큰 경우, 상기 분할 대상 블록에 대해 상기 쿼드 트리 분할을 수행하고, 상기 남은 영역의 크기가 상기 소정의 임계값보다 작은 경우, 상기 분할 대상 블록에 대해 상기 이진 트리 분할을 수행할 수 있다.In the video decoding method according to the present invention, the size of the remaining area is the smaller of the horizontal length and the vertical length of the remaining area, and in the second dividing step, the size of the remaining area is larger than the predetermined threshold value. , the quad tree splitting may be performed on the splitting target block, and if the size of the remaining area is smaller than the predetermined threshold value, the binary tree splitting may be performed on the splitting target block.

본 발명에 따른 영상 복호화 방법에 있어서, 상기 제2 분할 단계는, 상기 분할 대상 블록에 대해 이진 트리 분할을 수행하는 단계이고, 상기 이진 트리 분할의 분할 방향은, 상기 분할 대상 블록에 포함되고 동시에 상기 현재 영상의 경계 밖의 영역인 남은 영역의 형태에 기초하여 결정될 수 있다.In the video decoding method according to the present invention, the second splitting step is a step of performing binary tree splitting on the splitting object block, and the splitting direction of the binary tree splitting is included in the splitting object block and simultaneously It may be determined based on the shape of the remaining area, which is an area outside the boundary of the current image.

본 발명에 따른 영상 복호화 방법에 있어서, 상기 이진 트리 분할의 분할 방향은, 상기 남은 영역의 형태가 세로로 긴 블록인 경우, 세로 방향이고, 상기 남은 영역의 형태가 가로로 긴 블록인 경우, 가로 방향일 수 있다.In the video decoding method according to the present invention, the division direction of the binary tree partitioning is the vertical direction when the shape of the remaining area is a vertically long block, and the horizontal direction when the shape of the remaining area is a horizontally long block. direction can be

본 발명에 따른 컴퓨터 판독 가능한 기록 매체는, 본 발명에 따른 영상 부호화 방법에 의해 생성된 비트스트림을 저장할 수 있다.A computer-readable recording medium according to the present invention may store a bitstream generated by the image encoding method according to the present invention.

본 발명에 따르면, 영상의 부호화/복호화에 있어서, 블록 단위로 영상의 크기를 맞추기 위한 패딩 방법 및 장치가 제공될 수 있다. According to the present invention, in encoding/decoding of an image, a padding method and apparatus for adjusting the size of an image in units of blocks may be provided.

또한, 본 발명에 따르면, 영상의 부호화/복호화에 있어서, 영상 경계 처리에 효율적인 블록 분할 방법 및 장치가 제공될 수 있다.In addition, according to the present invention, in video encoding/decoding, an efficient block division method and apparatus for video boundary processing can be provided.

또한, 본 발명에 따르면, 본 발명에 따른 영상 부호화 방법/장치에 의해 생성된 비트스트림을 저장하는 컴퓨터 판독 가능한 기록 매체를 제공될 수 있다.In addition, according to the present invention, a computer readable recording medium for storing a bitstream generated by the image encoding method/apparatus according to the present invention may be provided.

본 발명에 따른 패딩 방법 및 장치 또는 블록 분할 방법 및 장치를 이용하여 영상의 압축 효율을 향상시킬 수 있다.The compression efficiency of an image can be improved by using the padding method and device or the block division method and device according to the present invention.

도 1은 본 발명의 일 실시예에 따른 영상 부호화 장치를 간략하게 나타낸 블록 구성도이다.
도 2는 영상 부호화/복호화 장치에 정의된 화면 내 예측 모드의 종류를 도시한 것이다.
도 3은 평면 모드에 기반한 화면 내 예측 방법을 도시한 것이다.
도 4는 화면 내 예측을 위한 참조 화소를 도시한 것이다.
도 5는 수평 모드와 수직 모드에 기반한 화면 내 예측 방법을 도시한 것이다.
도 6은 본 발명의 일 실시예에 따른 영상 복호화 장치를 간략하게 나타낸 블록 구성도이다.
도 7은 본 발명의 일 실시예에 따른 패딩 과정을 설명하기 위한 도면이다.
도 8a 및 8b는 본 발명에 따른 패딩 과정을 설명하기 위한 도면이다.
도 9는 도 1의 영상 분할부(101)의 동작을 설명하기 위한 도면이다.
도 10은 본 발명에 따른 복호화기에서의 동작을 설명하기 위한 도면이다.
도 11은 현재 영상의 크기가 최대 블록의 크기의 배수가 아닌 경우를 예시적으로 도시한 도면이다.
도 12a 내지 도 12e는 본 발명에 일 실시예 따른 영상 분할 방법을 설명하기 위한 예시도이다.
도 13a 내지 도 13e는 본 발명에 다른 실시예 따른 영상 분할 방법을 설명하기 위한 예시도이다.
1 is a block diagram schematically illustrating an image encoding apparatus according to an embodiment of the present invention.
2 illustrates types of intra-prediction modes defined in an image encoding/decoding apparatus.
3 illustrates an intra-prediction method based on a planar mode.
4 illustrates reference pixels for intra-prediction.
5 illustrates an intra-prediction method based on a horizontal mode and a vertical mode.
6 is a schematic block diagram of an image decoding apparatus according to an embodiment of the present invention.
7 is a diagram for explaining a padding process according to an embodiment of the present invention.
8A and 8B are diagrams for explaining a padding process according to the present invention.
FIG. 9 is a diagram for explaining the operation of the image segmentation unit 101 of FIG. 1 .
10 is a diagram for explaining the operation of a decoder according to the present invention.
11 is a diagram exemplarily illustrating a case in which the size of a current image is not a multiple of the size of a maximum block.
12A to 12E are exemplary diagrams for explaining an image segmentation method according to an embodiment of the present invention.
13A to 13E are exemplary diagrams for explaining an image segmentation method according to another embodiment of the present invention.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다.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 modifications, equivalents, and substitutes included in the spirit and scope of the present invention. Like reference numerals have been used for like elements throughout the description of each figure.

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

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어"있다거나 "직접 접속되어"있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.It is understood that when an element is referred to as being "connected" or "connected" to another element, it may be directly connected or connected to the other element, but other elements may exist in the middle. It should be. On the other hand, when an element is referred to as “directly connected” or “directly connected” to another element, it should be understood that no other element exists in the middle.

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

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

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

도 1을 참조하면, 영상 부호화 장치(100)는 영상 분할부(101),화면 내 예측부(102), 화면 간 예측부(103), 감산부(104), 변환부(105), 양자화부(106), 엔트로피 부호화부(107), 역양자화부(108), 역변환부(109), 증산부(110), 필터부(111) 및 메모리(112)를 포함할 수 있다.Referring to FIG. 1 , an image encoding apparatus 100 includes an image division unit 101, an intra prediction unit 102, an inter prediction unit 103, a subtraction unit 104, a transform unit 105, and a quantization unit. 106, an entropy encoding unit 107, an inverse quantization unit 108, an inverse transform unit 109, a multiplication unit 110, a filter unit 111, and a memory 112.

도 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 made of separate hardware or a single software component. That is, each component is listed and included as each component for convenience of explanation, and at least two components 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 separated embodiments of components are also included in the scope of the present invention as long as they do not depart from the essence of the present invention.

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

영상 분할부(100)는 입력된 영상을 적어도 하나의 블록으로 분할할 수 있다. 이 때, 입력된 영상은 픽처, 슬라이스, 타일, 세그먼트 등 다양한 형태와 크기를 가질 수 있다. 블록은 부호화 단위(CU), 예측 단위(PU) 또는 변환 단위(TU)를 의미할 수 있다. 상기 분할은 쿼드 트리(Quadtree) 또는 바이너리 트리(Biniary tree) 중 적어도 하나에 기반하여 수행될 수 있다. 쿼드 트리는 상위 블록을 너비와 높이가 상위 블록의 절반인 하위 블록으로 사분할하는 방식이다. 바이너리 트리는 상위 블록을 너비 또는 높이 중 어느 하나가 상위 블록의 절반인 하위 블록으로 이분할하는 방식이다. 전술한 바이너리 트리 기반의 분할을 통해, 블록은 정방형뿐만 아니라 비정방형의 형태를 가질 수 있다.The image segmentation unit 100 may divide an input image into at least one block. In this case, the input image may have various shapes and sizes such as picture, slice, tile, and segment. A block may mean a coding unit (CU), a prediction unit (PU), or a transformation unit (TU). The division may be performed based on at least one of a quadtree or a binary tree. A quad tree is a method in which a parent block is divided into four sub-blocks whose width and height are half of the parent block. The binary tree is a method in which an upper block is divided into lower blocks whose width or height is half of the upper block. Through the binary tree-based partitioning described above, a block may have a non-square shape as well as a square shape.

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

예측부(102, 103)는 인터 예측을 수행하는 화면 간 예측부(103)와 인트라 예측을 수행하는 화면 내 예측부(102)를 포함할 수 있다. 예측 단위에 대해 인터 예측을 사용할 것인지 또는 인트라 예측을 수행할 것인지를 결정하고, 각 예측 방법에 따른 구체적인 정보(예컨대, 인트라 예측 모드, 모션 벡터, 참조 픽쳐 등)를 결정할 수 있다. 이때, 예측이 수행되는 처리 단위와 예측 방법 및 구체적인 내용이 정해지는 처리 단위는 다를 수 있다. 예컨대, 예측의 방법과 예측 모드 등은 예측 단위로 결정되고, 예측의 수행은 변환 단위로 수행될 수도 있다.The prediction units 102 and 103 may include an inter prediction unit 103 performing inter prediction and an intra prediction unit 102 performing 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. In this case, a processing unit in which prediction is performed and a processing unit in which a prediction method and specific details are determined may be different. For example, a prediction method and a prediction mode may be determined in a prediction unit, and prediction may be performed in a transformation unit.

생성된 예측 블록과 원본 블록 사이의 잔차값(잔차 블록)은 변환부(105)로 입력될 수 있다. 또한, 예측을 위해 사용한 예측 모드 정보, 모션 벡터 정보 등은 잔차값과 함께 엔트로피 부호화부(107)에서 부호화되어 복호화기에 전달될 수 있다. 특정한 부호화 모드를 사용할 경우, 예측부(102, 103)를 통해 예측 블록을 생성하지 않고, 원본 블록을 그대로 부호화하여 복호화부에 전송하는 것도 가능하다.A residual value (residual block) between the generated prediction block and the original block may be input to the transform unit 105 . In addition, prediction mode information and motion vector information used for prediction may be encoded in the entropy encoding unit 107 together with residual values and transmitted to the decoder. When a specific encoding mode is used, it is also possible to encode an original block as it is and transmit it to a decoder without generating a prediction block through the prediction units 102 and 103.

화면 내 예측부(102)는 현재 픽쳐 내의 화소 정보인 현재 블록 주변의 참조 픽셀 정보를 기초로 예측 블록을 생성할 수 있다. 인트라 예측이 수행될 현재 블록의 주변 블록의 예측 모드가 인터 예측인 경우, 인터 예측이 적용된 주변 블록에 포함되는 참조 픽셀을, 인트라 예측이 적용된 주변의 다른 블록 내의 참조 픽셀로 대체될 수 있다. 즉, 참조 픽셀이 가용하지 않는 경우, 가용하지 않은 참조 픽셀 정보를, 가용한 참조 픽셀 중 적어도 하나의 참조 픽셀로 대체하여 사용할 수 있다.The intra-prediction unit 102 may generate a prediction block based on reference pixel information around the current block, which is pixel information in the current picture. When a prediction mode of a neighboring block of a current block to which intra prediction is to be performed is inter prediction, a reference pixel included in a neighboring block to which inter prediction is applied may be replaced with a reference pixel in another neighboring block to which intra prediction is applied. That is, when a reference pixel is unavailable, the unavailable reference pixel information may be replaced with at least one reference pixel among available reference pixels.

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

화면 내 예측부(102)는 AIS(Adaptive Intra Smoothing) 필터, 참조 화소 보간부, DC 필터를 포함할 수 있다. AIS 필터는 현재 블록의 참조 화소에 필터링을 수행하는 필터로써 현재 예측 단위의 예측 모드에 따라 필터의 적용 여부를 적응적으로 결정할 수 있다. 현재 블록의 예측 모드가 AIS 필터링을 수행하지 않는 모드일 경우, AIS 필터는 적용되지 않을 수 있다.The intra-prediction unit 102 may include an Adaptive Intra Smoothing (AIS) filter, a reference pixel interpolator, and a DC filter. The AIS filter is a filter that performs filtering on reference pixels of the current block, and can adaptively determine whether to apply the filter according to the prediction mode of the current prediction unit. When the prediction mode of the current block is a mode in which AIS filtering is not performed, AIS filter may not be applied.

화면 내 예측부(102)의 참조 화소 보간부는 예측 단위의 인트라 예측 모드가 참조 화소를 보간한 화소값을 기초로 인트라 예측을 수행하는 예측 단위일 경우, 참조 화소를 보간하여 분수 단위 위치의 참조 화소를 생성할 수 있다. 현재 예측 단위의 예측 모드가 참조 화소를 보간하지 않고 예측 블록을 생성하는 예측 모드일 경우 참조 화소는 보간되지 않을 수 있다. DC 필터는 현재 블록의 예측 모드가 DC 모드일 경우 필터링을 통해서 예측 블록을 생성할 수 있다.The reference pixel interpolator of the intra prediction unit 102 interpolates the reference pixel when the intra prediction mode of the prediction unit is a prediction unit that performs intra prediction based on the interpolated pixel value of the reference pixel, and interpolates the reference pixel at the position of the fractional unit. can create When the prediction mode of the current prediction unit is a prediction mode for generating a prediction block without interpolating reference pixels, the reference pixels may not be interpolated. The DC filter may generate a prediction block through filtering when the prediction mode of the current block is the DC mode.

예측부(102, 103)에서 생성된 예측 단위와 예측 단위의 원본 블록 간의 차이값인 잔차값(Residual) 정보를 포함하는 잔차 블록이 생성될 수 있다. 생성된 잔차 블록은 변환부(130)로 입력되어 변환될 수 있다. A residual block including residual value information that is a difference value between a prediction unit generated by the prediction units 102 and 103 and an original block of the prediction unit may be generated. The generated residual block may be input to the transform unit 130 and transformed.

도 2는 인트라 예측 모드의 일 예를 설명하기 위한 도면이다. 도 2에 도시된 인트라 예측 모드는 총 35가지의 모드를 가지고 있다. 0번 모드는 평면 모드(Planar mode), 1번 모드는 DC 모드, 2 내지 34번 모드는 각도 모드(Angular mode)를 나타낸다. 2 is a diagram for explaining an example of an intra prediction mode. The intra prediction mode shown in FIG. 2 has a total of 35 modes. Mode 0 represents a planar mode, mode 1 represents a DC mode, and modes 2 through 34 represent angular modes.

도 3은 평면 모드의 화면 내 예측을 설명하기 위한 도면이다. 3 is a diagram for explaining intra-prediction in a planar mode.

도 3은 평면 모드를 설명하기 위한 도면이다. 현재 블록 내의 첫 번째 화소 P1의 예측값을 생성하기 위해 Y축으로 같은 위치에 있는 복원된 화소와 현재 블록의 우측 상단에 존재하는 복원된 화소 T를 도시된 바와 같이 선형 보간 하여 생성한다. 마찬가지로 두 번째 화소 P2의 예측값을 생성하기 위해 X축으로 같은 위치에 있는 복원된 화소와 현재 블록의 좌측 하단에 존재하는 복원된 화소 L을 도시된 바와 같이 선형 보간 하여 생성한다. 두 개의 예측 화소 P1과 P2를 평균한 값이 최종적인 예측 화소가 된다. 평면 모드에서는 위와 같은 방식으로 예측 화소들을 유도하여 현재 블록의 예측 블록을 생성한다. 3 is a diagram for explaining a planar mode. To generate the predicted value of the first pixel P1 in the current block, the reconstructed pixel at the same position along the Y-axis and the reconstructed pixel T existing at the upper right of the current block are linearly interpolated as shown. Similarly, in order to generate the predicted value of the second pixel P2, the reconstructed pixel at the same position along the X axis and the reconstructed pixel L existing at the lower left of the current block are generated by linear interpolation as shown. A value obtained by averaging the two predicted pixels P1 and P2 becomes a final predicted pixel. In the planar mode, a prediction block of the current block is generated by inducing prediction pixels in the same manner as above.

도 4는 DC 모드를 설명하기 위한 도면이다. 현재 블록 주변의 복원된 화소들의 평균을 계산한 다음, 그 평균 값을 현재 블록 내의 모든 화소들의 예측값으로 이용한다.4 is a diagram for explaining the DC mode. After calculating the average of the reconstructed pixels around the current block, the average value is used as a predicted value of all pixels in the current block.

도 5는 도 2의 10번 모드(수평 모드)와 26번 모드(수직 모드)를 이용하여 예측 블록을 생성하는 일 예를 설명하기 위한 도면이다. 10번 모드를 이용하는 경우, 현재 블록의 좌측에 접하는 각 참조화소를 오른쪽 방향으로 복사하여 현재 블록의 예측 블록을 생성한다. 마찬가지로 26번 모드는, 현재 블록의 상측에 접하는 각 참조 화소를 아래쪽 방향으로 복사하여 현재 블록의 예측 블록을 생성한다.FIG. 5 is a diagram for explaining an example of generating a prediction block using the 10th mode (horizontal mode) and the 26th mode (vertical mode) of FIG. 2 . In the case of using mode 10, a prediction block of the current block is generated by copying each reference pixel adjacent to the left side of the current block in the right direction. Similarly, in mode 26, a prediction block of the current block is generated by copying each reference pixel adjacent to the upper side of the current block in a downward direction.

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

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

모션 예측부는 참조 픽쳐 보간부에 의해 보간된 참조 픽쳐를 기초로 모션 예측을 수행할 수 있다. 모션 벡터를 산출하기 위한 방법으로 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) 방법 등 다양한 방법이 사용될 수 있다.The motion predictor may perform motion prediction based on the reference picture interpolated by the reference picture interpolator. As a method for calculating the motion vector, various methods such as Full search-based Block Matching Algorithm (FBMA), Three Step Search (TSS), and New Three-Step Search Algorithm (NTS) may be used. The motion vector may have a motion vector value in units of 1/2 or 1/4 pixels based on interpolated pixels. The motion prediction unit may predict the current prediction unit by using a different motion prediction method. Various methods such as a skip method, a merge method, and an advanced motion vector prediction (AMVP) method may be used as motion prediction methods.

감산부(104)는, 현재 부호화하려는 블록과 화면 내 예측부(102) 혹은 화면 간 예측부(103)에서 생성된 예측 블록을 감산하여 현재 블록의 잔차 블록을 생성한다.The subtraction unit 104 subtracts a block to be currently encoded and a prediction block generated by the intra prediction unit 102 or the inter prediction unit 103 to generate a residual block of the current block.

변환부(105)에서는 잔차 데이터를 포함한 잔차 블록을 DCT, DST, KLT(Karhunen Loeve Transform) 등과 같은 변환 방법을 사용하여 변환시킬 수 있다. 이때 변환 방법은 잔차 블록을 생성하기 위해 사용된 예측 단위의 인트라 예측 모드에 기반하여 결정될 수 있다. 예를 들어, 인트라 예측 모드에 따라, 가로 방향으로는 DCT를 사용하고, 세로 방향으로는 DST를 사용할 수도 있다.The transform unit 105 may transform a residual block including residual data using a transform method such as DCT, DST, or Karhunen Loeve Transform (KLT). In this case, a transform method may be determined based on an intra prediction mode of a prediction unit used to generate the residual block. For example, according to the intra prediction mode, DCT may be used in the horizontal direction and DST may be used in the vertical direction.

양자화부(106)는 변환부(105)에서 주파수 영역으로 변환된 값들을 양자화할 수 있다. 블록에 따라 또는 영상의 중요도에 따라 양자화 계수는 변할 수 있다. 양자화부(106)에서 산출된 값은 역양자화부(108)와 엔트로피 부호화부(107)에 제공될 수 있다.The quantization unit 106 may quantize the values converted into the frequency domain by the transform unit 105 . A quantization coefficient may change according to a block or an importance of an image. The value calculated by the quantization unit 106 may be provided to the inverse quantization unit 108 and the entropy encoding unit 107 .

상기 변환부(105) 및/또는 양자화부(106)는, 영상 부호화 장치(100)에 선택적으로 포함될 수 있다. 즉, 영상 부호화 장치(100)는, 잔차 블록의 잔차 데이터에 대해 변환 또는 양자화 중 적어도 하나를 수행하거나, 변환 및 양자화를 모두 스킵하여 잔차 블록을 부호화할 수 있다. 영상 부호화 장치(100)에서 변환 또는 양자화 중 어느 하나가 수행되지 않거나, 변환 및 양자화 모두 수행되지 않더라도, 엔트로피 부호화부(107)의 입력으로 들어가는 블록을 통상적으로 변환 블록이라 일컫는다. The transform unit 105 and/or the quantization unit 106 may be selectively included in the image encoding apparatus 100 . That is, the image encoding apparatus 100 may encode the residual block by performing at least one of transformation or quantization on the residual data of the residual block, or skipping both transformation and quantization. A block input to the input of the entropy encoding unit 107 is generally referred to as a transform block, even if either transform or quantization is not performed in the image encoding apparatus 100 or both transform and quantization are not performed.

엔트로피 부호화부(107)는 입력 데이터를 엔트로피 부호화한다. 엔트로피 부호화는 예를 들어, 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 부호화 방법을 사용할 수 있다.The entropy encoding unit 107 entropy encodes the input data. Entropy encoding may use various encoding methods such as, for example, exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC).

엔트로피 부호화부(107)는 예측부(102, 103)로부터 부호화 단위의 잔차값 계수 정보 및 블록 타입 정보, 예측 모드 정보, 분할 단위 정보, 예측 단위 정보 및 전송 단위 정보, 모션 벡터 정보, 참조 프레임 정보, 블록의 보간 정보, 필터링 정보 등 다양한 정보를 부호화할 수 있다. 엔트로피 부호화부(107)에서, 변환 블록의 계수는, 변환 블록 내 부분 블록 단위로, 0이 아닌 계수, 절대값이 1 또는 2보다 큰 계수, 그리고 계수의 부호 등을 나타내는 여러 종류의 플래그를 부호화될 수 있다. 상기 플래그만으로 부호화되지 않는 계수는, 플래그를 통해 부호화된 계수와 실제 변환 블록의 계수 간의 차이의 절대값을 통해 부호화될 수 있다. 역양자화부(108) 및 역변환부(109)에서는 양자화부(106)에서 양자화된 값들을 역양자화하고 변환부(105)에서 변환된 값들을 역변환한다. 역양자화부(108) 및 역변환부(109)에서 생성된 잔차값(Residual)은 예측부(102, 103)에 포함된 움직임 추정부, 움직임 보상부 및 화면 내 예측부(102)를 통해서 예측된 예측 단위와 합쳐져 복원 블록(Reconstructed Block)을 생성할 수 있다. 증산기(110)는, 예측부(102, 103)에서 생성된 예측 블록과, 역 변환부(109)를 통해 생성된 잔차 블록을 증산하여 복원 블록을 생성한다.The entropy encoding unit 107 receives residual value coefficient information and block type information of a coding unit from the prediction units 102 and 103, prediction mode information, division unit information, prediction unit information and transmission unit information, motion vector information, and reference frame information. , various information such as block interpolation information and filtering information can be encoded. In the entropy encoding unit 107, for the coefficients of the transform block, in units of partial blocks within the transform block, various types of flags indicating coefficients other than 0, coefficients with absolute values greater than 1 or 2, and signs of the coefficients are encoded. It can be. A coefficient that is not coded only with the flag may be coded using an absolute value of a difference between a coefficient coded with the flag and a coefficient of an actual transform block. The inverse quantization unit 108 and the inverse transform unit 109 inversely quantize the values quantized by the quantization unit 106 and inversely transform the values transformed by the transform unit 105 . The residual generated by the inverse quantization unit 108 and the inverse transform unit 109 is predicted through the motion estimation unit, motion compensation unit, and intra prediction unit 102 included in the prediction units 102 and 103. Combined with a prediction unit, a reconstructed block may be generated. The multiplier 110 multiplies the prediction block generated by the prediction units 102 and 103 and the residual block generated through the inverse transform unit 109 to generate a reconstructed block.

필터부(111)는 디블록킹 필터, 오프셋 보정부, ALF(Adaptive Loop Filter)중 적어도 하나를 포함할 수 있다.The filter unit 111 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 a boundary between blocks in a reconstructed picture. In order to determine whether to perform deblocking, it may be determined whether to apply the deblocking filter to the current block based on pixels included in several columns or rows included in the block. When a deblocking filter is applied to a block, a strong filter or a weak filter may be applied according to the required deblocking filtering strength. In addition, in applying the deblocking filter, when vertical filtering and horizontal filtering are performed, horizontal filtering and vertical filtering may be processed in parallel.

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

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

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

도 6은 본 발명의 일 실시예에 따른 영상 복호화 장치(600)를 나타낸 블록도이다. 6 is a block diagram illustrating an image decoding apparatus 600 according to an embodiment of the present invention.

도 6을 참조하면, 영상 복호화 장치(600)는 엔트로피 복호화부(601), 역양자화부(602), 역변환부(603), 증산부(604), 필터부(605), 메모리(606) 및 예측부(607, 608)를 포함할 수 있다.Referring to FIG. 6 , an image decoding apparatus 600 includes an entropy decoding unit 601, an inverse quantization unit 602, an inverse transform unit 603, a multiplication unit 604, a filter unit 605, a memory 606, and Prediction units 607 and 608 may be included.

영상 부호화 장치(100)에 의해 생성된 영상 비트스트림이 영상 복호화 장치(600)로 입력되는 경우, 입력된 비트스트림은 영상 부호화 장치(100)에서 수행된 과정과 반대의 과정에 따라 복호될 수 있다.When the video bitstream generated by the video encoding apparatus 100 is input to the video decoding apparatus 600, the input bitstream may be decoded according to a process opposite to that performed by the video encoding apparatus 100. .

엔트로피 복호화부(601)는 영상 부호화 장치(100)의 엔트로피 부호화부(107)에서 엔트로피 부호화를 수행한 것과 반대의 절차로 엔트로피 복호화를 수행할 수 있다. 예를 들어, 영상 부호화기에서 수행된 방법에 대응하여 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 방법이 적용될 수 있다. 엔트로피 복호화부(601)에서, 변환 블록의 계수는, 변환 블록 내 부분 블록 단위로, 0이 아닌 계수, 절대값이 1 또는 2보다 큰 계수, 그리고 계수의 부호 등을 나타내는 여러 종류의 플래그를 기반으로 복호화될 수 있다. 상기 플래그만으로 표현되지 않는 계수는, 플래그를 통해 표현되는 계수와 시그날링된 계수의 합을 통해 복호화될 수 있다.The entropy decoding unit 601 may perform entropy decoding by a procedure opposite to that of the entropy encoding performed by the entropy encoding unit 107 of the image encoding apparatus 100 . For example, various methods such as exponential Golomb, CAVLC (Context-Adaptive Variable Length Coding), and CABAC (Context-Adaptive Binary Arithmetic Coding) may be applied corresponding to the method performed by the image encoder. In the entropy decoding unit 601, the coefficients of the transform block are based on various types of flags indicating non-zero coefficients, coefficients with an absolute value greater than 1 or 2, and signs of coefficients in units of partial blocks within the transform block. can be decrypted. A coefficient not expressed only by the flag may be decoded through a sum of a coefficient expressed through the flag and a signaled coefficient.

엔트로피 복호화부(601)에서는 부호화기에서 수행된 인트라 예측 및 인터 예측에 관련된 정보를 복호화할 수 있다.역 양자화부(602)는 양자화된 변환 블록에 역 양자화를 수행하여 변환 블록을 생성한다. 도 1의 역 양자화부(108)와 실질적으로 동일하게 동작한다.The entropy decoding unit 601 may decode information related to intra prediction and inter prediction performed by the encoder. The inverse quantization unit 602 generates a transform block by performing inverse quantization on the quantized transform block. It operates substantially the same as the inverse quantization unit 108 of FIG. 1 .

역 변환부(603)은 변환 블록에 역 변환을 수행하여 잔차 블록을 생성한다. 이때, 변환 방법은 예측 방법(인터 또는 인트라 예측), 블록의 크기 및/또는 형태, 인트라 예측 모드 등에 관한 정보를 기반으로 결정될 수 있다. 도 1의 역 변환부(109)와 실질적으로 동일하게 동작한다. The inverse transform unit 603 generates a residual block by performing an inverse transform on the transform block. In this case, the transformation method may be determined based on information about a prediction method (inter or intra prediction), block size and/or shape, intra prediction mode, and the like. It operates substantially the same as the inverse transform unit 109 of FIG. 1 .

증산부(604)는, 화면 내 예측부(607) 혹은 화면 간 예측부(608)에서 생성된 예측 블록과 역 변환부(603)를 통해 생성된 잔차 블록를 증산하여 복원 블록을 생성한다. 도 1의 증산부(110)과 실질적으로 동일하게 동작한다.The multiplication unit 604 multiplies the prediction block generated by the intra prediction unit 607 or the inter prediction unit 608 and the residual block generated by the inverse transform unit 603 to generate a reconstructed block. It operates substantially the same as the evaporation unit 110 of FIG. 1 .

필터부(605)는, 복원된 블록들에 발생하는 여러 종류의 노이즈를 감소시킨다.The filter unit 605 reduces various types of noise generated in restored blocks.

필터부(605)는 디블록킹 필터, 오프셋 보정부, ALF를 포함할 수 있다.The filter unit 605 may include a deblocking filter, an offset correction unit, and an ALF.

영상 부호화 장치(100)로부터 해당 블록 또는 픽쳐에 디블록킹 필터를 적용하였는지 여부에 대한 정보 및 디블록킹 필터를 적용하였을 경우, 강한 필터를 적용하였는지 또는 약한 필터를 적용하였는지에 대한 정보를 제공받을 수 있다. 영상 복호화 장치(600)의 디블록킹 필터에서는 영상 부호화 장치(100)에서 제공된 디블록킹 필터 관련 정보를 제공받고 영상 복호화 장치(600)에서 해당 블록에 대한 디블록킹 필터링을 수행할 수 있다. Information on whether a deblocking filter is applied to a corresponding block or picture and information on whether a strong filter or a weak filter is applied when the deblocking filter is applied may be provided from the video encoding apparatus 100. The deblocking filter of the video decoding apparatus 600 may receive information related to the deblocking filter provided from the video encoding apparatus 100, and the video decoding apparatus 600 may perform deblocking filtering on a corresponding block.

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

ALF는 영상 부호화 장치(100)로부터 제공된 ALF 적용 여부 정보, ALF 계수 정보 등을 기초로 부호화 단위에 적용될 수 있다. 이러한 ALF 정보는 특정한 파라미터 셋에 포함되어 제공될 수 있다. 필터부(605)는 도 1의 필터부(111)와 실질적으로 동일하게 동작한다.ALF may be applied to a coding unit based on ALF application information and ALF coefficient information provided from the video encoding apparatus 100 . Such ALF information may be included in a specific parameter set and provided. The filter unit 605 operates substantially the same as the filter unit 111 of FIG. 1 .

메모리(606)는 증산부(604)에 의해 생성된 복원 블록을 저장한다. 도 1의 메모리(112)와 실질적으로 동일하게 동작한다.The memory 606 stores the reconstruction block generated by the augmentation unit 604. It operates substantially the same as memory 112 of FIG.

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

예측부(607, 608)는 화면 내 예측부(607) 및 화면 간 예측부(608)를 포함할 수 있다. 별도로 도시되지는 아니하였으나, 예측부(607, 608)는 예측 단위 판별부를 더 포함할 수 있다. 예측 단위 판별부는 엔트로피 복호화부(601)에서 입력되는 예측 단위 정보, 인트라 예측 방법의 예측 모드 정보, 인터 예측 방법의 모션 예측 관련 정보 등 다양한 정보를 입력 받고 현재 부호화 단위에서 예측 단위를 구분하고, 예측 단위가 인터 예측을 수행하는지 아니면 인트라 예측을 수행하는지 여부를 판별할 수 있다. 화면 간 예측부(608)는 영상 부호화 장치(100)에서 제공된 현재 예측 단위의 인터 예측에 필요한 정보를 이용해 현재 예측 단위가 포함된 현재 픽쳐의 이전 픽쳐 또는 이후 픽쳐 중 적어도 하나의 픽쳐에 포함된 정보를 기초로 현재 예측 단위에 대한 인터 예측을 수행할 수 있다. 또는, 현재 예측 단위가 포함된 현재 픽쳐 내에서 기-복원된 일부 영역의 정보를 기초로 인터 예측을 수행할 수도 있다.The prediction units 607 and 608 may include an intra prediction unit 607 and an inter prediction unit 608 . Although not separately shown, the prediction units 607 and 608 may further include a prediction unit determining unit. The prediction unit determination unit receives various information such as prediction unit information input from the entropy decoding unit 601, prediction mode information of the intra prediction method, and motion prediction related information of the inter prediction method, classifies the prediction unit from the current coding unit, and predicts It is possible to determine whether a unit performs inter prediction or intra prediction. The inter-prediction unit 608 uses information necessary for inter-prediction of the current prediction unit provided from the video encoding apparatus 100 to use information included in at least one picture among pictures before or after the current picture that includes the current prediction unit. Inter prediction may be performed on the current prediction unit based on . Alternatively, inter prediction may be performed based on information of a pre-reconstructed partial region in the current picture including the current prediction unit.

화면 간 예측을 수행하기 위해 부호화 단위를 기준으로 해당 부호화 단위에 포함된 예측 단위의 모션 예측 방법이 스킵 모드(Skip Mode), 머지 모드(Merge 모드), AMVP 모드(AMVP Mode) 중 어떠한 방법인지 여부를 판단할 수 있다.Whether or not the motion prediction method of the prediction unit included in the coding unit is skip mode, merge mode, or AMVP mode based on the coding unit to perform inter-prediction. can judge

화면 내 예측부(607)는, 현재 부호화하려는 블록 주변에 위치한, 그리고 기 복원된 화소들을 이용하여 예측 블록을 생성한다. The intra-prediction unit 607 generates a prediction block using previously reconstructed pixels located around a block to be currently encoded.

화면 내 예측부(607)는 AIS(Adaptive Intra Smoothing) 필터, 참조 화소 보간부, DC 필터를 포함할 수 있다. AIS 필터는 현재 블록의 참조 화소에 필터링을 수행하는 필터로써 현재 예측 단위의 예측 모드에 따라 필터의 적용 여부를 적응적으로 결정할 수 있다. 영상 부호화 장치(100)에서 제공된 예측 단위의 예측 모드 및 AIS 필터 정보를 이용하여 현재 블록의 참조 화소에 AIS 필터링을 수행할 수 있다. 현재 블록의 예측 모드가 AIS 필터링을 수행하지 않는 모드일 경우, AIS 필터는 적용되지 않을 수 있다.The intra-prediction unit 607 may include an Adaptive Intra Smoothing (AIS) filter, a reference pixel interpolator, and a DC filter. The AIS filter is a filter that performs filtering on reference pixels of the current block, and can adaptively determine whether to apply the filter according to the prediction mode of the current prediction unit. AIS filtering may be performed on reference pixels of the current block using the prediction mode of the prediction unit and AIS filter information provided by the image encoding apparatus 100 . When the prediction mode of the current block is a mode in which AIS filtering is not performed, AIS filter may not be applied.

화면 내 예측부(607)의 참조 화소 보간부는 예측 단위의 예측 모드가 참조 화소를 보간한 화소값을 기초로 인트라 예측을 수행하는 예측 단위일 경우, 참조 화소를 보간하여 분수 단위 위치의 참조 화소를 생성할 수 있다. 생성된 분수 단위 위치의 참조 화소가 현재 블록 내의 화소의 예측 화소로 이용될 수 있다. 현재 예측 단위의 예측 모드가 참조 화소를 보간하지 않고 예측 블록을 생성하는 예측 모드일 경우 참조 화소는 보간되지 않을 수 있다. DC 필터는 현재 블록의 예측 모드가 DC 모드일 경우 필터링을 통해서 예측 블록을 생성할 수 있다.The reference pixel interpolator of the intra-prediction unit 607 interpolates the reference pixel to obtain a reference pixel at a fractional unit position when the prediction mode of the prediction unit is a prediction unit that performs intra prediction based on a pixel value obtained by interpolating the reference pixel. can create The generated reference pixel at the location of the fractional unit may be used as a prediction pixel of a pixel in the current block. When the prediction mode of the current prediction unit is a prediction mode for generating a prediction block without interpolating reference pixels, the reference pixels may not be interpolated. The DC filter may generate a prediction block through filtering when the prediction mode of the current block is the DC mode.

화면 내 예측부(607)는 도 1의 화면 내 예측부(102)와 실질적으로 동일하게 동작한다.The intra-prediction unit 607 operates substantially the same as the intra-prediction unit 102 of FIG. 1 .

화면 간 예측부(608)는, 메모리(606)에 저장된 참조 픽처, 움직임 정보를 이용하여 인터 예측 블록을 생성한다. 화면 간 예측부(608)는 도 1의 화면 간 예측부(103)와 실질적으로 동일하게 동작한다.The inter-prediction unit 608 generates an inter-prediction block using reference pictures and motion information stored in the memory 606. The inter-prediction unit 608 operates substantially the same as the inter-prediction unit 103 of FIG. 1 .

본 발명은, 특히 패딩 및 영상의 경계 처리에 관한 것으로서, 이하에 본 발명의 다양한 실시예들을 도면들을 참조하면서 보다 상세하게 설명한다.The present invention relates in particular to padding and boundary processing of an image, and various embodiments of the present invention are described in more detail below with reference to drawings.

본 발명의 일 실시예에 따르면, 부호화 대상 영상이 도 1의 영상 분할부(101)에 입력되기 전에 전처리 과정이 수행될 수 있다. 부호화 대상 영상은 화소 단위의 다양한 가로 및 세로 크기를 가질 수 있다. 그러나, 영상의 부호화 및 복호화는 화소 단위가 아닌 임의의 블록 단위로 수행되기 때문에, 부호화 대상 영상의 크기를 블록 단위로 맞추기 위한 패딩 과정이 필요할 수 있다. According to an embodiment of the present invention, a pre-processing process may be performed before an encoding target image is input to the image segmentation unit 101 of FIG. 1 . An encoding target image may have various horizontal and vertical sizes in pixel units. However, since encoding and decoding of an image is performed in units of arbitrary blocks rather than units of pixels, a padding process may be required to adjust the size of an image to be encoded in units of blocks.

도 7은 본 발명의 일 실시예에 따른 패딩 과정을 설명하기 위한 도면이다.7 is a diagram for explaining a padding process according to an embodiment of the present invention.

도 7에 도시된 예에서, 부호화 대상 영상은 블록 영역과 비블록 영역을 포함한다. 상기 부호화 대상 영상에 대해 상기 전처리 과정이 수행됨으로써, 패딩된 영역이 추가될 수 있다. 패딩된 영역이 추가된 상기 부호화 대상 영상은 도 1의 영상 분할부(101)에 입력될 수 있다. In the example shown in FIG. 7 , an encoding target image includes a block area and a non-block area. By performing the preprocessing process on the encoding target image, a padded area may be added. The encoding target image to which the padded region is added may be input to the image segmentation unit 101 of FIG. 1 .

도 7에 도시된 예에서, 최소 블록의 단위는 4x4일 수 있다. 블록의 가로 또는 세로의 길이는 2n일 수 있다. 따라서, 예를 들어, 부호화 대상 영상의 가로 및 세로의 길이가 각각 9인 경우, 상기 부호화 대상 영상의 우측 1열 및 하단 1행은 블록 영역에 포함되지 않는 비블록 영역이 될 수 있다. 이와 같이, 부호화 대상 영상이 비블록 영역을 포함하는 경우, 상기 최소 블록의 크기를 고려하여, 패딩을 수행할 수 있다. 이와 같이, 블록의 크기를 고려한 패딩을 수행함으로써, 패딩된 부호화 대상 영상은 비블록 영역을 포함하지 않게 된다. 패딩된 부호화 대상 영상은 도 1의 영상 분할부(101)에 입력되어 복수의 블록으로 분할됨으로써, 블록 단위의 부호화가 수행될 수 있다. In the example shown in FIG. 7 , the unit of the minimum block may be 4x4. The horizontal or vertical length of a block may be 2 n . Therefore, for example, when the length and width of the encoding target image are 9, respectively, the first column on the right side and the lower row of the encoding target image may be non-block regions that are not included in the block region. In this way, when the video to be encoded includes the non-block region, padding may be performed in consideration of the size of the minimum block. In this way, by performing padding in consideration of the block size, the padded video to be encoded does not include the non-block region. The padded encoding target image is input to the image divider 101 of FIG. 1 and divided into a plurality of blocks, so that block-by-block encoding can be performed.

도 8a 및 8b는 본 발명에 따른 패딩 과정을 설명하기 위한 도면이다.8A and 8B are diagrams for explaining a padding process according to the present invention.

먼저, 패딩해야할 화소에 가장 인접한 화소를 이용하여 가로 방향으로 패딩을 수행할 수 있다. 도 8a에 도시된 예에서, 가장 상단의 3개의 패딩 대상 화소는 좌측에 인접한 비블록 영역의 화소 A를 이용하여 패딩될 수 있다.First, padding may be performed in a horizontal direction using a pixel closest to a pixel to be padded. In the example shown in FIG. 8A , the top three pixels to be padded may be padded using the pixel A of the non-block area adjacent to the left.

이후, 패딩해야할 화소에 가장 인접한 화소를 이용하여 세로 방향으로 패딩을 수행할 수 있다. 도 8b에 도시된 예에서, 가장 좌측의 3개의 패딩 대상 화소는 상단에 인접한 비블록 영역의 화소 I를 이용하여 패딩될 수 있다.Thereafter, padding may be performed in a vertical direction using a pixel closest to the pixel to be padded. In the example shown in FIG. 8B , the leftmost three pixels to be padded may be padded using the pixel I of the non-block area adjacent to the top.

상기 예에서, 가로 방향에서 세로 방향으로의 패딩 과정을 설명하였으나, 이에 한정되지 않으며, 세로 방향에서 가로 방향으로의 패딩이 수행될 수도 있다. 상기 최소 블록의 크기는 도 9를 참조하여 설명할 블록 단위일 수도 있으며 서브 블록 단위일 수도 있다.In the above example, the padding process from the horizontal direction to the vertical direction has been described, but it is not limited thereto, and padding from the vertical direction to the horizontal direction may be performed. The size of the minimum block may be a block unit or a sub-block unit, which will be described with reference to FIG. 9 .

도 9는 도 1의 영상 분할부(101)의 동작을 설명하기 위한 도면이다.FIG. 9 is a diagram for explaining the operation of the image segmentation unit 101 of FIG. 1 .

입력 영상은 복수의 최대 블록으로 분할될 수 있다. 최대 블록의 크기는 기설정되거나 비트스트림을 통해 시그널링될 수 있다. 예를 들어, 입력 영상의 크기는 128x128이고, 최대 블록의 크기는 64x64일 경우, 입력 영상은 4개의 최대 블록으로 분할될 수 있다. An input image may be divided into a plurality of largest blocks. The maximum block size may be preset or signaled through a bitstream. For example, when the size of the input image is 128x128 and the size of the maximum block is 64x64, the input image may be divided into four maximum blocks.

각각의 최대 블록은 도 1의 영상 분할부(101)에 입력되어, 복수의 블록으로 분할될 수 있다. 입력 영상은 복수의 최대 블록으로 분할되지 않고, 곧바로 영상 분할부(101)에 입력될 수도 있다. 분할된 블록의 최소 크기 및/또는 서브 블록으로 분할될 수 있는 블록의 최대 크기는 기설정되거나, 블록의 상위 레벨의 헤더에서 시그널링될 수도 있다. 상기 상위 레벨은 비디오, 시퀀스, 픽쳐, 슬라이스, 타일, 촤대 부호화 유닛(LCU; Largest Coding Unit) 중 적어도 하나일 수 있다.Each largest block may be input to the image segmentation unit 101 of FIG. 1 and divided into a plurality of blocks. The input image may be directly input to the image segmentation unit 101 without being divided into a plurality of largest blocks. The minimum size of a divided block and/or the maximum size of a block that can be divided into sub-blocks may be preset or signaled in a header at a higher level of the block. The upper level may be at least one of video, sequence, picture, slice, tile, and largest coding unit (LCU).

현재 블록은 4개의 서브 블록으로 분할되거나 2개의 서브 블록으로 분할될 수 있다. The current block can be divided into 4 sub-blocks or 2 sub-blocks.

현재 블록이 4개의 서브 블록으로 분할되는 것을 쿼드 트리(quad-tree) 분할이라 할 수 있다. 현재 블록은 쿼드 트리 분할에 의해 동일한 크기를 갖는 4개의 서브 블록으로 분할될 수 있다. 제1 분할 정보는 현재 블록이 쿼드 트리 분할되는지의 여부를 나타내는 정보이다. 제1 분할 정보는 예컨대, 1비트의 플래그일 수 있다.Splitting a current block into four sub-blocks may be referred to as quad-tree splitting. The current block can be divided into four sub-blocks having the same size by quad-tree splitting. The first partitioning information is information indicating whether the current block is quad-tree partitioned. The first partition information may be, for example, a 1-bit flag.

현재 블록이 2개의 서브 블록으로 분할되는 것을 이진 트리(binary-tree) 분할이라 할 수 있다. 현재 블록은 이진 트리 분할에 의해 동일하거나 상이한 크기를 갖는 2개의 서브 블록으로 분할될 수 있다. 제2 분할 정보는 현재 블록이 이진 트리 분할되는지의 여부를 나타내는 정보이다. 제2 분할 정보는 예컨대, 1비트의 플래그일 수 있다. 현재 블록이 이진 트리 분할되는 경우, 분할 방향 정보가 더 시그널링될 수 있다. 분할 방향 정보는 현재 블록의 분할이 가로 방향의 분할인지 세로 방향의 분할인지를 나타낼 수 있다. 분할 방향 정보는 예컨대, 1비트의 플래그일 수 있다. 현재 블록이 상이한 크기를 갖는 2개의 서브 블록으로 분할되는 경우, 분할 형태 정보가 더 시그널링될 수 있다. 분할 형태 정보는 2개의 서브 블록의 분할 비율을 나타낼 수 있다.Splitting the current block into two sub-blocks may be referred to as binary-tree splitting. The current block can be split into two sub-blocks with identical or different sizes by binary tree splitting. The second partition information is information indicating whether the current block is binary tree partitioned. The second partition information may be, for example, a 1-bit flag. When the current block is binary tree split, splitting direction information may be further signaled. The division direction information may indicate whether the division of the current block is horizontal division or vertical division. The division direction information may be, for example, a 1-bit flag. When the current block is divided into two sub-blocks having different sizes, partition type information may be further signaled. The splitting type information may indicate a splitting ratio of two subblocks.

현재 블록은 쿼드 트리 분할과 이진 트리 분할을 이용하여 재귀적으로 분할될 수 있다. 예컨대, 현재 블록이 4개의 서브 블록으로 쿼드 트리 분할되는 경우, 각각의 서브 블록은 재귀적으로 쿼드 트리 분할되거나, 이진 트리 분할되거나, 분할되지 않을 수 있다. 현재 블록이 2개의 서브 블록으로 이진 트리 분할되는 경우, 각각의 서브 블록은 재귀적으로 쿼드 트리 분할되거나, 이진 트리 분할되거나, 분할되지 않을 수 있다. 또는, 이진 트리 분할에 의해 생성된 서브 블록에 대해서는 쿼드 트리 분할이 수행되지 않을 수 있다. The current block can be partitioned recursively using quad tree partitioning and binary tree partitioning. For example, when a current block is quad-tree partitioned into four sub-blocks, each sub-block may be recursively quad-tree partitioned, binary tree partitioned, or undivided. When the current block is binary tree split into two sub-blocks, each sub-block may be recursively quad-tree split, binary tree split, or not split. Alternatively, quad tree partitioning may not be performed on a subblock generated by binary tree partitioning.

부호화기는 입력된 현재 블록에 대해 쿼드 트리 분할 여부를 결정할 수 있다. 상기 결정에 기초하여 제1 분할 정보를 부호화할 수 있다(S901). 현재 블록이 쿼드 트리 분할되는 경우(S902에서 Yes), 현재 블록은 4개의 블록으로 쿼드 트리 분할될 수 있다(S903). 쿼드 트리 분할에 의해 생성된 4개의 블록의 각각은 소정의 순서에 따라 단계 S901에 다시 입력될 수 있다(S904, S916). 상기 소정의 순서는 Z-스캔 순서일 수 있다. 단계 S904에서, 상기 4개의 블록 중 상기 소정의 순서에 따른 첫번째 블록이 특정되어, 단계 S901에 현재 블록으로서 입력될 수 있다.The encoder may determine whether or not to split the quad tree with respect to the input current block. Based on the determination, first partition information may be encoded (S901). If the current block is quad-tree partitioned (Yes in S902), the current block may be quad-tree partitioned into four blocks (S903). Each of the four blocks generated by quad tree splitting may be input again to step S901 according to a predetermined order (S904 and S916). The predetermined order may be a Z-scan order. In step S904, the first block according to the predetermined order among the four blocks may be specified and input to step S901 as the current block.

현재 블록이 쿼드 트리 분할되지 않는 경우(S902에서 No), 부호화기는 현재 블록에 대해 이진 트리 분할 여부를 결정할 수 있다. 상기 결정에 기초하여 제2 분할 정보를 부호화할 수 있다(S905). 현재 블록이 이진 트리 분할되는 경우(S906에서 Yes), 부호화기는 현재 블록을 가로 분할할지 세로 분할할지를 결정하고, 상기 결정에 기초하여 분할 방향 정보를 부호화할 수 있다(S907). 현재 블록이 가로 분할되는 경우(S908에서 Yes), 현재 블록에 대한 가로 방향의 분할이 수행될 수 있다(S909). 그렇지 않은 경우(S908에서 No), 현재 블록에 대한 세로 방향의 분할이 수행될 수 있다(S910). 현재 블록에 대한 이진 트리 분할이 비대칭 분할인 경우, 분할 비율이 결정되어 분할 형태 정보가 더 부호화될 수 있다. 이 경우, 단계 S909 및 S910는 분할 형태 정보를 고려하여 수행될 수 있다. 이진 트리 분할에 의해 생성된 2개의 서브 블록의 각각은 소정의 순서에 따라 단계 S905에 다시 입력될 수 있다(S911, S914). 상기 소정의 순서는 좌측에서 우측, 또는 상단에서 하단일 수 있다. 단계 S911에서, 상기 2개의 서브 블록 중 상기 소정의 순서에 따른 첫번째 서브 블록이 특정되어, 단계 S905에 현재 블록으로서 입력될 수 있다. 이진 트리 분할에 의해 생성된 서브 블록에 대해 다시 쿼드 트리 분할이 허용되는 경우라면, 이진 트리 분할에 의해 생성된 2개의 블록의 각각은 소정의 순서에 따라 단계 S901로 입력될 수도 있다.If the current block is not quad-tree split (No in S902), the encoder may determine whether or not to split the binary tree for the current block. Based on the determination, second partition information may be encoded (S905). If the current block is binary tree split (Yes in S906), the encoder may determine whether to horizontally split or vertically split the current block, and encode splitting direction information based on the decision (S907). When the current block is horizontally divided (Yes in S908), horizontal division of the current block may be performed (S909). Otherwise (No in S908), vertical division of the current block may be performed (S910). When the binary tree partitioning of the current block is asymmetric partitioning, a partitioning ratio may be determined and partitioning type information may be further encoded. In this case, steps S909 and S910 may be performed in consideration of division type information. Each of the two sub-blocks generated by binary tree splitting may be input again to step S905 according to a predetermined order (S911 and S914). The predetermined order may be left to right or top to bottom. In step S911, a first sub-block according to the predetermined order among the two sub-blocks may be specified and input as a current block in step S905. If quad-tree splitting is allowed again for sub-blocks generated by binary tree splitting, each of the two blocks generated by binary tree splitting may be input to step S901 according to a predetermined order.

현재 블록이 이진 트리 분할되지 않는 경우(S906에서 No), 현재 블록 또는 현재 서브 블록에 대한 부호화가 수행될 수 있다(S912). 단계 S912의 부호화는 예측, 변환, 양자화 등을 포함할 수 있다.If the current block is not binary tree partitioned (No in S906), encoding may be performed on the current block or current sub-block (S912). Encoding in step S912 may include prediction, transformation, quantization, and the like.

단계 S912에서 부호화된 서브 블록이 이진 트리 분할에 의해 생성된 마지막 서브 블록이 아닌 경우(S913에서 No), 이진 트리 분할에 의해 생성된 다음 서브 블록이 특정되어, 단계 S905에 현재 블록으로서 입력될 수 있다(S914).If the subblock encoded in step S912 is not the last subblock generated by binary tree splitting (No in S913), the next subblock generated by binary tree splitting can be specified and input as the current block in step S905. Yes (S914).

단계 S912에서 부호화된 서브 블록이 이진 트리 분할에 의해 생성된 마지막 서브 블록인 경우(S913에서 Yes), 상기 부호화된 서브 블록이 속한 블록이 쿼드 트리 분할에 의해 생성된 블록들 중 마지막 블록인지 여부가 판단될 수 있다(S915). 마지막 블록인 경우(S915에서 Yes), 단계 S901에 입력된 최대 블록 또는 현재 영상에 대한 부호화를 종료할 수 있다. 마지막 블록이 아닌 경우(S915에서 No), 쿼드 트리 분할에 의해 생성된 다음 블록이 특정되어, 단계 S901에 현재 블록으로서 입력될 수 있다(S916).If the coded subblock in step S912 is the last subblock generated by binary tree splitting (Yes in step S913), whether the block to which the coded subblock belongs is the last block among blocks generated by quad tree splitting is determined. It can be judged (S915). In the case of the last block (Yes in S915), encoding of the largest block input in step S901 or the current image can be ended. If it is not the last block (No in S915), the next block generated by quad tree splitting can be specified and input as the current block in step S901 (S916).

도 10은 본 발명에 따른 복호화기에서의 동작을 설명하기 위한 도면이다.10 is a diagram for explaining the operation of a decoder according to the present invention.

복호화기는 입력된 현재 블록의 제1 분할 정보를 복호화할 수 있다(S1001). 현재 블록이 쿼드 트리 분할되는 경우(S1002에서 Yes), 현재 블록은 4개의 블록으로 쿼드 트리 분할될 수 있다(S1003). 쿼드 트리 분할에 의해 생성된 4개의 블록의 각각은 소정의 순서에 따라 단계 S1001에 다시 입력될 수 있다(S1004, S1016). 상기 소정의 순서는 Z-스캔 순서일 수 있다. 단계 S1004에서, 상기 4개의 블록 중 상기 소정의 순서에 따른 첫번째 블록이 특정되어, 단계 S1001에 현재 블록으로서 입력될 수 있다.The decoder may decode the input first partition information of the current block (S1001). If the current block is quad-tree partitioned (Yes in S1002), the current block may be quad-tree partitioned into four blocks (S1003). Each of the four blocks generated by quad tree splitting may be input again to step S1001 according to a predetermined order (S1004 and S1016). The predetermined order may be a Z-scan order. In step S1004, the first block according to the predetermined order among the four blocks may be specified and input to step S1001 as the current block.

현재 블록이 쿼드 트리 분할되지 않는 경우(S1002에서 No), 복호화기는 현재 블록의 제2 분할 정보를 복호화할 수 있다(S1005). 현재 블록이 이진 트리 분할되는 경우(S1006에서 Yes), 복호화기는 분할 방향 정보를 복호화할 수 있다(S1007). 현재 블록이 가로 분할되는 경우(S1008에서 Yes), 현재 블록에 대한 가로 방향의 분할이 수행될 수 있다(S1009). 그렇지 않은 경우(S1008에서 No), 현재 블록에 대한 세로 방향의 분할이 수행될 수 있다(S1010). 현재 블록에 대한 이진 트리 분할이 비대칭 분할인 경우, 분할 형태 정보가 더 복호화될 수 있다. 이 경우, 단계 S1009 및 S1010는 분할 형태 정보를 고려하여 수행될 수 있다. 이진 트리 분할에 의해 생성된 2개의 서브 블록의 각각은 소정의 순서에 따라 단계 S1005에 다시 입력될 수 있다(S1011, S1014). 상기 소정의 순서는 좌측에서 우측, 또는 상단에서 하단일 수 있다. 단계 S1011에서, 상기 2개의 서브 블록 중 상기 소정의 순서에 따른 첫번째 서브 블록이 특정되어, 단계 S1005에 현재 블록으로서 입력될 수 있다. 이진 트리 분할에 의해 생성된 서브 블록에 대해 다시 쿼드 트리 분할이 허용되는 경우라면, 이진 트리 분할에 의해 생성된 2개의 블록의 각각은 소정의 순서에 따라 단계 S1001로 입력될 수도 있다.If the current block is not quad-tree split (No in S1002), the decoder can decode second partition information of the current block (S1005). If the current block is binary tree split (Yes in S1006), the decoder can decode splitting direction information (S1007). When the current block is horizontally divided (Yes in S1008), horizontal division of the current block may be performed (S1009). Otherwise (No in S1008), vertical division of the current block may be performed (S1010). When the binary tree partitioning of the current block is an asymmetric partitioning, partitioning type information may be further decoded. In this case, steps S1009 and S1010 may be performed in consideration of division type information. Each of the two sub-blocks generated by binary tree splitting may be input again to step S1005 according to a predetermined order (S1011 and S1014). The predetermined order may be left to right or top to bottom. In step S1011, a first sub-block according to the predetermined order among the two sub-blocks may be specified and input as a current block in step S1005. If quad-tree splitting is allowed again for sub-blocks generated by binary tree splitting, each of the two blocks generated by binary tree splitting may be input to step S1001 according to a predetermined order.

현재 블록이 이진 트리 분할되지 않는 경우(S1006에서 No), 현재 블록 또는 현재 서브 블록에 대한 복호화가 수행될 수 있다(S1012). 단계 S1012의 복호화는 예측, 역양자화, 역변환 등을 포함할 수 있다.If the current block is not binary tree partitioned (No in S1006), decoding of the current block or current sub-block may be performed (S1012). Decoding in step S1012 may include prediction, inverse quantization, inverse transformation, and the like.

단계 S1012에서 복호화된 서브 블록이 이진 트리 분할에 의해 생성된 마지막 서브 블록이 아닌 경우(S1013에서 No), 이진 트리 분할에 의해 생성된 다음 서브 블록이 특정되어, 단계 S1005에 현재 블록으로서 입력될 수 있다(S1014).If the subblock decoded in step S1012 is not the last subblock generated by binary tree splitting (No in S1013), the next subblock generated by binary tree splitting can be specified and input as the current block in step S1005. Yes (S1014).

단계 S1012에서 복호화된 서브 블록이 이진 트리 분할에 의해 생성된 마지막 서브 블록인 경우(S1013에서 Yes), 상기 복호화된 서브 블록이 속한 블록이 쿼드 트리 분할에 의해 생성된 블록들 중 마지막 블록인지 여부가 판단될 수 있다(S1015). 마지막 블록인 경우(S1015에서 Yes), 단계 S1001에 입력된 최대 블록 또는 현재 영상에 대한 복호화를 종료할 수 있다. 마지막 블록이 아닌 경우(S1015에서 No), 쿼드 트리 분할에 의해 생성된 다음 블록이 특정되어, 단계 S1001에 현재 블록으로서 입력될 수 있다(S1016).If the subblock decoded in step S1012 is the last subblock generated by binary tree splitting (Yes in step S1013), whether the block to which the decoded subblock belongs is the last block among blocks generated by quadtree splitting is checked. It can be determined (S1015). In the case of the last block (Yes in S1015), decoding of the largest block input in step S1001 or the current image may be terminated. If it is not the last block (No in S1015), the next block generated by quad tree splitting can be specified and input as the current block in step S1001 (S1016).

도 11은 현재 영상의 크기가 최대 블록의 크기의 배수가 아닌 경우를 예시적으로 도시한 도면이다. 11 is a diagram exemplarily illustrating a case in which the size of a current image is not a multiple of the size of a maximum block.

도 11에 도시된 바와 같이, 현재 영상을 복수의 최대 블록으로 분할하는 경우, 현재 영상의 우측 또는 하단에는 최대 블록 크기의 일부에 해당하는 영역이 남게 된다. 즉, 최대 블록 2, 최대 블록 5, 최대 블록 6, 최대 블록 7 또는 최대 블록 8의 경우, 일부 영역에 대해서만 현재 영상의 화소가 존재한다.As shown in FIG. 11 , when the current image is divided into a plurality of maximum blocks, an area corresponding to a part of the maximum block size remains on the right side or bottom of the current image. That is, in the case of maximum block 2, maximum block 5, maximum block 6, maximum block 7, or maximum block 8, pixels of the current image exist only in some regions.

이하에서는, 도 11에 도시된 바와 같은 현재 영상을 효율적으로 분할하기 위한 본 발명에 따른 영상 분할 방법을 설명한다.Hereinafter, an image division method according to the present invention for efficiently dividing a current image as shown in FIG. 11 will be described.

도 12a 내지 도 12e는 본 발명에 일 실시예 따른 영상 분할 방법을 설명하기 위한 예시도이다. 이하에서는, 도 12a 내지 도 12e를 참조하여, 도 11의 최대 블록 2의 분할 방법 및/또는 분할 정보의 부호화에 대해 설명한다. 도 12a 내지 도 12e를 참조한 이하의 설명에서, 현재 영상의 크기는 146x146, 최대 블록의 크기는 64x64, 쿼드 트리 분할될 수 있는 블록의 최소 크기는 16x16, 서브 블록의 최소 크기는 2x2인 것으로 가정한다.12A to 12E are exemplary diagrams for explaining an image segmentation method according to an embodiment of the present invention. Hereinafter, a method for dividing the largest block 2 in FIG. 11 and/or encoding of division information will be described with reference to FIGS. 12A to 12E. In the following description with reference to FIGS. 12A to 12E, it is assumed that the size of the current image is 146x146, the size of the largest block is 64x64, the minimum size of a block that can be divided into a quad tree is 16x16, and the minimum size of a sub-block is 2x2. .

도 12a는 최대 블록 2를 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 최대 블록 2는 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 12a에 도시된 바와 같이, 최대 블록 2의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 또한, 최대 블록 2의 크기는 64x64로서, 쿼드 트리 분할이 가능한 크기이다. 이 경우, 최대 블록 2는 쿼드 트리 분할될 수 있다(S903). 즉, 최대 블록 2에 대한 단계 S901은 생략될 수 있다. 그 후, 최대 블록 2를 쿼드 트리 분할하여 생성된 4개의 블록들(A0, A1, A2 및 A3) 중 첫번째 블록인 블록 A0에 대한 분할 및 부호화가 수행될 수 있다. 블록 A1과 블록 A3은 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 부호화가 생략될 수 있다. 블록 A2는 블록 A0과 마찬가지로 본 발명에 따라 분할 및 부호화될 수 있다.12A is an enlarged view of the largest block 2, and a portion surrounded by a thick line is an area within the current image. The maximum block 2 may be a block to be divided as described with reference to FIG. 9 . As shown in FIG. 12A, the rightmost position and the lowest position of the largest block 2 are not completely included in the region of the current image. In addition, the maximum size of block 2 is 64x64, which is a size capable of quad tree partitioning. In this case, the maximum block 2 may be quad-tree partitioned (S903). That is, step S901 for the largest block 2 can be omitted. Thereafter, segmentation and encoding may be performed on block A0, which is the first block among four blocks (A0, A1, A2, and A3) generated by quad tree splitting block 2 at the maximum. Block A1 and block A3 are not completely included in the region of the current video, and thus segmentation and encoding may be omitted. Block A2, like block A0, can be segmented and coded according to the present invention.

도 12b는 도 12a의 블록 A0을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 A0은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 12b에 도시된 바와 같이, 블록 A0의 최우측 위치(B1)와 최하단 위치(B3)는 현재 영상의 영역에 완전히 포함되지 않는다. 또한, 블록 A0의 크기는 32x32로서, 쿼드 트리 분할이 가능한 크기이다. 이 경우, 블록 A0은 쿼드 트리 분할될 수 있다(S903). 즉, 블록 A0에 대한 단계 S901은 생략될 수 있다. 그 후, 블록 A0을 쿼드 트리 분할하여 생성된 4개의 블록들(B0, B1, B2 및 B3) 중 첫번째 블록인 블록 B0에 대한 분할 및 부호화가 수행될 수 있다. 블록 B0는 도 9를 참조하여 설명한 방법으로 분할 및 부호화될 수 있다. 즉, 블록 B0는 쿼드 트리 분할 및/또는 이진 트리 분할에 의해 분할되거나 또는 분할되지 않고 부호화될 수 있다. 블록 B2는 블록 B0과 마찬가지로 본 발명에 따라 분할 및 부호화될 수 있다. 블록 B1과 블록 B3은 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 부호화가 생략될 수 있다. 블록 B2는 블록 B0과 동일한 방법으로 분할 및 부호화될 수 있다. 즉, 블록 B0과 블록 B2에 대해서는 단계 S901을 생략할 수 없다. 그러나, 블록 B1과 B3에 대해서는 후술하는 바와 같이, 단계 S901을 생략할 수 있다.FIG. 12B is an enlarged block A0 of FIG. 12A, and a portion surrounded by a thick line is an area within the current image. Block A0 may be a partition target block described with reference to FIG. 9 . As shown in FIG. 12B, the rightmost position (B1) and the lowest position (B3) of block A0 are not completely included in the area of the current image. Also, the size of block A0 is 32x32, which is a size capable of partitioning a quad tree. In this case, block A0 may be quad-tree partitioned (S903). That is, step S901 for block A0 may be omitted. Thereafter, segmentation and encoding may be performed on block B0, which is the first block among four blocks (B0, B1, B2, and B3) generated by quad tree partitioning of block A0. Block B0 may be divided and coded using the method described with reference to FIG. 9 . That is, the block B0 may be coded with or without splitting by quad tree splitting and/or binary tree splitting. Block B2, like block B0, can be segmented and coded according to the present invention. Block B1 and block B3 are not completely included in the region of the current video, and thus segmentation and encoding may be omitted. Block B2 can be divided and coded in the same way as block B0. That is, step S901 cannot be omitted for blocks B0 and B2. However, for blocks B1 and B3, as will be described later, step S901 can be omitted.

도 12c는 도 12b의 블록 B1을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 B1은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 12c에 도시된 바와 같이, 블록 B1의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 또한, 블록 B1의 크기는 16x16으로서, 쿼드 트리 분할이 불가능한 크기이다. 이 경우, 블록 B1은 쿼드 트리 분할될 수 없고, 이진 트리 분할될 수 있다. 또한, 부호화 대상 블록은 세로로 긴 직사각형이므로, 분할 방향은 세로 방향으로 결정될 수 있다. 따라서, 블록 B1에 대해서는 단계 S901 내지 S907이 생략될 수 있고, 부호화 대상 블록의 형상에 따라 단계 S909 또는 S910의 이진 트리 분할이 수행될 수 있다. 그 후, 블록 B1을 이진 트리 분할하여 생성된 2개의 블록들(C1 및 C2) 중 첫번째 블록인 블록 C1에 대한 분할 및 부호화가 수행될 수 있다. 블록 C2는 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 부호화가 생략될 수 있다. FIG. 12C is an enlarged view of block B1 of FIG. 12B, and a portion surrounded by a thick line is an area within the current image. Block B1 may be a partition target block described with reference to FIG. 9 . As shown in FIG. 12C, the rightmost position and the lowest position of block B1 are not completely included in the area of the current image. In addition, the size of block B1 is 16x16, which is a size in which quad tree partitioning is impossible. In this case, block B1 cannot be quad-tree partitioned, but can be binary-tree partitioned. Also, since the encoding target block is a vertically long rectangle, the division direction may be determined in the vertical direction. Therefore, steps S901 to S907 may be omitted for the block B1, and binary tree splitting in step S909 or S910 may be performed according to the shape of the encoding target block. Thereafter, segmentation and encoding may be performed on block C1, which is a first block among two blocks C1 and C2 generated by binary tree partitioning of block B1. Since block C2 is not completely included in the region of the current video, segmentation and encoding may be omitted.

도 12d는 도 12c의 블록 C1을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 C1은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 12d에 도시된 바와 같이, 블록 C1의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 또한, 블록 C1의 상위 블록인 B1에 대해 이진 트리 분할이 적용되었으므로, 블록 C1도 이진 트리 분할될 수 있다. 또한, 부호화 대상 블록은 세로로 긴 직사각형이므로, 분할 방향은 세로 방향으로 결정될 수 있다. 따라서, 블록 C1에 대해서는 단계 S905 내지 S907이 생략될 수 있고, 부호화 대상 블록의 형상에 따라 단계 S909 또는 S910의 이진 트리 분할이 수행될 수 있다. 그 후, 블록 C1을 이진 트리 분할하여 생성된 2개의 블록들(D1 및 D2) 중 첫번째 블록인 블록 D1에 대한 분할 및 부호화가 수행될 수 있다. 블록 D2는 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 부호화가 생략될 수 있다. FIG. 12D is an enlarged view of block C1 of FIG. 12C , and a portion surrounded by a thick line is an area within the current image. Block C1 may be a division target block described with reference to FIG. 9 . As shown in FIG. 12D, the rightmost position and the lowest position of block C1 are not completely included in the area of the current image. In addition, since binary tree splitting is applied to block B1, which is an upper block of block C1, block C1 may also be binary tree split. Also, since the encoding target block is a vertically long rectangle, the division direction may be determined in the vertical direction. Accordingly, for the block C1, steps S905 to S907 may be omitted, and binary tree splitting of step S909 or S910 may be performed according to the shape of the encoding target block. Thereafter, segmentation and encoding may be performed on block D1, which is a first block among two blocks D1 and D2 generated by binary tree partitioning of block C1. Since the block D2 is not completely included in the region of the current image, segmentation and encoding may be omitted.

도 12e 는 도 12d의 블록 D1을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 D1은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 12e에 도시된 바와 같이, 블록 D1의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 또한, 블록 D1의 상위 블록인 C1에 대해 이진 트리 분할이 적용되었으므로, 블록 D1도 이진 트리 분할될 수 있다. 또한, 부호화 대상 블록은 세로로 긴 직사각형이므로, 분할 방향은 세로 방향으로 결정될 수 있다. 따라서, 블록 D1에 대해서는 단계 S905 내지 S907이 생략될 수 있고, 부호화 대상 블록의 형상에 따라 단계 S909 또는 S910의 이진 트리 분할이 수행될 수 있다. 그 후, 블록 D1을 이진 트리 분할하여 생성된 2개의 블록들(E1 및 E2) 중 첫번째 블록인 블록 E1에 대한 분할 및 부호화가 수행될 수 있다. 블록 E1의 가로의 크기는 서브 블록의 최소 크기로 가정한 2와 동일하다. 따라서, 블록 E1에 대해서는 세로 분할이 수행될 수 없다. 즉, 블록 E1은 분할되지 않고 부호화되거나, 가로 분할된 후 부호화될 수 있다. 이 경우, 블록 E1에 대해서는 분할 여부에 관한 정보만 시그널링될 수 있다. 블록 E2는 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 부호화가 생략될 수 있다. FIG. 12E is an enlarged view of block D1 of FIG. 12D, and a portion surrounded by a thick line is an area within the current image. Block D1 may be a partition target block described with reference to FIG. 9 . As shown in FIG. 12E, the rightmost position and the lowest position of block D1 are not completely included in the area of the current image. Also, since binary tree splitting is applied to block C1, which is an upper block of block D1, block D1 may also be binary tree split. Also, since the encoding target block is a vertically long rectangle, the division direction may be determined in the vertical direction. Accordingly, for the block D1, steps S905 to S907 may be omitted, and binary tree splitting of step S909 or S910 may be performed according to the shape of the encoding target block. Thereafter, segmentation and encoding may be performed on block E1, which is a first block among two blocks E1 and E2 generated by binary tree partitioning of block D1. The horizontal size of block E1 is equal to 2, which is assumed to be the minimum size of a sub-block. Therefore, vertical division cannot be performed on the block E1. That is, the block E1 may be encoded without being split or encoded after being horizontally split. In this case, only information on whether to divide block E1 may be signaled. Since block E2 is not completely included in the region of the current video, segmentation and encoding may be omitted.

도 11에 도시된 최대 블록 2와 최대 블록 5의 분할 정보 생략 방식은 동일할 수 있다. 또한, 최대 블록 6과 최대 블록 7의 분할 정보 생략 방식은 최대 블록 2와 최대 블록 5의 분할 정보 생략 방식과 가로인지 세로인지의 방향에 대한 차이만 있을 뿐 나머지는 동일할 수 있다. 최대 블록 8에 대해서는 가로 혹은 세로로 기설정된 기준을 이용하여 다른 최대 블록과 동일한 방식으로 분할 정보 생략을 수행할 수 있다.The partition information omitting method of the largest block 2 and the largest block 5 shown in FIG. 11 may be the same. In addition, the method for omitting partition information of the largest block 6 and the largest block 7 may be the same as the method of omitting partition information of the largest block 2 and maximum block 5 except for the horizontal or vertical direction. For the largest block 8, division information omission may be performed in the same manner as for other largest blocks by using a horizontally or vertically preset criterion.

이하에서는, 도 12a 내지 도 12e를 참조하여, 도 11의 최대 블록 2의 분할 방법 및/또는 분할 정보의 복호화에 대해 설명한다. Hereinafter, with reference to FIGS. 12A to 12E , a method for dividing the largest block 2 in FIG. 11 and/or decoding of division information will be described.

도 12a는 최대 블록 2를 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 최대 블록 2는 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 12a에 도시된 바와 같이, 최대 블록 2의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 또한, 최대 블록 2의 크기는 64x64로서, 쿼드 트리 분할이 가능한 크기이다. 이 경우, 최대 블록 2는 쿼드 트리 분할될 수 있다(S1003). 즉, 최대 블록 2에 대한 단계 S1001은 생략될 수 있다. 그 후, 최대 블록 2를 쿼드 트리 분할하여 생성된 4개의 블록들(A0, A1, A2 및 A3) 중 첫번째 블록인 블록 A0에 대한 분할 및 복호화가 수행될 수 있다. 블록 A1과 블록 A3은 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 복호화가 생략될 수 있다. 블록 A2는 블록 A0과 마찬가지로 본 발명에 따라 분할 및 복호화될 수 있다.12A is an enlarged view of the largest block 2, and a portion surrounded by a thick line is an area within the current image. The maximum block 2 may be a block to be divided as described with reference to FIG. 9 . As shown in FIG. 12A, the rightmost position and the lowest position of the largest block 2 are not completely included in the region of the current image. In addition, the maximum size of block 2 is 64x64, which is a size capable of quad tree partitioning. In this case, the maximum block 2 may be quad-tree partitioned (S1003). That is, step S1001 for the largest block 2 can be omitted. Thereafter, partitioning and decoding may be performed on block A0, which is the first block among four blocks (A0, A1, A2, and A3) generated by quad tree splitting block 2 at the maximum. Block A1 and block A3 are not completely included in the region of the current video, and thus segmentation and decoding may be omitted. Block A2 can be segmented and decoded according to the present invention like block A0.

도 12b는 도 12a의 블록 A0을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 A0은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 12b에 도시된 바와 같이, 블록 A0의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 또한, 블록 A0의 크기는 32x32로서, 쿼드 트리 분할이 가능한 크기이다. 이 경우, 블록 A0은 쿼드 트리 분할될 수 있다(S1003). 즉, 블록 A0에 대한 단계 S1001은 생략될 수 있다. 그 후, 블록 A0을 쿼드 트리 분할하여 생성된 4개의 블록들(B0, B1, B2 및 B3) 중 첫번째 블록인 블록 B0에 대한 분할 및 복호화가 수행될 수 있다. 블록 B0는 도 9를 참조하여 설명한 방법으로 분할 및 복호화될 수 있다. 즉, 블록 B0는 쿼드 트리 분할 및/또는 이진 트리 분할에 의해 분할되거나 또는 분할되지 않고 복호화될 수 있다. 블록 B2는 블록 B0과 마찬가지로 본 발명에 따라 분할 및 복호화될 수 있다. 블록 B1과 블록 B3은 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 복호화가 생략될 수 있다. 블록 B2는 블록 B0과 동일한 방법으로 분할 및 복호화될 수 있다. 즉, 블록 B0과 블록 B2에 대해서는 단계 S1001을 생략할 수 없다. 그러나, 블록 B1과 B3에 대해서는 후술하는 바와 같이, 단계 S1001을 생략할 수 있다.FIG. 12B is an enlarged block A0 of FIG. 12A, and a portion surrounded by a thick line is an area within the current image. Block A0 may be a partition target block described with reference to FIG. 9 . As shown in FIG. 12B, the rightmost position and the lowest position of block A0 are not completely included in the area of the current video. Also, the size of block A0 is 32x32, which is a size capable of partitioning a quad tree. In this case, block A0 may be quad-tree partitioned (S1003). That is, step S1001 for block A0 may be omitted. Thereafter, partitioning and decoding may be performed on block B0, which is the first block among four blocks (B0, B1, B2, and B3) generated by quad tree partitioning of block A0. Block B0 may be divided and decoded using the method described with reference to FIG. 9 . That is, the block B0 may be decoded with or without splitting by quad tree splitting and/or binary tree splitting. Block B2 can be segmented and decoded according to the present invention as well as block B0. Block B1 and block B3 are not completely included in the region of the current video, and thus segmentation and decoding may be omitted. Block B2 can be divided and decoded in the same way as block B0. That is, step S1001 cannot be omitted for block B0 and block B2. However, for blocks B1 and B3, as will be described later, step S1001 can be omitted.

도 12c는 도 12b의 블록 B1을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 B1은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 12c에 도시된 바와 같이, 블록 B1의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 또한, 블록 B1의 크기는 16x16으로서, 쿼드 트리 분할이 불가능한 크기이다. 이 경우, 블록 B1은 쿼드 트리 분할될 수 없고, 이진 트리 분할될 수 있다. 또한, 복호화 대상 블록은 세로로 긴 직사각형이므로, 분할 방향은 세로 방향으로 결정될 수 있다. 따라서, 블록 B1에 대해서는 단계 S1001 내지 S1007이 생략될 수 있고, 복호화 대상 블록의 형상에 따라 단계 S1009 또는 S1010의 이진 트리 분할이 수행될 수 있다. 그 후, 블록 B1을 이진 트리 분할하여 생성된 2개의 블록들(C1 및 C2) 중 첫번째 블록인 블록 C1에 대한 분할 및 복호화가 수행될 수 있다. 블록 C2는 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 복호화가 생략될 수 있다. FIG. 12C is an enlarged view of block B1 of FIG. 12B, and a portion surrounded by a thick line is an area within the current image. Block B1 may be a partition target block described with reference to FIG. 9 . As shown in FIG. 12C, the rightmost position and the lowest position of block B1 are not completely included in the area of the current image. In addition, the size of block B1 is 16x16, which is a size in which quad tree partitioning is impossible. In this case, block B1 cannot be quad-tree partitioned, but can be binary-tree partitioned. Also, since the decoding object block is a vertically long rectangle, the division direction may be determined in the vertical direction. Therefore, steps S1001 to S1007 may be omitted for block B1, and binary tree splitting of step S1009 or S1010 may be performed according to the shape of the block to be decoded. Thereafter, partitioning and decoding may be performed on block C1, which is the first block among two blocks C1 and C2 generated by binary tree partitioning of block B1. Since block C2 is not completely included in the region of the current video, segmentation and decoding may be omitted.

도 12d는 도 12c의 블록 C1을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 C1은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 12d에 도시된 바와 같이, 블록 C1의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 또한, 블록 C1의 상위 블록인 B1에 대해 이진 트리 분할이 적용되었으므로, 블록 C1도 이진 트리 분할될 수 있다. 또한, 복호화 대상 블록은 세로로 긴 직사각형이므로, 분할 방향은 세로 방향으로 결정될 수 있다. 따라서, 블록 C1에 대해서는 단계 S1005 내지 S1007이 생략될 수 있고, 복호화 대상 블록의 형상에 따라 단계 S1009 또는 S1010의 이진 트리 분할이 수행될 수 있다. 그 후, 블록 C1을 이진 트리 분할하여 생성된 2개의 블록들(D1 및 D2) 중 첫번째 블록인 블록 D1에 대한 분할 및 복호화가 수행될 수 있다. 블록 D2는 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 복호화가 생략될 수 있다. FIG. 12D is an enlarged view of block C1 of FIG. 12C , and a portion surrounded by a thick line is an area within the current image. Block C1 may be a division target block described with reference to FIG. 9 . As shown in FIG. 12D, the rightmost position and the lowest position of block C1 are not completely included in the area of the current image. In addition, since binary tree splitting is applied to block B1, which is an upper block of block C1, block C1 may also be binary tree split. Also, since the decoding object block is a vertically long rectangle, the division direction may be determined in the vertical direction. Therefore, steps S1005 to S1007 may be omitted for the block C1, and binary tree splitting of step S1009 or S1010 may be performed according to the shape of the block to be decoded. Thereafter, partitioning and decoding may be performed on block D1, which is the first block among two blocks D1 and D2 generated by binary tree partitioning of block C1. Since block D2 is not completely included in the region of the current video, segmentation and decoding may be omitted.

도 12e는 도 12d의 블록 D1을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 D1은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 12e에 도시된 바와 같이, 블록 D1의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 또한, 블록 D1의 상위 블록인 C1에 대해 이진 트리 분할이 적용되었으므로, 블록 D1도 이진 트리 분할될 수 있다. 또한, 복호화 대상 블록은 세로로 긴 직사각형이므로, 분할 방향은 세로 방향으로 결정될 수 있다. 따라서, 블록 D1에 대해서는 단계 S1005 내지 S1007이 생략될 수 있고, 복호화 대상 블록의 형상에 따라 단계 S1009 또는 S1010의 이진 트리 분할이 수행될 수 있다. 그 후, 블록 D1을 이진 트리 분할하여 생성된 2개의 블록들(E1 및 E2) 중 첫번째 블록인 블록 E1에 대한 분할 및 복호화가 수행될 수 있다. 블록 E1의 가로의 크기는 서브 블록의 최소 크기로 가정한 2와 동일하다. 따라서, 블록 E1에 대해서는 세로 분할이 수행될 수 없다. 즉, 블록 E1은 분할되지 않고 복호화되거나, 가로 분할된 후 복호화될 수 있다. 이 경우, 블록 E1에 대해서는 분할 여부에 관한 정보만 시그널링될 수 있다. 블록 E2는 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 복호화가 생략될 수 있다. FIG. 12E is an enlarged view of block D1 of FIG. 12D , and a portion surrounded by a thick line is an area within the current image. Block D1 may be a partition target block described with reference to FIG. 9 . As shown in FIG. 12E, the rightmost position and the lowest position of block D1 are not completely included in the area of the current image. Also, since binary tree splitting is applied to block C1, which is an upper block of block D1, block D1 may also be binary tree split. Also, since the decoding object block is a vertically long rectangle, the division direction may be determined in the vertical direction. Accordingly, for the block D1, steps S1005 to S1007 may be omitted, and binary tree splitting of step S1009 or S1010 may be performed according to the shape of the block to be decoded. Thereafter, partitioning and decoding may be performed on block E1, which is a first block among two blocks E1 and E2 generated by binary tree partitioning of block D1. The horizontal size of block E1 is equal to 2, which is assumed to be the minimum size of a sub-block. Therefore, vertical division cannot be performed on the block E1. That is, the block E1 may be decoded without being split or decoded after being horizontally split. In this case, only information on whether to divide block E1 may be signaled. Since the block E2 is not completely included in the region of the current video, segmentation and decoding may be omitted.

도 12를 참조하여 설명한 실시예에서, 분할 대상 블록에 대해 쿼드 트리 분할이 수행되다가 소정 조건이 만족되면 이진 트리 분할이 수행될 수 있다. 상기 실시예에서는 분할 대상 블록의 크기가 쿼드 트리 분할이 가능한 크기인지의 여부가 상기 소정 조건에 해당한다. 상기 소정 조건은 쿼드 트리 분할이 가능한 블록과 이진 트리 분할이 가능한 블록의 최소 크기 및/또는 임계값을 이용하여 설정될 수도 있다. In the embodiment described with reference to FIG. 12 , binary tree splitting may be performed when a predetermined condition is satisfied after quad tree splitting is performed on a split target block. In the above embodiment, whether or not the size of the block to be split is a size capable of splitting a quad tree corresponds to the predetermined condition. The predetermined condition may be set using a minimum size and/or threshold of a block capable of quad tree splitting and a block capable of binary tree splitting.

임계값이 이용되는 경우, 분할 대상 블록 중 현재 영상에 완전히 포함되지 않는 영역(이하, “남은 영역”이라 함)의 크기와 임계값을 비교한 결과에 기초하여 쿼드 트리 분할과 이진 트리 분할 중 하나를 수행할 수 있다. 이하의 설명에서, 상기 임계값은 32라고 가정한다. When a threshold value is used, one of quad tree division and binary tree division based on the result of comparing the threshold value with the size of a region not completely included in the current image (hereinafter referred to as “remaining region”) among blocks to be divided. can be performed. In the following description, it is assumed that the threshold value is 32.

예를 들어, 도 12a에서 부호화 대상 블록의 크기는 18x64이며, 남은 영역의 크기는 46x64이다. 남은 영역이 세로로 긴 직사각형이기 때문에, 남은 영역의 가로 길이와 임계값을 비교할 수 있다. 남은 영역의 가로 길이는 46이고, 이는 상기 임계값 32보다 크기 때문에 64x64 분할 대상 블록에 대해 쿼드 트리 분할을 수행할 수 있다. 도 12b에서는 남은 영역의 가로 길이가 14이고, 이는 상기 임계값 32보다 작기 때문에, 32x32 분할 대상 블록에 대해 이진 트리 분할을 수행할 수 있다. 즉, 분할 대상 블록의 크기가 쿼드 트리 분할이 가능한 크기라고 하더라도, 상기 조건에 따라 쿼드 트리 분할 대신 이진 트리 분할이 수행될 수 있다. 이 때, 이진 트리 분할의 분할 방향은 18x32 부호화 대상 블록의 가로와 세로 중, 작은 쪽을 기준으로 한다. 따라서, 도 12b의 블록 A0은 두 개의 세로로 긴 16x32 블록으로 분할될 수 있다. 이 후, 블록의 크기가 이진 트리 분할이 가능하지 않을 때까지 세로 방향의 이진 트리 분할을 반복적으로 수행할 수 있다.For example, in FIG. 12A, the size of the encoding target block is 18x64, and the size of the remaining area is 46x64. Since the remaining area is a vertically long rectangle, the horizontal length of the remaining area and the threshold can be compared. Since the horizontal length of the remaining region is 46, which is greater than the threshold value of 32, quad tree partitioning can be performed on a 64x64 partitioning target block. In FIG. 12B, since the horizontal length of the remaining area is 14, which is smaller than the threshold value of 32, binary tree splitting can be performed on the 32x32 split target block. That is, even if the size of the block to be split is such that quad tree splitting is possible, binary tree splitting may be performed instead of quad tree splitting according to the above condition. At this time, the splitting direction of the binary tree splitting is based on the smaller one of the horizontal and vertical sides of the 18x32 encoding target block. Thus, block A0 of FIG. 12B can be divided into two vertically long 16x32 blocks. Thereafter, binary tree partitioning in the vertical direction may be repeatedly performed until the block size is such that binary tree partitioning is not possible.

상기 임계값은 전술한 블록의 상위 레벨의 헤더를 통해 시그널링될 수 있다. 상기 임계값은 쿼드 트리 분할이 가능한 블록의 최대 크기와 최소 크기 사이의 값이어야 한다. 또한, 상기 임계값은 이진 트리 분할이 가능한 블록의 최대 크기보다는 작게 설정될 수 있다. 상기 임계값이 이진 트리 분할이 가능한 블록의 최대 크기보다 크게 설정된 경우, 상기 임계값은 이진 트리 분할이 가능한 블록의 최대 크기로 변경 설정될 수 있다.The threshold value may be signaled through a higher-level header of the aforementioned block. The threshold value must be a value between the maximum size and minimum size of a block capable of quad tree splitting. Also, the threshold value may be set smaller than the maximum size of a block capable of binary tree partitioning. When the threshold value is set to be greater than the maximum size of a block capable of binary tree partitioning, the threshold value may be changed to the maximum size of a block capable of binary tree partitioning.

도 13a 내지 도 13e는 본 발명에 다른 실시예 따른 영상 분할 방법을 설명하기 위한 예시도이다.13A to 13E are exemplary diagrams for explaining an image segmentation method according to another embodiment of the present invention.

도 13a는 최대 블록 2를 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 최대 블록 2는 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 13a에 도시된 바와 같이, 최대 블록 2의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 이 경우, 남은 영역의 형태에 기초하여 블록 분할 방식을 선택할 수 있다. 도 13a에서 남은 영역은 세로로 긴 46x64 블록이므로, 최대 블록 2에 대해 세로 방향의 이진 트리 분할을 수행할 수 있다. 즉, 최대 블록 2에 대한 단계 S901 내지 S907이 생략될 수 있고, 남은 영역의 형태에 따라 단계 S909 또는 S910이 수행될 수 있다.13A is an enlarged view of the largest block 2, and a portion surrounded by a thick line is an area within the current image. The maximum block 2 may be a block to be divided as described with reference to FIG. 9 . As shown in FIG. 13A, the rightmost position and the lowest position of the largest block 2 are not completely included in the region of the current image. In this case, a block division method may be selected based on the shape of the remaining area. Since the remaining area in FIG. 13A is a vertically long 46x64 block, binary tree partitioning in the vertical direction can be performed for the maximum block 2. That is, steps S901 to S907 for block 2 may be omitted, and steps S909 or S910 may be performed according to the shape of the remaining area.

도 13b는 도 13a의 블록 A0을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 A0은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 13b에 도시된 바와 같이, 블록 A0의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 이 경우, 남은 영역의 형태에 기초하여 블록 분할 방식을 선택할 수 있다. 도 13b에서 남은 영역은 세로로 긴 14x64 블록이므로, 블록 A0에 대해 세로 방향의 이진 트리 분할을 수행할 수 있다. 블록 B0는 현재 영상 영역 내의 블록이므로 서브 블록 분할을 이용하여 부호화될 수 있다. 블록 B0에 대해서는 단계 S905 내지 S908이 생략될 수 없다.FIG. 13B is an enlarged view of block A0 of FIG. 13A, and a portion surrounded by a thick line is an area within the current image. Block A0 may be a partition target block described with reference to FIG. 9 . As shown in FIG. 13B, the rightmost position and the lowest position of block A0 are not completely included in the area of the current video. In this case, a block division method may be selected based on the shape of the remaining area. Since the remaining area in FIG. 13B is a vertically long 14x64 block, binary tree partitioning in the vertical direction can be performed on the block A0. Since block B0 is a block within the current video region, it can be coded using sub-block partitioning. Steps S905 to S908 cannot be omitted for block B0.

도 13c는 도 13b의 블록 B1을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 B1은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 13c에 도시된 바와 같이, 블록 B1의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 이 경우, 남은 영역의 형태에 기초하여 블록 분할 방식을 선택할 수 있다. 도 13c에서 남은 영역은 세로로 긴 14x64 블록이므로, 블록 B1에 대해 세로 방향의 이진 트리 분할을 수행할 수 있다. 즉, 블록 B1에 대한 단계 S901 내지 S907이 생략될 수 있고, 남은 영역의 형태에 따라 단계 S909 또는 S910이 수행될 수 있다. 블록 C2는 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 부호화가 생략될 수 있다.FIG. 13C is an enlarged block B1 of FIG. 13B , and a portion surrounded by a thick line is an area within the current image. Block B1 may be a partition target block described with reference to FIG. 9 . As shown in FIG. 13C, the rightmost position and the lowest position of block B1 are not completely included in the area of the current image. In this case, a block division method may be selected based on the shape of the remaining area. Since the remaining area in FIG. 13C is a vertically long 14x64 block, binary tree partitioning in the vertical direction can be performed on block B1. That is, steps S901 to S907 for block B1 may be omitted, and steps S909 or S910 may be performed according to the shape of the remaining area. Since block C2 is not completely included in the region of the current video, segmentation and encoding may be omitted.

도 13d는 도 13c의 블록 C1을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 C1은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 13d에 도시된 바와 같이, 블록 C1의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 이 경우, 남은 영역의 형태에 기초하여 블록 분할 방식을 선택할 수 있다. 도 13c에서 남은 영역은 세로로 긴 6x64 블록이므로, 블록 C1에 대해 세로 방향의 이진 트리 분할을 수행할 수 있다. 즉, 블록 C1에 대한 단계 S901 내지 S907이 생략될 수 있고, 남은 영역의 형태에 따라 단계 S909 또는 S910이 수행될 수 있다. 블록 D2는 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 부호화가 생략될 수 있다.FIG. 13D is an enlarged block C1 of FIG. 13C , and a portion surrounded by a thick line is an area within the current image. Block C1 may be a division target block described with reference to FIG. 9 . As shown in FIG. 13D, the rightmost position and the lowest position of block C1 are not completely included in the area of the current image. In this case, a block division method may be selected based on the shape of the remaining area. Since the remaining area in FIG. 13C is a vertically long 6x64 block, binary tree partitioning in the vertical direction can be performed on block C1. That is, steps S901 to S907 for block C1 may be omitted, and steps S909 or S910 may be performed according to the shape of the remaining area. Since the block D2 is not completely included in the region of the current image, segmentation and encoding may be omitted.

도 13e는 도 13d의 블록 D1을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 D1은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 13e에 도시된 바와 같이, 블록 D1의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 이 경우, 남은 영역의 형태에 기초하여 블록 분할 방식을 선택할 수 있다. 도 13c에서 남은 영역은 세로로 긴 2x64 블록이므로, 블록 D1에 대해 세로 방향의 이진 트리 분할을 수행할 수 있다. 즉, 블록 D1에 대한 단계 S901 내지 S907이 생략될 수 있고, 남은 영역의 형태에 따라 단계 S909 또는 S910이 수행될 수 있다. 블록 E1의 가로의 크기는 서브 블록의 최소 크기로 가정한 2와 동일하다. 따라서, 블록 E1에 대해서는 세로 분할이 수행될 수 없다. 즉, 블록 E1은 분할되지 않고 부호화되거나, 가로 분할된 후 부호화될 수 있다. 이 경우, 블록 E1에 대해서는 분할 여부에 관한 정보만 시그널링될 수 있다. 블록 E2는 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 부호화가 생략될 수 있다. FIG. 13E is an enlarged view of block D1 of FIG. 13D , and a portion surrounded by a thick line is an area within the current image. Block D1 may be a partition target block described with reference to FIG. 9 . As shown in FIG. 13E, the rightmost position and the lowest position of block D1 are not completely included in the area of the current image. In this case, a block division method may be selected based on the shape of the remaining area. Since the remaining area in FIG. 13C is a vertically long 2x64 block, binary tree partitioning in the vertical direction can be performed on the block D1. That is, steps S901 to S907 for the block D1 may be omitted, and steps S909 or S910 may be performed according to the shape of the remaining area. The horizontal size of block E1 is equal to 2, which is assumed to be the minimum size of a sub-block. Therefore, vertical division cannot be performed on the block E1. That is, the block E1 may be encoded without being split or encoded after being horizontally split. In this case, only information on whether to divide block E1 may be signaled. Since block E2 is not completely included in the region of the current video, segmentation and encoding may be omitted.

이하에서는, 도 13a 내지 도 13e를 참조하여, 도 11의 최대 블록 2의 분할 방법 및/또는 분할 정보의 복호화에 대해 설명한다. Hereinafter, with reference to FIGS. 13A to 13E , a method for splitting the largest block 2 in FIG. 11 and/or decoding of split information will be described.

도 13a는 최대 블록 2를 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 최대 블록 2는 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 13a에 도시된 바와 같이, 최대 블록 2의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 이 경우, 남은 영역의 형태에 기초하여 블록 분할 방식을 선택할 수 있다. 도 13a에서 남은 영역은 세로로 긴 46x64 블록이므로, 최대 블록 2에 대해 세로 방향의 이진 트리 분할을 수행할 수 있다. 즉, 최대 블록 2에 대한 단계 S1001 내지 S1007이 생략될 수 있고, 남은 영역의 형태에 따라 단계 S1009 또는 S1010이 수행될 수 있다.13A is an enlarged view of the largest block 2, and a portion surrounded by a thick line is an area within the current image. The maximum block 2 may be a block to be divided as described with reference to FIG. 9 . As shown in FIG. 13A, the rightmost position and the lowest position of the largest block 2 are not completely included in the region of the current image. In this case, a block division method may be selected based on the shape of the remaining area. Since the remaining area in FIG. 13A is a vertically long 46x64 block, binary tree partitioning in the vertical direction can be performed for the maximum block 2. That is, steps S1001 to S1007 for block 2 may be omitted, and steps S1009 or S1010 may be performed according to the shape of the remaining area.

도 13b는 도 13a의 블록 A0을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 A0은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 13b에 도시된 바와 같이, 블록 A0의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 이 경우, 남은 영역의 형태에 기초하여 블록 분할 방식을 선택할 수 있다. 도 13b에서 남은 영역은 세로로 긴 14x64 블록이므로, 블록 A0에 대해 세로 방향의 이진 트리 분할을 수행할 수 있다. 블록 B0는 현재 영상 영역 내의 블록이므로 서브 블록 분할을 이용하여 복호화될 수 있다. 블록 B0에 대해서는 단계 S1005 내지 S1008이 생략될 수 없다.FIG. 13B is an enlarged view of block A0 of FIG. 13A, and a portion surrounded by a thick line is an area within the current image. Block A0 may be a partition target block described with reference to FIG. 9 . As shown in FIG. 13B, the rightmost position and the lowest position of block A0 are not completely included in the area of the current video. In this case, a block division method may be selected based on the shape of the remaining area. Since the remaining area in FIG. 13B is a vertically long 14x64 block, binary tree partitioning in the vertical direction can be performed on the block A0. Since block B0 is a block within the current video region, it can be decoded using sub-block partitioning. Steps S1005 to S1008 cannot be omitted for block B0.

도 13c는 도 13b의 블록 B1을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 B1은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 13c에 도시된 바와 같이, 블록 B1의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 이 경우, 남은 영역의 형태에 기초하여 블록 분할 방식을 선택할 수 있다. 도 13c에서 남은 영역은 세로로 긴 14x64 블록이므로, 블록 B1에 대해 세로 방향의 이진 트리 분할을 수행할 수 있다. 즉, 블록 B1에 대한 단계 S1001 내지 S1007이 생략될 수 있고, 남은 영역의 형태에 따라 단계 S1009 또는 S1010이 수행될 수 있다. 블록 C2는 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 복호화가 생략될 수 있다.FIG. 13C is an enlarged block B1 of FIG. 13B , and a portion surrounded by a thick line is an area within the current image. Block B1 may be a partition target block described with reference to FIG. 9 . As shown in FIG. 13C, the rightmost position and the lowest position of block B1 are not completely included in the area of the current image. In this case, a block division method may be selected based on the shape of the remaining area. Since the remaining area in FIG. 13C is a vertically long 14x64 block, binary tree partitioning in the vertical direction can be performed on block B1. That is, steps S1001 to S1007 for the block B1 may be omitted, and steps S1009 or S1010 may be performed according to the shape of the remaining area. Since block C2 is not completely included in the region of the current video, segmentation and decoding may be omitted.

도 13d는 도 13c의 블록 C1을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 C1은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 13d에 도시된 바와 같이, 블록 C1의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 이 경우, 남은 영역의 형태에 기초하여 블록 분할 방식을 선택할 수 있다. 도 13c에서 남은 영역은 세로로 긴 6x64 블록이므로, 블록 C1에 대해 세로 방향의 이진 트리 분할을 수행할 수 있다. 즉, 블록 C1에 대한 단계 S1001 내지 S1007이 생략될 수 있고, 남은 영역의 형태에 따라 단계 S1009 또는 S1010이 수행될 수 있다. 블록 D2는 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 복호화가 생략될 수 있다.FIG. 13D is an enlarged block C1 of FIG. 13C , and a portion surrounded by a thick line is an area within the current image. Block C1 may be a division target block described with reference to FIG. 9 . As shown in FIG. 13D, the rightmost position and the lowest position of block C1 are not completely included in the area of the current image. In this case, a block division method may be selected based on the shape of the remaining area. Since the remaining area in FIG. 13C is a vertically long 6x64 block, binary tree partitioning in the vertical direction can be performed on block C1. That is, steps S1001 to S1007 for block C1 may be omitted, and steps S1009 or S1010 may be performed according to the shape of the remaining area. Since block D2 is not completely included in the region of the current video, segmentation and decoding may be omitted.

도 13e는 도 13d의 블록 D1을 확대한 것으로서, 굵은 선으로 둘러싸인 부분은 현재 영상 내의 영역이다. 블록 D1은 도 9를 참조하여 설명한 분할 대상 블록일 수 있다. 도 13e에 도시된 바와 같이, 블록 D1의 최우측 위치와 최하단 위치는 현재 영상의 영역에 완전히 포함되지 않는다. 이 경우, 남은 영역의 형태에 기초하여 블록 분할 방식을 선택할 수 있다. 도 13c에서 남은 영역은 세로로 긴 2x64 블록이므로, 블록 D1에 대해 세로 방향의 이진 트리 분할을 수행할 수 있다. 즉, 블록 D1에 대한 단계 S1001 내지 S1007이 생략될 수 있고, 남은 영역의 형태에 따라 단계 S1009 또는 S1010이 수행될 수 있다. 블록 E1의 가로의 크기는 서브 블록의 최소 크기로 가정한 2와 동일하다. 따라서, 블록 E1에 대해서는 세로 분할이 수행될 수 없다. 즉, 블록 E1은 분할되지 않고 복호화되거나, 가로 분할된 후 복호화될 수 있다. 이 경우, 블록 E1에 대해서는 분할 여부에 관한 정보만 시그널링될 수 있다. 블록 E2는 현재 영상의 영역에 완전히 포함되지 않으므로, 분할 및 복호화가 생략될 수 있다. FIG. 13E is an enlarged view of block D1 of FIG. 13D , and a portion surrounded by a thick line is an area within the current image. Block D1 may be a partition target block described with reference to FIG. 9 . As shown in FIG. 13E, the rightmost position and the lowest position of block D1 are not completely included in the area of the current image. In this case, a block division method may be selected based on the shape of the remaining area. Since the remaining area in FIG. 13C is a vertically long 2x64 block, binary tree partitioning in the vertical direction can be performed on the block D1. That is, steps S1001 to S1007 for the block D1 may be omitted, and steps S1009 or S1010 may be performed according to the shape of the remaining area. The horizontal size of block E1 is equal to 2, which is assumed to be the minimum size of a sub-block. Therefore, vertical division cannot be performed on the block E1. That is, the block E1 may be decoded without being split or decoded after being horizontally split. In this case, only information on whether to divide block E1 may be signaled. Since the block E2 is not completely included in the region of the current video, segmentation and decoding may be omitted.

도 13을 참조하여 설명한 실시예에서는, 분할 대상 블록에 대해 이진 트리 분할만이 수행되며, 이진 트리 분할의 방향은 남은 영역의 형상에 따라 결정될 수 있다.In the embodiment described with reference to FIG. 13 , only binary tree splitting is performed on a block to be split, and the direction of binary tree splitting may be determined according to the shape of the remaining area.

도 9 및 도 10을 참조하여 설명한 실시예에 있어서, 서브 블록 단위 또는 블록 단위로 영상의 경계에 대한 분할 처리를 수행할 수 있다. 어떤 단위로 영상의 경계에 대한 분할 처리를 수행할 지 여부에 관한 정보는 시그널링될 수 있다. 예컨대, 상기 정보는 전술한 블록의 상위 레벨의 헤더를 통해 부호화기에서 복호화기로 시그널링될 수 있다.In the embodiment described with reference to FIGS. 9 and 10 , segmentation processing may be performed on the boundary of an image in units of sub-blocks or units of blocks. Information on whether or not to perform division processing on the boundary of an image in which unit may be signaled. For example, the information may be signaled from an encoder to a decoder through a header of a higher level of the aforementioned block.

본 개시의 예시적인 방법들은 설명의 명확성을 위해서 동작의 시리즈로 표현되어 있지만, 이는 단계가 수행되는 순서를 제한하기 위한 것은 아니며, 필요한 경우에는 각각의 단계가 동시에 또는 상이한 순서로 수행될 수도 있다. 본 개시에 따른 방법을 구현하기 위해서, 예시하는 단계에 추가적으로 다른 단계를 포함하거나, 일부의 단계를 제외하고 나머지 단계를 포함하거나, 또는 일부의 단계를 제외하고 추가적인 다른 단계를 포함할 수도 있다.Exemplary methods of this disclosure are presented as a series of operations for clarity of explanation, but this is not intended to limit the order in which steps are performed, and each step may be performed concurrently or in a different order, if desired. In order to implement the method according to the present disclosure, other steps may be included in addition to the exemplified steps, other steps may be included except for some steps, or additional other steps may be included except for some steps.

본 개시의 다양한 실시 예는 모든 가능한 조합을 나열한 것이 아니고 본 개시의 대표적인 양상을 설명하기 위한 것이며, 다양한 실시 예에서 설명하는 사항들은 독립적으로 적용되거나 또는 둘 이상의 조합으로 적용될 수도 있다.Various embodiments of the present disclosure are intended to explain representative aspects of the present disclosure, rather than listing all possible combinations, and matters described in various embodiments may be applied independently or in combination of two or more.

또한, 본 개시의 다양한 실시 예는 하드웨어, 펌웨어(firmware), 소프트웨어, 또는 그들의 결합 등에 의해 구현될 수 있다. 하드웨어에 의한 구현의 경우, 하나 또는 그 이상의 ASICs(Application Specific Integrated Circuits), DSPs(Digital Signal Processors), DSPDs(Digital Signal Processing Devices), PLDs(Programmable Logic Devices), FPGAs(Field Programmable Gate Arrays), 범용 프로세서(general processor), 컨트롤러, 마이크로 컨트롤러, 마이크로 프로세서 등에 의해 구현될 수 있다. In addition, various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof. For hardware implementation, one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), It may be implemented by a processor (general processor), controller, microcontroller, microprocessor, or the like.

본 개시의 범위는 다양한 실시 예의 방법에 따른 동작이 장치 또는 컴퓨터 상에서 실행되도록 하는 소프트웨어 또는 머신-실행가능한 명령들(예를 들어, 운영체제, 애플리케이션, 펌웨어(firmware), 프로그램 등), 및 이러한 소프트웨어 또는 명령 등이 저장되어 장치 또는 컴퓨터 상에서 실행 가능한 비-일시적 컴퓨터-판독가능 매체(non-transitory computer-readable medium)를 포함한다.The scope of the present disclosure is software or machine-executable instructions (eg, operating systems, applications, firmware, programs, etc.) that cause operations according to methods of various embodiments to be executed on a device or computer, and such software or It includes a non-transitory computer-readable medium in which instructions and the like are stored and executable on a device or computer.

Claims (22)

현재 영상을 복수의 블록들로 분할하는 제1 분할 단계; 및
상기 복수의 블록들 중 상기 현재 영상의 경계를 포함하는 분할 대상 블록을 복수의 하위 블록들로 분할하는 제2 분할 단계를 포함하고,
상기 제2 분할 단계는, 상기 하위 블록들 중 상기 현재 영상의 경계를 포함하는 하위 블록이 존재하지 않을 때까지, 상기 현재 영상의 경계를 포함하는 하위 블록을 상기 분할 대상 블록으로하여 재귀적으로 수행되고,
상기 제2 분할 단계는, 상기 분할 대상 블록의 크기 및 임계값에 기초하여 쿼드 트리 분할 또는 이진 트리 분할을 선택적으로 적용하여 상기 분할 대상 블록을 분할하되,
상기 쿼드 트리 분할은, 상기 분할 대상 블록의 크기와 쿼드 트리 분할이 가능한 블록의 크기를 비교한 결과에 기초하여 수행되고,
상기 이진 트리 분할은, 상기 쿼드 트리 분할이 수행되지 않는 경우, 상기 분할 대상 블록의 크기와 이진 트리 분할이 가능한 블록의 크기 및 상기 임계값을 비교한 결과에 기초하여 수행되며,
상기 임계값은, 상기 이진 트리 분할이 가능한 블록의 크기와는 상이하며, 쿼드 트리 분할이 가능한 블록의 최대 크기와 최소 크기 사이의 값인 것을 특징으로 하는 영상 부호화 방법.
a first dividing step of dividing the current image into a plurality of blocks; and
A second division step of dividing a division target block including a boundary of the current image among the plurality of blocks into a plurality of sub-blocks;
The second dividing step is recursively performed by using a sub-block including the boundary of the current image as the division target block until there is no sub-block including the boundary of the current image among the sub-blocks. become,
The second splitting step divides the splitting block by selectively applying quad tree splitting or binary tree splitting based on the size and threshold of the splitting block,
The quad tree splitting is performed based on a result of comparing the size of the split target block with the size of a block capable of quad tree splitting,
The binary tree splitting is performed based on a result of comparing the size of the split target block with the size of a block capable of binary tree splitting and the threshold value when the quad tree splitting is not performed,
The threshold value is different from the size of a block capable of binary tree partitioning and is a value between a maximum size and a minimum size of a block capable of quad tree partitioning.
제1항에 있어서,
상기 제1 분할 단계는,
상기 현재 영상을 동일한 크기의 복수의 최대 블록으로 분할하는 단계인 영상 부호화 방법.
According to claim 1,
In the first division step,
The step of dividing the current image into a plurality of largest blocks having the same size.
제1항에 있어서,
상기 분할 대상 블록의 최우측 위치 및 상기 분할 대상 블록의 최하단 위치 중 어느 하나가 상기 현재 영상의 영역에 포함되지 않는 경우,
이진 트리 분할이 가능한 최대 블록 크기에 기초하여, 상기 분할 대상 블록에 이진 트리 분할을 적용할지 여부를 결정하는 영상 부호화 방법.
According to claim 1,
If any one of the rightmost position of the division target block and the lowest position of the division target block is not included in the region of the current image,
An image encoding method for determining whether to apply binary tree partitioning to the partitioning target block based on a maximum block size capable of binary tree partitioning.
◈청구항 4은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 4 was abandoned when the registration fee was paid.◈ 제1항에 있어서,
상기 하위 블록들 중 상기 현재 영상의 경계를 포함하지 않고 동시에, 상기 현재 영상의 밖에 위치하는 하위 블록에 대해서는 상기 제2 분할 단계 및 부호화를 생략하는 영상 부호화 방법.
According to claim 1,
The video encoding method of omitting the second dividing step and encoding for a sub-block among the sub-blocks that does not include a boundary of the current video and is located outside the current video.
◈청구항 5은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 5 was abandoned when the registration fee was paid.◈ 제1항에 있어서,
상기 제2 분할 단계에서 상기 분할 대상 블록에 대해 상기 쿼드 트리 분할 또는 상기 이진 트리 분할이 수행된 경우,
상기 분할 대상 블록이 쿼드 트리 분할되는지의 여부를 나타내는 제1 분할 정보 또는 상기 분할 대상 블록이 이진 트리 분할되는지의 여부를 나타내는 제2 분할 정보는 부호화되지 않는 영상 부호화 방법.
According to claim 1,
When the quad tree split or the binary tree split is performed on the split target block in the second split step,
First splitting information indicating whether the splitting target block is quad-tree splitting or second splitting information indicating whether the splitting block is binary tree splitting is not encoded.
◈청구항 6은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 6 was abandoned when the registration fee was paid.◈ 제1항에 있어서,
상기 제2 분할 단계에서 상기 분할 대상 블록에 대해 상기 이진 트리 분할이 수행된 경우,
상기 이진 트리 분할의 분할 방향은, 상기 분할 대상 블록의 최우측 위치 및 상기 분할 대상 블록의 최하단 위치 중 어느 쪽이 상기 현재 영상의 영역에 포함되지 않는지에 기초하여 결정되는 영상 부호화 방법.
According to claim 1,
When the binary tree splitting is performed on the splitting target block in the second splitting step,
The splitting direction of the binary tree splitting is determined based on which one of the rightmost position of the partitioning target block and the lowest position of the partitioning target block is not included in the region of the current video.
◈청구항 7은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 7 was abandoned when the registration fee was paid.◈ 제1항에 있어서,
상기 제2 분할 단계에서 상기 분할 대상 블록에 대해 상기 이진 트리 분할이 수행된 경우,
상기 이진 트리 분할의 분할 방향을 나타내는 분할 방향 정보는 부호화되지 않는 영상 부호화 방법.
According to claim 1,
When the binary tree splitting is performed on the splitting target block in the second splitting step,
Splitting direction information indicating a splitting direction of the binary tree splitting is not encoded.
삭제delete 삭제delete 삭제delete ◈청구항 11은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 11 was abandoned when the registration fee was paid.◈ 제6항에 있어서,
상기 이진 트리 분할의 분할 방향은,
상기 분할 대상 블록의 최우측 위치가 상기 현재 영상의 영역에 포함되지 않는 경우, 세로 방향이고,
상기 분할 대상 블록의 최하단 위치가 상기 현재 영상의 영역에 포함되지 않는 경우, 가로 방향인 영상 부호화 방법.
According to claim 6,
The splitting direction of the binary tree splitting is
When the rightmost position of the division target block is not included in the region of the current image, it is in the vertical direction;
When the lowermost position of the division target block is not included in the region of the current image, the video encoding method is in the horizontal direction.
현재 영상을 복수의 블록들로 분할하는 제1 분할 단계; 및
상기 복수의 블록들 중 상기 현재 영상의 경계를 포함하는 분할 대상 블록을 복수의 하위 블록들로 분할하는 제2 분할 단계를 포함하고,
상기 제2 분할 단계는, 상기 하위 블록들 중 상기 현재 영상의 경계를 포함하는 하위 블록이 존재하지 않을 때까지, 상기 현재 영상의 경계를 포함하는 하위 블록을 상기 분할 대상 블록으로하여 재귀적으로 수행되고,
상기 제2 분할 단계는, 상기 분할 대상 블록의 크기 및 임계값에 기초하여 쿼드 트리 분할 또는 이진 트리 분할을 선택적으로 적용하여 상기 분할 대상 블록을 분할하되,
상기 쿼드 트리 분할은, 상기 분할 대상 블록의 크기와 쿼드 트리 분할이 가능한 블록의 크기를 비교한 결과에 기초하여 수행되고,
상기 이진 트리 분할은, 상기 쿼드 트리 분할이 수행되지 않는 경우, 상기 분할 대상 블록의 크기와 이진 트리 분할이 가능한 블록의 크기 및 상기 임계값을 비교한 결과에 기초하여 수행되며,
상기 임계값은, 상기 이진 트리 분할이 가능한 블록의 크기와는 상이하며, 쿼드 트리 분할이 가능한 블록의 최대 크기와 최소 크기 사이의 값인 것을 특징으로 하는 영상 복호화 방법.
a first dividing step of dividing the current image into a plurality of blocks; and
A second division step of dividing a division target block including a boundary of the current image among the plurality of blocks into a plurality of sub-blocks;
The second dividing step is recursively performed by using a sub-block including the boundary of the current image as the division target block until there is no sub-block including the boundary of the current image among the sub-blocks. become,
The second splitting step divides the splitting block by selectively applying quad tree splitting or binary tree splitting based on the size and threshold of the splitting block,
The quad tree splitting is performed based on a result of comparing the size of the split target block with the size of a block capable of quad tree splitting,
The binary tree splitting is performed based on a result of comparing the size of the split target block with the size of a block capable of binary tree splitting and the threshold value when the quad tree splitting is not performed,
The threshold value is different from the size of a block capable of partitioning the binary tree and is a value between a maximum size and a minimum size of a block capable of quad tree partitioning.
제12항에 있어서,
상기 분할 대상 블록의 최우측 위치 및 상기 분할 대상 블록의 최하단 위치 중 어느 하나가 상기 현재 영상의 영역에 포함되지 않는 경우,
이진 트리 분할이 가능한 최대 블록 크기에 기초하여, 상기 분할 대상 블록에 이진 트리 분할을 적용할지 여부를 결정하는 영상 복호화 방법.
According to claim 12,
If any one of the rightmost position of the division target block and the lowest position of the division target block is not included in the region of the current image,
An image decoding method for determining whether to apply binary tree partitioning to the partition target block based on a maximum block size capable of binary tree partitioning.
제12항에 있어서,
상기 하위 블록들 중 상기 현재 영상의 경계를 포함하지 않고 동시에, 상기 현재 영상의 밖에 위치하는 하위 블록에 대해서는 상기 제2 분할 단계 및 복호화를 생략하는 영상 복호화 방법.
According to claim 12,
The video decoding method of omitting the second dividing step and decoding for a sub-block that does not include a boundary of the current video among the sub-blocks and is located outside the current video.
◈청구항 15은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 15 was abandoned when the registration fee was paid.◈ 제12항에 있어서,
상기 제2 분할 단계에서 상기 분할 대상 블록에 대해 상기 쿼드 트리 분할 또는 상기 이진 트리 분할이 수행된 경우,
상기 분할 대상 블록이 쿼드 트리 분할되는지의 여부를 나타내는 제1 분할 정보 또는 상기 분할 대상 블록이 이진 트리 분할되는지의 여부를 나타내는 제2 분할 정보는 비트스트림으로부터 복호화되지 않고, 소정의 값으로 유도되는 영상 복호화 방법.
According to claim 12,
When the quad tree split or the binary tree split is performed on the split target block in the second split step,
The first splitting information indicating whether the splitting target block is quad-tree splitting or the second splitting information indicating whether the splitting target block is binary tree splitting is not decoded from the bitstream and is derived as a predetermined value. decryption method.
◈청구항 16은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 16 was abandoned when the registration fee was paid.◈ 제12항에 있어서,
상기 제2 분할 단계에서 상기 분할 대상 블록에 대해 상기 이진 트리 분할이 수행된 경우,
상기 이진 트리 분할의 분할 방향은, 상기 분할 대상 블록의 최우측 위치 및 상기 분할 대상 블록의 최하단 위치 중 어느 쪽이 상기 현재 영상의 영역에 포함되지 않는지에 기초하여 결정되는 영상 복호화 방법.
According to claim 12,
When the binary tree splitting is performed on the splitting target block in the second splitting step,
The splitting direction of the binary tree splitting is determined based on which one of the rightmost position of the partitioning target block and the lowest position of the partitioning target block is not included in the region of the current video.
◈청구항 17은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 17 was abandoned when the registration fee was paid.◈ 제12항에 있어서,
상기 제2 분할 단계에서 상기 분할 대상 블록에 대해 상기 이진 트리 분할이 수행된 경우,
상기 이진 트리 분할의 분할 방향을 나타내는 분할 방향 정보는 비트스트림으로부터 복호화되지 않고, 소정의 값으로 유도되는 영상 복호화 방법.
According to claim 12,
When the binary tree splitting is performed on the splitting target block in the second splitting step,
The splitting direction information indicating the splitting direction of the binary tree splitting is not decoded from the bitstream and derived as a predetermined value.
삭제delete 삭제delete 삭제delete ◈청구항 21은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 21 was abandoned when the registration fee was paid.◈ 제16항에 있어서,
상기 이진 트리 분할의 분할 방향은,
상기 분할 대상 블록의 최우측 위치가 상기 현재 영상의 영역에 포함되지 않는 경우, 세로 방향이고,
상기 분할 대상 블록의 최하단 위치가 상기 현재 영상의 영역에 포함되지 않는 경우, 가로 방향인 영상 복호화 방법.
According to claim 16,
The splitting direction of the binary tree splitting is
When the rightmost position of the division target block is not included in the region of the current image, it is in the vertical direction;
When the lowermost position of the division target block is not included in the region of the current image, the image decoding method is in the horizontal direction.
영상 부호화 방법에 의해 생성된 비트스트림을 저장하는 컴퓨터 판독 가능한 기록 매체로서,
상기 영상 부호화 방법은,
현재 영상을 복수의 블록들로 분할하는 제1 분할 단계; 및
상기 복수의 블록들 중 상기 현재 영상의 경계를 포함하는 분할 대상 블록을 복수의 하위 블록들로 분할하는 제2 분할 단계를 포함하고,
상기 제2 분할 단계는, 상기 하위 블록들 중 상기 현재 영상의 경계를 포함하는 하위 블록이 존재하지 않을 때까지, 상기 현재 영상의 경계를 포함하는 하위 블록을 상기 분할 대상 블록으로하여 재귀적으로 수행되고,
상기 제2 분할 단계는, 상기 분할 대상 블록의 크기 및 임계값에 기초하여 쿼드 트리 분할 또는 이진 트리 분할을 선택적으로 적용하여 상기 분할 대상 블록을 분할하되,
상기 쿼드 트리 분할은, 상기 분할 대상 블록의 크기와 쿼드 트리 분할이 가능한 블록의 크기를 비교한 결과에 기초하여 수행되고,
상기 이진 트리 분할은, 상기 쿼드 트리 분할이 수행되지 않는 경우, 상기 분할 대상 블록의 크기와 이진 트리 분할이 가능한 블록의 크기 및 상기 임계값을 비교한 결과에 기초하여 수행되며,
상기 임계값은, 상기 이진 트리 분할이 가능한 블록의 크기와는 상이하며, 쿼드 트리 분할이 가능한 블록의 최대 크기와 최소 크기 사이의 값인 것을 특징으로 하는 기록 매체.
A computer-readable recording medium storing a bitstream generated by an image encoding method,
The video encoding method,
a first dividing step of dividing the current image into a plurality of blocks; and
A second division step of dividing a division target block including a boundary of the current image among the plurality of blocks into a plurality of sub-blocks;
The second dividing step is recursively performed by using a sub-block including the boundary of the current image as the division target block until there is no sub-block including the boundary of the current image among the sub-blocks. become,
The second splitting step divides the splitting block by selectively applying quad tree splitting or binary tree splitting based on the size and threshold of the splitting block,
The quad tree splitting is performed based on a result of comparing the size of the split target block with the size of a block capable of quad tree splitting,
The binary tree splitting is performed based on a result of comparing the size of the split target block with the size of a block capable of binary tree splitting and the threshold value when the quad tree splitting is not performed,
The threshold value is different from the size of a block capable of binary tree partitioning and is a value between a maximum size and a minimum size of a block capable of quad tree partitioning.
KR1020170127939A 2016-10-14 2017-09-29 Image encoding method/apparatus, image decoding method/apparatus and and recording medium for storing bitstream KR102511611B1 (en)

Priority Applications (30)

Application Number Priority Date Filing Date Title
CN202310593832.8A CN116489393A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310595161.9A CN116489399A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
US16/341,792 US11057624B2 (en) 2016-10-14 2017-10-12 Image encoding method/device, image decoding method/device, and recording medium in which bitstream is stored
CN202310596009.2A CN116489405A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310596456.8A CN116489406A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310512086.5A CN116320404A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310595151.5A CN116489398A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310511853.0A CN116320403A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310511201.7A CN116405669A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310594159.XA CN116489394A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310595418.0A CN116489402A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310595869.4A CN116489404A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN201780063610.8A CN109937570B (en) 2016-10-14 2017-10-12 Video encoding method and apparatus, video decoding method and apparatus, and recording medium storing bit stream
CN202310592033.9A CN116489392A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310595313.5A CN116489400A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310508607.XA CN116389726A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310595383.0A CN116489401A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310595082.8A CN116489396A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
PCT/KR2017/011213 WO2018070786A1 (en) 2016-10-14 2017-10-12 Image encoding method/device, image decoding method/device, and recording medium in which bitstream is stored
CN202310512074.2A CN116405670A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310595129.0A CN116489397A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310594432.9A CN116489395A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
CN202310595849.7A CN116489403A (en) 2016-10-14 2017-10-12 Video decoding/encoding method, method for transmitting bit stream, and recording medium
US17/328,273 US11659178B2 (en) 2016-10-14 2021-05-24 Image encoding method/device, image decoding method/device, and recording medium in which bitstream is stored
US17/818,650 US20220400258A1 (en) 2016-10-14 2022-08-09 Image encoding method/device, image decoding method/device, and recording medium in which bitstream is stored
KR1020230033494A KR20230042236A (en) 2016-10-14 2023-03-14 Image encoding method/apparatus, image decoding method/apparatus and and recording medium for storing bitstream
US18/313,281 US11778184B1 (en) 2016-10-14 2023-05-05 Image encoding method/device, image decoding method/device, and recording medium in which bitstream is stored
US18/468,547 US11902521B2 (en) 2016-10-14 2023-09-15 Image encoding method/device, image decoding method/device, and recording medium in which bitstream is stored
US18/468,555 US11909970B2 (en) 2016-10-14 2023-09-15 Image encoding method/device, image decoding method/device, and recording medium in which bitstream is stored
US18/468,561 US11909971B2 (en) 2016-10-14 2023-09-15 Image encoding method/device, image decoding method/device, and recording medium in which bitstream is stored

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20160133754 2016-10-14
KR1020160133754 2016-10-14

Related Child Applications (1)

Application Number Title Priority Date Filing Date
KR1020230033494A Division KR20230042236A (en) 2016-10-14 2023-03-14 Image encoding method/apparatus, image decoding method/apparatus and and recording medium for storing bitstream

Publications (2)

Publication Number Publication Date
KR20180041576A KR20180041576A (en) 2018-04-24
KR102511611B1 true KR102511611B1 (en) 2023-03-20

Family

ID=62084963

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170127939A KR102511611B1 (en) 2016-10-14 2017-09-29 Image encoding method/apparatus, image decoding method/apparatus and and recording medium for storing bitstream

Country Status (1)

Country Link
KR (1) KR102511611B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210274175A1 (en) * 2018-06-27 2021-09-02 Electronics And Telecommunications Research Institute Image encoding/decoding method and device, and recording medium in which bitstream is stored

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101452713B1 (en) * 2009-10-30 2014-10-21 삼성전자주식회사 Method and apparatus for encoding and decoding coding unit of picture boundary
CN102939750B (en) * 2010-04-13 2016-07-06 Ge视频压缩有限责任公司 Across planar prediction

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Benjamin Bross et al, Proposed Editorial Improvements for High efficiency video coding (HEVC) Text Specification Draft 8, JCT-VC, JCTVC-K0030_v1, 2012-09-12, pp. 1-255

Also Published As

Publication number Publication date
KR20180041576A (en) 2018-04-24

Similar Documents

Publication Publication Date Title
KR102357282B1 (en) Method and apparatus for encoding/decoding an image
JP7391958B2 (en) Video signal encoding/decoding method and equipment used in the method
KR102617439B1 (en) Method for encoding/decoidng video signal and apparatus therefor
CN113395517B (en) Video signal encoding/decoding method and apparatus thereof
CN113382234B (en) Video signal encoding/decoding method and apparatus for the same
JP7423624B2 (en) Video signal encoding/decoding method and equipment
CN112823514A (en) Image signal encoding/decoding method and apparatus thereof
KR102422485B1 (en) Method and apparatus for processing a video signal
KR102422484B1 (en) Method and apparatus for processing a video signal
KR102425722B1 (en) Method and apparatus for encoding/decoding a video signal
KR20230113243A (en) Method and apparatus for encoding/decoding a video signal
KR20200093469A (en) Method for encoding/decoidng video signal and apparatus therefor
KR20200078391A (en) Method for encodign/decodign video signal and apparatus therefor
KR20190115426A (en) Method and apparatus for encoding/decoding an image
US20230319276A1 (en) Image encoding method/device, image decoding method/device, and recording medium in which bitstream is stored
KR102511611B1 (en) Image encoding method/apparatus, image decoding method/apparatus and and recording medium for storing bitstream
KR102389267B1 (en) A method and an apparatus for processing a video signal based on reference between components
KR20230042236A (en) Image encoding method/apparatus, image decoding method/apparatus and and recording medium for storing bitstream
KR102557740B1 (en) Method and apparatus for encoding/decoding a video signal
KR102557797B1 (en) Method and apparatus for encoding/decoding a video signal
KR20230063314A (en) Method for encoding/decoding a video signal and recording medium storing a bitsteram generated based on the method
KR20220051156A (en) A method and an apparatus for processing a video signal based on reference between components
KR20210111901A (en) Intra prediction method and apparatus using the method

Legal Events

Date Code Title Description
AMND Amendment
E902 Notification of reason for refusal
AMND Amendment
E90F Notification of reason for final refusal
AMND Amendment
E601 Decision to refuse application
X091 Application refused [patent]
AMND Amendment
X701 Decision to grant (after re-examination)
GRNT Written decision to grant