Image encoding / decoding method and device using segmentation limitation for chroma block, and method for transmitting bitstream

By applying division restrictions on chroma blocks and omitting unnecessary signaling in the encoding/decoding process, the method addresses the high cost of transmitting high-resolution images by improving efficiency and reducing data volume.

JP2024113121AInactive Publication Date: 2024-08-21LG ELECTRONICS INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2024092443
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2019-03-13
Filing Date
2024-06-06
Publication Date
2024-08-21
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The increasing demand for high-resolution, high-quality images leads to a significant increase in transmission and storage costs due to the higher amount of information required, necessitating highly efficient image compression techniques.

Method used

An image encoding/decoding method that applies division restrictions on chroma blocks, including determining whether predetermined divisions are permitted based on block size, and encoding/decoding processes that do not signal division information when restrictions are applied, thereby reducing the amount of bitstream data.

Benefits of technology

This approach enhances encoding/decoding efficiency by reducing the amount of bitstream data and minimizing the need to transmit chroma block division information, thus lowering transmission and storage costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024113121000001
    Figure 2024113121000001
Patent Text Reader

Abstract

To provide an image encoding / decoding method and device.SOLUTION: An image decoding method implemented with an image decoding device may include: determining whether predetermined splitting is allowed for a current block based on a size of the current block; obtaining information on splitting the current block based on whether the predetermined splitting is allowed; splitting the current block based on the information on splitting of the current block; and decoding the current block. Whether the predetermined splitting is allowed may be determined based on whether a width or height of the current block is a predetermined sample length.SELECTED DRAWING: Figure 28
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an image encoding / decoding method and apparatus, and more particularly to a method and apparatus for encoding / decoding an image using a partitioning restriction on a chroma block, and a method for transmitting a bitstream generated by the image encoding method / apparatus of the present disclosure. [Background technology]

[0002] Recently, the demand for high-resolution, high-quality images, for example, HD (High Definition) images and UHD (Ultra High Definition) images, is increasing in various fields. As the resolution and quality of image data increases, the amount of information or bits transmitted increases relatively compared to conventional image data. The increase in the amount of information or bits transmitted leads to an increase in transmission costs and storage costs.

[0003] This requires a highly efficient image compression technique for effectively transmitting, storing, and reproducing high-resolution, high-quality image information. Summary of the Invention [Problem to be solved by the invention]

[0004] An object of the present disclosure is to provide an image encoding / decoding method and apparatus with improved encoding / decoding efficiency.

[0005] Another object of the present disclosure is to provide a method and apparatus for encoding / decoding an image using a partitioning restriction on a chroma block.

[0006] Another object of the present disclosure is to provide an image encoding / decoding method and apparatus that does not signal partition information if partitioning cannot be performed on a chroma block.

[0007] Another object of the present disclosure is to provide a method for transmitting a bitstream generated by the image encoding method or apparatus according to the present disclosure.

[0008] Another object of the present disclosure is to provide a recording medium storing a bitstream generated by the image encoding method or apparatus according to the present disclosure.

[0009] Another object of the present disclosure is to provide a recording medium storing a bitstream that is received by the image decoding device according to the present disclosure, decoded, and used to restore an image.

[0010] The technical problems to be solved by the present disclosure are not limited to the above-mentioned technical problems, and other technical problems not described above will be clearly understood by a person having ordinary skill in the art to which the present disclosure pertains from the following description. [Means for solving the problem]

[0011] An image decoding method performed by an image decoding device according to an aspect of the present disclosure may include the steps of: determining whether a predetermined division is permitted for a current block based on a size of the current block; obtaining information on the division of the current block based on whether the predetermined division is permitted; dividing the current block based on the information on the division of the current block; and decoding the current block. Here, whether the predetermined division is permitted may be determined based on whether a 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.

[0012] If the width of the current block is a predetermined sample length, it may be determined that vertical ternary splitting of the current block is not permitted, and if the height of the current block is a predetermined sample length, it may be determined that horizontal ternary splitting of the current block is not permitted, where the current block is a chroma block and the predetermined sample length may be 8 samples.

[0013] If the width of the current block is a predetermined sample length, it may be determined that vertical binary splitting is not allowed for the current block, and if the height of the current block is a predetermined sample length, it may be determined that horizontal binary splitting is not allowed for the current block, where the current block is a chroma block and the predetermined sample length may be 4 samples.

[0014] The current block is a chroma block, and the width or height of the current block may be derived based on the width or height of a corresponding luma block and a color format. More specifically, the width or height of the current block may be derived by dividing the width or height of the corresponding luma block by a component ratio of chroma samples to luma samples derived based on a color format.

[0015] When a predetermined division is not permitted for the current block, information on the division of the current block may be determined to be a value indicating a division other than the predetermined division. The information on the division of the current block may include division type information indicating ternary division or binary division, and when vertical ternary division and horizontal ternary division are not permitted for the current block, the division type information may be determined to be a value indicating binary division, and when vertical binary division and horizontal binary division are not permitted for the current block, the division type information may be determined to be a value indicating ternary division.

[0016] The information regarding the partitioning of the current block includes partition direction information indicating vertical partitioning or horizontal partitioning, and if vertical binary partitioning and vertical ternary partitioning are not permitted for the current block and horizontal binary partitioning or horizontal ternary partitioning is permitted, the partition direction information can be determined to be a value indicating horizontal partitioning, and if horizontal binary partitioning and horizontal ternary partitioning are not permitted for the current block and vertical binary partitioning or vertical ternary partitioning is permitted, the partition direction information can be determined to be a value indicating vertical partitioning.

[0017] If the current block is a chroma block predicted in an IBC mode, the method may further include dividing a luma block corresponding to the current block into luma sub-blocks of a predetermined size, obtaining motion information of the luma sub-blocks, deriving motion information of sub-blocks in the current block corresponding to the luma sub-blocks based on the motion information of the luma sub-blocks, and performing IBC prediction on the current block based on the derived motion information, where the size of the luma sub-blocks may be 8×8.

[0018] In addition, an image decoding device according to one aspect of the present disclosure 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 a size of the current block, obtains information regarding the division of the current block based on whether the predetermined division is allowed, divides the current block based on the information regarding the division of the current block, and decodes the current block, wherein whether the predetermined division is allowed can be determined based on whether a width or height of the current block is a predetermined sample length.

[0019] In addition, an image encoding method performed by an image encoding device according to an aspect of the present disclosure may include the steps of: determining whether a predetermined division is permitted for a current block based on a size of the current block; dividing the current block based on whether the predetermined division is permitted; encoding information related to the division of the current block based on whether the predetermined division is permitted; and encoding the current block. Whether the predetermined division is permitted may be determined based on whether a width or height of the current block is a predetermined sample length.

[0020] A transmission method according to another aspect of the present disclosure can transmit a bitstream generated by the image encoding device or image encoding method of the present disclosure.

[0021] A computer-readable recording medium according to another aspect of the present disclosure can store a bitstream generated by the image encoding method or image encoding device of the present disclosure.

[0022] The features described above in the brief summary of the present disclosure are merely exemplary embodiments of the detailed description of the present disclosure that follows and are not intended to limit the scope of the present disclosure. Effect of the Invention

[0023] According to the present disclosure, an image encoding / decoding method and apparatus with improved encoding / decoding efficiency can be provided.

[0024] In addition, according to the present disclosure, when partitioning of chroma blocks is restricted, a method and apparatus for image encoding / decoding can be provided that can reduce the amount of bitstream by not signaling partitioning information of chroma blocks.

[0025] According to the present disclosure, there can also be provided a method for transmitting a bitstream generated by the image encoding method or apparatus according to the present disclosure.

[0026] According to the present disclosure, a recording medium storing a bitstream generated by the image encoding method or apparatus according to the present disclosure can be provided.

[0027] Furthermore, according to the present disclosure, it is possible to provide a recording medium storing a bitstream that is received by the image decoding device according to the present disclosure, decoded, and used to restore an image.

[0028] The effects obtained by the present disclosure are not limited to the effects described above, and other effects not described above will be clearly understood by those having ordinary skill in the art to which the present disclosure pertains from the following description. [Brief description of the drawings]

[0029] [Figure 1] FIG. 1 is a schematic diagram illustrating a video coding system to which an embodiment of the present disclosure can be applied. [Diagram 2] 1 is a diagram illustrating an image encoding device to which an embodiment of the present disclosure can be applied; [Diagram 3] 1 is a diagram illustrating an image decoding device to which an embodiment of the present disclosure can be applied; [Figure 4] FIG. 2 is a diagram showing an image division structure according to an embodiment. [Diagram 5] FIG. 11 is a diagram showing an example of a block division type according to a multi-type tree structure. [Figure 6] FIG. 1 illustrates an example signaling mechanism for block partition information in a quadtree with nested multi-type tree structure according to the present disclosure. [Figure 7] FIG. 1 illustrates an embodiment in which a CTU is divided into multiple CUs. [Figure 8] FIG. 13 is a diagram showing an example of a redundant division pattern. [Figure 9] 1 is a flowchart illustrating an inter-prediction based video / image encoding method according to an embodiment. [Figure 10]13 is a diagram illustrating an exemplary configuration of an inter prediction unit 180 according to an embodiment. [Figure 11] 1 is a flowchart illustrating an inter-prediction based video / image decoding method according to an embodiment. [Figure 12] 2 is a diagram illustrating an exemplary configuration of an inter prediction unit 260 according to an embodiment. [Figure 13] FIG. 2 illustrates neighboring blocks that can be used as spatial merging candidates according to one embodiment. [Figure 14] FIG. 2 is a diagram illustrating a method for constructing a merge candidate list according to one embodiment. [Figure 15] 1 is a diagram illustrating a motion vector predictor candidate list construction method according to an embodiment; [Figure 16] A diagram showing a syntax structure for transmitting MVD from an image encoding device to an image decoding device according to one embodiment. [Figure 17] 1 is a flowchart illustrating an IBC-based video / image encoding method according to one embodiment. [Figure 18] 1 is a diagram illustrating an exemplary configuration of a prediction unit that performs an IBC-based video / image encoding method according to an embodiment of the present invention. [Figure 19] 1 is a flowchart illustrating an IBC-based video / image decoding method according to an embodiment. [Figure 20] 1 is a diagram illustrating an exemplary configuration of a prediction unit that performs an IBC-based video / image decoding method according to an embodiment of the present invention. [Figure 21] 11 is a diagram illustrating a method in which a decoding device according to an embodiment determines whether a vertical ternary split (SPLIT_TT_VER) is allowed for a current block. [Figure 22] 11 is a diagram illustrating a method in which a decoding device according to an embodiment determines whether a horizontal ternary split (SPLIT_TT_HOR) is allowed for a current block. [Figure 23] 11 is a diagram illustrating a method in which a decoding device according to an embodiment determines whether a horizontal binary split (SPLIT_BT_HOR) is allowed for a current block. [Figure 24] 11 is a diagram illustrating a method in which a decoding device according to an embodiment determines whether a vertical binary split (SPLIT_BT_VER) is permitted for a current block. [Diagram 25] 11 is a diagram illustrating a method in which a decoding device according to an embodiment derives motion information of a chroma sub-block using motion information of a luma sub-block. [Figure 26] 1 is a flowchart illustrating a method for encoding an image by an encoding device according to an embodiment. [Figure 27] A diagram showing syntax for a bitstream signaling information regarding the division of a current block according to one embodiment. [Figure 28] 1 is a flowchart illustrating a method for a decoding device according to an embodiment to decode an image. [Figure 29] FIG. 1 illustrates a content streaming system to which an embodiment of the present disclosure can be applied. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0030] The present disclosure will be described in detail below with reference to the accompanying drawings so that those skilled in the art can easily implement the present disclosure. However, the present disclosure may be embodied in various different forms and is not limited to the embodiments described herein.

[0031] In describing the embodiments of the present disclosure, if it is determined that a specific description of a known configuration or function may make the gist of the present disclosure unclear, the detailed description thereof will be omitted. In addition, in the drawings, parts that are not related to the description of the present disclosure are omitted, and similar parts are denoted by similar reference numerals.

[0032] In the present disclosure, when a certain component is "connected," "coupled," or "connected" to another component, this includes not only a direct connection relationship, but also an indirect connection relationship in which another component exists between them. Furthermore, when a certain component is described as "including" or "having" another component, this does not exclude another component, but means that the component can further include another component, unless otherwise specified to the contrary.

[0033] In this disclosure, terms such as "first" and "second" are used only for the purpose of distinguishing one component from another component, and do not limit the order or importance of the components unless otherwise specified. Therefore, within the scope of this disclosure, a first component in one embodiment may be called a second component in another embodiment, and similarly, a second component in one embodiment may be called a first component in another embodiment.

[0034] In this disclosure, components that are distinguished from one another are used to clearly describe the characteristics of each component, and do not necessarily mean that the components are separate. In other words, multiple components may be integrated and configured as a single hardware or software unit, or one component may be distributed and configured as multiple hardware or software units. Thus, even if not otherwise stated, such integrated or distributed embodiments are also included in the scope of the present disclosure.

[0035] In the present disclosure, the components described in the various embodiments are not necessarily essential components, and some may be optional components. Therefore, an embodiment consisting of a subset of the components described in one embodiment is also included in the scope of the present disclosure. In addition, an embodiment including other components in addition to the components described in the various embodiments is also included in the scope of the present disclosure.

[0036] The present disclosure relates to image encoding and decoding, and terms used in this disclosure may have ordinary meanings in the technical field to which the present disclosure belongs, unless they are newly defined in this disclosure.

[0037] In this disclosure, a "picture" generally means a unit indicating any one image in a particular time period, a slice / tile is a coding unit constituting a part of a picture, and one picture may be composed of one or more slices / tiles. Also, a slice / tile may include one or more coding tree units (CTUs).

[0038] In this disclosure, a "pixel" or a "pel" may refer to the smallest unit constituting one picture (or image). A term corresponding to a pixel may be a "sample." A sample may generally indicate a pixel or a pixel value, may indicate only a pixel / pixel value of a luma component, or may indicate only a pixel / pixel value of a chroma component.

[0039] In this disclosure, a "unit" may refer to a basic unit of image processing. A unit may include at least one of a specific region of a picture and information related to the region. A unit may be used interchangeably with terms such as "sample array," "block," or "area," depending on the case. In a general case, an M×N block may include a set (or array) of samples or transform coefficients consisting of M columns and N rows.

[0040] In the present disclosure, a "current block" may refer to any one of a "current coding block," a "current coding unit," a "block to be coded," a "block to be decoded," or a "block to be processed." If prediction is performed, a "current block" may refer to a "current predicted block" or a "block to be predicted." If transformation (inverse transformation) / quantization (inverse quantization) is performed, a "current block" may refer to a "current transformed block" or a "block to be transformed." If filtering is performed, a "current block" may refer to a "block to be filtered."

[0041] In addition, in this disclosure, a "current block" may mean a "luma block of a current block" unless a chroma block is explicitly stated. A "chroma block of a current block" may be expressed by explicitly including an explicit statement of a chroma block, such as a "chroma block" or a "current chroma block."

[0042] In the present disclosure, " / " and "," can be interpreted as "and / or." For example, "A / B" and "A, B" can be interpreted as "A and / or B." Also, "A / B / C" and "A, B, C" can mean "at least one of A, B, and / or C."

[0043] In this disclosure, "or" can be interpreted as "and / or." For example, "A or B" can mean 1) only "A," 2) only "B," or 3) "A and B." Or, in this disclosure, "or" can mean "additionally or alternatively."

[0044] Video Coding System Overview FIG. 1 is a diagram illustrating a video coding system according to this disclosure.

[0045] A video coding system according to an embodiment may include an encoding device 10 and a decoding device 20. The encoding device 10 may transmit encoded video and / or image information or data to the decoding device 20 in a file or streaming format via a digital storage medium or a network.

[0046] The encoding device 10 according to an embodiment may include a video source generating unit 11, an encoding unit 12, and a transmitting unit 13. The decoding device 20 according to an embodiment may include a receiving unit 21, a decoding unit 22, and a rendering unit 23. The encoding unit 12 may be referred to as a video / image encoding unit, and the decoding unit 22 may be referred to as a video / image decoding unit. The transmitting 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, which may be configured as a separate device or an external component.

[0047] The video source generating unit 11 can obtain the video / images through a process of capturing, synthesizing, or generating the video / images. The video source generating unit 11 can include a video / image capture device and / or a video / image generation device. The video / image capture device can include, for example, one or more cameras, a video / image archive containing previously captured videos / images, etc. The video / image generation device can include, for example, a computer, a tablet, a smartphone, etc., and can (electronically) generate the video / images. For example, a virtual video / image can be generated through a computer, etc., in which case the video / image capture process can be replaced by a process in which the associated data is generated.

[0048] The encoder 12 may encode the input video / image. The encoder 12 may perform a series of steps such as prediction, transformation, quantization, etc. for compression and encoding efficiency. The encoder 12 may output the encoded data (encoded video / image information) in a bitstream format.

[0049] The transmitting unit 13 may transmit the encoded video / image information or data output in a bitstream format to the receiving unit 21 of the decoding device 20 via a digital storage medium or a network in a file or streaming format. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitting unit 13 may include elements for generating a media file via a predetermined file format and may include elements for transmitting via a broadcasting / 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.

[0050] The decoding unit 22 can decode the video / image by performing a series of steps such as inverse quantization, inverse transformation, and prediction corresponding to the operations of the encoding unit 12.

[0051] The rendering unit 23 can render the decoded video / images. The rendered video / images can be displayed via a display unit.

[0052] Overview of the image encoding device FIG. 2 is a diagram illustrating an image encoding device to which an embodiment of the present disclosure can be applied.

[0053] As shown in Fig. 2, the image encoding device 100 may include an image division unit 110, a subtraction unit 115, a transform unit 120, a quantization unit 130, an inverse quantization unit 140, 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.

[0054] All or at least some of the components constituting the image encoding device 100 may be realized by a single hardware component (e.g., an encoder or a processor) depending on the embodiment. Also, the memory 170 may include a decoded picture buffer (DPB) and may be realized by a digital storage medium.

[0055] The image division unit 110 may divide an input image (or picture, frame) input to the image encoding device 100 into one or more processing units. As an example, the processing unit may be called a coding unit (CU). The coding units may be obtained by recursively dividing a coding tree unit (CTU) or a largest coding unit (LCU) according to a QT / BT / TT (Quad-tree / Binary-tree / Ternal-tree) structure. For example, 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. For dividing the coding units, the quad-tree structure may be applied first, and the binary-tree structure and / or the ternary-tree structure may be applied later. The encoding procedure according to the present disclosure may be performed based on the final coding unit that is not further divided. The maximum coding unit may be used as the final coding unit, and a coding unit of a lower depth obtained by dividing the maximum coding unit may be used as the final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and / or restoration, which will be described later. As another example, a processing unit of the coding procedure may be a prediction unit (PU) or a transform unit (TU). The prediction unit and the transform unit may be divided or partitioned from the final coding unit, respectively. The prediction unit may be a unit of sample prediction, and the transform unit may be a unit for deriving transform coefficients and / or a unit for deriving a residual signal from the transform coefficients.

[0056] The prediction unit (inter prediction unit 180 or intra prediction unit 185) may perform prediction on a block to be processed (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 in units of a current block or a CU. The prediction unit may generate various information related to prediction of the current block and transmit it to the entropy encoding unit 190. The information related to prediction may be encoded by the entropy encoding unit 190 and output in a bitstream format.

[0057] 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 the neighborhood of the current block or may be located away from the current block according to an intra prediction mode and / or an intra prediction technique. The intra prediction mode 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. The directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the fineness of the prediction direction. However, this is merely an example, and more or less directional prediction modes may be used depending on the setting. The intra prediction unit 185 may also determine a prediction mode to be applied to the current block using prediction modes applied to neighboring blocks.

[0058] The inter prediction unit 180 may derive a predicted block for a current block based on a reference block (reference sample array) identified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of a block, a sub-block, or a sample based on the correlation of 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. In the case of inter prediction, the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present 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 called a collocated reference block, a collocated CU (colCU), etc. The reference picture including the temporal neighboring block may be called a collocated picture (colPic). For example, the inter prediction unit 180 may generate information indicating which candidate is used to derive a motion vector and / or a reference picture index of the current block by forming a motion information candidate list based on neighboring blocks. Inter prediction may be performed based on various prediction modes, and for example, in the case of skip mode and merge mode, the inter prediction unit 180 may use motion information of neighboring blocks as motion information of the current block. In the case of skip mode, unlike the merge mode, a residual signal may not be transmitted.In the case of a motion vector prediction (MVP) mode, the motion vector of the current block can be signaled by using the motion vector of a neighboring block as a motion vector predictor and encoding a motion vector difference and an indicator for the motion vector predictor. The motion vector difference can mean the difference between the motion vector of the current block and the motion vector predictor.

[0059] The prediction unit may generate a prediction signal based on various prediction methods and / or prediction techniques, which will 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 that simultaneously applies intra prediction and inter prediction for prediction of the current block may be called combined inter and intra prediction (CIIP). The prediction unit may also perform intra block copy (IBC) for prediction of the current block. Intra block copy can be used for content image / video coding such as games, for example, as in screen content coding (SCC). IBC is a method of predicting a current block using an already restored reference block in a current picture that is located a predetermined distance away from the current block. When IBC is applied, the position of the reference block in the current picture may be coded as a vector (block vector) corresponding to the predetermined distance. IBC is basically performed in the current picture, but may be performed similarly to inter prediction in that a reference block is derived in the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this disclosure.

[0060] The prediction signal generated by the prediction unit may be used to generate a restored signal or a residual signal. The subtraction unit 115 may subtract the prediction signal (predicted block, prediction sample array) output from the prediction unit from the input image signal (original block, original sample array) to generate a residual signal (residual block, residual sample array). The generated residual signal may be transmitted to the conversion unit 120.

[0061] The transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal. For example, the transform technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a Karhunen-Loeve transform (KLT), a graph-based transform (GBT), or a conditionally non-linear transform (CNT). Here, the GBT refers to a transform obtained from a graph when the relationship information between pixels is expressed as a graph. The CNT refers to a transform obtained based on a predicted signal generated using all previously reconstructed pixels. The transform process may be applied to pixel blocks having the same square size, or may be applied to non-square, variable-sized blocks.

[0062] The quantization unit 130 may quantize the transform coefficients and transmit the quantized transform coefficients to the entropy coding unit 190. The entropy coding unit 190 may code the quantized signal (information on the quantized transform coefficients) and output the coded signal in a bitstream format. The information on the quantized transform coefficients may be referred to as residual information. The quantization unit 130 may rearrange the quantized transform coefficients in a block format into a one-dimensional vector format based on a coefficient scan order, and may generate information on the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector format.

[0063] The entropy coding unit 190 can perform various coding methods, such as exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy coding unit 190 may also code information required for video / image restoration (e.g., syntax elements (values ​​of syntax elements, etc.) together or separately) in addition to the quantized transform coefficients. The coded information (e.g., coded video / image information) may be transmitted or stored in a bitstream format in network abstraction layer (NAL) unit units. The video / image 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 / image information may also include general constraint information. The signaling information, information to be transmitted, and / or syntax elements mentioned in the present disclosure may be coded through the above-mentioned coding procedures and included in the bitstream.

[0064] The bitstream may be transmitted via a network or may be stored in a digital storage medium. Here, the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as a USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitting unit (not shown) for transmitting the signal output from the entropy encoding unit 190 and / or a storing unit (not shown) for storing the signal may be provided as an internal / external element of the image encoding device 100, or the transmitting unit may be provided as a syntax element of the entropy encoding unit 190.

[0065] The quantized transform coefficients output from the quantization unit 130 can be used to generate a residual signal. For example, the quantized transform coefficients are subjected to inverse quantization and inverse transformation via the inverse quantization unit 140 and the inverse transformation unit 150, so that a residual signal (residual block or residual sample) can be restored.

[0066] The adder 155 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to a prediction signal output from the inter prediction unit 180 or the intra prediction unit 185. When there is no residual for the current block to be processed, such as when a skip mode is applied, a predicted block may be used as a reconstructed block. The adder 155 may be referred to as a reconstruction unit or a reconstructed block generation unit. The generated reconstructed signal may be used for intra prediction of the next current block to be processed in the current picture, and may also be used for inter prediction of the next picture after filtering as described below.

[0067] The filtering unit 160 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 160 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may store the modified reconstructed picture in the memory 170, specifically, in the DPB of the memory 170. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like. The filtering unit 160 may generate various information related to filtering, as will be described later in the description of each filtering method, and transmit the information to the entropy coding unit 190. The information related to filtering may be coded by the entropy coding unit 190 and output in a bitstream format.

[0068] The modified reconstructed picture transmitted to the memory 170 may be used as a reference picture in the inter prediction unit 180. When inter prediction is applied through this, the image encoding device 100 may avoid a prediction mismatch between the image encoding device 100 and the image decoding device, and may also improve encoding efficiency.

[0069] The DPB in the memory 170 may store modified reconstructed pictures to be used as reference pictures in the inter prediction unit 180. The memory 170 may store motion information of blocks from which motion information in the current picture is derived (or coded) and / or motion information of already reconstructed intra-picture blocks. The stored motion information may be transmitted to the inter prediction unit 180 to be used as motion information of spatial surrounding blocks or motion information of temporal surrounding blocks. The memory 170 may store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra prediction unit 185.

[0070] Overview of the image decoding device FIG. 3 is a diagram illustrating an image decoding device to which an embodiment of the present disclosure can be applied.

[0071] 3, the image decoding device 200 may include an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, an adder 235, a filtering unit 240, a memory 250, an inter prediction unit 260, and an intra prediction unit 265. 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 a residual processing unit.

[0072] All or at least some of the components constituting the image decoding device 200 may be realized by one hardware component (e.g., a decoder or a processor) depending on the embodiment. Also, the memory 170 may include a DPB and may be realized by a digital storage medium.

[0073] The image decoding device 200, which receives a bitstream including video / image information, can reconstruct an image by executing a process corresponding to the process performed by the image encoding device 100 of Fig. 2. For example, the image decoding device 200 can perform decoding using a processing unit applied in the image encoding device. Thus, the processing unit for decoding can be, for example, a coding unit. The coding unit can be obtained by dividing a coding tree unit or a maximal coding unit. Then, the reconstructed image signal decoded and output via the image decoding device 200 can be reproduced via a reproduction device (not shown).

[0074] 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 via the entropy decoding unit 210. For example, the entropy decoding unit 210 may derive information (e.g., video / image information) required for image restoration (or picture restoration) by parsing the bitstream. The video / image 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). In addition, the video / image information may further include general constraint information. The image decoding apparatus may further use information on the parameter set and / or the general constraint information to decode an image. The signaling information, received information, and / or syntax elements referred to in the present disclosure may be obtained from the bitstream by being decoded via the decoding procedure. For example, the entropy decoding unit 210 may decode information in a bitstream based on an encoding method such as exponential Golomb coding, CAVLC, or CABAC, and output values ​​of syntax elements required for image restoration and quantized values ​​of transform coefficients related to the residual. More specifically, the CABAC entropy decoding method may receive bins corresponding to each syntax element from the bitstream, determine a context model using information on the syntax element to be decoded and decoded information on the neighboring blocks and the block to be decoded, or information on the symbol / bin decoded in the previous step, predict the occurrence probability of the bin based on the determined context model, and perform arithmetic decoding of the bin to generate a symbol corresponding to the value of each syntax element. In this case, the CABAC entropy decoding method may update the context model using information on the decoded symbol / bin for the context model of the next symbol / bin after determining the context model.Among the information decoded by the entropy decoding unit 210, information related to prediction is provided to a prediction unit (inter prediction unit 260 and intra prediction unit 265), and residual values ​​entropy-decoded by the entropy decoding unit 210, i.e., quantized transform coefficients and related parameter information, may be input to the inverse quantization unit 220. Also, among the information decoded by the entropy decoding unit 210, information related to filtering may be provided to the filtering unit 240. Meanwhile, a receiving unit (not shown) for receiving a signal output from the image encoding device may be further provided as an internal / external element of the image decoding device 200, or the receiving unit may be provided as a component of the entropy decoding unit 210.

[0075] Meanwhile, the image decoding device according to the present disclosure may be called a video / image / picture decoding device. The image decoding device may include an information decoder (video / image / picture information decoder) and / or a sample decoder (video / image / picture sample decoder). The information decoder may include an entropy decoding unit 210, and the sample decoder may include at least one of an inverse quantization unit 220, an inverse transform unit 230, an adder 235, a filtering unit 240, a memory 250, an inter prediction unit 260, and an intra prediction unit 265.

[0076] The inverse quantization unit 220 may inverse quantize the quantized transform coefficients to output transform coefficients. The inverse quantization unit 220 may rearrange the quantized transform coefficients in a two-dimensional block format. In this case, the rearrangement may be performed based on a coefficient scan order performed in the image encoding device. The inverse quantization unit 220 may perform inverse quantization on the quantized transform coefficients using a quantization parameter (e.g., quantization step size information) to obtain transform coefficients.

[0077] The inverse transform unit 230 can inversely transform the transform coefficients to obtain a residual signal (residual block, residual sample array).

[0078] The prediction unit may perform prediction on a current block and generate a predicted block including a prediction sample 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 may determine a specific intra / inter prediction mode (prediction technique).

[0079] The prediction unit can generate a prediction signal based on various prediction methods (techniques) described below, as has been described in the explanation of the prediction unit of the image encoding device 100.

[0080] 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 similarly applied to the intra prediction unit 265.

[0081] The inter prediction unit 260 may derive a predicted block for the current block based on a reference block (reference sample array) identified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on correlation of 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 direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. For example, the inter prediction unit 260 may configure a motion information candidate list based on the neighboring blocks, and derive a motion vector and / or a reference picture index for the current block based on the received candidate selection information. Inter prediction may be performed based on various prediction modes (techniques), and the prediction information may include information indicating a mode (technique) of inter prediction for the current block.

[0082] The adder 235 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the acquired residual signal to a prediction signal (predicted block, predicted sample array) output from a prediction unit (including the inter prediction unit 260 and / or the intra prediction unit 265). When there is no residual for a current block to be processed, such as when a skip mode is applied, the predicted block may be used as a reconstructed block. The description of the adder 155 may be similarly applied to the adder 235. The adder 235 may be referred to as a reconstruction unit or a reconstructed block generator. The generated reconstructed signal may be used for intra prediction of a next current block to be processed in a current picture, and may also be used for inter prediction of a next picture after filtering as described below.

[0083] The filtering unit 240 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 240 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may store the modified reconstructed picture in the memory 250, specifically, in the DPB of the memory 250. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, an adaptive loop filter, a bilateral filter, etc.

[0084] 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 the current picture is derived (or decoded) and / or motion information of a block in an already reconstructed picture. The stored motion information may be transmitted to the inter prediction unit 260 to be used as motion information of a spatial surrounding block or motion information of a temporal surrounding block. The memory 250 may store a reconstructed sample of a reconstructed block in the current picture and transmit it to the intra prediction unit 265.

[0085] In this specification, the embodiments described for the filtering unit 160, inter prediction unit 180 and intra prediction unit 185 of the image encoding device 100 can also be applied in a similar or corresponding manner to the filtering unit 240, inter prediction unit 260 and intra prediction unit 265 of the image decoding device 200, respectively.

[0086] Image Segmentation Overview The video / image encoding method according to the present disclosure may be performed based on the following image partition structure. Specifically, procedures such as prediction, residual processing ((inverse) transform, (inverse) quantization, etc.), syntax element coding, filtering, etc., described below, may be performed based on CTU, CU (and / or TU, PU) derived based on the image partition structure. An image may be divided in units of blocks, and the block partition procedure may be performed in the image partition unit 110 of the encoding device described above. Partition-related information may be coded by the entropy coding unit 190 and transmitted to the decoding device in the form of a bitstream. The entropy decoding unit 210 of the decoding device may derive a block partition structure of a current picture based on the partition-related information obtained from the bitstream, and perform a series of procedures for image decoding (e.g., prediction, residual processing, block / picture reconstruction, in-loop filtering, etc.) based on the block partition structure.

[0087] A picture may be partitioned into a sequence of coding tree units (CTUs). FIG. 4 shows an example of a picture being partitioned into CTUs. A CTU may correspond to a coding tree block (CTB). Alternatively, a CTU may include a coding tree block of luma samples and two coding tree blocks of corresponding chroma samples. For example, for a picture containing three sample arrays, a CTU may include an N×N block of luma samples and two corresponding blocks of chroma samples.

[0088] Overview of CTU division As mentioned above, the coding unit can be obtained by recursively splitting the coding tree unit (CTU) or the largest coding unit (LCU) by a QT / BT / TT (Quad-tree / Binary-tree / Ternal-tree) structure. For example, the CTU can be first split into a quad-tree structure. Then, the leaf node of the quad-tree structure can be further split by a multi-type tree structure.

[0089] Quadtree division means dividing a current CU (or CTU) into four equal parts. By dividing by quadtree, the current CU can be divided into four CUs having the same width and height. If the current CU is not further divided into the quadtree structure, the current CU corresponds to a leaf node of the quadtree structure. The CU corresponding to the leaf node of the quadtree structure is not further divided and can be used as the above-mentioned final coding unit. Alternatively, the CU corresponding to the leaf node of the quadtree structure can be further divided by a multi-type tree structure.

[0090] 5 is a diagram showing the types of division of a block by a multi-type tree structure. Division by a multi-type tree structure can include two divisions by a binary tree structure and two divisions by a ternary tree structure.

[0091] The two divisions according to the binary tree structure may include vertical binary splitting (SPLIT_BT_VER) and horizontal binary splitting (SPLIT_BT_HOR). Vertical binary splitting (SPLIT_BT_VER) refers to a division in which the current CU is divided into two equal parts vertically. As shown in FIG. 4, two CUs having the same height as the height of the current CU and half the width of the current CU may be generated by the vertical binary splitting. Horizontal binary splitting (SPLIT_BT_HOR) refers to a division in which the current CU is divided into two equal parts horizontally. As shown in FIG. 5, two CUs having the same width as the width of the current CU and half the height of the current CU may be generated by the horizontal binary splitting.

[0092] The two divisions according to the ternary tree structure may include vertical ternary splitting (SPLIT_TT_VER) and horizontal ternary splitting (SPLIT_TT_HOR). The vertical ternary splitting (SPLIT_TT_VER) divides the current CU vertically at a ratio of 1:2:1. As shown in FIG. 5, the vertical ternary splitting may generate two CUs having the same height as the current CU and a width 1 / 4 of the current CU, and a CU having the same height as the current CU and a width half the current CU. The horizontal ternary splitting (SPLIT_TT_HOR) divides the current CU horizontally at a ratio of 1:2:1. As shown in FIG. 4, the horizontal ternary splitting may generate two CUs having a height 1 / 4 of the current CU and a width equal to the current CU, and a CU having a height half the current CU and a width equal to the current CU.

[0093] FIG. 6 is a diagram illustrating a signaling mechanism of block partition information in a quadtree with nested multi-type tree structure according to the present disclosure.

[0094] Here, the CTU is treated as the root node of the quadtree, and the CTU is first split into a quadtree structure. Information (e.g., qt_split_flag) indicating whether or not to perform quadtree splitting for the current CU (CTU or quadtree node (QT_node)) can be signaled. For example, if qt_split_flag is a first value (e.g., "1"), the current CU can be split into a quadtree. Also, if qt_split_flag is a second value (e.g., "0"), the current CU is not split into a quadtree and becomes a leaf node (QT_leaf_node) of the quadtree. The leaf nodes of each quadtree can then be further split into a multitype tree structure. That is, the leaf node of the quadtree can become a node (MTT_node) of the multitype tree. In a multi-type tree structure, a first flag (e.g., mtt_split_cu_flag) may be signaled to indicate whether the current node is further split. If the node is further split (e.g., the first flag is 1), a second flag (e.g., mtt_split_cu_vertical_flag) may be signaled to indicate the splitting direction. For example, if the second flag is 1, the splitting direction may be vertical, and if the second flag is 0, the splitting direction may be horizontal. Then, a third flag (e.g., mtt_split_cu_binary_flag) may be signaled to indicate whether the splitting type is a binary splitting type or a ternary splitting type. For example, if the third flag is 1, the splitting type may be a binary splitting type, and if the third flag is 0, the splitting type may be a ternary splitting type. The nodes of the multitype tree obtained by binary or ternary partitioning can be further partitioned into a multitype tree structure, but the nodes of the multitype tree cannot be partitioned into a quadtree structure.If the first flag is 0, the corresponding node of the multitype tree is not further divided and becomes a leaf node (MTT_leaf_node) of the multitype tree. The CU corresponding to the leaf node of the multitype tree can be used as the final coding unit described above.

[0095] Based on the above-mentioned mtt_split_cu_vertical_flag and mtt_split_cu_binary_flag, the multi-type tree splitting mode (MttSplitMode) of the CU can be derived as shown in Table 1.

[0096] [Table 1]

[0097] 7 shows an example of a CTU being split into multiple CUs by applying a quadtree followed by a multitype tree. In FIG. 7, the bold block edge 710 indicates the quadtree split, and the remaining edges 720 indicate the multitype tree split.

[0098] The CU may correspond to a coding block CB. In one embodiment, the CU may include a coding block of luma samples and two coding blocks of chroma samples that correspond to the luma samples.

[0099] The chroma component (sample) CB or TB size may be derived based on the luma component (sample) CB or TB size according to the component ratio according to the color format (chroma format, e.g., 4:4:4, 4:2:2, 4:2:0, etc.) of the picture / image. If the color format is 4:4:4, the chroma component CB / TB size may be set to be the same as the luma component CB / TB size. If the color format is 4:2:2, 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. If the color format is 4:2:0, 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.

[0100] In one embodiment, when the size of the CTU is 128 based on the luma sample unit, the size of the CU can have a size from 128×128, which is the same size as the CTU, to 4×4. In one embodiment, in the case of a 4:2:0 color format (or chroma format), the chroma CB size can have a size from 64×64 to 2×2.

[0101] Meanwhile, in one embodiment, the CU size and the TU size may be the same, or multiple TUs may exist within a CU region. The TU size may generally refer to a luma component (sample) TB (Transform Block) size.

[0102] The TU size may be derived based on a maximum allowable TB size (maxTbSize) that is a preset value. For example, if the CU size is larger than the maxTbSize, multiple TUs (TBs) having the maxTbSize may be derived from the CU, and transform / inverse transform may be performed in units of the TUs (TBs). For example, the maximum allowable luma TB size may be 64×64, and the maximum allowable chroma TB size may be 32×32. If the width or height of a CB divided by the tree structure is larger than the maximum transform width or height, the CB may be automatically (or implicitly) divided until the horizontal and vertical TB size constraints are satisfied.

[0103] Also, for example, when intra prediction is applied, the intra prediction mode / type may be derived in units of the CU (or CB), and the procedure of deriving neighboring reference samples and generating predicted samples may be performed in units of TU (or TB). In this case, one or more TUs (or TBs) may exist within one CU (or CB) region, and in this case, the multiple TUs (or TBs) may share the same intra prediction mode / type.

[0104] Meanwhile, for a quadtree coding tree scheme with a multi-type tree, the following parameters can be signaled from the encoding device to the decoding device as SPS syntax elements. For example, at least one of CTUsize, a parameter indicating the size of a root node of a quadtree, MinQTSize, a parameter indicating the minimum allowable size of a leaf node of a quadtree, MaxBTSize, a parameter indicating the maximum allowable size of a root node of a binary tree, MaxTTSize, a parameter indicating the maximum allowable size of a root node of a ternary tree, MaxMttDepth, a parameter indicating the maximum allowed hierarchy depth of a multi-type tree split from a leaf node of a quadtree, MinBtSize, a parameter indicating the minimum allowable leaf node size of a binary tree, and MinTtSize, a parameter indicating the minimum allowable leaf node size of a ternary tree, can be signaled.

[0105] In one embodiment using a 4:2:0 chroma format, the CTU size may be set to a 128x128 luma block and two 64x64 chroma blocks corresponding to the luma block. In this case, MinQTSize may be set to 16x16, MaxBtSize may be set to 128x128, MaxTtSzie may be set to 64x64, MinBtSize and MinTtSize may be set to 4x4, and MaxMttDepth may be set to 4. A quadtree split may be applied to the CTU to generate quadtree leaf nodes. The quadtree leaf nodes may be referred to as leaf QT nodes. The quadtree leaf nodes may have a size from 16x16 (e.g., the MinQTSize) to 128x128 (e.g., the CTU size). If the leaf QT node is 128x128, it may not be further split into a binary / ternary tree. This is because even if the partition is performed in this case, it will exceed MaxBtsize and MaxTtszie (e.g., 64×64). In other cases, the leaf QT node may be further partitioned into a multitype tree. Thus, the leaf QT node is a root node for the multitype tree, and the leaf QT node may have a multitype tree depth (mttDepth) value of 0. If the multitype tree depth reaches MaxMttdepth (e.g., 4), no further additional partitioning may be considered. If the width of the multitype tree node is equal to MinBtSize and equal to or less than 2×MinTtSize, no further additional horizontal partitioning may be considered. If the height of the multitype tree node is equal to MinBtSize and equal to or less than 2×MinTtSize, no further additional vertical partitioning may be considered. In this case, if partitioning is not considered, the encoding device may omit signaling of partition information. In such a case, the decoding device may induce the partition information to a predetermined value.

[0106] Meanwhile, one CTU may include a coding block of luma samples (hereinafter referred to as a "luma block") and two coding blocks of corresponding chroma samples (hereinafter referred to as "chroma blocks"). The above coding tree scheme may be applied to the luma blocks and chroma blocks of a current CU in the same manner, or may be applied separately. Specifically, the luma blocks and chroma blocks 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). Alternatively, the luma blocks and chroma blocks in one CTU may be divided into separate block tree structures, and the tree structure in this case may be represented as a dual tree (DUAL_TREE). In other words, when a CTU is divided into a dual tree, a block tree structure for the luma blocks and a block tree structure for the chroma blocks may exist separately. In this case, the block tree structure for the luma block may be called a dual tree luma (DUAL_TREE_LUMA), and the block tree structure for the chroma block may be called a dual tree chroma (DUAL_TREE_CHROMA). For P and B slice / tile groups, the luma block and the chroma block in one CTU may be restricted to have the same coding tree structure. However, for I slice / tile groups, the luma block and the chroma block may have separate block tree structures. If a separate block tree structure is applied, a luma coding tree block (CTB) may be divided into CUs based on a specific coding tree structure, and a chroma CTB may be divided into chroma CUs based on another coding tree structure. That is, it may mean that a CU in an I slice / tile group to which a separate block tree structure is applied may be composed of a coding block of a luma component or a coding block of two chroma components, and a CU in a P or B slice / tile group may be composed of blocks of three color components (a luma component and two chroma components).

[0107] Although the quadtree coding tree structure with a multi-type tree has been described above, the structure in which the CU is divided is not limited thereto. For example, the BT structure and the TT structure can be interpreted as concepts included in a multiple partitioning tree (MPT) structure, and the CU can be interpreted as being divided by the QT structure and the MPT structure. In an example in which the CU is divided by the QT structure and the MPT structure, a syntax element (e.g., MPT_split_type) including information on whether the leaf node of the QT structure is divided into several blocks and a syntax element (e.g., MPT_split_mode) including information on which direction the leaf node of the QT structure is divided in, vertically or horizontally, are signaled, so that the division structure can be determined.

[0108] In another example, the CUs may be divided in a manner different from that of the QT structure, the BT structure, or the TT structure, that is, unlike the QT structure in which the CUs of the lower depth are divided into 1 / 4 size of the CUs of the higher depth, or the BT structure in which the CUs of the lower depth are divided into 1 / 2 size of the CUs of the higher depth, or the TT structure in which the CUs of the lower depth are divided into 1 / 4 or 1 / 2 size of the CUs of the higher depth, the CUs of the lower depth may be divided into 1 / 5, 1 / 3, 3 / 8, 3 / 5, 2 / 3, or 5 / 8 size of the CUs of the higher depth, as the case may be, and the manner in which the CUs are divided is not limited thereto.

[0109] In this way, the quadtree coding block structure with the multi-type tree can provide a very flexible block division structure. Meanwhile, due to the division types supported by the multi-type tree, different division patterns can potentially result in the same coding block structure in some cases. The encoding device and the decoding device can reduce the amount of data of the division information by limiting the occurrence of such redundant division patterns.

[0110] For example, FIG. 8 exemplarily illustrates redundant partitioning patterns that may occur in binary tree partitioning and ternary tree partitioning. As shown in FIG. 8, the continuous binary partitioning 810 and 820 in one direction at the two-step level has the same coding block structure as the binary partitioning for the center partition after ternary partitioning. In such a case, binary tree partitioning for the center blocks 830 and 840 of the ternary tree partitioning can be prohibited. Such prohibition can be applied to the CUs of all pictures. If such a particular partitioning is prohibited, the signaling of the corresponding syntax element can be modified to reflect such a prohibited case, thereby reducing the number of bits signaled for the partitioning. For example, as in the example shown in FIG. 8, if binary tree partitioning for the center block of the CU is prohibited, the mtt_split_cu_binary_flag syntax element indicating whether the partitioning is binary partitioning or ternary partitioning is not signaled, and its value can be induced to 0 by the decoding device.

[0111] Inter Prediction Overview Inter prediction according to the present disclosure will be described below.

[0112] The prediction unit of the image encoding device / image decoding device according to the present disclosure may perform inter prediction on a block basis to derive a prediction sample. Inter prediction may indicate a prediction derived in a manner dependent on data elements (e.g., sample values ​​or motion information, etc.) of pictures other than the current picture. When inter prediction is applied to the current block, a predicted block (prediction block or prediction sample array) for the current block may be derived based on a reference block (reference sample array) identified by a motion vector on a reference picture indicated by a reference picture index. At this time, in order to reduce the amount of motion information transmitted in the inter prediction mode, motion information of the current block may be predicted on a block, sub-block, or sample basis based on correlation between motion information of a neighboring block 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. When inter prediction is applied, the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture. The reference picture including the reference block and the reference picture including the temporal peripheral block may be the same or different. The temporal peripheral block may be called a collocated reference block, a collocated CU (colCU), a col block, etc., and the reference picture including the temporal peripheral block may be called a collocated picture (colPic), a col picture, etc. For example, a motion information candidate list may be constructed based on the peripheral blocks of the current block, and a flag or index information indicating which candidate is selected (used) to derive the motion vector and / or reference picture index of the current block may be signaled.

[0113] Inter prediction may be performed based on various prediction modes. For example, in the case of skip mode and merge mode, the motion information of the current block may be the same as the motion information of the selected neighboring block. In the case of skip mode, unlike the merge mode, a residual signal may not be transmitted. In the case of motion vector prediction (MVP) mode, the motion vector of the selected neighboring block may be used as a motion vector predictor, and a motion vector difference may be signaled. In this case, the motion vector of the current block may be derived using the sum of the motion vector predictor and the motion vector difference. In this disclosure, the MVP mode may be used synonymously with AMVP (Advanced Motion Vector Prediction).

[0114] The motion information may include L0 motion information and / or L1 motion information based on an inter prediction type (such as L0 prediction, L1 prediction, Bi prediction, etc.). A motion vector in the L0 direction may be referred to as an L0 motion vector or MVL0, and a motion vector in the L1 direction may be referred to as an L1 motion vector or MVL1. A prediction based on an L0 motion vector may be referred to as an L0 prediction, a prediction based on an L1 motion vector may be referred to as an L1 prediction, and a prediction based on both the L0 motion vector and the L1 motion vector may be referred to as a bi-prediction. Here, the L0 motion vector may indicate a motion vector associated with a reference picture list L0 (L0), and the L1 motion vector may indicate a motion vector associated with a reference picture list L1 (L1). The reference picture list L0 may include pictures earlier in output order than the current picture as reference pictures, and the reference picture list L1 may include pictures later in output order than the current picture. The previous picture may be referred to as a forward (reference) picture, and the subsequent picture may be referred to as a backward (reference picture). The reference picture list L0 may further include a picture subsequent to the current picture in output order as a reference picture. In this case, the previous picture may be indexed first in the reference picture list L0, and the subsequent picture may be indexed next. The reference picture list L1 may further include a picture prior to the current picture in output order as a reference picture. In this case, the subsequent picture may be indexed first in the reference picture list L1, and the previous picture may be indexed next. Here, the output order may correspond to a picture order count (POC) order.

[0115] FIG. 9 is a flow chart illustrating an inter-prediction based video / image coding method.

[0116] FIG. 10 is a diagram illustrating an example configuration of the inter prediction unit 180 according to the present disclosure.

[0117] The encoding method of FIG. 9 may be performed by the image encoding device 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 sample. The residual information may include information on quantized transform coefficients for the residual sample. As described above, the residual sample may be derived as a transform coefficient via the transform unit 120 of the image encoding device, and the transform coefficient may be derived as a quantized transform coefficient via the quantization unit 130. The information on the quantized transform coefficient may be coded in the entropy encoding unit 190 through a residual coding procedure.

[0118] The image encoding apparatus may perform inter prediction on a current block (S610). The image encoding apparatus may derive an inter prediction mode and motion information of a current block, and generate a prediction sample of the current block. Here, the inter prediction mode determination, motion information derivation, and prediction sample generation procedures may be performed simultaneously, or one procedure may be performed prior to the other procedures. For example, as shown in FIG. 10, an inter prediction unit 180 of the image encoding apparatus may include a prediction mode determination unit 181, a motion information derivation unit 182, and a prediction sample derivation unit 183. The prediction mode determination unit 181 may determine a prediction mode for the current block, the motion information derivation unit 182 may derive motion information of the current block, and the prediction sample derivation unit 183 may derive a prediction sample of the current block. For example, the inter prediction unit 180 of the image encoding apparatus may search for a block similar to the current block within a certain area (search area) of a reference picture through motion estimation, and derive a reference block whose difference with the current block is minimum or equal to 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 difference in position between the reference block and the current block. The image encoding apparatus may determine a mode to be 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. However, the method in which the image encoding apparatus determines a prediction mode for the current block is not limited to the above example, and various methods may be used.

[0119] For example, when a skip mode or a merge mode is applied to a current block, the image encoding apparatus may derive merge candidates from neighboring blocks of the current block and construct a merge candidate list using the induced merge candidates. The image encoding apparatus may also derive a reference block whose difference from the current block is minimum or equal to or less than a certain criterion among reference blocks indicated by merge candidates included in the merge candidate list. In this case, a merge candidate associated with the derived reference block may be 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.

[0120] As another example, when the MVP mode is applied to the current block, the image encoding apparatus may derive MVP (motion vector predictor) candidates from neighboring blocks of the current block, and may construct an MVP candidate list using the induced MVP candidates. The image encoding apparatus may use a motion vector of an MVP candidate selected from the MVP candidates included in the MVP candidate list as an MVP of the current block. In this case, for example, a motion vector indicating a reference block derived by the above-mentioned motion estimation may be used as the motion vector of the current block, and an MVP candidate having a motion vector with the smallest difference from the motion vector of the current block among the MVP candidates may become 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. In this case, index information indicating the selected MVP candidate and information regarding the MVD may be signaled to the image decoding apparatus. Also, when the MVP mode is applied, the value of the reference picture index may be configured as reference picture index information and may be separately signaled to the image decoding apparatus.

[0121] The image encoding apparatus may derive a residual sample based on the predicted sample (S620). The image encoding apparatus may derive the residual sample by comparing an original sample of the current block with the predicted sample. For example, the residual sample may be derived by subtracting a corresponding predicted sample from an original sample.

[0122] 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 a bitstream format. The prediction information may include prediction mode information (e.g., a skip flag, a merge flag, or a mode index) and information on motion information, which are information related to the prediction procedure. The skip flag of the prediction mode information is information indicating whether a skip mode is applied to the current block, and the merge flag is information indicating whether a merge mode is applied to the current block. Alternatively, the prediction mode information may be information indicating one of a plurality of prediction modes, such as a mode index. If 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 (e.g., a merge index, an MVP flag, or an MVP index) which is information for deriving a motion vector. The merge index of the candidate selection information 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 a merge candidate list. Among the candidate selection information, the MVP flag or the MVP index may be signaled when the MVP mode is applied to the current block, and may be information for selecting one of the MVP candidates included in the MVP candidate list. In addition, the information on the motion information may include the above-mentioned information on the MVD and / or reference picture index information. In addition, the information on the motion information may include information indicating whether L0 prediction, L1 prediction, or Bi-prediction is applied. The residual information is information on the residual sample. The residual information may include information on a quantized transform coefficient for the residual sample.

[0123] The output bitstream may be stored on a (digital) storage medium and transmitted to the image decoding device, or may be transmitted to the image decoding device via a network.

[0124] Meanwhile, as described above, the image coding apparatus can generate a reconstructed picture (a picture including reconstructed samples and reconstructed blocks) based on the reference samples and the residual samples. This is because the image coding apparatus derives the same prediction result as that performed by the image decoding apparatus, thereby improving coding efficiency. Therefore, the image coding apparatus can store the reconstructed picture (or reconstructed samples, reconstructed blocks) in a memory and use it as a picture for inter prediction. As described above, an in-loop filtering procedure or the like can be further applied to the reconstructed picture.

[0125] FIG. 11 is a flow chart illustrating an inter-prediction based video / image decoding method.

[0126] FIG. 12 is a diagram illustrating an example configuration of the inter prediction unit 260 according to the present disclosure.

[0127] The image decoding apparatus may perform operations corresponding to those performed by the image encoding apparatus, and may perform prediction for a current block based on received prediction information to derive predicted samples.

[0128] The decoding method of FIG. 11 may be performed by the image decoding apparatus of FIG. 3. Steps 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 a bitstream by the entropy decoding unit 210. The residual processing unit of the image decoding apparatus may derive a residual sample for a current block based on the residual information (S840). Specifically, the inverse quantization unit 220 of the residual processing unit may derive a transform coefficient by performing inverse quantization based on the quantized transform coefficient derived based on the residual information, and the inverse transform unit 230 of the residual processing unit may derive a residual sample for the current block by performing inverse transform on the transform coefficient. Step S850 may be performed by the adder 235 or a reconstruction unit.

[0129] Specifically, the image decoding apparatus may determine a prediction mode for the current block based on the received prediction information (S810). The image decoding apparatus may determine which inter prediction mode is applied to the current block based on prediction mode information in the prediction information.

[0130] For example, it may be determined whether the skip mode is applied to the current block based on the skip flag. Also, it may be determined whether the merge mode or the MVP mode is applied to the current block based on the merge flag. Or, it may select one of various inter prediction mode candidates based on the mode index. The inter prediction mode candidates may include skip mode, merge mode, and / or MVP mode, or may include various inter prediction modes described below.

[0131] The image 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 image decoding apparatus may form a merge candidate list (described later) and select one of the merge candidates included in the merge candidate list. The selection may be performed based on the candidate selection information (merge index) described above. The image decoding apparatus may derive motion information of the current block using motion information of the selected merge candidate. For example, the motion information of the selected merge candidate may be used as motion information of the current block.

[0132] As another example, when the MVP mode is applied to the current block, the image decoding apparatus may construct an MVP candidate list, and may use a motion vector of an MVP candidate selected from among the MVP candidates included in the MVP candidate list as the MVP of the current block. The selection may be performed based on the above-mentioned candidate selection information (MVP flag or MVP index). In this case, the MVD of the current block may be derived based on information on the MVD, and the motion vector of the current block may be derived based on the MVP of the current block and the MVD. Also, the reference picture index of the current block may be derived based on the reference picture index information. A picture pointed to by the reference picture index in the associated reference picture list for the current block may be derived as a reference picture referenced for inter prediction of the current block.

[0133] The image decoding apparatus may generate a prediction sample for the current block based on the motion information of the current block (S830). In this case, the reference picture may be derived based on a reference picture index of the current block, and the prediction sample of the current block may be derived using a sample of a reference block to which the motion vector of the current block points on the reference picture. Depending on the case, a prediction sample filtering procedure may be further performed on all or some of the prediction samples of the current block. For example, as shown in FIG 12, 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. The inter prediction unit 260 of the image decoding apparatus may determine a prediction mode for the current block based on prediction mode information received from the prediction mode determination unit 261, derive motion information (such as a motion vector and / or a reference picture index) of the current block based on information on the motion information received from the motion information derivation unit 262, and derive a prediction sample of the current block in the prediction sample derivation unit 263.

[0134] The image decoding apparatus may generate a residual sample for the current block based on the received residual information (S840). The image decoding apparatus may generate a reconstructed sample for the current block based on the predicted sample and the residual sample, and generate a reconstructed picture based on the reconstructed sample (S850). Thereafter, an in-loop filter procedure or the like may be further applied to the reconstructed picture, as described above.

[0135] As described above, the inter prediction procedure may include an inter prediction mode determination step, a motion information derivation step according to the determined prediction mode, and a prediction execution step (generation of a prediction sample) based on the derived motion information. The inter prediction procedure may be performed in an image encoding device and an image decoding device as described above.

[0136] The motion information derivation step according to the prediction mode will be described in more detail below.

[0137] As described above, inter prediction may be performed using motion information of a current block. The image coding apparatus may derive optimal motion information for a current block through a motion estimation procedure. For example, the image coding apparatus may search for a similar reference block with high correlation using an original block in an original picture for the current block in a fractional pixel unit within a determined search range in the reference picture, thereby deriving motion information. The similarity of the blocks may be calculated based on a sum of absolute differences (SAD) between the current block and the reference block. In this case, the motion information may be derived based on a reference block with the smallest SAD in the search range. The derived motion information may be signaled to the image decoding apparatus by various methods based on the inter prediction mode.

[0138] When a merge mode is applied to a current block, the motion information of the current block is not directly transmitted, but is derived using the motion information of the neighboring blocks. Thus, the motion information of the current prediction block can be indicated by transmitting flag information indicating that the merge mode is used and candidate selection information (e.g., merge index) indicating which neighboring block is used as a merge candidate. In this disclosure, since the current block is a unit of prediction execution, the current block can be used in the same sense as the current prediction block, and the neighboring block can be used in the same sense as the neighboring prediction block.

[0139] The image encoding apparatus may search for a merge candidate block used to derive motion information of a current block to perform a merge mode. For example, but not limited to, up to 5 merge candidate blocks may be used. The maximum number of merge candidate blocks may be transmitted from a slice header or a tile group header, but is not limited to this. After finding the merge candidate blocks, the image encoding apparatus may generate a merge candidate list, and may select a merge candidate block having the smallest RD cost as a final merge candidate block.

[0140] The present disclosure provides various embodiments for the merge candidate blocks constituting the merge candidate list. The merge candidate list may use, for example, five merge candidate blocks. For example, four spatial merge candidates and one temporal merge candidate may be used.

[0141] FIG. 13 is a diagram illustrating neighboring blocks that can be used as spatial merging candidates.

[0142] FIG. 14 is a diagram illustrating a method for constructing a merge candidate list according to an example of the present disclosure.

[0143] The image encoding device / image decoding device may insert the spatial merge candidates derived by searching the spatial peripheral blocks of the current block into the merge candidate list (S1110). For example, the spatial peripheral blocks may include a lower left corner peripheral block A0, a left side peripheral block A1, a top right corner peripheral block B0, a top side peripheral block B1, and a top left corner peripheral block B2 of the current block as shown in FIG. 13. However, this is merely an example, and additional peripheral blocks such as a right side peripheral block, a bottom peripheral block, and a bottom right peripheral block may be used as the spatial peripheral blocks in addition to the spatial peripheral blocks described above. The image encoding device / image decoding device may search the spatial peripheral blocks based on a priority order to detect available blocks and derive motion information of the detected blocks as the spatial merge candidates. For example, the image encoding device / image decoding device may search the five blocks shown in FIG. 13 in the order of A1, B1, B0, A0, and B2, and sequentially index available candidates to construct a merge candidate list.

[0144] The image encoding apparatus / image decoding apparatus may insert a derived temporal merge candidate into the merge candidate list by searching for a temporal peripheral block of the current block (S1120). The temporal peripheral block may be located on a reference picture that is a different picture from the current picture in which the current block is located. The reference picture in which the temporal peripheral block is located may be called a collocated picture or a col picture. The temporal peripheral block may be searched for in the order of a lower right corner peripheral block and a lower right center block of a colocated block with respect to the current block on the col picture. Meanwhile, when motion data compression is applied to reduce memory load, specific motion information may be stored as representative motion information for each certain storage unit for the col picture. In this case, it is not necessary to store motion information for all blocks in the certain storage unit, and thus a motion data compression effect can be obtained. In this case, the certain storage unit may be predetermined, for example, in 16x16 sample units or 8x8 sample units, or size information for the certain storage unit may be signaled from the image encoding device to the image decoding device. When the motion data compression is applied, the motion information of the temporal peripheral block may be replaced with representative motion information of the certain storage unit in which the temporal peripheral block is located. That is, in this case, from the viewpoint of implementation, the temporal merge candidate may be derived based on the motion information of a prediction block that covers a position arithmetically shifted left after arithmetically shifting a certain value based on the coordinates (upper left sample position) of the temporal peripheral block, rather than a prediction block located at the coordinates of the temporal peripheral block. For example, if the certain storage unit is 2 n ×2 nWhen it is in sample units, if the coordinates of the temporal neighboring block are (xTnb, yTnb), the motion information of the prediction block located at the corrected position ((xTnb>>n)<<n), (yTnb>>n)<<n)) can be used for the temporal merge candidate. Specifically, for example, when the fixed storage unit is 16×16 sample units, if the coordinates of the temporal neighboring block are (xTnb, yTnb), the motion information of the prediction block located at the corrected position ((xTnb>>4)<<4), (yTnb>>4)<<4)) can be used for the temporal merge candidate. Or, for example, when the fixed storage unit is 8×8 sample units, if the coordinates of the temporal neighboring block are (xTnb, yTnb), the motion information of the prediction block located at the corrected position ((xTnb>>3)<<3), (yTnb>>3)<<3)) can be used for the temporal merge candidate.

[0145] Referring to FIG. 14 again, the image encoding device / image decoding device can 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 can be defined in advance or signaled from the image encoding device to the image decoding device. For example, the image encoding device can generate information regarding the number of the maximum merge candidates, encode it, and transmit it to the image decoding device in the form of a bit stream. When all of the number of the maximum merge candidates are satisfied, the subsequent candidate addition process (S1140) can be not performed.

[0146] If, as a result of the check in step S1130, the number of the current merge candidates is smaller than the number of the maximum merge candidates, the image encoding device / image decoding device can induce additional merge candidates based on a predetermined method and then insert them into the merge candidate list (S1140).

[0147] As a result of the check in step S1130, if the number of the current merging candidates is not smaller than the maximum number of merging candidates, the image encoding device / image decoding device may end construction of the merging candidate list. In this case, the image encoding device may select an optimal merging candidate from among the merging candidates constituting the merging candidate list based on an RD cost, and may signal candidate selection information (e.g., a merge index) indicating the selected merging candidate to the image decoding device. The image decoding device may select the optimal merging candidate based on the merging candidate list and the candidate selection information.

[0148] As described above, the motion information of the selected merging candidate may be used as the motion information of the current block, and a predicted sample of the current block may be derived based on the motion information of the current block. The image encoding apparatus may derive a residual sample of the current block based on the predicted sample, and may signal residual information regarding the residual sample to an image decoding apparatus. As described above, the image decoding apparatus may generate a reconstructed sample based on the residual sample derived based on the residual information and the predicted sample, and generate a reconstructed picture based on the reconstructed sample.

[0149] When a skip mode is applied to a current block, motion information of the current block can be derived in the same manner as when a merge mode is applied to the previous block, except that when the skip mode is applied, the residual signal for the current block is omitted, and thus the predicted samples can be used immediately as reconstructed samples.

[0150] When the MVP mode is applied to the current block, a motion vector predictor (mvp) candidate list can be generated using the motion vector of the restored spatial surrounding block (e.g., the surrounding block shown in FIG. 13) and / or the motion vector corresponding to the temporal surrounding block (or Col block). That is, the motion vector of the restored spatial surrounding block and / or the motion vector corresponding to the temporal surrounding block can be used as a motion vector predictor candidate of the current block. When bi-prediction is applied, an mvp candidate list for deriving L0 motion information and an mvp candidate list for deriving L1 motion information can be generated and used separately. Prediction information (or prediction information) for the current block can include candidate selection information (e.g., an MVP flag or an MVP index) indicating an optimal motion vector predictor candidate selected from the motion vector predictor candidates included in the mvp candidate list. In this case, the prediction unit can select a motion vector predictor of the current block from the motion vector predictor candidates included in the mvp candidate list using the candidate selection information. The prediction unit of the image encoding device may obtain a motion vector difference (MVD) between a motion vector of a current block and a motion vector predictor, and may encode the obtained motion vector difference and output the motion vector difference in a bitstream format. That is, the MVD may be obtained by subtracting the motion vector predictor from the motion vector of the current block. The prediction unit of the image decoding device may obtain a motion vector difference included in information related to the prediction, 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 image decoding device may obtain or induce a reference picture index indicating a reference picture, etc., from information related to the prediction.

[0151] FIG. 15 is a diagram illustrating a motion vector predictor candidate list construction method according to an example of the present disclosure.

[0152] First, the spatial candidate blocks of the current block are searched for, and available candidate blocks can be inserted into the MVP candidate list (S1210). Then, it is determined whether the MVP candidate list contains less than two MVP candidates (S1220). If there are two, the construction of the MVP candidate list can be completed.

[0153] In step S1220, if there are less than two spatial candidate blocks available, the temporal candidate blocks of the current block may be searched and the available candidate blocks may be inserted into the MVP candidate list (S1230). If no temporal candidate blocks are available, the construction of the MVP candidate list may be completed by inserting a zero motion vector into the MVP candidate list (S1240).

[0154] On the other hand, when the MVP mode is applied, the reference picture index may be explicitly signaled. In this case, a picture index (refidxL0) for L0 prediction and a reference picture index (refidxL1) for L1 prediction may be signaled separately. For example, when the MVP mode is applied and bi-prediction (BI prediction) is applied, information on refidxL0 and information on refidxL1 may both be signaled.

[0155] As described above, when the MVP mode is applied, information on the MVD derived from the image coding apparatus may be signaled to the image decoding apparatus. The information on the MVD may include, for example, information indicating x, y components for the MVD absolute value and the sign. In this case, information indicating whether the MVD absolute value is greater than 0 and greater than 1, and the rest of the MVD may be signaled stepwise. For example, information indicating whether the MVD absolute value is greater than 1 may be signaled only when the value of flag information indicating whether the MVD absolute value is greater than 0 is 1.

[0156] FIG. 16 is a diagram showing a syntax structure for transmitting an MVD from an image encoding device to an image decoding device according to an example of the present disclosure.

[0157] In FIG. 16, abs_mvd_greater0_flag[0] indicates whether the absolute value of the x component of MVD is greater than 0, and abs_mvd_greater0_flag[1] indicates whether the absolute value of the y component of MVD is greater than 0. Similarly, abs_mvd_greater1_flag[0] indicates whether the absolute value of the x component of MVD is greater than 1, and abs_mvd_greater1_flag[1] indicates whether the absolute value of the y component of MVD is greater than 1. As shown in FIG. 16, abs_mvd_greater1_flag can be transmitted only when abs_mvd_greater0_flag is 1. In FIG. 16, abs_mvd_minus2 indicates a value obtained by subtracting 2 from the absolute value of MVD, and mvd_sign_flag indicates whether the sign of MVD is positive or negative. Using the syntax structure shown in FIG. 16, the MVD can be derived as follows:

[0158]

number

[0159] Meanwhile, an MVD (MVDL0) for L0 prediction and an MVD (MVDL1) for L1 prediction may be signaled separately, and information about the MVD may include information about MVDL0 and / or information about MVDL1. For example, when MVP mode and BI prediction are applied to a current block, information about MVDL0 and information about MVDL1 may both be signaled.

[0160] Overview of IBC (Intra Block Copy) prediction The IBC forecast according to this disclosure will be described below.

[0161] IBC prediction may be performed in a prediction unit of an image encoding device / image decoding device. IBC prediction may be simply referred to as "IBC". The IBC may be used for content image / video coding such as games, such as screen content coding (SCC). The IBC may be performed similarly to inter prediction in that it basically performs prediction within a current picture, but derives a reference block within the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this disclosure. For example, the IBC may use at least one of the above-mentioned motion information (motion vector) derivation methods. At least one of the inter prediction techniques may be partially modified in consideration of the IBC prediction. The IBC may refer to a current picture. Thus, it may also be referred to as CPR (current picture referencing).

[0162] For IBC, the image coding apparatus may derive an optimal block vector (or motion vector) for a current block (e.g., CU) by performing block matching BM. The derived block vector (or motion vector) may be signaled to the image decoding apparatus via a bitstream using a method similar to the motion information (motion vector) signaling in the above-mentioned inter prediction. The image decoding apparatus may derive a reference block for the current block in the current picture via the signaled block vector (motion vector), and may thereby derive a prediction signal (predicted block or prediction sample) for the current block. Herein, the block vector (or motion vector) may indicate a displacement from the current block to a reference block located in an already restored area in the current picture. Thus, the block vector (or motion vector) may also be referred to as a displacement vector. Hereinafter, the motion vector in IBC 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 (luma motion vector) or a motion vector for a chroma component (chroma motion vector). For example, the luma motion vector for an IBC coded CU may also be in integer sample units (i.e., integer precision). The chroma motion vector may also be clipped in integer sample units. As described above, IBC may use at least one of the inter prediction techniques, for example, the luma motion vector may be encoded / decoded using the merge mode or MVP mode described above.

[0163] When a merge mode is applied to a luma IBC block, a 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 Figure 14. However, in the case of a luma IBC block, the temporal surrounding blocks may not be used as merge candidates.

[0164] When the MVP mode is applied to a luma IBC block, 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 Figure 15. However, in the case of a luma IBC block, a temporal candidate block may not be used as an MVP candidate. IBC derives reference blocks from already reconstructed areas in the current picture. In this case, in order to reduce memory consumption and the complexity of the image decoding device, only predefined areas among the already reconstructed areas in the current picture can be referenced. The predefined areas can include the current CTU in which the current block is included. By limiting the referenceable reconstructed areas to the predefined areas in this way, the IBC mode can be implemented in hardware using a local on-chip memory.

[0165] An image coding device implementing IBC can search the already defined region to determine the reference block with the smallest RD cost, and derive a motion vector (block vector) based on the positions of the reference block and the current block.

[0166] Whether or not IBC is applied to the current block may be signaled as IBC execution information at the CU level. Information regarding a signaling method (IBC MVP mode or IBC skip / merge mode) of the motion vector of the current block may be signaled. The IBC execution information may be used to determine the prediction mode of the current block. Thus, the IBC execution information may be included in information regarding the prediction mode of the current block.

[0167] In the case of IBC skip / merge mode, a merge candidate index may be signaled and used to indicate a block vector used to predict the current luma block among block vectors included in the merge candidate list. In this case, the merge candidate list may include neighboring blocks coded using IBC. The merge candidate list may be configured to include spatial merge candidates and not include temporal merge candidates. The merge candidate list may further include History-based Motion Vector Predictor (HMVP) candidates and / or pairwise candidates.

[0168] In the case of IBCMVP mode, the block vector difference value can be coded in the same manner as the motion vector difference value of the inter mode. The block vector prediction method can be used by forming an MVP candidate list including two candidates as predictors, as in the MVP mode of the inter mode. One of the two candidates can be derived from the left peripheral block, and the other can be derived from the upper peripheral block. In this case, only if the left or upper peripheral block is coded in IBC, a candidate can be derived from the peripheral block. If the left or upper peripheral block is not available, for example, if it is not coded in IBC, a default block vector can be included in the MVP candidate list as a predictor. Also, information (e.g., a flag) for indicating one of the two block vector predictors is signaled and used as candidate selection information, as in the MVP mode of the inter mode. The MVP candidate list can include an HMVP candidate and / or a zero motion vector as a default block vector.

[0169] The HMVP candidates may also be called history-based MVP candidates, and MVP candidates, merge candidates, or block vector candidates previously used in encoding / decoding of the current block may be stored in the HMVP list as HMVP candidates. Thereafter, if 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.

[0170] The pairwise candidate refers to a candidate derived by selecting two candidates according to a predetermined order from among the candidates already included in the merge candidate list of the current block, and averaging the two selected candidates.

[0171] FIG. 17 is a flow chart illustrating an IBC-based video / image encoding method.

[0172] FIG. 18 is a diagram illustrating an example of a configuration of a prediction unit that performs the IBC-based video / image encoding method according to the present disclosure.

[0173] The encoding method of FIG. 17 may be performed by the image encoding device of FIG. 2. Specifically, step S1410 may be performed by a prediction unit, and step S1420 may be performed by a residual processing unit. Specifically, step S1420 may be performed by a subtraction unit 115. Step S1430 may be performed by an entropy encoding unit 190. The prediction information of step S1430 may be derived by a prediction unit, and the residual information of step S1430 may be derived by a residual processing unit. The residual information is information about the residual sample. The residual information may include information about quantized transform coefficients for the residual sample. As described above, the residual sample may be derived as a transform coefficient via a transform unit 120 of the image encoding device, and the transform coefficient may be derived as a quantized transform coefficient via a quantization unit 130. Information about the quantized transform coefficient may be encoded in the entropy encoding unit 190 through a residual encoding procedure.

[0174] The image encoding apparatus may perform IBC prediction (prediction based on IBC) for a current block (S1410). The image encoding apparatus may derive a prediction mode and a motion vector (block vector) for the current block, and generate a prediction sample for the current block. The prediction mode may include at least one of the above-mentioned inter prediction modes. Here, the prediction mode determination, motion vector derivation, and prediction sample generation procedures may be performed simultaneously, or any one of the procedures may be performed first. For example, as shown in FIG. 18, a prediction unit of an image encoding apparatus performing a video / image encoding method based on IBC 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 for the current block, and a prediction sample derivation unit may derive a prediction sample for the current block. For example, a prediction unit of an image encoding device may search for a block similar to the current block within a reconstructed area (or a certain area (search area) of the reconstructed area) of a current picture, and derive a reference block whose difference from the current block is minimum or equal to or less than a certain criterion. The image encoding device may derive a motion vector based on a displacement difference between the reference block and the current block. The image encoding device may determine a mode to be applied to the current block from among various prediction modes. The image encoding device may compare rate distortion costs (RD costs) for the various prediction modes and determine an optimal prediction mode for the current block. However, the method in which the image encoding device determines a prediction mode for the current block is not limited to the above example, and various methods may be used.

[0175] For example, when a skip mode or a merge mode is applied to a current block, the image encoding apparatus may derive merge candidates from neighboring blocks of the current block and construct a merge candidate list using the induced merge candidates. The image encoding apparatus may also derive a reference block whose difference from the current block is minimum or equal to or less than a certain criterion among reference blocks indicated by merge candidates included in the merge candidate list. In this case, a merge candidate associated with the derived reference block may be selected, and merge index information indicating the selected merge candidate may be generated and signaled to the image decoding apparatus. A motion vector of the current block may be derived using a motion vector of the selected merge candidate.

[0176] As another example, when the MVP mode is applied to the current block, the image encoding apparatus may derive motion vector predictor (MVP) candidates from neighboring blocks of the current block, and may construct an MVP candidate list using the induced MVP candidates. The image encoding apparatus may use a motion vector of an MVP candidate selected from the MVP candidates included in the MVP candidate list as the MVP of the current block. In this case, for example, a motion vector indicating a reference block derived by the above-mentioned motion estimation may be used as the motion vector of the current block, and an MVP candidate having a motion vector with the smallest difference from the motion vector of the current block among the MVP candidates may become 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. In this case, index information indicating the selected MVP candidate and information regarding the MVD may be signaled to the image decoding apparatus.

[0177] The image encoding apparatus may derive a residual sample based on the predicted sample (S1420). The image encoding apparatus may derive the residual sample by comparing an original sample of the current block with the predicted sample. For example, the residual sample may be derived by subtracting a corresponding predicted sample from an original sample.

[0178] 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 a bitstream format. The prediction information may include prediction mode information (e.g., a skip flag, a merge flag, or a mode index) and information on a motion vector as information related to the prediction procedure. The skip flag of the prediction mode information is information indicating whether a skip mode is applied to a current block, and the merge flag is information indicating whether a merge mode is applied to a current block. Alternatively, the prediction mode information may be information indicating one of a plurality of prediction modes, such as a mode index. If the skip flag and the merge flag are each 0, it may be determined that an MVP mode is applied to the current block. The information on the motion vector may include candidate selection information (e.g., a merge index, an MVP flag, or an MVP index) that is information for deriving a motion vector. The merge index of the candidate selection information 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 a merge candidate list. The MVP flag or MVP index of the candidate selection information may be signaled when an MVP mode is applied to a current block, and may be information for selecting one of the MVP candidates included in an MVP candidate list. The information about the motion vector may include information about the above-mentioned MVD. The information about the motion vector may include information indicating whether L0 prediction, L1 prediction, or bi-prediction is applied. The residual information is information about the residual sample. The residual information may include information about quantized transform coefficients for the residual sample.

[0179] The output bitstream may be stored on a (digital) storage medium and transmitted to the image decoding device, or may be transmitted to the image decoding device via a network.

[0180] Meanwhile, as described above, the image coding apparatus can generate a reconstructed picture (a picture including reconstructed samples and reconstructed blocks) based on the reference samples and the residual samples. This is because the image coding apparatus derives the same prediction result as that performed by the image decoding apparatus, thereby improving coding efficiency. Therefore, the image coding apparatus can store the reconstructed picture (or reconstructed samples, reconstructed blocks) in a memory and use it as a reference picture for inter prediction. As described above, an in-loop filtering procedure or the like can be further applied to the reconstructed picture.

[0181] FIG. 19 is a flow chart illustrating an IBC-based video / image decoding method.

[0182] FIG. 20 is a diagram illustrating an example configuration of a prediction unit that executes the IBC-based video / image decoding method according to the present disclosure.

[0183] The image decoding apparatus may perform operations corresponding to those performed by the image encoding apparatus, and may perform IBC prediction on the current block based on the received prediction information to derive a prediction sample.

[0184] The decoding method of FIG. 19 may be performed by the image decoding apparatus of FIG. 3. Steps S1610 to S1630 may be performed by a prediction unit, and prediction information of step S1610 and residual information of step S1640 may be acquired from a bitstream by an entropy decoding unit 210. The residual processing unit of the image decoding apparatus may derive a residual sample for a current block based on the residual information (S1640). Specifically, the inverse quantization unit 220 of the residual processing unit may derive a transform coefficient by performing inverse quantization based on a quantized transform coefficient derived based on the residual information, and the inverse transform unit 230 of the residual processing unit may derive a residual sample for the current block by performing inverse transform on the transform coefficient. Step S1650 may be performed by an adder 235 or a reconstruction unit.

[0185] Specifically, the image decoding apparatus may determine a prediction mode for the current block based on the received prediction information (S1610). The image decoding apparatus may determine which prediction mode is applied to the current block based on prediction mode information in the prediction information.

[0186] For example, it may be determined whether the skip mode is applied to the current block based on the skip flag. Also, it may be determined whether the merge mode or the MVP mode is applied to the current block based on the merge flag. Or, it may select one of various prediction mode candidates based on the mode index. The prediction mode candidates may include skip mode, merge mode, and / or MVP mode, or may include the various inter prediction modes described above.

[0187] 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 image decoding apparatus may form the above-mentioned merge candidate list and select one of the merge candidates included in the merge candidate list. The selection may be performed based on the above-mentioned candidate selection information (merge index). A motion vector of the current block may be derived 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.

[0188] As another example, when the MVP mode is applied to the current block, the image decoding apparatus may construct an MVP candidate list and use a motion vector of an MVP candidate selected from the MVP candidates included in the MVP candidate list as the MVP of the current block. The selection may be performed based on the above-mentioned candidate selection information (MVP flag or MVP index). In this case, the MVD of the current block may be derived based on information on the MVD, and the motion vector of the current block may be derived based on the MVP of the current block and the MVD.

[0189] The image decoding apparatus may generate prediction samples for the current block based on the motion vector of the current block (S1630). The prediction samples of the current block may be derived using samples of a reference block to which the motion vector of the current block points on the current picture. Depending on the circumstances, a prediction sample filtering procedure may be further performed on all or some of the prediction samples of the current block.

[0190] For example, as shown in Fig. 20, a prediction unit of an image decoding device performing an IBC-based video / image decoding method may include a prediction mode determination unit, a motion vector derivation unit, and a prediction sample derivation unit. The prediction unit of the image decoding device may determine a prediction mode for the current block based on received prediction mode information in a prediction mode determination unit, derive a motion vector of the current block based on received information about the motion vector in a motion vector derivation unit, and derive a prediction sample of the current block in a prediction sample derivation unit.

[0191] The image decoding apparatus may generate a residual sample for the current block based on the received residual information (S1640). The image decoding apparatus may generate a reconstructed sample for the current block based on the predicted sample and the residual sample, and generate a reconstructed picture based on the reconstructed sample (S1650). Then, an in-loop filtering procedure or the like may be further applied to the reconstructed picture, as described above.

[0192] As described above, one unit (e.g., a coding unit CU) may include a luma block (luma CB) and a chroma block (chroma CB). In this case, the luma block and the corresponding chroma block may have the same motion information (e.g., motion vector) or different motion information. As an example, the motion information of the chroma block may be 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.

[0193] The problem of poor coding efficiency for 2×N and N×2 blocks As described above regarding block division, in one embodiment, when the size of the CTU is 128 based on the luma sample length, the size of the CU can range from 128×128, which is the same size as the CTU, to 4×4. If the current color format is a 4:2:0 color format, the size of the chroma block can range from 64×64 to 2×2.

[0194] Meanwhile, in the case of a CU to which a dual tree structure is applied in an I slice / tile group, if the width or height of a chroma block is smaller than 4, the compression efficiency of the chroma block increases, but the complexity of the process of encoding and decoding the chroma block increases significantly, which causes a decrease in throughput and latency problems.

[0195] Therefore, in order to reduce the complexity of encoding and decoding, it is necessary to encode and decode an image by restricting the width and height of a chroma block to a certain portion. Hereinafter, a method of encoding and decoding by restricting the minimum height and width of a chroma block in units of 4 pixels will be described. Furthermore, when the prediction mode of a current block is an IBC mode due to the restriction of the size of a chroma block, a method of deriving a motion vector to perform the IBC mode based on a 4×4 chroma block instead of a 2×2 chroma block will be described.

[0196] Example 1 As explained above, the minimum width or height of a chroma block must be limited to a length of four samples. An encoding / decoding device according to an embodiment can determine whether a current block is a chroma block and whether a certain partitioning mode is allowed for a current block lock based on the width or height of the current block. Although a decoding device will be described below, the following description can also be applied to an encoding device.

[0197] FIG. 21 is a diagram illustrating a method for a decoding apparatus to determine whether a vertical ternary split (SPLIT_TT_VER) is permitted for a current block. A decoding apparatus according to an embodiment may determine whether a current block is a chroma block (S2110). To determine whether a current block is a chroma block, the decoding apparatus may check a value of a cIdx parameter indicating a color component of the current 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 chroma block. More specifically, if the value of cIdx is 1 or 2, 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.

[0198] Next, the decoding device may determine whether the width of the current block is 8 samples or less in length (S2120). If the value of the parameter indicating the width of the current block is 8 or less, the decoding device may determine that the width of the current block is 8 or less.

[0199] Meanwhile, for a chroma block, the width of the chroma block may be determined based on the width of the corresponding luma block. In this case, the width of the current chroma block may also be determined based on the width of the luma block and the color format of the current image. For example, if the color format is 4:4:4, the width and height of the chroma block may be set to the width and height of the luma block. If the color format is 4:2:2, the width of the chroma block may be set to half the width of the luma block, and the height of the chroma block may be set to the height of the luma block. If the color format is 4:2:0, the width of the chroma block may be set to half the width of the luma block, and the height of the chroma block may be set to half the height of the luma block.

[0200] Thus, the decoding device can perform step S2120 by determining whether the width of the luma block is less than or equal to 8 when the color format of the current block is 4:4:4. In a similar manner, the decoding device can perform step S2120 by determining whether the width of the luma block is less than or equal to 16 when the color format of the current block is 4:2:2 or 4:2:0.

[0201] Finally, the decoding device may determine that if the current block is a chroma block and has a width of 8 or less, vertical ternary splitting is not allowed for the current block (S2130).

[0202] Meanwhile, the decoding apparatus may determine that vertical ternary division is permitted for the current block if such conditions are not met. At this time, the decoding apparatus may determine whether vertical ternary division is permitted for the current block by determining additional conditions under which the current block cannot be divided by vertical ternary division (S2140). For example, the decoding apparatus may determine that vertical ternary division is not permitted for the current block if the number of times the current block has been divided from a leaf node of the quadtree is equal to or greater than the value of MaxMttDepth, which is a parameter indicating the maximum allowed hierarchy depth of a multi-type tree divided from a leaf node of the quadtree, and may determine that vertical ternary division is permitted for the current block if the number of times the current block has been divided from a leaf node of the quadtree is equal to or less than the value of MaxMttDepth.

[0203] Example 2 As described above, the minimum width or height of a chroma block needs to be limited to a length of 4 samples. Hereinafter, a method for restricting horizontal ternary division for a current block in an encoding / decoding apparatus according to an embodiment will be described with reference to FIG.

[0204] 22 is a diagram illustrating a method for a decoding device to determine whether a horizontal ternary split (SPLIT_TT_HOR) is allowed for a current block. A decoding device according to an embodiment may determine whether the current block is a chroma block (S2210). As described above, the decoding device may check the value of a cIdx parameter indicating a color component of the current block to determine whether the current block is a chroma block.

[0205] Next, the decoding apparatus according to an embodiment may determine whether the height of the current block is 8 samples long or less (S2220). If the value of the parameter indicating the height of the current block is 8 or less, the decoding apparatus may determine that the height of the current block is 8 or less. Alternatively, the decoding apparatus may perform step S2220 based on whether the height of the luma block is 8 or less or 16 or less depending on the color format of the current block as described above.

[0206] As described above, for a chroma block, the height of the chroma block may be determined based on the height of the corresponding luma block. For example, the decoding device may perform step S2220 by determining whether the height of the luma block is less than or equal to 8 if the color format of the current block is 4:4:4 or 4:2:2. In a similar manner, the decoding device may perform step S2220 by determining whether the height of the luma block is less than or equal to 16 if the color format of the current block is 4:2:2.

[0207] Finally, the decoding device may determine that if the current block is a chroma block and the height is less than or equal to 8, horizontal ternary splitting is not allowed for the current block (S2230).

[0208] Meanwhile, the decoding apparatus may determine that horizontal ternary division is permitted for the current block if such conditions are not met. At this time, the decoding apparatus may determine whether horizontal ternary division is permitted for the current block by determining additional conditions that do not permit horizontal ternary division for the current block as described above (S2140). For example, the decoding apparatus may determine that horizontal ternary division is not permitted for the current block if the number of times the current block has been divided from a leaf node of the quadtree is equal to or greater than the value of MaxMttDepth, which is a parameter indicating the maximum allowed hierarchy depth of a multi-type tree divided from a leaf node of the quadtree, and may determine that horizontal ternary division is permitted if the number of times the current block has been divided from a leaf node of the quadtree is equal to or less than the value of MaxMttDepth.

[0209] Example 3 As described above, the minimum width or height of a chroma block needs to be limited to a length of 4 samples. Hereinafter, a method for restricting horizontal binary division of a current block in an encoding / decoding apparatus according to an embodiment will be described with reference to FIG.

[0210] 23 is a diagram illustrating a method for a decoding device to determine whether a horizontal binary split (SPLIT_BT_HOR) is allowed for a current block. According to an embodiment, the decoding device may determine whether the current block is a chroma block (S2310). As described above, the decoding device may check the value of a cIdx parameter indicating a color component of the current block to determine whether the current block is a chroma block.

[0211] Next, the decoding apparatus according to an embodiment may determine whether the height of the current block is 4 samples or less in length (S2320). If the value of the parameter indicating the height of the current block is 4 or less, the decoding apparatus may determine that the height of the current block is 4 or less. Alternatively, the decoding apparatus may perform step S2320 based on whether the height of the luma block is 4 or less or 8 or less according to the color format of the current block, as described above. For example, the decoding apparatus may perform step S2320 by determining whether the height of the luma block is 4 or less if the color format of the current block is 4:4:4 or 4:2:2. In a similar manner, the decoding apparatus may perform step S2320 by determining whether the height of the luma block is 8 or less if the color format of the current block is 4:2:2.

[0212] Finally, the decoding device may determine that if the current block is a chroma block and the height is less than or equal to 4, horizontal binary splitting is not allowed for the current block (S2330).

[0213] Meanwhile, the decoding apparatus may determine that horizontal binary splitting is permitted for the current block if such conditions are not met. At this time, the decoding apparatus may determine whether horizontal binary splitting is permitted for the current block by determining additional conditions under which horizontal binary splitting is not permitted for the current block as described above (S2340). For example, the decoding apparatus may determine that horizontal binary splitting is not permitted for the current block if the number of times the current block has been split from a leaf node of the quadtree is equal to or greater than the value of MaxMttDepth, which is a parameter indicating the maximum allowed hierarchy depth of a multi-type tree split from a leaf node of the quadtree, and may determine that horizontal binary splitting is permitted if the number of times the current block has been split from a leaf node of the quadtree is equal to or less than the value of MaxMttDepth.

[0214] Example 4 As described above, the minimum width or height of a chroma block needs to be restricted to 4 pixel units. Hereinafter, a method for restricting vertical binary division of a current block in an encoding / decoding apparatus according to an embodiment will be described with reference to FIG.

[0215] 24 is a diagram illustrating a method for a decoding device to determine whether a vertical binary split (SPLIT_BT_VER) is permitted for a current block. According to an embodiment, the decoding device may determine whether the current block is a chroma block (S2410). As described above, the decoding device may check the value of a cIdx parameter indicating a color component of the current block to determine whether the current block is a chroma block.

[0216] Next, the decoding apparatus according to an embodiment may determine whether the width of the current block is 4 samples long or less (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, the decoding apparatus may perform step S2420 based on whether the width of the luma block is 4 or less or 8 or less according to the color format of the current block, as described above. For example, the decoding apparatus may perform step S2420 by determining whether the width of the luma block is 4 or less when the color format of the current block is 4:4:4. In a similar manner, the decoding apparatus may perform step S2420 by determining whether the width of the luma block is 8 or less when the color format of the current block is 4:2:2 or 4:2:0.

[0217] Finally, the decoding device may determine that if the current block is a chroma block and has a width less than or equal to 4, vertical binary splitting is not allowed for the current block (S2430).

[0218] Meanwhile, the decoding apparatus may determine that vertical binary splitting is permitted for the current block if such conditions are not met. At this time, the decoding apparatus may determine whether vertical binary splitting is permitted for the current block by determining additional conditions under which vertical binary splitting is not permitted for the current block as described above (S2440). For example, the decoding apparatus may determine that vertical binary splitting is not permitted for the current block if the number of times the current block has been split from a leaf node of the quadtree is equal to or greater than the value of MaxMttDepth, which is a parameter indicating the maximum allowed hierarchy depth of a multi-type tree split from a leaf node of the quadtree, and may determine that vertical binary splitting is permitted if the number of times the current block has been split from a leaf node of the quadtree is equal to or less than the value of MaxMttDepth.

[0219] Example 5 As described above, in order to reduce the complexity of encoding and decoding, the minimum height and width of a chroma block must be limited to a length of 4 samples for encoding and decoding. In this case, if the color format is 4:2:2 or 4:2:0, the minimum allowable size of a luma block can be determined to be 8.

[0220] In the case of a dual tree in which the luma blocks and chroma blocks in a CTU are divided into separate block tree structures, when the IBC mode is performed, the motion information of the chroma block may be guided by the value of the motion information of the luma block. Here, the motion information may be a motion vector. In this case, the coordinates of the luma sub-blocks to be referenced by the chroma sub-blocks may be changed as the minimum allowable size of the chroma block is changed.

[0221] 25 is a diagram illustrating a method in which a decoding device derives motion information of a chroma sub-block using motion information of a luma sub-block according to an embodiment. With reference to FIG. 25, a method in which a decoding device derives motion information of a chroma sub-block using motion information of an 8×8 luma sub-block corresponding to a 4×4 chroma sub-block will be described.

[0222] The decoding device according to an embodiment may divide the luma block of the CTU based on the dual tree-based luma block division information, and may divide the chroma cb block and the chroma cr block of the CTU based on the dual tree-based chroma block division information (S2510).

[0223] Next, the decoding apparatus may derive the number of luma sub-blocks constituting the luma block for 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 three right shift operations on a two-bit value indicating the width of the luma block, and may store this in the numSbX parameter. In a similar manner, the decoding apparatus may calculate the number of rows of the luma sub-block by dividing the height of the luma block by 8 or performing three right shift operations on a two-bit value indicating the height of the luma block, and may store this in the numSbY parameter. The formula for this may be expressed as follows: Here, cbWidth may be a parameter representing the width of the luma block, and cbHeight may be a parameter representing the height of the luma block in pixels.

[0224]

number

[0225]

number

[0226] Next, the decoding apparatus may determine a luma sub-block corresponding to a chroma sub-block (S2530). The decoding apparatus may determine the coordinates of the top-left sample of the luma sub-block by adding the index (xSbIdx, ySbIdx) of the luma sub-block scaled to 8, which is the minimum allowed size of the luma block, to the coordinates of the top-left sample of the luma block. This may be expressed by the following equation. Here, (xCuY, yCyY) indicates the coordinates of the top-left sample of the luma sub-block, xSbIdx indicates the x-axis index of the luma sub-block, and ySbIdx indicates the y-axis index of the luma sub-block. xSbIdx may have a value from 0 to numSbX-1, and ySbIdx may have a value from 0 to numSbY-1.

[0227]

number

[0228]

number

[0229] Next, the decoding apparatus may derive motion information of the luma sub-block according to the prediction mode of the luma sub-block (S2540). When the prediction mode of the luma sub-block is the IBC prediction mode, the decoding apparatus may set a motion information array of the luma sub-block identified by the luma sub-block index using the motion information of the luma sub-block. This may be expressed by the following equation. Here, mvL[xSbIdx][ySbIdx][0] indicates the x component of the motion information of the luma sub-block represented by the luma sub-block index (xSbIdx, ySbIdx), and mvL[xSbIdx][ySbIdx][1] indicates the y component of the motion information of the corresponding luma sub-block.

[0230]

number

[0231]

number

[0232] Meanwhile, when the prediction mode of the luma sub-block is an intra prediction mode, the decoding apparatus may set all motion information of the luma sub-block to 0. This may be expressed by the following equation.

[0233]

number

[0234]

number

[0235] Next, the decoding device may determine motion information of the chroma sub-block based on the motion information of the luma sub-block (S2550). The decoding device may determine the motion information of the chroma sub-block by multiplying or adding a predetermined scaling factor to the motion information of the luma sub-block represented by the luma sub-block index (xSbIdx, ySbIdx).

[0236] Encoding method 26 is a flowchart illustrating a method for encoding an image by an encoding device according to an embodiment. Hereinafter, an encoding method for implementing the above-described embodiments 1 to 5 will be described with reference to FIG.

[0237] First, the encoding device may determine whether a predetermined division is permitted for the current block based on the size of the current block (S2610). The encoding device may determine whether the current block can be divided into sub-blocks because a predetermined division is permitted for the current block based on the width or height of the current block.

[0238] The encoding device may determine whether or not division of the current block is permitted based on whether or not the current block satisfies the conditions under which division by the quadtree and multitree described above may occur. In one embodiment, the encoding device may determine whether or not the current block can be divided in any one of the division modes of vertical ternary division, horizontal ternary division, vertical binary division, and horizontal binary division based on the above-described first to fourth embodiments.

[0239] Next, the encoding device may partition the current block based on whether a predetermined partition is permitted (S2620). The encoding device may encode the current block by applying an permitted partition mode among the previously described quadtree and multi-tree partition modes, and may calculate an RD cost according to each partition mode. The encoding device may determine a partition mode to be applied to the current block according to the RD cost determined according to each partition mode. For example, if horizontal ternary mode partitioning is permitted for the current block and the best RD cost is calculated when partitioning and encoding the current block in the mode, the encoding device may determine that the horizontal ternary mode is applied as the partition mode of the current block.

[0240] Next, the encoding device may encode information regarding the division of the current block based on whether a predetermined division is permitted, and encode the current block (S2630). The encoding device may encode information regarding the division of the current block to indicate a division mode of the current block.

[0241] In one embodiment, the encoding device may indicate whether the current block is split into a quadtree structure using qt_split_flag as described above. If the current block is split into a quadtree, the encoding device may set qt_split_flag to a first value (e.g., 1) and encode the current block. If the current block is not split into a quadtree, the encoding device may set qt_split_flag to a second value (e.g., 0) and encode the current block.

[0242] In such an embodiment, if the current block is not split into a quadtree but is split into a multitree, the encoding device can indicate whether or not to split into a multitree using multitree splitting information mtt_split_cu_flag.

[0243] When the current block is split into a multi-tree, the encoding device may encode the mtt_split_cu_flag by setting it to a first value (e.g., 1). When the current block is not split into a multi-tree, the encoding device may encode the mtt_split_cu_flag by setting it to a second value (e.g., 0).

[0244] The encoding device may then encode mtt_split_cu_vertical_flag and mtt_split_cu_binary_flag to indicate the multitree split type and multitree split direction of the current block. For example, mtt_split_cu_vertical_flag may be set to a first value (e.g., 0) if the current block is split horizontally, and may be set to a second value (e.g., 1) if the current block is split vertically. mtt_split_cu_binary_flag may be set to a first value (e.g., 0) if the current block is split into a ternary tree, and may be set to a second value (e.g., 1) if the current block is split into a binary tree.

[0245] Meanwhile, in another embodiment, the encoding device can encode information regarding the division of the current block by encoding split_cu_flag (2710), which is split execution information indicating whether or not division of the current block is performed, split_qt_flag (2720), which is quadtree division information indicating whether or not quadtree division of the current block is performed, mtt_split_cu_vertical_flag (2730), which is split direction information indicating the split direction of the current block in the multi-tree structure, and mtt_split_cu_binary_flag (2740), which is split type information indicating whether the division type of the current block is a binary division type or a ternary division type in the multi-tree structure, as shown in FIG. 27.

[0246] As described above, split_cu_flag (2710) may be set to a first value (e.g., 0) if the current block is not split, and may be set to a second value (e.g., 1) if the current block is split into subblocks. split_qt_flag (2720) may be set to a first value (e.g., 1) if the current block is split into a quadtree, and may be set to a second value (e.g., 0) if the current block is split into a multitree rather than a quadtree. mtt_split_cu_vertical_flag (2730) may be set to a first value (e.g., 0) if the current block is split horizontally, and may be set to a second value (e.g., 1) if the current block is split vertically. mtt_split_cu_binary_flag (2740) may be set to a first value (e.g., 0) if the current block is split into a ternary tree, and may be set to a second value (e.g., 1) if the current block is split into a binary tree.

[0247] The encoding device may encode information regarding the division of the current block based on whether a predetermined division is permitted for the current block. For example, the encoding device may not encode split_cu_flag if neither quadtree division nor multitree division is permitted for the current block. In this case, the decoding device may induce split_cu_flag to a predetermined value.

[0248] In addition, the encoding device may not code qt_split_flag if quadtree splitting is permitted for the current block but multitree splitting is not permitted at all. In this case, the decoding device may induce qt_split_flag to a predetermined value.

[0249] In addition, the encoding device may not code mtt_split_cu_vertical_flag if qt_split_flag indicates that a quadtree split is to be performed, or indicates that horizontal binary splitting and horizontal ternary splitting are not allowed for the current block, or indicates that vertical binary splitting and vertical ternary splitting are not allowed for the current block. In such cases, the decoding device may guide mtt_split_cu_vertical_flag to a predetermined value.

[0250] In addition, the encoding device may not code mtt_split_cu_binary_flag if qt_split_flag indicates that a quadtree split is to be performed, or if vertical binary splitting or vertical ternary splitting is not permitted for the current block, or if mtt_split_cu_vertical_flag indicates a horizontal split and horizontal binary splitting or horizontal ternary splitting is not permitted for the current block, or if mtt_split_cu_vertical_flag indicates a vertical split. In such cases, the decoding device may guide mtt_split_cu_binary_flag to a predetermined value.

[0251] The encoding device may encode the current block using lower blocks obtained by dividing the current block. The encoding device may generate prediction information by performing the above-described intra / inter / IBC prediction based on the lower blocks, generate residual information based on the prediction result, and encode the prediction information and the residual information, thereby encoding the current block.

[0252] In one embodiment, when the encoding device performs IBC prediction to encode a chroma block, the encoding device may derive a motion vector for the chroma block from the luma block by applying the above-described fifth embodiment.

[0253] Bitstream A method in which the encoding device generates a bitstream will be described in more detail with reference to Fig. 27. The encoding device may determine whether or not to split the current block based on the above-mentioned embodiments 1 to 4. More specifically, the encoding device may determine a value of a parameter allowSplitTtVer indicating whether or not vertical ternary splitting is permitted for the current block, and may determine a first value (e.g., 1) if splitting is permitted, and a second value (e.g., 0) if splitting is not permitted.

[0254] In addition, the encoding device may determine the value of the parameter allowSplitTtHor, which indicates whether horizontal ternary splitting is allowed for the current block, depending on whether or not the corresponding value applies. If splitting is allowed, the value may be a first value (e.g., 1), and if splitting is not allowed, the value may be a second value (e.g., 0).

[0255] In addition, the encoding device may determine the value of the parameter allowSplitBtVer indicating whether or not vertical binary splitting is allowed for the current block depending on whether or not the vertical binary splitting is allowed, and may determine the value to be a first value (e.g., 1) if splitting is allowed, and a second value (e.g., 0) if splitting is not allowed.

[0256] In addition, the encoding device may determine the value of the parameter allowSplitBtHor indicating whether horizontal binary splitting is allowed for the current block depending on whether or not the splitting is allowed, and may determine the value to be a first value (e.g., 1) if splitting is allowed, and a second value (e.g., 0) if splitting is not allowed.

[0257] According to the above decision, the encoding device may decide whether to output at least one of the split information of the current block, split_cu_flag (2710), qt_split_flag (2720), mtt_split_cu_vertical_flag (2730), and mtt_split_cu_binary_flag (2740), in bitstream format, as previously described with reference to FIG. 27.

[0258] Decoding device in general 28 is a flow chart for explaining a method for decoding an image by a decoding device according to an embodiment. Hereinafter, a decoding method for implementing the above-mentioned embodiments 1 to 5 will be explained with reference to FIG.

[0259] First, the decoding apparatus may determine whether a predetermined division is permitted for the current block based on the size of the current block (S2810). The decoding apparatus may determine whether a predetermined division is permitted for the current block based on the width or height of the current block. The decoding apparatus may determine a predetermined division mode permitted for the current block based on whether the current block satisfies the conditions under which division by the quadtree and multitree described above may occur. In this case, the current block may be a chroma block divided into a dual tree partition structure.

[0260] In one embodiment, the decoding device can determine whether any one of vertical ternary partitioning, horizontal ternary partitioning, vertical binary partitioning, and horizontal binary partitioning is allowed for the current block based on the above-mentioned embodiments 1 to 4.

[0261] For example, the decoding device may determine that if the current block is a chroma block and has a width less than or equal to 8 samples long, then vertical ternary splitting is not allowed for the current block, and the decoding device may determine that if the current block is a chroma block and has a height less than or equal to 8 samples long, then horizontal ternary splitting is also not allowed for the current block.

[0262] The decoding device may also determine that if the current block is a chroma block and has a width less than or equal to four samples in length, then vertical binary splitting is not permitted for the current block, and if the current block is a chroma block and has a height less than or equal to four samples in length, then horizontal binary splitting is not permitted for the current block.

[0263] In one embodiment, the width or height of a chroma block may be derived based on the width or height of a chroma block and a corresponding luma block and a color format as described above. More specifically, the width or height of a chroma block may be derived by dividing the width or height of the corresponding luma block by a component ratio of a chroma sample to a luma sample derived based on a color format. Here, the component ratio of a chroma sample to a luma sample may be calculated for width and height, respectively. In the case of a 4:4:4 color format, the component ratio of a chroma sample to a luma sample may be 1:1 for both width and height. Thus, the width or height of a chroma block may be derived by dividing the width or height of a corresponding luma block by 1.

[0264] Also, for a 4:2:2 color format, the width component ratio of a chroma sample to a luma sample may be 1:2, and the height component ratio may be 1:1. Thus, the width of a chroma block may be derived by dividing the width of a corresponding luma block by 2, and the height of a chroma block may be derived by dividing the height of a corresponding luma block by 1. Also, for a 4:2:0 color format, the width and height component ratios of a chroma sample to a luma sample may all be 1:2. Thus, the width or height of a chroma block may be derived by dividing the width or height of a corresponding luma block by 2.

[0265] Next, the decoding device may obtain information regarding the division of the current block based on whether the predetermined division is permitted (S2820). As described above with reference to FIG. 27, if the predetermined division is permitted, the decoding device may parse the bitstream to obtain at least one of split_cu_flag (2710), split_qt_flag (2720), mtt_split_cu_vertical_flag (2730), and mtt_split_cu_binary_flag (2740), which is information regarding the division of the current block, from the bitstream.

[0266] Meanwhile, in the case where a predetermined division is not permitted, the decoding apparatus may determine that the information on the division of the current block is a value indicating a division other than the predetermined division. For example, when a predetermined division is not permitted, the information on the division of the current block is not obtained from the bitstream and may be induced to a predetermined value. For example, split_cu_flag indicating whether or not to perform division may be induced to 0.

[0267] In one embodiment, split_qt_flag, which indicates whether or not quadtree partitioning is performed, can be guided to 1 if the value of split_cu_flag is 1 and it is determined based on the above-mentioned embodiments 1 to 4 that vertical ternary partitioning, horizontal ternary partitioning, vertical binary partitioning, and horizontal binary partitioning are all not allowed for the current block, and can be guided to 0 otherwise.

[0268] The split direction information mtt_split_cu_vertical_flag can be guided to 0 if horizontal ternary splitting or horizontal binary splitting is allowed for the current block, and can be guided to 1 if not.

[0269] The partition type information mtt_split_cu_binary_flag can be guided to 0 if vertical binary partitioning and horizontal binary partitioning are not permitted for the current block, can be guided to 1 if vertical ternary partitioning and horizontal ternary partitioning are not permitted for the current block, can be guided to the value of 1-mtt_split_cu_vertical_flag if horizontal binary partitioning and vertical ternary partitioning are permitted for the current block, and can be guided to the value of mtt_split_cu_vertical_flag if vertical binary partitioning and horizontal ternary partitioning are permitted for the current block.

[0270] Next, the decoding apparatus may split the current block based on the information regarding the splitting of the current block (S2830). As described above, the decoding apparatus may determine the partition mode of the current block to be one of the quadtree and multitree partition modes based on the split_qt_flag (2720), mtt_split_cu_vertical_flag (2730), and mtt_split_cu_binary_flag (2740) and Table 1. Then, the decoding apparatus may split the current block in the determined partition mode.

[0271] Next, the decoding apparatus may decode the image by decoding the current block based on the partition mode of the current block to generate a reconstructed block (S2840). For example, the decoding apparatus may decode the image using a lower block obtained by dividing the current block. The decoding apparatus may decode the image by performing the above-mentioned intra / inter / IBC prediction based on the lower block. In one embodiment, when the decoding apparatus performs IBC prediction to predict a chroma block, the decoding apparatus may derive a motion vector of the chroma block from the luma block by applying the above-mentioned embodiment 5.

[0272] Application examples Although the exemplary method of the present disclosure is expressed as a series of operations for clarity of explanation, this is not intended to limit the order in which the steps are performed, and each step may be performed simultaneously or in a different order, if necessary. To realize the method according to the present disclosure, the steps illustrated may include other steps, some steps may be omitted and the remaining steps may be omitted, or some steps may be omitted and additional steps may be included.

[0273] In the present disclosure, an image encoding device or an image decoding device that performs a predetermined operation (step) can perform the operation (step) to check the execution conditions or circumstances of the operation (step). For example, if it is described that a predetermined operation is performed when a predetermined condition is satisfied, the image encoding device or the image decoding device can perform the predetermined operation after performing an operation to check whether the predetermined condition is satisfied or not.

[0274] The various embodiments of the present disclosure are not intended to enumerate all possible combinations, but are intended to describe representative aspects of the present disclosure, and the matters described in the various embodiments may be applied independently or in combination of two or more.

[0275] Additionally, various embodiments of the present disclosure may be implemented using hardware, firmware, software, or a combination thereof, etc. In the case of a hardware implementation, the implementation may be implemented using one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general processors, controllers, microcontrollers, microprocessors, etc.

[0276] In addition, the image decoding device and the image encoding device to which the embodiments of the present disclosure are applied may be included in a multimedia broadcast transmitting / receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video conversation device, a real-time communication device such as a video communication, a mobile streaming device, a storage medium, a camcorder, a custom video (VoD) service providing device, an over-the-top video (OTT) device, an internet streaming service providing device, a three-dimensional (3D) video device, an image telephone video device, and a medical video device, and may be used to process a video signal or a data signal. For example, the over-the-top video (OTT) device may include a game console, a Blu-ray player, an internet-connected TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), and the like.

[0277] FIG. 29 is a diagram illustrating a content streaming system to which an embodiment of the present disclosure can be applied.

[0278] As shown in FIG. 29, a content streaming system to which an embodiment of the present disclosure is applied may broadly include an encoding server, a streaming server, a Web server, a media storage, a user device, and a multimedia input device.

[0279] The encoding server compresses content input from a multimedia input device such as a smartphone, camera, camcorder, etc. into digital data to generate a bitstream and transmits the bitstream to the streaming server. As another example, if a multimedia input device such as a smartphone, camera, video camera, etc. directly generates a bitstream, the encoding server can be omitted.

[0280] The bitstream may be generated by an image encoding method and / or image encoding device to which an embodiment of the present disclosure is applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.

[0281] The streaming server transmits multimedia data to a user device based on a user request via a web server, and the web server can act as a medium to inform the user of available services. When a user requests a desired service from the web server, the web server transmits the request to the streaming server, and the streaming server can transmit the multimedia data to the user. At this time, the content streaming system can include a separate control server, and in this case, the control server can control commands / responses between devices in the content streaming system.

[0282] The streaming server may receive the content from a media storage and / or an encoding server. For example, when receiving the content from the encoding server, the content may be received in real time. In this case, the streaming server may store the bitstream for a certain period of time in order to provide a smooth streaming service.

[0283] Examples of the user devices include mobile phones, smart phones, laptop computers, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation systems, slate PCs, tablet PCs, ultrabooks, wearable devices such as smartwatches, smart glass, head mounted displays (HMDs), digital TVs, desktop computers, and digital signage.

[0284] Each server in the content streaming system can be operated as a distributed server, in which case data received from each server can be processed in a distributed manner.

[0285] The scope of the present disclosure includes software or machine-executable commands (e.g., operating systems, applications, firmware, programs, etc.) that cause operations according to the methods of the various embodiments to be performed on a device or computer, and non-transitory computer-readable medium on which such software or commands can be stored and executed on a device or computer. [Industrial Applicability]

[0286] The embodiments according to the present disclosure can be used to encode / decode images.

Claims

1. An image decoding method performed by an image decoding device, comprising: obtaining information regarding the division of a current block; partitioning the current block based on the information regarding partitioning of the current block; and decoding the current block. An image decoding method, wherein, based on the current block being a chroma block, the tree structure of the current block being a dual tree structure, and the width of the current block being equal to 8, a vertical ternary split is not allowed for the current block, regardless of the height of a block derived from the current block by the vertical ternary split.

2. The image decoding method of claim 1 , wherein a vertical binary split is not allowed for the current block based on the current block being a chroma block and the width of the current block being equal to four.

3. The image decoding method according to claim 1 , wherein the information regarding the division of the current block is determined to be a value indicating a division other than the predetermined division based on the fact that a predetermined division is not permitted for the current block.

4. The information regarding the division of the current block includes division type information indicating a ternary division or a binary division; The partition type information is determined to be a value indicating a binary partition based on the fact that a vertical ternary partition and a horizontal ternary partition are not permitted for the current block; The image decoding method according to claim 3 , wherein the partition type information is determined to be a value indicating ternary partitioning on the basis that vertical binary partitioning and horizontal binary partitioning are not permitted for the current block.

5. the information regarding the division of the current block includes division direction information indicating vertical or horizontal division, The division direction information is determined to be a value indicating a horizontal division based on the fact that a vertical binary division and a vertical ternary division are not permitted and a horizontal binary division or a horizontal ternary division is permitted for the current block; The image decoding method of claim 3, wherein the division direction information is determined to be a value indicating vertical division based on the fact that horizontal binary division and horizontal ternary division are not permitted for the current block, and vertical binary division or vertical ternary division is permitted.

6. Based on the fact that the current block is a chroma block predicted in an intra block copy (IBC) mode, Dividing a luma block corresponding to the current block into luma sub-blocks, each of which has a predetermined size; obtaining motion information of the luma sub-block; deriving motion information of a sub-block in the current block corresponding to the luma sub-block based on the motion information of the luma sub-block; performing IBC prediction on the current block based on the derived motion information; The image decoding method of claim 1 , wherein the predetermined size of each of the luma sub-blocks is 8×8.

7. An image coding method performed by an image coding device, comprising: dividing the current block based on whether the predetermined division is permissible for the current block; encoding information regarding a division of the current block; encoding the current block; 11. A method for encoding an image, comprising: based on the current block being a chroma block, the tree structure of the current block being a dual tree structure, and the width of the current block being equal to 8, a vertical ternary split is not allowed for the current block, regardless of the height of a block derived from the current block by the vertical ternary split.

8. The image encoding method of claim 7 , wherein a vertical binary split is not allowed for the current block based on the current block being a chroma block and the width of the current block being equal to four.

9. 1. A method for transmitting a bitstream, comprising: generating a bitstream by an image coding method; transmitting the generated bitstream; The image encoding method includes: dividing the current block based on whether the predetermined division is permissible for the current block; encoding information regarding a division of the current block into the bitstream; encoding the current block into the bitstream; A method according to claim 1, wherein a vertical ternary split is not allowed for the current block, regardless of the height of a block derived from the current block by the vertical ternary split, based on the current block being a chroma block, the tree structure of the current block being a dual tree structure, and the width of the current block being equal to 8.

Citation Information

Patent Citations

  • Image decoding apparatus and image encoding apparatus

    JP2019201254A

  • Methods and apparatus forpicture encoding and decoding

    US20200077094A1

  • Methods and apparatus for picture encoding and decoding

    WO2018177741A1

  • Image prediction method, device, apparatus and system and storage medium

    WO2020143684A1