Dimension-dependent downsampling in cross-component linear models

By employing a cross-component linear model prediction mode in video coding, the prediction process of chroma blocks is optimized, solving the problems of high computational complexity and low coding efficiency in high-resolution video coding, and achieving more efficient coding performance and lower computational complexity.

CN110896480BActive Publication Date: 2024-09-10DOUYIN VISION CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201910867329.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-05-22
Filing Date
2019-09-12
Publication Date
2024-09-10
Estimated Expiration
2039-09-12

AI Technical Summary

Technical Problem

Existing video coding technologies suffer from high computational complexity and low coding efficiency when processing high-resolution videos. In particular, cross-component prediction requires a large number of adjacent luminance sample points, which increases the complexity of hardware design.

Method used

The Cross-Component Linear Model (CCLM) prediction mode is adopted. By using downsampled luminance sample points inside and outside the luminance block and the linear model, the computational complexity is reduced and the coding efficiency is improved. This includes the application of multi-model CCLM mode and different downsampling filters to optimize the prediction process of chroma blocks.

Benefits of technology

It effectively reduces the computational complexity of video coding, while improving coding efficiency, reducing dependence on adjacent brightness sample points, and enhancing the flexibility of hardware design and coding performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110896480B_ABST
    Figure CN110896480B_ABST
Patent Text Reader

Abstract

The present invention relates to size-dependent downsampling in a cross-component linear model. Apparatus, systems and methods for digital video encoding including cross-component prediction are described. In a typical aspect, a method for video encoding includes receiving a bitstream representation of a current block of video data including a luma component and a chroma component, determining parameters of a linear model based on a first set of sample points generated by downsampling a second set of sample points of the luma component, and processing the bitstream to generate the current block based on the parameters of the linear model.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application timely claims the priority and benefit of International Patent Application Nos. PCT / CN2018 / 105182 filed on September 12, 2018, PCT / CN2018 / 108681 filed on September 29, 2018, and PCT / CN2019 / 088005 filed on May 22, 2019, in accordance with the applicable provisions of the Patent Law and / or the Paris Convention. Under U.S. law, the entire disclosure of the above applications is incorporated herein by reference as part of the disclosure of this application. Technical Field

[0003] This application document relates to video encoding and decoding technologies, devices and systems. Background Art

[0004] Despite advances in video compression, digital video still uses the largest amount of bandwidth on the Internet and other digital communications networks. As the number of connected user devices capable of receiving and displaying video increases, bandwidth requirements for digital video usage are expected to continue to grow. Summary of the invention

[0005] Devices, systems and methods related to digital video coding are described, and in particular, a low-complexity implementation of a cross-component linear model (CCLM) prediction mode in video coding is described. The method can be applied to existing video coding standards (e.g., High Efficiency Video Coding (HEVC)) and future video coding standards (e.g., Versatile Video Coding (VVC)) or codecs.

[0006] In one example aspect, a video processing method is disclosed. The method includes: for conversion between a video and an encoded representation of the video, using at least downsampled luma sample points outside a luma block, determining a linear model for predicting a first chroma block of the video co-located with the luma block; using the downsampled luma sample points within the luma block and the linear model to determine predicted values ​​for sample points of the first chroma block; and performing conversion based on the predicted values ​​for sample points of the first chroma block; wherein the downsampled luma sample points outside the luma block are obtained by applying an external filter to the luma sample points outside the luma block; and wherein the downsampled luma sample points within the luma block are obtained by applying an internal filter to the luma sample points within the luma block.

[0007] In another example aspect, a video processing method is disclosed. The method includes: determining one or more cross-component linear models (CCLMs) for predicting a first component block from a second component block for a conversion between a video and an encoded representation of the video during conversion based on a rule using the number of available neighboring sample points or the size of the first component block; and performing the conversion using the cross-component linear model, wherein the cross-component linear model is one of the following: a CCLM derived from the upper and / or upper right neighboring values ​​of the first component block (CCLM-A); a CCLM derived from the left and / or lower left neighboring values ​​of the first component block (CCLM-T); or a CCLM derived only from the left and upper neighboring values ​​of the first component block (CCLM-TL).

[0008] In another example aspect, a video processing method is disclosed. The method includes: generating downsampled outer luma sample points corresponding to chroma sample points outside a chroma block of a video using a first downsampling scheme; generating downsampled inner luma sample points corresponding to chroma sample points inside the chroma block using a second downsampling scheme; deriving a linear model for cross-component prediction using at least the downsampled outer luma sample points; determining prediction sample points for the chroma block using the linear model and the downsampled inner luma sample points; and performing conversion between a video and an encoded representation of the video using the prediction sample points for the chroma block.

[0009] In another example aspect, a video processing method is disclosed. The method includes: determining a linear model for conversion between a chrominance block of a video and an encoded representation of the video; generating a prediction value of the chrominance block from a luminance block corresponding to the chrominance block based on the linear model; and performing the conversion using the linear model; wherein predicting the chrominance block from the luminance block includes: downsampling luminance sample points above the luminance block by a first filtering method, and downsampling luminance sample points to the left of the luminance block by a second filtering method, and wherein the linear model is determined based on at least the downsampled luminance sample points.

[0010] In another example aspect, a video processing method is disclosed. The method includes: determining parameters of a linear model for conversion between a video and a bitstream of the video based on a height (H) and a width (W) of a chroma block of the video, wherein the parameters of the linear model are based on downsampled luma sample points corresponding to chroma sample points outside the chroma block, and wherein H and W are positive integers; generating a set of sample points of the chroma block based on the parameters of the linear model and a set of downsampled luma sample points within the luma block corresponding to the chroma block; and performing conversion between the video and the bitstream representation based on the generated.

[0011] In another example aspect, a video processing method is disclosed. The method includes: determining parameters of a linear model for conversion between a video and a bitstream representation of the video based on a height (H) and a width (W) of a chroma block of the video, wherein the parameters of the linear model are based on a first set of luma sample points generated by downsampling a second set of luma sample points corresponding to chroma sample points outside the chroma block, and wherein the number of the first set of luma sample points is based on the height or the width, and wherein H and W are positive integers; generating a set of sample points of the chroma block based on the parameters of the linear model and a set of downsampled luma sample points within the luma block corresponding to the chroma block; and performing conversion between the video and the bitstream representation based on the generated.

[0012] In one exemplary aspect, the disclosed technology can be used to provide a method for cross-component prediction. The exemplary method of video encoding includes receiving a bitstream representation of a current block of video data including a luma component and a chroma component, determining parameters of a linear model based on a first set of sample points generated by downsampling a second set of sample points of the luma component, and processing the bitstream to generate the current block based on the parameters of the linear model.

[0013] In another exemplary aspect, a video encoding method is disclosed. The method includes: during a conversion between a current block of a video and a bitstream representation of the current block, using parameters of a linear model based on a first set of sample points generated by downsampling a second set of sample points of a luminance component; and performing the conversion between the bitstream representation and the current block based on the parameters of the linear model.

[0014] In another exemplary aspect, a video processing method is disclosed. The method includes: performing a conversion between a current video block and a bitstream representation of the current video block using a cross-component linear model, wherein the conversion using the cross-component linear model uses multiple rows of luma sample points, at least one row being non-adjacent to the current video block.

[0015] In yet another typical aspect, the above method is implemented in the form of processor executable code and stored in a computer readable program medium.

[0016] In yet another exemplary aspect, a device configured or operable to perform the above method is disclosed. The device may include a processor programmed to implement the method.

[0017] In yet another exemplary aspect, a video decoder device may implement the methods described herein.

[0018] The above and other aspects and features of the disclosed technology are described in more detail in the drawings, the description and the claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1An example of the locations of sample points used to derive weights for a linear model for cross-component prediction is shown.

[0020] Figure 2 An example of classifying adjacent sample points into two groups is shown.

[0021] Figure 3A An example of chroma sample points and their corresponding luma sample points is shown.

[0022] Figure 3B An example of down-filtering of a cross-component linear model (CCLM) in a joint exploration model (JEM) is shown.

[0023] Figure 4 An exemplary arrangement of four luma sample points corresponding to a single chroma sample point is shown.

[0024] Figure 5A and 5B An example of sample points of a 4×4 block of chroma sample points with adjacent sample points and corresponding luma sample points is shown.

[0025] Figures 6A to 6J An example of CCLM without down-filtering of the luma sample points is shown.

[0026] Figures 7A to 7D An example of requiring CCLM only for neighboring luma sample points used for normal intra prediction is shown.

[0027] Fig. 8A and 8B An example of a coding unit (CU) at the boundary of a coding tree unit (CTU) is shown.

[0028] Fig. 9 Examples of 67 intra prediction modes are shown.

[0029] Fig. 10A and 10B An example of reference sample points for wide-angle intra prediction mode of a non-square block is shown.

[0030] Fig.11 An example of discontinuity when using wide-angle intra prediction is shown.

[0031] Figures 12A to 12D An example of sample points used by a Position Dependent Intra Prediction Combining (PDPC) method is shown.

[0032] Fig.13A and 13B Examples of downsampled luma sample point locations within and outside the current block are shown.

[0033] Fig.14A flow chart illustrating yet another example method of cross-component prediction according to the disclosed technology.

[0034] Fig.15 is a block diagram of an example of a hardware platform for implementing the visual media decoding or visual media encoding techniques described herein.

[0035] Fig.16 An example of combining different brightness downsampling methods is shown.

[0036] Fig.17A and 17B An example of LM prediction with a single row of adjacent luma sample points is shown.

[0037] Figures 18A to 18C An example of LM prediction with neighboring luma sample points is shown.

[0038] Fig.19 is a flow chart of an example method of video processing.

[0039] Fig. 20 is a flow chart of an example method of video processing.

[0040] Fig.21 is a flow chart of an example method of video processing.

[0041] Fig. 22 is a flow chart of an example method of video processing.

[0042] Fig.23 is a flow chart of an example method of video processing.

[0043] Fig.24 is a flow chart of an example method of video processing.

[0044] Fig.25 is a block diagram of an exemplary video processing system in which the disclosed technology may be implemented. DETAILED DESCRIPTION

[0045] Due to the increasing demand for high-resolution video, video coding methods and techniques are ubiquitous in modern technology. Video codecs generally include electronic circuits or software that compress or decompress digital video, and are constantly being improved to provide higher coding efficiency. Video codecs convert uncompressed video to a compressed format, or vice versa. There is a complex relationship between video quality, the amount of data used to represent the video (determined by the bitrate), the complexity of the encoding and decoding algorithms, sensitivity to data loss and errors, ease of editing, random access, and end-to-end delay (latency). The compression format usually conforms to a standard video compression specification, such as the High Efficiency Video Coding (HEVC) standard (also known as H.265 or MPEG-H Part 2), the pending Versatile Video Coding standard (VVC), or other current and / or future video coding standards.

[0046] Embodiments of the disclosed technology can be applied to existing video coding standards (e.g., HEVC, H.265) and future standards to improve runtime performance. Section headings are used herein to improve the readability of the description and do not in any way limit the discussion or embodiments (and / or implementations) to only individual sections.

[0047] 1. Example of cross-component prediction

[0048] Cross-component prediction is a form of chrominance-luminance prediction method that has a good balance between complexity and compression efficiency improvement.

[0049] 1.1 Example of Cross-Component Linear Model (CCLM)

[0050] In some embodiments, to reduce cross-component redundancy, a cross-component linear model (CCLM) prediction mode (also referred to as LM) is used in JEM, where the chrominance sample points are predicted based on the reconstructed luma sample points of the same CU using the following linear model:

[0051] pred C (i, j) = α·rec L ′(i,j)+β (1)

[0052] Here, pred C (i, j) represents the predicted chrominance sample point in the CU, and rec L ′(i, j) represents the downsampled reconstructed luminance sample point of the same CU with a color format of 4:2:0 or 4:2:2, and rec L ′(i, j) represents the reconstructed luminance sample point of the same CU with a color format of 4:4:4. CCLM parameters α and β are derived by minimizing the regression error between the adjacent reconstructed luminance and chrominance sample points around the current block as follows:

[0053]

[0054] and

[0055] Here, L(n) represents the down-sampled (for color format 4:2:0 or 4:2:2) or original (for color format 4:4:4) top and left adjacent reconstructed luminance sample points, C(n) represents the top and left adjacent reconstructed chrominance sample points, and the value of N is equal to twice the minimum of the width and height of the current chrominance coding block.

[0056] In some embodiments, and for square-shaped coding blocks, the above two equations are directly applied. In other embodiments, for non-square coding blocks, the adjacent sample points of the longer boundary are first sub-sampled to have the same number of sample points as the shorter boundary. Figure 1 The positions of the left and upper reconstruction sample points and the sample points of the current block involved in the CCLM mode are shown.

[0057] In some embodiments, this regression error minimization calculation is performed as part of the decoding process, not just as an encoder search operation, and thus no syntax is used to communicate the α and β values.

[0058] In some embodiments, the CCLM prediction mode also includes prediction between two chrominance components, for example, predicting the Cr (red difference) component from the Cb (blue difference) component. The CCLM Cb to Cr prediction method is used in the residual domain instead of using the reconstructed sample point signal. This is achieved by adding the weighted reconstructed Cb residual to the original Cr intra prediction to form the final Cr prediction:

[0059]

[0060] Here, resi Cb ′(i, j) represents the reconstructed Cb residual sample point at position (i, j).

[0061] In some embodiments, the scale factor α can be derived in a similar manner to CCLM luma-to-chroma prediction. The only difference is that a regression cost relative to the default α value is added to the error function so that the derived scale factor is biased towards the default value of -0.5, as shown below:

[0062]

[0063] Here, Cb(n) represents the adjacent reconstructed Cb sample points, Cr(n) represents the adjacent reconstructed Cr sample points, and λ is equal to Σ(Cb(n)·Cb(n))>>9.

[0064] In some embodiments, CCLM luma-to-chroma prediction mode is added as an additional chroma intra prediction mode. On the encoder side, one or more RD cost checks for chroma components are added for selecting chroma intra prediction modes. When an intra prediction mode other than CCLM luma-to-chroma prediction mode is used for chroma components of a CU, CCLM Cb-to-Cr prediction is used for Cr component prediction.

[0065] In JEM and VTM-2.0, the total number of training sample points in CCLM must be 2 N Assuming that the current block size is W×H, if W is not equal to H, a downsampled luminance sample point set with a larger number of sample points is extracted to match a downsampled luminance sample point set with a smaller number of sample points.

[0066] 1.2 Example of Multi-Model CCLM

[0067] In JEM, there are two CCLM modes: single model CCLM mode and multi-model CCLM mode (MMLM). As the name implies, the single model CCLM mode uses a linear model to predict the chrominance sample points from the luma sample points of the entire CU, while in the MMLM model, there can be two models.

[0068] In MMLM, the adjacent luminance sample points and adjacent chrominance sample points of the current block are divided into two groups, each group is used as a training set to derive a linear model (i.e., derive a specific α and β for a specific group). In addition, the sample points of the current luminance block are also classified based on the same classification rules as the adjacent luminance sample points.

[0069] Figure 2 An example of classifying adjacent sample points into two groups is shown. Threshold is calculated as the average value of adjacent reconstructed brightness sample points. L The adjacent sample points where [x,y]<=Threshold are classified into group 1, and Rec′ L Adjacent sample points where [x,y]>Threshold are classified into group 2.

[0070]

[0071] 1.3 Example of downsampling filter in CCLM

[0072] In some embodiments, in order to perform cross-component prediction, for a 4:2:0 chroma format (where 4 luma sample points correspond to 1 chroma sample point), the reconstructed luma block needs to be downsampled to match the size of the chroma signal. The default downsampling filter used in CCLM mode is as follows:

[0073]

[0074] Here, downsampling assumes "type 0" as Figure 3A The phase relationship of the positions of the chroma sample points relative to the positions of the luma sample points is shown, such as horizontally co-located samples and vertically spaced samples.

[0075] The exemplary 6-tap downsampling filter defined in (7) is used as the default filter for both the single-model CCLM mode and the multi-model CCLM mode.

[0076] In some embodiments, for MMLM mode, the encoder may select one of four additional luma downsampling filters to be applied to the prediction in the CU and send a filter index to indicate which of these filters to use. Figure 3B As shown, the four optional brightness downsampling filters of MMLM mode are as follows:

[0077] Rec′ L [x, y] = (Rec L [2x,2y]+Rec L [2x+1,2y]+1)>>1 (8)

[0078] Rec′ L [x, y] = (Rec L [2x+1,2y]+Rec L [2x+1,2y+1]+1)>>1 (9)

[0079] Rec′ L [x, y] = (Rec L [2x,2y+1]+Rec L [2x+1,2y+1]+1)>>1 (10)

[0080] Rec′ L [x, y] = (Rec L [2x,2y]+Rec L [2x,2y+1]+Rec L [2x+1,2y]+Rec L [2x+1,2y+1]+2)>>2 (11)

[0081] 1.4 Exemplary Embodiments Related to Cross-Component Prediction

[0082] Previously proposed CCLM methods include but are not limited to:

[0083] - Only requires neighboring luma samples used in normal intra prediction; and

[0084] - No need to downsample the brightness sample points, or downsample by a simple average of two sample points.

[0085] The previously presented examples described below assume a 4:2:0 color format. Figure 3A As shown, a chrominance (Cb or Cr) sample point (represented by a triangle) corresponds to four brightness (Y) sample points (represented by circles): A, B, C and D, as shown in Figure 4 shown. Figure 5A-5B An example of sample points of a 4×4 block of chroma sample points and corresponding luma sample points is shown with adjacent sample points.

[0086] Example 1. In one example, it is proposed to make CCLM without downsampling filtering of luma sample points.

[0087] (a) In one example, the downsampling process of adjacent luma sample points is removed in the CCLM parameter (eg, α and β) derivation process. Instead, the downsampling process is replaced by a subsampling process in which non-contiguous luma sample points are used.

[0088] (b) In one example, the downsampling process of the sample points in the co-located luma block is removed in the CCLM chroma prediction process. Instead, only some luma sample points in the co-located luma block are used to derive the prediction block of the chroma sample points.

[0089] (c) Figures 6A to 6J An example is shown on an 8x8 luma block corresponding to a 4x4 chroma block.

[0090] (d) In Fig. 6A In an example shown, using Figure 4 The luminance sample point at position "C" in the middle corresponds to the chrominance sample point. The upper adjacent sample points are used in the training process to infer the linear model.

[0091] (e) In Figure 6B In an example shown, using Figure 4 The luminance sample point at position "C" in the middle corresponds to the chrominance sample point. The upper adjacent sample point and the upper right adjacent sample point are used in the training process to deduce the linear model.

[0092] (f) In Figure 6C In an example shown, using Figure 4 The luminance sample point at position "D" in the middle corresponds to the chrominance sample point. The upper adjacent sample points are used in the training process to infer the linear model.

[0093] (g) In Fig.6D In an example shown, using Figure 4The luminance sample point at position "D" in the middle corresponds to the chrominance sample point. The upper adjacent sample point and the upper right adjacent sample point are used in the training process to deduce the linear model.

[0094] (h) In Fig. 6E In an example shown, using Figure 4 The luminance sample point at position "B" in the middle corresponds to the chrominance sample point. The left adjacent sample points are used in the training process to deduce the linear model.

[0095] (i) In Fig. 6F In an example shown, using Figure 4 The luminance sample point at position "B" in the middle corresponds to the chrominance sample point. The left adjacent sample point and the lower left adjacent sample point are used to deduce the linear model in the training process.

[0096] (j) In Figure 6G In an example shown, using Figure 4 The luminance sample point at position "D" in the middle corresponds to the chrominance sample point. The left adjacent sample points are used in the training process to deduce the linear model.

[0097] (k) Figure 6H In an example shown, using Figure 4 The luminance sample point at position "D" in the middle corresponds to the chrominance sample point. The left adjacent sample point and the lower left adjacent sample point are used in the training process to deduce the linear model.

[0098] (l) In Fig.6I In an example shown, using Figure 4 The luminance sample point at position "D" in the middle corresponds to the chrominance sample point. The upper adjacent sample points and the left adjacent sample points are used in the training process to deduce the linear model.

[0099] (m) In Figure 6J In an example shown, using Figure 4 The luminance sample point at the position "D" in the middle corresponds to the chrominance sample point. In the training process, the upper adjacent sample point, the left adjacent sample point, the upper right adjacent sample point and the lower left adjacent sample point are used to deduce the linear model.

[0100] Example 2. In one example, it is proposed that CCLM only requires the adjacent luminance sample points used in the normal intra prediction process, ie, other adjacent luminance sample points are not allowed to be used in the CCLM process. In one example, CCLM is made by performing 2-tap filtering on the luminance sample points. Figures 7A-7D An example is shown on an 8x8 luma block corresponding to a 4x4 chroma block.

[0101] (a) In Fig. 7AIn the example shown, Figure 4 The luma sample points at position "C" and position "D" are filtered to F(C, D) for the corresponding chroma sample points. The upper neighboring sample points are used in the training process to derive the linear model.

[0102] (b) In Figure 7B In the example shown, Figure 4 The luma sample points at position "C" and position "D" are filtered to F(C, D) for the corresponding chroma sample points. The upper neighboring sample points and the upper right neighboring sample points are used in the training process to derive the linear model.

[0103] (c) In Figure 7C In the example shown, Figure 4 The luma sample points at positions "B" and "D" in the filter are filtered to F(B, D) for the corresponding chroma sample points. The left neighboring sample points are used in the training process to derive the linear model.

[0104] (d) In Fig.7D In the example shown, Figure 4 The luminance sample points at positions "B" and "D" in the middle are filtered to F(B, D) for the corresponding chrominance sample points. The left neighboring sample points and the lower left neighboring sample points are used in the training process to derive the linear model.

[0105] (e) In one example, F is defined as F(X, Y)=(X+Y)>>1. Alternatively, F(X, Y)=(X+Y+1)>>1.

[0106] Example 3. In one example, the previously proposed CCLM methods (eg, Examples 1 and 2 in this section) may be applied in a selective manner. That is, different blocks in a region, a strip, a picture, or a sequence may select different types of previously proposed CCLM methods.

[0107] a) In one embodiment, the encoder selects a previously proposed CCLM method from a predefined candidate set and sends it to the decoder.

[0108] (i) For example, the encoder may select between Example 1(a) and Example 1(e). Alternatively, the encoder may select between Example 1(b) and Example 1(f). Alternatively, the encoder may select between Example 1(c) and Example 1(g). Alternatively, the encoder may select between Example 1(d) and Example 1(h). Alternatively, the encoder may select between Example 2(a) and Example 2(c). Alternatively, the encoder may select between Example 2(b) and Example 2(d).

[0109] (ii) The candidate set and signaling method selected therefrom may depend on the shape or size of the block. Assume that W and H represent the width and height of the chrominance block, and T1 and T2 are integers.

[0110] (1) In one example, if W <= T1 and H <= T2, there are no candidates. For example, CCLM is disabled. For example, T1 = T2 = 2.

[0111] (2) In one example, if W <= T1 or H <= T2, there are no candidates. For example, CCLM is disabled. For example, T1 = T2 = 2.

[0112] (3) In one example, if W × H <= T1, there are no candidates. For example, CCLM is disabled. For example, T1 = 4.

[0113] (4) In one example, if W <= T1 and H <= T2, there is only one candidate, such as Example 1(i). The CCLM method selection information is not signaled. For example, T1 = T2 = 4.

[0114] (5) In one example, if W <= T1 or H <= T2, there is only one candidate, such as Example 1(i). The CCLM method selection information is not signaled. For example, T1 = T2 = 4.

[0115] (6) In one example, if W × H <= T1, there is only one candidate, such as Example 1(i). The CCLM method selection information is not signaled. For example, T1 = 16.

[0116] (7) In one example, if W > H, there is only one candidate, such as Example 1(a). The CCLM method selection information is not signaled. Or, if W > H (or W > N * H, where N is a positive integer), the candidate set only includes the candidate (or some candidates) that uses the upper or / and upper-right adjacent reconstructed sample points when deriving the CCLM parameters.

[0117] (8) In one example, if W < H, there is only one candidate, such as Example 1(e). The CCLM method selection information is not signaled. Or, if W < H (or N * W < H), the candidate set only includes the candidate (or some candidates) that uses the left or / and lower-left adjacent reconstructed sample points when deriving the CCLM parameters.

[0118] (b) In one embodiment, both the encoder and the decoder select the previously proposed CCLM method based on the same rule. The encoder does not signal it to the decoder. For example, the selection may depend on the shape or size of the block. In one example, if the width is greater than the height, Example 1(a) is selected; otherwise, Example 1(e) is selected.

[0119] (c) One or more previously proposed CCLM candidate sets may be signaled in a sequence parameter set / picture parameter set / slice header / CTU / CTB / CTU group.

[0120] Example 4. In one example, it is proposed that multiple CCLM methods (e.g., Examples 1 and 2) can be applied to the same chroma block. That is, a block in a region / slice / picture / sequence can select different types of previously proposed CCLM methods to derive multiple intermediate chroma prediction blocks, and derive a final chroma prediction block from the multiple intermediate chroma prediction blocks.

[0121] (a) Alternatively, multiple sets of CCLM parameters (eg, α and β) may first be derived from multiple selected CCLM methods. A final set of CCLM parameters may be derived from the multiple sets and used in the chroma prediction block generation process.

[0122] (b) The selection of multiple CCLM methods may be signaled (implicitly or explicitly) in a manner similar to that described in Example 3.

[0123] (c) The use indication of the proposed method may be signaled in the sequence parameter set / picture parameter set / slice header / CTU / group / CTU / coding block.

[0124] Example 5. In one example, whether and how to apply the previously proposed CCLM method may depend on the location of the current block.

[0125] (a) In one example, Fig. 8A As shown, one or more of the proposed methods are applied to the CU located at the upper boundary of the current CTU.

[0126] (b) In one example, Figure 8B As shown, one or more of the proposed methods are applied to the CU located at the left boundary of the current CTU.

[0127] (c) In one example, one or more of the proposed methods are applied in both of the above cases.

[0128] 1.5 Example of CCLM in VVC

[0129] In some embodiments, CCLM as in JEM is adopted in VTM-2.0, but MM-CCLM in JEM is not adopted in VTM-2.0.

[0130] CCLM in VTM-5.0

[0131] In VTM-5.0, in addition to the LM mode, two other CCLM modes (LM-A and LM-T) proposed in JVET-L0338 are also adopted. LM-A only uses the neighboring sample points above or to the upper right of the current block, and LM-T only uses the neighboring sample points to the left or to the lower left of the current block to derive CCLM parameters.

[0132] Decoding Processing of CCLM

[0133] In VTM-5.0, the LM derivation process is simplified to the 4-point max-min method proposed in JVET-N0271. The corresponding working draft is shown below.

[0134] Specification of INTRA_LT_CCLM, INTRA_L_CCLM and INTRA_T_CCLM intra prediction modes

[0135] The inputs to this process include:

[0136] – Intra prediction mode predModeIntra,

[0137] – The sampling position of the upper left sample point of the current transform block relative to the upper left sample point of the current picture (xTbC, yTbC);

[0138] – variable nTbW that specifies the transform block width,

[0139] – variable nTbH that specifies the transform block height,

[0140] – Chroma neighboring sample points p[x][y], where x=-1, y=0..2*nTbH–1 and x=0..2*nTbW-1, y=-1.

[0141] The output of this process is the predicted sample points predSamples[x][y], where

[0142] x=0..nTbW-1, y=0..nTbH-1.

[0143] The current brightness position (xTbY, yTbY) is derived as follows:

[0144] (xTbY,yTbY)=(xTbC<<1,yTbC<<1) (8-156)

[0145] The variables availL, availT and availTL are derived as follows:

[0146] – With the current chroma position (xCUrr, yCUrr) set equal to (xTbC, yTbC) and the neighboring chroma position (xTbC-1, yTbC) as input, the availability of the derivation process of the left neighboring sample points of the block specified in Section 6.4.X [Ed.(BB): Neighboring block availability check process pending] is called and the output is assigned to availL.

[0147] – With the current chroma position (xCUrr, yCUrr) set equal to (xTbC, yTbC) and the neighboring chroma position (xTbC, yTbC-1) as input, the availability of the derivation process of the upper neighboring sample points of the block specified in Section 6.4.X [Ed.(BB): Neighboring block availability check process pending] is called and the output is assigned to availT.

[0148] – With the current chroma position (xCUrr, yCUrr) set equal to (xTbC, yTbC) and the neighboring chroma position (xTbC-1, yTbC-1) as input, the availability of the derivation process of the upper left neighboring sample point of the block specified in Section 6.4.X [Ed.(BB): Neighboring block availability check process to be determined] is called and the output is assigned to availTL.

[0149] – The number of available top-right adjacent chroma sample points numTopRight is derived as follows:

[0150] –The variable numTopRight is set equal to 0 and availTR is set to TRUE.

[0151] – When predModeIntra is equal to INTRA_T_CCLM, the following applies for x=nTbW..2*nTbW-1 until availTR is equal to FALSE or x is equal to 2*nTbW-1:

[0152] – With the current chroma position (xCUrr, yCUrr) set equal to (xTbC, yTbC) and the neighboring chroma position (xTbC+x, yTbC-1) as input, the derivation process for the block availability specified in Section 6.4.X [Ed.(BB): Neighboring block availability check process pending] is called and the output is assigned to availableTR.

[0153] – When availableTR is equal to TRUE, numTopRight is increased by 1.

[0154] – The number of available lower left adjacent chroma sample points numLeftBelow is derived as follows:

[0155] –The variable numLeftBelow is set to 0 and availLB is set to true.

[0156] - When predModeIntra is equal to INTRA_L_CCLM, the following applies to y=nTbH..2*nTbH-1 until availLB is equal to FALSE or y is equal to 2*nTbH-1:

[0157] – With the current chroma position (xCUrr, yCUrr) set equal to (xTbC, yTbC) and the neighboring chroma position (xTbC-1, yTbC+y) as input, the derivation process for the block availability specified in Section 6.4.X [Ed.(BB): Neighboring block availability check process pending] is called and the output is assigned to availableLB.

[0158] – When availableLB is equal to true, numLeftBelow is increased by 1.

[0159] - The number of available adjacent chroma sample points numTopSamp above and to the upper right, and the number of available adjacent chroma sample points nLeftSamp to the left and to the lower left are derived as follows:

[0160] – If predModeIntra is equal to INTRA_LT_CCLM, the following applies:

[0161] numSampT=availT? nTbW:0 (8-157)

[0162] numSampL=availL? nTbH:0 (8-158)

[0163] – Otherwise, the following applies:

[0164] numSampT=(availT&&predModeIntra==INTRA_T_CCLM)? (nTbW+Min(numTopRight,nTbH)):0(8-159)

[0165] numSampL=(availL&&predModeIntra==INTRA_L_CCLM)? (nTbH+Min(numLeftBelow,nTbW)):0 (8-160)

[0166] The variable bCTUboundary is derived as follows:

[0167] bCTUboundary=(yTbC&(1<<(CtbLog2SizeY-1)-1)==0)? TRUE:FALSE.(8-161)

[0168] The variable cntN and array pickPosN (N is replaced by L and T) are derived as follows:

[0169] – The variable numIs4N is set equal to ((availT&&availL&&predModeIntra==INTRA_LT_CCLM)?0:1).

[0170] – The variable startPosN is set equal to numSampN>>(2+numIs4N).

[0171] – The variable pickStepN is set equal to Max(1,numSampN>>(1+numIs4N)).

[0172] – If availN is equal to TRUE and predModeIntra is equal to INTRA_LT_CCLM or INTRA_N_CCLM, the following assignments are made:

[0173] –cntN is set equal to Min(numSampN,(1+numIs4N)<<1)

[0174] –pickPosN[pos] is set equal to (startPosN+pos*pickStepN), where pos = 0..cntN–1

[0175] – Otherwise, cntN is set equal to 0.

[0176] The predicted sample points predSamples[x][y] where x = 0..nTbW-1, y = 0..nTbH-1 are derived as follows:

[0177] – If numSampL and numSampT are both equal to 0, then the following applies:

[0178] predSamples[x][y]=1<<(BitDepth C -1) (8-162)

[0179] – Otherwise, the following sequence of steps applies:

[0180] 1. The co-located luminance sample point pY[x][y] where x=0..nTbW*2-1, y=0..nTbH*2-1 is set equal to the reconstructed luminance sample point before deblocking filtering at the position (xTbY+x, yTbY+y).

[0181] 2. The adjacent brightness sample points pY[x][y] are derived as follows:

[0182] –When numSampL is greater than 0, the adjacent left luminance sample point pY[x][y] (where x = -1..-3, y = 0..2*numSampL-1) is set equal to the reconstructed luminance sample point before deblocking filtering at the position (xTbY+x, yTbY+y).

[0183] –When numSampT is greater than 0, the adjacent upper luminance sample point pY[x][y] (where x = 0..2*numSampT-1, y = -1, -2) is set equal to the reconstructed luminance sample point before deblocking filtering at the position (xTbY+x, yTbY+y).

[0184] –When availTL is equal to TRUE, the adjacent upper left luma sample point pY[x][y] (where x=-1, y=-1, -2) is set equal to the reconstructed luma sample point before deblocking filtering at position (xTbY+x, yTbY+y).

[0185] 3. The downsampled co-located brightness sample points pDsY[x][y] (where x = 0..nTbW-1, y = 0..nTbH-1) are derived as follows:

[0186] – If sps_cclm_colocated_chroma_flag is equal to 1, the following applies:

[0187] –pDsY[x][y] (where x=1..nTbW-1, y=1..nTbH-1) is derived as follows:

[0188] pDsY[x][y]=(pY[2*x][2*y-1]+

[0189] pY[2*x-1][2*y]+4*pY[2*x][2*y]+pY[2*x+1][2*y]+

[0190] pY[2*x][2*y+1]+4)>>3 (8-163)

[0191] – If availL is equal to TRUE, then pDsY[0][y] (where y = 1..nTbH-1) is derived as follows:

[0192] pDsY[0][y]=(pY[0][2*y-1]+

[0193] pY[-1][2*y]+4*pY[0][2*y]+pY[1][2*y]+

[0194] pY[0][2*y+1]+4)>>3 (8-164)

[0195] – Otherwise, pDsY[0][y] (where y=1..nTbH-1) is derived as follows:

[0196] pDsY[0][y]=(pY[0][2*y-1]+2*pY[0][2*y]+pY[0][2*y+1]+2)>>2 (8-165)

[0197] – If availT is equal to TRUE, then pDsY[x][0] (where x=1..nTbW-1) is derived as follows:

[0198] pDsY[x][0]=(pY[2*x][-1]+

[0199] pY[2*x-1][0]+4*pY[2*x][0]+pY[2*x+1][0]+

[0200] pY[2*x][1]+4)>>3 (8-166)

[0201] – Otherwise, pDsY[x][0] (where x=1..nTbW-1) is derived as follows:

[0202] pDsY[x][0]=(pY[2*x-1][0]+2*pY[2*x][0]+pY[2*x+1][0]+2)>>2(8-167)

[0203] – If availL equals TRUE and availT equals TRUE, then pDsY[0][0] is derived as follows:

[0204] pDsY[0][0]=(pY[0][-1]+

[0205] pY[-1][0]+4*pY[0][0]+pY[1][0]+

[0206] pY[0][1]+4)>>3 (8-168)

[0207] – Otherwise if availL equals TRUE and availT equals FALSE, then pDsY[0][0] is derived as follows:

[0208] pDsY[0][0]=(pY[-1][0]+2*pY[0][0]+pY[1][0]+2)>>2

[0209] (8-169)

[0210] – Otherwise if availL equals FALSE and availT equals TRUE, then pDsY[0][0] is derived as follows:

[0211] pDsY[0][0]=(pY[0][-1]+2*pY[0][0]+pY[0][1]+2)>>2

[0212] (8-170)

[0213] – Otherwise (availL equals FALSE and availT equals FALSE), then pDsY[0][0] is derived as follows:

[0214] pDsY[0][0]=pY[0][0] (8-171)

[0215] – Otherwise, the following applies:

[0216] –pDsY[x][y] (where x=1..nTbW-1, y=0..nTbH-1) is derived as follows:

[0217] pDsY[x][y]=(pY[2*x-1][2*y]+pY[2*x-1][2*y+1]+

[0218] 2*pY[2*x][2*y]+2*pY[2*x][2*y+1]+

[0219] pY[2*x+1][2*y]+pY[2*x+1][2*y+1]+4)>>3(8-172)

[0220] – If availL is equal to TRUE, then pDsY[0][y] (where y = 0..nTbH-1) is derived as follows:

[0221] pDsY[0][y]=(pY[-1][2*y]+pY[-1][2*y+1]+

[0222] 2*pY[0][2*y]+2*pY[0][2*y+1]+

[0223] pY[1][2*y]+pY[1][2*y+1]+4)>>3 (8-173)

[0224] – Otherwise, pDsY[0][y] (where y=0..nTbH-1) is derived as follows:

[0225] pDsY[0][y]=(pY[0][2*y]+pY[0][2*y+1]+1)>>1

[0226] (8-174)

[0227] 4. When numSampL is greater than 0, the selected adjacent left chroma sample point pSelC[idx] is set equal to p[-1][pickPosL[idx]], where idx = 0..cntL–1, and the selected downsampled adjacent left luma sample point pSelDsY[idx] (where idx = 0..cntL-1) is derived as follows:

[0228] – The variable y is set equal to pickPosL[idx].

[0229] – If sps_cclm_colocated_chroma_flag is equal to 1, the following applies:

[0230] – If y is greater than 0 or availTL is equal to TRUE, pSelDsY[idx] is derived as follows:

[0231] pSelDsY[idx]=(pY[-2][2*y-1]+

[0232] pY[-3][2*y]+4*pY[-2][2*y]+pY[-1][2*y]+

[0233] pY[-2][2*y+1]+4)>>3 (8-175)

[0234] -otherwise:

[0235] pSelDsY[idx]=(pY[-3][0]+2*pY[-2][0]+pY[-1][0]+2)>>2

[0236] (8-177)

[0237] – Otherwise, the following applies:

[0238] pSelDsY[idx]=(pY[-1][2*y]+

[0239] pY[-1][2*y+1]+

[0240] 2*pY[-2][2*y]+2*pY[-2][2*y+1]+

[0241] pY[-3][2*y]+pY[-3][2*y+1]+4)>>3 (8-178)

[0242] 5. When numSampT is greater than 0, the selected adjacent upper chroma sample point pSelC[idx] is set equal to p[pickPosT[idx–cntL]][-1] where idx = cntL..cntL+cntT–1, and the downsampled adjacent upper luma sample point pSelDsY[idx] (where idx = 0..cntL+cntT-1) is defined as follows:

[0243] – The variable x is set equal to pickPosT[idx–cntL]

[0244] – If sps_cclm_colocated_chroma_flag is equal to 1, the following applies:

[0245] – If x is greater than 0, the following applies:

[0246] – If bCTUboundary equals FALSE, the following applies:

[0247] pSelDsY[idx]=(pY[2*x][-3]+

[0248] pY[2*x-1][-2]+4*pY[2*x][-2]+pY[2*x+1][-2]+

[0249] pY[2*x][-1]+4)>>3 (8-179)

[0250] – Otherwise (bCTUboundary equals TRUE), the following applies:

[0251] pSelDsY[idx]=(pY[2*x-1][-1]+

[0252] 2*pY[2*x][-1]+

[0253] pY[2*x+1][-1]+2)>>2 (8-180)

[0254] -otherwise:

[0255] – If availTL equals TRUE and bCTUboundary equals FALSE, the following applies:

[0256] pSelDsY[idx]=(pY[0][-3]+

[0257] pY[-1][-2]+4*pY[0][-2]+pY[1][-2]+

[0258] pY[0][-1]+4)>>3 (8-181)

[0259] – Otherwise if availTL equals TRUE and bCTUboundary equals TRUE, then the following applies:

[0260] pSelDsY[idx]=(pY[-1][-1]+

[0261] 2*pY[0][-1]+

[0262] pY[1][-1]+2)>>2 (8-182)

[0263] – Otherwise if availTL equals FALSE and bCTUboundary equals FALSE, then the following applies:

[0264] pSelDsY[idx]=(pY[0][-3]+2*pY[0][-2]+pY[0][-1]+2)>>2

[0265] (8-183)

[0266] – Otherwise (availTL equals FALSE and bCTUboundary equals TRUE), the following applies:

[0267] pSelDsY[idx]=pY[0][-1] (8-184)

[0268] – Otherwise, the following applies:

[0269] – If x is greater than 0, the following applies:

[0270] – If bCTUboundary equals FALSE, the following applies:

[0271] pSelDsY[idx]=(pY[2*x-1][-2]+pY[2*x-1][-1]+

[0272] 2*pY[2*x][-2]2*pY[2*x][-1]+

[0273] pY[2*x+1][-2]+pY[2*x+1][-1]+4)>>3 (8-185)

[0274] – Otherwise (bCTUboundary equals TRUE), the following applies:

[0275] pSelDsY[idx]=(pY[2*x-1][-1]+

[0276] 2*pY[2*x][-1]+

[0277] pY[2*x+1][-1]+2)>>2 (8-186)

[0278] -otherwise:

[0279] – If availTL equals TRUE and bCTUboundary equals FALSE, the following applies:

[0280] pSelDsY[idx]=(pY[-1][-2]+pY[-1][-1]+

[0281] 2*pY[0][-2]+2*pY[0][-1]+

[0282] pY[1][-2]+pY[1][-1]+4)>>3 (8-187)

[0283] – Otherwise if availTL equals TRUE and bCTUboundary equals TRUE, then the following applies:

[0284] pSelDsY[idx]=(pY[-1][-1]+

[0285] 2*pY[0][-1]+

[0286] pY[1][-1]+2)>>2 (8-188)

[0287] – Otherwise if availTL equals FALSE and bCTUboundary equals FALSE, then the following applies:

[0288] pSelDsY[idx]=(pY[0][-2]+pY[0][-1]+1)>>1 (8-189)

[0289] – Otherwise (availTL equals FALSE and bCTUboundary equals TRUE), the following applies:

[0290] pSelDsY[idx]=pY[0][-1] (8-190)

[0291] 6. When cntT+cntL is not equal to 0, the variables minY, maxY, minC and maxC are derived as follows:

[0292] – When cntT+cntL equals 2, set pSelComp[3] equal to pSelComp[0], pSelComp[2] equal to pSelComp[1], pSelComp[0] equal to pSelComp[1], and pSelComp[1] equal to pSelComp[3], where Comp is replaced by DsY and C..

[0293] – The arrays minGrpIdx and maxGrpIdx are set as follows:

[0294] –minGrpIdx[0]=0

[0295] –minGrpIdx[1]=2

[0296] –maxGrpIdx[0]=1

[0297] –maxGrpIdx[1]=3

[0298] –When pSelDsY[minGrpIdx[0]] is greater than pSelDsY[minGrpIdx[1]], minGrpIdx[0] and minGrpIdx[1] are swapped as (minGrpIdx[0], minGrpIdx[1]) = swap(minGrpIdx[0], minGrpIdx[1]).

[0299] – When pSelDsY[maxGrpIdx[0]] is greater than pSelDsY[maxGrpIdx[1]], maxGrpIdx[0] and maxGrpIdx[1] are swapped as (maxGrpIdx[0], maxGrpIdx[1]) = swap(maxGrpIdx[0], maxGrpIdx[1]).

[0300] –When pSelDsY[minGrpIdx[0]] is greater than pSelDsY[maxGrpIdx[1]], the arrays minGrpIdx and maxGrpIdx are swapped as (minGrpIdx, maxGrpIdx) = swap(minGrpIdx, maxGrpIdx).

[0301] – When pSelDsY[minGrpIdx[1]] is greater than pSelDsY[maxGrpIdx[0]], minGrpIdx[1] and maxGrpIdx[0] are swapped as (minGrpIdx[1], maxGrpIdx[0]) = swap(minGrpIdx[1], maxGrpIdx[0]).

[0302] –maxY=(pSelDsY[maxGrpIdx[0]]+pSelDsY[maxGrpIdx[1]]+1)>>1.

[0303] –maxC=(pSelC[maxGrpIdx[0]]+pSelC[maxGrpIdx[1]]+1)>>1.

[0304] –minY=(pSelDsY[minGrpIdx[0]]+pSelDsY[minGrpIdx[1]]+1)>>1.

[0305] –minC=(pSelC[minGrpIdx[0]]+pSelC[minGrpIdx[1]]+1)>>1.

[0306] 7. The variables a, b and k are derived as follows:

[0307] – If numSampL is equal to 0, and numSampT is equal to 0, then the following applies:

[0308] k=0 (8-208)

[0309] a=0 (8-209)

[0310] b=1<<(BitDepth C -1) (8-210)

[0311] – Otherwise, the following applies:

[0312] diff=maxY–minY (8-211)

[0313] – If diff is not equal to 0, the following applies:

[0314] diffC=maxC-minC (8-212)

[0315] x=Floor(Log2(diff)) (8-213)

[0316] normDiff=((diff<<4)>>x)&15 (8-214)

[0317] x+=(normDiff!=0)? 1:0 (8-215)

[0318] y=Floor(Log2(Abs(diffC)))+1 (8-216)

[0319] a=(diffC*(divSigTable[normDiff]|8)+2y-1)>>y (8-217)

[0320] k=((3+xy)<1)? 1:3+xy (8-218)

[0321] a=((3+xy)<1)? Sign(a)*15:a (8-219)

[0322] b=minC-((a*minY)>>k) (8-220)

[0323] The divSigTable[] is defined as follows:

[0324] divSigTable[ ]={0,7,6,5,5,4,4,3,3,2,2,1,1,1,1,0} (8-221)

[0325] – Otherwise (diff equals 0), the following applies:

[0326] k=0 (8-222)

[0327] a=0 (8-223)

[0328] b=minC (8-224)

[0329] 8. The predicted sample points predSamples[x][y] (where x = 0..nTbW-1, y = 0..nTbH-1) are derived as follows:

[0330] predSamples[x][y]=Clip1C(((pDsY[x][y]*a)>>k)+b) (8-225)

[0331] JVET-L0893

[0332] This paper proposes Multi-reference Line Intra Prediction (MRLIP), in which directional intra prediction can be generated by using reference lines of multiple neighboring sample points that are adjacent or non-adjacent to the current block.

[0333] 1.6 Example of intra prediction in VVC

[0334] 1.6.1 Intra-mode Coding with 67 Intra-prediction Modes

[0335] To capture arbitrary edge directions present in natural videos, the number of directional intra modes is expanded to 65 from the 33 used in HEVC. Fig. 9In , additional directional modes are depicted as dashed arrows, and planar and DC modes remain the same. These more dense directional intra prediction modes apply to all block sizes and both luma and chroma intra prediction.

[0336] like Fig. 9 As shown, the traditional angular intra prediction direction is defined as from 45 degrees to -135 degrees in the clockwise direction. In VTM2, for non-square blocks, several traditional angular intra prediction modes are adaptively replaced with wide-angle intra prediction modes. The replaced modes are signaled using the original method and remapped to the index of the wide-angle mode after parsing. The total number of intra prediction modes remains unchanged (e.g., 67), and the intra mode encoding remains unchanged.

[0337] In HEVC, each intra-coded block has a square shape and the length of each of its sides is a power of 2. Therefore, no split operation is required to generate the intra predictor using the DC mode. In VTV2, blocks can have a rectangular shape and in general a split operation is required for each block. To avoid the split operation for DC prediction, only the longer sides are used to calculate the average for non-square blocks.

[0338] 1.6.2 Example of intra-mode coding

[0339] In some embodiments, in order to keep the complexity of MPM list generation low, an intra-mode coding method with 3 most probable modes (MPMs) is used. The MPM list takes into account the following three aspects:

[0340] --adjacent intra-frame mode;

[0341] --Export intra-mode; and

[0342] --Default intra mode.

[0343] For adjacent intra modes (A and B), two adjacent blocks located on the left and above are considered. The initial MPM list is formed by performing pruning processing on two adjacent intra modes. If the two adjacent modes are different from each other, one of the default modes (e.g., PLANA (0), DC (1), ANGULAR50 (e.g., 50)) is added to the MPM list after pruning checks on the two existing MPMs. When the two adjacent modes are the same, the default mode or the derived mode is added to the MPM list after pruning checks. The detailed generation process of the three MPM lists is derived as follows:

[0344] If two adjacent candidate patterns are the same (i.e. A == B),

[0345] If A is less than 2, candModeList[3] = {0, 1, 50}.

[0346] Otherwise, candModeList[0] = {A, 2 + ((A + 61)% 64), 2 + ((A - 1)% 64)

[0347] otherwise,

[0348] If neither A nor B is equal to 0, candModeList[3] = {A, B, 0}.

[0349] Otherwise, if neither A nor B is equal to 1, candModeList[3] = {A, B, 1}.

[0350] Otherwise, candModeList[3] = {A, B, 50}.

[0351] An additional pruning process is used to remove repeated patterns so that only unique patterns can be included in the MPM list. For entropy coding of the 64 non-MPM patterns, a 6-bit fixed length code (FLC) is used.

[0352] 1.6.3 Wide-angle Intra Prediction for Non-square Blocks

[0353] In some embodiments, the conventional angular intra prediction direction is defined as from 45 degrees to -135 degrees in a clockwise direction. In VTM2, for non-square blocks, several conventional angular intra prediction modes are adaptively replaced with wide-angle intra prediction modes. The replaced modes are signaled using the original method and remapped to the index of the wide-angle mode after parsing. The total number of intra prediction modes for a particular block remains unchanged (e.g., 67), and the intra mode encoding remains unchanged.

[0354] To support these predictions, Fig. 10A and 10B As shown in the example in , a top reference with a length of 2W+1 and a left reference with a length of 2H+1 are defined.

[0355] In some embodiments, the number of alternative modes in the wide-angle direction mode depends on the aspect ratio of the block. The alternative intra prediction modes are shown in Table 1.

[0356] Table 1: Replacement of intra prediction modes with wide-angle mode

[0357] condition Replaced intra prediction mode W / H==2 Mode 2,3,4,5,6,7 W / H>2 Mode 2,3,4,5,6,7,8,9,10,11 W / H==1 none H / W==1 / 2 Mode 61,62,63,64,65,66 H / W<1 / 2 Mode 57,58,59,60,61,62,63,64,65,66

[0358] like Fig.11 As shown, in the case of wide-angle intra prediction, two vertically adjacent prediction sample points can use two non-adjacent reference sample points. Therefore, a low-pass reference sample point filter and side smoothing are applied to wide-angle prediction to reduce the increased gap Δp α negative impact.

[0359] 1.6.4 Example of Position Dependent Intra Prediction Combining (PDPC)

[0360] In VTM2, the intra prediction results of the planar mode are also corrected using the Position Dependent Intra Prediction Combination (PDPC) method. PDPC is an intra prediction method that calls for unfiltered boundary reference sample points and a combination of HEVC style intra prediction and filtered boundary reference sample points. PDPC is applied to the following non-signaled intra modes: planar, DC, horizontal, vertical, bottom left corner mode and its eight adjacent corner modes, top right corner mode and its eight adjacent corner modes.

[0361] The prediction sample point pred(x,y) is predicted using the intra prediction mode (DC, planar, angular) and a linear combination of the reference sample points according to the following equation:

[0362] pred(x,y)=(wL×R -1,y +wT×R x,-1 –wTL×R -1,-1 +(64–wL–wT+wTL)×pred(x,y)+32)>>shift

[0363] Here, R x,-1 ,R -1,y Respectively represent the reference sample points located at the top and left of the current sample point (x, y), and R -1,-1 Represents the reference sample point located at the upper left corner of the current block.

[0364] In some embodiments, if PDPC is applied to DC, planar, horizontal and vertical intra modes, no additional boundary filters are required, while in the case of HEVC a DC mode boundary filter or horizontal / vertical mode edge filters are required.

[0365] Figures 12A to 12D The definitions of the reference sample points (Rx,-1, R-1,y and R-1,-1) of PDPC applied to various prediction modes are described. The prediction sample point pred(x',y') is located at (x',y') within the prediction block. The coordinate x of the reference sample point Rx,-1 is given by x=x'+y'+1, and the coordinate y of the reference sample point R-1,y is similarly given by y=x'+y'+1.

[0366] In some embodiments, the PDPC weight depends on the prediction mode and is shown in Table 2, where S=shift.

[0367] Table 2: Examples of PDPC weights according to prediction mode

[0368] Prediction Model w wxya wxya Upper right corner 16>>((y'<<1)>>S) 16>>((x’<<1)>>S) 0 Lower left corner 16>>((y'<<1)>>S) 16>>((x’<<1)>>S) 0 Upper right adjacent corner 32>>((y'<<1)>>S) 0 0 Lower left adjacent corner 0 32>>((x’<<1)>>S) 0

[0369] 2. Examples of shortcomings in existing implementations that are addressed by the described technology

[0370] Current CCLM implementations in JEM or VTM show at least the following issues:

[0371] - In the current CCLM design of JEM, it requires more adjacent luma sample points than normal intra prediction. CCLM requires two adjacent luma sample points on rows and three adjacent luma sample points on the left of columns. MM-CCLM requires four adjacent luma sample points on rows and four adjacent luma sample points on the left of columns. This is undesirable in hardware design.

[0372] -Other related methods only use a row of adjacent brightness sample points, but will bring some coding performance loss.

[0373] - The adjacent chroma sample points are only used to derive the LM parameters. When generating the prediction block of the chroma block, only the luma sample points and the derived LM parameters are used. Therefore, the spatial correlation between the current chroma block and its adjacent chroma blocks is not utilized.

[0374] In VTM-5.0, CCLM (including LM, LM-L, LM-T modes) can only find two available adjacent chroma sample points (and their corresponding downsampled luminance sample points). This is an undesirable special case in the 4-point maximum and minimum CCLM parameter derivation process.

[0375] 3. Example Method for Cross-Component Prediction in Video Coding

[0376] Embodiments of the disclosed technology overcome the shortcomings of existing implementations, thereby providing video coding with higher coding efficiency but lower computational complexity. The cross-component prediction based on the disclosed technology that can enhance existing and future video coding standards is described in the examples described below for various implementations. The examples of the disclosed technology provided below explain the general concepts and are not intended to be interpreted as limiting. In the examples, the various features described in these examples can be combined unless explicitly indicated to the contrary.

[0377] In the following examples and methods, the term "LM method" includes but is not limited to the LM mode in JEM or VTM, the MMLM mode in JEM, the left LM mode that uses only the left adjacent sample points to derive a linear model, the upper LM mode that uses only the upper adjacent sample points to derive a linear model, or other types of methods that utilize luma reconstructed sample points to derive chroma prediction blocks.

[0378] Example 1. In one example, consider a method of downsampling a luma sample point according to whether the luma sample point is within or outside the current block.

[0379] (a) Downsampled luma sample points can be used to derive LM parameters. Here, a luma block is the corresponding luma block of a chroma block.

[0380] (b) The downsampled luma sample points can be used to derive other types of chroma prediction blocks. Here, a luma block is the corresponding luma block of a chroma block.

[0381] (c) For example, the luma sample points within the current block are downsampled using the same method as in JEM, but the luma sample points outside the current block are downsampled using a different method.

[0382] Example 2. In one example, consider how to downsample external brightness sample points based on position.

[0383] (a) In one example, downsampled luma sample points may be used to derive a prediction block. Here, the external luma sample points may be adjacent luma sample points or non-adjacent luma sample points relative to the current luma block to be encoded.

[0384] (b) Downsampled luma sample points can be used to derive LM parameters. Here, external luma sample points are those sample points that are not located in the corresponding luma block of the current chroma block.

[0385] (c) In one example, the luma sample points to the left of the current block or above the current block are downsampled in different ways.

[0386] (d) In one example, Fig.13A and 13B As shown, the brightness sample points are downsampled according to the following provisions.

[0387] (i) Downsample the luma sample points within the current block in the same way as JEM.

[0388] (ii) Luminance sample points outside and above the current block are downsampled to Figure 4 Alternatively, use a filter to downsample the brightness sample points to Figure 4 Position C in. Assuming that the above brightness sample point adjacent to the current block is represented by a[i], then d[i]=(a[2i-1]+2*a[2i]+a[2i+1]+2)>>2, where d[i] represents the downsampled brightness sample point.

[0389] (1) If the sample point a[2i-1] is not available, then d[i] = (3*a[2i] + a[2i+1] + 2) >> 2

[0390] (2) If the sample point a[2i+1] is not available, then d[i] = (a[2i-1] + 3*a[2i] + 2) >> 2

[0391] (iii) Downsample the luminance sample points outside the current block and to the left of the current block to Figure 4 Alternatively, the luma sample point is downsampled to a position halfway between B and D. Assuming that the luma sample point adjacent to the current block is represented as a[j], then d[j] = (a[2j] + a[2j+1] + 1)>>1, where d[j] represents the downsampled luma sample point.

[0392] (iv) In one example, W brightness downsampled sample points are generated, where W is Fig.13A The width of the current chroma block shown.

[0393] (1) Alternatively, N×W brightness down-sampling sample points are generated from the above adjacent brightness sample points, where N is an integer such as 2, such as Fig. 13B shown.

[0394] (2) Alternatively, W+K brightness down-sampling sample points are generated from the above adjacent brightness sample points, where K is a positive integer.

[0395] (3) Alternatively, W / N brightness down-sampling sample points are generated from the above adjacent brightness sample points, where N is an integer such as 2.

[0396] (v) In one example, H brightness downsampled sample points are generated from the left adjacent brightness sample point, where H is Fig.13A The height of the current chroma block shown.

[0397] (1) Alternatively, N×H brightness downsampling sample points are generated, where N is an integer such as 2, as Fig. 13B shown.

[0398] (2) Alternatively, generate H+K brightness downsampling sample points, where K is a positive integer.

[0399] (3) Alternatively, generate H / N brightness down-sampling sample points, where N is an integer such as 2.

[0400] Example 3. In one example, consider how to select sample points for external luminance / intra luminance sample points and how many sample points to downsample according to block size / block shape.

[0401] Example 4. In one example, the prediction block generated from the LM method may also be refined before being used as a predictor for the chroma block.

[0402] (a) In one example, reconstructed chroma sample points (adjacent or non-adjacent chroma sample points) may also be used with the prediction block from the LM method.

[0403] (i) In one example, a linear function may be applied with neighboring reconstructed chrominance sample points and the prediction block from the LM method as input and refined prediction sample points as output.

[0404] (ii) In one example, for some positions, the prediction block from the LM method may be refined, and for the remaining positions, the prediction block from the LM method may be directly inherited without refinement.

[0405] (b) In one example, two prediction blocks may be generated (e.g., one from the LM method and the other from the chroma intra prediction block). However, for some positions, the final prediction block may be generated from the two prediction blocks, and for the remaining positions, the final prediction block may be directly copied from the prediction block from the LM.

[0406] (i) In one example, the chroma intra prediction mode may be signaled or derived from the luma intra prediction mode.

[0407] (ii) In one example, “certain positions” where two prediction blocks can be jointly used include several rows at the top and / or several columns at the left.

[0408] (c) For example, regardless of the downsampling filter used, boundary filtering can be applied to LM mode, MMLM mode, left LM mode or upper LM mode.

[0409] (d) In one example, the prediction block from the LM method and a function of the reconstructed chroma sample points above the current block may be used together to refine the prediction block from the LM method.

[0410] (i) Assuming that the reconstructed chrominance sample point adjacent to the current block is represented by a[-1][j], and the LM prediction sample point of the i-th row and j-th column is a[i][j], the prediction sample point after boundary filtering is calculated as a function of a[-1][j] and a[i][j]. In one example, the final prediction at the position (i, j) is defined as a'[i][j] = (w1*a[i][j] + w2*a[-1][i] + 2 N -1 )>>N, where w1+w2=2 N .

[0411] (ii) Boundary filtering can be applied only when upper neighboring sample points are available.

[0412] (iii) In one example, boundary filtering is applied only when i<=K (K is an integer such as 0 or 1). For example, K=0, w1=w2=1. In another example, K=0, w1=3, w2=1.

[0413] (iv) In one example, w1 and w2 depend on the row index (i). For example, for sample point a[0][j], K=1, w1=w2=1, and for sample point a[1][j], w1=3, w2=1.

[0414] (e) In one example, the prediction block from the LM method and a function of the reconstructed chrominance sample points to the left of the current block may be used together to refine the prediction block from the LM method.

[0415] (i) Assume that the reconstructed chroma sample point adjacent to the left of the current block is represented as a[i][-1], and the LM prediction sample point of the i-th row and j-th column is a[i][j], then the prediction sample point after boundary filtering is calculated as a function of a[i][-1] and a[i][j]. In one example, the final prediction at the (i, j) position is defined as a'[i][j] = (w1*a[i][j] + w2*a[i][1] + 2 N-1 )>>N, where w1+w2=2 N .

[0416] (ii) In one example, boundary filtering can be applied only when the left neighboring sample points are available.

[0417] (iii) In one example, boundary filtering is applied only when j<=K (K is an integer such as 0 or 1). For example, K=0, w1=w2=1. In another example, K=0, w1=3, w2=1.

[0418] (iv) In one example, w1 and w2 depend on the column index (i). For example, for sample point a[0][j], K=1, w1=w2=1, and for sample point a[1][j], w1=3, w2=1.

[0419] (f) In one example, the prediction block from the LM method and a function of the reconstructed chroma sample points to the upper left of the current block may be used together to refine the prediction block from the LM method.

[0420] (i) Assuming that the reconstructed chroma sample point adjacent to the current block is represented by a[-1][j], the reconstructed chroma sample point adjacent to the left of the current block is represented by a[i][1], and the LM prediction sample point of the i-th row and j-th column is a[i][j], then the prediction sample point after boundary filtering is calculated as a'[i][j] = (w1*a[i][j]+w2*a[i][1]+w3*a[-1][j]+2 N-1 )>>N, where w1+w2+w3=2 N .

[0421] (ii) In one example, boundary filtering can only be applied when both the left neighboring sample points and the top neighboring sample points are available.

[0422] (iii) In one example, the boundary filter is applied only when i<=K and j<=P. In another example, the boundary filter is applied only when i<=K or j<=P.

[0423] (iv) In one example, the boundary filtering is only applied to a[0][0] where w1=2, w2=w3=1.

[0424] Example 5. In one example, whether and how to apply the LM method may depend on the size or shape of the current block. Assume that W and H represent the width and height of the current chroma block, respectively, and T1 and T2 are thresholds.

[0425] (a) In one example, when W<=T1 and H<=T2, the LM mode (or MMLM mode, or left LM mode, or top LM mode) is not applicable. For example, T1=T2=4.

[0426] (b) In one example, when W<=T1 or H<=T2, the LM mode (or MMLM mode, or left LM mode, or top LM mode) is not applicable. For example, T1=T2=2.

[0427] (c) In one example, when W<=T1 or H<=T2, the LM mode (or MMLM mode, or left LM mode, or top LM mode) is not applicable. For example, T1=T2=4.

[0428] (d) In one example, when W+H<=T1, the LM mode (or MMLM mode, or left LM mode, or top LM mode) is not applicable. For example, T1=6.

[0429] (e) In one example, when W×H<=T1, the LM mode (or MMLM mode, or left LM mode, or top LM mode) is not applicable. For example, T1=16.

[0430] (f) In one example, when H<=T1, the left LM mode is not applicable. For example, T1=4.

[0431] (g) In one example, when W<=T1, the upper LM mode is not applicable. For example, T1=4.

[0432] (h) T1 and / or T2 may be predefined or signaled in an SPS, sequence header, PPS, picture header, VPS, slice header, CTU, CU or CTU group.

[0433] Example 6. In one example, considering whether and how to apply the proposed single-row LM method may depend on the location of the current block.

[0434] (a) In one example, Fig. 8A As shown, one or more of the proposed methods are applied to the CU located at the upper boundary of the current CTU.

[0435] (b) In one example, Figure 8B As shown, one or more of the proposed methods are applied to the CU located at the left boundary of the current CTU.

[0436] (c) In one example, both of the above two situations adopt one or more of the proposed methods.

[0437] (d) In one example, one or more of the proposed methods are applied to a CU located at the upper boundary of a region such as a 64×64 block.

[0438] (e) In one example, one or more of the proposed methods are applied to a CU located at the left boundary of a region such as a 64×64 block.

[0439] The examples described above may be incorporated into the context of the methods described below, such as method 1400 , which may be implemented at a video encoder and / or decoder.

[0440] Example 7. The upper LM neighboring sample points are downsampled using a filtering method (e.g., the method defined in Section 2.d.ii), and the luma sample points that can be used for normal intra prediction processing (e.g., 2W sample points in VVC (above and above the current block) are used. The left LM neighboring sample points are downsampled using a different filtering method (e.g., the method defined in JEM or VTM-2.0).

[0441] (a) Fig.16 An example showing how different downsampling methods can be combined together.

[0442] Example 8. In another example of 2.d.ii.1, a filter is used to downsample the luma samples to Figure 4 Position C in. Assuming that the brightness sample point adjacent to the current block is represented by a[i], if i>0, then d[i]=(a[2i-1]+2*a[2i]+a[2i+1]+offset0)>>2; otherwise (if i==0), d[i]=(3*a[2i]+a[2i+1]+offset1)>>2.

[0443] (a) Alternatively, if i == 0, then d[i] = a[2i].

[0444] (b) Alternatively, if i == 0, then d[i] = (a[2i] + a[2i + 1] + offset2) >> 1.

[0445] (c) In one example, offset0 = offset1 = 2; offset2 = 1.

[0446] Example 9. In some embodiments, the number of downsampled luma sample points above or to the left of the current block may depend on the dimensions of the current block. Assume that the width and height of the current chroma block are represented as W and H:

[0447] (a) For example, if W == H, then downsample W luma sample points above the current block and downsample H luma sample points to the left of the current block;

[0448] (b) For example, if W == H, then downsample 2 * W luma sample points above the current block and downsample 2 * H luma sample points to the left of the current block;

[0449] (c) For example, if W < H, then downsample 2 * W luma sample points above the current block and downsample H luma sample points to the left of the current block;

[0450] (d) For example, if W <= H, then downsample 2 * W luma sample points above the current block and downsample H luma sample points to the left of the current block;

[0451] (e) For example, if W > H, then downsample 2 * W luma sample points above the current block and downsample H luma sample points to the left of the current block;

[0452] (f) For example, if W >= H, then downsample 2 * W luma sample points above the current block and downsample H luma sample points to the left of the current block;

[0453] (g) For example, if W < H, then downsample W luma sample points above the current block and downsample 2 * H luma sample points to the left of the current block;

[0454] (h) For example, if W <= H, then downsample W luma sample points above the current block and downsample 2 * H luma sample points to the left of the current block;

[0455] (i) For example, if W > H, then downsample W luma sample points above the current block and downsample 2 * H luma sample points to the left of the current block;

[0456] (j) For example, if W>=H, then downsample the W luminance sample points above the current block, and downsample the 2*H luminance sample points on the left side of the current block;

[0457] (k) For example, only when both the upper neighboring block and the upper right neighboring block are available, the 2*W luminance sample points above the current block are downsampled. Otherwise, the W luminance sample points above the current block are downsampled.

[0458] (l) For example, only when both the left neighboring block and the lower left neighboring block are available, the 2*H luminance sample points on the left side of the current block are downsampled. Otherwise, the H luminance sample points above the current block are downsampled.

[0459] (m) Assume that there are W' (W' equals W or 2*W) downsampled luma sample points above the current block and H' (H' equals H or 2*H) downsampled luma sample points to the left of the current block. If W' is not equal to H', then the downsampled luma sample point set with more sample points is extracted to match the number of sample points in the downsampled luma sample point set with fewer sample points, as defined in JEM or VTM-2.0.

[0460] (n) In one example, the number of downsampled luma sample points above and to the left of the current block is set to max(W,H).

[0461] (i) Alternatively, the number of downsampled luma sample points above and to the left of the current block is set to a value between min(W,H) and max(W,H).

[0462] (ii) The number of downsampled luma sample points above and to the left of the current block is set to a value between min(W,H) and max(W,H)*SCALEDVALUE. For example, SCALEDVALUE is set to 2.

[0463] Example 10. In some embodiments, the decimation process when W is not equal to H is different from the decimation process in JEM or VTM-2.0.

[0464] (a) For example, if W>H, then H leftmost upper neighboring sample points and H left neighboring sample points are involved in the training process.

[0465] (b) For example, if W>H, then the H rightmost upper neighboring sample points and H leftmost neighboring sample points are involved in the training process.

[0466] (c) For example, if W>H, and W=H*n, W upper neighboring sample points and H left neighboring sample points are involved in the training process, and each left neighboring sample point appears n times in the training process.

[0467] (d) For example, if W < H, then W top - left adjacent sample points and W above - adjacent sample points are involved in the training process.

[0468] (e) For example, if W < H, then W bottom - left adjacent sample points and W above - adjacent sample points are involved in the training process.

[0469] (f) For example, if W < H and H = W * n, then W above - adjacent sample points and H left - adjacent sample points are involved in the training process, and each above - adjacent sample point appears n times in the training process.

[0470] Example 11. Whether and / or how to apply the CCLM mode (e.g., LM, LM - A, LM - T) to a block may depend on the number of available adjacent sample points and / or the size of the block.

[0471] (a) In one example, a block may refer to a chrominance - coded block.

[0472] (b) In one example, if one or more specific CCLM modes (e.g., LM, LM - A, LM - T) are not applicable to a block (e.g., according to the number of available adjacent sample points and / or dimensions), then the syntax elements (e.g., flags or mode representations) used to indicate the specific CCLM mode may not be signaled, and it is inferred that the specific CCLM mode is not applied.

[0473] (c) In one example, if one or more specific CCLM modes (e.g., LM, LM - A, LM - T) are not applicable to a block (e.g., according to the number of available adjacent sample points and / or dimensions), then the syntax elements (e.g., flags or mode representations) used to indicate the specific CCLM mode may be signaled, and it should be indicated that the CCLM mode is not applied in the compliant bitstream.

[0474] (d) In one example, if one or more specific CCLM modes (e.g., LM, LM - A, LM - T) are not applicable to a block (e.g., according to the number of available adjacent sample points and / or dimensions), then the syntax elements (e.g., flags or mode representations) used to indicate the specific CCLM mode may be signaled, but the signaling may be ignored by the decoder, and it is inferred that the specific CCLM mode is not applied.

[0475] (e) In one example, adjacent sample points may refer to chrominance - adjacent sample points.

[0476] (i) Alternatively, adjacent sample points may refer to corresponding luma - adjacent sample points that can be downsampled (e.g., according to the color format).

[0477] (f) In one example, if one or more specific CCLM modes (e.g., LM, LM-A, LM-T) are not applicable to a block (e.g., based on the number and / or dimensionality of available adjacent sample points), but a specific CCLM mode is signaled, parameter derivation processing for CCLM is performed in a particular manner.

[0478] (i) In one example, parameter a is set to 0, and parameter b is set to a fixed number, such as 1<<(bit depth - 1).

[0479] (g) In one example, when the number of available neighboring sample points is less than T, the LM mode and / or the LM-A mode and / or the LM-T mode is not applicable, where T is an integer such as 4.

[0480] (h) In one example, if the width of the block is equal to 2 and the left side is not available, the LM mode is not applicable.

[0481] (i) In one example, if the height of a block is equal to 2 and the upper neighboring block is not available, the LM mode is not applicable.

[0482] (j) In one example, if the width of the block is equal to 2, the LM-T mode is not applicable.

[0483] (i) Alternatively, if the width of the block is equal to 2 and the top right neighboring block is not available, the LM-T mode is not applicable.

[0484] (k) In one example, if the height of the block is equal to 2, the LM-L mode is not applicable.

[0485] (i) Alternatively, if the height of the block is equal to 2 and the lower left neighboring block is not available, the LM-L mode is not applicable.

[0486] (l) In one example, if the LM mode is not applicable, then the LM-L mode is not applicable.

[0487] (m) In one example, if the LM mode is not applicable, the LM-T mode is not applicable.

[0488] (n) In one example, the “available neighboring sample points” may be sample points from existing upper and / or left sample points according to the selected reference row.

[0489] (o) In one example, the “available neighboring sample points” may be sample points from the selected location according to the selected reference row and CCLM parameter derivation rules (eg, pSelcomp[ ]).

[0490] (p) The above method can also be applied to local illumination compensation (LIC) processing, where LIC can be disabled depending on the number of available neighboring sample points.

[0491] (i) Alternatively, depending on the number of available neighboring sample points, LIC may be enabled, but with specific linear model parameters (eg, a=1, b=0) regardless of the values ​​of the neighboring sample points.

[0492] Fig.14 A flow chart of an exemplary method of cross-component prediction is shown. The method 1400 comprises: in step 1410, receiving a bitstream representation of a current block of video data comprising a luma component and a chroma component.

[0493] In some embodiments, step 1410 includes receiving a bitstream representation from a memory location or buffer in a video encoder or decoder. In other embodiments, step 1410 includes receiving a bitstream representation at a video decoder via a wireless or wired channel. In another embodiment, step 1410 includes receiving a bitstream representation from a different module, unit, or processor that can implement one or more methods or algorithms including but not limited to those described in the embodiments herein.

[0494] The method 1400 includes determining parameters of the linear model based on a first set of sample points generated by downsampling a second set of sample points of the luminance component in step 1420. In some embodiments, the second set of sample points is located within the current block, and the determining parameters are further based on a third set of sample points generated by downsampling a fourth set of sample points located outside the current block.

[0495] In some embodiments, and in the context of Example 2 of Section 4, downsampling the second set of sample points is based on a first downsampling method, and downsampling the fourth set of sample points is based on a second downsampling method different from the first downsampling method.

[0496] In some embodiments, the fourth group of sample points includes adjacent luminance sample points of the current block. In other embodiments, the fourth group of sample points includes non-adjacent luminance sample points relative to the current block. In some embodiments, the second and / or fourth group of sample points are selected based on the size of the current block.

[0497] The method 1400 includes, at step 1430 , processing the bitstream representation based on parameters of the linear model to generate a current block.

[0498] In some embodiments, method 1400 may further include the step of predicting a fifth group of sample points of the chrominance component based on the parameters of the linear model and the first group of sample points, and the processing is also based on the fifth group of sample points.

[0499] In some embodiments, and in the context of Embodiment 4 of Section 4, method 1400 may further include the steps of predicting a fifth set of sample points of the chrominance component based on the parameters of the linear model and the first set of sample points, and refining the fifth set of sample points to generate a sixth set of sample points. In one example, the process may also be based on the sixth set of sample points.

[0500] In some embodiments, the refinement step may include applying a linear function to a set of adjacent reconstructed chrominance sample points and the fifth set of sample points to generate a sixth set of sample points. In one example, the set of adjacent reconstructed chrominance sample points is based on sample points to the left of the current block. In another example, the set of adjacent reconstructed chrominance sample points is also based on sample points above the current block.

[0501] In some embodiments, and in the context of Embodiment 2 of Section 4, downsampling the second set of sample points is based on a downsampling method selected according to the positions of the first set of sample points in the current block, and the first set of sample points is part of a 2×2 block of luma sample points (e.g., Figure 4 In one example, the first group of sample points includes the lower left sample point of the block of luma sample points. In another example, the first group of sample points includes the upper right sample point or the lower right sample point of the block of luma sample points.

[0502] In some embodiments, and in the context of Example 5 of Section 4, the height of the current block is greater than a first threshold and the width of the current block is greater than a second threshold. In some embodiments, the sum of the height of the current block and the width of the current block is greater than the first threshold. In some embodiments, the product of the height of the current block and the width of the current block is greater than the first threshold. In some embodiments, the height of the current block is greater than the first threshold or the width of the current block is greater than the second threshold. In these embodiments, the first threshold and / or the second threshold may be signaled in a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, a picture header, a coding tree unit (CTU), a coding unit (CU), or a CTU group.

[0503] In some embodiments, and in the context of Example 6 of Section 4, processing the bitstream representation is also based on the position of the current block in the current CTU. In one example, the position of the current block is at the top boundary of the current CTU. In another example, the position of the current block is at the left boundary of the current CTU.

[0504] Some additional techniques may be described using the following clause-based description.

[0505] 1. A video encoding method, comprising: during a conversion between a current block of a video and a bitstream representation of the current block, using parameters of a linear model based on a first set of sample points generated by downsampling a second set of sample points of a luminance component; and performing the conversion between the bitstream representation and the current block based on the parameters of the linear model.

[0506] 2. A method according to clause 1, wherein the number of downsampled luma sample points in the second group from above or to the left of the current block depends on the size of the current block.

[0507] 3. A method according to clause 2, wherein the current block is a chroma block having a width of W sample points and a height of H sample points, where W and H are integers, and wherein the W luma sample points above the current block are downsampled and the H luma sample points to the left of the current block are downsampled, where W equals H.

[0508] 4. The method of clause 1, wherein two different downsampling schemes are used when the current block is square and when the current block is rectangular.

[0509] 5. A method according to clause 4, wherein the current block has a width of W sample points and a height of H sample points, where W and H are integers and where W>H, and wherein the training process uses H leftmost top neighboring sample points and H left neighboring sample points.

[0510] 6. A method according to clause 4, wherein the current block has a width of W sample points and a height of H sample points, where W and H are integers, and where W>H, and wherein H rightmost upper neighboring sample points and H left neighboring sample points are involved in the training process.

[0511] In the above clauses, the conversion may include video decoding or decompression, wherein pixel values ​​of the current block are generated from its bitstream representation. In the above clauses, the conversion may include video encoding or compression operations, wherein a bitstream representation is generated from the current block.

[0512] In some embodiments, a method of video processing includes performing a conversion between a current video block and a bitstream representation of the current video block using a cross-component linear model, wherein the conversion using the cross-component linear model uses multiple rows of luminance sample points, at least one row being non-adjacent to the current video block.

[0513] Some examples of technical solutions and embodiments

[0514] Some solutions based on the disclosed technology may be as follows.

[0515] 1. A method for video encoding, comprising: receiving a bitstream representation of a current block of video data including a luminance component and a chrominance component, determining parameters of a linear model based on a first set of sample points generated by downsampling a second set of sample points of the luminance component, and processing the bitstream to generate the current block based on the parameters of the linear model.

[0516] 2. The method according to solution 1, wherein the second set of sample points is located within the current block, and wherein the determining parameter is also based on a third set of sample points generated by downsampling a fourth set of sample points located outside the current block.

[0517] 3. The method according to solution 2, wherein downsampling the second set of sample points is based on a first downsampling method, and wherein downsampling the fourth set of sample points is based on a second downsampling method.

[0518] 4. The method according to solution 2 or 3, wherein the fourth group of sample points includes adjacent luminance sample points of the current block.

[0519] 5. The method according to solution 2 or 3, wherein the fourth group of sample points includes non-adjacent luminance sample points relative to the current block.

[0520] 6. The method according to solution 2, wherein the fourth group of sample points is selected according to the size of the current block.

[0521] 7. The method according to solution 1, wherein downsampling is based on a filtering operation.

[0522] 8. The method according to solution 1, wherein the second set of sample points is selected based on the size of the current block.

[0523] 9. The method according to any one of solutions 1 to 8 further includes: predicting a fifth group of sample points of the chrominance component based on the parameters of the linear model and the first group of sample points, and the processing is also based on the fifth group of sample points.

[0524] 10. The method according to any one of solutions 1 to 8 further includes: predicting a fifth group of sample points of the chrominance component based on the parameters of the linear model and the first group of sample points; and refining the fifth group of sample points to generate a sixth group of sample points, wherein the processing is also based on the sixth group of sample points.

[0525] 11. The method according to solution 10, wherein refining the fifth group of sample points comprises: applying a linear function to a group of adjacent reconstructed chrominance sample points and the fifth group of sample points to generate a sixth group of sample points.

[0526] 12. The method according to solution 11, wherein the set of adjacent reconstructed chrominance sample points is based on sample points on the left side of the current block.

[0527] 13. The method according to solution 12, wherein the set of neighboring reconstructed chrominance sample points is also based on sample points above the current block.

[0528] 14. The method according to solution 1, wherein downsampling the second set of sample points is based on a downsampling method selected according to the positions of the first set of sample points in the current block, and wherein the 2×2 block of luma sample points includes the first set of sample points.

[0529] 15. The method according to solution 14, wherein the first set of sample points comprises a lower left sample point of the block of luma sample points.

[0530] 16. The method according to solution 14, wherein the first group of sample points comprises upper right sample points or lower right sample points of the block of luma sample points.

[0531] 17. The method according to solution 1, wherein the first set of sample points includes W sample points, wherein W is the width of the chrominance component.

[0532] 18. The method according to solution 1, wherein the first group of sample points includes H sample points, wherein the second group of sample points are left adjacent luma sample points relative to the current block, wherein H is the height of the chroma component.

[0533] 19. The method according to solution 1, wherein a height of the current block is greater than a first threshold, and a width of the current block is greater than a second threshold.

[0534] 20. The method according to solution 1, wherein the sum of the height and width of the current block is greater than a first threshold.

[0535] 21. A method according to solution 1, wherein the product of the height and width of the current block is greater than a first threshold.

[0536] 22. The method according to solution 1, wherein a height of the current block is greater than a first threshold or a width of the current block is greater than a second threshold.

[0537] 23. A method according to any one of solutions 19 to 22, wherein the first threshold is signaled in a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, a picture header, a coding tree unit (CTU), a coding unit (CU) or a CTU group.

[0538] 24. The method of solution 1, wherein processing the bitstream representation is also based on a position of the current block in a current coding tree unit (CTU).

[0539] 25. The method according to solution 24, wherein the position of the current block is at the upper boundary of the current CTU.

[0540] 26. The method according to solution 24, wherein the position of the current block is at the left boundary of the current CTU.

[0541] 27. A video encoding method, comprising: during a conversion between a current block of a video and a bitstream representation of the current block, using parameters of a linear model based on a first set of sample points generated by downsampling a second set of sample points of a luminance component; and performing the conversion between the bitstream representation and the current block based on the parameters of the linear model.

[0542] 28. The method of solution 27, wherein the number of downsampled luma sample points in the second group from above or to the left of the current block depends on the size of the current block.

[0543] 29. A method according to solution 28, wherein the current block is a chroma block with a width of W sample points and a height of H sample points, where W and H are integers, and wherein the W luma sample points above the current block are downsampled and the H luma sample points to the left of the current block are downsampled, where W equals H.

[0544] 30. The method according to solution 27, wherein two different downsampling schemes are used when the current block is square and when the current block is rectangular.

[0545] 31. A method according to solution 30, wherein the current block has a width of W sample points and a height of H sample points, where W and H are integers and where W>H, and wherein the training process uses H leftmost top-neighboring sample points and H left-neighboring sample points.

[0546] 32. A method according to solution 30, wherein the current block has a width of W sample points and a height of H sample points, wherein W and H are integers, and wherein W>H, and wherein the training process involves H rightmost upper neighboring sample points and H left neighboring sample points.

[0547] 33. A video processing method, comprising: using a cross-component linear model to perform a conversion between a current video block and a bitstream representation of the current video block, wherein the conversion using the cross-component linear model uses multiple rows of luminance sample points, at least one row is not adjacent to the current video block.

[0548] 34. A method according to solution 33, wherein the transformation uses a cross-component linear model mode including a multi-directional linear model.

[0549] 35. A method according to any of solutions 33 to 34, wherein at least one of the multiple rows does not include rows that meet the exclusion criteria or includes rows that meet the inclusion criteria.

[0550] 36. The method according to solution 35, wherein the exclusion criteria include: excluding luma sample points that are not used for directional intra prediction and multi-reference row intra prediction.

[0551] 37. The method of solution 35, wherein the inclusion criteria includes two lines above the current video block.

[0552] 38. An apparatus in a video system, comprising a processor and a non-transitory memory having instructions thereon, wherein when the processor executes the instructions, the processor implements the method described in any one of solutions 1 to 37.

[0553] 39. A computer program product stored on a non-transitory computer-readable medium, the computer program product comprising a program code for implementing the method of any one of solutions 1 to 37.

[0554] 4. Additional Embodiments of Cross-Component Prediction

[0555] Example 1

[0556] In some embodiments, luma sample points within the current block are downsampled in the same manner as in JEM.

[0557] In some embodiments, a filter is used to downsample luma sample points outside the current block and above the current block to Figure 4 Position C in the block. Assuming that the adjacent luminance sample point on the current block is represented by a[i], then d[i] = (a[2i-1] + 2*a[2i] + a[2i+1] + 2)>>2, where d[i] represents the downsampled luminance sample point. If the sample point a[2i-1] is not available, then d[i] = (3*a[2i] + a[2i+1] + 2)>>2.

[0558] In some embodiments, the luma sample points outside the current block and to the left of the current block are downsampled to Figure 4 The half position between B and D shown. Assuming that the brightness sample point adjacent to the current block is represented by a[j], then d[j] = (a[2j] + a[2j + 1] + 1) >> 1, where d[j] represents the downsampled brightness sample point.

[0559] In some embodiments, W downsampled luma sample points from the upper adjacent luma sample points and H downsampled luma sample points from the left adjacent luma sample points are generated, where W and H are as follows: Fig.13A The width and height of the current chroma block shown.

[0560] In some embodiments, 2W downsampled luma sample points from the upper adjacent luma sample points and 2H downsampled luma sample points from the left adjacent luma sample points are generated, where W and H are as follows: Fig. 13B The width and height of the current chroma block shown.

[0561] In order to constrain the adjacent brightness sample points required for the training process to be on a straight line, the following is applied: Figure 3A A downsampling filter with fewer taps is shown:

[0562] -For the adjacent brightness sample point above:

[0563] Rec′ L [x, y] = (2 × Rec L [2x,2y+1]+Rec L [2x-1,2y+1]+Rec L [2x+1,2y+1]+2)>>2.(2)

[0564] For the adjacent brightness sample point on the left:

[0565] Rec′ L [x, y] = (Rec L [2x+1,2y]+Rec L [2x+1,2y+1]+1)>>1. (3)

[0566] The luma sample points within the block are still downsampled using a six-tap filter.

[0567] Using different groups of adjacent brightness sample points, this paper presents two solutions. Assume that the width and height of a block are denoted as W and H respectively. In solution 1, Fig.17A The training process in designs W upper adjacent sample points and H left adjacent sample points. In solution 2, 2W upper adjacent sample points and 2H left adjacent sample points are involved, such as Fig. 17B It should be noted that the extended neighboring sample points in Solution 2 have been used by wide-angle intra prediction.

[0568] In addition, if Figures 18A to 18C Solution 3 is provided based on Solution 2. If W <= H, 2W upper neighboring sample points are involved; otherwise, W upper neighboring sample points are involved. If H <= W, 2H left neighboring sample points are involved; otherwise, H left neighboring sample points are involved.

[0569] As a further study, solutions 1A, 2A and 3A are provided, which respectively adopt the same methods of solutions 1, 2 and 3, but are only used on the above-mentioned adjacent sample points. In solutions 1A, 2A and 3A, the left adjacent luma sample points are downsampled as in VTM-2.0, that is, the left adjacent luma sample points are downsampled using a 6-tap filter.

[0570] Example 2

[0571] Implementation example regarding CCLM sample point limit in the working draft (example changes are marked: deleted content is enclosed in double brackets {{}}).

[0572] Specification of INTRA_LT_CCLM, INTRA_L_CCLM and INTRA_T_CCLM intra prediction modes

[0573] The inputs to this process include:

[0574] …

[0575] The output of this process is the predicted sample points predSamples[x][y], where

[0576] x=0..nTbW-1, y=0..nTbH-1.

[0577] The current brightness position (xTbY, yTbY) is derived as follows:

[0578] (xTbY,yTbY)=(xTbC<<1,yTbC<<1) (8-156)

[0579] The variables availL, availT and availTL are derived as follows:

[0580] …

[0581] – The number of available top-right adjacent chroma sample points numTopRight is derived as follows:

[0582] –The variable numTopRight is set equal to 0 and availTR is set to TRUE.

[0583] – When predModeIntra is equal to INTRA_T_CCLM, the following applies for x=nTbW..2*nTbW-1 until availTR is equal to FALSE or x is equal to 2*nTbW-1:

[0584] …

[0585] – The number of available lower left adjacent chroma sample points numLeftBelow is derived as follows:

[0586] …

[0587] - The number of available adjacent chroma sample points numTopSamp above and to the upper right, and the number of available adjacent chroma sample points nLeftSamp to the left and to the lower left are derived as follows:

[0588] – If predModeIntra is equal to INTRA_LT_CCLM, the following applies:

[0589] numSampT=availT? nTbW:0 (8-157)

[0590] numSampL=availL? nTbH:0 (8-158)

[0591] – Otherwise, the following applies:

[0592] numSampT=(availT&&predModeIntra==INTRA_T_CCLM)? (nTbW+Min(numTopRight,nTbH)):0(8-159)

[0593] numSampL=(availL&&predModeIntra==INTRA_L_CCLM)? (nTbH+Min(numLeftBelow,nTbW)):0 (8-160)

[0594] The variable bCTUboundary is derived as follows:

[0595] bCTUboundary=(yTbC&(1<<(CtbLog2SizeY-1)-1)==0)? TRUE:FALSE. (8-161)

[0596] The variable cntN and array pickPosN (N is replaced by L and T) are derived as follows:

[0597] – The variable numIs4N is set equal to ((availT&&availL&&predModeIntra==INTRA_LT_CCLM)?0:1).

[0598] – The variable startPosN is set equal to numSampN>>(2+numIs4N).

[0599] – The variable pickStepN is set equal to Max(1,numSampN>>(1+numIs4N)).

[0600] – If availN is equal to TRUE and predModeIntra is equal to INTRA_LT_CCLM or INTRA_N_CCLM, the following assignments are made:

[0601] –cntN is set equal to Min(numSampN,(1+numIs4N)<<1)

[0602] –pickPosN[pos] is set equal to (startPosN+pos*pickStepN), where pos = 0..cntN–1

[0603] – Otherwise, cntN is set equal to 0.

[0604] The predicted sample points predSamples[x][y] where x = 0..nTbW-1, y = 0..nTbH-1 are derived as follows:

[0605] – If numSampL and numSampT are both equal to 0, then the following applies:

[0606] predSamples[x][y]=1<<(BitDepth C -1) (8-162)

[0607] – Otherwise, the following sequence of steps applies:

[0608] 1. The co-located luminance sample point pY[x][y] where x=0..nTbW*2-1, y=0..nTbH*2-1 is set equal to the reconstructed luminance sample point before deblocking filtering at the position (xTbY+x, yTbY+y).

[0609] 2. The adjacent brightness sample points pY[x][y] are derived as follows:

[0610] –When numSampL is greater than 0, the adjacent left luminance sample point pY[x][y] (where x = -1..-3, y = 0..2*numSampL-1) is set equal to the reconstructed luminance sample point before deblocking filtering at the position (xTbY+x, yTbY+y).

[0611] –When numSampT is greater than 0, the adjacent upper luminance sample point pY[x][y] (where x = 0..2*numSampT-1, y = -1, -2) is set equal to the reconstructed luminance sample point before deblocking filtering at the position (xTbY+x, yTbY+y).

[0612] –When availTL is equal to TRUE, the adjacent upper left luma sample point pY[x][y] (where x=-1, y=-1, -2) is set equal to the reconstructed luma sample point before deblocking filtering at position (xTbY+x, yTbY+y).

[0613] 3. The downsampled co-located brightness sample points pDsY[x][y] (where x = 0..nTbW-1, y = 0..nTbH-1) are derived as follows:

[0614] …

[0615] 4. When numSampL is greater than 0, the selected adjacent left chroma sample point pSelC[idx] is set equal to p[-1][pickPosL[idx]], where idx = 0..cntL–1, and the selected downsampled adjacent left luma sample point pSelDsY[idx] (where idx = 0..cntL-1) is derived as follows:

[0616] – The variable y is set equal to pickPosL[idx].

[0617] – If sps_cclm_colocated_chroma_flag is equal to 1, the following applies:

[0618] …

[0619] – Otherwise, the following applies:

[0620] pSelDsY[idx]=(pY[-1][2*y]+

[0621] pY[-1][2*y+1]+

[0622] 2*pY[-2][2*y]+2*pY[-2][2*y+1]+

[0623] pY[-3][2*y]+pY[-3][2*y+1]+4)>>3 (8-178)

[0624] 5. When numSampT is greater than 0, the selected adjacent upper chroma sample point pSelC[idx] is set equal to p[pickPosT[idx–cntL]][-1] where idx = cntL..cntL+cntT–1, and the downsampled adjacent upper luma sample point pSelDsY[idx] (where idx = 0..cntL+cntT-1) is defined as follows:

[0625] – The variable x is set equal to pickPosT[idx–cntL]

[0626] – If sps_cclm_colocated_chroma_flag is equal to 1, the following applies:

[0627] …

[0628] 6. When cntT+cntL is not {{equal to 0}} and is less than the threshold 1, the variables minY, maxY, minC and maxC are derived as follows:

[0629] –{{When cntT+cntL equals 2, set pSelComp[3] equal to pSelComp[0], pSelComp[2] equal to pSelComp[1], pSelComp[0] equal to pSelComp[1], and pSelComp[1] equal to pSelComp[3], where Comp is replaced by DsY and C..}}

[0630] – The arrays minGrpIdx and maxGrpIdx are set as follows:

[0631] –minGrpIdx[0]=0

[0632] –minGrpIdx[1]=2

[0633] –maxGrpIdx[0]=1

[0634] –maxGrpIdx[1]=3

[0635] –When pSelDsY[minGrpIdx[0]] is greater than pSelDsY[minGrpIdx[1]], minGrpIdx[0] and minGrpIdx[1] are swapped as (minGrpIdx[0], minGrpIdx[1]) = swap(minGrpIdx[0], minGrpIdx[1]).

[0636] – When pSelDsY[maxGrpIdx[0]] is greater than pSelDsY[maxGrpIdx[1]], maxGrpIdx[0] and maxGrpIdx[1] are swapped as (maxGrpIdx[0], maxGrpIdx[1]) = swap(maxGrpIdx[0], maxGrpIdx[1]).

[0637] –When pSelDsY[minGrpIdx[0]] is greater than pSelDsY[maxGrpIdx[1]], the arrays minGrpIdx and maxGrpIdx are swapped as (minGrpIdx, maxGrpIdx) = swap(minGrpIdx, maxGrpIdx).

[0638] – When pSelDsY[minGrpIdx[1]] is greater than pSelDsY[maxGrpIdx[0]], minGrpIdx[1] and maxGrpIdx[0] are swapped as (minGrpIdx[1], maxGrpIdx[0]) = swap(minGrpIdx[1], maxGrpIdx[0]).

[0639] –maxY=(pSelDsY[maxGrpIdx[0]]+pSelDsY[maxGrpIdx[1]]+1)>>1.

[0640] –maxC=(pSelC[maxGrpIdx[0]]+pSelC[maxGrpIdx[1]]+1)>>1.

[0641] –minY=(pSelDsY[minGrpIdx[0]]+pSelDsY[minGrpIdx[1]]+1)>>1.

[0642] –minC=(pSelC[minGrpIdx[0]]+pSelC[minGrpIdx[1]]+1)>>1.

[0643] 7. The variables a, b and k are derived as follows:

[0644] – If {{numSampL is equal to 0, and numSampT is equal to 0}} cntT+cntL is less than the threshold 1, then the following applies:

[0645] k=0 (8-208)

[0646] a=0 (8-209)

[0647] b=1<<(BitDepth C -1) (8-210)

[0648] – Otherwise, the following applies:

[0649] 8. The predicted samples predSamples[x][y] (where x = 0..nTbW-1, y = 0..nTbH-1) are derived as follows:

[0650] predSamples[x][y]=Clip1C(((pDsY[x][y]*a)>>k)+b) (8-225)

[0651] In one example, Threshold 1 is set to 4.

[0652] In some embodiments, the following technical solutions may be implemented:

[0653] 1. A video processing method (eg, Fig.21 The method 2100 shown includes: for conversion between a video and an encoded representation of the video, using at least downsampled luma sample points outside a luma block, determining (2102) a linear model for predicting a first chroma block of the video co-located with the luma block; using the downsampled luma sample points within the luma block and the linear model to determine (2104) predicted values ​​of the sample points of the first chroma block; and performing (2106) conversion based on the predicted values ​​of the sample points of the first chroma block; wherein the downsampled luma sample points outside the luma block are obtained by applying an external filter to the luma sample points outside the luma block; and wherein the downsampled luma sample points within the luma block are obtained by applying an internal filter to the luma sample points within the luma block.

[0654] 2. The method of solution 1, wherein the downsampled luma sample points within the luma block are located at positions corresponding to the positions of the chroma sample points outside the first chroma block.

[0655] 3. The method according to any one of solutions 1 to 2, wherein the downsampled luma sample points within the luma block and the downsampled luma sample points outside the luma block are further used for the second prediction of the first chroma block.

[0656] 4. A method according to any one of solutions 1 to 3, wherein the internal filter corresponds to a conventional filter.

[0657] 5. A method according to any one of solutions 1 to 3, wherein the external filter is different from the internal filter.

[0658] 6. The method according to any one of solutions 1 to 5, wherein the luma sample points outside the luma block include adjacent luma sample points or non-adjacent luma sample points.

[0659] 7. The method according to solution 6, wherein the downsampled luma sample points outside the luma block are also used to determine the prediction values ​​of the sample points of the first chroma block.

[0660] 8. A method according to any of solutions 1 to 7, wherein the filter taps or filter coefficients of the external filter depend on whether the external filter is applied to the left or above the luma block.

[0661] 9. The method according to solutions 1 to 8, wherein the length of the inner filter or the length of the outer filter depends on the shape or size of the first chrominance block or the luminance block.

[0662] 10. The method according to any one of solutions 1 to 9, wherein the position of the luma sample point outside the luma block or inside the luma block is a function of the size or shape of the first chroma block or the luma block.

[0663] 11. A method according to any one of solutions 1 to 10, wherein determining the sample points of the first chrominance block includes: predicting the sample points of the first chrominance block using a refined prediction block, wherein the refinement is a refinement of an intermediate prediction block generated by applying a linear model to downsampled luminance sample points within a luminance block.

[0664] 12. The method according to solution 11, wherein refinement of the intermediate prediction block uses reconstructed chroma sample points adjacent to the first chroma block.

[0665] 13. The method according to solution 11, wherein refinement of the intermediate prediction block uses reconstructed chroma sample points that are not adjacent to the first chroma block.

[0666] 14. A method according to any one of solutions 11 to 13, wherein the refined prediction block is determined as a linear function of the intermediate prediction block and adjacent or non-adjacent reconstructed chrominance sample points.

[0667] 15. The method according to any one of solutions 11 to 14, wherein the refinement comprises: copying sample points of the intermediate prediction block as refined prediction blocks in some positions of the first chroma block.

[0668] 16. The method of solution 11, wherein the refinement prediction block is generated from the intermediate prediction block and another chroma prediction block generated from a previous reconstructed chroma block.

[0669] 17. The method of solution 16, wherein the other chroma prediction block is an intra-predicted chroma block.

[0670] 18. The method according to any one of solutions 16 to 17, wherein the sample points of the first chroma block are determined as a linear weighting of the intermediate prediction block and another chroma prediction block.

[0671] 19. The method according to solution 18, wherein at some pixel positions of the first chroma block, another chroma prediction block is given a weight of 0%, and the intermediate prediction block is given a weight of 100%.

[0672] 20. The method according to solutions 17 to 19, wherein the intra-prediction of the chrominance block uses the intra-prediction mode of the luma block.

[0673] 21. The method of solution 19, wherein some of the pixel positions include the upper k rows of the first chroma block or the left m columns of the first chroma block, where k and m are integers.

[0674] 22. A method according to any one of solutions 1 to 21, wherein the conversion further comprises: performing boundary filtering on the luminance block and / or the first chrominance block.

[0675] 23. The method according to solution 22, wherein boundary filtering is applied only when an upper or left neighboring sample point is available or when both an upper and left neighboring sample point are available.

[0676] 24. The method according to solution 12, wherein the reconstructed chroma sample points adjacent to the first chroma block include above, left, or above and left chroma sample points.

[0677] 25. The method according to solution 24, wherein the upper chroma sample point is represented by a[-1][j], and wherein the sample point in the i-th row and j-th column of the intermediate prediction block is a[i][j], then the sample point at the (i, j)th position of the first chroma block is calculated as a'[i][j]=(w1*a[i][j]+w2*a[-1][j]+2 N-1 )>>N, where w1+w2=2 N , where N is an integer.

[0678] 26. The method according to solution 22, wherein boundary filtering is applied only to rows i<=K, where K is an integer equal to zero or 1.

[0679] 27. A method according to any of solutions 25 to 26, wherein K=0, w1=3, w2=1.

[0680] 28. The method of solution 25, wherein w1 and w2 are functions of the row index i.

[0681] 29. The method according to solution 28, wherein when i=0, K=1, w1=w2=1, and when i=1, K=1, w1=3, w2=1.

[0682] 30. A method according to solution 24, wherein the left chrominance sample point is represented as a[i][-1], and wherein the sample point in the i-th row and j-th column of the intermediate prediction block is a[i][j], then the sample point at the (i, j)th position in the first chrominance block is calculated as a'[i][j] = (w1*a[i][j] + w2*a[i][[-1] + 2 N-1 )>>N, where w1+w2=2 N , where N is an integer.

[0683] 31. The method according to solution 22, wherein boundary filtering is applied only to columns j<=K, where K is an integer equal to zero or 1.

[0684] 32. A method according to any of solutions 25 to 26, wherein K=0, w1=3, w2=1.

[0685] 33. The method of solution 25, wherein w1 and w2 are functions of column index j.

[0686] 34. A method according to solution 28, wherein when j=0, K=1, w1=w2=1, and when j=1, K=1, w1=3, w2=1.

[0687] 35. A method according to solution 24, wherein the left chroma sample point is represented by a[i][-1], the upper sample point is represented by a[-1][j], and the sample point of the i-th row and j-th column of the intermediate prediction block is a[i][j], then the sample point at the (i, j)th position of the first chroma block is calculated as a'[i][j] = (w1*a[i][j] + w2*a[i][-1] + w3*a[-1][j] + 2 N-1 )>>N, where w1+w2+w3=2 N , where N is an integer.

[0688] 36. The method according to solution 22, wherein boundary filtering is only applied to column i<=K and column j<=P, where K and P are integers equal to zero or 1.

[0689] 37. A method according to any one of solutions 25 to 27, wherein K=0, w1=3, w2=1.

[0690] 38. The method of solution 25, wherein w1 and w2 are functions of column index j.

[0691] 39. The method of solution 28, wherein boundary filtering is applied to a[0][0] with w1=2 and w2=w3=1.

[0692] 40. A video processing method (eg, Fig. 22 The method 2200 shown includes: determining (2202) one or more cross-component linear models (CCLMs) for predicting a first component block from a second component block for conversion between a video and an encoded representation of the video during conversion based on a rule using the number of available neighboring sample points or the size of the first component block; and performing (2204) the conversion using the cross-component linear model, wherein the cross-component linear model is one of the following: a CCLM derived from above and / or upper right neighboring values ​​of the first component block (CCLM-A); a CCLM derived from left and / or lower left neighboring values ​​of the first component block (CCLM-T); or a CCLM derived only from left and above neighboring values ​​of the first component block (CCLM-TL).

[0693] 41. The method of solution 40, wherein the first component block corresponds to a chrominance block.

[0694] 42. A method according to any of solutions 40 to 41, wherein the second component block corresponds to a luma block.

[0695] 43. A method according to any one of solutions 40 to 42, wherein if the rule prohibits the use of CCLM, the encoding represents the omission of signaling CCLM using syntax elements.

[0696] 44. A method according to any one of solutions 40 to 42, wherein if a rule prohibits the use of CCLM, the coded representation signals that CCLM is disabled through a syntax element in the coded representation.

[0697] 45. A method according to any of solutions 40 to 42, wherein if a rule prohibits the use of CCLM, the encoded representation signaling includes a syntax element of CCLM, wherein the decoder is expected to ignore the syntax element.

[0698] 46. ​​The method according to any one of solutions 40 to 45, wherein the available neighboring sample points include chrominance neighboring sample points.

[0699] 47. The method according to any one of solutions 40 to 46, wherein the available neighboring sample points include brightness neighboring sample points.

[0700] 48. The method according to any one of solutions 40 to 46, wherein the available neighboring sample points include downsampled brightness neighboring sample points.

[0701] 49. A method according to any one of solutions 40 to 48, wherein the encoding represents signaling of a specific CCLM, wherein the specific CCLM uses a linear model with a slope α of zero and an intercept β of a fixed number.

[0702] 50. The method of solution 49, wherein the fixed number is a function of the bit depth.

[0703] 51. The method according to any of solutions 40 to 50, wherein a rule prohibits the use of CCLM or CCLM-A or CCLM-T due to the number of available neighboring sample points being less than a threshold.

[0704] 52. A method according to any of solutions 40 to 50, wherein a rule prohibits the use of CCLM due to the width of the chroma block being two or the unavailability of the left neighboring sample point.

[0705] 53. A method according to any of solutions 40 to 50, wherein a rule prohibits the use of CCLM because the width of the chroma block is two or the upper neighboring sample points are not available.

[0706] 54. A method according to any of solutions 40 to 50, wherein the rules prohibit the use of CCLM-T due to the width of the chroma block being two.

[0707] 55. A method according to any of solutions 40 to 50, wherein the rule prohibits the use of CCLM-T due to the width of the chroma block being two and the upper right neighboring block being unavailable.

[0708] 56. A method according to any of solutions 40 to 50, wherein the rules prohibit the use of CCLM-L due to the height of the chroma block being two.

[0709] 57. A method according to any of solutions 40 to 50, wherein the rule prohibits the use of CCLM-L because the height of the chroma block is two and the upper right neighboring block is not available.

[0710] 58. A method according to any of solutions 40 to 57, wherein the rule stipulates that CCLM-L is disabled due to CCLM unavailability.

[0711] 59. A method according to any of solutions 40 to 57, wherein the rules provide for disabling CCLM-T due to CCLM unavailability.

[0712] 60. The method according to any one of solutions 40 to 59, wherein the available neighboring sample points are sample points to the left or above relative to one or more reference lines selected for the chroma block.

[0713] 61. A method according to any one of solutions 40 to 59, wherein the available neighboring sample points are sample points to the left or above relative to one or more reference rows selected for the chrominance block and the parameter derivation rules of the CCLM.

[0714] 62. The method according to any one of solutions 40 to 61, wherein converting further comprises: decoding during the conversion of the first component block to selectively disable or limit local illumination compensation based on the number of available neighboring sample points.

[0715] 63. A method according to any one of solutions 40 to 61, wherein selectively limiting local illumination compensation includes: forcing the CCLM to use specific linear parameter values.

[0716] 64. A method according to any one of solutions 1 to 63, wherein the conversion includes: generating a video from an encoded representation.

[0717] 65. A method according to any one of solutions 1 to 63, wherein the conversion includes: generating an encoded representation from the video.

[0718] 66. A video processing device, comprising a processor, configured to implement the method described in any one or more of solutions 1 to 65.

[0719] 67. A computer-readable program medium having codes stored thereon, which, when executed by a processor, causes the processor to implement the method described in any one or more of solutions 1 to 65.

[0720] In addition to the above solutions, in some embodiments, the following solutions may be implemented.

[0721] 1. A video processing method (eg, Fig.19 The method 1900 shown includes: using a first downsampling scheme to generate (1902) downsampled outer luma sample points corresponding to chroma sample points outside a chroma block of a video; using a second downsampling scheme to generate (1904) downsampled inner luma sample points corresponding to chroma sample points within the chroma block; using at least (1906) the downsampled outer luma sample points to derive a linear model for cross-component prediction; using the linear model and the downsampled inner luma sample points to determine (1908) predicted sample points for the chroma block; and using the predicted sample points for the chroma block to perform (1910) conversion between a video and an encoded representation of the video.

[0722] 2. The method according to solution 1, wherein the first downsampling scheme corresponds to downsampling the outer upper brightness sample points to the lower left and / or lower right positions.

[0723] 3. The method according to solution 1 or 2, wherein the first downsampling scheme corresponds to downsampling the external brightness sample point to a lower left position.

[0724] 4. The method according to solution 3, wherein the first downsampling scheme calculates the downsampled luma sample point d[i] from the upper adjacent luma sample point a[i]:

[0725] When all sample points are available, d[i] = (a[2i-1] + 2*a[2i] + a[2i+1] + 2) >> 2, or

[0726] In the case where a[2i-1] is not available, d[i] = (3*a[2i] + a[2i+1] + 2) >> 2, or

[0727] In the case where a[2i+1] is not available, d[i]=(3*a[2i]+a[2i-1]+2)>>2.

[0728] 5. The method according to solution 3, wherein the first downsampling scheme calculates the downsampled luma sample point d[i] from the upper adjacent luma sample point a[i]:

[0729] When i>0, d[i]=(a[2i-1]+2*a[2i]+a[2i+1]+offset0)>>2,

[0730] When i=0, d[i]=(3*a[2i]+a[2i+1]+offset1)>>2, or

[0731] d[i] = a[2i], or

[0732] d[i]=(a[2i]+a[2i+1]+offset2)>>1,

[0733] Where offset0, offset1 and offset2 are fractions.

[0734] 6. The method according to solution 5, wherein offset0=offset1=2, offset2=1.

[0735] 7. The method according to solution 1, wherein the first downsampling scheme corresponds to downsampling the outer left brightness sample points to the lower right and / or upper right positions.

[0736] 8. The method of solution 1, wherein the first downsampling scheme corresponds to downsampling the outer left luminance sample point to halfway between the lower right and upper right positions.

[0737] 9. The method according to solution 8, wherein the downsampled brightness sample point d[i] is calculated as:

[0738] d[j]=(a[2j]+a[2j+1]+1)>>2.

[0739] 10. The method of solution 1, wherein the chroma block has a width of W pixels and a height of H pixels, and wherein the first downsampling scheme generates N*W luma sample points, where N is an integer.

[0740] 11. The method of solution 10, wherein N=2, and wherein the first downsampling scheme generates luma sample points from upper neighboring luma sample points.

[0741] 12. The method of solution 1, wherein the chroma block has a width of W pixels and a height of H pixels, and wherein the first downsampling scheme generates W+K luma downsampled sample points from upper adjacent luma sample points, where K is a positive integer.

[0742] 13. The method of solution 1, wherein the chroma block has a width of W pixels and a height of H pixels, and wherein the first downsampling scheme generates W / N luma downsampled sample points from upper neighboring sample points, where N is a positive integer.

[0743] 14. The method of solution 1, wherein the chroma block has a width of W pixels and a height of H pixels, and wherein the first downsampling scheme generates W*N luma downsampled sample points from left adjacent luma sample points, where N is a positive integer.

[0744] 15. The method of solution 1, wherein the chroma block has a width of W pixels and a height of H pixels, and wherein the first downsampling scheme generates W+K luma downsampled sample points from left adjacent luma sample points, where K is a positive integer.

[0745] 16. The method of solution 1, wherein the chroma block has a width of W pixels and a height of H pixels, and wherein the first downsampling scheme generates W / N luma downsampled sample points from left adjacent luma sample points, where N is a positive integer.

[0746] 17. The method according to solution 1, wherein the first down-sampling scheme or the second down-sampling scheme is determined based on the position of the chroma block of the video that meets the position criterion.

[0747] 18. The method according to any one of solutions 1 to 16, wherein the location criterion stipulates that the method is used only for video blocks at the top boundary of a coding tree unit of the video.

[0748] 19. A method according to any one of solutions 1 to 16, wherein the position criterion stipulates that the method is used only for video blocks at the left boundary of the coding tree unit of the video.

[0749] 20. The method according to any one of solutions 1 to 16, wherein the position criterion stipulates that the method is only used for video blocks at the upper boundary of the coding tree unit of the video or the left boundary of the coding tree unit of the video.

[0750] 21. The method according to any one of solutions 1 to 20, wherein the first down-sampling scheme uses only one upper adjacent luma sample point row to derive the down-sampled outer luma sample points.

[0751] 22. The method according to solution 21, wherein an upper adjacent brightness sample point row includes an upper adjacent sample point and an upper right adjacent sample point.

[0752] 23. A video processing method (eg, Fig. 20The method 2000 shown comprises: determining (2002) a linear model for conversion between a chroma block of a video and an encoded representation of the video; generating (2004) a prediction value of the chroma block from a luminance block corresponding to the chroma block based on the linear model; and performing (2006) the conversion using the linear model; wherein predicting the chroma block from the luminance block comprises: downsampling luminance sample points above the luminance block by a first filtering method, and downsampling luminance sample points to the left of the luminance block by a second filtering method, and wherein the linear model is determined based on at least the downsampled luminance sample points.

[0753] 24. The method of solution 23, wherein the first filtering method uses only luma sample points of a single upper adjacent luma line during conversion of the video.

[0754] 25. The method of solution 23, wherein the first filtering method and the second filtering method are different.

[0755] 26. A method according to any one of solutions 23 to 25, wherein the first filtering method uses a horizontal 3-tap filter.

[0756] 27. A method according to any one of solutions 23 to 26, wherein the second filtering method uses a two-dimensional 6-tap filter.

[0757] 28. A method according to any one of solutions 1 to 27, wherein the conversion includes: generating a video from an encoded representation.

[0758] 29. A method according to any one of solutions 1 to 27, wherein the conversion includes: generating an encoded representation from the video.

[0759] 30. A video processing device, comprising a processor, configured to implement the method described in any one or more of solutions 1 to 29.

[0760] 31. A computer-readable program medium having codes stored thereon, which, when executed by a processor, causes the processor to implement the method described in any one or more of solutions 1 to 29.

[0761] The various video processing solutions described herein may be implemented during video encoding or compression, video decoding or decompression, video transcoding, or converting a video representation from one encoding format to another.

[0762] Furthermore, although a first chroma block belonging to a first chroma component of a video is described in detail, similar techniques may be used for a second chroma block belonging to a second chroma component of the video (eg, Cr and Cb or U or V or another type of chroma representation).

[0763] In addition to the above solutions, in some embodiments, the following solutions may be implemented.

[0764] 1. A video processing method (eg, Fig.23 The method 2300 shown includes: determining (2302) parameters of a linear model for conversion between a video and a bitstream of the video based on a height (H) and a width (W) of a chroma block of the video, wherein the parameters of the linear model are based on downsampled luminance sample points corresponding to chroma sample points outside the chroma block, and wherein H and W are positive integers; generating (2304) a set of sample points of the chroma block based on the parameters of the linear model and a set of downsampled luminance sample points within the luminance block corresponding to the chroma block; and performing (2306) conversion between the video and the bitstream representation based on the generated.

[0765] 2. The method according to solution 1 further includes: applying a first down-sampling scheme to generate down-sampled luma sample points outside the luma block.

[0766] 3. The method according to solution 2 further includes: applying a second down-sampling scheme different from the first down-sampling scheme to generate down-sampled luma sample points within the luma block.

[0767] 4. A method according to any one of solutions 1 to 3, wherein W>T1 or H>T2, wherein T1 and T2 are integers.

[0768] 5. The method according to solution 4, wherein T1=T2=4.

[0769] 6. The method according to solution 4, wherein T1=T2=2.

[0770] 7. A method according to any one of solutions 1 to 3, wherein H+W>T1, and wherein T1 is an integer.

[0771] 8. The method according to solution 7, wherein T1=6.

[0772] 9. A method according to any one of solutions 1 to 3, wherein W×H>T1, wherein T1 is an integer.

[0773] 10. The method according to solution 9, wherein T1=16.

[0774] 11. A method according to any one of solutions 4 to 10, wherein T1 is predefined or signaled in a sequence parameter set (SPS), a sequence header, a picture parameter set (PPS), a picture header, a video parameter set (VPS), a slice header, a coding tree unit (CTU), a coding unit (CU) or a CTU group.

[0775] 12. A method according to any one of solutions 1 to 11, wherein the linear model comprises a multiple model linear model (MMLM) or a single model linear model (LM).

[0776] 13. The method according to solution 12, wherein the downsampled luma sample points outside the luma block are composed only of left adjacent sample points or only of top adjacent sample points.

[0777] 14. The method according to solution 13, wherein a linear model using only left-side neighboring sample points (left LM) is applied when determining H>T1, where T1 is an integer.

[0778] 15. The method according to solution 13, wherein a linear model using only upper neighboring sample points (upper LM) is applied when determining W>T1, where T1 is an integer.

[0779] 16. The method according to solution 14 or 15, wherein T1=4.

[0780] 17. A video processing method (eg, Fig.24 The method 2400 shown includes: determining (2402) parameters of a linear model for conversion between a video and a bitstream representation of the video based on a height (H) and a width (W) of a chroma block of the video, wherein the parameters of the linear model are based on a first set of luma sample points generated by downsampling a second set of luma sample points corresponding to chroma sample points outside the chroma block, and wherein the number of the first set of luma sample points is based on the height or the width, and wherein H and W are positive integers; generating (2404) a set of sample points for the chroma block based on the parameters of the linear model and a set of downsampled luma sample points within the luma block corresponding to the chroma block; and performing (2406) conversion between the video and the bitstream representation based on the generated.

[0781] 18. The method according to solution 17, wherein when it is determined that W is equal to H, the first group of luma sample points includes m×W sample points above the luma block and m×H luma sample points on the left side of the luma block, and wherein m is a positive integer.

[0782] 19. The method according to solution 17, wherein when determining W≤H, the first group of luma sample points includes 2×W sample points above the luma block and H luma sample points on the left side of the luma block.

[0783] 20. The method according to solution 17, wherein when determining W≥H, the first group of luma sample points includes 2×W sample points above the luma block and H luma sample points on the left side of the luma block.

[0784] 21. The method according to solution 17, wherein when determining W≤H, the first group of luma sample points includes W sample points above the luma block and 2×H luma sample points on the left side of the luma block.

[0785] 22. The method according to solution 17, wherein when determining W≥H, the first group of luma sample points includes W sample points above the luma block and 2×H luma sample points on the left side of the luma block.

[0786] 23. The method according to solution 17, wherein when it is determined that both the upper neighboring block and the upper right neighboring block are available, the first group of luminance sample points includes 2×W luminance sample points above the luminance block, otherwise the first group of luminance sample points includes W luminance sample points above the luminance block.

[0787] 24. The method according to solution 17, wherein when it is determined that both the left neighboring block and the lower left neighboring block are available, the first group of luminance sample points includes 2×H luminance sample points above the luminance block, otherwise the first group of luminance sample points includes H luminance sample points above the luminance block.

[0788] 25. A method according to solution 17, wherein the first group of luma sample points consists of sample points above the current video block, and wherein the parameters of the linear model are also based on a third group of luma sample points generated by downsampling the fourth group of luma sample points on the left side of the luma block.

[0789] 26. The method according to solution 25, wherein the third group of brightness sample points is extracted when it is determined that the number of the third group of brightness sample points is greater than the number of the first group of brightness sample points.

[0790] 27. The method according to solution 25, wherein the first group of brightness sample points is extracted when it is determined that the number of the first group of brightness sample points is greater than the number of the third group of brightness sample points.

[0791] 28. The method according to solution 17, wherein the number of the first group of brightness sample points is less than a predetermined value or within a range of values.

[0792] 29. The method according to solution 28, wherein the predetermined value is max(W, H).

[0793] 30. The method according to solution 28, wherein the range of values ​​is from min(W, H) to s×max(W, H), where s is a positive integer.

[0794] 31. The method according to solution 30, wherein s=1 or s=2.

[0795] 32. The method according to solution 17, wherein the parameters of the linear model are also based on the training sample points of the luminance block corresponding to the chrominance block.

[0796] 33. The method according to solution 32, wherein the training sample points include a predetermined number of uppermost left-adjacent sample points and a predetermined number of upper-adjacent sample points on the leftmost side.

[0797] 34. The method of solution 33, wherein the predetermined number is min(W, H).

[0798] 35. The method according to solution 32, wherein the second group of luma sample points outside the luma block includes W upper neighboring sample points and H left neighboring sample points, and wherein the upper neighboring sample points are repeated n times when determining H=n×W.

[0799] 36. The method according to solution 32, wherein the second group of luma sample points outside the luma block includes W top-neighboring sample points and H left-neighboring sample points, and wherein the left-neighboring sample is repeated n times when determining W=n×H.

[0800] 37. A method according to any one of solutions 1 to 36, wherein performing the conversion includes: generating a bitstream representation from the current video block.

[0801] 38. A method according to any one of solutions 1 to 36, wherein performing the conversion includes: generating the current video block from a bitstream representation.

[0802] 5. Embodiments of the disclosed technology

[0803] Fig.15 1 is a block diagram of a video processing organization 1500. Organization 1500 may be used to implement one or more methods described herein. Apparatus 1500 may be implemented in a smartphone, a tablet computer, a computer, an Internet of Things (IoT) receiver, etc. Apparatus 1500 may include one or more processors 1502, one or more memories 1504, and video processing hardware 1506. Processor 1502 may be configured to implement one or more methods described herein (including, but not limited to, method 1400). Memory 1504 may be used to store data and code used to implement the methods and techniques described herein. Video processing hardware 1506 may be used to implement some of the techniques described herein in hardware circuits.

[0804] In some embodiments, the Fig.15 The device implemented on the hardware platform implements the video encoding method.

[0805] Fig.2525 is a block diagram illustrating an example video processing system 2500 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of system 2500. System 2500 may include an input 2502 for receiving video content. The video content may be received in a raw or uncompressed format, such as 8-bit or 10-bit multi-component pixel values, or may be received in a compressed or encoded format. Input 2502 may represent a network interface, a peripheral bus interface, or a storage interface. Examples of network interfaces include wired interfaces such as Ethernet, a passive optical network (PON), and the like, and wireless interfaces such as Wi-Fi or cellular interfaces.

[0806] System 2500 may include a coding component 2504 that can implement various encodings or encoding methods described herein. Coding component 2504 can reduce the average bit rate of the video from input 2502 to the output of coding component 2504 to generate a coded representation of the video. Therefore, coding techniques are sometimes referred to as video compression or video transcoding techniques. The output of coding component 2504 can be stored or transmitted through connected communications, as shown in component 2506. The storage or communication bitstream (or encoding) representation of the video received at input 2502 can be used by component 2508 to generate pixel values ​​or send to a displayable video of display interface 2510. The process of generating a user-viewable video from a bitstream representation is sometimes referred to as video decompression. In addition, although some video processing operations are referred to as "coding" operations or tools, it should be understood that the coding tools or operations are used at the encoder, and the corresponding decoding tools or operations of the inverse coding results will be performed by the decoder.

[0807] Examples of peripheral bus interfaces or display interfaces may include Universal Serial Bus (USB) or High Definition Multimedia Interface (HDMI) or Display Port, etc. Examples of storage interfaces include SATA (Serial Advanced Technology Attachment), PCI, IDE interfaces, etc. The techniques described herein may be implemented in a variety of electronic devices, such as mobile phones, laptops, smart phones, or other devices capable of performing digital data processing and / or video display.

[0808] From the above, it should be understood that, for ease of illustration, specific embodiments of the technology disclosed in the present invention have been described herein, but various modifications may be made without departing from the scope of the present invention. Therefore, the technology disclosed in the present invention is not limited except as limited by the appended claims.

[0809] The embodiments, modules and functional operations disclosed herein and described elsewhere can be implemented in digital electronic circuits, or computer software, firmware or hardware, including the structures disclosed herein and their structural equivalents, or a combination of one or more thereof. The disclosed embodiments and other embodiments can be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on a computer-readable medium, for execution by a data processing device or for controlling the operation of the data processing device. The computer-readable medium can be a machine-readable storage device, a machine-readable storage substrate, a storage device, a material composition that affects a machine-readable propagation signal, or a combination of one or more thereof. The term "data processing unit" or "data processing device" includes all devices, equipment and machines for processing data, including, for example, a programmable processor, a computer or a multiprocessor or a computer group. In addition to hardware, the device may also include code that creates an execution environment for a computer program, for example, code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more thereof.

[0810] A computer program (also referred to as a program, software, software application, script, or code) may be written in any form of programming language (including compiled or interpreted languages) and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program may be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program, or in multiple coordinated files (e.g., files that store one or more modules, subroutines, or portions of code). A computer program may be deployed for execution on one or more computers that are located at one site or distributed across multiple sites and interconnected by a communications network.

[0811] The processes and logic flows described herein may be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be performed by, and the apparatus may be implemented as, special purpose logic circuits, for example, FPGAs (field programmable gate arrays) or ASICs (application specific integrated circuits).

[0812] For example, processors suitable for executing computer programs include general and special purpose microprocessors, and any one or more of any type of digital computer. Typically, the processor will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a processor that executes instructions and one or more storage devices that store instructions and data. Typically, a computer will also include one or more mass storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or be operatively coupled to one or more mass storage devices to receive data from them or transfer data to one or more mass storage devices, or both. However, a computer does not necessarily have such a device. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CDROM and DVD-ROM optical disks. The processor and memory may be supplemented by, or incorporated into, dedicated logic circuits.

[0813] The present specification, together with the drawings, is to be regarded as exemplary only, wherein exemplary refers to examples. As used herein, the use of "or" is intended to include "and / or" unless the context clearly dictates otherwise.

[0814] Although this patent document contains many details, they should not be interpreted as limitations on the scope of any invention or claim, but rather as descriptions of features of specific embodiments of specific inventions. Some features described in this patent document in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various functions described in the context of a single embodiment can also be implemented separately in multiple embodiments, or in any suitable subcombination. In addition, although the above-mentioned features may be described as working in some combinations, or even initially required to be so, in some cases, one or more features in the claim combination can be removed from the combination, and the combination of claims can be directed to subcombinations or variations of subcombinations.

[0815] Likewise, although operations are described in a particular order in the drawings, this should not be understood as requiring that such operations be performed in the particular order or order shown, or that all illustrated operations be performed, in order to achieve the desired results. In addition, the separation of various system components in the embodiments described in this patent document should not be understood as requiring such separation in all embodiments.

[0816] Only a few implementations and examples are described, and other implementations, enhancements, and variations can be made based on what is described and illustrated in this patent document.

Claims

1. A video processing method, comprising: determining parameters of a linear model for conversion between a video and a bitstream of the video based on a height H and a width W of a chroma block of the video, wherein the parameters of the linear model are based on applying a first downsampling scheme to generate downsampled luma sample points corresponding to chroma sample points outside the chroma block, and wherein H and W are positive integers; applying a second down-sampling scheme different from the first down-sampling scheme to generate down-sampled luma sample points within a luma block; When a chroma block of the video is located at an upper boundary or a left boundary of a current codec tree unit, generating a set of sample points of the chroma block based on the parameters of the linear model and a set of downsampled luminance sample points in the luminance block corresponding to the chroma block; as well as Conversion between the video and the bitstream representation is performed based on the generated set of sample points of the chroma block.

2. The method of claim 1, wherein W>T1 or H>T2, wherein T1 and T2 are integers.

3. The method according to claim 2, wherein T1=T2=4. The method according to claim 2 , wherein T1=T2=2. The method of claim 1 , wherein H+W>T1, and wherein T1 is an integer. The method according to claim 5 , wherein T1=6. The method according to claim 1 , wherein W×H>T1, wherein T1 is an integer.

8. The method according to claim 7, wherein T1=16.

9. The method according to any one of claims 2 to 8, wherein T1 is predefined or signaled in a sequence parameter set (SPS), a sequence header, a picture parameter set (PPS), a picture header, a video parameter set (VPS), a slice header, a coding tree unit (CTU), a coding unit (CU), or a CTU group.

10. The method according to any one of claims 1 to 8, wherein the linear model comprises a multiple model linear model (MMLM) or a single model linear model (LM). 11 . The method according to claim 10 , wherein the downsampled luma sample points outside the luma block consist of only left adjacent sample points or only top adjacent sample points. 12 . The method of claim 11 , wherein the linear model using only left neighboring sample points (left LM) is applied when determining H>T1, and wherein T1 is an integer. 13 . The method of claim 11 , wherein the linear model using only upper neighboring sample points (upper LM) is applied when determining W>T1, wherein T1 is an integer.

14. The method according to claim 12 or 13, wherein T1=4.

15. A video processing method, comprising: determining parameters of a linear model for conversion between a video and a bitstream representation of the video based on a height H and a width W of a chroma block of the video, wherein the parameters of the linear model are based on a first set of luma sample points generated by downsampling a second set of luma sample points corresponding to chroma sample points outside the chroma block by applying a first downsampling scheme, and wherein a number of the first set of luma sample points is based on the height or the width, and wherein H and W are positive integers; applying a second downsampling scheme different from the first downsampling scheme to generate downsampled luma sample points within the luma block; When a chroma block of the video is located at an upper boundary or a left boundary of a current codec tree unit, generating a set of sample points of the chroma block based on the parameters of the linear model and a set of downsampled luminance sample points in the luminance block corresponding to the chroma block; as well as The conversion between the video and the bitstream representation is performed based on the generated set of sample points of the chroma block.

16. The method according to claim 15, wherein when it is determined that W is equal to H, the first group of luma sample points includes m×W sample points above the luma block and m×H luma sample points on the left side of the luma block, and wherein m is a positive integer. 17 . The method according to claim 15 , wherein when it is determined that W ≤ H, the first group of luma sample points includes 2×W sample points above the luma block and H luma sample points on the left side of the luma block. 18 . The method according to claim 15 , wherein when determining W ≥ H, the first group of luma sample points includes 2×W sample points above the luma block and H luma sample points on the left side of the luma block. 19 . The method according to claim 15 , wherein when it is determined that W ≤ H, the first group of luma sample points includes W sample points above the luma block and 2×H luma sample points on the left side of the luma block.

20. The method of claim 15, wherein when determining W ≥ H, the first group of luma sample points includes W sample points above the luma block and 2×H luma sample points on the left side of the luma block.

21. The method according to claim 15, wherein when it is determined that both the upper neighboring block and the upper right neighboring block are available, the first group of luminance sample points includes 2×W luminance sample points above the luminance block, otherwise the first group of luminance sample points includes W luminance sample points above the luminance block.

22. The method according to claim 15, wherein when it is determined that both the left neighboring block and the lower left neighboring block are available, the first group of luminance sample points includes 2×H luminance sample points above the luminance block, otherwise the first group of luminance sample points includes H luminance sample points above the luminance block.

23. The method of claim 15, wherein the first set of luma sample points consists of sample points above a current video block, and wherein the parameters of the linear model are also based on a third set of luma sample points generated by downsampling a fourth set of luma sample points on the left side of the luma block. 24 . The method according to claim 23 , wherein the third group of brightness sample points is extracted when it is determined that the number of the third group of brightness sample points is greater than the number of the first group of brightness sample points. 25 . The method according to claim 23 , wherein the first group of brightness sample points is decimated when it is determined that the number of the first group of brightness sample points is greater than the number of the third group of brightness sample points.

26. The method of claim 15, wherein the number of the first set of brightness sample points is less than a predetermined value or within a range of values. The method according to claim 26 , wherein the predetermined value is max(W, H).

28. The method of claim 26, wherein the range of values ​​is from min(W, H) to s x max(W, H), and wherein s is a positive integer.

29. The method of claim 28, wherein s=1 or s=2.

30. The method of claim 15, wherein the parameters of the linear model are further based on training sample points of the luma block corresponding to the chroma block.

31. The method according to claim 30, wherein the training sample points include a predetermined number of uppermost left-side adjacent sample points and a predetermined number of leftmost upper-side adjacent sample points.

32. The method of claim 31 , wherein the predetermined number is min(W, H).

33. The method according to claim 30, wherein the second group of luma sample points outside the luma block comprises W upper neighboring sample points and H left neighboring sample points, and wherein the upper neighboring sample points are repeated n times when determining H=n×W.

34. The method according to claim 30, wherein the second group of luma sample points outside the luma block comprises W upper-neighboring sample points and H left-neighboring sample points, and wherein the left-neighboring sample points are repeated n times when determining W=n×H.

35. The method of claim 1 or 15, wherein performing the conversion comprises: The bitstream representation is generated from a current video block.

36. The method of claim 1 or 15, wherein performing the conversion comprises: A current video block is generated from the bitstream representation.

37. An apparatus in a video system, comprising a processor and a non-volatile memory storing instructions thereon, wherein when the instructions are executed by the processor, the processor is caused to implement the method according to any one of claims 1 to 36.

38. A non-volatile computer-readable medium having a computer program product stored thereon, the computer program product comprising program code for implementing the method of any one of claims 1 to 36.

Citation Information

Patent Citations

  • Prediction of Image Components Using a Prediction Model

    GB2495942A

  • Linear model chroma intra prediction for video coding

    US20180077426A1

  • Coding video data using derived chroma mode

    US20180205946A1