Image encoding / decoding method and device for determining prediction mode of chroma block by referring to luma sample position, and method for transmitting bitstream
By citing fewer fluorescent sample positions when determining the prediction mode of color blocks in image encoding and decoding, the problem of low high-resolution image encoding and decoding efficiency in the prior art is solved, and more efficient image transmission and storage are achieved.
Patent Information
- Application Number
- JP2023159990
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-08-14
- Filing Date
- 2023-09-25
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2040-08-14
AI Technical Summary
The prior art is less efficient in encoding and decoding of high resolution, high quality images, resulting in increased transmission and storage costs.
By determining the prediction mode of color blocks, fewer fluorescence samples are referenced, thereby improving the efficiency of encoding and decoding. The specific method includes identifying the current color block, judging whether the matrix reference intraprediction mode is applied to the first fluorescent sample position, determining whether the predetermined mode is applied to the second fluorescent sample position, and if the aforementioned mode is not applied, the intraprediction mode candidate of the third fluorescent sample position determines the intraprediction mode of the color block based on the intraprediction mode candidate.
The efficiency of image encoding and decoding is improved, transmission and storage costs are reduced, and the transmission and storage quality of images is improved.
Smart Images

Figure 0007653485000003 
Figure 0007653485000004 
Figure 0007653485000005
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an image encoding / decoding method and apparatus, and more particularly to an image encoding / decoding method and apparatus for determining an intra-prediction mode for a chroma block, and a method for transmitting a bitstream generated by the image encoding method / apparatus of the present disclosure. [Background technology]
[0002] Recently, the demand for high-resolution, high-quality images, for example, HD (High Definition) images and UHD (Ultra High Definition) images, is increasing in various fields. As the resolution and quality of image data increases, the amount of information or bits transmitted increases relatively compared to conventional image data. The increase in the amount of information or bits transmitted leads to an increase in transmission costs and storage costs.
[0003] This requires a highly efficient image compression technique for effectively transmitting, storing, and reproducing high-resolution, high-quality image information. Summary of the Invention [Problem to be solved by the invention]
[0004] An object of the present disclosure is to provide an image encoding / decoding method and apparatus with improved encoding / decoding efficiency.
[0005] Another object of the present disclosure is to provide an image encoding / decoding method and apparatus that improves encoding / decoding efficiency by determining a prediction mode for a chroma block by referring to a smaller number of luma sample positions.
[0006] 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.
[0007] 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.
[0008] 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.
[0009] 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]
[0010] An image decoding method performed by an image decoding device according to an aspect of the present disclosure may include the steps of: dividing an image to identify a current chroma block; identifying whether a matrix-based intra prediction mode is applied to a first luma sample position corresponding to the current chroma block; if the matrix-based intra prediction mode is not applied, identifying whether a predetermined prediction mode is applied to a second luma sample position corresponding to the current chroma block; and if the predetermined prediction mode is not applied, determining an intra prediction mode candidate for the current chroma block based on an intra prediction mode applied to a third luma sample position corresponding to the current chroma block. The predetermined prediction mode may be an Intra Block Copy (IBC) mode or a palette mode.
[0011] The first luma sample position may be determined based on at least one of a width and a height of a luma block corresponding to the current chroma block. The first luma sample position may be determined based on a top left sample position of a luma block corresponding to the current chroma block, a width of the luma block, and a height of the luma block. The first luma sample position may be the same position as the third luma sample position.
[0012] The second luma sample position may be determined based on at least one of a width and a height of a luma block corresponding to the current chroma block. The second luma sample position may be determined based on a top left sample position of a luma block corresponding to the current chroma block, a width of the luma block, and a height of the luma block. The second luma sample position may be the same position as the third luma sample position.
[0013] Alternatively, the first luma sample position, the second luma sample position, and the third luma sample position may be the same position as each other.
[0014] The first luma sample position may be a center position of the luma block corresponding to the current chroma block. An x-component position of the first luma sample position may be determined by adding half the width of the luma block to an x-component position of a top-left sample of the luma block corresponding to the current chroma block, and a y-component position of the first luma sample position may be determined by adding half the height of the luma block to a y-component position of a top-left sample of the luma block corresponding to the current chroma block.
[0015] The first luma sample position, the second luma sample position, and the third luma sample position may be determined based on the top left sample position of a luma block corresponding to the current chroma block, the width of the luma block, and the height of the luma block, respectively.
[0016] In addition, an image decoding device according to one aspect of the present disclosure includes a memory and at least one processor, wherein the at least one processor divides an image to identify a current chroma block, identifies whether a matrix-based intra prediction mode is applied to a first luma sample position corresponding to the current chroma block, and if the matrix-based intra prediction mode is not applied, identifies whether a predetermined prediction mode is applied to a second luma sample position corresponding to the current chroma block, and if the predetermined prediction mode is not applied, determines a candidate intra prediction mode for the current chroma block based on the intra prediction mode applied to a third luma sample position corresponding to the current chroma block.
[0017] In addition, an image encoding method performed by an image encoding device according to one aspect of the present disclosure may include a step of dividing an image to identify a current chroma block, a step of identifying whether a matrix-based intra prediction mode is applied to a first luma sample position corresponding to the current chroma block, and a step of identifying whether a predetermined prediction mode is applied to a second luma sample position corresponding to the current chroma block if the matrix-based intra prediction mode is not applied, and a step of determining a candidate intra prediction mode for the current chroma block based on the intra prediction mode applied to a third luma sample position corresponding to the current chroma block if the predetermined prediction mode is not applied.
[0018] Furthermore, a transmission method according to an aspect of the present disclosure can transmit a bitstream generated by the image encoding device or image encoding method of the present disclosure.
[0019] Furthermore, a computer-readable recording medium according to an aspect of the present disclosure can store a bitstream generated by the image encoding method or image encoding device of the present disclosure.
[0020] 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
[0021] According to the present disclosure, an image encoding / decoding method and apparatus with improved encoding / decoding efficiency can be provided.
[0022] In addition, according to the present disclosure, an image encoding / decoding method and apparatus can be provided that improves encoding / decoding efficiency by determining a prediction mode for a chroma block by referring to a smaller number of luma sample positions.
[0023] 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.
[0024] 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.
[0025] 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.
[0026] 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]
[0027] [Figure 1] FIG. 1 is a schematic diagram illustrating a video coding system to which an embodiment of the present disclosure can be applied. [Diagram 2] 1 is a diagram illustrating an image encoding device to which an embodiment of the present disclosure can be applied; [Diagram 3] 1 is a diagram illustrating an image decoding device to which an embodiment of the present disclosure can be applied; [Figure 4]FIG. 2 is a diagram showing an image division structure according to an embodiment. [Diagram 5] FIG. 11 is a diagram showing an example of a block division type according to a multi-type tree structure. [Figure 6] FIG. 1 illustrates an example signaling mechanism for block partition information in a quadtree with nested multi-type tree structure according to the present disclosure. [Figure 7] FIG. 1 illustrates an embodiment in which a CTU is divided into multiple CUs. [Figure 8] FIG. 13 is a diagram showing an example of a redundant division pattern. [Figure 9] FIG. 13 is a diagram showing the positional relationship between luma samples and chroma samples determined by a chroma format according to one embodiment. [Figure 10] FIG. 13 is a diagram showing the positional relationship between luma samples and chroma samples determined by a chroma format according to one embodiment. [Figure 11] FIG. 13 is a diagram showing the positional relationship between luma samples and chroma samples determined by a chroma format according to one embodiment. [Figure 12] A diagram showing syntax for chroma format signaling according to one embodiment. [Figure 13] FIG. 2 is a diagram showing a chroma format classification table according to one embodiment. [Figure 14] FIG. 13 is a diagram illustrating a directional intra-prediction mode according to an embodiment. [Figure 15] FIG. 13 is a diagram illustrating a directional intra-prediction mode according to an embodiment. [Figure 16] FIG. 1 is a reference diagram for explaining a MIP mode according to one embodiment. [Figure 17] FIG. 1 is a reference diagram for explaining a MIP mode according to one embodiment. [Figure 18] FIG. 2 illustrates an example of horizontal and vertical scanning according to one embodiment. [Figure 19]FIG. 13 is a diagram illustrating a method for determining an intra-prediction mode for a chroma block according to an embodiment. [Figure 20] FIG. 13 illustrates a look-up table for determining a chrominance intra-prediction mode. [Figure 21] FIG. 13 illustrates a look-up table for determining a chrominance intra-prediction mode. [Figure 22] 11 is a flowchart illustrating a method for determining luma intra-prediction mode information according to an embodiment. [Figure 23] 11 is a flowchart illustrating a method for determining luma intra-prediction mode information according to an embodiment. [Figure 24] 11 is a flowchart illustrating a method for determining luma intra-prediction mode information according to an embodiment. [Diagram 25] 11 is a flowchart illustrating a method for determining luma intra-prediction mode information according to an embodiment. [Figure 26] 4 is a flowchart illustrating a method in which an encoding device and a decoding device according to an embodiment perform encoding and decoding according to an embodiment. [Figure 27] FIG. 1 illustrates a content streaming system to which an embodiment of the present disclosure can be applied. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0028] 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.
[0029] 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.
[0030] 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 mean that the other component is excluded, but that the other component can be further included, unless otherwise specified.
[0031] In this disclosure, terms such as "first" and "second" are used only for the purpose of distinguishing one component from another component, and do not limit the order or importance of the components unless otherwise specified. Therefore, within the scope of this disclosure, a first component in one embodiment may be called a second component in another embodiment, and similarly, a second component in one embodiment may be called a first component in another embodiment.
[0032] 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.
[0033] 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.
[0034] 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.
[0035] 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).
[0036] 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.
[0037] 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.
[0038] 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."
[0039] In addition, in this disclosure, a "current block" may mean a "luma block of a current block" unless a chroma block is explicitly stated. A "chroma block of a current block" may be expressed by explicitly including an explicit statement of a chroma block, such as a "chroma block" or a "current chroma block."
[0040] 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."
[0041] 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." Alternatively, in this disclosure, "or" can mean "additionally or alternatively."
[0042] Video Coding System Overview
[0043] FIG. 1 is a diagram illustrating a video coding system according to this disclosure.
[0044] 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.
[0045] 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.
[0046] 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.
[0047] 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.
[0048] 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 via 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.
[0049] 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.
[0050] The rendering unit 23 can render the decoded video / images. The rendered video / images can be displayed via a display unit.
[0051] Overview of the image encoding device
[0052] FIG. 2 is a diagram illustrating an image encoding device to which an embodiment of the present disclosure can be applied.
[0053] As shown in Fig. 2, the image 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.
[0054] All or at least some of the components constituting the image encoding device 100 may be realized by a single hardware component (e.g., an encoder or a processor) depending on the embodiment. Also, the memory 170 may include a decoded picture buffer (DPB) and may be realized by a digital storage medium.
[0055] The image division unit 110 may divide an input image (or picture, frame) input to the image encoding device 100 into one or more processing units. As an example, the processing 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.
[0056] The prediction unit (inter prediction unit 180 or intra prediction unit 185) may perform prediction on a block to be processed (current block) and generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied in units of a current block or a CU. The prediction unit may generate various information related to prediction of the current block and transmit it to the entropy encoding unit 190. The information related to prediction may be encoded by the entropy encoding unit 190 and output in a bitstream format.
[0057] The intra prediction unit 185 may predict the current block by referring to samples in the current picture. The referenced samples may be located in the neighborhood of the current block or may be located away from the current block according to an intra prediction mode and / or an intra prediction technique. The intra prediction mode may include a plurality of non-directional modes and a plurality of directional modes. The non-directional mode may include, for example, a DC mode and a Planar mode. The directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the fineness of the prediction direction. However, this is merely an example, and more or less directional prediction modes may be used depending on the setting. The intra prediction unit 185 may also determine a prediction mode to be applied to the current block using prediction modes applied to neighboring blocks.
[0058] The inter prediction unit 180 may derive a predicted block for a current block based on a reference block (reference sample array) identified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of a block, a sub-block, or a sample based on the correlation of motion information between a neighboring block and a current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different from each other. The temporal neighboring block may be called a collocated reference block, a collocated CU (colCU), etc. The reference picture including the temporal neighboring block may be called a collocated picture (colPic). For example, the inter prediction unit 180 may generate information indicating which candidate is used to derive a motion vector and / or a reference picture index of the current block by forming a motion information candidate list based on neighboring blocks. Inter prediction may be performed based on various prediction modes, and for example, in the case of a skip mode and a 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 the skip mode, unlike the merge mode, a residual signal may not be transmitted.In the case of a motion vector prediction (MVP) mode, the motion vector of the current block can be signaled by using the motion vector of a neighboring block as a motion vector predictor and encoding a motion vector difference and an indicator for the motion vector predictor. The motion vector difference can mean the difference between the motion vector of the current block and the motion vector predictor.
[0059] The prediction unit may generate a prediction signal based on various prediction methods and / or prediction techniques, which will be described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of the current block, and may simultaneously apply intra prediction and inter prediction. A prediction method that simultaneously applies intra prediction and inter prediction for prediction of the current block may be called combined inter and intra prediction (CIIP). The prediction unit may also perform intra block copy (IBC) for prediction of the current block. Intra block copy can be used for content image / video coding such as games, for example, as in screen content coding (SCC). IBC is a method of predicting a current block using an already restored reference block in a current picture that is located a predetermined distance away from the current block. When IBC is applied, the position of the reference block in the current picture may be coded as a vector (block vector) corresponding to the predetermined distance. IBC is basically performed in the current picture, but may be performed similarly to inter prediction in that a reference block is derived in the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this disclosure.
[0060] The prediction signal generated by the prediction unit may be used to generate a restored signal or a residual signal. The subtraction unit 115 may subtract the prediction signal (predicted block, prediction sample array) output from the prediction unit from the input image signal (original block, original sample array) to generate a residual signal (residual block, residual sample array). The generated residual signal may be transmitted to the conversion unit 120.
[0061] The transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal. For example, the transform technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a Karhunen-Loeve transform (KLT), a graph-based transform (GBT), or a conditionally non-linear transform (CNT). Here, the GBT refers to a transform obtained from a graph when the relationship information between pixels is expressed as a graph. The CNT refers to a transform obtained based on a predicted signal generated using all previously reconstructed pixels. The transform process may be applied to pixel blocks having the same square size, or may be applied to non-square, variable-sized blocks.
[0062] The quantization unit 130 may quantize the transform coefficients and transmit the quantized transform coefficients to the entropy coding unit 190. The entropy coding unit 190 may code the quantized signal (information on the quantized transform coefficients) and output the coded signal in a bitstream format. The information on the quantized transform coefficients may be referred to as residual information. The quantization unit 130 may rearrange the quantized transform coefficients in a block format into a one-dimensional vector format based on a coefficient scan order, and may generate information on the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector format.
[0063] The entropy coding unit 190 may 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., 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 network abstraction layer (NAL) unit unit in a bitstream format. 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 further include general constraint information. The signaling information, transmitted information and / or syntax elements referred to in this disclosure may be encoded through the above-mentioned encoding procedures and included in the bitstream.
[0064] The bitstream may be transmitted via a network or may be stored in a digital storage medium. Here, the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as a USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitting unit (not shown) for transmitting the signal output from the entropy encoding unit 190 and / or a storing unit (not shown) for storing the signal may be provided as an internal / external element of the image encoding device 100, or the transmitting unit may be provided as a component of the entropy encoding unit 190.
[0065] The quantized transform coefficients output from the quantization unit 130 can be used to generate a residual signal. For example, the quantized transform coefficients are subjected to inverse quantization and inverse transformation via the inverse quantization unit 140 and the inverse transformation unit 150, so that a residual signal (residual block or residual sample) can be restored.
[0066] The adder 155 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to a prediction signal output from the inter prediction unit 180 or the intra prediction unit 185. When there is no residual for the current block to be processed, such as when a skip mode is applied, a predicted block may be used as a reconstructed block. The adder 155 may be referred to as a reconstruction unit or a reconstructed block generation unit. The generated reconstructed signal may be used for intra prediction of the next current block to be processed in the current picture, and may also be used for inter prediction of the next picture after filtering as described below.
[0067] The filtering unit 160 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 160 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may store the modified reconstructed picture in the memory 170, specifically, in the DPB of the memory 170. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like. The filtering unit 160 may generate various information related to filtering, as will be described later in the description of each filtering method, and transmit the information to the entropy coding unit 190. The information related to filtering may be coded by the entropy coding unit 190 and output in a bitstream format.
[0068] The modified reconstructed picture transmitted to the memory 170 may be used as a reference picture in the inter prediction unit 180. When inter prediction is applied through this, the image encoding device 100 may avoid a prediction mismatch between the image encoding device 100 and the image decoding device, and may also improve encoding efficiency.
[0069] The DPB in the memory 170 may store modified reconstructed pictures to be used as reference pictures in the inter prediction unit 180. The memory 170 may store motion information of blocks from which motion information in the current picture is derived (or coded) and / or motion information of already reconstructed intra-picture blocks. The stored motion information may be transmitted to the inter prediction unit 180 to be used as motion information of spatial surrounding blocks or motion information of temporal surrounding blocks. The memory 170 may store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra prediction unit 185.
[0070] Overview of the image decoding device
[0071] FIG. 3 is a diagram illustrating an image decoding device to which an embodiment of the present disclosure can be applied.
[0072] 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.
[0073] 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.
[0074] 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. 1. 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).
[0075] 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.
[0076] 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.
[0077] 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.
[0078] The inverse transform unit 230 can inversely transform the transform coefficients to obtain a residual signal (residual block, residual sample array).
[0079] 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).
[0080] 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.
[0081] 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.
[0082] 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.
[0083] 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.
[0084] 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.
[0085] 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.
[0086] 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.
[0087] Image Segmentation Overview
[0088] 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 in the image partition unit 110 of the encoding device described above. Partition-related information may be coded by the entropy coding unit 190 and transmitted to the decoding device in the form of a bitstream. The entropy decoding unit 210 of the decoding device may derive a block partition structure of a current picture based on the partition-related information obtained from the bitstream, and perform a series of procedures for image decoding (e.g., prediction, residual processing, block / picture reconstruction, in-loop filtering, etc.) based on the block partition structure.
[0089] A picture may be partitioned into a sequence of coding tree units (CTUs). FIG. 4 shows an example of a picture being partitioned into CTUs. A CTU may correspond to a coding tree block (CTB). Alternatively, a CTU may include a coding tree block of luma samples and two coding tree blocks of corresponding chroma samples. For example, for a picture containing three sample arrays, a CTU may include an N×N block of luma samples and two corresponding blocks of chroma samples.
[0090] Overview of CTU division
[0091] As mentioned above, a coding unit can be obtained by recursively splitting 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, a CTU can be first split into a quad-tree structure. Then, the leaf nodes of the quad-tree structure can be further split according to a multi-type tree structure.
[0092] 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.
[0093] 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.
[0094] The two divisions according to the binary tree structure may include vertical binary splitting (SPLIT_BT_VER) and horizontal binary splitting (SPLIT_BT_HOR). Vertical binary splitting (SPLIT_BT_VER) refers to a division in which the current CU is divided into two equal parts vertically. As shown in FIG. 4, two CUs having the same height as the height of the current CU and half the width of the current CU may be generated by the vertical binary splitting. Horizontal binary splitting (SPLIT_BT_HOR) refers to a division in which the current CU is divided into two equal parts horizontally. As shown in FIG. 5, two CUs having the same width as the width of the current CU and half the height of the current CU may be generated by the horizontal binary splitting.
[0095] The two divisions according to the ternary tree structure may include vertical ternary splitting (SPLIT_TT_VER) and horizontal ternary splitting (SPLIT_TT_HOR). The vertical ternary splitting (SPLIT_TT_VER) divides the current CU vertically at a ratio of 1:2:1. As shown in FIG. 5, the vertical ternary splitting may generate two CUs having the same height as the current CU and a width 1 / 4 of the current CU, and a CU having the same height as the current CU and a width half the current CU. The horizontal ternary splitting (SPLIT_TT_HOR) divides the current CU horizontally at a ratio of 1:2:1. As shown in FIG. 4, the horizontal ternary splitting may generate two CUs having a height 1 / 4 of the current CU and a width equal to the current CU, and a CU having a height half the current CU and a width equal to the current CU.
[0096] FIG. 6 is a diagram illustrating a signaling mechanism of block partition information in a quadtree with nested multi-type tree structure according to the present disclosure.
[0097] 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.
[0098] 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 can be abbreviated as a multi-tree split type or a split type.
[0099] [Table 1]
[0100] FIG. 7 illustrates an example in which a CTU is divided into multiple CUs by applying a multi-type tree after applying a quadtree. In FIG. 7, a bold block edge 710 indicates a quadtree division, and the remaining edges 720 indicate a multi-type tree division. A CU may correspond to a coding block (CB). In one embodiment, a CU may include a coding block of a luma sample and two coding blocks of chroma samples corresponding to the luma sample. A chroma component (sample) CB or TB size may be derived based on a luma component (sample) CB or TB size according to a component ratio according to a color format (chroma format, e.g., 4:4:4, 4:2:2, 4:2:0, etc.) of a 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 components CB / TB can be set to half the width of the luma components CB / TB, and the height of the chroma components CB / TB can be set to the height of the luma components CB / TB. If the color format is 4:2:0, the width of the chroma components CB / TB can be set to half the width of the luma components CB / TB, and the height of the chroma components CB / TB can be set to half the height of the luma components CB / TB.
[0101] 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.
[0102] 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.
[0103] The TU size may be derived based on a maximum allowable TB size (maxTbSize) that is a preset value. For example, if the CU size is larger than the maxTbSize, multiple TUs (TBs) having the maxTbSize may be derived from the CU, and transform / inverse transform may be performed in units of the TUs (TBs). For example, the maximum allowable luma TB size may be 64×64, and the maximum allowable chroma TB size may be 32×32. If the width or height of a CB divided by the tree structure is larger than the maximum transform width or height, the CB may be automatically (or implicitly) divided until the horizontal and vertical TB size constraints are satisfied.
[0104] 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.
[0105] 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.
[0106] In one embodiment using 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. Quadtree partitioning may be applied to the CTU to generate leaf nodes of the quadtree. The leaf nodes of the quadtree may be referred to as leaf QT nodes. The leaf nodes of the quadtree 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 partitioned into a binary tree / ternary tree. This is because even if the partition is performed in this case, it will exceed MaxBtsize and MaxTtszie (e.g., 64×64). In other cases, the leaf QT node may be further partitioned into a multitype tree. Thus, the leaf QT node is a root node for the multitype tree, and the leaf QT node may have a multitype tree depth (mttDepth) value of 0. If the multitype tree depth reaches MaxMttdepth (e.g., 4), no further additional partitioning may be considered. If the width of the multitype tree node is equal to MinBtSize and equal to or less than 2×MinTtSize, no further additional horizontal partitioning may be considered. If the height of the multitype tree node is equal to MinBtSize and equal to or less than 2×MinTtSize, no further additional vertical partitioning may be considered. In this case, if partitioning is not considered, the encoding device may omit signaling of partition information. In such a case, the decoding device may induce the partition information to a predetermined value.
[0107] 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).
[0108] 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.
[0109] 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.
[0110] 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.
[0111] For example, FIG. 8 exemplarily illustrates redundant partitioning patterns that may occur in binary tree partitioning and ternary tree partitioning. As shown in FIG. 8, the continuous binary partitioning 810 and 820 in one direction at the two-step level has the same coding block structure as the binary partitioning for the center partition after ternary partitioning. In such a case, binary tree partitioning for the center blocks 830 and 840 of the ternary tree partitioning can be prohibited. Such prohibition can be applied to the CUs of all pictures. If such a particular partitioning is prohibited, the signaling of the corresponding syntax element can be modified to reflect such a prohibited case, thereby reducing the number of bits signaled for the partitioning. For example, as in the example shown in FIG. 8, if binary tree partitioning for the center block of the CU is prohibited, the mtt_split_cu_binary_flag syntax element indicating whether the partitioning is binary partitioning or ternary partitioning is not signaled, and its value can be induced to 0 by the decoding device.
[0112] Chroma Format Overview
[0113] The following describes chroma format. An image can be encoded with encoding data including a luma component (e.g., Y) array and two chroma component (e.g., Cb, Cr) arrays. For example, one pixel of the encoded image can include a luma sample and a chroma sample. A chroma format can be used to indicate the configuration format of the luma sample and the chroma sample, and the chroma format is sometimes called a color format.
[0114] In one embodiment, the image can be encoded in various chroma formats, such as monochrome, 4:2:0, 4:2:2, 4:4:4, etc. In monochrome sampling, there can be one sample array, which can be a luma array. In 4:2:0 sampling, there can be one luma sample array and two chroma sample arrays, each of which can be half the height and half the width of the luma array. In 4:2:2 sampling, there can be one luma sample array and two chroma sample arrays, each of which can be the same height and half the width of the luma array. In 4:4:4 sampling, there can be one luma sample array and two chroma sample arrays, each of which can be the same height and width as the luma array.
[0115] FIG. 9 is a diagram illustrating relative positions of luma samples and chroma samples according to an embodiment of 4:2:0 sampling. FIG. 10 is a diagram illustrating relative positions of luma samples and chroma samples according to an embodiment of 4:2:2 sampling. FIG. 11 is a diagram illustrating relative positions of luma samples and chroma samples according to an embodiment of 4:4:4 sampling. As shown in FIG. 9, in the case of 4:2:0 sampling, the positions of chroma samples may be located at the lower end of the corresponding luma samples. As shown in FIG. 10, in the case of 4:2:2 sampling, the chroma samples may be located to overlap the positions of the corresponding luma samples. As shown in FIG. 11, in the case of 4:4:4 sampling, both the luma samples and the chroma samples may be located to overlap each other.
[0116] The chroma format used in the encoding device and the decoding device may be predetermined. Alternatively, the chroma format may be signaled from the encoding device to the decoding device for adaptive use in the encoding device and the decoding device. In one embodiment, the chroma format may be signaled based on at least one of chroma_format_idc and separate_colour_plane_flag. At least one of chroma_format_idc and separate_colour_plane_flag may be signaled via a higher level syntax such as DPS, VPS, SPS or PPS. For example, chroma_format_idc and separate_colour_plane_flag may be included in the SPS syntax as shown in FIG. 12.
[0117] Meanwhile, FIG. 13 shows an example of chroma format classification using signaling of chroma_format_idc and separate_colour_plane_flag. chroma_format_idc may be information indicating a chroma format applied to an encoded image. separate_colour_plane_flag may indicate whether a color array is separated and processed in a particular chroma format. For example, a first value (e.g., 0) of chroma_format_idc may indicate monochrome sampling. A second value (e.g., 1) of chroma_format_idc may indicate 4:2:0 sampling. A third value (e.g., 2) of chroma_format_idc may indicate 4:2:2 sampling. A fourth value (e.g., 3) of chroma_format_idc may indicate 4:4:4 sampling.
[0118] For 4:4:4 sampling, the following may apply depending on the value of separate_colour_plane_flag: If the value of separate_colour_plane_flag is a first value (e.g., 0), each of the two chroma arrays may have the same height and width as the luma array. In this case, the value of ChromaArrayType, which indicates the type of chroma sample array, may be set to the same as chroma_format_idc. If the value of separate_colour_plane_flag is a second value (e.g., 1), the luma, Cb, and Cr sample arrays may be processed separately, thereby being processed similarly to a monochrome sampled picture. In this case, ChromaArrayType may be set to 0.
[0119] Overview of Intra Prediction Modes
[0120] The intra prediction modes will be described in more detail below. FIG. 14 is a diagram illustrating intra prediction directions according to an embodiment. In order to capture any edge direction presented in a natural video, as shown in FIG. 14, the intra prediction modes may include two non-directional intra prediction modes and 65 directional intra prediction modes. The non-directional intra prediction modes may include a planar intra prediction mode and a DC intra prediction mode, and the directional intra prediction modes may include intra prediction modes numbered 2 to 66.
[0121] Meanwhile, the intra prediction modes may further include a cross-component linear model (CCLM) mode for chroma samples in addition to the above 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. For example, the intra prediction modes may be indexed according to the intra prediction mode value as shown in the following table.
[0122] [Table 2]
[0123] FIG. 15 is a diagram illustrating intra prediction directions according to another embodiment. Here, the dashed line direction indicates a wide-angle mode that is applied only to blocks that are not square. As shown in FIG. 15, in order to capture any edge direction presented in a natural video, the intra prediction modes according to an embodiment 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 prediction mode and a DC prediction 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 arrows in FIG. 15. The planar prediction mode may be represented as INTRA_PLANAR, and the DC prediction 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. Meanwhile, the intra prediction type (or additional intra prediction mode, etc.) may include at least one of the above-mentioned LIP, PDPC, MRL, ISP, and MIP. The intra prediction type may be indicated based on intra prediction type information, which may be realized in various forms. As an example, the intra prediction type information may include intra prediction type index information indicating one of the intra prediction types. As another example, the intra prediction type information may include at least one of reference sample line information (e.g., intra_luma_ref_idx) indicating whether the MRL is applied to the current block and, if so, which reference sample line is used, ISP flag information (e.g., intra_subpartitions_mode_flag) indicating whether the ISP is applied to the current block, ISP type information (e.g., intra_subpartitions_split_flag) indicating a subpartition type when the ISP is applied, flag information indicating whether PDPC is applied or not, flag information indicating whether LIP is applied or not, and MIP flag information indicating whether MIP is applied or not.
[0124] The intra prediction mode information and / or the intra prediction type information may be encoded / decoded through a coding method described in the present disclosure. For example, the intra prediction mode information and / or the intra prediction type information may be encoded / decoded through entropy coding (e.g., CABAC, CAVLC) based on a truncated (rice) binary code.
[0125] When intra prediction is performed on the current block, prediction can be performed on the luma component block (luma block) and prediction can be performed on the chroma component block (chroma block) of the current block, in which case the intra prediction mode for the chroma block can be set separately from the intra prediction mode for the luma block.
[0126] For example, an intra prediction mode for a chroma block may be indicated based on intra chroma prediction mode information, and the intra chroma prediction mode information may be signaled in the form of an intra_chroma_pred_mode syntax element. As an example, the intra chroma prediction mode information may indicate any one of a planar mode, a DC mode, a vertical mode, a horizontal mode, a derived mode (DM), and a CCLM mode. Here, the planar mode may indicate the 0th intra prediction mode, the DC mode may indicate the 1st intra prediction mode, the vertical mode may indicate the 26th intra prediction mode, and the horizontal mode may indicate the 10th intra prediction mode. DM may also be referred to as a direct mode. CCLM may also be referred to as an LM.
[0127] Meanwhile, DM and CCLM are dependent intra prediction modes that predict a chroma block using information of a luma block. The DM may indicate a mode in which the same intra prediction mode as the intra prediction mode for the luma component is applied as the intra prediction mode for the chroma component. In addition, the CCLM may indicate an intra prediction mode in which a restored sample of a luma block is subsampled in the process of generating a prediction block for a chroma block, and a sample derived by applying CCLM parameters α and β to the subsampled sample is used as a prediction sample for the chroma block.
[0128] MIP Mode Overview
[0129] The matrix-based intra prediction mode (MIP) may also be called affine linear weighted intra prediction mode (ALWIP), linear weighted intra prediction mode (LWIP), or matrix weighted intra prediction mode (MWIP). An intra prediction mode that is not a matrix-based prediction may be defined as a non-matrix-based prediction mode. For example, the non-matrix-based prediction mode may indicate non-directional intra prediction and directional intra prediction. Hereinafter, the terms intra prediction mode and general intra prediction mode are used interchangeably to indicate the non-matrix-based prediction mode. Hereinafter, the matrix-based prediction will be referred to as MIP mode.
[0130] When the MIP mode is applied to a current block, a predicted sample for the current block can be derived by i) using surrounding reference samples that have been subjected to an averaging step, ii) performing a matrix-vector-multiplication step, and iii) further performing horizontal / vertical interpolation steps as necessary.
[0131] The averaging step may be performed by averaging the values of the surrounding samples. The averaging procedure may be performed by averaging each boundary to generate a total of four samples, two on the top and two on the left, if the width and width of the current block are four in pixels, as shown in Figure 16(a), or by averaging each boundary to generate a total of eight samples, four on the top and four on the left, if the width and width of the current block are not four in pixels, as shown in Figure 16(b).
[0132] The matrix vector multiplication step can be performed by multiplying the averaged samples by the matrix vector and then adding the offset vector, thereby generating a prediction signal for the subsampled pixel set of the original block. The sizes of the matrix and the offset vector can be determined according to the width and width of the current block.
[0133] The horizontal / vertical interpolation step is a step of generating a prediction signal of the original block size from the subsampled prediction signal. As shown in FIG. 17, a prediction signal of the original block size can be generated by performing vertical and horizontal interpolation using the subsampled prediction signal and surrounding pixel values. FIG. 17 shows an example in which MIP prediction is performed on an 8×8 block. In the case of an 8×8 block, a total of eight averaged samples can be generated as shown in FIG. 16(b). The eight averaged samples are multiplied by a matrix vector and an offset vector is added to generate 16 sample values at even coordinate positions as shown in FIG. 17(a). Then, as shown in FIG. 17(b), vertical interpolation can be performed using the average value of the upper samples of the current block. Then, as shown in FIG. 17(c), horizontal interpolation can be performed using the left sample of the current block.
[0134] The intra prediction mode used for the MIP mode may be configured to be different from the intra prediction mode used in the above-mentioned LIP, PDPC, MRL, ISP intra prediction, and normal intra prediction. The intra prediction mode for the MIP mode may be called MIP intra prediction mode, MIP prediction mode, or MIP mode. For example, a matrix and an offset used in the matrix-vector product may be set to be different depending on the intra prediction mode for the MIP. Here, the matrix may be called a (MIP) weight matrix, and the offset may be called a (MIP) offset vector or a (MIP) bias vector.
[0135] The intra prediction type information may include a MIP flag (e.g., intra_mip_flag) indicating whether the MIP mode is applied to the current block. The intra_mip_flag[x0][y0] may indicate whether the current block is predicted in the MIP mode. For example, a first value (e.g., 0) of the intra_mip_flag[x0][y0] may indicate that the current block is not predicted in the MIP mode. A second value (e.g., 1) of the intra_mip_flag[x0][y0] may indicate that the current block is predicted in the MIP mode.
[0136] When intra_mip_flag[x0][y0] has a second value (e.g., 1), information regarding the MIP mode can be further obtained from the bitstream. For example, syntax elements intra_mip_mpm_flag[x0][y0], intra_mip_mpm_idx[x0][y0], and intra_mip_mpm_remainder[x0][y0], which are information indicating the MIP mode of the current block, can be further obtained from the bitstream. When an MIP prediction mode is applied to the current block, an MPM list for MIP can be configured, and the intra_mip_mpm_flag can indicate whether the MIP mode for the current block is present in the MPM list for MIP (or among the MPM candidates). The intra_mip_mpm_idx may indicate an index of a candidate in the MPM list to be used as the MIP prediction mode of the current block when the MIP prediction mode for the current block exists in the MPM list for the MIP (i.e., the value of intra_mip_mpm_flag is 1). The intra_mip_mpm_remainder may indicate the MIP prediction mode of the current block when the MIP prediction mode for the current block does not exist in the MPM list for the MIP (i.e., the value of intra_mip_mpm_flag is 0), and may indicate any one of the entire MIP prediction modes or any one of the remaining modes excluding the candidate modes in the MPM list for MIP among the entire MIP prediction modes as the MIP prediction mode of the current block.
[0137] On the other hand, if intra_mip_flag[x0][y0] has a first value (e.g., 0), information on MIP is not obtained from the bitstream, and intra prediction information other than MIP may be obtained from the bitstream. In one embodiment, intra_luma_mpm_flag[x0][y0] indicating whether an MPM list for general intra prediction is generated may be obtained from the bitstream.
[0138] If an intra prediction mode is applied to the current block, an MPM list for it can be constructed, and intra_luma_mpm_flag can indicate whether the intra prediction mode for the current block is present in the MPM list (or present in the MPM candidates). For example, a first value (e.g., 0) of intra_luma_mpm_flag can indicate that the intra prediction mode for the current block is not present in the MPM list. A second value (e.g., 1) of intra_luma_mpm_flag can indicate that the intra prediction mode for the current block is present in the MPM list. If the intra_luma_mpm_flag value is 1, the intra_luma_not_planar_flag can be obtained from the bitstream.
[0139] The intra_luma_not_planar_flag may indicate whether the intra prediction mode of the current block is planar mode. For example, a first value (e.g., 0) of the intra_luma_not_planar_flag may indicate that the intra prediction mode of the current block is planar mode. A second value (e.g., 1) of the intra_luma_not_planar_flag may indicate that the intra prediction mode of the current block is not planar mode.
[0140] The intra_luma_mpm_idx may be parsed and coded if the intra_luma_not_planar_flag is 'true' (i.e., a value of 1). In one embodiment, the planar mode may always be included as a candidate in the MPM list, but the planar mode may be excluded from the MPM list by first signaling the intra_luma_not_planar_flag as described above. In this case, a unified MPM list may be configured with the various intra prediction types (general intra prediction, MRL, ISP, LIP, etc.) described above. In this case, the number of candidates in the MPM list may be reduced to five. The intra_luma_mpm_idx may indicate a candidate to be used as the intra prediction mode of the current block among the candidates included in the MPM list from which the planar mode is excluded.
[0141] On the other hand, when the value of intra_luma_mpm_flag is 0, the intra_luma_mpm_remainder may be parsed / coded. The intra_luma_mpm_remainder may indicate any one of all intra prediction modes as the intra prediction mode of the current block, or any one of the remaining modes excluding the candidate modes in the MPM list as the intra prediction mode of the current block.
[0142] Palette Mode Overview
[0143] The palette mode (PLT mode) will now be described. An encoding device according to an embodiment may encode an image using the palette mode, and a decoding device may decode an image using the palette mode in a corresponding manner. The palette mode may be called a palette coding mode, an intra palette mode, an intra palette coding mode, etc. The palette mode may be regarded as one type of intra coding mode, and may be regarded as one of the intra prediction methods. However, similar to the above-mentioned skip mode, a separate residual value for the corresponding block may not be signaled.
[0144] In one embodiment, the palette mode can be used to improve coding efficiency when coding screen content, which is a computer-generated image that contains a significant amount of text and graphics. Typically, local regions of an image generated by screen content are separated by sharp edges and are represented by a small number of colors. To take advantage of this characteristic, the palette mode can represent samples for a block with an index that points to a color entry in a palette table.
[0145] To apply the palette mode, information for a palette table may be signaled. In one embodiment, the palette table may include index values corresponding to each color. To signal the index values, palette index prediction information may be signaled. The palette index prediction information may include index values for at least a portion of a palette index map. The palette index map may map pixels of the video data to color indices in the palette table.
[0146] The palette index prediction information may include run value information. For at least a portion of the palette index map, the run value information may be information relating a run value to an index value. A run value may be associated with an escape color index. The palette index map may be generated from the palette index prediction information. For example, at least a portion of the palette index map may be generated by determining whether to adjust an index value of the palette index prediction information based on a last index value.
[0147] A current block in a current picture may be coded or reconstructed according to a palette index map. When a palette mode is applied, pixel values in a current coding unit may be represented by a small set of representative color values. Such a set may be named a palette. For pixels having values close to the palette colors, a palette index may be signaled. For pixels having values that do not belong to the palette (outliers), the pixel may be represented by an escape symbol and the quantized pixel value may be directly signaled. In this specification, a pixel or a pixel value may be described by a sample.
[0148] To decode a block coded in palette mode, a decoding device may decode palette colors and indices. The palette colors may be described as a palette table and coded using a palette table coding tool. An escape flag may be signaled for each coding unit. The escape flag may indicate whether an escape symbol is present in the current coding unit. If an escape symbol is present, the palette table may be incremented by one unit (e.g., index unit) and the last index may be designated as an escape mode. The palette indices of all pixels for one coding unit may constitute a palette index map and may be coded using a palette index map coding tool.
[0149] For example, to encode the palette table, a palette predictor can be maintained. The palette predictor can be initialized at each slice start. For example, the palette predictor can be reset to 0. For each entry of the palette predictor, a reuse flag can be signaled that indicates whether it is currently part of the palette or not. The reuse flag can be signaled using run-length coding of zero values.
[0150] Then, the numbers for the new palette entries can be signaled using a zeroth order exponential-Golomb code. Finally, the component values for the new palette entries can be signaled. After encoding the current coding unit, the palette predictor can be updated with the current palette, and entries from the previous palette predictor that are not reused in the current palette can be appended to the end of the new palette predictor (until the maximum size allowed is reached), which can be called palette stuffing.
[0151] For example, to code a palette index map, the indices can be coded using horizontal or vertical scanning. The scan order can be signaled via the bitstream using a parameter palette_transpose_flag indicating the scan direction. For example, if a horizontal scan is applied to scan the indices for samples in the current coding unit, palette_transpose_flag can have a first value (e.g., 0), and if a vertical scan is applied, palette_transpose_flag can have a second value (e.g., 1). Figure 18 shows an example of horizontal scanning and vertical scanning according to one embodiment.
[0152] Also, in one embodiment, the palette index can be coded using the modes "INDEX" and "COPY_ABOVE", which can be signaled using one flag, except that the mode of palette index is signaled for the top row if horizontal scanning is used, the mode of palette index is signaled for the leftmost column if vertical scanning is used, and the previous mode is "COPY_ABOVE".
[0153] In "INDEX" mode, the palette index can be signaled explicitly. For "INDEX" and "COPY_ABOVE" modes, a run value indicating the number of coded pixels can be signaled using the same mode.
[0154] The coding order for the index map can be set as follows: First, the number of index values for a coding unit can be signaled. This can be done after signaling the actual index values for the entire coding unit using truncated binary coding. Both the number of indexes and the index values can be coded in bypass mode. This allows for grouping of bypass bins associated with an index. Then, the palette mode (INDEX or COPY_ABOVE) and run value can be signaled in an interleaved manner.
[0155] Finally, component escape values corresponding to escape samples for the entire coding unit can be grouped together and coded in bypass mode. An additional syntax element last_run_type_flag can be signaled after signaling the index value. By using last_run_type_flag together with the number of indexes, it is possible to omit signaling the run value corresponding to the last run in the block.
[0156] In one embodiment, a dual tree type that performs independent coding unit partitioning for luma and chroma components can be used for I slices. Palette mode can be applied to luma and chroma components separately or together. If dual tree is not applied, palette mode can be applied to all of Y, Cb, and Cr components.
[0157] Overview of IBC (Intra Block Copy) mode
[0158] 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 current picture referencing (CPR).
[0159] For IBC, the image coding apparatus may derive an optimal block vector (or motion vector) for a current block (e.g., CU) by performing block matching BM. The derived block vector (or motion vector) may be signaled to the image decoding apparatus via a bitstream using a method similar to the motion information (motion vector) signaling in the above-mentioned inter prediction. The image decoding apparatus may derive a reference block for the current block in the current picture via the signaled block vector (motion vector), and may thereby derive a prediction signal (predicted block or prediction sample) for the current block. Herein, the block vector (or motion vector) may indicate a displacement from the current block to a reference block located in an already restored area in the current picture. Thus, the block vector (or motion vector) may also be referred to as a displacement vector. Hereinafter, the motion vector in IBC may correspond to the block vector or the displacement vector. The motion vector of the current block may include a motion vector for a luma component (luma motion vector) or a motion vector for a chroma component (chroma motion vector). For example, the luma motion vector for an IBC coded CU may also be in integer sample units (i.e., integer precision). The chroma motion vector may also be clipped in integer sample units. As described above, IBC may use at least one of the inter prediction techniques, for example, the luma motion vector may be encoded / decoded using the merge mode or MVP mode described above.
[0160] When a merge mode is applied to a luma IBC block, a merge candidate list for the luma IBC block may be constructed similarly to the merge candidate list in inter mode, except that for the luma IBC block, the temporal surrounding blocks may not be utilized as merge candidates.
[0161] When the MVP mode is applied to a luma IBC block, the MVP candidate list for the luma IBC block may be configured similarly to the MVP candidate list in the inter mode, except that for the luma IBC block, a temporal candidate block may not be used as an MVP candidate.
[0162] IBC derives reference blocks from already reconstructed areas in the current picture. In this case, in order to reduce memory consumption and the complexity of the image decoding device, only predefined areas among the already reconstructed areas in the current picture can be referenced. The predefined areas can include the current CTU in which the current block is included. By limiting the referenceable reconstructed areas to the predefined areas in this way, the IBC mode can be implemented in hardware using a local on-chip memory.
[0163] An image coding device implementing IBC can search the previously defined region to determine the reference block with the smallest RD cost, and derive a motion vector (block vector) based on the positions of the reference block and the current block.
[0164] Whether or not IBC is applied to the current block may be signaled as IBC execution information at the CU level. Information regarding a signaling method (IBC MVP mode or IBC skip / merge mode) of the motion vector of the current block may be signaled. The IBC execution information may be used to determine the prediction mode of the current block. Thus, the IBC execution information may be included in information regarding the prediction mode of the current block.
[0165] In the case of IBC skip / merge mode, a merge candidate index may be signaled and used to indicate a block vector used to predict the current luma block among block vectors included in the merge candidate list. In this case, the merge candidate list may include neighboring blocks coded using IBC. The merge candidate list may be configured to include spatial merge candidates and not include temporal merge candidates. The merge candidate list may further include History-based Motion Vector Predictor (HMVP) candidates and / or pairwise candidates.
[0166] In the case of the IBC MVP mode, the block vector difference value may be coded in the same manner as the motion vector difference value in the inter mode. As in the MVP mode of the inter mode, the block vector prediction method may be used by forming an MVP candidate list including two candidates as predictors. One of the two candidates may be derived from the left peripheral block, and the other may be derived from the upper peripheral block. In this case, only if the left or upper peripheral block is coded in IBC, a candidate may be derived from the peripheral block. If the left or upper peripheral block is not available, for example, if it is not coded in IBC, a default block vector may be included in the MVP candidate list as a predictor. Also, information (e.g., a flag) for indicating one of the two block vector predictors is signaled and used as candidate selection information, similar to the MVP mode of the inter mode. The MVP candidate list may include an HMVP candidate and / or a zero motion vector as a default block vector.
[0167] The HMVP candidates may also be called history-based MVP candidates, and MVP candidates, merging 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 merging 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 merging candidate list or MVP candidate list of the current block as HMVP candidates.
[0168] The pairwise candidate refers to a candidate derived by selecting two candidates according to a predetermined order from among the candidates already included in the merge candidate list of the current block, and averaging the two selected candidates.
[0169] Intra prediction for chroma blocks
[0170] When intra prediction is performed on a current block, prediction can be performed on a luma component block (luma block) and a chroma component block (chroma block) of the current block, in which case the intra prediction mode for the chroma block can be set separately from the intra prediction mode for the luma block.
[0171] The intra prediction mode for a chroma block may be determined based on the intra prediction mode of a luma block corresponding to the chroma block. Figure 19 is a diagram illustrating a method of determining an intra prediction mode for a chroma block according to an embodiment.
[0172] A method for determining an intra-prediction mode of a chroma block by an encoding / decoding device according to an embodiment will be described with reference to Fig. 19. The decoding device will be described below, and the description can be directly applied to the encoding device.
[0173] According to the following description, an intra prediction mode IntraPredModeC[xCb][yCb] for a chroma block can be derived, and the following parameters can be used in this process:
[0174] - Luma sample coordinates (xCb, yCb) indicating the relative position of the top-left sample of the current chroma block to the position of the top-left luma sample of the current picture
[0175] - cbWidth, which indicates the width of the current coding block in luma samples
[0176] - cbHeight, which indicates the height of the current coding block in luma samples
[0177] In addition, the following description can be used when a current slice including a current chroma block is an I slice and a luma-chroma dual tree partitioning structure is applied. However, the following description is not limited to the above example. For example, the following description can be applied regardless of whether the current slice is an I slice or not, and further, the following description can be commonly applied to cases where the dual tree partitioning structure is not used.
[0178] First, the decoding apparatus may determine luma intra prediction mode information (eg, lumaIntraPredMode) based on a prediction mode of a luma block corresponding to a current chroma block (S1910). This step will be described in detail later.
[0179] Next, the decoding apparatus may determine chroma intra prediction mode information based on the luma intra prediction mode information and the additional information (S1920). In one embodiment, the decoding apparatus may determine the chroma intra prediction mode based on a cclm_mode_flag parameter indicating whether a CCLM prediction mode is applied, a cclm_mode_idx parameter indicating a CCLM mode type to be applied when a CCLM prediction mode is applied, an intra_chroma_pred_mode parameter indicating an intra prediction mode type to be applied to a chroma sample, and luma intra prediction mode information (e.g., lumaIntraPredMode) obtained from the bitstream, and the table of FIG. 20.
[0180] As an example, the intra_chroma_pred_mode may indicate any one of a planar mode, a DC mode, a vertical mode, a horizontal mode, a derived mode (DM), and a cross-component linear model (CCLM) mode. Here, the planar mode may indicate the 0th intra prediction mode, the DC mode may indicate the 1st intra prediction mode, the vertical mode may indicate the 26th intra prediction mode, and the horizontal mode may indicate the 10th intra prediction mode. DM may also be called a direct mode. CCLM may also be called a linear model (LM). The CCLM mode may include any one of L_CCLM, T_CCLM, and LT_CCLM.
[0181] Meanwhile, DM and CCLM are dependent intra prediction modes that predict a chroma block using information of a luma block. DM may indicate a mode in which the same intra prediction mode as that of a luma block corresponding to a current chroma block is applied as the intra prediction mode for the chroma block. In the DM mode, the intra prediction mode of the current chroma block may be determined as the intra prediction mode indicated by the luma intra prediction mode information.
[0182] In addition, the CCLM may indicate an intra prediction mode in which a restored sample of a luma block is subsampled in the process of generating a prediction block for a chroma block, and then a sample derived by applying CCLM parameters α and β to the subsampled sample is used as a prediction sample for the chroma block.
[0183] Next, the decoding device may map the chroma intra prediction mode based on the chroma format (S1930). The decoding device according to an embodiment may map the chroma intra prediction mode X determined according to the table of FIG. 20 to a new chroma intra prediction mode Y based on the table of FIG. 21 only when the chroma format is 4:2:2 (for example, when the value of chroma_format_idc is 2). For example, if the value of the chroma intra prediction mode determined according to the table of FIG. 20 is 16, it may be mapped to the chroma intra prediction mode 14 according to the mapping table of FIG. 21.
[0184] Determining Luma Intra Prediction Mode Information
[0185] Step S1910 of determining luma intra prediction mode information (eg, lumaIntraPredMode) will be described in more detail below. Figure 22 is a flowchart illustrating a method in which the decoding apparatus determines luma intra prediction mode information.
[0186] First, the decoding apparatus may determine whether the MIP mode is applied to the luma block corresponding to the current chroma block (S2210). If the MIP mode is applied to the luma block corresponding to the current chroma block, the decoding apparatus may set the value of the luma intra prediction mode information to the INTRA_PLANAR mode (S2220).
[0187] Meanwhile, if the MIP mode is not applied to the luma block corresponding to the current chroma block, the decoding apparatus may determine whether the IBC mode or the PLT mode is applied to the luma block corresponding to the current chroma block (S2230).
[0188] If the IBC mode or the PLT mode is applied to the luma block corresponding to the current chroma block, the decoding apparatus may set the value of the luma intra prediction mode information to the INTRA_DC mode (S2240).
[0189] On the other hand, if the IBC mode or PLT mode is not applied to the luma block corresponding to the current chroma block, the decoding device may set the value of the luma intra prediction mode information to the intra prediction mode of the luma block corresponding to the current chroma block (S2250).
[0190] In the process of determining luma intra prediction mode information as shown in FIG 22, various methods may be applied to identify a luma block corresponding to a current chroma block. As described above, the upper left sample position of the current chroma sample may be expressed as a relative coordinate of a luma sample that is separated from the upper left luma sample position of the current picture. In this context, a method of identifying a luma block corresponding to a chroma block will be described below.
[0191] 23 illustrates a first embodiment of referring to a luma sample position to identify a prediction mode of a luma block corresponding to a current chroma block. Hereinafter, steps S2310 to S2350 correspond to steps S2210 to S2250 in FIG. 22, and therefore only differences will be described.
[0192] In the first embodiment of Figure 23, a first luma sample position corresponding to the top-left sample position of a current chroma block and a second luma sample position determined based on the top-left sample position of the current chroma block and the width and height of the current luma block are referenced, where the first luma sample position may be (xCb, yCb), and the second luma sample position may be (xCb+cbWidth / 2, yCb+cbHeight / 2).
[0193] More specifically, in step S2310, a first luma sample position may be identified to determine whether the MIP mode is applied to a luma block corresponding to a current chroma block. More specifically, it may be determined whether a parameter intra_mip_flag[xCb][yCb] indicating whether the MIP mode identified at the first luma sample position is applied has a value of 1. A first value (e.g., 1) of intra_mip_flag[xCb][yCb] may indicate that the MIP mode is applied at the [xCb][yCb] sample position.
[0194] Also, in step S2330, a first luma sample position may be identified to identify whether IBC or palette mode is applied to a luma block corresponding to a current chroma block. More specifically, it may be identified whether a prediction mode parameter CuPredMode[0][xCb][yCb] of a luma block identified at the first luma sample position is a value indicating an IBC mode (e.g., MODE_IBC) or a value indicating a palette mode (e.g., MODE_PLT).
[0195] Also, in step S2350, a second luma sample position may be identified to set the luma intra prediction mode information to the intra prediction mode information of the luma block corresponding to the current chroma block. More specifically, a value of a parameter IntraPredModeY[xCb+cbWidth / 2][yCb+cbHeight / 2] indicating the luma intra prediction mode identified at the second luma sample position may be identified.
[0196] However, in the first embodiment, both the first luma sample position and the second luma sample position are considered to determine the intra prediction mode of the current chroma block, and thus, when only one luma sample position is considered, the encoding and decoding complexity can be reduced compared to when two sample positions are considered.
[0197] Hereinafter, a second and third embodiment in which only one luma sample position is considered will be described. Figures 24 and 25 are diagrams illustrating a second and third embodiment in which a luma sample position is referred to in order to identify a prediction mode of a luma block corresponding to a current chroma block. Hereinafter, steps S2410 to S2450 and steps S2510 to S2550 correspond to steps S2210 to S2250 in Figure 22 described above, and therefore only differences will be described.
[0198] In the second embodiment of FIG. 24, a second luma sample position determined based on the top left sample position of the current chroma block and the width and height of the current luma block may be referenced. Here, the second luma sample position may be (xCb+cbWidth / 2, yCb+cbHeight / 2). Thus, in the second embodiment, a predicted value of a luma sample corresponding to a center position (xCb+cbWidth / 2, yCb+cbHeight / 2) of a luma block corresponding to the current chroma block may be identified. In one embodiment, when a luma block has an even number of columns and rows, the center position may indicate a position of a bottom right sample among the central four samples of the luma block.
[0199] More specifically, in step S2410, a second luma sample position may be identified to determine whether the MIP mode is applied to the luma block corresponding to the current chroma block, and more specifically, whether a parameter intra_mip_flag[xCb+cbWidth / 2][yCb+cbHeight / 2] indicating whether the MIP mode is applied at the second luma sample position may be determined to be 1.
[0200] Also, in step S2430, a second luma sample position may be identified to determine whether IBC or palette mode is applied to a luma block corresponding to a current chroma block. More specifically, it may be determined whether a prediction mode parameter CuPredMode[0][xCb+cbWidth / 2][yCb+cbHeight / 2] of the luma block identified at the second luma sample position is a value indicating an IBC mode (e.g., MODE_IBC) or a value indicating a palette mode (e.g., MODE_PLT).
[0201] Also, in step S2450, a second luma sample position may be identified to set luma intra prediction mode information to intra mode information of a luma block corresponding to the current chroma block. More specifically, a value of a parameter IntraPredModeY[xCb+cbWidth / 2][yCb+cbHeight / 2] indicating a luma intra prediction mode identified at the second luma sample position may be identified.
[0202] In the third embodiment of FIG. 25, a first luma sample position corresponding to a top left sample position of the current chroma block may be referenced. Here, the first luma sample position may be (xCb, yCb). Thus, in the third embodiment, a predicted value of a luma sample corresponding to the top left sample position (xCb, yCb) of the luma block corresponding to the current chroma block may be identified. In one embodiment, if the luma block has an even number of columns and rows,
[0203] More specifically, in step S2510, a first luma sample position may be identified to determine whether the MIP mode is applied to a luma block corresponding to a current chroma block, and more specifically, whether a parameter intra_mip_flag[xCb][yCb] indicating whether the MIP mode is applied at the first luma sample position is 1 or not may be identified.
[0204] Also, in step S2530, a first luma sample position may be identified to identify whether IBC or palette mode is applied to a luma block corresponding to a current chroma block. More specifically, it may be identified whether a prediction mode parameter CuPredMode[0][xCb][yCb] of a luma block identified at the first luma sample position is a value indicating an IBC mode (e.g., MODE_IBC) or a value indicating a palette mode (e.g., MODE_PLT).
[0205] Also, in operation S2550, a first luma sample position may be identified in order to set luma intra prediction mode information to intra prediction mode information of a luma block corresponding to the current chroma block. More specifically, a value of a parameter IntraPredModeY[xCb][yCb] indicating a luma intra prediction mode identified at the first luma sample position may be identified.
[0206] Encoding and Decoding Methods
[0207] Hereinafter, a method of encoding by an encoding device according to an embodiment and a method of decoding by a decoding device according to the above-mentioned method will be described with reference to FIG. 26. The encoding device according to an embodiment includes a memory and at least one processor, and the following method can be performed by the at least one processor. Also, the decoding device according to an embodiment includes a memory and at least one processor, and the following method can be performed by the at least one processor. For convenience of explanation, the operation of the decoding device will be described below, but the following explanation can be applied to the encoding device as well.
[0208] First, the decoding apparatus may divide an image to identify a current chroma block (S2610). Next, the decoding apparatus may identify whether a matrix-based intra prediction mode is applied to a first luma sample position corresponding to the current chroma block (S2620). Here, the first luma sample position may be determined based on at least one of a width and a height of a luma block corresponding to the current chroma block. For example, the first luma sample position may be determined based on a top left sample position of a luma block corresponding to the current chroma block, a width of the luma block, and a height of the luma block.
[0209] Next, if the matrix-based intra prediction mode is not applied, the decoding apparatus may determine whether a predetermined prediction mode is applied to a second luma sample position corresponding to the current chroma block (S2630). Here, the second luma sample position may be determined based on at least one of a width and a height of a luma block corresponding to the current chroma block. For example, the second luma sample position may be determined based on a top left sample position of a luma block corresponding to the current chroma block, a width of the luma block, and a height of the luma block.
[0210] Next, if the predetermined prediction mode is not applied, the decoding apparatus may determine a candidate intra prediction mode for the current chroma block based on an intra prediction mode applied to a third luma sample position corresponding to the current chroma block (S2640). Here, the predetermined prediction mode may be an Intra Block Copy (IBC) mode or a palette mode.
[0211] Meanwhile, the first luma sample position may be the same as the third luma sample position, or the second luma sample position may be the same as the third luma sample position, or the first luma sample position, the second luma sample position, and the third luma sample position may be the same as each other.
[0212] Alternatively, the first luma sample position may be a center position of the luma block corresponding to the current chroma block. For example, an x-component position of the first luma sample position may be determined by adding half the width of the luma block to an x-component position of a top-left sample of the luma block corresponding to the current chroma block, and a y-component position of the first luma sample position may be determined by adding half the height of the luma block to a y-component position of a top-left sample of the luma block corresponding to the current chroma block.
[0213] Alternatively, the first luma sample position, the second luma sample position, and the third luma sample position may be determined based on the top left sample position of a luma block corresponding to the current chroma block, the width of the luma block, and the height of the luma block, respectively.
[0214] Application examples
[0215] 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.
[0216] 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.
[0217] 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.
[0218] 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.
[0219] 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.
[0220] FIG. 27 is a diagram illustrating a content streaming system to which an embodiment of the present disclosure can be applied.
[0221] As shown in FIG. 27, 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.
[0222] 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.
[0223] 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.
[0224] 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.
[0225] 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.
[0226] 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.
[0227] 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.
[0228] 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]
[0229] The embodiments according to the present disclosure can be used to encode / decode images.
Claims
1. An image decoding method performed by an image decoding device, comprising: Segmenting the image to identify a current chroma block; identifying whether a matrix-based intra prediction mode is applied to a first luma sample position corresponding to the current chroma block; identifying whether a predetermined prediction mode is applied to a second luma sample position corresponding to the current chroma block based on the fact that the matrix-based intra prediction mode is not applied; determining a candidate intra prediction mode for the current chroma block based on an intra prediction mode applied to a third luma sample position corresponding to the current chroma block based on the predetermined prediction mode not being applied; determining an intra prediction mode of the current chroma block based on the intra prediction mode candidates and additional information; The additional information includes information indicating whether a cross component linear model (CCLM) prediction mode is applied, information indicating a CCLM mode type, and information indicating an intra prediction mode type applied to the current chroma block, The image decoding method, wherein the first luma sample position, the second luma sample position, and the third luma sample position are the same.
2. The image decoding method of claim 1 , wherein the first luma sample position is determined based on at least one of a width and a height of a luma block corresponding to the current chroma block.
3. The image decoding method of claim 1 , wherein the first luma sample position is determined based on a top left sample position of a luma block corresponding to the current chroma block, a width of the luma block, and a height of the luma block.
4. The image decoding method of claim 1 , wherein the second luma sample position is determined based on at least one of a width and a height of a luma block corresponding to the current chroma block.
5. The image decoding method of claim 1 , wherein the second luma sample position is determined based on a top left sample position of a luma block corresponding to the current chroma block, a width of the luma block, and a height of the luma block.
6. The image decoding method of claim 2 , wherein the first luma sample position is a center position of a luma block corresponding to the current chroma block.
7. an x-component position of the first luma sample position is determined by adding half a width of the luma block to an x-component position of a top left sample of the luma block corresponding to the current chroma block; 2. The image decoding method of claim 1, wherein a y-component position of the first luma sample position is determined by adding half the height of the luma block to a y-component position of the top-left sample of the luma block corresponding to the current chroma block.
8. 2. The image decoding method of claim 1, wherein the first luma sample position, the second luma sample position, and the third luma sample position are determined based on a top left sample position of a luma block corresponding to the current chroma block, a width of the luma block, and a height of the luma block, respectively.
9. An image coding method performed by an image coding device, comprising: Segmenting the image to identify a current chroma block; identifying whether a matrix-based intra prediction mode is applied to a first luma sample position corresponding to the current chroma block; identifying whether a predetermined prediction mode is applied to a second luma sample position corresponding to the current chroma block based on the fact that the matrix-based intra prediction mode is not applied; determining a candidate intra prediction mode for the current chroma block based on an intra prediction mode applied to a third luma sample position corresponding to the current chroma block based on the predetermined prediction mode not being applied; an intra prediction mode for the current chroma block is determined based on the intra prediction mode candidates and the side information; The additional information includes information indicating whether a cross component linear model (CCLM) prediction mode is applied, information indicating a CCLM mode type, and information indicating an intra prediction mode type applied to the current chroma block, 11. A method for encoding an image, wherein the first luma sample position, the second luma sample position, and the third luma sample position are the same.
10. A method for transmitting a bitstream, comprising the steps of: Segmenting the image to identify a current chroma block; identifying whether a matrix-based intra prediction mode is applied to a first luma sample position corresponding to the current chroma block; identifying whether a predetermined prediction mode is applied to a second luma sample position corresponding to the current chroma block based on the fact that the matrix-based intra prediction mode is not applied; determining a candidate intra prediction mode for the current chroma block based on an intra prediction mode applied to a third luma sample position corresponding to the current chroma block based on the predetermined prediction mode not being applied; encoding side information to generate the bitstream; transmitting data including the bitstream; an intra prediction mode of the current chroma block is determined based on the intra prediction mode candidates and the side information; The additional information includes information indicating whether a cross component linear model (CCLM) prediction mode is applied, information indicating a CCLM mode type, and information indicating an intra prediction mode type applied to the current chroma block, 11. A method for transmitting a bitstream, wherein the first luma sample position, the second luma sample position, and the third luma sample position are the same.
Citation Information
Patent Citations
An encoder, a decoder and corresponding methods related to intra prediction mode
WO2021013053A1
An encoder, a decoder and corresponding methods of chroma intra mode derivation
WO2021017923A1