Method and device for encoding and decoding chrominance signal on basis of correlation between effective components
By employing intra-screen and inter-screen prediction technologies with IBC and palette modes to model luminance-chrominance correlations, the method enhances encoding/decoding efficiency for high-resolution video, addressing data volume and cost challenges.
Patent Information
- Application Number
- PCT/KR2025/003967
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-27
- Filing Date
- 2025-03-27
- Publication Date
- 2025-10-02
AI Technical Summary
The increasing resolution and quality of image data lead to higher data volumes, resulting in increased transmission and storage costs, necessitating improved encoding/decoding efficiency in video signals, particularly for chrominance components.
A method and apparatus that utilize intra-screen and inter-screen prediction technologies, along with IBC and palette modes, to predict chrominance blocks by modeling correlation between luminance and chrominance components, employing linear and nonlinear models to enhance encoding/decoding efficiency.
This approach improves the accuracy of component-by-component prediction, reducing data volume and costs associated with high-resolution video transmission and storage.
Smart Images

Figure KR2025003967_02102025_PF_FP_ABST
Abstract
Description
Method and device for encoding and decoding color difference signals based on effective inter-component correlation
[0001] The present disclosure relates to a method and apparatus for encoding / decoding a video signal.
[0002] The demand for high-resolution, high-quality images is growing across a wide range of applications. As image data becomes higher in resolution and quality, the relative amount of data increases compared to conventional image data. Therefore, transmitting image data using existing media such as wired or wireless broadband lines or storing it using existing storage media incurs increased transmission and storage costs. To address these issues arising from the increasing resolution and quality of image data, high-efficiency image compression technologies can be utilized.
[0003] The present disclosure aims to improve encoding / decoding efficiency in predicting a chrominance block using correlation between components.
[0004] The present disclosure seeks to improve the accuracy of component-by-component prediction.
[0005] The video encoding / decoding method, device, and recording medium of the present disclosure may include a prediction unit determination step of determining a prediction unit for performing prediction of a chrominance component; a prediction technique determination step of determining a prediction technique to be applied to the prediction unit; a prediction mode determination step of determining a prediction mode for predicting the chrominance component based on the prediction technique; and a prediction performance step of performing prediction of the chrominance component based on the prediction mode.
[0006] In the video encoding / decoding method, device, and recording medium of the present disclosure, the prediction unit may be a chrominance block.
[0007] In the video encoding / decoding method, device, and recording medium of the present disclosure, the prediction technology may be an intra-screen prediction technology, an inter-screen prediction technology, an IBC (Intra Block Copy) technology, a palette mode technology, or a technology that mixes intra-screen prediction and inter-screen prediction.
[0008] In the video encoding / decoding method, device, and recording medium of the present disclosure, in response to the prediction technique being determined to be a technique other than an in-screen prediction technique, the prediction mode may be determined based on a Skip flag.
[0009] In the video encoding / decoding method, device, and recording medium of the present disclosure, in response to the prediction technique being determined as a technique that mixes intra-screen prediction and inter-screen prediction, the prediction mode can be determined using information of some or all pixels of the template of the prediction unit.
[0010] In the video encoding / decoding method, device, and recording medium of the present disclosure, the shape of the prediction unit may be a shape determined through geometric division.
[0011] In the video encoding / decoding method, device, and recording medium of the present disclosure, in response to the prediction technique being determined as an intra-screen prediction technique, the prediction mode may be any one of CfL (Chroma from luma), CCLM (Cross component linear model), MHCCP (Multi-hypothesis cross component prediction), and CCCM (Convolutional cross component model).
[0012] In the video encoding / decoding method, device, and recording medium of the present disclosure, prediction of the chrominance component can be performed based on a luminance block at a position corresponding to the prediction unit and pre-restored surrounding luminance samples of the luminance block.
[0013] In the video encoding / decoding method, device, and recording medium of the present disclosure, prediction of the chrominance component is performed based on a linear model between the chrominance component and the luminance component, and the linear model may include a scale parameter and an offset parameter.
[0014] In the video encoding / decoding method, device, and recording medium of the present disclosure, the linear model can be derived based on a chrominance template of the prediction unit and a luminance template at a position corresponding to the chrominance template.
[0015] In the video encoding / decoding method, device, and recording medium of the present disclosure, the linear model can be derived based on representative values of all or part of the samples of the chrominance template and representative values of all or part of the samples of the luminance template.
[0016] The present disclosure proposes a device and method for modeling correlation between components using information of restored luminance blocks at corresponding positions in the process of predicting a chrominance block, and predicting a chrominance block using the same, thereby improving encoding / decoding efficiency in predicting a chrominance block using correlation between components.
[0017] The present disclosure enables effective prediction of color difference signals.
[0018] FIG. 1 is a block diagram illustrating an embodiment of the present invention, in which prediction and inverse transformation units of a decoder are determined, prediction and inverse transformation are performed for the determined units, modes, and methods, and restoration is ultimately performed.
[0019] Figure 2 is a diagram showing a template of a chrominance component for pre-restored samples around a chrominance block currently being encoded / decoded.
[0020] Figure 3 is a drawing showing a template for the restoration samples around the luminance block at the corresponding position based on the template of the current chrominance block to be encoded / decoded.
[0021] Figure 4 illustrates a type of filter for downsampling according to the first embodiment.
[0022] Figure 5 illustrates a type of filter for downsampling according to the second embodiment.
[0023] Figure 6 illustrates a type of filter for downsampling according to the third embodiment.
[0024] Figure 7 illustrates the available filter shapes and the index to the filter coefficients for each filter shape.
[0025] Figure 8 illustrates a linear model obtained based on a luminance template and a chrominance template.
[0026] Figure 9 illustrates a step of obtaining a chrominance prediction signal based on a luminance template and a chrominance template.
[0027] Figure 10 is a diagram showing the locations of samples used to derive a linear model.
[0028] Figure 11 illustrates different embodiments of a step of obtaining a chrominance prediction signal by searching for a corresponding position luminance block.
[0029] Figure 12 illustrates different embodiments of obtaining a chrominance prediction signal based on a chrominance template, a luminance template, and an initial chrominance prediction signal.
[0030] Figure 13 is a drawing showing a block division structure of geometric division.
[0031] Figure 14 illustrates a template determined based on a geometric segmentation boundary.
[0032] Figure 15 illustrates an example of performing prediction for a sub-region of a chrominance block based on the segmentation boundary of a luminance block.
[0033] Figure 16 illustrates that the prediction mode of a sub-region is determined based on whether a reference sample determined based on the prediction mode of a sub-region of a luminance block is adjacent to a position of a corresponding position sub-region of a chrominance block.
[0034] Figure 17 shows an example in which the slope of the linear model between color difference components is adjusted.
[0035] Figure 18(a) shows a linear model according to the adjusted slope, and Figure 18(b) shows a linear model according to the adjusted slope and adjusted offset parameters.
[0036] Figure 19 illustrates an example in which a model is derived by dividing the luminance region into two regions.
[0037] FIG. 20 is a block diagram illustrating an embodiment of the present invention, in which prediction and transformation units of an encoder are determined, prediction and transformation are performed for the determined units, modes, and methods, and restoration is ultimately performed.
[0038] The present invention is susceptible to various modifications and embodiments. Specific embodiments are illustrated in the drawings and described in detail in the detailed description. However, this is not intended to limit the present invention to specific embodiments, but rather to encompass all modifications, equivalents, and alternatives falling within the spirit and technical scope of the present invention. Throughout the description of each drawing, similar reference numerals have been used to designate similar components.
[0039] While terms such as "first" and "second" may be used to describe various components, these components should not be limited by these terms. These terms are used solely to distinguish one component from another. For example, without departing from the scope of the present invention, a first component may be referred to as a "second component," and similarly, a second component may also be referred to as a "first component." The term "and / or" includes a combination of multiple related items described herein or any of multiple related items described herein.
[0040] When a component is referred to as being "connected" or "connected" to another component, it should be understood that it may be directly connected or connected to that other component, but that there may be other components intervening. Conversely, when a component is referred to as being "directly connected" or "connected" to another component, it should be understood that there are no other components intervening.
[0041] The terminology used in this application is only used to describe specific embodiments and is not intended to limit the present invention. The singular expression includes the plural expression unless the context clearly indicates otherwise. In this application, it should be understood that the terms "comprise" or "have" indicate the presence of a feature, number, step, operation, component, part, or combination thereof described in the specification, but do not exclude in advance the possibility of the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.
[0042] Hereinafter, with reference to the attached drawings, preferred embodiments of the present invention will be described in more detail. Hereinafter, identical components in the drawings will be designated by the same reference numerals, and redundant descriptions of identical components will be omitted.
[0043]
[0044] FIG. 1 is a block diagram illustrating an embodiment of the present invention, in which prediction and inverse transformation units of a decoder are determined, prediction and inverse transformation are performed for the determined units, modes, and methods, and restoration is ultimately performed.
[0045] The order of each process in the block diagram of Fig. 1 may be changed or omitted.
[0046] The prediction unit determination unit is a step for determining the size and shape of a block for performing prediction, and may include all methods based on direct or indirect information transmitted from the encoder. This may include not only a method for direct size and shape information of the current decoded block (=current block, current encoded block), but also a method for utilizing information that may influence the determination of size and shape information of the current decoded block, such as the number of divisions, depth, shape of division, direction of division, size information for the minimum division block, division information of surrounding pre-decoded neighboring blocks, and prediction mode.
[0047] The prediction technology decision unit may be a step that determines the prediction technology for each block. This may include intra-screen prediction technology, inter-screen prediction technology, intra-block copy (IBC) technology, palette mode technology, or a technology that combines intra-screen and inter-screen prediction methods.
[0048] The prediction mode decision unit is a step for deciding on a prediction mode according to the technology decided in the prediction technology decision unit, and is a step for deciding on a method for deciding on the direction of intra-screen prediction, the number of reference pictures in inter-screen prediction, affine mode, merge mode, etc. of pixel values of actual reference blocks. In some embodiments, the prediction technology decision unit and the prediction mode decision unit may be integrated into one step and operated in the same form as the prediction technology and mode decision unit.
[0049] The prediction execution unit can generate a first prediction signal block or a plurality of first prediction signal blocks through the above-determined prediction technique and prediction mode.
[0050] In the inverse transform unit determination unit, the inverse transform unit in which inverse transform will be performed on the residual signal is determined, and the kernel used for inverse transform is determined through the inverse transform performing unit, so that inverse transform on the residual signal can be performed.
[0051] Afterwards, a restoration signal can be generated by adding the prediction signal generated in the prediction execution unit and the residual signal generated in the inverse transformation execution unit.
[0052] The above inverse transform unit may refer to a unit that determines whether to perform inverse transform on a residual signal and transmits information about the inverse transform. Thereafter, in the inverse transform performing unit, a kernel to be applied to the inverse transform unit is determined, and inverse transform may be performed through the corresponding kernel. At this time, at least one kernel may be determined for one inverse transform unit. Inverse transform may be performed for N times according to an embodiment, and the sizes of the inverse transform unit and the inverse transform kernel may not be the same. That is, transformation may be performed on only some signals among the residual signal or transformation signal input to the inverse transform performing unit. The N may be a natural number equal to or greater than 1, 2, or 3, and may be a value predefined in the encoder / decoder or a value determined by information signaled from a bitstream.
[0053] According to an embodiment, the process of FIG. 1 may be performed independently for a luminance block and a chrominance block, respectively, and when the color format of the input video is a YUV format (YUV420, YUV411, YUV422, YUV444, etc.), the process may be performed for the luminance block and then for the chrominance block. According to an embodiment, when the color format of the input video is RGB, color conversion to YUV may be performed, and then encoding may be performed.
[0054] The following describes the contents of the present invention in detail with reference to Fig. 1.
[0055]
[0056] Prediction unit decision unit
[0057] According to one embodiment, in the encoder / decoder, a prediction unit is determined by a prediction unit determination unit, and the prediction unit may be a current block, one of the sub-blocks into which the current block is divided, a set of pixels, or a value of a single pixel, depending on the embodiment. The prediction unit may be determined by size information and shape information for performing prediction on a chrominance component and a luminance component. The prediction unit may be determined dependently or independently of the chrominance component and the luminance component. Dependently means that the prediction units of the luminance component or the chrominance components are not determined independently for each component, but rather that when the prediction unit of one component is determined, the units of the other components or components are determined with a corresponding size and shape. In this case, one component may correspond to one or more of the luminance component and the chrominance component. That is, the case may include a case where the luminance component is determined through information of the chrominance components. In another embodiment, the prediction unit of the chrominance component may have a size and shape determined based on the prediction unit of the luminance component according to a color format or a converted color format of the input video.
[0058] When determined dependently, information about the prediction unit of another component corresponding to a component, i.e., the dependently determined component, may be omitted. When determined independently, this means that the prediction units for the luminance component and the chrominance component are determined separately, and when determined independently, information about the prediction unit for each component may be transmitted separately. Here, the information about the prediction unit may include information that determines the size and shape of the prediction unit.
[0059]
[0060] Prediction Technology Decision Division
[0061] In one embodiment, the prediction technique of each prediction unit may be determined by the prediction technique determination unit. The prediction technique may be one of inter-screen prediction, intra-screen prediction, IBC, palette, or a technique combining intra-screen and inter-screen prediction methods.
[0062] In one embodiment, if the current block is not an intra-picture prediction technology, a 1-bit flag may be signaled / parsed, and if the flag is Skip, the inter-picture prediction merge mode or the IBC prediction merge mode may be determined, and in this case, the inverse transformation process may be omitted, so that the prediction signal may be used as the restoration signal. Here, skip may mean a method of not transmitting motion information (e.g., motion vector, reference picture, reference picture list, etc.) or transmitting motion information through only one syntax information, and additionally, a case in which a differential signal of the current block is not transmitted.
[0063] In one embodiment, if the current block is not a skip (if the flag indicates not a skip), a 1-bit flag for the prediction technique of the current block can be signaled / parsed to determine one of inter-picture prediction, intra-picture prediction, IBC, palette, etc. as the prediction technique of the current block.
[0064] In one embodiment, if the current block is not a skip and the prediction technique is determined as inter-screen prediction or IBC, it is possible to determine whether to perform prediction on the current block in merge mode or in advanced motion vector prediction (AMVP) mode by signaling and parsing a 1-bit flag. Here, AMVP mode may mean a mode in which each element in motion information is transmitted separately, and in addition to the motion information, a motion vector difference value is parsed and motion compensation is performed using the corrected motion information in a subsequent prediction process.
[0065]
[0066] Prediction mode decision unit
[0067] Determination of the prediction mode can be performed according to the above-determined prediction technique.
[0068] If the prediction technology of the current prediction unit is inter-frame prediction, the prediction mode of the current prediction unit block may perform motion compensation using motion information or motion information about the prediction unit and determine a signal or signals predicted through the motion compensation. In addition, it may be a mode for generating a prediction signal of the current prediction unit block as a weighted sum of a plurality of prediction signals including prediction signals generated through one or more motion compensations. In this case, one or more of the prediction signals may be signals of a previously decoded area of the same frame as the current block.
[0069] In one embodiment, when the prediction technique of the current prediction unit uses a technique that combines intra- and inter-picture prediction methods, the surrounding pre-reconstructed region of the current prediction unit block may be defined as a template, and an intra-picture prediction mode may be derived using information on some or all pixels of the template. In this case, the template may include both adjacent and non-adjacent regions with respect to the current prediction unit block, and the non-adjacent region may be an region within a certain distance of a pixel line from the current prediction unit block. When the non-adjacent region is used as a template, the distance may be transmitted from the encoder to the decoder. Alternatively, in one embodiment, information about the distance may be defined by an agreement between the encoder and the decoder, and the transmission of the distance information may be omitted. When defined by an agreement, the value may be fixed to a specific constant value, or may be variably determined by the horizontal and vertical pixel lengths of the prediction unit block, the block width, etc. Thereafter, the derived intra-picture prediction mode may be used to generate a final prediction signal of the current block.
[0070] In one embodiment, if the prediction technique of the current prediction unit block is inter-screen prediction, the current prediction unit may have a shape size determined through geometric partitioning. In this case, the prediction signal may be a geometric partitioning-based prediction mode that generates the prediction signal of the current prediction unit block through a weighted sum of the prediction signals for each geometric partitioning unit.
[0071] According to one embodiment, when the prediction technique of the current prediction unit block is intra-screen prediction, the prediction mode of the current prediction unit block may be a mode that generates a prediction signal of the current prediction unit block using at least one of a directional prediction mode, a Planar mode (Horizontal Planar or Vertical Planar or Regular Planar), a DC mode, a smooth mode, a recursive prediction mode or a prediction mode based on correlation between components (e.g., CfL (Chroma from luma), CCLM (Cross component linear model), MHCCP (Multi-hypothesis cross component prediction), CCCM (Convolutional cross component model), etc.).
[0072] According to one embodiment, when the prediction technique of the current prediction unit block is intra-screen prediction, the current prediction unit block may be divided into one or more sub-regions through geometric partitioning, and a prediction signal may be generated for each region using a prediction mode within the intra-screen prediction technique including a different directional prediction mode or a Planar mode or a DC mode, and the prediction signal of the current prediction unit block may be generated through a weighted sum of the respective prediction signals, which may be an intra-screen geometric partitioning-based prediction mode.
[0073] According to one embodiment, if the prediction technology of the current prediction unit block is intra-screen prediction, it may be a matrix-based intra-screen prediction mode that performs prediction by signaling / parsing the index of the matrix using a matrix predefined by an agreement between the encoder / decoder, or by signaling / parsing the matrix.
[0074] According to one embodiment, when the prediction technique of the current prediction unit block is an intra-screen prediction, the intra-screen template matching prediction mode may be configured to define a pre-restored area around the current prediction unit block as a template and perform template matching in the pre-restored surrounding area of the current prediction unit block to generate a prediction signal.
[0075] According to one embodiment, when the prediction technique of the current prediction unit block is intra-picture prediction, the pre-reconstructed region surrounding the current prediction unit block may be defined as a template, and the pre-reconstructed region surrounding the current prediction unit block may be defined as a template, and an intra-picture prediction mode may be derived using the template. Thereafter, the derived mode may be used to generate a final prediction signal of the current prediction unit block. At this time, the template may also include a region that is not adjacent to the current prediction unit block. The non-adjacent region may be an region within a certain distance of a pixel line from the current prediction unit block. When the non-adjacent region is used as a template, the distance may be transmitted from the encoder to the decoder. According to one embodiment, information about the distance may be defined by a convention between the encoding / decoding periods, and the transmission of the information may be omitted. When defined by a convention, the value may be fixed to a specific constant value, or may be variably determined by the length of horizontal and vertical pixels of the prediction unit block, the width of the block, etc.
[0076] In one embodiment, when the current prediction unit block is a chrominance block and the prediction technique of the current prediction unit block is intra-screen prediction, prediction may be performed through DM (Direct mode). As an example, DM mode may be a method of performing prediction of the current chrominance block using the same prediction method as the prediction method of the luminance block at the corresponding position of the current chrominance block.
[0077] According to one embodiment, when the current prediction unit block is a chrominance block and the prediction technique of the current prediction unit block is intra-screen prediction, the relationship between the surrounding restored chrominance samples of the current chrominance component and the surrounding restored luminance samples of the luminance block at the corresponding position of the current chrominance prediction unit block can be modeled as a linear or / and nonlinear model to generate a prediction signal of the current chrominance prediction unit block.
[0078]
[0079] Prediction Performance Department
[0080] According to one embodiment, when the current prediction unit block is a chrominance block and the prediction mode is determined as a prediction mode based on correlation between components, the relationship between the restored surrounding luminance samples of the luminance block at the corresponding position of the current chrominance block and the restored surrounding chrominance samples of the current chrominance block can be modeled, and prediction can be performed using the value determined through the modeling.
[0081] Figure 2 is a diagram showing a template of a chrominance component for pre-restored samples around a chrominance block currently being encoded / decoded.
[0082] Figure 3 is a drawing showing a template for the restoration samples around the luminance block at the corresponding position based on the template of the current chrominance block to be encoded / decoded.
[0083] According to one embodiment, as shown in FIG. 2, the shape and size of the template of the chrominance component may be defined for the restored samples around the chrominance block to be currently encoded / decoded. In addition, as shown in FIG. 3, a template corresponding to the template of the chrominance block may also be defined for the restored samples around the luminance block at the corresponding position of the chrominance block to be currently encoded / decoded, and the relationship between the chrominance component template and the luminance component template may be modeled as a linear and / or nonlinear model through at least one of a regression method, LDL decomposition, etc. The pixel values used when the modeling is performed may be some or all of the values within the template, and according to an embodiment, the pixel values may be the average value, the median value, or the value converted through downsampling / upsampling filtering of some or all of the pixel values within the template. In addition, a, b, m, n, p, and q of FIG. 2 may be integers greater than or equal to 1.
[0084] The embodiments through FIGS. 2 and 3 illustrate the case where the template and the current sub / decoding target block are adjacent, but the template and the current sub / decoding target block may not be adjacent. Non-adjacent means that they may not be located in a continuous coordinate space in terms of coordinates within the image, and even in the non-adjacent embodiments, templates of chrominance and luminance components may be defined with templates of various shapes and sizes, as in the cases of FIGS. 2 and 3. In the non-adjacent case, the distance relationship between the current sub / decoding target block and the template may be added to the definition of the template, and the distance may be implicitly determined or may be a value transmitted from the encoder to the decoder.
[0085] In one embodiment, the size and shape of the template may be implicitly determined based on the size of the current block, the definition of available samples among the surrounding pre-reconstruction samples, the prediction technique and method of the surrounding pre-reconstruction samples, whether the reference pictures of the current sub / decoding target block and the pre-reconstruction samples are the same, the aspect ratio of the current sub / decoding target block, etc., and some or all of the information about the shape and size of the template may be transmitted from the encoder to the decoder and determined by the decoder through signaling / parsing. Here, some or all may include a method in which some are determined implicitly and some are determined by transmission.
[0086] As an example where both the top and left templates are available, the position and number of templates used may vary depending on the width and height of the current chrominance block as follows:
[0087] 1) If the width of the current color difference block is more than twice the height, only M position samples of the upper template can be used.
[0088] 2) If the height of the current color difference block is more than twice its width, only N position samples of the left template can be used.
[0089] 3) In cases other than the conditions of the height and width of the current color difference block, both the K position samples of the upper template and the L position samples of the left template can be used.
[0090] Here, M, N, L, and K are integers greater than or equal to 1, and M and N can be 8, and K and L can be M / 2 and N / 2 or 4.
[0091]
[0092] In FIG. 3, p and q may be values determined according to the color format of the input image or video. In this case, depending on the embodiment, the size of the template area for each component may be different based on the color format of the input image or video.
[0093] At this time, modeling can be performed after downsampling is performed on the template of the luminance component. For example, the shape and coefficients of the downsampling filter can be implicitly determined in the decoder, or transmitted from the encoder to the decoder, and the decoder can determine them by parsing from the bitstream. At this time, depending on the embodiment, there may be one or more modes for the chrominance block prediction mode based on the correlation between components, and different downsampling filters can be used for each mode. For example, the shape and coefficients of the downsampling filter can be implicitly determined in the decoder, or transmitted from the encoder to the decoder, and the decoder can determine them by parsing from the bitstream. At this time, the shape and coefficients of the filter can be transmitted separately, or / and can be transmitted as a single piece of information.
[0094] According to one embodiment, the relationship between a chrominance template and a luminance template can be modeled without performing downsampling, regardless of the color format of the input video. In this case, a nonlinear model can be modeled.
[0095]
[0096] Figure 4 illustrates a type of filter for downsampling according to the first embodiment.
[0097] According to one embodiment, when the color format of the input video is YUV420, p and q in FIG. 3 may be 2. In this case, the filter for downsampling may have the type of FIG. 4, and information about it may be signaled / parsed. According to one embodiment, downsampling of the luminance component may be applied to some samples among the samples of the template of the luminance component. In one embodiment, when modeling is performed with only some samples in the template of the chrominance component, downsampling may be performed only for the corresponding samples in the luminance template corresponding to some samples in the template of the chrominance component. The signaling unit for the downsampling filter may be at least one of a sequence unit, a picture unit, a subpicture unit, a slice unit, a tile unit, and a block unit. Alternatively, it may be signaled that a specific filter is used in an upper unit, and changed to a specific slice block unit in a lower unit and used. For example, the shape of the filter and the transmission unit of the coefficients may be different from each other.
[0098] For example, the unit determining whether to use a filter and the unit determining the type of filter may be different. For example, while the use of a filter is determined at the sequence level unless there are special circumstances, the unit determining the type of filter may be determined at the block level. Here, special circumstances mean that the use of a filter determined at the sequence level is changed at the block level, and this can be determined by a related flag.
[0099]
[0100] Figure 5 illustrates a type of filter for downsampling according to the second embodiment.
[0101] In one embodiment, when the color format of the input video is YUV422, p and q in FIG. 3 may be 2 and 1 or 1 and 2. In this case, when p and q in FIG. 3 are 2 and 1, the filter for downsampling may have the type of FIG. 5 (a), or when p and q in FIG. 3 are 2 and 1, the filter may have the type of FIG. 5 (b), and information about this may be signaled / parsed.
[0102] In some embodiments, downsampling of the luminance component may be applied to some samples among the samples of the template of the luminance component. In some embodiments, when modeling is performed with only some samples in the template of the chrominance component, downsampling may be performed only on corresponding samples in the luminance template corresponding to some samples in the template of the chrominance component. The signaling unit for the downsampling filter may be at least one of a sequence unit, a picture unit, a subpicture unit, a slice unit, a tile unit, and a block unit. Alternatively, it may be signaled that a specific filter is used in an upper unit and changed to a specific slice block unit in a lower unit. For example, the shape of the filter and the transmission unit of the coefficients may be different from each other.
[0103] For example, the unit determining whether to use a filter and the unit determining the type of filter may be different. For example, while the use of a filter is determined at the sequence level unless there are special circumstances, the unit determining the type of filter may be determined at the block level. Here, special circumstances mean that the use of a filter determined at the sequence level is changed at the block level, and this can be determined by a related flag.
[0104]
[0105] According to one embodiment, when the color format of the input video is YUV444, the relationship between the chrominance template and the luminance template can be modeled without performing downsampling.
[0106] Downsampling in this specification may mean not only a method determined through coefficients illustrated in a drawing, but also all cases of a filter having a smaller number of output values than the input pixel values by taking a plurality of pixel values as input, and the method may be defined as at least one of a weighted average value, an average value, a median value, and a partial value.
[0107] According to one embodiment, for each color format type of the input video, an applicable downsampling filter can be defined by a decoder / encoder agreement, and information about this can be signaled / parsed.
[0108]
[0109] Figure 6 illustrates a type of filter for downsampling according to the third embodiment.
[0110] According to one embodiment, when the color format of the input video is YUV420, the shape and coefficients of the downsampling filter can be signaled / parsed respectively, and the signaling units of the shape and coefficients can be different. For example, the filter shape of the example of FIG. 6 can be applied. At this time, the number of filter shapes can be smaller or larger than that of the example of FIG. 6 depending on the case. For example, the number of shapes of available filters can be determined differently depending on the resolution of the input video. At this time, the filter shapes of the examples of FIGS. 6 (a) to (d) can be transmitted in sequence units, and the coefficients (a to i) of the filters of the examples of FIGS. 6 (a) to (d) can be transmitted in picture units. At this time, the filter coefficients can be determined in integer form, and the total sum of the coefficients in one filter can be a multiple of 2 or an exponentiation of 2. In other words, the unit in which the shape of the filter is determined and the unit in which the coefficients in the filter are determined can be different. As another example, the filter shapes of the examples of Figs. 6 (a) to (d) can be transmitted in sequence units, and the coefficients (a to i) of the filters of the examples of Figs. 6 (a) to (d) can be transmitted in block units. As another example, the filter shapes of the examples of Figs. 6 (a) to (d) can be transmitted in slice units, and the coefficients (a to i) of the filters of the examples of Figs. 6 (a) to (d) can be transmitted in block units.
[0111] In one embodiment, when the shape and coefficients of a filter are transmitted separately, the coefficients of the filter may be transmitted separately, and for one filter shape, a set of available filter coefficients may be defined by an agreement between a decoder and a decoder and managed in the form of a table, and the transmission of the filter coefficients may be transmitted in the form of an index. In this case, the table may be defined differently depending on the resolution of the input video, etc. In one embodiment, only one shape of the filter may be used for each color format, and only the coefficients of the filter may be transmitted separately to enable the use of various filters.
[0112]
[0113] Figure 7 illustrates the available filter shapes and the index to the filter coefficients for each filter shape.
[0114] In one embodiment, as shown in FIG. 7, after defining available filter shapes and available filter coefficient sets for each filter shape by a decoder / decoder agreement, the available filters can be organized in a table format and information about the filters can be transmitted in an index format. In this case, depending on the embodiment, the table can be organized differently for each series of units, such as a picture, a GOP (Group of Pictures), etc.
[0115] According to one embodiment, the downsampling filter may be determined by transmitting it in the form of a single index by defining it in a table format as shown in FIG. 7, or the shape and coefficient of the filter may be transmitted separately to determine the downsampling filter, and the information may be transmitted in the form of a 1-bit flag.
[0116]
[0117] Figure 8 illustrates a linear model obtained based on a luminance template and a chrominance template.
[0118] According to one embodiment, by using all samples in the luminance template and the chrominance template downsampled according to the color format, the relationship between the two templates can be modeled by using a method such as a linear minimum mean square error (LMMSE) predictor, and by deriving the values of the scaling parameter α and the offset parameter β, as in the example of Fig. 8, a linear function such as Equation (1) can be modeled. In this case, recT c (i,j) is the template of the current chroma block (chroma template) and recT' L (i,j) may be a template (luminance template) of a corresponding luminance block downsampled according to a color format.
[0119] recT c (i,j)=α×recT' L (i,j)+β Equation (1)
[0120]
[0121] Figure 9 illustrates a step of obtaining a chrominance prediction signal based on a luminance template and a chrominance template.
[0122] In one embodiment, as in the example of FIG. 9, a linear function may be modeled using only two or more partial samples of a luminance template and a chrominance template, and prediction may be performed using the same.
[0123] The process of performing the above prediction may be a 'color difference sample extraction' and a 'luminance sample extraction' process.
[0124] As an example for the case where the number of samples used to derive the upper template is P, 1) if max(W / P, 1) is 1, samples at all positions can be used. Conversely, 2) if max(W / P, 1) is not 1, sampling can be performed evenly in units of max(W / P, 1) from the upper template, so that P samples can be obtained. In this case, the starting position of the sampling can be the position where (max(W / P, 1))>>1. This can be equally applied to the left template.
[0125] At this time, some samples may be samples at locations determined by agreement between the encoder and decoder. For example, a set of multiple determined locations may be defined, and information about the locations may be signaled / parsed in the form of an index or other such information. At this time, the determined locations may differ depending on the shape and area of the template in FIG. 2.
[0126]
[0127] Figure 10 is a diagram showing the locations of samples used to derive a linear model.
[0128] According to one embodiment, when the upper and left areas of the current block are defined as templates, as in FIG. 10, a linear model can be derived using four samples in the chrominance template and four samples in the luminance template at corresponding positions. This can correspond to the 'chrominance sample extraction' and 'luminance sample extraction' processes of FIG. 9. At this time, the sample positions of each template can be positions defined by the encoder / decoder agreement according to the size of the current block. According to an embodiment, when not all samples in the luminance template are used, but only a specific number of samples at a set position are used, downsampling can be performed only on the sample positions to be brought for model derivation, rather than downsampling the entire luminance template in the example of FIG. 9.
[0129] As an example, a linear model can be derived using four samples in a chrominance template and four samples in a luminance template at corresponding positions. In an embodiment, when four luminance samples are arranged in ascending order of size as Y1, Y2, Y3, and Y4, respectively, four chrominance samples at corresponding positions are defined as C1, C2, C3, and C4, respectively, and then the average values of Y1 and Y2 (Y avg1 ) and the average value of C1, C2 (C avg1 ) as one coordinate, the average value of Y3, Y4 (Y avg2 ) and the average value of C3, C4 (C avg2 ) into a single coordinate, the slope and y-intercept values of the linear equation connecting the two points can be derived using the scaling parameter α and offset parameter β of Fig. 8 and equation (1). This can be performed as in equations (2) and (3), depending on the embodiment.
[0130]
[0131]
[0132] As another example, a linear model can be derived using six samples in a chrominance template and six samples in a corresponding luminance template. As another example, a linear model can be derived using eight samples in a chrominance template and eight samples in a corresponding luminance template.
[0133] According to one embodiment, a prediction signal of a current chrominance block to be decoded can be generated using a model for prediction. For a restored luminance block of a corresponding position of a current chrominance block to be decoded, which has been downsampled according to a color format of an input video, a chrominance prediction signal (pred) of each position c (i,j)) is the restored luminance signal (rec') of the corresponding position, as in Equation (4). L (i,j)) is input into the linear model to get the output value (pred c (i,j)) can be used to perform prediction.
[0134] pred c (i,j) = α×rec' L (i,j)+β Equation (4)
[0135] In one embodiment, at least one of the two parameters (α, β) representing scale and offset parameters for representing the correlation between the chrominance component and the luminance component as a linear model can be obtained through signaling / parsing. For example, α can be used by parsing, and β can be derived and used by the decoder. In this case, α can be transmitted as follows. For example, α of the Cb component and the Cr component in the chrominance component can be transmitted with different values and can be transmitted separately. In this case, the sign value and the magnitude value can be transmitted separately.
[0136]
[0137] Figure 11 illustrates different embodiments of a step of obtaining a chrominance prediction signal by searching for a corresponding position luminance block.
[0138] According to one embodiment, as in the example of FIG. 11, the scale parameter α may be signaled from the encoder, and the offset parameter β may be used as a chrominance prediction signal. In this case, the chrominance prediction signal may be a prediction signal generated by performing intra-screen prediction using surrounding reference samples of the chrominance block currently being decoded.
[0139] In the example of Fig. 11(a), the prediction mode used for ‘generating the initial luminance prediction signal’ and the prediction mode used for ‘generating the initial chrominance prediction signal’ may be the same mode.
[0140] In one embodiment, when a linear model is derived through the example of FIG. 11, the linear model can be obtained and prediction can be performed using equation (5). In this case, recT C (i,j) is the template of the current chrominance block to be decoded (chrominance template) and rec' L,AC (i,j) may be a differential signal of the initial luminance prediction signal generation value from the restored luminance signal of the corresponding position downsampled according to the color format (in the case of Fig. 11 (a)), or may be a differential signal of the average value from the restored luminance signal of the corresponding position downsampled according to the color format (in the case of Fig. 11 (b)).
[0141] In the example of Fig. 11, the average value may mean a representative value, which may be defined as at least one of a weighted average value, a mean value, a median value, and some values.
[0142] pred c (i,j) = α×rec' L,AC (i,j)+β Equation (5)
[0143]
[0144] Figure 12 illustrates different embodiments of obtaining a chrominance prediction signal based on a chrominance template, a luminance template, and an initial chrominance prediction signal.
[0145] According to one embodiment, as in the example of FIG. 12, both the scale parameter α and the offset parameter β may be derived and calculated by the encoder and used. At this time, the initial chrominance prediction signal may not be used. At this time, the offset parameter β may be used as a chrominance prediction signal, which may be a prediction signal generated by performing intra-screen prediction using surrounding reference samples of the current decoding target chrominance block, and may be used as a different value according to each position of the current decoding target chrominance block. At this time, in the example of FIG. 12(a), the prediction mode used for 'generating the initial luminance prediction signal' and the prediction mode used for 'generating the initial chrominance prediction signal' may be the same mode. According to an embodiment, the 'average value extraction' process may be omitted, and if omitted, the average value difference process may be omitted in the description below.
[0146] In one embodiment, when a linear model is derived through the example of FIG. 12, the linear model can be obtained as in Equation (6), and prediction can be performed using Equation (7). The 'color difference sample extraction' and 'luminance sample extraction' processes of FIG. 12 (a) and (b) may be the same as the 'color difference sample extraction' and 'luminance sample extraction' processes described above.
[0147] According to the embodiment, recT of equation (6) C,AC (i,j) may be a template whose mean value is different from the template of the current chrominance block (chrominance template), and recT' L,AC (i,j) may be a template in which the average value of the corresponding luminance template downsampled according to the color format is differential, and β may be an initial chrominance prediction signal.
[0148] At this time, in the example of Fig. 12, the average value may mean a representative value, which may be defined as at least one of a weighted average value, an average value, a median value, a partial value, etc. According to an embodiment, rec' of Equation (7) L,AC(i,j) may be a differential signal generating an initial luminance prediction signal from a restored luminance signal of a corresponding position downsampled according to a color format (in the case of Fig. 12 (a)), or may be a differential signal generating an average value from a restored luminance signal of a corresponding position downsampled according to a color format (in the case of Fig. 12 (b)), and β may be an initial chrominance prediction signal.
[0149] recT C,AC (i,j) = α×recT' L,AC (i,j)+β Equation (6)
[0150] pred c (i,j) = α×rec' L,AC (i,j)+β Equation (7)
[0151] As an example, in the examples of FIGS. 11 and 12, both luminance and chrominance can use the prediction mode in DC mode. In this case, when using DC mode, the same downsampling method used in the downsampling process of the corresponding position luminance block is applied to the luminance template, and then the value of the downsampled luminance template applied in DC mode can be used.
[0152]
[0153] Figure 13 is a drawing showing a block division structure of geometric division.
[0154] As an example, in the examples of FIGS. 11 and 12, the prediction mode used for 'generating an initial luminance prediction signal' and / or the prediction mode used for 'generating an initial chrominance prediction signal' may utilize the prediction mode used in the prediction process of the luminance block at the corresponding position of the chrominance block currently being decoded. This may be determined based on the block division structure.
[0155] In some embodiments, when the block division structure is a 'single tree', the block division structure of the chrominance block in the chrominance component may have the same division structure as the block division structure of the luminance block in the luminance component. In this case, the prediction mode used for 'generating the initial luminance prediction signal' and / or the prediction mode used for 'generating the initial chrominance prediction signal' may use the prediction mode used in the prediction process of the luminance block at the corresponding position of the chrominance block to be currently decoded. In some embodiments, when the corresponding position luminance block is subjected to geometric division-based prediction, the prediction modes of the two sub-regions may be different based on the geometric division boundary, as in the example of FIG. 13.
[0156]
[0157] Figure 14 illustrates a template determined based on a geometric segmentation boundary.
[0158] At this time, the model for predicting the current target chrominance block for decoding can be composed of multiple sub-regions of the luminance block to perform prediction. As an example, a template for model derivation can be determined for integers n and m greater than or equal to 1 based on geometric segmentation boundaries, as shown in the example of Figure 14.
[0159] As an example, as shown in Fig. 14 (a) and (b), the current decoding target chrominance block can be divided into two sub-regions using the geometric division mode of the corresponding luminance block, adjacent templates A and B can be configured based on the division boundary, and models for predicting sub-regions A and B can be generated using these, respectively. At this time, the template according to the geometric division boundary can be determined based on the extended boundary by extending the geometric division boundary to the template.
[0160] As an example, the current decoding target chrominance block can be divided into two sub-regions using the geometric division mode of the corresponding luminance block as shown in Fig. 14 (c), (d), (e), and (f), and adjacent templates A and B can be configured as one of L-shape / Top only / Left only based on the division boundary. At this time, the template shape for each sub-region according to the geometric division mode can be implicitly determined by being defined by an agreement between the decoder and the decoder.
[0161] Afterwards, models for prediction of sub-regions A and B can be generated using the configured templates A and B, respectively. In this process, as shown in Fig. 14, models for prediction can be generated using adjacent templates of each sub-region, as in the examples of Figs. 11 and 12, and at this time, the prediction mode used for 'generating initial luminance prediction signals' and the prediction mode used for 'generating initial chrominance prediction signals' can use the prediction mode of each luminance sub-region. At this time, if the prediction mode of the luminance sub-region is not an intra-screen directional prediction mode, but a mode such as inter-screen prediction or IBC prediction, palette prediction, or non-directional intra-screen prediction mode, one intra-screen prediction mode defined by the encoder / decoder agreement (for example, DC mode, etc.) can be used. Alternatively, the directionality of the restored luminance sub-block can be derived, and an intra-screen directional prediction mode corresponding to the directionality can be used.
[0162] At this time, a model for each chrominance sub-region is obtained, prediction is performed using this model, and then weighted sum of the sub-regions can be performed based on the geometric segmentation boundary. At this time, the weighted sum matrix used for the weighted sum can be a matrix obtained by downsampling the weighted sum matrix of the corresponding luminance block according to the color format, or / and a fixed weighted sum matrix can be used.
[0163] According to one embodiment, it is possible to determine whether to perform prediction using a single model or to divide the current decoding target chrominance block into multiple sub-regions based on the prediction mode of the corresponding position luminance block and perform prediction using each model through signaling / parsing of a 1-bit flag.
[0164]
[0165] In some embodiments, when the block division structure is a 'dual tree', the block division structure of the chrominance block in the chrominance component may be a structure in which the division structure is determined independently from the block division structure of the luminance block in the luminance component and division is performed, and at this time, the division structures of the luminance block and the chrominance block may be the same up to a certain division depth. At this time, information of a certain division depth may use a fixed value by a codec / decoder agreement, and may be determined by signaling / parsing for each specific unit such as CTU, slice, etc.
[0166]
[0167] Figure 15 illustrates an example of performing prediction for a sub-region of a chrominance block based on the segmentation boundary of a luminance block.
[0168] According to an embodiment, when a corresponding position luminance block area of a current decoding target chrominance block is predicted as a plurality of blocks in the prediction process, as shown in FIG. 15, the division boundary of the corresponding luminance block is applied to the current decoding target chrominance block, and a model for each sub-region (A', B', C', D') is obtained, and prediction can be performed using the same. In this process, as shown in FIG. 15, a model for prediction can be generated using adjacent templates of each sub-region, as in the examples of FIGS. 11 and 12, and at this time, the prediction mode used for 'generating an initial luminance prediction signal' and the prediction mode used for 'generating an initial chrominance prediction signal' can use the prediction mode of each luminance sub-region (A, B, C, D). At this time, if the prediction mode of the luminance sub-region is not an intra-screen directional prediction mode, but an inter-screen prediction mode or an IBC prediction, a palette prediction, a non-directional intra-screen prediction mode, etc., a single intra-screen prediction mode (for example, a DC mode, etc.) defined by the decoder / encoder agreement can be used. Alternatively, the directionality of the restored luminance sub-region can be derived, and an intra-screen directional prediction mode corresponding to the directionality can be used. At this time, a sub-region that is not adjacent to the left and upper boundaries of the current prediction unit block, such as regions D and D' in FIG. 15, can use a fixed mode (for example, a DC mode) regardless of the prediction mode of the luminance sub-region, and at this time, a template for model generation can be obtained using an adjacent template of the current block.
[0169] Figure 16 illustrates that the prediction mode of a sub-region is determined based on whether a reference sample determined based on the prediction mode of a sub-region of a luminance block is adjacent to a position of a corresponding position sub-region of a chrominance block.
[0170] According to one embodiment, when performing initial prediction of a sub-region using a prediction mode of a corresponding position luminance block of a sub-region according to adjacent template regions of each sub-region, if non-adjacent reference samples are used, the prediction mode of the corresponding sub-region may be used as a fixed mode by a sub-decoder agreement. This means that a directional prediction mode that can be used may be defined by the sub-decoder agreement depending on whether the template of the sub-region is adjacent to the upper left, left, or top of the current block. For example, as shown in FIG. 16, if the prediction mode of the corresponding sub-region in the corresponding position luminance block of sub-region B is a horizontal directional prediction mode, prediction may be performed using a DC mode defined by a sub-decoder agreement rather than a horizontal directional prediction mode since the reference samples of the current block used for prediction and the positions of the sub-region are non-adjacent.
[0171] In one embodiment, when performing prediction using different models for each sub-region, a model for each chrominance sub-region can be obtained, prediction can be performed using the model, and then a weighted sum of the sub-region boundaries can be performed to generate a final chrominance prediction block. In this case, as illustrated in FIG. 15, the weighted sum can utilize an average between adjacent pixels based on the boundary.
[0172] In one embodiment, the maximum number of available sub-regions of a corresponding luminance block is defined by an agreement between the sub-decoder and the decoder, and if the number of sub-regions is greater than the maximum number, a method for configuring sub-regions up to the maximum number can be defined by the agreement between the sub-decoder and the decoder. As an example, the sub-regions can be configured by repeatedly merging the smallest sub-region among the sub-regions with other adjacent sub-regions.
[0173] According to one embodiment, the minimum size of each sub-region of the corresponding luminance block is defined by an agreement between the sub-decoder and the decoder, and if the size of the sub-region is smaller than the minimum size, the sub-region can be combined with an adjacent sub-region to form one sub-region by an agreement between the sub-decoder and the decoder.
[0174] According to one embodiment, if prediction is performed in geometric segmentation mode for the largest sub-region among each sub-region of the corresponding luminance block, prediction is performed by segmenting the chrominance block into each sub-region based on the geometric segmentation boundary, as in the example in FIG. 14, generating a model for each sub-region, and performing weighted sum using a weighted sum matrix to generate a final prediction signal.
[0175] According to one embodiment, it is possible to determine whether to perform prediction using a single model or to divide the current decoding target chrominance block into multiple sub-regions based on the prediction mode of the corresponding position luminance block and perform prediction using each model through signaling / parsing of a 1-bit flag.
[0176] According to one embodiment, when performing correlation-based prediction between components by dividing a current decoding target chrominance block into multiple sub-regions, correlation-based prediction may be performed on at least one sub-region, not the entire sub-region, and intra-screen and / or inter-screen prediction may be performed on the remaining regions.
[0177] According to one embodiment, as in the embodiment of FIG. 9, the offset parameter β may be derived, or as in the embodiments of FIGS. 11 and 12, the offset parameter β may be used as a value generated through 'initial chrominance prediction signal generation'. At this time, an additional offset value of the offset parameter may be transmitted from the encoder. At this time, when the current decoding target chrominance block is divided into a plurality of sub-regions and modeling for prediction of each sub-region is performed, a different additional offset value may be used for each sub-region. Or / and the same additional offset value may be used for all sub-regions. The method of signaling / parsing the additional offset value may be as follows.
[0178] As an example, information indicating that the additional offset values for both the Cb and Cr components are 0 can be signaled / parsed as a 1-bit flag, and if that information is false, the additional offsets for the Cb and Cr components can be signaled / parsed as a single index using a combination of whether they are 0, a '+' sign, or a '-' sign, respectively. Afterwards, the magnitude value of the additional offset values of the Cb and Cr components that are not 0 can be signaled / parsed.
[0179] As an example, if model-based prediction is performed on a sub-region basis of the current decoding target chrominance block, for each of the Cb component and Cr component, information on whether all additional offset values of all sub-regions are 0 or not can be signaled / parsed, and if there are additional offset values that are not 0, the sign and magnitude values of the additional offset values can be signaled / parsed for each sub-region.
[0180] In one embodiment, when performing prediction of a chrominance block based on a linear model derived between a chrominance component and a luminance component, as in the embodiments of FIGS. 9 and 12, the slope of the linear model may be adjusted by adjusting the derived scale parameter α through additional signaling / parsing. To this end, a 1-bit flag information indicating whether to adjust the slope may be signaled / parsed, and if the slope is adjusted, a constant value to be adjusted may be signaled / parsed. At this time, the adjustable slope value may be transmitted in the form of an index within a table defined by an agreement between a decoder and a processor.
[0181] Depending on the embodiment, only one of the slope adjustment of the linear model and the transmission of the additional offset parameter can be applied to a block.
[0182]
[0183] Figure 17 shows an example in which the slope of the linear model between color difference components is adjusted.
[0184] According to an embodiment, when performing prediction of a chrominance block based on a linear model derived between a chrominance component and a luminance component, as in the embodiment of Fig. 9, when adjusting the slope of the linear model, the slope (α) of the linear model derived as in Equation (1) can be adjusted through Equations (8) and (9) using the slope adjustment value (u) transmitted as in Fig. 17 to obtain the linear model of Equation (10). At this time, Luma of Equation (9) m The value may be an average of two or more samples within a downsampled luminance template according to the color format, or a value transmitted from the encoder.
[0185] α' = α + u Equation (8)
[0186] β' = β - u + Luma m Equation (9)
[0187] recT C (i,j) = α' × recT' L (i,j) + β' Equation (10)
[0188] Figure 18(a) shows a linear model according to the adjusted slope, and Figure 18(b) shows a linear model according to the adjusted slope and adjusted offset parameters.
[0189] According to an embodiment, when performing prediction of a chrominance block based on a linear model derived between a chrominance component and a luminance component, as in the embodiment of FIG. 12, when adjusting the slope of the linear model, the linear model can be obtained by adjusting the slope (α) of the linear model using the slope adjustment value (u) transmitted as in FIG. 18.
[0190] As an example, as shown in Fig. 18 (a), only the slope (α) of the linear model can be adjusted according to the slope change. At this time, the adjusted slope (α') of Fig. 18 (a) can be obtained using the slope adjustment value (u) transmitted as in Equation (8). Thereafter, the adjusted slope (α') can be applied to Equation (7) to perform prediction of the chrominance block.
[0191] As an example, as shown in Fig. 18 (b), the slope (α) and offset parameter (β) of the linear model can be adjusted according to the slope change. At this time, the adjusted slope (α') can be obtained through Equation (8) and the adjusted offset parameter (β') can be obtained through Equation (9) using the received slope adjustment value (u). In this case, Luma in Equation (9) m The value can be the average of two or more samples in the downsampled luminance template according to the color format, the average of the corresponding position luminance block downsampled according to the color format, an implicitly determined value (for example, 0), or a value transmitted from the encoder. Then, the adjusted slope (α') and the adjusted offset parameter (β') can be applied to equation (7) to perform prediction of the chrominance block.
[0192] In the above example, the average value may mean a representative value, which may be defined as at least one of a weighted average value, a mean value, a median value, and some values.
[0193]
[0194] According to one embodiment, when the prediction mode of the current chrominance block to be decoded is a prediction mode based on correlation between components, multiple models can be derived and used to predict the current chrominance block to be decoded without dividing the current prediction unit block into sub-regions.
[0195]
[0196] Figure 19 illustrates an example in which a model is derived by dividing the luminance region into two regions.
[0197] In one embodiment, information regarding the prediction of the current target chrominance block to be decoded by deriving multiple models can be signaled / parsed in the form of a 1-bit flag. If the information is true, two or more models can be derived and used to predict the current chrominance block. As an example, as shown in FIG. 19, the luminance value range can be divided into two regions based on τ, thereby deriving two models. For example, in the case of obtaining a linear model as shown in FIGS. 9 and 12, in the parameter derivation process, in the case of FIG. 9, τ may be the average value of two or more samples in the luminance template downsampled according to the color format, or a value transmitted from the encoder, and in the case of FIG. 12, τ may be the average value of two or more samples in the luminance template downsampled according to the color format, or the average value of the corresponding position luminance block downsampled according to the color format, or an implicitly determined value (as an example, 0), or a value transmitted from the encoder, and in the case of FIG. 11, in the case of obtaining a linear model, a scaling parameter for each model may be transmitted. At this time, τ may be the average value of two or more samples in the luminance template downsampled according to the color format, or the average value of the corresponding position luminance block downsampled according to the color format, or an implicitly determined value (as an example, 0), or a value transmitted from the encoder. In the above example, the average value may mean a representative value, which may be defined as at least one of a weighted average value, a mean value, a median value, and some values.
[0198]
[0199] The above embodiment relates to a method for modeling the relationship between local sample values of the chrominance component and the luminance component by using information about samples of the decoded surrounding area when the prediction for the luminance component is performed in the order in which the prediction for the chrominance component is performed during the process of performing encoding / decoding, and reflecting the modeled result in the prediction of the chrominance component. According to an embodiment, if the encoding / decoding order of the chrominance component and the luminance component is changed so that the chrominance component is encoded / decoded first and the luminance component is encoded / decoded later, the above embodiment can be modified and applied. The general modeling method that is modified and applied is the same, but it is possible for the downsampling process to be changed to upsampling and applied depending on the sampling ratio of the luminance component and the chrominance component. This relates to a general method in an area that can be inferred by a person having ordinary skill in the art.
[0200]
[0201] Transform coefficient entropy decoding unit
[0202] According to one embodiment, the transform coefficient entropy decoding unit can restore quantized second-order transform coefficients when a second-order transform is applied, and can perform restoration of quantized first-order transform coefficients when a second-order transform is not applied.
[0203]
[0204] Transformation coefficient inverse quantization part
[0205] According to one embodiment, the transform coefficient dequantization unit can perform dequantization by parsing information such as quantization method and quantization parameter information for the restored transform coefficients to obtain dequantized transform coefficients.
[0206]
[0207] Inverse transformation unit decision unit
[0208] According to one embodiment, the transform and inverse transform units in the encoder / decoder may be one transform unit (TU) or each sub-block obtained by dividing one TU into multiple units in the inverse transform unit determination unit.
[0209]
[0210] Inverse transform kernel decision unit and inverse transform execution unit
[0211] According to one embodiment, the inverse transform kernel determination unit can determine separable vertical and horizontal first-order inverse transform kernels and / or non-separable second-order inverse transform kernels, or determine a non-separable first-order inverse transform kernel.
[0212] According to one embodiment, the inverse transform performing unit can perform inverse transform on the inverse quantized transform coefficients using the inverse transform kernel determined by the inverse transform kernel determining unit.
[0213] In one embodiment, whether to perform a non-separable first-order inverse transform and whether to perform a non-separable second-order inverse transform can be determined through signaling / parsing, and can be implicitly determined based on the size of the current TU, etc.
[0214]
[0215] Restoration Department
[0216] According to one embodiment, a residual signal restored through an inverse transform performing unit can be combined with a final prediction signal generated through a prediction performing unit to generate a final restored signal.
[0217]
[0218] FIG. 20 is a block diagram illustrating an embodiment of the present invention, in which prediction and transformation units of an encoder are determined, and prediction and transformation are performed for the determined units, modes, and methods to encode a residual signal.
[0219] The order of each process in the block diagram of Fig. 20 may be changed or omitted. Fig. 20 is a block diagram corresponding to the decryption block diagram of Fig. 1.
[0220] The prediction unit determination unit is a step for determining the size and shape of a block for performing prediction, and direct or indirect information about the determined prediction unit can be encoded. The information may include not only a method for direct size and shape information of the current coded block (=current block, current decoded block), but also information related to the size and shape of the current block, such as the number of divisions, depth, shape of division, direction of division, size information for the minimum division block, division information of surrounding pre-decoded neighboring blocks, and prediction mode.
[0221] The prediction technology decision unit may be a step that determines the prediction technology for each block. This may include intra-screen prediction technology, inter-screen prediction technology, intra-block copy (IBC) technology, palette mode technology, or a technology that combines intra-screen and inter-screen prediction methods.
[0222] The prediction mode decision unit is a step for deciding on a prediction mode according to the technology decided in the prediction technology decision unit, and is a step for deciding on a method for deciding on the direction of intra-screen prediction, the number of reference pictures in inter-screen prediction, affine mode, merge mode, etc. of pixel values of actual reference blocks. In some embodiments, the prediction technology decision unit and the prediction mode decision unit may be integrated into one step and operated in the same form as the prediction technology and mode decision unit.
[0223] The prediction execution unit can generate a first prediction signal block or a plurality of first prediction signal blocks through the above-determined prediction technique and prediction mode.
[0224] If the prediction signal block generated by the prediction performing unit is a prediction signal block that exhibits optimal encoding / decoding efficiency, information related to the determined prediction mode, prediction technique, prediction unit, etc. can be transmitted to the encoder via a bitstream as prediction-related information.
[0225] The residual block acquisition unit can acquire a residual signal based on the generated prediction signal and the original signal. Here, the generated prediction signal may be a prediction signal that exhibits optimal encoding / decoding efficiency.
[0226] In the transformation unit determination unit, the transformation unit in which transformation will be performed on the residual signal is determined, and the kernel used for transformation can be determined through the transformation execution unit to perform transformation on the residual signal. The transformation unit corresponds to the aforementioned inverse transformation unit, and a detailed description thereof is omitted as described above.
[0227] The transform kernel determining unit can determine separable vertical and horizontal first-order transform kernels and / or non-separable second-order transform kernels, or can determine non-separable first-order transform kernels.
[0228] The transformation performing unit can perform transformation on the residual signal using the transformation kernel determined by the transformation kernel determining unit.
[0229] The transform coefficient quantization unit can perform quantization on the transformed coefficient to obtain a quantized transform coefficient. Here, the quantization method and quantization parameter information can be encoded and transmitted to the decoder.
[0230] The transform coefficient entropy encoding unit can encode quantized transform coefficients and transmit them to a decoder via a bitstream. If a secondary transform is applied, the quantized secondary transform coefficients can be encoded, and if no secondary transform is applied, the quantized primary transform coefficients can be encoded.
[0231]
[0232] While the exemplary methods of this disclosure are presented as a series of operations for clarity of description, this is not intended to limit the order in which the steps are performed, and individual steps may be performed simultaneously or in different orders, if desired. To implement a method according to this disclosure, additional steps may be included in addition to the steps illustrated, some steps may be excluded and the remaining steps included, or some steps may be excluded and additional steps included.
[0233] The various embodiments of the present disclosure are not intended to list all possible combinations but rather to illustrate representative aspects of the present disclosure, and the matters described in the various embodiments may be applied independently or in combinations of two or more.
[0234] Additionally, various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof. In the case of hardware implementation, the embodiments may be implemented by one or more ASICs (Application Specific Integrated Circuits), DSPs (Digital Signal Processors), DSPDs (Digital Signal Processing Devices), PLDs (Programmable Logic Devices), FPGAs (Field Programmable Gate Arrays), general processors, controllers, microcontrollers, microprocessors, etc.
[0235] The scope of the present disclosure includes software or machine-executable instructions (e.g., operating systems, applications, firmware, programs, etc.) that cause operations according to the methods of various embodiments to be executed on a device or a computer, and a non-transitory computer-readable medium having such software or instructions stored thereon and executable on the device or computer.
[0236] The present disclosure may be industrially applicable in the fields of encoding / decoding methods, devices, and recording media for predicting a color difference block using correlation between components.
Claims
1. A prediction unit determination step for determining a prediction unit that performs prediction of a color difference component; A prediction technique determination step for determining a prediction technique to be applied to the above prediction unit; A prediction mode determination step for determining a prediction mode for predicting the color difference component based on the above prediction technology; and An image decoding method, characterized in that it includes a prediction performing step of performing prediction of the chrominance component based on the prediction mode.
2. In paragraph 1, An image decoding method, characterized in that the above prediction unit is a chrominance block.
3. In paragraph 2, A video decoding method, characterized in that the above prediction technology is an intra-screen prediction technology, an inter-screen prediction technology, an IBC (Intra Block Copy) technology, a palette mode technology, or a technology that is a mixture of intra-screen prediction and inter-screen prediction.
4. In paragraph 3, A video decoding method, characterized in that, in response to the above prediction technique being determined as a technique other than an on-screen prediction technique, the prediction mode is determined based on a Skip flag.
5. In paragraph 1, A video decoding method, characterized in that the prediction mode is determined using information of some or all pixels of the template of the prediction unit in response to the prediction technique being determined to be a mixed technique of intra-screen prediction and inter-screen prediction.
6. In paragraph 1, An image decoding method, characterized in that the shape of the above prediction unit is a shape determined through geometric division.
7. In paragraph 1, A method for decoding an image, characterized in that, in response to a case where the above prediction technique is determined as an in-screen prediction technique, the prediction mode is any one of CfL (Chroma from luma), CCLM (Cross component linear model), MHCCP (Multi-hypothesis cross component prediction), and CCCM (Convolutional cross component model).
8. In paragraph 1, An image decoding method, characterized in that the prediction of the above chrominance component is performed based on a luminance block at a position corresponding to the prediction unit and pre-restored surrounding luminance samples of the luminance block.
9. In paragraph 1, The prediction of the above chrominance component is performed based on a linear model between the chrominance component and the luminance component, An image decoding method, characterized in that the linear model includes a scale parameter and an offset parameter.
10. In paragraph 9, An image decoding method, characterized in that the linear model is derived based on a chrominance template of the prediction unit and a luminance template at a position corresponding to the chrominance template.
11. In paragraph 10, An image decoding method, characterized in that the linear model is derived based on representative values of all or part of the samples of the chrominance template and representative values of all or part of the samples of the luminance template.
12. A prediction unit determination step for determining a prediction unit that performs prediction of a color difference component; A prediction technique determination step for determining a prediction technique to be applied to the above prediction unit; A prediction mode determination step for determining a prediction mode for predicting the color difference component based on the above prediction technology; and An image encoding method, characterized in that it includes a prediction performing step of performing prediction of the chrominance component based on the prediction mode.
13. In a computer-readable recording medium storing a bitstream generated by an image encoding method, The above image encoding method comprises: a prediction unit determination step of determining a prediction unit that performs prediction of a chrominance component; A prediction technique determination step for determining a prediction technique to be applied to the above prediction unit; A prediction mode determination step for determining a prediction mode for predicting the color difference component based on the above prediction technology; and A computer-readable recording medium, characterized in that it includes a prediction performing step of performing prediction of the color difference component based on the prediction mode.
Citation Information
Patent Citations
Method and apparatus for processing a video signal
KR1020180005121A
Method for learning artificial neural network suggesting information
KR1020220121100A
A device, a method and a computer readable storage medium for industrial safety management
KR1020240081730A
Heat transfer tester
KR102656772B1
KR20220003022A