Image encoding / decoding method and apparatus for performing prediction on basis of reconfigured prediction mode type of leaf node, and bitstream transmission method
Patent Information
- Application Number
- JP2024025563
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-02-24
- Filing Date
- 2024-02-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-12-31
AI Technical Summary
The increasing demand for high-resolution, high-quality images has led to a surge in transmission and storage costs due to the increased amount of information, necessitating highly efficient image compression techniques.
An image encoding/decoding method that reconfigures prediction mode types based on slice type and block size, allowing for improved encoding/decoding efficiency and reduced signaling of prediction mode information, particularly for skip modes.
This approach enhances encoding/decoding efficiency by optimizing prediction mode signaling and reduces transmission costs while maintaining image quality.
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an image encoding / decoding method, an apparatus, and a method for transmitting a bitstream, and more particularly, to an image encoding / decoding method and apparatus that perform prediction based on a reset prediction mode type of a leaf node, 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 an image encoding / decoding method and apparatus for resetting a prediction mode type based on at least one of a slice type and a size of a current block.
[0006] Another object of the present disclosure is to provide an image encoding / decoding method and apparatus for encoding / decoding prediction mode information based on a reset prediction mode type of a current 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 according to one aspect of the present disclosure includes a step of obtaining a current block corresponding to a leaf node of a partition tree structure based on a predetermined prediction mode type, a step of resetting the prediction mode type of the current block, a step of obtaining prediction mode information of the current block based on the reset prediction mode type, and a step of generating a prediction block of the current block based on the prediction mode information, wherein the step of resetting the prediction mode type of the current block may be performed based on at least one of a slice type and a size of the current block.
[0012] An image decoding device according to another aspect of the present disclosure includes a memory and at least one processor, wherein the at least one processor obtains a current block corresponding to a leaf node of a partition tree structure based on a predetermined prediction mode type, resets a prediction mode type of the current block, obtains prediction mode information of the current block based on the reset prediction mode type, and generates a prediction block of the current block based on the prediction mode information, and the prediction mode type of the current block can be reset based on at least one of a slice type and a size of the current block.
[0013] An image encoding method according to another aspect of the present disclosure includes a step of obtaining a current block corresponding to a leaf node of a partition tree structure based on a predetermined prediction mode type, a step of resetting the prediction mode type of the current block, and a step of encoding prediction mode information of the current block based on the reset prediction mode type, wherein the step of resetting the prediction mode type of the current block may be performed based on at least one of a slice type and a size of the current block.
[0014] 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.
[0015] 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.
[0016] 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
[0017] According to the present disclosure, an image encoding / decoding method and apparatus with improved encoding / decoding efficiency can be provided.
[0018] According to the present disclosure, an image encoding / decoding method and apparatus for resetting a prediction mode type based on at least one of a slice type and a size of a current block may be provided.
[0019] In addition, the present disclosure may provide an image encoding / decoding method and apparatus for encoding / decoding prediction mode information based on a reset prediction mode type of a current block.
[0020] In addition, according to the present disclosure, an image encoding / decoding method and apparatus may be provided that restricts signaling of prediction mode information related to a skip mode when the reset prediction mode type of a current block is an intra type.
[0021] 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.
[0022] 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.
[0023] 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.
[0024] 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]
[0025] [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. 13 is a diagram showing block division types according to a multi-type tree structure. [Figure 6] FIG. 13 is an exemplary diagram illustrating a signaling mechanism of block partition information in a quadtree with nested multi-type tree structure according to the present disclosure. [Figure 7] FIG. 13 is a diagram illustrating an example in which a CTU is divided into multiple CUs by applying a quadtree followed by a multi-type tree. [Figure 8] 10A and 10B are diagrams illustrating exemplary redundant division patterns that may occur during binary tree division and ternary tree division. [Figure 9a] FIG. 2 is a diagram illustrating intra-prediction directions according to one embodiment of the present disclosure. [Figure 9b] FIG. 13 is a diagram illustrating intra-prediction directions according to another embodiment of the present disclosure. [Figure 10] 1 is a flowchart illustrating an inter-prediction based video / image coding method. [Figure 11] 13 is a diagram illustrating an example configuration of an inter prediction unit 180 according to the present disclosure. [Figure 12] 1 is a flowchart illustrating an inter-prediction based video / image decoding method. [Figure 13] 13 is a diagram illustrating an example configuration of an inter prediction unit 260 according to the present disclosure. [Figure 14] 13 is a diagram showing an example of a coding_unit syntax including prediction mode information. [Figure 15]13 is a diagram illustrating an example of prediction modes applicable to a current block according to a slice type and size of the current block. [Figure 16] A diagram showing a coding_unit syntax according to an embodiment of the present disclosure. [Figure 17] A diagram showing a coding_unit syntax according to an embodiment of the present disclosure. [Figure 18] A diagram showing a coding_unit syntax according to an embodiment of the present disclosure. [Figure 19] A diagram showing a coding_unit syntax according to an embodiment of the present disclosure. [Figure 20] 1 is a flowchart illustrating an image encoding method according to an embodiment of the present disclosure. [Figure 21] 1 is a flowchart illustrating an image decoding method according to an embodiment of the present disclosure. [Figure 22] FIG. 1 is a diagram illustrating an exemplary content streaming system to which an embodiment of the present disclosure can be applied. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0026] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 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.
[0027] 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.
[0028] 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.
[0029] 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 one embodiment, and similarly, a second component in one embodiment may be called a first component in one embodiment.
[0030] 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.
[0031] 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.
[0032] 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.
[0033] 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).
[0034] 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.
[0035] 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.
[0036] 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."
[0037] In this disclosure, unless there is an explicit mention of a chroma block, a "current block" may mean a block including both a luma component block and a chroma component block, or a "luma block of the current block." The luma component block of the current block may be expressed by explicitly including the explicit mention of a luma component block, such as a "luma block" or a "current luma block." In addition, the chroma component block of the current block may be expressed by explicitly including the explicit mention of a chroma component block, such as a "chroma block" or a "current chroma block."
[0038] 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."
[0039] 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."
[0040] Video Coding System Overview
[0041] FIG. 1 is a diagram illustrating a video coding system to which an embodiment of the present disclosure can be applied.
[0042] 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.
[0043] 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.
[0044] 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.
[0045] 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.
[0046] 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 an element for generating a media file through a predetermined file format and may include an element 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.
[0047] 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.
[0048] The rendering unit 23 can render the decoded video / images. The rendered video / images can be displayed via a display unit.
[0049] Overview of the image encoding device
[0050] FIG. 2 is a diagram illustrating an image encoding device to which an embodiment of the present disclosure can be applied.
[0051] As shown in Fig. 2, the image coding device 100 may include an image division unit 110, a subtraction unit 115, a transformation unit 120, a quantization unit 130, an inverse quantization unit 140, an inverse transformation 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 coding unit 190. The inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a "prediction unit." The transformation unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transformation unit 150 may be included in a residual processing unit. The residual processing unit may further include a subtraction unit 115.
[0052] 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.
[0053] 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 units may be called coding units (CUs). 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, a quad-tree structure may be applied first, and a binary-tree structure and / or a ternary-tree structure may be applied later. A coding procedure according to the present disclosure may be performed based on a final coding unit that is not further divided. The maximum coding unit may be used as the final coding unit, and a lower depth coding unit 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.
[0054] 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 prediction information may be encoded by the entropy encoding unit 190 and output in a bitstream format.
[0055] 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.
[0056] The inter prediction unit 180 may derive a predicted block for a current block based on a reference block (reference sample array) specified 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), or the like. 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.
[0057] 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.
[0058] 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.
[0059] 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.
[0060] 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.
[0061] 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.
[0062] 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 component of the entropy encoding unit 190.
[0063] 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.
[0064] 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] Overview of the image decoding device
[0069] FIG. 3 is a diagram illustrating an image decoding device to which an embodiment of the present disclosure can be applied.
[0070] 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.
[0071] 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.
[0072] 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 maximum coding unit. Then, the reconstructed image signal decoded and output by the image decoding device 200 can be reproduced by a reproduction device (not shown).
[0073] 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 a coding 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 syntax element information to be decoded and decoded information of neighboring blocks and a block to be decoded, or information of a symbol / bin decoded in a 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 of 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.
[0074] 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.
[0075] 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.
[0076] The inverse transform unit 230 can inversely transform the transform coefficients to obtain a residual signal (residual block, residual sample array).
[0077] 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).
[0078] 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.
[0079] 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.
[0080] 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.
[0081] 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.
[0082] 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.
[0083] 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.
[0084] 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.
[0085] Image Segmentation Overview
[0086] The video / image coding 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 partitioned in units of blocks, and the block partition procedure may be performed by the image partition unit 110 of the encoding device described above. Partition-related information may be encoded by the entropy encoding 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. The CU size and the TU size may be the same, or there may be multiple TUs in a CU area. Meanwhile, the CU size may generally indicate a luma component (sample) CB size. The TU size may generally indicate the luma component (sample) TB size. 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 chroma format (color format, for example, 4:4:4, 4:2:2, 4:2:0, etc.) of the picture / image. The TU size may be derived based on maxTbSize indicating the maximum available TB size. For example, if the CU size is larger than maxTbSize, multiple TUs (TBs) of maxTbSize may be derived from the CU, and transformation / inverse transformation may be performed in units of the TUs (TBs). Also, for example, if intra prediction is applied, the intra prediction mode / type may be derived in units of the CU (or CB), and the derivation of the surrounding reference samples and the generation procedure of the predicted samples may be performed in units of the TU (or TB). In this case, one or more TUs (or TBs) may exist in one CU (or CB) area, and in this case, the multiple TUs (or TBs) may share the same intra prediction mode / type.
[0087] Also, in the encoding and decoding of an image according to the present disclosure, the image processing unit may have a hierarchical structure. For example, one picture may be divided into one or more tiles or tile groups. One tile group may include one or more tiles. One tile may include one or more CTUs. The CTU may be divided into one or more CUs as described above. A tile may be formed of a rectangular region including CTUs that are assembled in a specific row and a specific column in a picture. A tile group may include an integer number of tiles according to a tile raster scan in a picture. A tile group header may signal information / parameters applicable to the tile group. If the encoding / decoding device has a multi-core processor, encoding / decoding procedures for the tiles or tile groups may be processed in parallel. Here, the tile group may have any one of tile group types including an intra tile group (intra(I) tile group), a predictive(P) tile group, and a bi-predictive(B) tile group. For blocks in an I tile group, inter prediction is not used for prediction, and only intra prediction can be used. Of course, in this case, original sample values can also be coded and signaled without prediction. For blocks in a P tile group, intra prediction or inter prediction can be used, and if inter prediction is used, only uni prediction can be used. Meanwhile, for blocks in a B tile group, intra prediction or inter prediction can be used, and if inter prediction is used, up to bi prediction can be used.
[0088] In the encoding device, the tile / tile group, slice, maximum and minimum coding unit sizes are determined according to the characteristics of the image (e.g., resolution) or taking into account coding efficiency or parallel processing, and information regarding this or information that can induce this may be included in the bitstream.
[0089] The decoding device may obtain information indicating whether a slice, tile / tile group, CTU in a tile of the current picture is divided into multiple coding units, etc. If such information is obtained (transmitted) only under certain conditions, efficiency can be improved.
[0090] The slice header or tile group header (tile group header syntax) may include information / parameters commonly applicable to the slices or tile groups. The APS (APS syntax) or PPS (PPS syntax) may include information / parameters commonly applicable to one or more pictures. The SPS (SPS syntax) may include information / parameters commonly applicable to one or more sequences. The VPS (VPS syntax) may include information / parameters commonly applicable to the entire video. In this specification, a higher level syntax may include at least one of the APS syntax, PPS syntax, SPS syntax, and VPS syntax.
[0091] Also, for example, information regarding the division and configuration of the tiles / tile groups can be configured in the encoding stage via the higher level syntax and transmitted to the decoding device in the form of a bitstream.
[0092] Partitioning Structure
[0093] A picture may be divided into a sequence of coding tree units (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. Figure 4 shows an example of a picture being divided into multiple CTUs.
[0094] The maximum allowable size of a CTU for coding and prediction, etc. may be different from the maximum allowable size of a CTU for transform. For example, even if the maximum size of a luma block in a CTU for transform is 64×64, the maximum size of a luma block in a CTU for coding and prediction, etc. may be 128×128.
[0095] A picture may also be divided into one or more tile rows and one or more tile columns. A tile may be a sequence of CTUs that cover a rectangular region in the picture.
[0096] A tile is divided into one or more bricks, and each brick may consist of multiple CTU rows within the tile. In this disclosure, a tile that is not partitioned into multiple bricks may be referred to as a brick.
[0097] A slice can include multiple tiles in a picture or multiple bricks in a tile. Two modes of slicing can be supported: one is a raster scan slicing mode, and the other is a square slicing mode.
[0098] In the raster scan slice mode, a slice may include multiple tiles that are consecutive in raster scan order within one picture. In this disclosure, a slice in the raster scan slice mode may be referred to as a raster scan slice.
[0099] In the square slice mode, a slice can include multiple bricks that form a square region in a picture. In this disclosure, a slice in the square slice mode can be referred to as a square slice. The multiple bricks included in the square slice can exist according to the brick raster scan order of the slice.
[0100] Overview of CTU division
[0101] As mentioned above, a CU can be obtained by recursively dividing a CTU or a LCU (largest coding unit) by a QT / BT / TT (quad-tree / binary-tree / ternary-tree) structure. For example, a CTU can be first divided into a quad-tree structure. Then, the leaf nodes of the quad-tree structure can be further divided by a multi-type tree structure.
[0102] Partitioning by a quadtree means dividing a current CU (or CTU) into four equal parts. By partitioning by a 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 a 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.
[0103] 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.
[0104] 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. 5, 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.
[0105] 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. 5, 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.
[0106] FIG. 6 is a diagram illustrating an example of a signaling mechanism for block partition information in a quadtree with nested multi-type tree structure according to the present disclosure.
[0107] 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.
[0108] Based on the above mtt_split_cu_vertical_flag and mtt_split_cu_binary_flag, a multi-type tree splitting mode (MttSplitMode) of a CU can be derived as shown in Table 1. In the following description, the multi-type tree splitting mode may be abbreviated as a multi-tree splitting type or a splitting type.
[0109] [Table 1]
[0110] 7 shows an example of a CTU being split into multiple CUs by applying a multi-type tree after applying a quadtree. In FIG. 7, a bold block edge 710 indicates a quadtree split, and the remaining edges 720 indicate a multi-type tree split. A CU may correspond to a coding block CB. In one embodiment, a CU may include a coding block of luma samples and two coding blocks of chroma samples corresponding to the luma samples.
[0111] 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.
[0112] 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.
[0113] 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.
[0114] 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 restrictions are satisfied.
[0115] 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.
[0116] 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.
[0117] 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 division is performed in this case, it will exceed MaxBtsize and MaxTtsize (e.g., 64×64). In other cases, the leaf QT node may be further divided 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 division 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 division 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 division may be considered. In this case, if division is not considered, the encoding device may omit signaling of division information. In such a case, the decoding device may induce the division information to a predetermined value.
[0118] 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 the separate block tree structure is applied, the luma coding tree block (CTB) may be divided into CUs based on a specific coding tree structure, and the chroma CTB may be divided into chroma CUs based on 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).
[0119] Although the quadtree coding tree structure with the 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.
[0120] 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.
[0121] In this way, the quadtree coding block structure with the multi-type tree can provide a very flexible block partition structure. Meanwhile, due to the partition types supported by the multi-type tree, different partition 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 partition information by limiting the occurrence of such redundant partition patterns.
[0122] 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. 9, 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.
[0123] Overview of Intra Prediction
[0124] Intra prediction according to the present disclosure will be described below.
[0125] Intra prediction may refer to a prediction that generates a prediction sample for a current block based on a reference sample in a picture to which the current block belongs (hereinafter, the current picture). When intra prediction is applied to the current block, neighboring reference samples used for intra prediction of the current block may be derived. The neighboring reference samples of the current block may include a total of 2×nH samples adjacent to the left boundary and bottom-left of the current block of size nW×nH, a total of 2×nW samples adjacent to the top boundary and top-right of the current block, and one sample adjacent to the top-left of the current block. Alternatively, the neighboring reference samples of the current block may include upper neighboring samples of multiple columns and left neighboring samples of multiple rows. In addition, the surrounding reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block of size nW×nH, a total of nW samples adjacent to the bottom boundary of the current block, and one sample adjacent to the bottom-right of the current block.
[0126] However, some of the surrounding reference samples of the current block may not be decoded or available. In this case, the decoder may construct the surrounding reference samples used for prediction by substituting the unavailable samples with the available samples. Alternatively, the decoder may construct the surrounding reference samples used for prediction through the interpolation of the available samples.
[0127] When neighboring reference samples are derived, (i) a predicted sample may be derived based on an average or an interpolation of neighboring reference samples of the current block, or (ii) a predicted sample may be derived based on a reference sample that exists in a specific (prediction) direction for the predicted sample among the neighboring reference samples of the current block. The case of (i) may be called a non-directional mode or a non-angular mode, and the case of (ii) may be called a directional mode or an angular mode.
[0128] In addition, the prediction sample may be generated by interpolating a first neighboring sample located in a prediction direction of an intra prediction mode of the current block and a second neighboring sample located in the opposite direction based on a prediction target sample of the current block among the neighboring reference samples. The above case may be called linear interpolation intra prediction (LIP).
[0129] Alternatively, a chroma prediction sample may be generated based on a luma sample using a linear model, in which case it may be referred to as a Linear Model (LM) mode.
[0130] Also, a temporal prediction sample of the current block may be derived based on the filtered neighboring reference samples, and a prediction sample of the current block may be derived by weighting the temporal prediction sample and at least one reference sample derived according to the intra prediction mode among the existing neighboring reference samples, i.e., unfiltered neighboring reference samples. In this case, it may be called Position Dependent Intra Prediction (PDPC).
[0131] Also, a reference sample line with the highest prediction accuracy may be selected from among multiple reference sample lines surrounding the current block, and a prediction sample may be derived using a reference sample located in a prediction direction from the selected reference sample line. At this time, information on the used reference sample line (e.g., intra_luma_ref_idx) may be coded and signaled in a bitstream. In this case, it may be called MRL (multi-reference line intra prediction) or MRL-based intra prediction.
[0132] Also, the current block may be divided into vertical or horizontal sub-partitions, and intra prediction may be performed for each sub-partition based on the same intra prediction mode. In this case, the neighboring reference samples for intra prediction may be derived for each sub-partition. That is, in the encoding / decoding order, the restored samples of the previous sub-partition may be used as the neighboring reference samples for the current sub-partition. In this case, the intra prediction mode for the current block is applied to the sub-partitions in the same manner, but the neighboring reference samples may be derived and used for each sub-partition, thereby improving the intra prediction performance in some cases. Such a prediction method may be called ISP (intra sub-partitions) or ISP-based intra prediction.
[0133] The above-mentioned intra prediction techniques may be distinguished from directional or non-directional intra prediction modes and may be referred to by various terms such as intra prediction types or additional intra prediction modes, etc. For example, the intra prediction techniques (intra prediction types or additional intra prediction modes, etc.) may include at least one of the above-mentioned LIP, LM, PDPC, MRL, and ISP.
[0134] The intra prediction procedure may include an intra prediction mode / type determination step, a neighboring reference sample derivation step, and an intra prediction mode / type-based prediction sample derivation step. If necessary, a post-filtering step may be further performed on the derived prediction sample.
[0135] FIG. 9a is a diagram showing intra-prediction directions according to one embodiment of the present disclosure.
[0136] For example, the intra prediction modes may include two non-directional intra prediction modes and 33 directional intra prediction modes. The non-directional intra prediction modes may include a planar mode and a DC mode, and the directional intra prediction modes may include intra prediction modes no. 2 to 4. The planar intra prediction mode may be referred to as a planar mode, and the DC intra prediction mode may be referred to as a DC mode.
[0137] Alternatively, in order to capture any edge direction presented in a natural video, the intra prediction modes may include two non-directional intra prediction modes and 65 extended directional intra prediction modes, as shown in FIG. 9a. The non-directional intra prediction modes may include a Planar mode and a DC mode, and the extended directional intra prediction modes may include intra prediction modes 2 to 66. The intra prediction modes may be applied to blocks of all sizes and may be applied to both luma components (luma blocks) and chroma components (chroma blocks).
[0138] Alternatively, the intra prediction modes may include two non-directional intra prediction modes and 129 directional intra prediction modes. The non-directional intra prediction modes may include a Planar mode and a DC mode, and the directional intra prediction modes may include intra prediction modes 2 to 30.
[0139] Meanwhile, the intra prediction modes may further include a cross-component linear model (CCLM) mode for chroma samples in addition to the above-mentioned intra prediction modes. The CCLM modes may be divided into L_CCLM, T_CCLM, and LT_CCLM depending on whether the left sample, the top sample, or both are considered for deriving the LM parameters, and may be applied only to the chroma components.
[0140] The intra prediction modes can be indexed, for example, as shown in Table 2 below.
[0141] [Table 2]
[0142] Referring to Table 2, as the non-directional intra prediction modes, the mode number of the Planar mode may be 0, and the mode number of the DC mode may be 1. In addition, the mode numbers of the multiple directional intra prediction modes may be 2 to 66. In addition, as the additional intra prediction modes, the mode numbers of the LT_CCLM mode, the L_CCLM mode, and the T_CCLM mode may be 81 to 83.
[0143] Figure 9b is a diagram showing intra prediction directions according to another embodiment of the present disclosure, in which the dashed direction indicates a wide angle mode that is applied only to non-square blocks.
[0144] In order to capture any edge direction presented in a natural video, as shown in FIG. 9b, the intra prediction modes may include 93 directional intra prediction modes together with two non-directional intra prediction modes. The non-directional intra prediction modes may include a planar mode and a DC mode. The directional intra prediction modes may include intra prediction modes consisting of No. 2 to No. 80 and No. -1 to No. -14 as indicated by the arrows in FIG. 9b. The planar mode may be represented as INTRA_PLANAR, and the DC mode may be represented as INTRA_DC. And the directional intra prediction modes may be represented as INTRA_ANGULAR-14 to INTRA_ANGULAR-1, and INTRA_ANGULAR2 to INTRA_ANGULAR80.
[0145] The image encoding apparatus may encode intra prediction mode / type information indicating an intra prediction mode applied to a current block and signal the encoded intra prediction mode / type information through a bitstream. In one example, the intra prediction mode / type information may include flag information (e.g., intra_luma_mpm_flag and / or intra_chroma_mpm_flag) indicating whether a most probable mode (MPM) or a remaining mode is applied to the current block. When the MPM is applied to the current block, the intra prediction mode / type information may further include index information (e.g., intra_luma_mpm_idx and / or intra_chroma_mpm_idx) indicating one of intra prediction mode candidates (MPM candidates). Alternatively, if the MPM is not applied to the current block, the intra prediction mode / type information may further include remaining mode information (e.g., intra_luma_mpm_remainder and / or intra_chroma_mpm_remainder) indicating any one of the remaining intra prediction modes excluding the intra prediction mode candidates (MPM candidates). The image decoding apparatus may determine the intra prediction mode of the current block based on the intra prediction mode / type information received via the bitstream.
[0146] The intra prediction mode / type information may be encoded / decoded through various coding methods described in this disclosure. For example, the intra prediction mode / type information may be encoded / decoded through entropy coding based on a truncated (rice) binary code (e.g., CABAC, CAVLC).
[0147] Inter Prediction Overview
[0148] Inter prediction according to the present disclosure will be described below.
[0149] 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. 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).
[0150] 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 subsequent 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.
[0151] FIG. 10 is a flow chart illustrating an inter-prediction based video / image coding method.
[0152] FIG. 11 is a diagram illustrating an example configuration of the inter prediction unit 180 according to the present disclosure.
[0153] The encoding method of FIG. 10 may be performed by the image encoding device of FIG. 2. Specifically, step S1010 may be performed by the inter prediction unit 180, and step S1020 may be performed by the residual processing unit. Specifically, step S1020 may be performed by the subtraction unit 115. Step S1030 may be performed by the entropy encoding unit 190. The prediction information of step S1030 may be derived by the inter prediction unit 180, and the residual information of step S1030 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.
[0154] Referring to FIG. 10 and FIG. 11 together, the image encoding apparatus may perform inter prediction for a current block (S1010). The image encoding apparatus may derive an inter prediction mode and motion information of the current block, and generate a prediction sample for the current block. Here, the inter prediction mode determination, motion information derivation, and prediction sample generation procedures may be performed simultaneously, or any one procedure may be performed prior to the other procedures. For example, as shown in FIG. 11, the 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 for the current block. For example, the inter prediction unit 180 of the image encoding device may search for a block similar to the current block within a certain region (search region) of a reference picture through motion estimation, and derive a reference block whose difference from the current block is minimum or equal to or less than a certain criterion. Based on this, a reference picture index indicating a reference picture in which the reference block is located may be derived, and a motion vector may be derived based on a position difference between the reference block and the current block. The image encoding 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 (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.
[0155] 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.
[0156] 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.
[0157] The image encoding apparatus may derive a residual sample based on the predicted sample (S1020). 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.
[0158] The image encoding apparatus may encode image information including prediction information and residual information (S1030). 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.
[0159] 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.
[0160] 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 can be further applied to the reconstructed picture.
[0161] FIG. 12 is a flowchart illustrating an inter-prediction based video / image decoding method, and FIG. 13 is a diagram illustrating an example configuration of the inter prediction unit 260 according to the present disclosure.
[0162] 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.
[0163] The decoding method of FIG. 12 may be performed by the image decoding apparatus of FIG. 3. Specifically, steps S1210 to S1230 may be performed by the inter prediction unit 260, and the prediction information of step S1210 and the residual information of step S1240 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. For example, 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. Also, step S1250 may be performed by the adder 235 or a reconstruction unit.
[0164] 12 and 13, the image decoding apparatus may determine a prediction mode for the current block based on received prediction information (S1210). 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.
[0165] 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.
[0166] The image decoding apparatus may derive motion information of the current block based on the determined inter prediction mode (S1220). 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.
[0167] 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.
[0168] The image decoding apparatus may generate a prediction sample for the current block based on the motion information of the current block (S1230). In this case, the reference picture may be derived based on a reference picture index of the current block, and the prediction sample for 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.
[0169] For example, as shown in FIG 13, 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.
[0170] The image decoding apparatus may generate a residual sample for the current block based on the received residual information (S1240). 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 (S1250). Thereafter, an in-loop filter procedure may be further applied to the reconstructed picture, as described above.
[0171] 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.
[0172] Overview of IBC (Intra Block Copy) prediction
[0173] The IBC forecast according to this disclosure will be described below.
[0174] 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 be referred to as CPR (current picture referencing).
[0175] For IBC, the image coding apparatus may derive an optimal block vector (or motion vector) for a current block (or a current CU) by performing block matching BM. The derived block vector may be signaled to the image decoding apparatus via a bitstream using a method similar to the signaling of motion information (motion vector) 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, and may thereby derive a prediction signal (predicted block or prediction sample) for the current block. Herein, the block 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 may also be referred to as a displacement vector. Hereinafter, a 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.
[0176] 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 a merge candidate list in an inter prediction mode. However, unlike the merge candidate list in an inter prediction mode, the merge candidate list for the luma IBC block may not include a temporal candidate block.
[0177] When the MVP mode is applied to the luma IBC block, the MVP candidate list for the luma IBC block may be configured similarly to the MVP candidate list in the inter prediction mode, except that the merge candidate list for the luma IBC block may not include a temporal candidate block, unlike the MVP candidate list in the inter prediction mode.
[0178] IBC can derive a reference block from an already reconstructed area in the current picture. In this case, in order to reduce memory consumption and the complexity of the image decoding device, only a predefined area among the already reconstructed areas in the current picture can be referenced. The predefined area can include the current CTU including the current block. By limiting the referenceable reconstruction area to the predefined area in this way, the IBC mode can be implemented in hardware using a local on-chip memory.
[0179] An image coding device performing 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 determined reference block and the current block.
[0180] Prediction mode information for IBC may be signaled at a CU level. For example, flag information indicating whether an IBC skip / merge mode is applied to a current block and / or flag information indicating whether an IBC AMVP mode is applied to a current block may be signaled via a coding_unit syntax.
[0181] In the case of IBC skip / merge mode, a merge candidate index is signaled and can be used to indicate a block vector used for predicting the current luma block among block vectors included in the merge candidate list. In this case, the merge candidate list can include neighboring blocks coded with IBC. As described above, the merge candidate list can include spatial merge candidates but not temporal merge candidates. In addition, the merge candidate list can further include History-based Motion Vector Predictor (HMVP) candidates and / or pairwise candidates.
[0182] In the case of the IBC MVP mode, a block vector difference value may be coded in the same manner as a motion vector difference value in the inter prediction mode. In the IBC MVP mode, the block vector prediction method may be performed based on an MVP candidate list including two candidates as predictors, as in the MVP mode. One of the two candidates may be derived from a left peripheral block of the current block, and the other may be derived from an upper peripheral block of the current block. In this case, a candidate may be derived from the left peripheral block or the upper peripheral block only if the left peripheral block or the upper peripheral block is coded in IBC. If the left peripheral block or the upper peripheral block is not available (e.g., not coded in IBC), a predetermined default block vector may be included in the MVP candidate list as a predictor. In addition, in the case of the IBC MVP mode, block vector prediction may be performed similarly to the MVP mode in that information (e.g., a flag) for indicating one of the two block vector predictors is signaled as candidate selection information and used for image decoding. The mvp candidate list may include HMVP candidates and / or a zero motion vector as a default block vector.
[0183] 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.
[0184] The pairwise candidate may refer to a candidate derived by averaging two candidates selected according to a predetermined order from among candidates already included in the merge candidate list of the current block.
[0185] Prediction mode information (e.g., pred_mode_ibc_flag) regarding whether IBC is applied to the current block may be signaled at the CU level. For example, pred_mode_ibc_flag may be signaled via a coding_unit syntax. In this case, pred_mode_ibc_flag having a first value (e.g., 0) may indicate that IBC is not applied to the current block. In contrast, pred_mode_ibc_flag having a second value (e.g., 1) may indicate that IBC is applied to the current block.
[0186] Meanwhile, in one example, IBC may not support merge mode and skip mode, may have no restrictions on the maximum block size, and may not be applied to chroma blocks with fewer than 16 samples.
[0187] As described above, various prediction modes such as intra prediction mode, inter prediction mode, or IBC may be used to generate a prediction block of a current block. The image encoding apparatus may encode certain prediction mode information and signal it through a bitstream to indicate a prediction mode for the current block. Also, the image decoding apparatus may determine a prediction mode for the current block based on certain prediction mode information obtained from the bitstream. Hereinafter, a method for encoding / decoding prediction mode information will be described in detail.
[0188] FIG. 14 is a diagram illustrating an example of a coding_unit syntax including prediction mode information, and FIG. 15 is a diagram illustrating an example of prediction modes applicable to a current block according to a slice type and a size of the current block.
[0189] First, referring to FIG. 14, the coding_unit syntax may include cu_skip_flag, pred_mode_flag, pred_mode_ibc_flag, and pred_mode_plt_flag as prediction mode information.
[0190] Specifically, cu_skip_flag may indicate whether or not a skip mode is applied to a current block. For example, cu_skip_flag having a first value (e.g., 0) may indicate that a skip mode is not applied to a current block. Differently, cu_skip_flag having a second value (e.g., 1) may indicate that a skip mode is applied to a current block. When cu_skip_flag has a second value (e.g., 1), if a current slice is a P or B slice, after parsing cu_skip_flag, no syntax elements except pred_mode_ibc_flag and the merge_data syntax structure may be parsed. Differently, when cu_skip_flag has a second value (e.g., 1), if a current slice is an I slice, after parsing cu_skip_flag, no syntax elements except merge_idx may be parsed. If cu_skip_flag is not present, then cu_skip_flag can be inferred to be a first value (eg, 0).
[0191] pred_mode_flag may indicate which prediction mode, inter prediction mode or intra prediction mode, is applied to the current block. For example, pred_mode_flag having a first value (e.g., 0) may indicate that an inter prediction mode is applied to the current block. In contrast, pred_mode_flag having a second value (e.g., 1) may indicate that an intra prediction mode is applied to the current block. If pred_mode_flag is not present, pred_mode_flag may be inferred as follows.
[0192] - First inference condition: If the width (cbWidth) and height (cbHeight) of the current block are both 4, then pred_mode_flag is inferred to be a second value (eg, 1).
[0193] - Second inference condition: If the first condition is not met, if the prediction mode type (modeType) of the current block is MODE_TYPE_INTRA, indicating that only intra prediction modes, IBC and palette modes are available, pred_mode_flag is inferred to be a second value (e.g., 1).
[0194] -Third inference condition: If neither the first nor the second condition is met, if the prediction mode type (modeType) of the current block is MODE_TYPE_INTER, indicating that only inter prediction mode is available, pred_mode_flag is inferred to be the first value (e.g., 0).
[0195] - Fourth inference condition: If all of the first to third conditions are not met, if the slice type (slice_type) of the current block is an I slice, pred_mode_flag is inferred to be a second value (e.g., 1), and if the slice type (slice_type) of the current block is a P or B slice, pred_mode_flag is inferred to be a first value (e.g., 0).
[0196] The pred_mode_ibc_flag may indicate whether IBC is applied to the current block. For example, a pred_mode_ibc_flag having a first value (e.g., 0) may indicate that IBC is not applied to the current block. In contrast, a pred_mode_ibc_flag having a second value (e.g., 1) may indicate that IBC is applied to the current block. If the pred_mode_ibc_flag is not present, the pred_mode_ibc_flag may be inferred as follows.
[0197] - Fifth inference condition: If cu_skip_flag has a second value (eg, 1) and the width (cbWidth) and height (cbHeight) of the current block are both 4, then pred_mode_ibc_flag can be inferred to have a second value (eg, 1).
[0198] - Sixth inference condition: If the fifth condition is not met, if cu_skip_flag has a second value (eg, 1) and the prediction mode type (modeType) of the current block is MODE_TYPE_INTRA, then pred_mode_ibc_flag can be inferred to have a second value (eg, 1).
[0199] Seventh inference condition: if the fifth and sixth conditions are not met, and the width (cbWidth) or height (cbHeight) of the current block is 128, pred_mode_ibc_flag is inferred to be the first value (eg, 0).
[0200] - Eighth inference condition: If all of the fifth to seventh conditions are not satisfied, and the prediction mode type (modeType) of the current block is the above-mentioned MODE_TYPE_INTER, it is inferred that pred_mode_ibc_flag is the first value (eg, 0).
[0201] - Ninth inference condition: If all of the fifth to eighth conditions are not met, and if the partition structure (treeType) of the current block is dual tree chroma (DUAL_TREE_CHROMA), it is inferred that pred_mode_ibc_flag is the first value (eg, 0).
[0202] - Tenth inference condition: If all of the fifth to ninth conditions are not satisfied, if the slice type (slice_type) of the current block is an I slice, pred_mode_ibc_flag is inferred to be the same value as sps_ibc_enabled_flag acquired via an SPS (sequence parameter set), and if the slice type (slice_type) of the current block is a P or B slice, pred_mode_ibc_flag is inferred to be a first value (e.g., 0). Here, sps_ibc_enabled_flag indicates whether IBC is available at the sequence level. For example, sps_ibc_enabled_flag having a first value (e.g., 0) indicates that IBC is not available, and sps_ibc_enabled_flag having a second value (e.g., 1) indicates that IBC is available.
[0203] pred_mode_plt_flag may indicate whether or not palette mode is applied to the current block. For example, pred_mode_plt_flag having a first value (e.g., 0) may indicate that palette mode is not applied to the current block. Conversely, pred_mode_plt_flag having a second value (e.g., 1) may indicate that palette mode is applied to the current block. If pred_mode_plt_flag is not present, pred_mode_plt_flag may be inferred to be the first value (e.g., 0).
[0204] Meanwhile, the above prediction mode information may be signaled based on the size (cbWidth×cbHeight) of the current block. For example, each of the signaling conditions (1420, 1430, 1440) of cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag may include a detailed condition on whether the size (cbWidth×cbHeight) of the current block is 4×4. Also, each of the signaling conditions (1420, 1440, 1450) of cu_skip_flag, pred_mode_ibc_flag, and pred_mode_plt_flag may include a detailed condition on whether the size (cbWidth×cbHeight) of the current block is equal to or smaller than 64×64.
[0205] In addition, the above-mentioned prediction mode information may be signaled based on the prediction mode type (modeType) of the current block. For example, each of the signaling conditions (1420, 1440) of cu_skip_flag and pred_mode_ibc_flag may include a detailed condition on whether the prediction mode type (modeType) of the current block is MODE_TYPE_INTRA. In addition, the signaling condition (1450) of pred_mode_flag may include a detailed condition on whether the prediction mode type (modeType) of the current block is MODE_TYPE_ALL indicating that all prediction modes are available. In addition, the signaling condition (1450) of pred_mode_plt_flag may include a detailed condition on whether the prediction mode type (modeType) of the current block is MODE_TYPE_INTER indicating that only inter prediction is available.
[0206] However, the inter prediction mode cannot be applied to a current block of size 4x4, and only the intra prediction mode and palette mode can be applied. This means that the prediction mode type (modeType) of the current block of size 4x4 can only be defined as MODE_TYPE_INTRA. Therefore, if the size (cbWidth x cbHeight) of the current block is separately determined to be 4x4 or not and the prediction mode type (modeType) of the current block is MODE_TYPE_INTRA or not, the signaling conditions become complicated, and a problem of determining substantially the same conditions repeatedly may occur.
[0207] Meanwhile, the inter prediction mode and IBC can be applied to the current block in a limited manner. For example, referring to FIG. 15, if IBC is available at the sequence level ('yes' in 1510), the slice type (slice_type) of the current block is not an I slice ('yes' in 1520), and the size (CU size) of the current block is larger than 64×64 ('no' in 1540), then IBC cannot be applied to the current block (1561). Also, if IBC is available at the sequence level ('yes' in 1510), the slice type (slice_type) of the current block is an I slice ('no' in 1520), and the size (CU size) of the current block is equal to or smaller than 64×64 ('yes' in 1550), then the inter prediction mode cannot be applied to the current block (1571). On the other hand, if the size of the current block (CU size) is larger than 64×64 ('no' in 1550), the inter prediction mode and IBC cannot be applied to the current block (1572). On the other hand, if IBC is not available at the sequence level ('no' in 1510), the IBC cannot be applied to the current block (1581, 1582). Also, if IBC is not available at the sequence level ('no' in 1510) and the slice type (slice_type) of the current block is an I-slice ('no' in 1530), the inter prediction mode cannot be applied to the current block (1582). In this way, the inter prediction mode and IBC can be applied to the current block only if the slice type (slice_type) of the current block is not an I-slice ('no' in 1520) and the size (CU size) of the current block is equal to or smaller than 64×64 ('yes' in 1540).
[0208] However, if IBC is available at the sequence level (sps_ibc_enabled_flag==1) according to the common signaling condition (1410) of cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag, cu_skip_flag may be signaled according to the individual signaling condition (1420) even if the slice type (slice_type) of the current block is an I slice or the size (cbWidth×cbHeight) of the current block is greater than 64×64. For example, if the size (cbWidth×cbHeight) of the current block is not 4×4 and the prediction mode type (modeType) of the current block is not MODE_TYPE_INTRA, cu_skip_flag may be signaled. In this way, according to the signaling condition of cu_skip_flag (1420), cu_skip_flag may be signaled even for a current block to which inter prediction mode and / or IBC cannot be applied, which may result in unnecessary waste of transmission bits. In addition, if cu_skip_flag having a second value (e.g., 1) indicating that a skip mode is applied to a current block to which inter prediction mode and / or IBC cannot be applied is signaled, a problem may occur in which decoding of the current block itself becomes impossible.
[0209] In order to solve the above-mentioned problems, according to an embodiment of the present disclosure, a prediction mode type (modeType) of a current block may be reset to MODE_TYPE_INTRA based on at least one of a slice type of the current block and a size of the current block, and prediction mode information of the current block may be signaled based on the reset prediction mode type (modeType).
[0210] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
[0211] Example 1
[0212] 16 is a diagram illustrating a coding_unit syntax according to an embodiment of the present disclosure. The prediction mode information (cu_skip_flag, pred_mode_flag, pred_mode_ibc_flag, and pred_mode_plt_flag) included in the coding_unit syntax is as described above with reference to FIG. 14, and therefore a duplicate description thereof will be omitted.
[0213] Referring to FIG. 16, a prediction mode type (modeType) of a current block may be set as an input value of a call of the coding_unit syntax. Here, the current block is an application target of the recursively called coding_unit syntax and may correspond to a leaf node of a partition tree structure. The prediction mode type (modeType) of the current block may be reset based on the size (cbWidth×cbHeight) of the current block (1610). For example, the prediction mode type (modeType) of the current block may be reset based on a result of comparing the size (cbWidth×cbHeight) of the current block with a predetermined reference value.
[0214] The reference value may be determined to be 4×4, which is a block size available only for intra prediction mode and palette mode, as shown in FIG. 16. In this case, the prediction mode type (modeType) of the current block may be reset to MODE_TYPE_INTRA based on whether the size (cbWidth×cbHeight) of the current block is 4×4. For example, if both the width (cbWidth) and height (cbHeight) of the current block are 4, the prediction mode type (modeType) of the current block may be reset to MODE_TYPE_INTRA. Alternatively, if at least one of the width (cbWidth) and height (cbHeight) of the current block is not 4, the prediction mode type (modeType) of the current block may be reset to a call input value of the coding_unit syntax (i.e., the original value is maintained).
[0215] Whether the size of the current block (cbWidth×cbHeight) is 4×4 or not is reflected in the prediction mode type (modeType), so that the detailed condition regarding whether the size of the current block (cbWidth×cbHeight) is 4×4 or not can be removed from the signaling conditions (1620, 1630, 1640) of cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag. That is, In the case of red_mode_ibc_flag, it may be signaled based on the prediction mode type (modeType) without separately determining whether the size (cbWidth×cbHeight) of the current block is 4×4. For example, when the prediction mode type (modeType) of the current block is MODE_TYPE_INTRA, cu_skip_flag and pred_mode_flag are not signaled, and pred_mode_ibc_flag may be signaled according to other detailed conditions.
[0216] In another example, the reference value may be determined to be 64x64, which is the maximum block size available for IBC. In this case, the prediction mode type (modeType) of the current block may be reset to MODE_TYPE_INTRA based on whether the size (cbWidthxcbHeight) of the current block is greater than 64x64. For example, if at least one of the width (cbWidth) and height (cbHeight) of the current block is greater than 64, the prediction mode type (modeType) of the current block may be reset to MODE_TYPE_INTRA. In contrast, if both the width (cbWidth) and height (cbHeight) of the current block are equal to or smaller than 64, the prediction mode type (modeType) of the current block may be reset to a call input value of the coding_unit syntax (i.e., the original value is maintained).
[0217] Whether the size (cbWidth×cbHeight) of the current block is greater than 64×64 is reflected in the prediction mode type (modeType), so that signaling of cu_skip_flag for a current block greater than 64×64 may be restricted based on the prediction mode type (modeType) (1620). In this case, cu_skip_flag may be inferred to be a first value (e.g., 0).
[0218] As described above, according to the first embodiment of the present disclosure, it is not necessary to separately determine whether the size (cbWidth×cbHeight) of the current block is 4×4 or not in order to signal prediction mode information for the current block, so that the signaling condition of prediction mode information can be simplified (i.e., coding_unit syntax is cleaned up). In addition, by resetting the prediction mode type (modeType) of the current block that is 4×4 or larger than 64×64 to MODE_TYPE_INTRA, the signaling of cu_skip_flag can be restricted for the current block to which the inter prediction mode and / or IBC cannot be applied.
[0219] Example 2
[0220] 17 is a diagram illustrating a coding_unit syntax according to another embodiment of the present disclosure. The prediction mode information (cu_skip_flag, pred_mode_flag, pred_mode_ibc_flag, and pred_mode_plt_flag) included in the coding_unit syntax is as described above with reference to FIG. 14, and a duplicate description thereof will be omitted.
[0221] Referring to FIG. 17, the prediction mode type (modeType) of the current block may be set as a call input value of the coding_unit syntax. Here, the current block is an application target of the recursively called coding_unit syntax and may correspond to a leaf node of a partition tree structure. The prediction mode type (modeType) of the current block may be reset based on the slice type (slice_type) of the current block and the size (cbWidth×cbHeight) of the current block (1710). For example, the prediction mode type (modeType) of the current block may be reset based on whether the slice type (slice_type) of the current block is an I slice (first reset condition) and a result of comparing the size (cbWidth×cbHeight) of the current block with a predetermined reference value (second reset condition).
[0222] The predetermined reference value may be determined to be 4×4, which is a block size available only for intra prediction mode and palette mode, as shown in Figure 17. In this case, if both the width (cbWidth) and height (cbHeight) of the current block are 4, the second reset condition may be true. In contrast, if at least one of the width (cbWidth) and height (cbHeight) of the current block is not 4, the second reset condition may be false.
[0223] In another example, the predetermined reference value may be determined to be 64×64, which is the maximum block size available to IBC. In this case, if both the width (cbWidth) and height (cbHeight) of the current block are equal to or smaller than 64, the second reset condition may be true. In contrast, if at least one of the width (cbWidth) and height (cbHeight) of the current block is greater than 64, the second reset condition may be false.
[0224] The first reset condition and the second reset condition may form a logical sum condition (OR condition) as shown in FIG 16. For example, if at least one of the first reset condition and the second reset condition is true, the prediction mode type (modeType) of the current block may be reset to MODE_TYPE_INTRA. Alternatively, if both the first reset condition and the second reset condition are false, the prediction mode type (modeType) of the current block may be reset to a call input value of the coding_unit syntax. That is, in this case, the prediction mode type (modeType) of the current block may be maintained at its original value.
[0225] In another example, the first reset condition and the second reset condition may form a logical AND condition. For example, if both the first reset condition and the second reset condition are true, the prediction mode type (modeType) of the current block may be reset to MODE_TYPE_INTRA. Alternatively, if at least one of the first reset condition and the second reset condition is false, the prediction mode type (modeType) of the current block may be reset to a call input value of the coding_unit syntax. That is, in this case, the prediction mode type (modeType) of the current block may be maintained at its original value.
[0226] As the slice type (slice_type) of the current block and the size (cbWidth×cbHeight) of the current block are reflected in the prediction mode type (modeType), the first detailed condition regarding whether the slice type (slice_type) of the current block is an I slice and the second detailed condition regarding whether the size (cbWidth×cbHeight) of the current block is 4×4 can be eliminated from the signaling conditions (1720, 1730, 1740) of cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag. That is, in the case of cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag, the first detailed condition and the second detailed condition can be signaled based on the prediction mode type (modeType) of the current block without separately determining them. For example, if the prediction mode type (modeType) of the current block is MODE_TYPE_INTRA, cu_skip_flag and pred_mode_flag are not signaled, and pred_mode_ibc_flag may be signaled according to other detailed conditions. In addition, for a current block to which inter prediction mode and / or IBC cannot be applied, the signaling of cu_skip_flag and pred_mode_ibc_flag may be restricted (1720, 1740). In this case, cu_skip_flag and pred_mode_ibc_flag may be inferred to a first value (e.g., 0), respectively.
[0227] On the other hand, by simplifying the signaling conditions (1720, 1730, 1740) of cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag, respectively, the semantics of pred_mode_flag and pred_mode_ibc_flag described above with reference to FIG. 14 can also be partially changed.
[0228] In one example, among the first to fourth inference conditions of pred_mode_flag described above with reference to Figure 14, the first inference condition regarding whether the size (cbWidth x cbHeight) of the current block is 4 x 4 can be removed. Also, the fifth to tenth inference conditions of pred_mode_ibc_flag described above with reference to Figure 14 can be replaced with the following conditions.
[0229] - 11th inference condition: i) IBC is available at the sequence level (sps_ibc_enabled_flag == 1), ii) the size of the current block (cbWidth x cbHeight) is smaller than 128 x 128, iii) cu_skip_flag has a first value (e.g., 0), iv) the prediction mode type (modeType) of the current block is MODE_TYPE_INTRA, and v) the partition structure (treeType) of the current block is not DUAL_TREE_CHROMA, then pred_mode_ibc_flag is inferred to a second value (e.g., 1).
[0230] - Twelfth inference condition: If the eleventh inference condition is not satisfied, pred_mode_ibc_flag is inferred to be a first value (eg, 0).
[0231] In another example, among the first to fourth inference conditions of pred_mode_flag described above with reference to FIG. 14, the first inference condition regarding whether the size of the current block (cbWidth×cbHeight) is 4×4 can be removed, and the fourth inference condition can be changed to infer that pred_mode_flag is inferred to a first value (e.g., 0) regardless of the slice type (slice_type) of the current block.
[0232] In addition, among the fifth to tenth inference conditions of pred_mode_ibc_flag described above with reference to FIG. 14, the fifth inference condition regarding whether the size of the current block (cbWidth×cbHeight) is 4×4 can be removed, and the tenth inference condition can be changed to infer that pred_mode_ibc_flag is set to a first value (e.g., 0) regardless of the slice type (slice_type) of the current block.
[0233] Meanwhile, by simplifying the signaling conditions (1720, 1730, 1740) of cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag, the third detailed condition on whether cu_skip_flag has a first value (e.g., 0) and the fourth detailed condition on whether the prediction mode type (modeType) of the current block is MODE_TYPE_INTER can be removed from the signaling condition (1750) of pred_mode_plt_flag. That is, in the case of pred_mode_plt_flag, the third detailed condition and the fourth detailed condition are not separately determined, and the signaling can be performed based on the value of the variable CuPredMode determined based on pred_mode_flag. Here, CuPredMode indicates the prediction mode of the current block and can be determined to be MODE_INTER or MODE_INTRA based on pred_mode_flag. For example, when pred_mode_flag has a first value (e.g., 0), CuPredMode may be determined to be MODE_INTER, which indicates that the prediction mode of the current block is an inter prediction mode. Conversely, when pred_mode_flag has a second value (e.g., 1), CuPredMode may be determined to be MODE_INTRA, which indicates that the prediction mode of the current block is an intra prediction mode.
[0234] As described above, according to the second embodiment of the present disclosure, it is not necessary to separately determine whether the slice type (slice_type) of the current block is an I-slice and whether the size (cbWidth×cbHeight) of the current block is 4×4 in order to signal prediction mode information for the current block, so that the signaling condition of prediction mode information can be simplified (i.e., coding_unit syntax clean-up). In addition, by resetting the prediction mode type (modeType) of the current block, which belongs to an I-slice and is 4×4 or larger than 64×64, to MODE_TYPE_INTRA, it is possible to restrict the signaling of cu_skip_flag for the current block to which inter prediction mode and / or IBC cannot be applied.
[0235] Example 3
[0236] 18 is a diagram illustrating a coding_unit syntax according to another embodiment of the present disclosure. The prediction mode information (cu_skip_flag, pred_mode_flag, pred_mode_ibc_flag, and pred_mode_plt_flag) included in the coding_unit syntax is as described above with reference to FIG. 14, and therefore a duplicated description thereof will be omitted.
[0237] Referring to FIG. 18, the prediction mode type (modeType) of the current block may be set to a call input value of the coding_unit syntax. Here, the current block is an application target of the recursively called coding_unit syntax and may correspond to a leaf node of a partition tree structure. The prediction mode type (modeType) of the current block may be reset based on the slice type (slice_type) of the current block (1810). For example, if the slice type (slice_type) of the current block is an I slice, the prediction mode type (modeType) of the current block may be reset to MODE_TYPE_INTRA. In contrast, if the slice type (slice_type) of the current block is not an I slice (e.g., a P or B slice), the prediction mode type (modeType) of the current block may be reset to a call input value of the coding_unit syntax. That is, in this case, the prediction mode type (modeType) of the current block may be maintained at its original value.
[0238] As a result, even if the common signaling condition (1820) for cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag is that IBC is available at the sequence level (sps_ibc_enabled_flag == 1), if the slice type (slice_type) of the current block is an I slice, the prediction mode type (modeType) becomes MODE_TYPE_INTRA, so the signaling of cu_skip_flag can be restricted in accordance with the individual signaling condition (1830).
[0239] Meanwhile, in one example, the reset condition (1810) of the prediction mode type (modeType) may further include a condition regarding the size (cbWidth×cbHeight) of the current block. For example, the prediction mode type (modeType) of the current block may be reset to MODE_TYPE_INTRA based on whether the slice type (slice_type) of the current block is an I slice and on a result of comparing the size (cbWidth×cbHeight) of the current block with a predetermined reference value. Here, the predetermined reference value may be determined to 4×4, which is a block size available only for intra prediction mode and palette mode, or may be determined to 64×64, which is the maximum block size available for IBC. In addition, the condition regarding the slice type (slice_type) of the current block and the condition regarding the size (cbWidth×cbHeight) of the current block may form a logical sum condition (OR condition) or a logical product condition (AND condition). For example, the prediction mode type (modeType) of the current block may be reset to MODE_TYPE_INTRA if the slice type (slice_type) of the current block is an I-slice or at least one of the width (cbWidth) and height (cbHeight) of the current block exceeds 64. Alternatively, the prediction mode type (modeType) of the current block may be reset to MODE_TYPE_INTRA only if the slice type (slice_type) of the current block is an I-slice and at least one of the width (cbWidth) and height (cbHeight) of the current block exceeds 64.
[0240] As described above, according to the third embodiment of the present disclosure, by resetting the prediction mode type (modeType) of a current block belonging to an I slice to MODE_TYPE_INTRA, it is possible to restrict the signaling of cu_skip_flag for a current block to which an inter prediction mode cannot be applied. Also, by resetting the prediction mode type (modeType) of a current block of 4×4 or a current block larger than 64×64 to MODE_TYPE_INTRA, it is possible to restrict the signaling of cu_skip_flag for a current block to which an inter prediction mode and / or IBC cannot be applied.
[0241] Example 4
[0242] 19 is a diagram illustrating a coding_unit syntax according to another embodiment of the present disclosure. The prediction mode information (cu_skip_flag, pred_mode_flag, pred_mode_ibc_flag, and pred_mode_plt_flag) included in the coding_unit syntax is as described above with reference to FIG. 14, and therefore a duplicate description thereof will be omitted.
[0243] Referring to FIG. 19, the prediction mode type (modeType) of the current block may be set as an input value of the call of the coding_unit syntax. Here, the current block is an application target of the recursively called coding_unit syntax and may correspond to a leaf node of the partition tree structure. Unlike the above-mentioned embodiments 1 to 3 of the present disclosure, the process of resetting the prediction mode type (modeType) may be skipped.
[0244] The signaling condition of cu_skip_flag (1920) may include detailed conditions regarding whether the slice type (slice_type) of the current block is an I slice. For example, if the slice type (slice_type) of the current block is an I slice, cu_skip_flag may not be signaled. In contrast, if the slice type (slice_type) of the current block is not an I slice (e.g., a P or B slice), cu_skip_flag may be signaled according to other detailed conditions. That is, cu_skip_flag may be explicitly signaled only for a current block belonging to a P or B slice.
[0245] Thus, even if IBC is available at the sequence level (sps_ibc_enabled_flag==1) according to the common signaling conditions (1910) of cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag, if the slice type (slice_type) of the current block is an I slice, the signaling of cu_skip_flag can be restricted according to the individual signaling conditions (1920).
[0246] As described above, according to the fourth embodiment of the present disclosure, it is possible to restrict the signaling of cu_skip_flag for a current block that belongs to an I-slice.
[0247] Image encoding method
[0248] Hereinafter, a method for encoding an image by the image encoding device will be described in detail based on the above-mentioned embodiment. The image encoding device includes a memory and at least one processor, and the image encoding method can be performed by the at least one processor.
[0249] FIG. 20 is a flowchart illustrating an image encoding method according to an embodiment of the present disclosure.
[0250] Referring to FIG. 20, the image encoding apparatus may obtain a current block corresponding to a leaf node of a partition tree structure based on a predetermined prediction mode type (e.g., modeType) (S2010). Here, the predetermined prediction mode type is a prediction mode type of the current block and may be determined based on prediction mode characteristic information (e.g., modeTypeCondition) of an upper block. For example, if the prediction mode characteristic information of the upper block has a first value (e.g., 0), the predetermined prediction mode type may be determined as the prediction mode type of the upper block. Alternatively, if the prediction mode characteristic information of the upper block has a second value (e.g., 1), the predetermined prediction mode type may be determined as MODE_TYPE_INTRA. Alternatively, if the prediction mode characteristic information of the upper block has a third value (e.g., 2), the predetermined prediction mode type may be determined as MODE_TYPE_INTRA or MODE_TYPE_INTER.
[0251] Meanwhile, the prediction mode characteristic information of the superior block may have one of first to third values (eg, 0, 1, 2) based on a predetermined condition.
[0252] Specifically, when at least one of the following conditions 1-1 to 1-4 is satisfied, the prediction mode characteristic information of the upper block may be determined to be a first value (eg, 0).
[0253] -Condition 1-1: The upper block is included in an I slice, and each CTU included in the slice is implicitly quadtree split into 64x64 luma sample CUs, and the 64x64 luma sample CUs become the root node of the dual tree.
[0254] - Condition 1-2: The prediction mode type (eg, modeTypeCurr) of the upper block is not MODE_TYPE_ALL.
[0255] -Condition 1-3: If the color format of the upper block is a monochrome format (for example, sps_chroma_format_idc==0).
[0256] -Condition 1-4: If the color format of the upper block is 4:4:4 format (for example, sps_chroma_format_idc==3).
[0257] If all of the above conditions are not met and at least one of the following conditions 2-1 to 2-3 is met, the prediction mode characteristic information of the superior block may be determined to be a second value (eg, 1).
[0258] Condition 2-1: The product of the width and height of the upper block is 64, and the partitioning mode of the upper block is the quadtree partitioning mode.
[0259] -Condition 2-2: The product of the width and height of the upper block is 64, and the division mode of the upper block is horizontal ternary division mode or vertical ternary division mode.
[0260] -Condition 2-3: The product of the width and height of the upper block is 32, and the partition mode of the upper block is horizontal binary partition mode or vertical binary partition mode.
[0261] If all of the above conditions are not met and at least one of the following conditions 3-1 to 3-4 is met, the prediction mode characteristic information of the upper block belonging to the I-slice may be determined to be a second value (e.g., 1), and the prediction mode characteristic information of the upper block not belonging to the I-slice may be determined to be a third value (e.g., 2).
[0262] -Condition 3-1: The product of the width and height of the upper block is 64, and the partition mode of the upper block is horizontal binary partition mode or vertical binary partition mode.
[0263] -Condition 3-2: The product of the width and height of the upper block is 128, and the division mode of the upper block is horizontal ternary division mode or vertical ternary division mode.
[0264] -Condition 3-3: The width of the upper block is 8, and the partition mode of the upper block is vertical binary partition mode.
[0265] Condition 3-4: The width of the upper block is 16, quadtree splitting is not allowed for the upper block (for example, split_qt_flag==0), and the split mode of the upper block is vertical ternary split mode.
[0266] On the other hand, if all of these conditions are not met, the prediction mode characteristic information of the superior block may be determined to be a first value (eg, 0).
[0267] The image encoding device can determine the prediction mode type of the current block based on the prediction mode characteristic information of the upper block determined by the above-mentioned conditions. The image encoding device can then obtain the current block by dividing the upper block based on the determined prediction mode type. For example, if the prediction mode type of the current block is MODE_TYPE_INTRA, the image encoding device can obtain the current block by dividing the upper block into a dual tree structure. In contrast, if the prediction mode type of the current block is not MODE_TYPE_INTRA (e.g., MODE_TYPE ALL or MODE_TYPE_INTER), the image encoding device can obtain the current block by dividing the upper block according to the division structure of the upper block.
[0268] The image encoding apparatus may reset the prediction mode type of the current block (S2020).
[0269] In one example, the prediction mode type of the current block may be reset to an intra type (eg, MODE_TYPE_INTRA) based on the size of the current block.
[0270] For example, if at least one of the width and height of the current block is greater than 64, the prediction mode type of the current block may be reset to MODE_TYPE_INTRA. Alternatively, if both the width and height of the current block are less than 64, the prediction mode type of the current block may be reset to the call input value of the coding_unit syntax (i.e., the prediction mode type of S2010). In this way, whether the size of the current block is greater than 64×64 is reflected in the prediction mode type, so that for a current block larger than 64×64, the signaling of cu_skip_flag may be restricted based on the prediction mode type.
[0271] Alternatively, if both the width and height of the current block are 4, the prediction mode type of the current block may be reset to MODE_TYPE_INTRA. Alternatively, if at least one of the width and height of the current block is not 4, the prediction mode type of the current block may be reset to the call input value of the coding_unit syntax (i.e., the prediction mode type of S2010) described above. In this manner, whether the size of the current block is 4×4 or not is reflected in the prediction mode type, so that in the case of cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag, it is not necessary to separately determine whether the size of the current block is 4×4 or not, and the signaling may be performed based on the prediction mode type.
[0272] In another example, the prediction mode type of the current block may be reset to an intra type (e.g., MODE_TYPE_INTRA) based on the slice type of the current block. For example, if the slice type of the current block is an I slice, the prediction mode type of the current block may be reset to MODE_TYPE_INTRA. Alternatively, if the slice type of the current block is not an I slice (e.g., a P or B slice), the prediction mode type of the current block may be reset to the call input value of the coding_unit syntax (i.e., the prediction mode type of S2010) described above. In this way, whether the slice type of the current block is an I slice is reflected in the prediction mode type, so that signaling of cu_skip_flag for the current block belonging to an I slice can be restricted. For example, as described above with reference to Figure 18, even if IBC is available at the sequence level (sps_ibc_enabled_flag == 1), and the common signaling condition (1820) of cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag is true, the signaling of cu_skip_flag can be restricted according to the individual signaling condition (1830) if the prediction mode type (modeType) of the current block is MODE_TYPE_INTRA.
[0273] In another example, the prediction mode type of the current block may be reset to an intra type (e.g., MODE_TYPE_INTRA) based on the slice type of the current block and the size of the current block. For example, if the slice type of the current block is an I slice and at least one of the width and height of the current block is greater than 64, the prediction mode type of the current block may be reset to MODE_TYPE_INTRA. Alternatively, if the slice type of the current block is not an I slice (e.g., a P or B slice) or both the width and height of the current block are equal to or smaller than 64, the prediction mode type of the current block may be reset to the call input value of the coding_unit syntax (i.e., the prediction mode type of S2010). In this way, the signaling of cu_skip_flag may be restricted for a current block to which inter prediction mode and / or IBC cannot be applied, as the prediction mode type reflects whether the slice type of the current block is an I slice and whether the size of the current block exceeds 64×64.
[0274] The image encoding apparatus may encode the prediction mode information of the current block based on the prediction mode type reset according to the above-mentioned method (S2030). Here, the prediction mode information of the current block may include cu_skip_flag indicating whether a skip mode is applied, pred_mode_flag indicating whether an intra prediction mode or an inter prediction mode is applied, pred_mode_ibc_flag indicating whether an IBC is applied, and pred_mode_plt_flag indicating whether a palette mode is applied. Specific contents of the above-mentioned prediction mode information are as described above with reference to Figures 14 to 19.
[0275] As described above, according to an image encoding method according to an embodiment of the present invention, the prediction mode type of the current block may be reset to a predetermined prediction mode type (e.g., MODE_TYPE_INTRA) based on at least one of the slice type and size of the current block. Then, the prediction mode information of the current block may be coded based on the reset prediction mode type. This may simplify the signaling conditions of the prediction mode information, and may limit the signaling of cu_skip_flag for the current block to which the inter prediction mode and / or IBC cannot be applied.
[0276] Image Decoding Method
[0277] Hereinafter, a method for the image decoding device to decode an image will be described in detail based on the above-mentioned embodiment. The image decoding device includes a memory and at least one processor, and the image decoding method can be performed by the at least one processor.
[0278] FIG. 21 is a flowchart illustrating an image decoding method according to one embodiment of the present disclosure.
[0279] Referring to FIG. 21, the image decoding apparatus may obtain a current block corresponding to a leaf node of a partition tree structure based on a predetermined prediction mode type (e.g., modeType) (S2110). Here, the predetermined prediction mode type is a prediction mode type of the current block and may be determined based on prediction mode characteristic information (e.g., modeTypeCondition) of an upper block. For example, if the prediction mode characteristic information of the upper block has a first value (e.g., 0), the predetermined prediction mode type may be determined as the prediction mode type of the upper block. Alternatively, if the prediction mode characteristic information of the upper block has a second value (e.g., 1), the predetermined prediction mode type may be determined as MODE_TYPE_INTRA. Alternatively, if the prediction mode characteristic information of the upper block has a third value (e.g., 2), the predetermined prediction mode type may be determined as MODE_TYPE_INTRA or MODE_TYPE_INTER. Meanwhile, the prediction mode characteristic information of the superior block may have one of first to third values (for example, 0, 1, 2) based on a predetermined condition, and the predetermined condition is as described above with reference to FIG. 20.
[0280] In this way, the image encoding device can determine the prediction mode type of the current block based on the prediction mode characteristic information of the upper block. Then, the image encoding device can obtain the current block by dividing the upper block based on the determined prediction mode type. For example, if the prediction mode type of the current block is MODE_TYPE_INTRA, the image encoding device can obtain the current block by dividing the upper block into a dual tree structure. In contrast, if the prediction mode type of the current block is not MODE_TYPE_INTRA (e.g., MODE_TYPE ALL or MODE_TYPE_INTER), the image encoding device can obtain the current block by dividing the upper block according to the division structure of the upper block.
[0281] The image decoding apparatus may reset the prediction mode type of the current block (S2120).
[0282] In one example, the prediction mode type of the current block may be reset to an intra type (eg, MODE_TYPE_INTRA) based on the size of the current block.
[0283] For example, if at least one of the width and height of the current block is greater than 64, the prediction mode type of the current block may be reset to MODE_TYPE_INTRA. Alternatively, if both the width and height of the current block are less than 64, the prediction mode type of the current block may be reset to the call input value of the coding_unit syntax (i.e., the prediction mode type of S2110). Alternatively, if both the width and height of the current block are 4, the prediction mode type of the current block may be reset to MODE_TYPE_INTRA. Alternatively, if at least one of the width and height of the current block is not 4, the prediction mode type of the current block may be reset to the call input value of the coding_unit syntax (i.e., the prediction mode type of S2110).
[0284] In another example, the prediction mode type of the current block may be reset to a predetermined prediction mode type (e.g., MODE_TYPE_INTRA) based on the slice type of the current block. For example, if the slice type of the current block is an I slice, the prediction mode type of the current block may be reset to MODE_TYPE_INTRA. Alternatively, if the slice type of the current block is not an I slice (e.g., a P or B slice), the prediction mode type of the current block may be reset to a call input value of the coding_unit syntax (i.e., the prediction mode type of S2110).
[0285] In another example, the prediction mode type of the current block may be reset to a predetermined prediction mode type (e.g., MODE_TYPE_INTRA) based on the slice type of the current block and the size of the current block. For example, if the slice type of the current block is an I slice and at least one of the width and height of the current block is greater than 64, the prediction mode type of the current block may be reset to MODE_TYPE_INTRA. Alternatively, if the slice type of the current block is not an I slice (e.g., a P or B slice) or both the width and height of the current block are equal to or less than 64, the prediction mode type of the current block may be reset to a call input value of the coding_unit syntax (i.e., the prediction mode type of S2110).
[0286] The image decoding apparatus may obtain prediction mode information of the current block based on the reset prediction mode type according to the above-mentioned method (S2130). For example, the image decoding apparatus may obtain prediction mode information of the current block by parsing a coding_unit syntax included in the bitstream based on the reset prediction mode type. Here, the prediction mode information of the current block may include cu_skip_flag indicating whether a skip mode is applied, pred_mode_flag indicating whether an intra prediction mode or an inter prediction mode is applied, pred_mode_ibc_flag indicating whether an IBC is applied, and pred_mode_plt_flag indicating whether a palette mode is applied. Specific contents of the above-mentioned prediction mode information are as described above with reference to FIG. 14 to FIG. 19.
[0287] The image decoding apparatus may generate a prediction block of the current block based on the prediction mode information of the current block (S2140). Specifically, the image decoding apparatus may determine a prediction mode of the current block based on the prediction mode information of the current block. Then, the image decoding apparatus may generate a prediction block of the current block by performing prediction based on the determined prediction mode.
[0288] As described above, according to an image decoding method according to an embodiment of the present invention, a prediction mode type of a current block may be reset to a predetermined prediction mode type (e.g., MODE_TYPE_INTRA) based on at least one of a slice type and a size of the current block. Then, prediction mode information of the current block may be obtained based on the reset prediction mode type. This may simplify the parsing condition of the prediction mode information, and for a current block to which inter prediction mode and / or IBC cannot be applied, cu_skip_flag may not be decoded and may be inferred to be a first value (e.g., 0).
[0289] 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.
[0290] 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.
[0291] 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.
[0292] 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.
[0293] 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.
[0294] FIG. 22 is a diagram illustrating an example of a content streaming system to which an embodiment of the present disclosure can be applied.
[0295] As shown in FIG. 22, 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.
[0296] 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.
[0297] 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.
[0298] 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.
[0299] 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.
[0300] 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.
[0301] 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.
[0302] 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]
[0303] The embodiments of the present disclosure can be used for image encoding / decoding.
Claims
1. An image decoding method performed by an image decoding device, the image decoding method comprising: obtaining a current block by partitioning the block based on a partition structure determined based on a predetermined prediction mode type; determining a prediction mode type of the current block; obtaining prediction mode information of the current block based on the determined prediction mode type; generating a prediction block of the current block based on the prediction mode information; The step of determining a prediction mode type of the current block is performed based on at least one of a slice type or a size of the current block, The method for decoding an image, wherein the current block is obtained by dividing the block into four blocks having the same size.
2. The image decoding method according to claim 1 , wherein, based on the determined prediction mode type being an intra type (MODE_TYPE_INTRA), the prediction mode information does not include information regarding a skip (SKIP) mode.
3. The image decoding method of claim 2 , wherein the information about the skip mode is inferred to be a first value indicating that the skip mode is not applied to the current block.
4. The image decoding method according to claim 1 , wherein the predetermined prediction mode type is determined based on prediction mode characteristic information of the blocks including the current block.
5. An image coding method performed by an image coding device, the image coding method comprising: obtaining a current block by partitioning the block based on a partition structure determined based on a predetermined prediction mode type; determining a prediction mode type of the current block; encoding prediction mode information of the current block based on the determined prediction mode type; The step of determining a prediction mode type of the current block is performed based on at least one of a slice type or a size of the current block, A method for encoding an image, wherein the current block is obtained by dividing the block into four blocks having the same size.
6. The image encoding method according to claim 5 , wherein the prediction mode information does not include information regarding a skip (SKIP) mode, based on the determined prediction mode type being an intra type (MODE_TYPE_INTRA).
7. 1. A method for transmitting a bitstream generated by an image coding method, the image coding method comprising: obtaining a current block by partitioning the block based on a partition structure determined based on a predetermined prediction mode type; determining a prediction mode type of the current block; encoding prediction mode information of the current block based on the determined prediction mode type; The step of determining a prediction mode type of the current block is performed based on at least one of a slice type or a size of the current block, The bitstream transmission method, wherein the current block is obtained by dividing the current block into four blocks having the same size.
