Image encoding / decoding method and device for determining prediction mode of chroma block by referring to luma sample position, and bitstream transmission method
By determining chroma block prediction modes based on fewer luma sample positions, the method addresses the inefficiencies in encoding/decoding high-resolution images, reducing transmission and storage costs.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2025-03-17
- Publication Date
- 2026-03-10
AI Technical Summary
The increasing demand for high-resolution, high-quality images leads to a significant increase in transmission and storage costs due to the higher amount of information, necessitating more efficient image compression techniques.
An image encoding/decoding method that determines a prediction mode for a chroma block by referring to a smaller number of luma sample positions, using matrix-based intra prediction modes and palette modes, to improve encoding/decoding efficiency.
The method enhances encoding/decoding efficiency by reducing the number of luma sample positions considered, leading to improved image compression and reduced transmission/storage costs.
Smart Images

Figure 0007826582000003 
Figure 0007826582000004 
Figure 0007826582000005
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, demand for high-resolution, high-quality images, such as HD (High Definition) images and UHD (Ultra High Definition) images, has been increasing in various fields. As image data becomes higher in resolution and quality, the amount of information or bits to be transmitted increases relatively compared to conventional image data. The increase in the amount of information or bits to be transmitted results in an increase in transmission costs and storage costs.
[0003] This requires highly efficient image compression techniques 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 an 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 technical field 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 apparatus according to an aspect of the present disclosure may include dividing an image to identify a current chroma block, determining 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, determining 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 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. 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 the width and 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, the width of the luma block, and the 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 the width and height of a luma block corresponding to the current chroma block. The second luma sample position may be determined based on the upper left sample position of the luma block corresponding to the current chroma block, the width of the luma block, and the 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. The x-component position of the first luma sample position may be determined by adding half the width of the luma block to the x-component position of a top-left sample of the luma block corresponding to the current chroma block, and the y-component position of the first luma sample position may be determined by adding half the height of the luma block to the 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 can be determined based on the upper left sample position of the 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 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, and 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 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.
[0018] Furthermore, a transmission method according to one 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 this brief summary of the present disclosure are merely exemplary aspects of the detailed description of the present disclosure that follows and are not intended to limit the scope of the present disclosure. [Effects 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] Furthermore, 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] The present disclosure also provides a method for transmitting a bitstream generated by the image encoding method or apparatus according to the present disclosure.
[0024] Furthermore, 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 that stores 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 explanation of the drawings]
[0027] [Figure 1] 1 is a diagram illustrating a video coding system to which embodiments of the present disclosure can be applied; [Figure 2] 1 is a diagram schematically illustrating an image encoding device to which an embodiment of the present disclosure can be applied. [Figure 3] FIG. 1 is a diagram schematically illustrating an image decoding device to which an embodiment of the present disclosure can be applied. [Figure 4]FIG. 2 is a diagram illustrating a division structure of an image according to an embodiment. [Figure 5] FIG. 10 is a diagram showing an example of block division types using a multi-type tree structure. [Figure 6] FIG. 1 illustrates a signaling mechanism for block partition information in a quadtree with nested multi-type tree structure according to the present disclosure. [Figure 7] FIG. 10 illustrates an embodiment in which a CTU is divided into multiple CUs. [Figure 8] FIG. 10 is a diagram illustrating an example of a redundant division pattern. [Figure 9] FIG. 10 is a diagram illustrating the positional relationship between luma samples and chroma samples determined by a chroma format according to one embodiment. [Figure 10] FIG. 10 is a diagram illustrating the positional relationship between luma samples and chroma samples determined by a chroma format according to one embodiment. [Figure 11] FIG. 10 is a diagram illustrating the positional relationship between luma samples and chroma samples determined by a chroma format according to one embodiment. [Figure 12] FIG. 10 illustrates a syntax for chroma format signaling according to one embodiment. [Figure 13] FIG. 10 is a diagram illustrating a chroma format classification table according to one embodiment. [Figure 14] FIG. 10 is a diagram illustrating a directional intra-prediction mode according to an embodiment. [Figure 15] FIG. 10 is a diagram illustrating a directional intra-prediction mode according to an embodiment. [Figure 16] FIG. 1 is a reference diagram illustrating an MIP mode according to an embodiment. [Figure 17] FIG. 1 is a reference diagram illustrating an MIP mode according to an embodiment. [Figure 18] FIG. 1 illustrates an example of horizontal and vertical scanning according to one embodiment. [Figure 19]FIG. 10 is a diagram illustrating a method for determining an intra-prediction mode for a chroma block according to an embodiment. [Figure 20] FIG. 10 illustrates a lookup table for determining a chrominance intra-prediction mode. [Figure 21] FIG. 10 illustrates a lookup table for determining a chrominance intra-prediction mode. [Figure 22] 10 is a flowchart illustrating a method for determining luma intra prediction mode information according to an embodiment. [Figure 23] 10 is a flowchart illustrating a method for determining luma intra prediction mode information according to an embodiment. [Figure 24] 10 is a flowchart illustrating a method for determining luma intra prediction mode information according to an embodiment. [Figure 25] 10 is a flowchart illustrating a method for determining luma intra prediction mode information according to an embodiment. [Figure 26] 1 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 INVENTION
[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 detailed description of a known configuration or function may obscure the gist of the present disclosure, the detailed description thereof will be omitted. In addition, in the drawings, parts that are not related to the description of the present disclosure will be omitted, and similar parts will be designated by similar reference numerals.
[0030] In this disclosure, when a component is referred to as being "coupled," "coupled," or "connected" to another component, this includes not only a direct connection, but also an indirect connection where another component exists between them. Furthermore, when a component is referred to as "including" or "having" another component, this does not mean that the other component is excluded, but that the component can further include the other component, unless otherwise specified.
[0031] In this disclosure, terms such as "first" and "second" are used only to distinguish 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 into a single hardware or software unit, or a single component may be distributed into multiple hardware or software units. Therefore, even if not otherwise specified, such integrated or distributed embodiments are also included within the scope of this disclosure.
[0033] In this disclosure, the components described in 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 within the scope of this disclosure. Furthermore, an embodiment including other components in addition to the components described in various embodiments is also within the scope of this disclosure.
[0034] The present disclosure relates to image encoding and decoding, and terms used in this disclosure may have their ordinary meaning 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 refers to a unit representing any one image in a specific time period, and 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. Furthermore, a slice / tile may include one or more coding tree units (CTUs).
[0036] In this disclosure, "pixel" or "pel" may refer to the smallest unit constituting one picture (or image). Also, "sample" may be used as a term corresponding to pixel. 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, the term "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 that region. The term "unit" may be used interchangeably with terms such as "sample array," "block," or "area," depending on the situation. In general, 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." When prediction is performed, a "current block" may refer to a "current predicted block" or a "block to be predicted." When transformation (inverse transformation) / quantization (inverse quantization) is performed, a "current block" may refer to a "current transformed block" or a "block to be transformed." When filtering is performed, a "current block" may refer to a "block to be filtered."
[0039] Furthermore, in this disclosure, "current block" may mean "luma block of the current block" unless explicitly stated as a chroma block. "Chroma block of the current block" may be expressed explicitly including the explicit description of a chroma block, such as "chroma block" or "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 one 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] An encoding device 10 according to an embodiment may include a video source generation unit 11, an encoding unit 12, and a transmission unit 13. A decoding device 20 according to an embodiment may include a reception 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 transmission unit 13 may be included in the encoding unit 12. The reception 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 generation unit 11 can acquire video / images through a video / image capture, synthesis, or generation process. The video source generation 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 video / images, etc. The video / image generation device can include, for example, a computer, a tablet, a smartphone, etc., and can (electronically) generate video / images. For example, a virtual video / image can be generated via a computer, etc. In this case, the video / image capture process can be replaced with a process in which related 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, and quantization for compression and coding efficiency. The encoder 12 may output the encoded data (encoded video / image information) in a bitstream format.
[0048] The transmitter 13 may transmit the encoded video / image information or data output in a bitstream format to the receiver 21 of the decoding device 20 in a file or streaming format via a digital storage medium or a network. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray®, HDD, and SSD. The transmitter 13 may include elements for generating a media file in a predetermined file format and elements for transmitting via a broadcasting / communication network. The receiver 21 may extract / receive the bitstream from the storage medium or network and transmit it to the decoder 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, and the rendered video / images can be displayed via the display unit.
[0051] Overview of the image encoding device
[0052] FIG. 2 is a diagram schematically illustrating an image encoding device to which an embodiment of the present disclosure can be applied.
[0053] 2, the image encoding device 100 may include an image division unit 110, a subtraction unit 115, a transform unit 120, a quantization unit 130, an inverse quantization unit 140, an inverse transform unit 150, an addition unit 155, a filtering unit 160, a memory 170, an inter prediction unit 180, an intra prediction unit 185, and an entropy encoding unit 190. The inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a "prediction unit." The transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in a residual processing unit. The residual processing unit may further include a subtraction unit 115.
[0054] Depending on the embodiment, 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). 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) using a QT / BT / TT (quad-tree / binary-tree / ternary-tree) structure. For example, one coding unit may be divided into multiple coding units at deeper depths based on a quad-tree structure, a binary-tree structure, and / or a ternary-tree structure. To divide the coding units, the quad-tree structure may be applied first, and then the binary-tree structure and / or the ternary-tree structure may be applied later. The coding procedure according to the present disclosure may be performed based on the final coding unit that is not further divided. The maximum coding unit may be used as the final coding unit, or 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 reconstruction, 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 current block (current block) to generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied to the current block or CU. The prediction unit may generate various information related to prediction of the current block and transmit it to the entropy coding unit 190. The prediction information may be coded by the entropy coding 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 far away from the current block according to the intra prediction mode and / or intra prediction technique. The intra prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The non-directional modes may include, for example, DC mode and Planar mode. The directional modes may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the degree of precision of the prediction direction. However, this is merely an example, and more or less directional prediction modes may be used depending on the settings. The intra prediction unit 185 may also determine the prediction mode to be applied to the current block using the 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. To reduce the amount of motion information transmitted in inter prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation between the motion information of 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 information on the inter prediction direction (e.g., L0 prediction, L1 prediction, Bi prediction, etc.). 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. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be called a collocated reference block, a collocated CU (colCU), etc. The reference picture including the temporal neighboring block may be called a collocated picture (colPic). For example, the inter predictor 180 may construct a motion information candidate list based on neighboring blocks and generate information indicating which candidate is used to derive a motion vector and / or a reference picture index for the current block. Inter prediction may be performed based on various prediction modes. For example, in the case of skip mode and merge mode, the inter predictor 180 may use motion information of neighboring blocks as motion information for the current block. In the case of skip mode, unlike in merge mode, a residual signal may not be transmitted.In the case of a motion vector prediction (MVP) mode, the motion vector of a neighboring block is used as a motion vector predictor, and the motion vector of the current block can be signaled by encoding a motion vector difference and an indicator for the motion vector predictor. The motion vector difference may mean the difference between the motion vector of the current block and the motion vector predictor.
[0059] The predictor may generate a prediction signal based on various prediction methods and / or prediction techniques, which will be described later. For example, the predictor may apply intra prediction or inter prediction to predict the current block, or may simultaneously apply intra prediction and inter prediction. A prediction method that simultaneously applies intra prediction and inter prediction to predict the current block may be referred to as combined inter and intra prediction (CIIP). The predictor may also perform intra block copy (IBC) to predict the current block. Intra block copy can be used for content image / video coding, such as screen content coding (SCC), for games. IBC is a method of predicting a current block using an already reconstructed 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 essentially performed within the current picture, but may be similar to inter prediction in that a reference block is derived within 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, predicted sample array) output from the prediction unit from the input image signal (original block, original sample array) to generate a residual signal (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 representing inter-pixel relationship information. 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 to non-square blocks of variable size.
[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 encode the quantized signal (information about the quantized transform coefficients) and output the encoded signal in a bitstream format. The information about 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 about 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 necessary for video / image restoration (e.g., values of syntax elements) together with or separately from the quantized transform coefficients. The coded information (e.g., coded video / image information) may be transmitted or stored in a bitstream format in network abstraction layer (NAL) units. The video / image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). The video / image information may also include general constraint information. The signaling information, transmitted information and / or syntax elements mentioned in this disclosure may be encoded through the above-described encoding procedure and included in the bitstream.
[0064] The bitstream may be transmitted via a network or 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) that transmits and / or a storing unit (not shown) that stores the signal output from the entropy encoding unit 190 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 residual signal (residual block or residual sample) can be reconstructed by applying inverse quantization and inverse transform to the quantized transform coefficients via the inverse quantization unit 140 and the inverse transform unit 150.
[0066] The adder 155 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to the 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, the predicted block may be used as the 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 will be described later.
[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 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, etc. The filtering unit 160 may generate various information related to filtering and transmit it to the entropy coding unit 190, as will be described later in connection with each filtering method. The filtering information 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 can be used as a reference picture in the inter prediction unit 180. When inter prediction is applied through this, the image encoding device 100 can avoid a prediction mismatch between the image encoding device 100 and the image decoding device, and can also improve encoding efficiency.
[0069] The DPB in the memory 170 may store modified reconstructed pictures for use as reference pictures in the inter predictor 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 predictor 180 to be used as motion information of spatially surrounding blocks or temporally surrounding blocks. The memory 170 may store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra predictor 185.
[0070] Overview of the image decoding device
[0071] FIG. 3 is a diagram schematically illustrating an image decoding device to which an embodiment of the present disclosure can be applied.
[0072] 3, the image decoding apparatus 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] Depending on the embodiment, all or at least some of the components constituting the image decoding device 200 may be realized by a single hardware component (e.g., a decoder or a processor). 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 performing 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. Therefore, the decoding processing unit can be, for example, a coding unit. The coding unit can be obtained by dividing a coding tree unit or a maximum coding unit. 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 a bitstream format. The received signal may be decoded via an entropy decoding unit 210. For example, the entropy decoding unit 210 may parse the bitstream to derive information (e.g., video / image information) necessary for image reconstruction (or picture reconstruction). The video / image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). The video / image information may also include general constraint information. The image decoding apparatus may further use the information on the parameter sets 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 residuals. More specifically, the CABAC entropy decoding method receives bins corresponding to each syntax element from the bitstream, determines a context model using information on the syntax element to be decoded and decoded information on neighboring blocks and the block to be decoded, or information on symbols / bins decoded in a previous step, predicts the occurrence probability of the bins based on the determined context model, and performs arithmetic decoding of the bins to generate symbols corresponding to the values of each syntax element. After determining the context model, the CABAC entropy decoding method may update the context model using information on the decoded symbol / bin for the context model of the next symbol / bin.Among the information decoded by the entropy decoding unit 210, information related to prediction is provided to the prediction units (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 apparatus according to the present disclosure may be referred to as a video / image / picture decoding apparatus. The image decoding apparatus 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 and output the 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 the coefficient scanning 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 prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on information about the prediction 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 described in the description of the prediction unit of the image encoding device 100.
[0081] The intra predictor 265 may predict the current block by referring to samples in the current picture. The description of the intra predictor 185 may also be applied to the intra predictor 265.
[0082] The inter prediction unit 260 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. To reduce the amount of motion information transmitted in inter prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on correlations between motion information of 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 information on an inter prediction direction (e.g., L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, the neighboring blocks may include spatial neighboring blocks in the current picture and temporal neighboring blocks in the reference picture. For example, the inter prediction unit 260 may construct 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 received candidate selection information. Inter prediction may be performed based on various prediction modes (techniques), and the prediction information may include information indicating the inter prediction mode (technique) for the current block.
[0083] The adder 235 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the obtained 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 the current block to be processed, such as when a skip mode is applied, the predicted block may be used as the reconstructed block. The description of the adder 155 may also be applied to the adder 235. The adder 235 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 undergoing filtering, as will be described later.
[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 a 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 can be used as a reference picture in the inter predictor 260. The memory 250 can 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 can be transmitted to the inter predictor 260 to be used as motion information of a spatially surrounding block or a temporally surrounding block. The memory 250 can store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra predictor 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 (e.g., (inverse) transform, (inverse) quantization), syntax element coding, and filtering, which will be described later, may be performed based on CTUs and CUs (and / or TUs and PUs) derived based on the image partition structure. An image may be divided into blocks, and the block partition procedure may be performed by the image partitioning 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 the 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 can be divided into a sequence of coding tree units (CTUs). FIG. 4 shows an example of dividing a picture into CTUs. A CTU can correspond to a coding tree block (CTB). Alternatively, a CTU can 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 can include an N×N block of luma samples and two corresponding blocks of chroma samples.
[0090] Overview of CTU division
[0091] As described above, a coding unit can 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 / ternary-tree) structure. For example, a CTU can be first divided into a quad-tree structure. Then, the leaf nodes of the quad-tree structure can be further divided according to a multi-type tree structure.
[0092] Quadtree division refers to dividing the current CU (or CTU) into four equal parts. By quadtree division, the current CU can be divided into four CUs with 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. A CU corresponding to a leaf node of the quadtree structure is not further divided and can be used as the final coding unit described above. Alternatively, a CU corresponding to a leaf node of the quadtree structure can be further divided into four parts according to a multi-type tree structure.
[0093] 5 is a diagram showing the types of division of blocks using a multi-type tree structure. Division using a multi-type tree structure can include two divisions using a binary tree structure and two divisions using a ternary tree structure.
[0094] The two divisions based on the binary tree structure can include vertical binary splitting (SPLIT_BT_VER) and horizontal binary splitting (SPLIT_BT_HOR). Vertical binary splitting (SPLIT_BT_VER) refers to a division that divides the current CU into two equal parts vertically. As shown in FIG. 4, vertical binary splitting can generate two CUs with the same height as the current CU and half the width of the current CU. Horizontal binary splitting (SPLIT_BT_HOR) refers to a division that divides the current CU into two equal parts horizontally. As shown in FIG. 5, horizontal binary splitting can generate two CUs with the same height as the current CU and half the width of the current CU.
[0095] The two divisions based on the ternary tree structure can include vertical ternary splitting (SPLIT_TT_VER) and horizontal ternary splitting (SPLIT_TT_HOR). Vertical ternary splitting (SPLIT_TT_VER) divides the current CU vertically at a ratio of 1:2:1. As shown in FIG. 5, vertical ternary splitting can generate two CUs each having the same height as the current CU and a width equal to one-quarter of the current CU's width, and a CU each having the same height as the current CU and a width equal to half the current CU's width. Horizontal ternary splitting (SPLIT_TT_HOR) divides the current CU horizontally at a ratio of 1:2:1. As shown in FIG. 4, horizontal ternary splitting can generate two CUs each having a height equal to one-quarter of the current CU's height and a width equal to the current CU's width.
[0096] FIG. 6 is a diagram illustrating a signaling mechanism for 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 quadtree splitting is performed on 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 but becomes a quadtree leaf node (QT_leaf_node). The leaf nodes of each quadtree can then be further split into a multitype tree structure. That is, the leaf nodes of the quadtree can become multitype tree nodes (MTT_node). 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., if 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 a multitype tree obtained by binary or ternary splitting can be further partitioned into a multitype tree structure, but the nodes of a 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, the multi-type tree splitting mode (MttSplitMode) of the CU can be derived as shown in Table 1. In the following description, the multi-type tree splitting mode can be abbreviated as multi-tree split type or 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 quadtree division, and the remaining edge 720 indicates multi-type tree division. A CU may correspond to a coding block (CB). In one embodiment, a CU may include a coding block of luma samples and two coding blocks of chroma samples corresponding to the luma samples. The CB or TB size of a chroma component (sample) may be derived based on the CB or TB size according to the component ratio according to the color format of a picture / image (chroma format, e.g., 4:4:4, 4:2:2, 4:2:0, etc.). If the color format is 4:4:4, the CB / TB size of the chroma component may be set to be the same as the CB / TB size of the luma component. 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 be from 128 x 128, which is the same size as the CTU, to 4 x 4. In one embodiment, in the case of a 4:2:0 color format (or chroma format), the chroma CB size can be from 64 x 64 to 2 x 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 the luma component (sample) TB (Transform Block) size.
[0103] The TU size may be derived based on a preset maximum allowable TB size (maxTbSize). 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 64x64, and the maximum allowable chroma TB size may be 32x32. 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 multitype 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 the 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 multitype 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 the 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 quadtree leaf nodes. The quadtree leaf nodes may be called leaf QT nodes. The quadtree leaf nodes may have a size from 16x16 (e.g., the MinQTSize) to 128x128 (e.g., the CTU size). If the leaf QT node is 128x128, it may not be further partitioned into a binary tree or a ternary tree. This is because even if the partitioning is performed in this case, it would exceed MaxBtSize and MaxTtszie (e.g., 64 x 64). In other cases, the leaf QT node can be further partitioned into a multitype tree. Thus, the leaf QT node is the root node for the multitype tree, and the leaf QT node can have a multitype tree depth (mttDepth) value of 0. If the multitype tree depth reaches MaxMttDepth (e.g., 4), no further subdivisions can be considered. If the width of the multitype tree node is equal to MinBtSize and equal to or less than 2 x MinTtSize, no further horizontal subdivisions can be considered. If the height of the multitype tree node is equal to MinBtSize and equal to or less than 2 x MinTtSize, no further vertical subdivisions can be considered. If no subdivision is considered in this way, the encoding device can omit signaling of the subdivision information. In such cases, the decoding device can guide the subdivision 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-mentioned coding tree scheme may be applied equally to the luma blocks and chroma blocks of the current CU, or may be applied separately. Specifically, the luma blocks and chroma blocks in one CTU may be divided into the same block tree structure, which may be referred to as a single tree (SINGLE_TREE). Alternatively, the luma blocks and chroma blocks in one CTU may be divided into separate block tree structures, which may be referred to 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 referred to as a dual tree luma (DUAL_TREE_LUMA), and the block tree structure for the chroma block may be referred to as a dual tree chroma (DUAL_TREE_CHROMA). For P and B slices / 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 slices / tile groups, the luma block and the chroma block may have separate block tree structures. If a 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, this 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 a multi-type tree has been described above, the structure in which a CU is divided is not limited to this. For example, the BT structure and the TT structure may be interpreted as concepts included in a Multiple Partitioning Tree (MPT) structure, and a CU may be interpreted as being divided by a QT structure and an MPT structure. In an example in which a CU is divided by a QT structure and an MPT structure, the division structure may be determined by signaling a syntax element (e.g., MPT_split_type) containing information on whether a leaf node of the QT structure is divided into several blocks and a syntax element (e.g., MPT_split_mode) containing information on whether the leaf node of the QT structure is divided vertically or horizontally.
[0109] In another example, CUs may be divided in a manner different from that of the QT structure, BT structure, or TT structure. That is, unlike the QT structure in which lower-depth CUs are divided into 1 / 4 the size of higher-depth CUs, the BT structure in which lower-depth CUs are divided into 1 / 2 the size of higher-depth CUs, or the TT structure in which lower-depth CUs are divided into 1 / 4 or 1 / 2 the size of higher-depth CUs, lower-depth CUs may be divided into 1 / 5, 1 / 3, 3 / 8, 3 / 5, 2 / 3, or 5 / 8 the size of higher-depth CUs, as the case may be, and the manner in which 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 partitioning structure. Meanwhile, due to the partitioning types supported by the multi-type tree, different partitioning patterns can potentially result in the same coding block structure in some cases. By limiting the occurrence of such redundant partitioning patterns, the encoding device and the decoding device can reduce the amount of data for partitioning information.
[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, consecutive binary partitions 810 and 820 in one direction at two-step levels have the same coding block structure as the binary partitioning for the center partition after ternary partitioning. In this case, binary tree partitioning for the center blocks 830 and 840 of the ternary tree partitioning can be prohibited. This prohibition can be applied to all CUs of a picture. When such a specific partitioning is prohibited, the signaling of the corresponding syntax element can be modified to reflect this prohibition, thereby reducing the number of bits signaled for the partitioning. For example, as in the example shown in FIG. 8, when binary tree partitioning for the center block of a CU is prohibited, the mtt_split_cu_binary_flag syntax element, which indicates whether the partitioning is binary or ternary, is not signaled and can be set to 0 by the decoder.
[0112] Chroma Format Overview
[0113] The following describes a 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. The term 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, an image can be encoded in various chroma formats, such as monochrome, 4:2:0, 4:2:2, and 4:4:4. 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 illustrates the relative positions of luma samples and chroma samples according to an embodiment of 4:2:0 sampling. FIG. 10 illustrates the relative positions of luma samples and chroma samples according to an embodiment of 4:2:2 sampling. FIG. 11 illustrates the 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 bottom 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 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, Figure 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 the chroma format applied to the coded image. separate_colour_plane_flag may indicate whether the color array is processed separately in a specific 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 applies depending on the value of separate_colour_plane_flag: If the value of separate_colour_plane_flag is the first value (e.g., 0), each of the two chroma arrays can 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, can be set to the same as chroma_format_idc. If the value of separate_colour_plane_flag is the second value (e.g., 1), the luma, Cb, and Cr sample arrays can be processed separately, thereby being processed in the same way as a monochrome sampled picture. In this case, ChromaArrayType can be set to 0.
[0119] Overview of Intra Prediction Modes
[0120] The intra prediction modes will be described in more detail below. Figure 14 is a diagram illustrating intra prediction directions according to an embodiment. To capture any edge direction presented in a natural video, the intra prediction modes can include two non-directional intra prediction modes and 65 directional intra prediction modes, as shown in Figure 14. The non-directional intra prediction modes can include a planar intra prediction mode and a DC intra prediction mode, and the directional intra prediction modes can include intra prediction modes 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-mentioned intra prediction modes. The CCLM modes may be classified 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 illustrates intra-prediction directions according to another embodiment. Here, the dashed line direction indicates a wide-angle mode that is applied only to non-square blocks. As shown in FIG. 15, in order to capture any edge direction presented in a natural video, intra-prediction modes according to an embodiment may include 93 directional intra-prediction modes along 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 numbered 2 to 80 and -1 to -14, as indicated by arrows in FIG. 15. The planar prediction mode may be denoted as INTRA_PLANAR, and the DC prediction mode may be denoted as INTRA_DC. The directional intra-prediction modes may be denoted 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 implemented in various forms. For example, the intra prediction type information may include intra prediction type index information indicating one of the intra prediction types. For 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 whether LIP is applied; and MIP flag information indicating whether MIP is applied.
[0124] The intra prediction mode information and / or the intra prediction type information may be encoded / decoded using the coding method described in this disclosure. For example, the intra prediction mode information and / or the intra prediction type information may be encoded / decoded using 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, and in this 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, the intra-prediction mode for a chroma block may be indicated based on intra-chroma prediction mode information, which may be signaled in the form of an intra_chroma_pred_mode syntax element. For 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 intra-prediction mode 0, the DC mode may indicate intra-prediction mode 1, the vertical mode may indicate intra-prediction mode 26, and the horizontal mode may indicate intra-prediction mode 10. DM may also be referred to as direct mode. CCLM may also be referred to as LM.
[0127] 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 the intra prediction mode for the luma component is applied as the intra prediction mode for the chroma component. CCLM may indicate an intra prediction mode in which, in generating a prediction block for a chroma block, reconstructed samples of a luma block are subsampled, and then CCLM parameters α and β are applied to the subsampled samples to use the derived samples as prediction samples for the chroma block.
[0128] MIP Mode Overview
[0129] A matrix-based intra prediction mode (MIP) may also be referred to as an affine linear weighted intra prediction (ALWIP) mode, a linear weighted intra prediction (LWIP) mode, or a matrix weighted intra prediction (MWIP) mode. An intra prediction mode that is not a matrix-based prediction may be defined as a non-matrix-based prediction mode. For example, a non-matrix-based prediction mode may refer to non-directional intra prediction and directional intra prediction. Hereinafter, the terms intra prediction mode and general intra prediction mode will be used interchangeably to refer to a non-matrix-based prediction mode. Hereinafter, matrix-based prediction will be referred to as an MIP mode.
[0130] When the MIP mode is applied to the current block, a predicted sample for the current block can be derived by: i) using surrounding reference samples that have undergone an averaging step, ii) performing a matrix-vector multiplication step, and iii) further performing horizontal / vertical interpolation steps as necessary.
[0131] The averaging step can be performed by averaging the values of surrounding samples. The averaging procedure can 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 in pixels are four, 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 in pixels are not four, 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 generates 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 8x8 block. For an 8x8 block, a total of eight averaged samples can be generated as shown in FIG. 16(b). By multiplying the eight averaged samples by a matrix vector and adding an offset vector, 16 sample values can be generated at even coordinate positions as shown in FIG. 17(a). Then, vertical interpolation can be performed using the average value of the upper samples of the current block as shown in FIG. 17(b). Then, horizontal interpolation can be performed using the left samples of the current block as shown in FIG. 17(c).
[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, and ISP intra prediction, and normal intra prediction. The intra prediction mode for the MIP mode may also be referred to as MIP intra prediction mode, MIP prediction mode, or MIP mode. For example, the matrix and offset used in the matrix-vector product may be set differently depending on the intra prediction mode for the MIP. Here, the matrix may be referred to as a (MIP) weight matrix, and the offset may be referred to as 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. 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 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 intra_mip_flag[x0][y0] may indicate that the current block is predicted in the MIP mode.
[0136] If 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, the 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 constructed, 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 if the MIP prediction mode for the current block exists in the MPM list for MIP (i.e., if the value of intra_mip_mpm_flag is 1). The intra_mip_mpm_remainder may indicate the MIP prediction mode of the current block if the MIP prediction mode for the current block does not exist in the MPM list for MIP (i.e., if the value of intra_mip_mpm_flag is 0), and may indicate one of all MIP prediction modes or one of the remaining modes excluding the candidate modes in the MPM list for MIP among all 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 can be obtained from the bitstream. In one embodiment, intra_luma_mpm_flag[x0][y0], which indicates whether an MPM list for general intra prediction is generated, can be obtained from the bitstream.
[0138] When an intra prediction mode is applied to the current block, an MPM list for the current block can be configured, 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. When 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. 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. 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.
[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. However, 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 for 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 from among the candidates included in the MPM list from which the planar mode has been excluded.
[0141] On the other hand, if 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 one of all intra prediction modes as the intra prediction mode of the current block, or may indicate 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] Palette mode (PLT mode) will now be described. According to an embodiment, an encoding device may encode an image using the palette mode, and a decoding device may decode the image using the palette mode in a corresponding manner. The palette mode may be referred to as a palette coding mode, an intra palette mode, an intra palette coding mode, etc. The palette mode may be considered as a type of intra coding mode, or as one of the intra prediction methods. However, similar to the above-described skip mode, a separate residual value for the corresponding block may not be signaled.
[0144] In one embodiment, palette mode can be used to improve coding efficiency when encoding screen content, which is a computer-generated image containing a significant amount of text and graphics. Typically, local areas of an image generated by screen content are separated by sharp edges and represented with a small number of colors. To take advantage of this characteristic, 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 can be signaled. In one embodiment, the palette table can include index values corresponding to each color. To signal the index values, palette index prediction information can be signaled. The palette index prediction information can include index values for at least a portion of a palette index map. The palette index map can 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 that associates run values with index values. One 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 the index value of the palette index prediction information based on the final index value.
[0147] The current block in the current picture can be coded or reconstructed according to a palette index map. When the palette mode is applied, pixel values in the current coding unit can be represented by a small set of representative color values. Such a set can be named a palette. For pixels having values close to the palette colors, a palette index can be signaled. For pixels having values that do not belong to the palette (outliers), the pixel can be represented by an escape symbol, and the quantized pixel value can be directly signaled. In this specification, a pixel or pixel value can be described by a sample.
[0148] To decode a block coded in palette mode, a decoding device can decode palette colors and indices. The palette colors can be described as a palette table and coded using a palette table coding tool. An escape flag can be signaled for each coding unit. The escape flag can indicate whether an escape symbol exists in the current coding unit. If an escape symbol exists, the palette table is incremented by one unit (e.g., index unit), and the last index can be designated as escape mode. The palette indices of all pixels for one coding unit can constitute a palette index map and can 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 point. For example, the palette predictor can be reset to 0. For each entry of the palette predictor, a reuse flag can be signaled to indicate whether it is currently part of the palette. The reuse flag can be signaled using run-length coding of 0 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 allowed size is reached); this can be called palette stuffing.
[0151] For example, to encode 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 horizontal scanning 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 vertical scanning 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 "INDEX" and "COPY_ABOVE" modes. The two modes can be signaled using one flag, except when the palette index mode is signaled for the top row when horizontal scanning is used, when the palette index mode is signaled for the leftmost column when vertical scanning is used, and when the previous mode is "COPY_ABOVE".
[0153] In "INDEX" mode, the palette index can be signaled explicitly. For "INDEX" and "COPY_ABOVE" modes, the same mode can be used to signal a run value indicating the number of coded pixels.
[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, which allows bypass bins associated with the index to be grouped. 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 index number, 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 the luma and chroma components can be used for an I slice. Palette mode can be applied to the luma and chroma components individually or together. If a dual-tree is not applied, palette mode can be applied to all of the 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 basically performs prediction within a current picture, but may be similar to inter prediction in that a reference block is derived 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 motion information (motion vector) derivation methods described above. At least one of the inter prediction techniques may be partially modified to take the IBC prediction into consideration. The IBC may refer to the current picture. Therefore, it may also be referred to as current picture referencing (CPR).
[0159] For IBC, an image coding apparatus may derive an optimal block vector (or motion vector) for a current block (e.g., a CU) by performing block matching (BM). The derived block vector (or motion vector) may be signaled to an image decoding apparatus via a bitstream using a method similar to the motion information (motion vector) signaling method in inter prediction described above. The image decoding apparatus may derive a reference block for the current block in the current picture via the signaled block vector (motion vector), thereby deriving a prediction signal (predicted block or predicted 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 reconstructed area within the current picture. Therefore, 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, luma motion vectors for IBC-coded CUs may also be in integer sample units (i.e., integer precision). Chroma motion vectors may also be clipped in integer sample units. As described above, IBC can use at least one of inter-prediction techniques, and for example, luma motion vectors 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, the merge candidate list for the luma IBC block may be configured similarly to the merge candidate list in inter mode, except that for the luma IBC block, temporally surrounding blocks may not be used 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 in the same manner as 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 regions in the current picture. In this case, to reduce memory consumption and the complexity of the image decoding device, only predefined areas among the already reconstructed regions in the current picture can be referenced. The predefined areas can include the current CTU containing the current block. By limiting the referenceable reconstructed regions to predefined areas, the IBC mode can be implemented in hardware using local on-chip memory.
[0163] An image coding device that implements 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 IBC is applied to the current block can be signaled as IBC execution information at the CU level. Information regarding the signaling method of the motion vector of the current block (IBC MVP mode or IBC skip / merge mode) can be signaled. The IBC execution information can be used to determine the prediction mode of the current block. Therefore, the IBC execution information can be included in information regarding the prediction mode of the current block.
[0165] In IBC skip / merge mode, a merge candidate index may be signaled 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 include spatial merge candidates but may not include temporal merge candidates. The merge candidate list may also include history-based motion vector predictor (HMVP) candidates and / or pairwise candidates.
[0166] In the IBC MVP mode, block vector differential values can be coded in the same manner as the motion vector differential values in the inter mode. As with the MVP mode in inter mode, the block vector prediction method can be performed by constructing an MVP candidate list including two candidates as predictors. One of the two candidates can be derived from the left-side neighboring block, and the other can be derived from the upper-side neighboring block. In this case, a candidate can be derived from the left-side or upper-side neighboring block only if the neighboring block is coded in IBC. If the left-side or upper-side neighboring block is unavailable, for example, if the block is not coded in IBC, a default block vector can be included in the MVP candidate list as a predictor. Similarly to the MVP mode in inter mode, information (e.g., a flag) indicating one of the two block vector predictors is signaled and used as candidate selection information. The MVP candidate list can include an HMVP candidate and / or a zero motion vector as the default block vector.
[0167] The HMVP candidates may also be called history-based MVP candidates, and MVP candidates, merge candidates, or block vector candidates previously used in encoding / decoding the current block may be stored in the HMVP list as HMVP candidates. Thereafter, if the merge candidate list or MVP candidate list of the current block does not include the maximum number of candidates, the candidates stored in the HMVP list may be added to the merge candidate list or MVP candidate list of the current block as HMVP candidates.
[0168] The pairwise candidate refers to a candidate derived by selecting two candidates from among the candidates already included in the merge candidate list of the current block according to a predetermined order 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 the luma component block (luma block) and prediction can be performed on the chroma component block (chroma block) of the current block, and in this 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 illustrates a method for determining an intra prediction mode for a chroma block according to an embodiment.
[0172] A method for determining an intra prediction mode for a chroma block in an encoding / decoding device according to an embodiment will be described with reference to Figure 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, the intra prediction mode IntraPredModeC[xCb][yCb] for the 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] The following description can be applied when the current slice including the 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 can also be applied in common to cases where the dual-tree partitioning structure is not used.
[0178] First, the decoding apparatus may determine luma intra prediction mode information (e.g., lumaIntraPredMode) based on the 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 device may determine chrominance intra prediction mode information based on the luma intra prediction mode information and the additional information (S1920). In one embodiment, the decoding device may determine the chrominance 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 if a CCLM prediction mode is applied, an intra_chroma_pred_mode parameter indicating an intra prediction mode type to be applied to a chrominance sample, and luma intra prediction mode information (e.g., lumaIntraPredMode) acquired from the bitstream, and the table of FIG.
[0180] For 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 intra prediction mode 0, the DC mode may indicate intra prediction mode 1, the vertical mode may indicate intra prediction mode 26, and the horizontal mode may indicate intra prediction mode 10. DM may also be referred to as a direct mode. CCLM may also be referred to as 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 chroma blocks using information on luma blocks. DM may indicate a mode in which the same intra prediction mode as the intra prediction mode of a luma block corresponding to a current chroma block is applied as the intra prediction mode for the chroma block. In 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 the restored samples of the luma block are subsampled in the process of generating a prediction block for the chroma block, and the samples derived by applying the CCLM parameters α and β to the subsampled samples are used as prediction samples for the chroma block.
[0183] Next, the decoding device may map the chroma intra prediction mode based on the chroma format (S1930). According to an embodiment, the decoding device may map the chroma intra prediction mode X determined according to the table of Figure 20 to a new chroma intra prediction mode Y based on the table of Figure 21 only when the chroma format is 4:2:2 (e.g., 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 Figure 20 is 16, this may be mapped to the chroma intra prediction mode 14 according to the mapping table of Figure 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 a decoding device 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 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 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 Figure 22, various methods can 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 can be expressed as the relative coordinates of a luma sample spaced from the upper left luma sample position of the current picture. Under this background, 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 luma sample positions to identify a prediction mode for a luma block corresponding to a current chroma block. Steps S2310 to S2350 correspond to steps S2210 to S2250 in FIG. 22, and only the differences will be described below.
[0192] In the first example of Figure 23, a first luma sample position corresponding to the top-left sample position of the 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. Here, 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 the luma block corresponding to the current chroma block. More specifically, it may be determined whether the value of a parameter intra_mip_flag[xCb][yCb] indicating whether the MIP mode is applied at the first luma sample position is 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] In addition, in step S2330, a first luma sample position may be identified to determine whether IBC or palette mode is applied to the luma block corresponding to the current chroma block. More specifically, it may be determined whether the value of the prediction mode parameter CuPredMode[0][xCb][yCb] of the luma block identified at the first luma sample position is a value indicating IBC mode (e.g., MODE_IBC) or a value indicating palette mode (e.g., MODE_PLT).
[0195] In addition, 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, the 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 this 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, considering only one luma sample position can reduce encoding and decoding complexity compared to considering two sample positions.
[0197]
[0111] Below, a second and third embodiment will be described, in which only one luma sample position is considered. Figures 24 and 25 are diagrams showing a second and third embodiment in which the luma sample position is referenced to identify the prediction mode of the luma block corresponding to the current chroma block. Hereinafter, steps S2410 to S2450 and steps S2510 to S2550 correspond to steps S2210 to S2250 of Figure 22, and therefore only the differences will be described.
[0198] In the second embodiment of Figure 24, a second luma sample position determined based on the upper 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). As a result, in the second embodiment, a predicted value of a luma sample corresponding to the center position (xCb+cbWidth / 2, yCb+cbHeight / 2) 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, the center position may indicate the position of the lower right sample of 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 is 1 may be determined.
[0200] In addition, in step S2430, a second luma sample position may be identified to determine whether IBC or palette mode is applied to the luma block corresponding to the current chroma block. More specifically, it may be determined whether the value of the 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 the IBC mode (e.g., MODE_IBC) or a value indicating the palette mode (e.g., MODE_PLT).
[0201] In addition, in step S2450, a second luma sample position may be identified to set the luma intra prediction mode information to the intra mode information of the luma block corresponding to the current chroma block. More specifically, the 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.
[0202] In the third embodiment of Figure 25, the first luma sample position corresponding to the top-left sample position of the current chroma block can be referenced. Here, the first luma sample position can be (xCb, yCb). Thus, in the third embodiment, a predicted value of the luma sample corresponding to the top-left sample position (xCb, yCb) of the luma block corresponding to the current chroma block can be identified. In one embodiment, if the luma block has an even number of columns and rows,
[0203] More specifically, in step S2510, the first 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 the value of a parameter intra_mip_flag[xCb][yCb] indicating whether the MIP mode is applied at the first luma sample position is 1 may be determined.
[0204] In addition, in step S2530, a first luma sample position may be identified to determine whether IBC or palette mode is applied to the luma block corresponding to the current chroma block. More specifically, it may be determined whether the value of the prediction mode parameter CuPredMode[0][xCb][yCb] of the luma block identified at the first luma sample position is a value indicating IBC mode (e.g., MODE_IBC) or a value indicating palette mode (e.g., MODE_PLT).
[0205] In addition, in step S2550, a first luma sample position may be identified to set luma intra prediction mode information to the intra prediction mode information of the luma block corresponding to the current chroma block. More specifically, the value of a parameter IntraPredModeY[xCb][yCb] indicating the luma intra prediction mode identified at the first luma sample position may be identified.
[0206] Encoding and Decoding Methods
[0207] Hereinafter, a method for encoding by an encoding device and a method for decoding by a decoding device according to an embodiment using the above-mentioned method will be described with reference to Figure 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 description can also be applied to the encoding device.
[0208] First, the decoding apparatus may divide an image to identify a current chroma block (S2610). Next, the decoding apparatus may determine 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 the width and height of a luma block corresponding to the current chroma block. For example, the first luma sample position may be determined based on the upper 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.
[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 the width and height of the luma block corresponding to the current chroma block. For example, the second luma sample position may be determined based on the upper left sample position of the luma block corresponding to the current chroma block, the width of the luma block, and the 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 the intra prediction mode applied to the 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, the x-component position of the first luma sample position may be determined by adding half the width of the luma block to the x-component position of the top-left sample of the luma block corresponding to the current chroma block, and the y-component position of the first luma sample position may be determined by adding half the height of the luma block to the y-component position of the 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 upper left sample position of the luma block corresponding to the current chroma block, the width of the luma block, and the height of the luma block, respectively.
[0214] Application example
[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 the steps may be performed simultaneously or in a different order if necessary. To achieve the method according to the present disclosure, the steps illustrated may include other steps, or some steps may be omitted and the remaining steps may be included, or some steps may be omitted and additional other 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 and 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.
[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 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, an image decoding apparatus and an image encoding apparatus to which an embodiment of the present disclosure is applied may be included in a multimedia broadcast transmitting / receiving apparatus, a mobile communication terminal, a home cinema video apparatus, a digital cinema video apparatus, a surveillance camera, a video conversation apparatus, a real-time communication apparatus such as video communication, a mobile streaming apparatus, a storage medium, a camcorder, a video on demand (VoD) service providing apparatus, an over-the-top (OTT) video apparatus, an internet streaming service providing apparatus, a three-dimensional (3D) video apparatus, an image telephone video apparatus, a medical video apparatus, etc., and may be used to process a video signal or a data signal. For example, an over-the-top (OTT) video apparatus 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), etc.
[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 can 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, or camcorder 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, or video camera directly generates a bitstream, the encoding server can be omitted.
[0223] The bitstream can 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 can temporarily store the bitstream during 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 serves as an intermediary for informing 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, which then transmits the multimedia data to the user. In this case, the content streaming system may include a separate control server, which may control commands and responses between devices in the content streaming system.
[0225] The streaming server may receive content from a media storage and / or an encoding server. For example, when receiving 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 to provide a smooth streaming service.
[0226] Examples of the user device include a mobile phone, a smartphone, a laptop computer, a digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), a navigation system, a slate PC, a tablet PC, an ultrabook, a wearable device such as a smartwatch, smart glass, a head mounted display (HMD), a digital TV, a desktop computer, 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 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] 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: Identifying a current chroma block by segmenting the image; determining a tree type for the current chroma block; determining whether a matrix-based intra prediction mode is applied to a first luma sample position corresponding to the current chroma block based on the tree type of the current chroma block being a dual tree; determining whether a predetermined prediction mode is applied to a second luma sample position corresponding to the current chroma block based on the matrix-based intra prediction mode not being 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 when the predetermined prediction mode is not applied; determining an intra prediction mode for the current chroma block based on the intra prediction mode candidates and side information; mapping the intra-prediction mode of the current chroma block based on a chroma format; 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 first luma sample position, the second luma sample position, and the third luma sample position are the same; An image decoding method, wherein the predetermined prediction mode is a palette mode.
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 1 , 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 the width of the luma block to an x-component position of an upper 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, Identifying a current chroma block by segmenting the image; determining whether a matrix-based intra prediction mode is applied to a first luma sample position corresponding to the current chroma block based on the tree type of the current chroma block being a dual tree; determining whether a predetermined prediction mode is applied to a second luma sample position corresponding to the current chroma block based on the matrix-based intra prediction mode not being 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 when the predetermined prediction mode is not applied; an intra prediction mode of the current chroma block is determined based on the candidate intra prediction modes and side information; the intra prediction mode of the current chroma block is mapped based on a chroma format; 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 first luma sample position, the second luma sample position, and the third luma sample position are the same; An image coding method, wherein the predetermined prediction mode is a palette mode.
10. 1. A method for transmitting a bitstream, comprising: Identifying a current chroma block by segmenting the image; determining whether a matrix-based intra prediction mode is applied to a first luma sample position corresponding to the current chroma block based on the tree type of the current chroma block being a dual tree; determining whether a predetermined prediction mode is applied to a second luma sample position corresponding to the current chroma block based on the matrix-based intra prediction mode not being 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 when the predetermined prediction mode is not 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 candidate intra prediction modes and the side information; the intra prediction mode of the current chroma block is mapped based on a chroma format; 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 first luma sample position, the second luma sample position, and the third luma sample position are the same; The method, wherein the predetermined prediction mode is a palette mode.
Citation Information
Patent Citations
Using luma information for chroma prediction with separate luma-chroma framework in video coding
US20170272748A1
Intra video coding using a decoupled tree structure
US20180048889A1