WO2020185045A1 - 크로마 블록에 대한 분할 제한을 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 - Google Patents
크로마 블록에 대한 분할 제한을 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 Download PDFInfo
- Publication number
- WO2020185045A1 WO2020185045A1 PCT/KR2020/003559 KR2020003559W WO2020185045A1 WO 2020185045 A1 WO2020185045 A1 WO 2020185045A1 KR 2020003559 W KR2020003559 W KR 2020003559W WO 2020185045 A1 WO2020185045 A1 WO 2020185045A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- current block
- block
- division
- information
- prediction
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 169
- 230000011218 segmentation Effects 0.000 title claims abstract description 18
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 claims description 142
- 241000023320 Luma <angiosperm> Species 0.000 claims description 141
- 230000009977 dual effect Effects 0.000 claims description 11
- 239000013598 vector Substances 0.000 description 157
- 239000000523 sample Substances 0.000 description 75
- 238000010586 diagram Methods 0.000 description 41
- 238000001914 filtration Methods 0.000 description 34
- 230000002123 temporal effect Effects 0.000 description 34
- 238000013139 quantization Methods 0.000 description 31
- 238000009795 derivation Methods 0.000 description 14
- 238000000638 solvent extraction Methods 0.000 description 11
- 230000009466 transformation Effects 0.000 description 11
- 230000005540 biological transmission Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 230000011664 signaling Effects 0.000 description 9
- 230000001939 inductive effect Effects 0.000 description 5
- 230000003044 adaptive effect Effects 0.000 description 4
- 238000003491 array Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 238000006073 displacement reaction Methods 0.000 description 4
- 238000005192 partition Methods 0.000 description 4
- 239000013074 reference sample Substances 0.000 description 4
- 238000007906 compression Methods 0.000 description 3
- 230000006835 compression Effects 0.000 description 3
- 238000010276 construction Methods 0.000 description 3
- 238000013144 data compression Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000003709 image segmentation Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 238000009877 rendering Methods 0.000 description 3
- 208000037170 Delayed Emergence from Anesthesia Diseases 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 230000002146 bilateral effect Effects 0.000 description 2
- 239000000470 constituent Substances 0.000 description 2
- 230000007727 signaling mechanism Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 239000010454 slate Substances 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/136—Incoming video signal characteristics or properties
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/119—Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/109—Selection of coding mode or of prediction mode among a plurality of temporal predictive coding modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/12—Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
- H04N19/122—Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/132—Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/136—Incoming video signal characteristics or properties
- H04N19/137—Motion inside a coding unit, e.g. average field, frame or block difference
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/157—Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- H04N19/159—Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/17—Methods 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/176—Methods 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/186—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods 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/96—Tree coding, e.g. quad-tree coding
Definitions
- the present disclosure relates to a method and apparatus for encoding/decoding an image, and more particularly, a method and apparatus for encoding/decoding an image using a division limitation for a chroma block, and It relates to a method of transmitting a bitstream.
- An object of the present disclosure is to provide an image encoding/decoding method and apparatus with improved encoding/decoding efficiency.
- an object of the present disclosure is to provide a method and apparatus for encoding/decoding an image by using a division restriction for a chroma block.
- an object of the present disclosure is to provide an image encoding/decoding method and apparatus that does not signal segmentation information when segmentation for a chroma block cannot be performed.
- an object of the present disclosure is to provide a method for transmitting a bitstream generated by an image encoding method or apparatus according to the present disclosure.
- an object of the present disclosure is to provide a recording medium storing a bitstream generated by an image encoding method or apparatus according to the present disclosure.
- an object of the present disclosure is to provide a recording medium storing a bitstream that is received and decoded by an image decoding apparatus according to the present disclosure and used for image restoration.
- An image decoding method performed by an image decoding apparatus includes: determining whether a predetermined division is allowed for the current block based on a size of a current block; Obtaining information on the division of the current block based on whether the predetermined division is allowed; Dividing the current block based on the information on the division of the current block; And decoding the current block.
- whether to allow the predetermined division may be determined based on whether the width or height of the current block is a predetermined sample length.
- the current block may be a chroma block divided into a dual tree partition structure.
- the width of the current block is a predetermined sample length
- a horizontal turner for the current block It may be determined that this division is not allowed.
- the current block is a chroma block
- the predetermined sample length may be 8 samples.
- the width of the current block is a predetermined sample length, it is determined that vertical binary division for the current block is not allowed, and when the height of the current block is a predetermined sample length, horizontal binary division for the current block May be determined not to be allowed.
- the current block is a chroma block, and the predetermined sample length may be 4 samples.
- the current block is a chroma block
- the width or height of the current block may be derived based on the width or height and color format of the corresponding luma block.
- the width or height of the current block may be derived by dividing the width or height of a corresponding luma block by a component ratio of a chroma sample and a luma sample derived based on a color format.
- information about division of the current block may be determined as a value indicating division other than the predetermined division.
- the information on the division of the current block includes division type information indicating ternary division or binary division, and when vertical ternary division and horizontal ternary division are not allowed for the current block, the division type information is When a value indicating binary division is determined, and vertical binary division and horizontal binary division are not allowed for the current block, the division type information may be determined as a value indicating ternary division.
- the information on the division of the current block includes division direction information indicating vertical division or horizontal division, and vertical binary division and vertical ternary division are not allowed for the current block, and horizontal binary division or horizontal ternary division When this is allowed, the division direction information is determined as a value indicating horizontal division, and horizontal binary division and horizontal ternary division are not allowed for the current block, and vertical binary division or vertical ternary division is allowed. , The division direction information may be determined as a value indicating vertical division.
- the current block is a chroma block predicted in an IBC mode, dividing a luma block corresponding to the current block into luma sub-blocks having a predetermined size; Obtaining motion information of the luma sub-block; And deriving motion information of a sub-block within the current block corresponding to the luma sub-block based on motion information of the luma sub-block. And performing IBC prediction on the current block based on the derived motion information.
- the size of the luma sub-block may be 8x8.
- an image decoding apparatus includes a memory and at least one processor, wherein the at least one processor determines whether a predetermined division is allowed for the current block based on the size of the current block, and , Based on whether the predetermined division is allowed, information on division of the current block is obtained, and based on information on division of the current block, the current block is divided and the current block is decoded, Whether to allow a predetermined division may be determined based on whether the width or height of the current block is a predetermined sample length.
- an image encoding method performed by an image encoding apparatus includes determining whether a predetermined division is allowed for the current block based on a size of the current block; Dividing the current block based on whether the predetermined division is allowed; Encoding information on division of the current block based on whether the predetermined division is allowed; And encoding the current block. Whether to allow the predetermined division may be determined based on whether the width or height of the current block is a predetermined sample length.
- a transmission method may transmit a bitstream generated by the image encoding apparatus or image encoding method of the present disclosure.
- a computer-readable recording medium may store a bitstream generated by the image encoding method or image encoding apparatus of the present disclosure.
- an image encoding/decoding method and apparatus with improved encoding/decoding efficiency may be provided.
- a method and apparatus for encoding/decoding an image capable of reducing an amount of a bitstream by not signaling chroma block segmentation information when segmentation of a chroma block is restricted may be provided.
- a method for transmitting a bitstream generated by an image encoding method or apparatus according to the present disclosure may be provided.
- a recording medium storing a bitstream generated by an image encoding method or apparatus according to the present disclosure may be provided.
- a recording medium may be provided that stores a bitstream that is received and decoded by the image decoding apparatus according to the present disclosure and used for image restoration.
- FIG. 1 is a diagram schematically illustrating a video coding system to which an embodiment according to the present disclosure can be applied.
- FIG. 2 is a diagram schematically illustrating an image encoding apparatus to which an embodiment according to the present disclosure can be applied.
- FIG. 3 is a diagram schematically illustrating an image decoding apparatus to which an embodiment according to the present disclosure can be applied.
- FIG. 4 is a diagram illustrating an image segmentation structure according to an exemplary embodiment.
- FIG. 5 is a diagram illustrating an embodiment of a block division type according to a multi-type tree structure.
- FIG. 6 is a diagram illustrating a signaling mechanism of block division information in a quadtree with nested multi-type tree structure according to the present disclosure.
- FIG. 7 is a diagram illustrating an embodiment in which a CTU is divided into multiple CUs.
- FIG. 8 is a diagram illustrating an embodiment of a redundant division pattern.
- FIG. 9 is a flowchart illustrating a video/video encoding method based on inter prediction according to an embodiment.
- FIG. 10 is a diagram illustrating a configuration of an inter prediction unit 180 according to an embodiment.
- FIG. 11 is a flowchart illustrating a video/video decoding method based on inter prediction according to an embodiment.
- FIG. 12 is a diagram illustrating a configuration of an inter prediction unit 260 according to an exemplary embodiment.
- FIG. 13 is a diagram illustrating neighboring blocks that can be used as spatial merge candidates according to an embodiment.
- FIG. 14 is a diagram schematically illustrating a method of constructing a merge candidate list according to an embodiment.
- 15 is a diagram schematically illustrating a method of constructing a motion vector predictor candidate list according to an embodiment.
- 16 is a diagram illustrating a syntax structure for transmitting MVD from an image encoding device to an image decoding device according to an embodiment.
- FIG. 17 is a flowchart illustrating an IBC-based video/video encoding method according to an embodiment.
- FIG. 18 is a diagram illustrating a configuration of a prediction unit that performs an IBC-based video/video encoding method according to an embodiment.
- 19 is a flowchart illustrating an IBC-based video/video decoding method according to an embodiment.
- FIG. 20 is a diagram illustrating a configuration of a prediction unit that performs an IBC-based video/video decoding method according to an embodiment.
- FIG. 21 is a diagram illustrating a method of determining whether vertical ternary division (SPLIT_TT_VER) is allowed for a current block by a decoding apparatus according to an embodiment.
- FIG. 22 is a diagram illustrating a method of determining whether a horizontal ternary division (SPLIT_TT_HOR) is allowed for a current block by a decoding apparatus according to an embodiment.
- FIG. 23 is a diagram illustrating a method of determining whether horizontal binary division (SPLIT_BT_HOR) is allowed for a current block by a decoding apparatus according to an embodiment.
- SPLIT_BT_VER vertical binary division
- FIG. 25 is a diagram illustrating a method of inducing motion information of a chroma sub-block by using motion information of a luma sub-block by a decoding apparatus according to an embodiment.
- 26 is a flowchart illustrating a method of encoding an image by an encoding apparatus according to an exemplary embodiment.
- 27 is a diagram illustrating syntax for a bitstream signaling information on division of a current block, according to an embodiment.
- FIG. 28 is a flowchart illustrating a method of decoding an image by a decoding apparatus according to an embodiment.
- 29 is a diagram illustrating a content streaming system to which an embodiment of the present disclosure can be applied.
- first and second are used only for the purpose of distinguishing one component from other components, and do not limit the order or importance of the components unless otherwise stated. Accordingly, within the scope of the present disclosure, a first component in one embodiment may be referred to as a second component in another embodiment, and similarly, a second component in one embodiment is a first component in another embodiment. It can also be called.
- components that are distinguished from each other are intended to clearly describe each feature, and do not necessarily mean that the components are separated. That is, a plurality of components may be integrated to be formed in one hardware or software unit, or one component may be distributed in a plurality of hardware or software units. Therefore, even if not stated otherwise, such integrated or distributed embodiments are also included in the scope of the present disclosure.
- the components described in various embodiments do not necessarily mean essential components, and some may be optional components. Accordingly, an embodiment consisting of a subset of components described in an embodiment is also included in the scope of the present disclosure. In addition, embodiments including other elements in addition to the elements described in the various embodiments are included in the scope of the present disclosure.
- the present disclosure relates to encoding and decoding of an image, and terms used in the present disclosure may have a common meaning commonly used in the technical field to which the present disclosure belongs unless newly defined in the present disclosure.
- a “picture” generally refers to a unit representing one image in a specific time period
- a slice/tile is a coding unit constituting a part of a picture
- one picture is one It may be composed of more than one slice/tile.
- a slice/tile may include one or more coding tree units (CTU).
- pixel or "pel” may mean a minimum unit constituting one picture (or image).
- sample may be used as a term corresponding to a pixel.
- a sample may generally represent a pixel or a value of a pixel, may represent only a pixel/pixel value of a luma component, or may represent only a pixel/pixel value of a chroma component.
- unit may represent a basic unit of image processing.
- the unit may include at least one of a specific area of a picture and information related to the corresponding area.
- the unit may be used interchangeably with terms such as “sample array”, “block”, or “area” depending on the case.
- the MxN block may include samples (or sample arrays) consisting of M columns and N rows, or a set (or array) of transform coefficients.
- current block may mean one of “current coding block”, “current coding unit”, “coding object block”, “decoding object block”, or “processing object block”.
- current block may mean “current prediction block” or “prediction target block”.
- transformation inverse transformation
- quantization inverse quantization
- current block may mean “current transform block” or “transform target block”.
- filtering is performed, “current block” may mean “block to be filtered”.
- current block may mean “a luma block of the current block” unless explicitly stated as a chroma block.
- the "chroma block of the current block” may be expressed by including an explicit description of a chroma block, such as “chroma block” or "current chroma block”.
- FIG. 1 shows a video coding system according to this disclosure.
- a video coding system may include an encoding device 10 and a decoding device 20.
- the encoding device 10 may transmit the encoded video and/or image information or data in a file or streaming format to the decoding device 20 through a digital storage medium or a network.
- the encoding apparatus 10 may include a video source generator 11, an encoder 12, and a transmission unit 13.
- the decoding apparatus 20 may include a receiving unit 21, a decoding unit 22, and a rendering unit 23.
- the encoder 12 may be referred to as a video/image encoder, and the decoder 22 may be referred to as a video/image decoder.
- the transmission unit 13 may be included in the encoding unit 12.
- the receiving unit 21 may be included in the decoding unit 22.
- the rendering unit 23 may include a display unit, and the display unit may be configured as a separate device or an external component.
- the video source generator 11 may acquire a video/image through a process of capturing, synthesizing, or generating a video/image.
- the video source generator 11 may include a video/image capturing device and/or a video/image generating device.
- the video/image capture device may include, for example, one or more cameras, a video/image archive including previously captured video/images, and the like.
- the video/image generating device may include, for example, a computer, a tablet and a smartphone, and may (electronically) generate a video/image.
- a virtual video/image may be generated through a computer or the like, and in this case, a video/image capturing process may be substituted as a process of generating related data.
- the encoder 12 may encode an input video/image.
- the encoder 12 may perform a series of procedures such as prediction, transformation, and quantization for compression and encoding efficiency.
- the encoder 12 may output encoded data (coded video/image information) in a bitstream format.
- the transmission unit 13 may transmit the encoded video/image information or data output in the form of a bitstream to the receiving unit 21 of the decoding apparatus 20 through a digital storage medium or a network in a file or streaming form.
- Digital storage media may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
- the transmission unit 13 may include an element for generating a media file through a predetermined file format, and may include an element for transmission through a broadcast/communication network.
- the receiving unit 21 may extract/receive the bitstream from the storage medium or network and transmit it to the decoding unit 22.
- the decoder 22 may decode the video/image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoder 12.
- the rendering unit 23 may render the decoded video/image.
- the rendered video/image may be displayed through the display unit.
- FIG. 2 is a diagram schematically illustrating an image encoding apparatus to which an embodiment according to the present disclosure can be applied.
- the image encoding apparatus 100 includes an image segmentation unit 110, a subtraction unit 115, a transform unit 120, a quantization unit 130, an inverse quantization unit 140, and an inverse transform unit ( 150), an addition unit 155, a filtering unit 160, a memory 170, an inter prediction unit 180, an intra prediction unit 185, and an entropy encoding unit 190.
- the inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a “prediction unit”.
- the transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in a residual processing unit.
- the residual processing unit may further include a subtraction unit 115.
- All or at least some of the plurality of constituent units constituting the image encoding apparatus 100 may be implemented as one hardware component (eg, an encoder or a processor) according to embodiments.
- the memory 170 may include a decoded picture buffer (DPB), and may be implemented by a digital storage medium.
- DPB decoded picture buffer
- the image dividing unit 110 may divide an input image (or picture, frame) input to the image encoding apparatus 100 into one or more processing units.
- the processing unit may be referred to as a coding unit (CU).
- the coding unit is a coding tree unit (CTU) or a largest coding unit (LCU) recursively according to a QT/BT/TT (Quad-tree/binary-tree/ternary-tree) structure ( It can be obtained by dividing recursively.
- one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure, a binary tree structure, and/or a ternary tree structure.
- a quad tree structure may be applied first, and a binary tree structure and/or a ternary tree structure may be applied later.
- the coding procedure according to the present disclosure may be performed based on the final coding unit that is no longer divided.
- the largest coding unit may be directly used as the final coding unit, or a coding unit of a lower depth obtained by dividing the largest coding unit may be used as the final cornet unit.
- the coding procedure may include a procedure such as prediction, transformation, and/or restoration described later.
- the processing unit of the coding procedure may be a prediction unit (PU) or a transform unit (TU).
- Each of the prediction unit and the transform unit may be divided or partitioned from the final coding unit.
- the prediction unit may be a unit of sample prediction
- the transform unit may be a unit for inducing a transform coefficient and/or a unit for inducing a residual signal from the transform coefficient.
- the prediction unit (inter prediction unit 180 or intra prediction unit 185) performs prediction on a block to be processed (current block), and generates a predicted block including prediction samples for the current block. Can be generated.
- the prediction unit may determine whether intra prediction or inter prediction is applied in units of the current block or CU.
- the prediction unit may generate various information on prediction of the current block and transmit it to the entropy encoding unit 190.
- the information on prediction may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
- the intra prediction unit 185 may predict the current block by referring to samples in the current picture.
- the referenced samples may be located in a neighborhood of the current block or may be located away from each other according to an intra prediction mode and/or an intra prediction technique.
- the intra prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
- the non-directional mode may include, for example, a DC mode and a planar mode (Planar mode).
- the directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes, depending on the degree of detail of the prediction direction. However, this is an example, and more or less directional prediction modes may be used depending on the setting.
- the intra prediction unit 185 may determine a prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
- the inter prediction unit 180 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture.
- motion information may be predicted in units of blocks, subblocks, or samples based on a correlation between motion information between a neighboring block and a current block.
- the motion information may include a motion vector and a reference picture index.
- the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
- the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block existing in the reference picture.
- the reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different from each other.
- the temporal neighboring block may be referred to as a collocated reference block, a collocated CU (colCU), or the like.
- a reference picture including the temporal neighboring block may be referred to as a collocated picture (colPic).
- the inter prediction unit 180 constructs a motion information candidate list based on neighboring blocks, and provides information indicating which candidate is used to derive a motion vector and/or a reference picture index of the current block. Can be generated. Inter prediction may be performed based on various prediction modes.
- the inter prediction unit 180 may use motion information of a neighboring block as motion information of a current block.
- a residual signal may not be transmitted.
- motion vector prediction (MVP) mode motion vectors of neighboring blocks are used as motion vector predictors, and indicators for motion vector difference and motion vector predictors ( indicator) to signal the motion vector of the current block.
- the motion vector difference may mean a difference between a motion vector of a current block and a motion vector predictor.
- the prediction unit may generate a prediction signal based on various prediction methods and/or prediction techniques to be described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of the current block, and may simultaneously apply intra prediction and inter prediction. A prediction method in which intra prediction and inter prediction are applied simultaneously for prediction of a current block may be called combined inter and intra prediction (CIIP). Also, the prediction unit may perform intra block copy (IBC) for prediction of the current block. The intra block copy may be used for content image/movie coding such as games, such as, for example, screen content coding (SCC). IBC is a method of predicting a current block by using a reference block in a current picture at a distance from the current block by a predetermined distance.
- CIIP combined inter and intra prediction
- IBC intra block copy
- the intra block copy may be used for content image/movie coding such as games, such as, for example, screen content coding (SCC).
- IBC is a method of predicting a current block by using a reference
- the position of the reference block in the current picture may be encoded as a vector (block vector) corresponding to the predetermined distance.
- IBC basically performs prediction in the current picture, but may be performed similarly to inter prediction in that it derives a reference block in the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this disclosure.
- the prediction signal generated through the prediction unit may be used to generate a reconstructed signal or may be used to generate a residual signal.
- the subtraction unit 115 subtracts the prediction signal (predicted block, prediction sample array) output from the prediction unit from the input image signal (original block, original sample array), and subtracts a residual signal (remaining block, residual sample array). ) Can be created.
- the generated residual signal may be transmitted to the converter 120.
- the transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal.
- the transformation technique uses at least one of DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), KLT (Karhunen-Loeve Transform), GBT (Graph-Based Transform), or CNT (Conditionally Non-linear Transform).
- DCT Discrete Cosine Transform
- DST Discrete Sine Transform
- KLT Kerhunen-Loeve Transform
- GBT Graph-Based Transform
- CNT Conditionally Non-linear Transform
- GBT refers to the transformation obtained from this graph when the relationship information between pixels is expressed in a graph.
- CNT refers to a transformation obtained based on generating a prediction signal using all previously reconstructed pixels.
- the conversion process may be applied to a block of pixels having the same size of a square, or may be applied to a block of a variable size other than a square.
- the quantization unit 130 may quantize the transform coefficients and transmit the quantization to the entropy encoding unit 190.
- the entropy encoding unit 190 may encode a quantized signal (information on quantized transform coefficients) and output it as a bitstream.
- the information on the quantized transform coefficients may be called residual information.
- the quantization unit 130 may rearrange the quantized transform coefficients in the form of a block into a one-dimensional vector form based on a coefficient scan order, and the quantized transform coefficients in the form of the one-dimensional vector It is also possible to generate information about transform coefficients.
- the entropy encoding unit 190 may perform various encoding methods such as exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC).
- the entropy encoding unit 190 may encode together or separately information necessary for video/image restoration (eg, values of syntax elements) in addition to quantized transform coefficients.
- the encoded information (eg, encoded video/video information) may be transmitted or stored in a bitstream format in units of network abstraction layer (NAL) units.
- the video/video information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS).
- the video/video information may further include general constraint information.
- the signaling information, transmitted information, and/or syntax elements mentioned in the present disclosure may be encoded through the above-described encoding procedure and included in the bitstream.
- the bitstream may be transmitted through a network or may be stored in a digital storage medium.
- the network may include a broadcasting network and/or a communication network
- the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
- a transmission unit (not shown) for transmitting the signal output from the entropy encoding unit 190 and/or a storage unit (not shown) for storing may be provided as an inner/outer element of the image encoding apparatus 100, or transmission The unit may be provided as a component of the entropy encoding unit 190.
- the quantized transform coefficients output from the quantization unit 130 may be used to generate a residual signal.
- a residual signal residual block or residual samples
- inverse quantization and inverse transform residual transforms
- the addition unit 155 adds the reconstructed residual signal to the prediction signal output from the inter prediction unit 180 or the intra prediction unit 185 to obtain a reconstructed signal (a reconstructed picture, a reconstructed block, and a reconstructed sample array). Can be generated.
- a reconstructed signal (a reconstructed picture, a reconstructed block, and a reconstructed sample array).
- the predicted block may be used as a reconstructed block.
- the addition unit 155 may be referred to as a restoration unit or a restoration block generation unit.
- the generated reconstructed signal may be used for intra prediction of the next processing target block in the current picture, and may be used for inter prediction of the next picture through filtering as described later.
- the filtering unit 160 may apply filtering to the reconstructed signal to improve subjective/objective image quality.
- the filtering unit 160 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture may be converted to the memory 170, specifically, the DPB of the memory 170. Can be saved on.
- the various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, and the like.
- the filtering unit 160 may generate a variety of filtering information and transmit it to the entropy encoding unit 190 as described later in the description of each filtering method.
- the filtering information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
- the modified reconstructed picture transmitted to the memory 170 may be used as a reference picture in the inter prediction unit 180.
- the image encoding apparatus 100 may avoid prediction mismatch between the image encoding apparatus 100 and the image decoding apparatus, and may improve encoding efficiency.
- the DPB in the memory 170 may store a reconstructed picture modified to be used as a reference picture in the inter prediction unit 180.
- the memory 170 may store motion information of a block from which motion information in a current picture is derived (or encoded) and/or motion information of blocks in a picture that have already been reconstructed.
- the stored motion information may be transmitted to the inter prediction unit 180 to be used as motion information of spatial neighboring blocks or motion information of temporal neighboring blocks.
- the memory 170 may store reconstructed samples of reconstructed blocks in the current picture, and may transmit the reconstructed samples to the intra prediction unit 185.
- FIG. 3 is a diagram schematically illustrating an image decoding apparatus to which an embodiment according to the present disclosure can be applied.
- the image decoding apparatus 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, an addition unit 235, a filtering unit 240, and a memory 250. ), an inter prediction unit 260 and an intra prediction unit 265 may be included.
- the inter prediction unit 260 and the intra prediction unit 265 may be collectively referred to as a “prediction unit”.
- the inverse quantization unit 220 and the inverse transform unit 230 may be included in the residual processing unit.
- All or at least some of the plurality of constituent units constituting the image decoding apparatus 200 may be implemented as one hardware component (eg, a decoder or a processor) according to embodiments.
- the memory 170 may include a DPB and may be implemented by a digital storage medium.
- the image decoding apparatus 200 having received a bitstream including video/image information may reconstruct an image by performing a process corresponding to the process performed by the image encoding apparatus 100 of FIG. 2.
- the image decoding apparatus 200 may perform decoding using a processing unit applied in the image encoding apparatus.
- the processing unit of decoding may be, for example, a coding unit.
- the coding unit may be a coding tree unit or may be obtained by dividing the largest coding unit.
- the reconstructed image signal decoded and output through the image decoding apparatus 200 may be reproduced through a reproduction device (not shown).
- the image decoding apparatus 200 may receive a signal output from the image encoding apparatus of FIG. 2 in the form of a bitstream.
- the received signal may be decoded through the entropy decoding unit 210.
- the entropy decoding unit 210 may parse the bitstream to derive information (eg, video/video information) necessary for image restoration (or picture restoration).
- the video/video information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS).
- the video/video information may further include general constraint information.
- the image decoding apparatus may additionally use information on the parameter set and/or the general restriction information to decode an image.
- the signaling information, received information and/or syntax elements mentioned in the present disclosure may be obtained from the bitstream by being decoded through the decoding procedure.
- the entropy decoding unit 210 decodes information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and a value of a syntax element required for image restoration, a quantized value of a transform coefficient related to a residual. Can be printed.
- the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and includes information on the syntax element to be decoded, information on decoding information of a neighboring block and a block to be decoded, or information on a symbol/bin decoded in a previous step
- the context model is determined by using and, according to the determined context model, the probability of occurrence of bins is predicted to perform arithmetic decoding of bins to generate symbols corresponding to the values of each syntax element. I can.
- the CABAC entropy decoding method may update the context model using information of the decoded symbol/bin for the context model of the next symbol/bin after the context model is determined.
- the entropy decoding unit 210 Among the information decoded by the entropy decoding unit 210, information on prediction is provided to the prediction unit (inter prediction unit 260 and intra prediction unit 265), and the register on which entropy decoding is performed by the entropy decoding unit 210 Dual values, that is, quantized transform coefficients and related parameter information may be input to the inverse quantization unit 220. In addition, information about filtering among information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240.
- a receiving unit for receiving a signal output from the image encoding device may be additionally provided as an inner/outer element of the image decoding device 200, or the receiving unit is provided as a component of the entropy decoding unit 210 It could be.
- the video decoding apparatus may include an information decoder (video/video/picture information decoder) and/or a sample decoder (video/video/picture sample decoder).
- the information decoder may include an entropy decoding unit 210, and the sample decoder includes an inverse quantization unit 220, an inverse transform unit 230, an addition unit 235, a filtering unit 240, a memory 250, It may include at least one of the inter prediction unit 260 and the intra prediction unit 265.
- the inverse quantization unit 220 may inverse quantize the quantized transform coefficients and output transform coefficients.
- the inverse quantization unit 220 may rearrange the quantized transform coefficients into a two-dimensional block shape. In this case, the rearrangement may be performed based on a coefficient scan order performed by the image encoding apparatus.
- the inverse quantization unit 220 may perform inverse quantization on quantized transform coefficients by using a quantization parameter (eg, quantization step size information) and obtain transform coefficients.
- a quantization parameter eg, quantization step size information
- the inverse transform unit 230 may inversely transform transform coefficients to obtain a residual signal (residual block, residual sample array).
- the prediction unit may perform prediction on the current block and generate a predicted block including prediction samples for the current block.
- the prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on the prediction information output from the entropy decoding unit 210, and determine a specific intra/inter prediction mode (prediction technique). I can.
- the prediction unit can generate the prediction signal based on various prediction methods (techniques) described later.
- the intra prediction unit 265 may predict the current block by referring to samples in the current picture.
- the description of the intra prediction unit 185 may be equally applied to the intra prediction unit 265.
- the inter prediction unit 260 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture.
- motion information may be predicted in units of blocks, subblocks, or samples based on a correlation between motion information between a neighboring block and a current block.
- the motion information may include a motion vector and a reference picture index.
- the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
- the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block existing in the reference picture.
- the inter prediction unit 260 may construct a motion information candidate list based on neighboring blocks, and derive a motion vector and/or a reference picture index of the current block based on the received candidate selection information.
- Inter prediction may be performed based on various prediction modes (techniques), and the information about the prediction may include information indicating a mode (technique) of inter prediction for the current block.
- the addition unit 235 is reconstructed by adding the obtained residual signal to the prediction signal (predicted block, prediction sample array) output from the prediction unit (including the inter prediction unit 260 and/or the intra prediction unit 265). Signals (restored pictures, reconstructed blocks, reconstructed sample arrays) can be generated. When there is no residual for a block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block.
- the description of the addition unit 155 may be equally applied to the addition unit 235.
- the addition unit 235 may be referred to as a restoration unit or a restoration block generation unit.
- the generated reconstructed signal may be used for intra prediction of the next processing target block in the current picture, and may be used for inter prediction of the next picture through filtering as described later.
- the filtering unit 240 may apply filtering to the reconstructed signal to improve subjective/objective image quality.
- the filtering unit 240 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture may be converted to the memory 250, specifically the DPB of the memory 250. Can be saved on.
- the various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, and the like.
- the (modified) reconstructed picture stored in the DPB of the memory 250 may be used as a reference picture in the inter prediction unit 260.
- the memory 250 may store motion information of a block from which motion information in a current picture is derived (or decoded) and/or motion information of blocks in a picture that have already been reconstructed.
- the stored motion information may be transmitted to the inter prediction unit 260 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block.
- the memory 250 may store reconstructed samples of reconstructed blocks in the current picture, and may be transmitted to the intra prediction unit 265.
- embodiments described in the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the image encoding apparatus 100 are respectively the filtering unit 240 of the image decoding apparatus 200, The same or corresponding to the inter prediction unit 260 and the intra prediction unit 265 may be applied.
- the video/image coding method according to the present disclosure may be performed based on the following image segmentation structure. Specifically, procedures such as prediction, residual processing ((inverse) transformation, (inverse) quantization, etc.), syntax element coding, filtering, etc., which will be described later, are CTU, CU (and/or TU, derived based on the split structure of the image). PU) can be performed.
- the image may be divided in units of blocks, and the block division procedure may be performed by the image splitter 110 of the above-described encoding apparatus.
- Split-related information may be encoded by the entropy encoding unit 190 and transmitted to a decoding apparatus in the form of a bitstream.
- the entropy decoding unit 210 of the decoding apparatus derives the block division structure of the current picture based on the division-related information obtained from the bitstream, and based on this, a series of procedures for decoding an image (ex. prediction, residual). Processing, block/picture restoration, in-loop filtering, etc.) can be performed.
- Pictures can be divided into a sequence of coding tree units (CTUs). 4 shows an example in which a picture is divided into CTUs.
- the CTU may correspond to a coding tree block (CTB).
- CTB coding tree block
- the CTU may include a coding tree block of luma samples and two coding tree blocks of corresponding chroma samples.
- the CTU may include an NxN block of luma samples and two corresponding blocks of chroma samples.
- the coding unit is obtained by recursively dividing a coding tree unit (CTU) or a maximum coding unit (LCU) according to a QT/BT/TT (Quad-tree/binary-tree/ternary-tree) structure.
- CTU coding tree unit
- LCU maximum coding unit
- QT/BT/TT Quad-tree/binary-tree/ternary-tree
- the CTU may be first divided into a quadtree structure. Thereafter, leaf nodes of a quadtree structure may be further divided by a multitype tree structure.
- the division according to the quadtree means division in which the current CU (or CTU) is divided into four. By partitioning according to the quadtree, the current CU can be divided into four CUs having the same width and the same height.
- the current CU corresponds to a leaf node of the quadtree structure.
- the CU corresponding to the leaf node of the quadtree structure is no longer divided and may be used as the above-described final coding unit.
- a CU corresponding to a leaf node of a quadtree structure may be further divided by a multitype tree structure.
- the division according to the multi-type tree structure may include two divisions according to a binary tree structure and two divisions according to a ternary tree structure.
- the two divisions according to the binary tree structure may include vertical binary splitting (SPLIT_BT_VER) and horizontal binary splitting (SPLIT_BT_HOR).
- the vertical binary division (SPLIT_BT_VER) means division in which the current CU is divided into two in the vertical direction. As shown in FIG. 4, two CUs having a height equal to the height of the current CU and a width of half the width of the current CU may be generated by vertical binary division.
- the horizontal binary division means division in which the current CU is divided into two in the horizontal direction. As shown in FIG. 5, two CUs having a height of half the height of the current CU and the width of the current CU may be generated by horizontal binary division.
- the two divisions according to the ternary tree structure may include vertical ternary splitting (SPLIT_TT_VER) and horizontal ternary splitting (hotizontal ternary splitting, SPLIT_TT_HOR).
- Vertical ternary division (SPLIT_TT_VER) divides the current CU in a vertical direction at a ratio of 1:2:1.
- two CUs having a height equal to the height of the current CU and a width of 1/4 of the width of the current CU and a height equal to the height of the current CU by vertical ternary division A CU with a width of half the width of can be created.
- the horizontal ternary division (SPLIT_TT_HOR) divides the current CU horizontally at a ratio of 1:2:1.
- two CUs having a height of 1/4 of the height of the current CU and having the same width as the width of the current CU and a height of half the height of the current CU
- One CU can be created with a width equal to the width of the CU.
- FIG. 6 is a diagram illustrating a signaling mechanism of block division information in a quadtree with nested multi-type tree structure according to the present disclosure.
- the CTU is treated as a root node of a quadtree, and the CTU is first divided into a quadtree structure.
- Information eg, qt_split_flag
- qt_split_flag a first value (eg, “1”)
- the current CU may be quadtree split.
- qt_split_flag is a second value (eg, "0")
- the current CU is not divided into a quadtree, but becomes a leaf node (QT_leaf_node) of the quadtree.
- the leaf nodes of each quadtree can then be further divided into a multi-type tree structure. That is, a leaf node of a quad tree may be a node (MTT_node) of a multi-type tree.
- a first flag (ex. mtt_split_cu_flag) may be signaled to indicate whether the current node is additionally divided.
- a second flag (e.g. mtt_split_cu_verticla_flag) may be signaled to indicate the splitting direction.
- the division direction may be a vertical direction
- the second flag is 0, the division direction may be a horizontal direction.
- a third flag (eg, mtt_split_cu_binary_flag) may be signaled to indicate whether the division type is a binary division type or a ternary division type.
- the division type may be a binary division type
- the third flag when the third flag is 0, the division type may be a ternary division type.
- Nodes of a multitype tree obtained by binary division or ternary division may be further partitioned into a multitype tree structure.
- nodes of a multitype tree cannot be partitioned into a quadtree structure.
- the first flag is 0, the corresponding node of the multitype tree is no longer divided and becomes a leaf node (MTT_leaf_node) of the multitype tree.
- the CU corresponding to the leaf node of the multitype tree may be used as the above-described final coding unit.
- a multi-type tree splitting mode (MttSplitMode) of the CU may be derived as shown in Table 1.
- FIG. 7 shows an example in which a CTU is divided into multiple CUs by applying a multi-type tree after applying a quadtree.
- a bold block edge 710 represents quadtree division
- the remaining edges 720 represent multitype tree division.
- the CU may correspond to a coding block (CB).
- a CU may include a coding block of luma samples and two coding blocks of chroma samples corresponding to the luma samples.
- Chroma component (sample) CB or TB size is the luma component (sample) according to the component ratio according to the color format (chroma format, ex. 4:4:4, 4:2:2, 4:2:0, etc.) of the picture/video. ) Can be derived based on CB or TB size.
- the color format is 4:4:4, the chroma component CB/TB size may be set equal to the luma component CB/TB size.
- the width of the chroma component CB/TB may be set to half the width of the luma component CB/TB, and the height of the chroma component CB/TB may be set to the height of the luma component CB/TB.
- the width of the chroma component CB/TB may be set to half the width of the luma component CB/TB, and the height of the chroma component CB/TB may be set to half the height of the luma component CB/TB.
- the size of the CU when the size of the CTU is 128 based on the luma sample unit, the size of the CU may have a size from 128 x 128 to 4 x 4, which is the same size as the CTU.
- the chroma CB size in the case of a 4:2:0 color format (or chroma format), the chroma CB size may have a size ranging from 64x64 to 2x2.
- the CU size and the TU size may be the same.
- a plurality of TUs may exist in the CU region.
- the TU size may generally represent a luma component (sample) TB (Transform Block) size.
- the TU size may be derived based on a preset maximum allowable TB size (maxTbSize). For example, when the CU size is larger than the maxTbSize, a plurality of TUs (TBs) having the maxTbSize may be derived from the CU, and transformation/inverse transformation may be performed in units of the TU (TB). For example, the maximum allowable luma TB size may be 64x64, and the maximum allowable chroma TB size may be 32x32. If the width or height of the CB divided according to the tree structure is greater than the maximum transform width or height, the CB may be automatically (or implicitly) divided until the TB size limit in the horizontal and vertical directions is satisfied.
- the intra prediction mode/type is derived in the unit of CU (or CB), and the procedure of deriving the neighboring reference sample and generating the prediction sample may be performed in unit of TU (or TB).
- the procedure of deriving the neighboring reference sample and generating the prediction sample may be performed in unit of TU (or TB).
- one or a plurality of TUs (or TBs) may exist in one CU (or CB) region, and in this case, the plurality of TUs (or TBs) may share the same intra prediction mode/type.
- the following parameters may be signaled from the encoding apparatus to the decoding apparatus as SPS syntax elements.
- SPS syntax elements For example, CTU size, a parameter indicating the size of the root node of a quadtree tree, MinQTSize, a parameter indicating the minimum usable size of a quadtree leaf node, MaxBTSize, a parameter indicating the maximum usable size of a binary tree root node, and the maximum of a ternary tree root node.
- MaxTTSize a parameter representing the usable size
- MaxMttDepth a parameter representing the maximum allowed hierarchy depth of a multitype tree divided from a quadtree leaf node
- MinBtSize a parameter representing the minimum usable leaf node size of a binary tree
- At least one of MinTtSize which is a parameter indicating the minimum available leaf node size of the retree, may be signaled.
- the CTU size may be set to a 128x128 luma block and two 64x64 chroma blocks corresponding to the luma block.
- MinQTSize is set to 16x16
- MaxBtSize is set to 128x1208
- MaxTtSzie is set to 64x64
- MinBtSize and MinTtSize may be set to 4x4
- MaxMttDepth may be set to 4.
- Quart tree partitioning can be applied to CTU to create quadtree leaf nodes.
- the quadtree leaf node may be referred to as a leaf QT node.
- Quadtree leaf nodes may have a size of 128x128 (e.g.
- the leaf QT node is 128x128, it may not be additionally divided into a binary tree/ternary tree. This is because in this case, even if it is divided, it exceeds MaxBtsize and MaxTtszie (i.e. 64x64). In other cases, the leaf QT node can be further divided into a multi-type tree. Therefore, the leaf QT node is a root node for a multi-type tree, and the leaf QT node may have a multi-type tree depth (mttDepth) of 0. If the multi-type tree depth reaches MaxMttdepth (ex. 4), further partitioning may not be considered.
- mttDepth multi-type tree depth
- the encoding apparatus may omit signaling of the division information. In this case, the decoding apparatus may derive the segmentation information with a predetermined value.
- one CTU may include a coding block of luma samples (hereinafter, referred to as a “luma block”) and two coding blocks of chroma samples corresponding thereto (hereinafter, referred to as a “chroma block”).
- the above-described coding tree scheme may be applied equally to the luma block and the chroma block of the current CU, or may be applied separately.
- a luma block and a chroma block in one CTU may be divided into the same block tree structure, and the tree structure in this case may be represented as a single tree (SINGLE_TREE).
- a luma block and a chroma block in one CTU may be divided into individual block tree structures, and the tree structure in this case may be represented as a dual tree (DUAL_TREE). That is, when the CTU is divided into a dual tree, a block tree structure for a luma block and a block tree structure for a chroma block may exist separately.
- the block tree structure for the luma block may be referred to as a dual tree luma (DUAL_TREE_LUMA)
- the block tree structure for the chroma block may be referred to as a dual tree chroma (DUAL_TREE_CHROMA).
- luma blocks and chroma blocks in one CTU may be limited to have the same coding tree structure.
- luma blocks and chroma blocks may have separate block tree structures from each other. If an individual block tree structure is applied, a luma coding tree block (CTB) may be divided into CUs based on a specific coding tree structure, and the chroma CTB may be divided into chroma CUs based on a different coding tree structure.
- CTB luma coding tree block
- a CU in an I slice/tile group to which an individual block tree structure is applied is composed of a coding block of a luma component or coding blocks of two chroma components
- a CU of a P or B slice/tile group has three color components (luma component And it may mean that it may be composed of blocks of two chroma components).
- the structure in which the CU is divided is not limited thereto.
- the BT structure and the TT structure may be interpreted as a concept included in the Multiple Partitioning Tree (MPT) structure, and the CU may be interpreted as being divided through the QT structure and the MPT structure.
- MPT Multiple Partitioning Tree
- a syntax element e.g., MPT_split_type
- MPT_split_mode a syntax element including information on which direction of splitting between horizontal and horizontal.
- the CU may be divided in a different way from the QT structure, BT structure, or TT structure. That is, according to the QT structure, the CU of the lower depth is divided into 1/4 size of the CU of the upper depth, or the CU of the lower depth is divided into 1/2 of the CU of the upper depth according to the BT structure, or according to the TT structure. Unlike CUs of lower depth are divided into 1/4 or 1/2 of CUs of higher depth, CUs of lower depth are 1/5, 1/3, 3/8, 3 of CUs of higher depth depending on the case. It may be divided into /5, 2/3, or 5/8 size, and the method of dividing the CU is not limited thereto.
- the quadtree coding block structure accompanying the multi-type tree can provide a very flexible block division structure.
- different partitioning patterns may potentially lead to the same coding block structure result in some cases.
- the encoding device and the decoding device can reduce the amount of data of the split information by limiting the occurrence of such redundant split patterns.
- FIG. 8 exemplarily shows redundant partitioning patterns that may occur in binary tree partitioning and ternary tree partitioning.
- consecutive binary divisions 810 and 820 in one direction of the second level have the same coding block structure as binary division for the center partition after ternary division.
- the binary tree division for the center blocks 830 and 840 of the ternary tree division may be prohibited. This prohibition can be applied to CUs of all pictures.
- signaling of corresponding syntax elements may be modified to reflect such a prohibited case, and through this, the number of bits signaled for division may be reduced. For example, as in the example shown in FIG.
- the mtt_split_cu_binary_flag syntax element indicating whether the division is binary division or tenary division is not signaled, and its value is 0 can be derived by the decoding device.
- the prediction unit of the video encoding apparatus/video decoding apparatus may derive a prediction sample by performing inter prediction in block units.
- Inter prediction may represent prediction derived by a method dependent on data elements (e.g. sample values, motion information, etc.) of a picture(s) other than the current picture.
- motion information of the current block may be predicted in units of blocks, subblocks, or samples based on correlation between motion information between neighboring blocks and the current block.
- the motion information may include a motion vector and a reference picture index.
- the motion information may further include inter prediction type (L0 prediction, L1 prediction, Bi prediction, etc.) information.
- the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block existing in the reference picture.
- the reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different.
- the temporal neighboring block may be called a collocated reference block, a collocated CU (colCU), a collocated block, and the like, and a reference picture including the temporal neighboring block is a collocated picture. It may be called by a name such as picture, colPic), or colPicture.
- a motion information candidate list may be constructed based on neighboring blocks of the current block, and a flag indicating which candidate is selected (used) to derive a motion vector and/or a reference picture index of the current block Alternatively, index information may be signaled.
- Inter prediction may be performed based on various prediction modes.
- motion information of a current block may be the same as motion information of a selected neighboring block.
- a residual signal may not be transmitted.
- MVP motion vector prediction
- a motion vector of a selected neighboring block is used as a motion vector predictor, and a motion vector difference may be signaled.
- the motion vector of the current block may be derived by using the sum of the motion vector predictor and the motion vector difference.
- the MVP mode may have the same meaning as AMVP (Advanced Motion Vector Prediction).
- the motion information may include L0 motion information and/or L1 motion information according to an inter prediction type (L0 prediction, L1 prediction, Bi prediction, etc.).
- the motion vector in the L0 direction may be referred to as an L0 motion vector or MVL0
- the motion vector in the L1 direction may be referred to as an L1 motion vector or MVL1.
- the prediction based on the L0 motion vector may be referred to as L0 prediction
- the prediction based on the L1 motion vector may be referred to as the L1 prediction
- the prediction based on both the L0 motion vector and the L1 motion vector may be referred to as a pair (Bi) prediction.
- I can.
- the motion vector L0 may represent a motion vector associated with the reference picture list L0 (L0), and the motion vector L1 may represent a motion vector associated with the reference picture list L1 (L1).
- the reference picture list L0 may include pictures prior to the current picture in output order as reference pictures, and the reference picture list L1 may include pictures after the current picture in output order.
- the previous pictures may be referred to as forward (reference) pictures, and the subsequent pictures may be referred to as reverse (reference) pictures.
- the reference picture list L0 may further include pictures later in output order than the current picture as reference pictures. In this case, the previous pictures in the reference picture list L0 may be indexed first, and the subsequent pictures may be indexed next.
- the reference picture list L1 may further include pictures preceding the current picture in an output order as reference pictures.
- the subsequent pictures may be indexed first, and the previous pictures may be indexed next.
- the output order may correspond to a picture order count (POC) order.
- POC picture order count
- FIG. 9 is a flowchart illustrating a video/video encoding method based on inter prediction.
- FIG 10 is a diagram illustrating a configuration of an inter prediction unit 180 according to the present disclosure.
- the encoding method of FIG. 9 may be performed by the video encoding apparatus of FIG. 2. Specifically, step S610 may be performed by the inter prediction unit 180, and step S620 may be performed by the residual processing unit. Specifically, step S620 may be performed by the subtraction unit 115. Step S630 may be performed by the entropy encoding unit 190.
- the prediction information of step S630 may be derived by the inter prediction unit 180, and the residual information of step S630 may be derived by the residual processing unit.
- the residual information is information on the residual samples.
- the residual information may include information on quantized transform coefficients for the residual samples.
- the residual samples may be derived as transform coefficients through the transform unit 120 of the image encoding apparatus, and the transform coefficients may be derived as quantized transform coefficients through the quantization unit 130.
- Information about the quantized transform coefficients may be encoded by the entropy encoding unit 190 through a residual coding procedure.
- the image encoding apparatus may perform inter prediction on the current block (S610).
- the image encoding apparatus may derive the inter prediction mode and motion information of the current block and generate prediction samples of the current block.
- the procedure of determining the inter prediction mode, deriving motion information, and generating prediction samples may be performed simultaneously, or one procedure may be performed before the other procedure.
- the inter prediction unit 180 of the video encoding apparatus may include a prediction mode determination unit 181, a motion information derivation unit 182, and a prediction sample derivation unit 183. have.
- a prediction mode determination unit 181 determines a prediction mode for the current block
- a motion information derivation unit 182 derives motion information of the current block
- a prediction sample derivation unit 183 predicts the current block Samples can be derived.
- the inter prediction unit 180 of the video encoding apparatus searches for a block similar to the current block within a predetermined area (search area) of reference pictures through motion estimation, and a difference between the current block and the current block. It is possible to derive a reference block that is less than the minimum or a certain criterion. Based on this, a reference picture index indicating a reference picture in which the reference block is located may be derived, and a motion vector may be derived based on a position difference between the reference block and the current block.
- the image encoding apparatus may determine a mode applied to the current block from among various prediction modes.
- the image encoding apparatus may compare rate-distortion (RD) costs for the various prediction modes and determine an optimal prediction mode for the current block.
- RD rate-distortion
- the method of determining the prediction mode for the current block by the image encoding apparatus is not limited to the above example, and various methods may be used.
- the video encoding apparatus may derive merge candidates from neighboring blocks of the current block and construct a merge candidate list using the derived merge candidates.
- the apparatus for encoding an image may derive a reference block in which a difference from a current block is a minimum or a predetermined reference or less among reference blocks indicated by merge candidates included in the merge candidate list.
- a merge candidate associated with the derived reference block is selected, and merge index information indicating the selected merge candidate may be generated and signaled to the image decoding apparatus.
- Motion information of the current block may be derived using motion information of the selected merge candidate.
- the video encoding apparatus when the MVP mode is applied to the current block, the video encoding apparatus derives motion vector predictor (mvp) candidates from neighboring blocks of the current block, and constructs an mvp candidate list using the derived mvp candidates.
- the image encoding apparatus may use a motion vector of an mvp candidate selected from among mvp candidates included in the mvp candidate list as the mvp of the current block.
- a motion vector indicating a reference block derived by motion estimation described above may be used as a motion vector of the current block, and the difference between the motion vector of the current block among the mvp candidates is the smallest.
- An mvp candidate having a motion vector may be the selected mvp candidate.
- a motion vector difference (MVD) which is a difference obtained by subtracting the mvp from the motion vector of the current block may be derived.
- index information indicating the selected mvp candidate and information about the MVD may be signaled to the video decoding apparatus.
- the value of the reference picture index may be composed of reference picture index information and may be separately signaled to the video decoding apparatus.
- the image encoding apparatus may derive residual samples based on the prediction samples (S620).
- the image encoding apparatus may derive the residual samples by comparing the original samples of the current block with the prediction samples. For example, the residual sample may be derived by subtracting a corresponding prediction sample from an original sample.
- the image encoding apparatus may encode image information including prediction information and residual information (S630).
- the image encoding apparatus may output the encoded image information in the form of a bitstream.
- the prediction information is information related to the prediction procedure and may include information on prediction mode information (eg, skip flag, merge flag or mode index) and motion information.
- the skip flag is information indicating whether the skip mode is applied to the current block
- the merge flag is information indicating whether the merge mode is applied to the current block.
- the prediction mode information may be information indicating one of a plurality of prediction modes, such as a mode index. When the skip flag and the merge flag are each 0, it may be determined that the MVP mode is applied to the current block.
- the information on the motion information may include candidate selection information (eg, merge index, mvp flag or mvp index) that is information for deriving a motion vector.
- the merge index may be signaled when a merge mode is applied to the current block, and may be information for selecting one of merge candidates included in the merge candidate list.
- the mvp flag or mvp index may be signaled when the MVP mode is applied to the current block, and may be information for selecting one of mvp candidates included in the mvp candidate list.
- the information on the motion information may include information on the MVD and/or reference picture index information described above.
- the information on the motion information may include information indicating whether L0 prediction, L1 prediction, or pair (Bi) prediction is applied.
- the residual information is information on the residual samples.
- the residual information may include information on quantized transform coefficients for the residual samples.
- the output bitstream may be stored in a (digital) storage medium and transmitted to an image decoding device, or may be transmitted to an image decoding device through a network.
- the image encoding apparatus may generate a reconstructed picture (a picture including reconstructed samples and a reconstructed block) based on the reference samples and the residual samples. This is because the video encoding apparatus derives the same prediction result as that performed by the video decoding apparatus, and coding efficiency can be improved through this. Accordingly, the apparatus for encoding an image may store a reconstructed picture (or reconstructed samples, and a reconstructed block) in a memory and use it as a reference picture for inter prediction. As described above, an in-loop filtering procedure or the like may be further applied to the reconstructed picture.
- 11 is a flowchart illustrating a video/video decoding method based on inter prediction.
- FIG. 12 is a diagram illustrating an exemplary configuration of an inter prediction unit 260 according to the present disclosure.
- the image decoding apparatus may perform an operation corresponding to an operation performed by the image encoding apparatus.
- the video decoding apparatus may perform prediction on the current block and derive prediction samples based on the received prediction information.
- the decoding method of FIG. 11 may be performed by the video decoding apparatus of FIG. 3.
- Dean systems S810 to S830 may be performed by the inter prediction unit 260, and the prediction information of step S810 and the residual information of step S840 may be obtained from the bitstream by the entropy decoding unit 210.
- the residual processing unit of the image decoding apparatus may derive residual samples for the current block based on the residual information (S840).
- the inverse quantization unit 220 of the residual processing unit derives transform coefficients by performing inverse quantization based on the quantized transform coefficients derived based on the residual information
- the inverse transform unit of the residual processing unit ( 230) may derive residual samples for the current block by performing inverse transform on the transform coefficients.
- Step S850 may be performed by the addition unit 235 or the restoration unit.
- the image decoding apparatus may determine a prediction mode for the current block based on the received prediction information (S810).
- the video decoding apparatus may determine which inter prediction mode is applied to the current block based on prediction mode information in the prediction information.
- the skip mode may be applied to the current block based on the skip flag.
- one of various inter prediction mode candidates may be selected based on the mode index.
- the inter prediction mode candidates may include a skip mode, a merge mode and/or an MVP mode, or may include various inter prediction modes to be described later.
- the video decoding apparatus may derive motion information of the current block based on the determined inter prediction mode (S820). For example, when a skip mode or a merge mode is applied to the current block, the video decoding apparatus may configure a merge candidate list to be described later, and select one merge candidate from among merge candidates included in the merge candidate list. The selection may be performed based on the aforementioned candidate selection information (merge index). Motion information of the current block may be derived using motion information of the selected merge candidate. For example, motion information of the selected merge candidate may be used as motion information of the current block.
- the video decoding apparatus may configure an mvp candidate list and use a motion vector of an mvp candidate selected from among mvp candidates included in the mvp candidate list as the mvp of the current block. have.
- the selection may be performed based on the aforementioned candidate selection information (mvp flag or mvp index).
- the MVD of the current block may be derived based on the information on the MVD
- a motion vector of the current block may be derived based on the mvp of the current block and the MVD.
- a reference picture index of the current block may be derived based on the reference picture index information.
- a picture indicated by the reference picture index in the reference picture list for the current block may be derived as a reference picture referenced for inter prediction of the current block.
- the image decoding apparatus may generate prediction samples for the current block based on the motion information of the current block (S830).
- the reference picture may be derived based on the reference picture index of the current block, and prediction samples of the current block may be derived using samples of a reference block indicated on the reference picture by the motion vector of the current block.
- a prediction sample filtering procedure may be further performed on all or part of the prediction samples of the current block.
- the inter prediction unit 260 of the image decoding apparatus may include a prediction mode determination unit 261, a motion information derivation unit 262, and a prediction sample derivation unit 263. have.
- the inter prediction unit 260 of the video decoding apparatus determines a prediction mode for the current block based on the prediction mode information received from the prediction mode determination unit 261, and motion information received from the motion information derivation unit 262
- the motion information (motion vector and/or reference picture index, etc.) of the current block may be derived based on the information about, and prediction samples of the current block may be derived by the prediction sample deriving unit 263.
- the image decoding apparatus may generate residual samples for the current block based on the received residual information (S840).
- the image decoding apparatus may generate reconstructed samples for the current block based on the prediction samples and the residual samples, and generate a reconstructed picture based on the prediction samples (S850). Thereafter, as described above, an in-loop filtering procedure or the like may be further applied to the reconstructed picture.
- the inter prediction procedure may include determining an inter prediction mode, deriving motion information according to the determined prediction mode, and performing prediction based on the derived motion information (generating a prediction sample).
- the inter prediction procedure may be performed in an image encoding apparatus and an image decoding apparatus.
- inter prediction may be performed using motion information of a current block.
- the video encoding apparatus may derive optimal motion information for the current block through a motion estimation procedure. For example, the image encoding apparatus may search for a similar reference block with high correlation using the original block in the original picture for the current block in units of fractional pixels within a predetermined search range within the reference picture, and derive motion information through this. can do.
- the similarity of blocks can be calculated based on the sum of absolute differences (SAD) between the current block and the reference block.
- SAD sum of absolute differences
- motion information may be derived based on the reference block having the smallest SAD in the search area.
- the derived motion information may be signaled to the video decoding apparatus according to various methods based on the inter prediction mode.
- motion information of the current block is not directly transmitted, and motion information of the current block is derived using motion information of neighboring blocks. Accordingly, motion information of the current prediction block may be indicated by transmitting flag information indicating that the merge mode has been used and candidate selection information indicating which neighboring blocks are used as merge candidates (eg, merge index).
- candidate selection information indicating which neighboring blocks are used as merge candidates (eg, merge index).
- the current block since the current block is a unit for performing prediction, the current block is used in the same meaning as the current prediction block, and the neighboring block may be used in the same meaning as the neighboring prediction block.
- the video encoding apparatus may search for a merge candidate block used to induce motion information of a current block. For example, up to five merge candidate blocks may be used, but the number of merge candidate blocks is not limited thereto. The maximum number of merge candidate blocks may be transmitted in a slice header or a tile group header, but is not limited thereto.
- the image encoding apparatus may generate a merge candidate list, and among them, a merge candidate block having the smallest RD cost may be selected as a final merge candidate block.
- the present disclosure provides various embodiments of a merge candidate block constituting the merge candidate list.
- the merge candidate list may use, for example, five merge candidate blocks.
- four spatial merge candidates and one temporal merge candidate can be used.
- 13 is a diagram illustrating neighboring blocks that can be used as spatial merge candidates.
- FIG. 14 is a diagram schematically illustrating a method of constructing a merge candidate list according to an example of the present disclosure.
- the image encoding apparatus/image decoding apparatus may insert spatial merge candidates derived by searching for spatial neighboring blocks of the current block into the merge candidate list (S1110).
- the spatial neighboring blocks are a block around the lower left corner of the current block (A 0 ), a neighboring block on the left (A 1 ), a block around the upper right corner (B 0 ), as shown in FIG. It may include a neighboring block B 1 and a neighboring block B 2 of the upper left corner.
- additional neighboring blocks such as a right peripheral block, a lower peripheral block, and a right lower peripheral block may be further used as the spatial neighboring blocks.
- the image encoding apparatus/image decoding apparatus may detect available blocks by searching for the spatial neighboring blocks based on priority, and derive motion information of the detected blocks as the spatial merge candidates. For example, the image encoding device/image decoding device searches the five blocks shown in FIG. 13 in the order of A 1 , B 1 , B 0 , A 0 , and B 2 and sequentially indexes the available candidates. You can build a list.
- the image encoding apparatus/image decoding apparatus may insert a temporal merge candidate derived by searching for a temporal neighboring block of the current block into the merge candidate list (S1120).
- the temporal neighboring block may be located on a reference picture that is a picture different from the current picture in which the current block is located.
- the reference picture in which the temporal neighboring block is located may be referred to as a collocated picture or a col picture.
- the temporal neighboring block may be searched in the order of a lower-right corner neighboring block and a lower-right center block of a co-located block with respect to the current block on the col picture. Meanwhile, when motion data compression is applied to reduce the memory load, specific motion information for the col picture may be stored as representative motion information for each predetermined storage unit.
- the predetermined storage unit may be previously determined as, for example, a 16x16 sample unit or an 8x8 sample unit, or size information on the predetermined storage unit may be signaled from an image encoding apparatus to an image decoding apparatus.
- motion information of the temporal neighboring block may be replaced with representative motion information of the predetermined storage unit in which the temporal neighboring block is located.
- the temporal merge candidate may be derived based on motion information of a covered prediction block.
- the coordinates of the temporally neighboring blocks (xTnb, yTnb) If la, the ((xTnb >> n) ⁇ n ) the modified position, ( Motion information of a prediction block located at yTnb>>n) ⁇ n)) may be used for the temporal merge candidate.
- the predetermined storage unit is a 16x16 sample unit
- the modified positions ((xTnb>>4) ⁇ 4), (yTnb The motion information of the prediction block located at >>4) ⁇ 4)) may be used for the temporal merge candidate.
- the predetermined storage unit is an 8x8 sample unit
- the coordinates of the temporal neighboring block are (xTnb, yTnb)
- the modified positions ((xTnb>>3) ⁇ 3), (yTnb> Motion information of the prediction block located at >3) ⁇ 3)) may be used for the temporal merge candidate.
- the image encoding apparatus/image decoding apparatus may check whether the number of current merge candidates is smaller than the number of maximum merge candidates (S1130).
- the number of the maximum merge candidates may be defined in advance or may be signaled from the image encoding apparatus to the image decoding apparatus.
- the image encoding apparatus may generate information on the number of the maximum merge candidates, encode, and transmit the information to the image decoding apparatus in the form of a bitstream.
- a subsequent candidate addition process (S1140) may not proceed.
- step S1130 if the number of the current merge candidates is smaller than the number of the maximum merge candidates, the video encoding apparatus/video decoding apparatus may derive an additional merge candidate according to a predetermined method and then insert it into the merge candidate list. Yes (S1140).
- the image encoding apparatus/video decoding apparatus may terminate the construction of the merge candidate list.
- the image encoding apparatus may select an optimal merge candidate among merge candidates constituting the merge candidate list based on RD cost, and signals candidate selection information (ex. merge index) indicating the selected merge candidate to the image decoding apparatus. can do.
- the video decoding apparatus may select the optimal merge candidate based on the merge candidate list and the candidate selection information.
- motion information of the selected merge candidate may be used as motion information of the current block, and prediction samples of the current block may be derived based on the motion information of the current block.
- the image encoding apparatus may derive residual samples of the current block based on the prediction samples, and may signal residual information about the residual samples to the image decoding apparatus.
- the image decoding apparatus may generate reconstructed samples based on the residual samples derived based on the residual information and the prediction samples, and generate a reconstructed picture based on the residual samples.
- motion information of the current block may be derived in the same manner as previously applied to the merge mode.
- the skip mode is applied, the residual signal for the corresponding block is omitted, and thus prediction samples can be directly used as reconstructed samples.
- a motion vector of a reconstructed spatial neighboring block eg, a neighboring block shown in FIG. 13
- a motion vector corresponding to a temporal neighboring block or Col block
- a motion vector predictor (mvp) candidate list may be generated. That is, a motion vector of the reconstructed spatial neighboring block and/or a motion vector corresponding to the temporal neighboring block may be used as a motion vector predictor candidate of the current block.
- an mvp candidate list for deriving L0 motion information and an mvp candidate list for deriving L1 motion information may be separately generated and used.
- Prediction information (or information on prediction) for the current block is candidate selection information indicating an optimal motion vector predictor candidate selected from among motion vector predictor candidates included in the mvp candidate list (ex. MVP flag or MVP index) It may include.
- the prediction unit may select a motion vector predictor of the current block from among the motion vector predictor candidates included in the mvp candidate list using the candidate selection information.
- the predictor of the video encoding apparatus may obtain a motion vector difference (MVD) between the motion vector of the current block and the motion vector predictor, encode the motion vector, and output it in the form of a bitstream. That is, MVD may be obtained by subtracting the motion vector predictor from the motion vector of the current block.
- MVD motion vector difference
- the prediction unit of the image decoding apparatus may obtain a motion vector difference included in the prediction information, and derive the motion vector of the current block by adding the motion vector difference and the motion vector predictor.
- the prediction unit of the video decoding apparatus may obtain or derive a reference picture index indicating a reference picture from the prediction information.
- 15 is a diagram schematically illustrating a method of constructing a motion vector predictor candidate list according to an example of the present disclosure.
- a spatial candidate block of the current block may be searched and an available candidate block may be inserted into the mvp candidate list (S1210). Thereafter, it is determined whether there are less than two mvp candidates included in the mvp candidate list (S1220), and if there are two, the construction of the mvp candidate list may be completed.
- step S1220 when there are less than two available spatial candidate blocks, a temporal candidate block of the current block may be searched and an available candidate block may be inserted into the mvp candidate list (S1230).
- the construction of the mvp candidate list may be completed by inserting a zero motion vector into the mvp candidate list (S1240).
- a reference picture index may be explicitly signaled.
- a reference picture index (refidxL0) for L0 prediction and a reference picture index (refidxL1) for L1 prediction may be classified and signaled.
- refidxL0 when the MVP mode is applied and BI prediction is applied, both information on refidxL0 and information on refidxL1 may be signaled.
- information on MVD derived from the video encoding apparatus may be signaled to the video decoding apparatus.
- the information on the MVD may include, for example, information indicating the absolute value of the MVD and the x and y components of the sign. In this case, information indicating whether the absolute MVD value is greater than 0 and greater than 1, and the rest of the MVD may be signaled in stages. For example, information indicating whether the absolute MVD value is greater than 1 may be signaled only when a value of flag information indicating whether the absolute MVD value is greater than 0 is 1.
- 16 is a diagram illustrating a syntax structure for transmitting MVD from an image encoding device to an image decoding device according to an example of the present disclosure.
- abs_mvd_greater0_flag[0] indicates whether the absolute value of the x component of MVD is greater than 0
- abs_mvd_greater0_flag[1] indicates whether the absolute value of the y component of MVD is greater than 0.
- abs_mvd_greater1_flag[0] indicates whether the absolute value of the x component of MVD is greater than 1
- abs_mvd_greater1_flag[1] indicates whether the absolute value of the y component of MVD is greater than 1.
- abs_mvd_greater1_flag can be transmitted only when abs_mvd_greater0_flag is 1. In FIG.
- abs_mvd_minus2 represents a value obtained by subtracting 2 from the absolute value of MVD
- mvd_sign_flag represents whether the sign of MVD is positive or negative.
- MVD[compIdx] abs_mvd_greater0_flag[compIdx]*(abs_mvd_minus2[compIdx] + 2) *(1-2 * mvd_sign_flag[compIdx])
- MVD (MVDL0) for L0 prediction and MVD (MVDL1) for L1 prediction may be differentiated and signaled, and the information on MVD may include information on MVDL0 and/or information on MVDL1.
- the MVP mode is applied to the current block and BI prediction is applied, both the information on the MVDL0 and the information on the MVDL1 may be signaled.
- the IBC prediction may be performed by a prediction unit of an image encoding apparatus/image decoding apparatus.
- the IBC prediction can be simply called IBC.
- the IBC may be used for content image/movie coding such as games, such as, for example, screen content coding (SCC).
- SCC screen content coding
- the IBC basically performs prediction in the current picture, but may be performed similarly to inter prediction in that it derives a reference block in the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this disclosure. For example, in IBC, at least one of the aforementioned methods of deriving motion information (motion vector) may be used. At least one of the inter prediction techniques may be partially modified and used in consideration of the IBC prediction.
- the IBC may refer to the current picture, and thus may be referred to as CPR (current picture referencing).
- the video encoding apparatus may derive an optimal block vector (or motion vector) for a current block (ex. CU) by performing block matching (BM).
- the derived block vector (or motion vector) may be signaled to an image decoding apparatus through a bitstream using a method similar to signaling of motion information (motion vector) in the above-described inter prediction.
- the video decoding apparatus may derive a reference block for the current block in the current picture through the signaled block vector (motion vector), and through this, a prediction signal (predicted block or prediction samples) for the current block.
- the block vector (or motion vector) may represent a displacement from a current block to a reference block located in an already reconstructed area in the current picture.
- the block vector (or motion vector) may be called a displacement vector.
- the motion vector may correspond to the block vector or the displacement vector.
- the motion vector of the current block may include a motion vector for a luma component (a luma motion vector) or a motion vector for a chroma component (a chroma motion vector).
- the luma motion vector for the IBC coded CU may be in integer sample units (ie, integer precision).
- the chroma motion vector can also be clipped in units of integer samples.
- the IBC may use at least one of inter prediction techniques, and for example, the luma motion vector may be encoded/decoded using the merge mode or the MVP mode described above.
- the merge candidate list for the luma IBC block may be configured similarly to the merge candidate list in the inter mode described with reference to FIG. 14.
- a temporal neighboring block may not be used as a merge candidate.
- the mvp candidate list for the luma IBC block may be configured similarly to the mvp candidate list in the inter mode described with reference to FIG. 15.
- a temporal candidate block may not be used as an mvp candidate.
- the IBC derives a reference block from an already reconstructed area in the current picture.
- a predefined area among the reconstructed areas in the current picture may be referenced.
- the predefined area may include a current CTU including a current block.
- An image encoding apparatus performing IBC may search for the predefined area to determine a reference block having the smallest RD cost, and derive a motion vector (block vector) based on the positions of the reference block and the current block.
- IBC performance information Whether to apply IBC to the current block may be signaled as IBC performance information at the CU level.
- Information on a signaling method (IBC MVP mode or IBC skip/merge mode) of the motion vector of the current block may be signaled.
- the IBC performance information may be used to determine the prediction mode of the current block. Accordingly, the IBC performance information may be included in the information on the prediction mode of the current block.
- a merge candidate index may be signaled and used to indicate a block vector to be used for prediction of a current luma block among block vectors included in the merge candidate list.
- the merge candidate list may include neighboring blocks encoded with IBC.
- the merge candidate list may include a spatial merge candidate and may be configured not to include a temporal merge candidate.
- the merge candidate list may additionally include a history-based motion vector predictor (HMVP) candidate and/or a pairwise candidate.
- HMVP history-based motion vector predictor
- the block vector difference value may be encoded in the same manner as the motion vector difference value of the aforementioned inter mode.
- the block vector prediction method may construct and use an mvp candidate list including two candidates as predictors, similar to the MVP mode of the inter mode.
- One of the two candidates may be derived from a left neighboring block, and the other one may be derived from an upper neighboring block.
- a candidate can be derived from the neighboring block only when the left or upper neighboring block is encoded by IBC. If the left or upper neighboring block is not available, for example, if it is not encoded by IBC, a default block vector may be included in the mvp candidate list as a predictor.
- the mvp candidate list may include an HMVP candidate and/or a zero motion vector as a default block vector.
- the HMVP candidate may be referred to as a history-based MVP candidate, and the MVP candidate, merge candidate, or block vector candidate used before encoding/decoding of the current block may be stored in the HMVP list as the HMVP candidate. Thereafter, when the merge candidate list or mvp candidate list of the current block does not include the maximum number of candidates, the candidates stored in the HMVP list may be added to the merge candidate list or mvp candidate list of the current block as HMVP candidates.
- the pairwise candidate refers to a candidate derived by selecting two candidates according to a predetermined order among candidates already included in the merge candidate list of the current block and averaging the selected two candidates.
- 17 is a flowchart illustrating an IBC-based video/video encoding method.
- FIG. 18 is a diagram illustrating an exemplary configuration of a prediction unit that performs an IBC-based video/video encoding method according to the present disclosure.
- the encoding method of FIG. 17 may be performed by the video encoding apparatus of FIG. 2. Specifically, step S1410 may be performed by the prediction unit, and step S1420 may be performed by the residual processing unit. Specifically, step S1420 may be performed by the subtraction unit 115. Step S1430 may be performed by the entropy encoding unit 190.
- the prediction information of step S1430 may be derived by the prediction unit, and the residual information of step S1430 may be derived by the residual processing unit.
- the residual information is information on the residual samples.
- the residual information may include information on quantized transform coefficients for the residual samples.
- the residual samples may be derived as transform coefficients through the transform unit 120 of the image encoding apparatus, and the transform coefficients may be derived as quantized transform coefficients through the quantization unit 130.
- Information about the quantized transform coefficients may be encoded by the entropy encoding unit 190 through a residual coding procedure.
- the image encoding apparatus may perform IBC prediction (IBC-based prediction) on the current block (S1410).
- the image encoding apparatus may derive a prediction mode and a motion vector (block vector) of the current block, and generate prediction samples of the current block.
- the prediction mode may include at least one of the aforementioned inter prediction modes.
- a procedure for determining a prediction mode, deriving a motion vector, and generating prediction samples may be performed simultaneously, or one procedure may be performed prior to another procedure.
- a prediction unit of an image encoding apparatus that performs an IBC-based video/image encoding method may include a prediction mode determination unit, a motion vector derivation unit, and a prediction sample derivation unit.
- a prediction mode determination unit may determine a prediction mode for the current block, a motion vector derivation unit may derive a motion vector of the current block, and a prediction sample derivation unit may derive prediction samples of the current block.
- the prediction unit of the video encoding apparatus searches for a block similar to the current block within the reconstructed area (or a certain area (search area) of the reconstructed area) of the current picture, and the difference from the current block is minimal or Reference blocks below a certain standard can be derived.
- the image encoding apparatus may derive a motion vector based on a difference in displacement between the reference block and the current block.
- the image encoding apparatus may determine a mode applied to the current block from among various prediction modes.
- the video encoding apparatus may compare rate-distortion costs for the various prediction modes and determine an optimal prediction mode for the current block.
- the method of determining the prediction mode for the current block by the image encoding apparatus is not limited to the above example, and various methods may be used.
- the video encoding apparatus may derive merge candidates from neighboring blocks of the current block and construct a merge candidate list using the derived merge candidates.
- the image encoding apparatus may derive a reference block in which a difference between the current block and the current block among reference blocks indicated by merge candidates included in the merge candidate list is a minimum or less than a predetermined reference.
- a merge candidate associated with the derived reference block is selected, and merge index information indicating the selected merge candidate may be generated and signaled to the image decoding apparatus.
- the motion vector of the current block may be derived by using the motion vector of the selected merge candidate.
- the video encoding apparatus when the MVP mode is applied to the current block, the video encoding apparatus derives motion vector predictor (mvp) candidates from neighboring blocks of the current block, and constructs an mvp candidate list using the derived mvp candidates.
- the image encoding apparatus may use a motion vector of an mvp candidate selected from among mvp candidates included in the mvp candidate list as the mvp of the current block.
- a motion vector indicating a reference block derived by motion estimation described above may be used as a motion vector of the current block, and the difference between the motion vector of the current block among the mvp candidates is the smallest.
- An mvp candidate having a motion vector may be the selected mvp candidate.
- a motion vector difference (MVD) which is a difference obtained by subtracting the mvp from the motion vector of the current block may be derived.
- index information indicating the selected mvp candidate and information about the MVD may be signaled to the video decoding apparatus.
- the image encoding apparatus may derive residual samples based on the prediction samples (S1420).
- the image encoding apparatus may derive the residual samples by comparing the original samples of the current block with the prediction samples. For example, the residual sample may be derived by subtracting a corresponding prediction sample from an original sample.
- the image encoding apparatus may encode image information including prediction information and residual information (S1430).
- the image encoding apparatus may output the encoded image information in the form of a bitstream.
- the prediction information is information related to the prediction procedure and may include prediction mode information (eg, skip flag, merge flag or mode index, etc.) and information on a motion vector.
- the prediction mode information e.g, skip flag, merge flag or mode index, etc.
- the skip flag is information indicating whether the skip mode is applied to the current block
- the merge flag is information indicating whether the merge mode is applied to the current block.
- the prediction mode information may be information indicating one of a plurality of prediction modes, such as a mode index. When the skip flag and the merge flag are each 0, it may be determined that the MVP mode is applied to the current block.
- the information on the motion vector may include candidate selection information (eg, merge index, mvp flag or mvp index) that is information for deriving a motion vector.
- candidate selection information eg, merge index, mvp flag or mvp index
- the merge index may be signaled when a merge mode is applied to the current block, and may be information for selecting one of merge candidates included in the merge candidate list.
- the mvp flag or mvp index may be signaled when the MVP mode is applied to the current block, and may be information for selecting one of mvp candidates included in the mvp candidate list.
- the information on the motion vector may include information on the above-described MVD.
- the information on the motion vector may include information indicating whether L0 prediction, L1 prediction, or bi prediction is applied.
- the residual information is information on the residual samples.
- the residual information may include information on quantized transform coefficients for the residual samples.
- the output bitstream may be stored in a (digital) storage medium and transmitted to an image decoding device, or may be transmitted to an image decoding device through a network.
- the image encoding apparatus may generate a reconstructed picture (a picture including reconstructed samples and a reconstructed block) based on the reference samples and the residual samples. This is because the video encoding apparatus derives the same prediction result as that performed by the video decoding apparatus, and coding efficiency can be improved through this. Accordingly, the apparatus for encoding an image may store a reconstructed picture (or reconstructed samples, and a reconstructed block) in a memory and use it as a reference picture for inter prediction. As described above, an in-loop filtering procedure or the like may be further applied to the reconstructed picture.
- 19 is a flowchart illustrating an IBC-based video/video decoding method.
- FIG. 20 is a diagram illustrating a configuration of a prediction unit that performs an IBC-based video/video decoding method according to the present disclosure.
- the image decoding apparatus may perform an operation corresponding to an operation performed by the image encoding apparatus.
- the image decoding apparatus may perform IBC prediction on the current block and derive prediction samples based on the received prediction information.
- the decoding method of FIG. 19 may be performed by the video decoding apparatus of FIG. 3.
- Dean systems S1610 to S1630 may be performed by the prediction unit, and the prediction information of step S1610 and the residual information of step S1640 may be obtained from the bitstream by the entropy decoding unit 210.
- the residual processing unit of the image decoding apparatus may derive residual samples for the current block based on the residual information (S1640).
- the inverse quantization unit 220 of the residual processing unit derives transform coefficients by performing inverse quantization based on the quantized transform coefficients derived based on the residual information
- the inverse transform unit of the residual processing unit ( 230) may derive residual samples for the current block by performing inverse transform on the transform coefficients.
- Step S1650 may be performed by the addition unit 235 or the restoration unit.
- the image decoding apparatus may determine a prediction mode for the current block based on the received prediction information (S1610).
- the video decoding apparatus may determine which prediction mode is applied to the current block based on prediction mode information in the prediction information.
- the prediction mode candidates may include a skip mode, a merge mode and/or an MVP mode, or may include the aforementioned various inter prediction modes.
- the image decoding apparatus may derive a motion vector of the current block based on the determined prediction mode (S1620). For example, when a skip mode or a merge mode is applied to the current block, the video decoding apparatus may configure the above-described merge candidate list and select one merge candidate from among merge candidates included in the merge candidate list. The selection may be performed based on the aforementioned candidate selection information (merge index).
- the motion vector of the current block may be derived by using the motion vector of the selected merge candidate. For example, the motion vector of the selected merge candidate may be used as the motion vector of the current block.
- the video decoding apparatus may configure an mvp candidate list and use a motion vector of an mvp candidate selected from among mvp candidates included in the mvp candidate list as the mvp of the current block. have.
- the selection may be performed based on the aforementioned candidate selection information (mvp flag or mvp index).
- the MVD of the current block may be derived based on the information on the MVD, and a motion vector of the current block may be derived based on the mvp of the current block and the MVD.
- the image decoding apparatus may generate prediction samples for the current block based on the motion vector of the current block (S1630). Predictive samples of the current block may be derived using samples of a reference block indicated by the motion vector of the current block on the current picture. In some cases, a prediction sample filtering procedure may be further performed on all or part of the prediction samples of the current block.
- a prediction unit of an image decoding apparatus may include a prediction mode determination unit, a motion vector derivation unit, and a prediction sample derivation unit.
- the prediction unit of the video decoding apparatus determines a prediction mode for the current block based on the prediction mode information received from the prediction mode determination unit, and moves the current block based on the information on the motion vector received from the motion vector derivation unit.
- a vector may be derived, and a prediction sample deriving unit may derive prediction samples of the current block.
- the image decoding apparatus may generate residual samples for the current block based on the received residual information (S1640).
- the image decoding apparatus may generate reconstructed samples for the current block based on the prediction samples and the residual samples, and generate a reconstructed picture based on the prediction samples. (S1650). Thereafter, as described above, an in-loop filtering procedure or the like may be further applied to the reconstructed picture.
- one unit may include a luma block (a luma coding block (CB)) and a chroma block (chroma CB).
- the luma block and the corresponding chroma block may have the same motion information (eg, a motion vector) or different motion information.
- the motion information of the chroma block is derived based on the motion information of the luma block, so that the luma block and the corresponding chroma block may have the same motion information.
- the size of the CU when the size of the CTU is 128 based on the luma sample length, the size of the CU may have a size from 128 x 128 to 4 x 4, which is the same size as the CTU.
- the size of the chroma block When the current color format is the 4:2:0 color format, the size of the chroma block may range from 64x64 to 2x2.
- the encoding/decoding apparatus may determine whether a predetermined splitting mode is allowed for the current block based on whether the current block is a chroma block and a width or height of the current block.
- a decoding apparatus will be described, but the following description may be applied correspondingly to an encoding apparatus.
- FIG. 21 is a diagram illustrating a method of determining whether vertical ternary division (SPLIT_TT_VER) is allowed for a current block by the decoding apparatus.
- the decoding apparatus may determine whether the current block is a chroma block (S2110).
- the decoding apparatus may check a value of a cIdx parameter indicating a color component of the current block to determine whether the current block is a chroma block. If the value of cIdx is 0, the decoding apparatus may determine that the current block is a luma block. If the value of cIdx is greater than 0, the decoding apparatus may determine that the current block is a luma block.
- the decoding apparatus may determine that the current block is a chroma cb block. If the value of cIdx is 2, the decoding apparatus may determine that the current block is a chroma cr block.
- the decoding apparatus may determine whether the width of the current block is 8 samples or less (S2120). If the value of the parameter representing the width of the current block is 8 or less, the decoding apparatus may determine that the width of the current block is 8 or less.
- the width of the chroma block may be determined based on the width of the corresponding luma block.
- the width of the current chroma block may be determined based on the width of the luma block and the color format of the current image.
- the width and height of the chroma block may be set to the width and height of the luma block.
- the width of the chroma block may be set to half the width of the luma block
- the height of the chroma block may be set to the height of the luma block.
- the width of the chroma block may be set to half the width of the luma block
- the height of the chroma block may be set to half the height of the luma block.
- the decoding apparatus may perform step S2120 by determining whether the width of the luma block is 8 or less.
- the decoding apparatus may perform step S2120 by determining whether the width of the luma block is 16 or less.
- the decoding apparatus may determine that vertical ternary division is not allowed for the current block (S2130).
- the decoding apparatus may determine that vertical ternary division is allowed in the current block if such conditions are not met. In this case, the decoding apparatus may determine whether vertical ternary division is allowed for the current block by determining an additional condition in which the current block cannot be divided by vertical ternary division (S2140).
- MaxMttDepth a parameter representing the maximum allowed hierarchy depth of a multitype tree divided from the quadtree leaf node. It can be determined that vertical ternary division is not allowed for the block, and when it is less than or equal to the value of MaxMttDepth, it can be determined that vertical ternary division is allowed for the current block.
- the decoding apparatus may determine whether the current block is a chroma block (S2210). As described above, the decoding apparatus may check a value of the cIdx parameter indicating a color element of the current block to determine whether the current block is a chroma block.
- the decoding apparatus may determine whether the height of the current block is less than or equal to 8 samples (S2220). If the value of the parameter indicating the height of the current block is 8 or less, the decoding device may determine that the height of the current block is 8 or less. Alternatively, as described above, the decoding apparatus may perform step S2220 based on whether the height of the luma block is 8 or 16 or less according to the color format of the current block.
- the height of the chroma block may be determined based on the height of the corresponding luma block. For example, when the color format of the current block is 4:4:4 or 4:2:2, the decoding apparatus may perform step S2220 by determining whether the height of the luma block is 8 or less. In the same way, when the color format of the current block is 4:2:2, the decoding apparatus may perform step S2220 by determining whether the height of the luma block is 16 or less.
- the decoding apparatus may determine that horizontal ternary division is not allowed for the current block (S2230).
- the decoding apparatus may determine that horizontal ternary division is allowed for the current block when such conditions are not met. In this case, the decoding apparatus may determine whether horizontal ternary division is allowed in the current block by determining an additional condition in which horizontal ternary division is not allowed in the current block as described above (S2140). For example, if the number of times the current block is divided from a quadtree leaf node is greater than the value of MaxMttDepth, a parameter representing the maximum allowed hierarchy depth of a multitype tree divided from the quadtree leaf node, It can be determined that horizontal ternary division is not allowed in the block, and when it is less than or equal to the value of MaxMttDepth, it can be determined that horizontal ternary division is allowed.
- FIG. 23 is a diagram for explaining a method of determining whether or not horizontal binary division (SPLIT_BT_HOR) is allowed for the current block by the decoding apparatus.
- the decoding apparatus may determine whether the current block is a chroma block (S2310). As described above, the decoding apparatus may check a value of the cIdx parameter indicating a color element of the current block to determine whether the current block is a chroma block.
- the decoding apparatus may determine whether the height of the current block is 4 samples or less (S2320). If the value of the parameter indicating the height of the current block has a value of 4 or less, the decoding apparatus may determine that the height of the current block is 4 or less. Alternatively, as described above, the decoding apparatus may perform step S2320 based on whether the height of the luma block is 4 or 8 or less according to the color format of the current block. For example, when the color format of the current block is 4:4:4 or 4:2:2, the decoding apparatus may perform step S2320 by determining whether the height of the luma block is 4 or less. In the same way, when the color format of the current block is 4:2:2, the decoding apparatus may perform step S2320 by determining whether the height of the luma block is 8 or less.
- the decoding apparatus may determine that horizontal binary division is not allowed for the current block (S2330).
- the decoding apparatus may determine that horizontal binary division is allowed for the current block when such conditions are not met. In this case, the decoding apparatus may determine whether horizontal binary division is allowed for the current block by determining an additional condition in which horizontal binary division is not allowed for the current block as described above (S2340). For example, if the number of times the current block is divided from a quadtree leaf node is greater than the value of MaxMttDepth, a parameter representing the maximum allowed hierarchy depth of a multitype tree divided from the quadtree leaf node, It can be determined that horizontal binary division is not allowed for the block, and when it is less than the value of MaxMttDepth, it can be determined that horizontal binary division is allowed.
- MaxMttDepth a parameter representing the maximum allowed hierarchy depth of a multitype tree divided from the quadtree leaf node
- FIG. 24 is a diagram for explaining a method of determining whether or not vertical binary division (SPLIT_BT_VER) is allowed for the current block by the decoding apparatus.
- the decoding apparatus may determine whether the current block is a chroma block (S2410). As described above, the decoding apparatus may check a value of the cIdx parameter indicating a color element of the current block to determine whether the current block is a chroma block.
- the decoding apparatus may determine whether the width of the current block is less than or equal to 4 samples in length (S2420). If the value of the parameter indicating the width of the current block is 4 or less, the decoding apparatus may determine that the width of the current block is 4 or less. Alternatively, as described above, the decoding apparatus may perform step S2420 based on whether the width of the luma block is 4 or 8 or less according to the color format of the current block. For example, when the color format of the current block is 4:4:4, the decoding apparatus may perform step S2420 by determining whether the width of the luma block is 4 or less. In the same way, when the color format of the current block is 4:2:2 or 4:2:0, the decoding apparatus may perform step S2420 by determining whether the width of the luma block is 8 or less.
- the decoding apparatus may determine that vertical binary division is not allowed for the current block (S2430).
- the decoding apparatus may determine that vertical binary division is allowed for the current block when the above condition is not met. In this case, the decoding apparatus may determine whether vertical binary division is allowed for the current block by determining an additional condition in which vertical binary division is not allowed for the current block as described above (S2440). For example, if the number of times the current block is divided from a quadtree leaf node is greater than the value of MaxMttDepth, a parameter representing the maximum allowed hierarchy depth of a multitype tree divided from the quadtree leaf node, It can be determined that vertical binary division is not allowed for the block, and when it is less than or equal to the value of MaxMttDepth, it can be determined that vertical binary division is allowed.
- the minimum allowable size of the luma block may be determined as 8.
- motion information of the chroma block may be derived as a value of motion information of the luma block.
- the motion information may be a motion vector.
- FIG. 25 is a diagram illustrating a method of inducing motion information of a chroma sub-block by using motion information of a luma sub-block by a decoding apparatus according to an embodiment. Referring to FIG. 25, a method of inducing motion information of a chroma sub-block by using motion information of an 8x8 luma sub-block corresponding to a 4x4 chroma sub-block by the decoding apparatus will be described.
- the decoding apparatus may divide a luma block of a CTU according to partition information of a luma block based on a dual tree.
- the decoding apparatus may divide the chroma cb block and the cr block of the CTU according to the division information of the chroma block based on the dual tree (S2510).
- the decoding apparatus may derive the number of luma sub-blocks constituting the luma block with respect to the luma block corresponding to the chroma block (S2520).
- the decoding apparatus may calculate the number of columns of the luma sub-block by dividing the width of the luma block by 8 or performing a right shift operation three times on a 2-bit value representing the width of the luma block, and may store this in a numSbX parameter.
- the decoding apparatus can calculate the number of rows of the luma sub-block by dividing the height of the luma block by 8 or by performing a right shift operation three times on a 2-bit value representing the height of the luma block, and this is used in the numSbY parameter. Can be saved.
- the formula for this can be expressed as follows.
- cbWidth may be a parameter representing the width of the luma block
- cbHeight may be a parameter representing the height of the luma block in units of pixels.
- the decoding apparatus may determine a luma sub-block corresponding to the chroma sub-block (S2530).
- the decoding apparatus may determine the upper left sample coordinates of the luma subblock by adding the indexes (xSbIdx, ySbIdx) of the luma subblock scaled to 8, which is the minimum allowable size of the luma block, to the upper left sample coordinates of the luma block. This can be expressed by the following formula.
- (xCuY, yCyY) represents the coordinates of the upper left sample of the luma sub-block
- xSbIdx represents the x-axis index of the luma sub-block
- ySbIdx represents the y-axis index of the luma sub-block.
- xSbIdx may have a value from 0 to numSbX-1
- ySbIdx may have a value from 0 to numSbY-1.
- the decoding apparatus may derive motion information of the luma sub-block according to the prediction mode of the luma sub-block (S2540).
- the prediction mode of the luma sub-block is the IBC prediction mode
- the decoding apparatus may set the motion information arrangement of the luma sub-block specified by the luma sub-block index using motion information of the luma sub-block. This can be expressed by the following equation.
- mvL[ xSbIdx ][ ySbIdx ][ 0] represents the x component of the motion information of the luma sub-block expressed by the luma sub-block index (xSbIdx, ySbIdx), and mvL[ xSbIdx ][ ySbIdx ][ 1] is the corresponding luma sub-block Represents the y component of block motion information.
- the decoding apparatus may set all motion information of the luma sub-block to 0. This can be expressed by the following equation.
- the decoding apparatus may determine motion information of the chroma sub-block based on motion information of the luma sub-block (S2550).
- the decoding apparatus may determine the motion information of the chroma sub-block by multiplying or adding motion information of the luma sub-block represented by the luma sub-block index (xSbIdx, ySbIdx) by a predetermined scaling factor.
- FIG. 26 is a flowchart illustrating a method of encoding an image by an encoding apparatus according to an exemplary embodiment.
- an encoding method for performing the above-described embodiments 1 to 5 will be described with reference to FIG. 26.
- the encoding apparatus may determine whether a predetermined division is allowed for the current block based on the size of the current block (S2610).
- the encoding apparatus may determine whether the current block can be divided into sub-blocks by allowing a predetermined division of the current block based on the width or height of the current block.
- the encoding apparatus may determine whether division is allowed for the current block based on whether the current block satisfies the conditions in which division by the quadtree and multitree described above may occur. In one embodiment, the encoding apparatus determines whether the current block can be divided into any one of a vertical ternary division, a horizontal ternary division, a vertical binary division, and a horizontal binary division based on the aforementioned embodiments 1 to 4. You can decide.
- the encoding apparatus may divide the current block based on whether predetermined division is allowed (S2620).
- the encoding apparatus may perform encoding of the current block by applying an allowable segmentation mode among the quadtree and multitree segmentation modes described above, and may calculate an RD cost according to each segmentation mode.
- the encoding apparatus may determine a split mode applied to the current block according to an RD cost determined according to each split mode. For example, the encoding apparatus allows the division of the current block in the horizontal ternary mode, and when the best RD cost is calculated when the current block is divided and encoded in the corresponding mode, the horizontal ternary mode is the division mode of the current block. It can be determined that the mode is applied.
- the encoding apparatus may encode information about the division of the current block and encode the current block based on whether a predetermined division is allowed (S2630).
- the encoding apparatus may encode information on the division of the current block to indicate the division mode of the current block.
- the encoding apparatus may indicate whether the current block is divided into a quadtree structure by using qt_split_flag as described above.
- the encoding apparatus may encode by setting qt_split_flag to a first value (e.g. 1).
- the encoding apparatus may encode by setting qt_split_flag to a second value (e.g. 0).
- the encoding apparatus may indicate whether the current block is divided into a multitree, using mtt_split_cu_flag, which is multitree division information.
- the encoding apparatus may encode by setting mtt_split_cu_flag to a first value (e.g. 1).
- the encoding apparatus may encode by setting mtt_split_cu_flag to a second value (e.g. 0).
- the encoding apparatus may encode mtt_split_cu_verticla_flag and mtt_split_cu_binary_flag to indicate the multitree splitting type and the multitree splitting direction of the current block.
- mtt_split_cu_vertical_flag may be set to a first value (e.g. 0) when the current block is divided in a horizontal direction, and may be set to a second value (e.g. 1) when the current block is divided in a vertical direction.
- mtt_split_cu_binary_flag may be set to a first value (e.g. 0) when the current block is divided into a ternary tree, and may be set to a second value (e.g.1) when the current block is divided into a binary tree.
- the encoding apparatus includes split_cu_flag (2710), which is split-performing information indicating whether division of the current block is performed, and a quad-tree indicating whether quadtree division of the current block is performed.
- Split_qt_flag (2720) which is split information
- mtt_split_cu_vertical_flag (2730) which is split direction information indicating the splitting direction of the current block in the multi-tree structure, and indicates whether the split type of the current block is a binary split type or a ternary split type in a multi-tree structure.
- mtt_split_cu_binary_flag 2740 which is the split type information, information about the splitting of the current block can be coded.
- the split_cu_flag 2710 may be set to a first value (eg 0) when the current block is not divided, and may be set to a second value (eg 1) when the current block is divided into lower blocks. have.
- the split_qt_flag 2720 may be set to a first value (eg 1) when the current block is divided into a quad tree, and may be set to a second value (eg 0) when the current block is divided into a multi-tree instead of being divided into a quad tree. have.
- the mtt_split_cu_vertical_flag 2730 may be set to a first value (e.g.
- the mtt_split_cu_binary_flag 2740 may be set to a first value (e.g. 0) when the current block is divided into a ternary tree, and may be set to a second value (e.g. 1) when the current block is divided into a binary tree.
- the encoding apparatus may encode information on the division of the current block based on whether predetermined division of the current block is allowed. For example, the encoding apparatus may not encode split_cu_flag when neither quadtree splitting nor multitree splitting is allowed for the current block. In this case, the decoding apparatus may induce split_cu_flag to a predetermined value.
- the encoding apparatus may not encode qt_split_flag when quadtree splitting is allowed for the current block, but not all multitree splitting is allowed.
- the decoding device may derive qt_split_flag to a predetermined value.
- the encoding apparatus indicates that qt_split_flag indicates that division by quadtree is performed, horizontal binary division and horizontal ternary division are not allowed for the current block, or vertical binary division and vertical ternary division are not allowed.
- the mtt_split_cu_vertical_flag may not be encoded.
- the decoding apparatus may induce mtt_split_cu_vertical_flag to a predetermined value.
- the encoding apparatus indicates that qt_split_flag indicates that division by quadtree is performed, or vertical binary division or vertical ternary division is not allowed for the current block, or mtt_split_cu_vertical_flag indicates horizontal division, and horizontal binary division for the current block Alternatively, when horizontal ternary division is not allowed or mtt_split_cu_vertical_flag indicates vertical division, mtt_split_cu_binary_flag may not be encoded. In this case, the decoding apparatus may induce mtt_split_cu_binary_flag to a predetermined value.
- the encoding apparatus may encode the current block using a sub-block obtained by dividing the current block.
- the encoding apparatus generates prediction information by performing the aforementioned intra/inter/IBC prediction based on the sub-block, generates residual information according to the prediction result, and encodes the current block by encoding prediction information and residual information. have.
- the encoding apparatus may derive a motion vector of the chroma block from the luma block by applying the fifth embodiment.
- the encoding apparatus may determine whether to divide the current block based on the aforementioned embodiments 1 to 4.
- the encoding device may determine a value of the parameter allowSplitTtVer indicating whether vertical ternary splitting is allowed for the current block, and if splitting is allowed, splitting by a first value (eg 1) is not allowed. Otherwise, it can be determined as a second value (eg 0).
- the encoding device may determine a value of the parameter allowSplitTtHor indicating whether or not horizontal ternary splitting is allowed for the current block. If splitting is allowed, if splitting is not allowed with a first value (eg 1) It can be determined as a second value (eg 0).
- the encoding apparatus may determine a value of the parameter allowSplitBtVer indicating whether vertical binary division is allowed for the current block. If division is allowed, the first value (eg 1) may be used if division is not allowed. It can be determined as a value of 2 (eg 0).
- the encoding device may determine the value of the parameter allowSplitBtHor indicating whether or not horizontal binary division is allowed for the current block. If division is allowed, the first value (eg 1) may be used if division is not allowed. It can be determined as a value of 2 (eg 0).
- the encoding apparatus determines whether to output at least one of split_cu_flag (2710), qt_split_flag (2720), mtt_split_cu_vertical_flag (2730), and mtt_split_cu_binary_flag (2740), which are split information of the current block, as a bitstream. It can be determined as described.
- FIG. 28 is a flowchart illustrating a method of decoding an image by a decoding apparatus according to an embodiment.
- a decoding method for performing the above-described embodiments 1 to 5 will be described with reference to FIG. 28.
- the decoding apparatus may determine whether a predetermined division is allowed for the current block based on the size of the current block (S2810).
- the decoding apparatus may determine whether a predetermined division is allowed for the current block based on the width or height of the current block.
- the decoding apparatus may determine a predetermined partitioning mode allowed for the current block based on whether the current block satisfies the above-described quadtree and multitree partitioning conditions.
- the current block may be a chroma block divided into a dual tree partition structure.
- the decoding apparatus determines whether any one of vertical ternary division, horizontal ternary division, vertical binary division, and horizontal binary division is allowed for the current block based on the above-described embodiments 1 to 4 You can decide.
- the decoding apparatus may determine that vertical ternary division for the current block is not allowed. Also, when the current block is a chroma block and the height is less than 8 samples, the decoding apparatus may determine that horizontal ternary division for the current block is also not allowed.
- the decoding apparatus may determine that vertical binary division for the current block is not allowed. Further, when the current block is a chroma block and the height is less than 4 samples, the decoding apparatus may determine that horizontal binary division for the current block is not allowed.
- the width or height of the chroma block may be derived based on the width or height of the luma block corresponding to the chroma block and a color format.
- the width or height of the chroma block may be derived by dividing the width or height of the corresponding luma block by dividing the component ratio of the chroma sample and the luma sample derived based on the color format.
- the component ratio of the chroma sample and the luma sample can be calculated for the width and height, respectively.
- the component ratio of the chroma sample and the luma sample may be 1:1 in both the width and height.
- the width or height of the chroma block may be derived by dividing the width or height of the corresponding luma block by 1.
- a width component ratio of a chroma sample and a luma sample may be 1:2, and a height component ratio may be 1:1. Accordingly, the width of the chroma block may be derived by dividing the width of the corresponding luma block by 2, and the height of the chroma block may be derived by dividing the height of the corresponding luma block by 1.
- both the width and height component ratios of the chroma sample and the luma sample may be 1:2. Accordingly, the width or height of the chroma block may be derived by dividing the width or height of the corresponding luma block by two.
- the decoding apparatus may obtain information on the division of the current block based on whether the predetermined division is allowed (S2820). As described above with reference to FIG. 27, when a predetermined division is allowed, the decoding apparatus parses the bitstream, and the split_cu_flag (2710), split_qt_flag (2720), mtt_split_cu_vertical_flag (2730), and mtt_split_cu_binary_flag ( 2740) may be obtained from the bitstream.
- the decoding apparatus may determine the information on division of the current block as a value indicating division other than the predetermined division. For example, when predetermined division is not allowed, information on division of the current block may not be obtained from the bitstream and may be derived to a predetermined value. For example, split_cu_flag indicating whether to perform division may be derived as 0.
- split_qt_flag indicating whether quadtree splitting is performed has a value of split_cu_flag of 1, and based on the aforementioned Examples 1 to 4, vertical ternary splitting, horizontal ternary splitting, vertical binary splitting, and horizontal If it is determined that both binary divisions are not allowed, it may be derived as 1, otherwise it may be derived as 0.
- the splitting direction information mtt_split_cu_vertical_flag may be derived as 0 when horizontal ternary division or horizontal binary division is allowed in the current block, or 1 if not.
- the split type information mtt_split_cu_binary_flag can be derived as 0 when vertical binary division and horizontal binary division are not allowed in the current block, and 1 when vertical ternary division and horizontal ternary division are not allowed in the current block. If horizontal binary division and vertical ternary division are allowed in the current block, it can be derived with a value of 1-mtt_split_cu_vertical_flag, and when vertical binary division and horizontal ternary division are allowed in the current block, it can be derived with the value of mtt_split_cu_vertical_flag. have.
- the decoding apparatus may divide the current block based on information on the division of the current block (S2830). As described above, based on the split_qt_flag (2720), mtt_split_cu_vertical_flag (2730) and mtt_split_cu_binary_flag (2740), and Table 1, the decoding apparatus sets the current block to a split mode corresponding to either a quadtree or a multitree, as described above. You can decide. In addition, the decoding apparatus may divide the current block in the determined division mode.
- the decoding apparatus may decode the image by generating a reconstructed block by decoding the current block based on the division mode of the current block (S2840). For example, the decoding apparatus may decode an image using a lower block obtained by dividing the current block. The decoding apparatus may decode an image by performing the aforementioned intra/inter/IBC prediction based on the sub-block. In an embodiment, when predicting a chroma block by performing IBC prediction, the decoding apparatus may derive a motion vector of a chroma block from the luma block by applying the above-described embodiment 5.
- Exemplary methods of the present disclosure are expressed 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 simultaneously or in a different order if necessary.
- the illustrative steps may include additional steps, other steps may be included excluding some steps, or may include additional other steps excluding some steps.
- an image encoding apparatus or an image decoding apparatus performing a predetermined operation may perform an operation (step) of confirming an execution condition or situation of the operation (step). For example, when it is described that a predetermined operation is performed when a predetermined condition is satisfied, the video encoding apparatus or the video decoding apparatus performs an operation to check whether the predetermined condition is satisfied, and then performs the predetermined operation. I can.
- various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof.
- one or more ASICs Application Specific Integrated Circuits
- DSPs Digital Signal Processors
- DSPDs Digital Signal Processing Devices
- PLDs Programmable Logic Devices
- FPGAs Field Programmable Gate Arrays
- general purpose It may be implemented by a processor (general processor), a controller, a microcontroller, a microprocessor, or the like.
- the image decoding device and the image encoding device to which the embodiment of the present disclosure is applied include a multimedia broadcasting transmission/reception device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, and a real-time communication device such as video communication.
- Mobile streaming devices storage media, camcorders, video-on-demand (VoD) service providers, OTT video (Over the top video) devices, Internet streaming service providers, three-dimensional (3D) video devices, video telephony video devices, and medical use. It may be included in a video device or the like, and may be used to process a video signal or a data signal.
- an OTT video (Over the top video) device may include a game console, a Blu-ray player, an Internet-connected TV, a home theater system, a smartphone, a tablet PC, and a digital video recorder (DVR).
- DVR digital video recorder
- 29 is a diagram illustrating a content streaming system to which an embodiment of the present disclosure can be applied.
- the content streaming system to which the embodiment of the present disclosure is applied may largely include an encoding server, a streaming server, a web server, a media storage device, a user device, and a multimedia input device.
- the encoding server serves to generate a bitstream by compressing content input from multimedia input devices such as smartphones, cameras, camcorders, etc. into digital data, and transmits it to the streaming server.
- multimedia input devices such as smartphones, cameras, camcorders, etc. directly generate bitstreams
- the encoding server may be omitted.
- the bitstream may be generated by an image encoding method and/or an image encoding apparatus to which an embodiment of the present disclosure is applied, and the streaming server may temporarily store the bitstream in a process of transmitting or receiving the bitstream.
- the streaming server may transmit multimedia data to a user device based on a user request through a web server, and the web server may serve as an intermediary for notifying the user of a service.
- the web server transmits the request to the streaming server, and the streaming server may transmit multimedia data to the user.
- the content streaming system may include a separate control server, and in this case, the control server may play a role of controlling a command/response between devices in the content streaming system.
- the streaming server may receive content from a media storage and/or encoding server. For example, when content is received from the encoding server, the content may be received in real time. In this case, in order to provide a smooth streaming service, the streaming server may store the bitstream for a predetermined time.
- Examples of the user device include a mobile phone, a smart phone, a laptop computer, a digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), a navigation system, a slate PC, and Tablet PC, ultrabook, wearable device, for example, smartwatch, smart glass, head mounted display (HMD)), digital TV, desktop There may be computers, digital signage, etc.
- PDA personal digital assistant
- PMP portable multimedia player
- HMD head mounted display
- TV desktop
- desktop There may be computers, digital signage, etc.
- Each server in the content streaming system may be operated as a distributed server, and in this case, data received from each server may be distributedly processed.
- the scope of the present disclosure is software or machine-executable instructions (e.g., operating systems, applications, firmware, programs, etc.) that cause an operation according to the method of various embodiments to be executed on a device or computer, and such software or It includes a non-transitory computer-readable medium (non-transitory computer-readable medium) which stores instructions and the like and is executable on a device or a computer.
- a non-transitory computer-readable medium non-transitory computer-readable medium
- An embodiment according to the present disclosure may be used to encode/decode an image.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Discrete Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
MttSplitMode | mtt_split_cu_vertical_flag | mtt_split_cu_binary_flag |
SPLIT_TT_HOR | 0 | 0 |
SPLIT_BT_HOR | 0 | 1 |
SPLIT_TT_VER | 1 | 0 |
SPLIT_BT_VER | 1 | 1 |
Claims (15)
- 영상 복호화 장치에 의해 수행되는 영상 복호화 방법에 있어서,현재 블록의 크기에 기반하여 상기 현재 블록에 대해 소정 분할이 허용되는지 여부를 결정하는 단계;상기 소정 분할의 허용 여부에 기반하여, 상기 현재 블록의 분할에 관한 정보를 획득하는 단계;상기 현재 블록의 분할에 관한 정보에 기반하여, 상기 현재 블록을 분할하는 단계; 및상기 현재 블록을 복호화하는 단계를 포함하고,상기 소정 분할의 허용 여부는 상기 현재 블록의 너비 또는 높이가 소정의 샘플 길이인지 여부에 기반하여 결정되는 영상 복호화 방법.
- 제 1 항에 있어서,상기 현재 블록의 너비가 소정의 샘플 길이인 경우, 상기 현재 블록에 대한 수직 터너리 분할은 허용되지 않는 것으로 결정되고,상기 현재 블록의 높이가 소정의 샘플 길이인 경우, 상기 현재 블록에 대한 수평 터너리 분할은 허용되지 않는 것으로 결정되는 영상 복호화 방법.
- 제 2 항에 있어서,상기 현재 블록은 크로마 블록이고,상기 소정의 샘플 길이는 8 샘플 길이인 영상 복호화 방법.
- 제 1 항에 있어서,상기 현재 블록의 너비가 소정의 샘플 길이인 경우, 상기 현재 블록에 대한 수직 바이너리 분할은 허용되지 않는 것으로 결정되고,상기 현재 블록의 높이가 소정의 샘플 길이인 경우, 상기 현재 블록에 대한 수평 바이너리 분할은 허용되지 않는 것으로 결정되는 영상 복호화 방법.
- 제 4 항에 있어서,상기 현재 블록은 크로마 블록이고,상기 소정의 샘플 길이는 4 샘플 길이인 영상 복호화 방법.
- 제 1 항에 있어서,상기 현재 블록은 듀얼 트리 분할 구조로 분할된 크로마 블록인 영상 복호화 방법.
- 제 1 항에 있어서,상기 현재 블록은 크로마 블록이고,상기 현재 블록의 너비 또는 높이는 대응하는 루마 블록의 너비 또는 높이와 색상 포멧에 기반하여 도출되는 영상 복호화 방법.
- 제 7 항에 있어서,상기 현재 블록의 너비 또는 높이는 대응하는 루마 블록의 너비 또는 높이를 색상 포멧에 기반하여 도출되는 크로마 샘플과 루마 샘플의 성분비로 나눈 값으로 도출되는 영상 복호화 방법.
- 제 1 항에 있어서,상기 현재 블록에 대해 소정 분할이 허용되지 않는 경우,상기 현재 블록의 분할에 관한 정보는 상기 소정 분할 이외의 분할을 나타내는 값으로 결정되는 영상 복호화 방법.
- 제 9 항에 있어서,상기 현재 블록의 분할에 관한 정보는 터너리 분할 또는 바이너리 분할을 지시하는 분할 타입 정보를 포함하고,상기 현재 블록에 대해 수직 터너리 분할 및 수평 터너리 분할이 허용되지 않는 경우, 상기 분할 타입 정보는 바이너리 분할을 지시하는 값으로 결정되고,상기 현재 블록에 대해 수직 바이너리 분할 및 수평 바이너리 분할이 허용되지 않는 경우, 상기 분할 타입 정보는 터너리 분할을 지시하는 값으로 결정되는 영상 복호화 방법.
- 제 9 항에 있어서,상기 현재 블록의 분할에 관한 정보는 수직 분할 또는 수평 분할을 지시하는 분할 방향 정보를 포함하고,상기 현재 블록에 대해 수직 바이너리 분할 및 수직 터너리 분할이 허용되지 않고, 수평 바이너리 분할 또는 수평 터너리 분할이 허용되는 경우, 상기 분할 방향 정보는 수평 분할을 지시하는 값으로 결정되고,상기 현재 블록에 대해 수평 바이너리 분할 및 수평 터너리 분할이 허용되지 않고, 수직 바이너리 분할 또는 수직 터너리 분할이 허용되는 경우, 상기 분할 방향 정보는 수직 분할을 지시하는 값으로 결정되는 영상 복호화 방법.
- 제 1 항에 있어서,상기 현재 블록이 IBC 모드로 예측된 크로마 블록인 경우,상기 현재 블록에 대응하는 루마 블록을 소정 크기의 루마 서브 블록으로 분할하는 단계;상기 루마 서브 블록의 움직임 정보를 획득하는 단계; 및상기 루마 서브 블록의 움직임 정보에 기반하여 상기 루마 서브 블록에 대응하는 상기 현재 블록 내 서브 블록의 움직임 정보를 도출하는 단계; 및상기 도출된 움직임 정보에 기반하여 상기 현재 블록에 대해 IBC 예측을 수행하는 단계를 더 포함하며,상기 루마 서브 블록의 크기는 8x8인 영상 복호화 방법.
- 메모리 및 적어도 하나의 프로세서를 포함하는 영상 복호화 장치로서,상기 적어도 하나의 프로세서는현재 블록의 크기에 기반하여 상기 현재 블록에 대해 소정 분할이 허용되는지 여부를 결정하고,상기 소정 분할의 허용 여부에 기반하여, 상기 현재 블록의 분할에 관한 정보를 획득하고,상기 현재 블록의 분할에 관한 정보에 기반하여, 상기 현재 블록을 분할하고,상기 현재 블록을 복호화하되,상기 소정 분할의 허용 여부는 상기 현재 블록의 너비 또는 높이가 소정의 샘플 길이인지 여부에 기반하여 결정되는 영상 복호화 장치.
- 영상 부호화 장치에 의해 수행되는 영상 부호화 방법에 있어서,현재 블록의 크기에 기반하여 상기 현재 블록에 대해 소정 분할이 허용되는지 여부를 결정하는 단계;상기 소정 분할의 허용 여부에 기반하여, 상기 현재 블록을 분할하는 단계;상기 소정 분할의 허용 여부에 기반하여, 상기 현재 블록의 분할에 관한 정보를 부호화하는 단계; 및상기 현재 블록을 부호화하는 단계를 포함하고,상기 소정 분할의 허용 여부는 상기 현재 블록의 너비 또는 높이가 소정의 샘플 길이인지 여부에 기반하여 결정되는 영상 부호화 방법.
- 제14항의 영상 부호화 방법에 의해 생성된 비트스트림을 전송하는 방법.
Priority Applications (10)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP20769888.7A EP3941049A4 (en) | 2019-03-13 | 2020-03-13 | VIDEO CODING/DECODING METHOD AND DEVICE USING SEGMENTATION LIMITATION FOR A CHROMINANCE BLOCK, AND BITSTREAM TRANSMISSION METHOD |
CN202411107662.9A CN118827986A (zh) | 2019-03-13 | 2020-03-13 | 对色度块使用分段限制的视频编码/解码方法和设备,以及发送比特流的方法 |
US17/437,349 US12075043B2 (en) | 2019-03-13 | 2020-03-13 | Video encoding/decoding method and device using segmentation limitation for chroma block, and method for transmitting bitstream |
CN202411107254.3A CN118827985A (zh) | 2019-03-13 | 2020-03-13 | 对色度块使用分段限制的视频编码/解码方法和设备,以及发送比特流的方法 |
CN202411106115.9A CN118827983A (zh) | 2019-03-13 | 2020-03-13 | 对色度块使用分段限制的视频编码/解码方法和设备,以及发送比特流的方法 |
JP2021554726A JP7502322B2 (ja) | 2019-03-13 | 2020-03-13 | クロマブロックに対する分割制限を用いた画像符号化/復号化方法、装置、及びビットストリームを伝送する方法 |
CN202411106206.2A CN118827984A (zh) | 2019-03-13 | 2020-03-13 | 对色度块使用分段限制的视频编码/解码方法和设备,以及发送比特流的方法 |
CN202080020415.9A CN113574876B (zh) | 2019-03-13 | 2020-03-13 | 对色度块使用分段限制的视频编码/解码方法和设备,以及发送比特流的方法 |
KR1020217027794A KR20210114065A (ko) | 2019-03-13 | 2020-03-13 | 크로마 블록에 대한 분할 제한을 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 |
JP2024092443A JP2024113121A (ja) | 2019-03-13 | 2024-06-06 | クロマブロックに対する分割制限を用いた画像符号化/復号化方法、装置、及びビットストリームを伝送する方法 |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201962818087P | 2019-03-13 | 2019-03-13 | |
US62/818,087 | 2019-03-13 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020185045A1 true WO2020185045A1 (ko) | 2020-09-17 |
Family
ID=72427972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/KR2020/003559 WO2020185045A1 (ko) | 2019-03-13 | 2020-03-13 | 크로마 블록에 대한 분할 제한을 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 |
Country Status (6)
Country | Link |
---|---|
US (1) | US12075043B2 (ko) |
EP (1) | EP3941049A4 (ko) |
JP (2) | JP7502322B2 (ko) |
KR (1) | KR20210114065A (ko) |
CN (5) | CN118827986A (ko) |
WO (1) | WO2020185045A1 (ko) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11394990B2 (en) * | 2019-05-09 | 2022-07-19 | Tencent America LLC | Method and apparatus for signaling predictor candidate list size |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150139296A1 (en) * | 2013-11-18 | 2015-05-21 | Arris Enterprises, Inc. | Intra block copy for intra slices in high efficiency video coding (hevc) |
KR20170021302A (ko) * | 2014-06-19 | 2017-02-27 | 마이크로소프트 테크놀로지 라이센싱, 엘엘씨 | 통합된 인트라 블록 카피 및 인터 예측 모드 |
KR20180033030A (ko) * | 2016-09-23 | 2018-04-02 | 세종대학교산학협력단 | 적응적 블록 분할에 기반한 비디오 신호 처리 방법 및 장치 |
KR20180046875A (ko) * | 2016-10-28 | 2018-05-09 | 한국전자통신연구원 | 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10779004B2 (en) * | 2016-10-12 | 2020-09-15 | Mediatek Inc. | Methods and apparatuses of constrained multi-type-tree block partition for video coding |
CN117221523A (zh) * | 2017-08-29 | 2023-12-12 | 株式会社Kt | 视频解码方法、视频编码方法及装置 |
WO2019151268A1 (ja) * | 2018-01-30 | 2019-08-08 | パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ | 符号化装置、復号装置、符号化方法および復号方法 |
US10609403B2 (en) * | 2018-07-09 | 2020-03-31 | Tencent America LLC | Method and apparatus for block partition with non-uniform quad split |
KR102494697B1 (ko) * | 2018-12-21 | 2023-02-06 | 삼성전자주식회사 | 삼각 예측 모드를 이용하는 영상 부호화 장치 및 영상 복호화 장치, 및 이에 의한 영상 부호화 방법 및 영상 복호화 방법 |
US20230103665A1 (en) * | 2019-02-28 | 2023-04-06 | Samsung Electronics Co., Ltd | Apparatuses for encoding and decoding image, and methods for encoding and decoding image thereby |
-
2020
- 2020-03-13 CN CN202411107662.9A patent/CN118827986A/zh active Pending
- 2020-03-13 JP JP2021554726A patent/JP7502322B2/ja active Active
- 2020-03-13 EP EP20769888.7A patent/EP3941049A4/en active Pending
- 2020-03-13 CN CN202080020415.9A patent/CN113574876B/zh active Active
- 2020-03-13 US US17/437,349 patent/US12075043B2/en active Active
- 2020-03-13 WO PCT/KR2020/003559 patent/WO2020185045A1/ko unknown
- 2020-03-13 CN CN202411106206.2A patent/CN118827984A/zh active Pending
- 2020-03-13 CN CN202411107254.3A patent/CN118827985A/zh active Pending
- 2020-03-13 CN CN202411106115.9A patent/CN118827983A/zh active Pending
- 2020-03-13 KR KR1020217027794A patent/KR20210114065A/ko not_active Application Discontinuation
-
2024
- 2024-06-06 JP JP2024092443A patent/JP2024113121A/ja active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150139296A1 (en) * | 2013-11-18 | 2015-05-21 | Arris Enterprises, Inc. | Intra block copy for intra slices in high efficiency video coding (hevc) |
KR20170021302A (ko) * | 2014-06-19 | 2017-02-27 | 마이크로소프트 테크놀로지 라이센싱, 엘엘씨 | 통합된 인트라 블록 카피 및 인터 예측 모드 |
KR20180033030A (ko) * | 2016-09-23 | 2018-04-02 | 세종대학교산학협력단 | 적응적 블록 분할에 기반한 비디오 신호 처리 방법 및 장치 |
KR20180046875A (ko) * | 2016-10-28 | 2018-05-09 | 한국전자통신연구원 | 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체 |
Non-Patent Citations (2)
Title |
---|
BENJAMIN BROSS AND CHEN J; LIU (EDITORS) S: "Versatile Video Coding (Draft 3)", JVET-L1001-V6, JOINT VIDEO EXPERTS TEAM (JVET)OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11 12TH MEETING, 3 October 2018 (2018-10-03), Macao, CN, XP030195441 * |
See also references of EP3941049A4 * |
Also Published As
Publication number | Publication date |
---|---|
JP2022524441A (ja) | 2022-05-02 |
CN118827984A (zh) | 2024-10-22 |
CN118827985A (zh) | 2024-10-22 |
KR20210114065A (ko) | 2021-09-17 |
US12075043B2 (en) | 2024-08-27 |
EP3941049A4 (en) | 2022-12-21 |
US20220182623A1 (en) | 2022-06-09 |
CN113574876B (zh) | 2024-09-03 |
CN118827983A (zh) | 2024-10-22 |
CN113574876A (zh) | 2021-10-29 |
JP7502322B2 (ja) | 2024-06-18 |
JP2024113121A (ja) | 2024-08-21 |
EP3941049A1 (en) | 2022-01-19 |
CN118827986A (zh) | 2024-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020226424A1 (ko) | Mip 및 lfnst를 수행하는 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 | |
WO2020004990A1 (ko) | 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치 | |
WO2020171444A1 (ko) | Dmvr 기반의 인터 예측 방법 및 장치 | |
WO2020251330A1 (ko) | 단순화된 mpm 리스트 생성 방법을 활용하는 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 | |
WO2021054676A1 (ko) | Prof를 수행하는 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 | |
WO2021034123A1 (ko) | 가중 예측을 수행하는 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 | |
WO2020213931A1 (ko) | 레지듀얼 계수의 차분 부호화를 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 | |
WO2020055107A1 (ko) | 영상 코딩 시스템에서 어파인 mvp 후보 리스트를 사용하는 어파인 움직임 예측에 기반한 영상 디코딩 방법 및 장치 | |
WO2019194514A1 (ko) | 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치 | |
WO2019216714A1 (ko) | 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치 | |
WO2020251329A1 (ko) | Mip 모드 매핑이 단순화된 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 | |
WO2020256454A1 (ko) | 현재 블록에 대하여 최종적으로 예측 모드를 선택하지 못하는 경우 인터 예측을 수행하는 영상 디코딩 방법 및 그 장치 | |
WO2020262963A1 (ko) | 크로마 블록의 최대 변환 크기 설정을 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 | |
WO2021172881A1 (ko) | 인터 예측에 기반한 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체 | |
WO2021040410A1 (ko) | 레지듀얼 코딩에 대한 영상 디코딩 방법 및 그 장치 | |
WO2021006579A1 (ko) | 머지 후보의 양방향 예측을 위한 가중치 인덱스를 유도하는 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 | |
WO2021015512A1 (ko) | Ibc를 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 | |
WO2020262930A1 (ko) | 머지 데이터 신택스에서 중복적인 신택스의 제거 방법 및 장치 | |
WO2020009447A1 (ko) | 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치 | |
WO2020256485A1 (ko) | 크로마 블록의 적응적 크기 제한을 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 | |
WO2021194308A1 (ko) | 랩-어라운드 움직임 보상에 기반하는 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체 | |
WO2020262960A1 (ko) | 크로마 성분 부호화 블록의 최대 변환 크기 제한을 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 | |
WO2020262962A1 (ko) | 크로마 변환 블록의 최대 크기 제한을 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 | |
WO2021060834A1 (ko) | 서브픽처 기반 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 | |
WO2020231144A1 (ko) | 어파인 tmvp를 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20769888 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 20217027794 Country of ref document: KR Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 2021554726 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 2020769888 Country of ref document: EP Effective date: 20211013 |