Weighting coefficients for predictive sample filtering in intra mode
The implementation of PDPC and CCLM techniques in video encoders and decoders addresses inefficiencies in intra prediction, enhancing image and video quality by refining prediction signals and reducing artifacts, especially for non-square blocks and chroma sampling.
Patent Information
- Application Number
- JP2022508748
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-08-14
- Filing Date
- 2020-08-14
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2040-08-14
AI Technical Summary
Existing video coding technologies face challenges in improving the quality of decompressed images and videos, particularly in handling intra prediction modes, especially for non-square blocks and chroma sampling, leading to inefficiencies and artifacts.
Implementing position-dependent intra prediction (PDPC) and cross-component linear model (CCLM) techniques to refine prediction signals by combining adjacent samples with position-dependent weighting factors, and applying these methods in video encoders and decoders to enhance image and video quality.
Enhances the quality of decompressed images and videos by reducing artifacts and improving prediction accuracy, particularly for non-square blocks and chroma sampling, thereby optimizing video coding efficiency.
Smart Images

Figure 0007568348000025 
Figure 0007568348000026 
Figure 0007568348000027
Abstract
Description
[Technical field]
[0001] This document relates to video and image coding and decoding techniques.
[0002] CROSS-REFERENCE TO RELATED APPLICATIONS This application is a national application of International Patent Application No. PCT / CN2020 / 109217, filed on August 14, 2020. Pursuant to applicable patent laws and / or rules under the Paris Convention, this application is timely filed to claim priority to and the benefit of International Patent Application No. PCT / CN2019 / 100615, filed August 14, 2019. For all purposes under law, the entire disclosure of the above application is incorporated by reference as part of the disclosure of this application. [Background technology]
[0003] Digital video accounts for the largest bandwidth usage on the Internet and other digital communications networks. The bandwidth demands for digital video usage are expected to continue to increase as the number of connected user devices capable of receiving and displaying video increases. Summary of the Invention
[0004] The disclosed techniques may be used by embodiments of a video or image decoder or encoder to perform video coding and decoding using intra prediction sample filtering.
[0005] As an example, a method of video processing is disclosed. The method includes deriving weighting factors for neighboring samples of a sample of a current video block of a video according to a rule, and converting between the current video block and a coded representation of the video. Wherein, the rule specifies that if the current video block is coded using a planar mode or a DC mode, the weighting factors are determined from at least one of a dimension of the current video block or a position of the sample of the current video block. Wherein, the current video block uses a position dependent intra prediction (PDPC) method that combines the neighboring samples with a prediction signal of the current video block to generate a refined prediction signal of the current video block. And, wherein the weighting factor of the prediction signal of the sample is determined based on the weighting factor of the corresponding neighboring sample of the sample.
[0006] In yet another example, the above-described methods may be implemented by a video encoder device comprising a processor.
[0007] In yet another example, the above-described methods may be implemented by a video decoder device comprising a processor.
[0008] In yet another example, the methods may be embodied in the form of processor-executable instructions and stored on a computer-readable program medium.
[0009] These and other aspects are described further herein. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 shows an example of an encoder block diagram. [Diagram 2]FIG. 2 shows an example of one of the 67 intra-prediction modes. [Figure 3A] FIG. 3A shows examples of reference samples for wide-angular intra prediction. [Figure 3B] FIG. 3B shows examples of reference samples for wide-angle intra prediction. [Figure 4] FIG. 4 illustrates the discontinuity problem for orientations greater than 45 degrees. [Figure 5A] FIG. 5A shows the definition of a reference sample. [Figure 5B] FIG. 5B shows the definition of the reference sample. [Figure 5C] FIG. 5C shows the definition of the reference sample. [Figure 5D] FIG. 5D shows the definition of the reference sample. [Figure 6] FIG. 6 shows an example of division of a 4×8 block and an 8×4 block. [Figure 7] FIG. 7 shows an example of all block divisions except 4×8, 8×4, and 4×4. [Figure 8] FIG. 8 shows an example of the sample locations used to derive α and β. [Figure 9] FIG. 9 shows one example of a "CR" location for DM derivation from the corresponding luma region. [Figure 10] FIG. 10 shows an example of neighboring samples involved along the prediction direction. [Figure 11A] FIG. 11A is a block diagram of one hardware platform that may be used to implement the techniques described in this document. [Figure 11B] FIG. 11B is a block diagram of one hardware platform that may be used to implement the techniques described in this document. [Figure 12] FIG. 12 is, for example, a flow chart of a method of video processing. [Figure 13] FIG. 13 is, for example, a flow chart of a method of video processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] This document provides various techniques that can be used by a decoder of an image or video bitstream to improve the quality of a decompressed or decoded digital video or image. For simplicity, the term "video" is used herein to include both a sequence of pictures (traditionally called video) and individual images. Furthermore, video encoders can also implement these techniques during the encoding process to reconstruct decoded frames that are used for further encoding.
[0012] Section headings are used in this document for ease of understanding and do not limit the embodiments and techniques to the corresponding section, thus, embodiments from one section can be combined with embodiments from other sections.
[0013] 1. Summary This document relates to video coding techniques. Specifically, it relates to intra prediction in image / video coding. It may be applied to existing video coding standards such as HEVC or to a finalized standard (Versatile Video Coding). It may also be applicable to future video coding standards or video codecs.
[0014] 2.Background Video coding standards have evolved primarily through the development of well-known ITU-T and ISO / IEC standards. ITU-T created H.261 and H.263, ISO / IEC created MPEG-1 and MPEG-4 Visual, and the two organizations jointly created H.262 / MPEG-2Video, H.264 / MPEG-4AdvancedVideoCoding(AVC), and H.265 / HighEfficiencyVideoCoding(HEVC) standards. Starting with H.262, video coding standards are based on a hybrid video coding structure in which temporal prediction and transform coding are utilized. To explore future video coding technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, many new methods have been adopted by JVET and put into reference software named JEM (Joint Exploration Model). In April 2018, the JVET between VCEG (Q6 / 16) and ISO / IEC JTC1SC29 / WG11 (MPEG) was created and is working on the VVC standard with the goal of reducing the bitrate by 50% compared to HEVC.
[0015] The latest version of the VVC draft, namely Versatile Video Coding (Draft 6), can be found at: http: / / phenix.it-sudparis.eu / jvet / doc_end_user / documents / 15_Gothenburg / wg11 / JVET-O2001-v14.zip
[0016] The latest reference software for VVC, named VTM, can be found at: https: / / vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM / tags / VTM-5.2
[0017] 2.1 Color Space and Chroma Subsampling A color space, also known as a color model (or color system), is simply an abstract mathematical model that describes a range of colors simply as a tuple of numbers, typically three or four values or color components (e.g., RGB). Essentially, a color space is an elaboration of a coordinate system and a subspace.
[0018] For video compression, the most frequently used color spaces are YCbCr and RGB. YCbCr, Y'CbCr, or YPb / CbPr / Cr, also written as YCBCR or Y'CBCR, is a family of color spaces used as part of the color picture pipeline in video and digital photography systems. Y' is the luma component, and CB and CR are the blue-difference and red-difference chroma components. Y' (primed) is distinguished from Y, which is luminance, meaning that the light intensity is nonlinearly encoded based on gamma corrected RGB primaries.
[0019] Chroma subsampling is the practice of encoding images by implementing a lower resolution for the chroma information than for the luma information, taking advantage of the human visual system's poorer acuity for color differences than for luminance.
[0020] 2.1. 1:4:4 Each of the three Y'CbCr components has the same sample rate, so there is no chroma subsampling. This scheme is sometimes used in high-end film scanners and in cinema post-production.
[0021] 2.1.2 4:2:2 The two chroma components are sampled at half the luma sample rate, and the horizontal chroma resolution is halved, which reduces the bandwidth of the uncompressed video signal by a factor of three with little or no visible difference.
[0022] 2.1.3 4:2:0 In 4:2:0, the horizontal sampling is doubled compared to 4:1:1, but the vertical resolution is halved, since the Cb and Cr channels are only sampled at each alternate line in this scheme. Thus, the data rate is the same. Cb and Cr are subsampled by twice as much horizontally and vertically, respectively. There are three variations of the 4:2:0 scheme, with different horizontal and vertical positions. In MPEG-2, Cb and Cr are cosited horizontally. Cb and Cr are interstitially spaced between pixels vertically. In JPEG / JFIF, H.261, and MPEG-1, Cb and Cr are located in the gaps between alternating luma samples. In 4:2:0 DV, Cb and Cr are co-located horizontally. Vertically, they are co-located on alternating lines.
[0023] 2.2 Typical video codec coding flow FIG. 1 shows an example of an encoder block diagram for VVC, including three in-loop filtering blocks: deblocking filter (DF), sample adaptive offset (SAO), and ALF. Unlike DF, which uses a predefined filter, SAO and ALF use the original samples of the current picture to reduce the mean square error between the original samples and the reconstructed samples by adding an offset and applying a finite impulse response (FIR) filter, respectively, and have coded side information signaling the offset and filter coefficients. The ALF is placed at the final processing stage of each picture and can be considered as a tool that tries to capture and fix the artifacts generated in the previous stage.
[0024] 2.3 Intra-mode coding with 67 intra-prediction modes To capture any edge direction presented in natural video, the number of directional intra modes in VTM4 is expanded from 33 to 65 as used in HEVC. The new directional modes not present in HEVC are shown as red dotted arrows in Figure 2, and the planar and DC modes remain the same. These denser directional intra prediction modes apply for all block sizes and for both luma and chroma intra prediction. The conventional angular intra prediction direction is defined from 45 degrees to -135 degrees in a clockwise direction as shown in Figure 2. In VTM2, some conventional angular intra prediction modes are adaptively replaced with wide-angle intra prediction modes for non-square blocks. The replaced modes are signaled using the original method and remapped to the index of the wide-angle modes after parsing. The total number of intra prediction modes remains unchanged, i.e., 67, and the intra mode coding remains unchanged.
[0025] In HEVC, each coding block has a square shape, and the length of each side is a power of 2. Therefore, no partitioning operation is required to generate an intra-predictor using DC mode. In VVV2, blocks can have a rectangular shape, which in the general case requires the use of a block-wise partitioning operation. To avoid division operations for DC prediction, only the long side is used to calculate the average of the non-squared block.
[0026] FIG. 2 shows an example of one of the 67 intra-prediction modes.
[0027] 2.4 Wide-angle intra prediction for non-square blocks The conventional angular intra prediction direction is defined from 45 degrees to -135 degrees in a clockwise direction. In VTM2, some conventional angular intra prediction modes are adaptively replaced by wide-angle intra prediction modes for non-square blocks. The replaced modes are signaled using the original method and remapped to the index of the wide-angle modes after parsing. The total number of intra prediction modes remains unchanged, i.e., 67, and the intra mode coding remains unchanged.
[0028] 3A to 3B show examples of reference samples for wide-angle intra prediction.
[0029] To support these prediction directions, a top reference of length 2W+1 and a left reference of length 2H+1 are defined as shown in FIGS. 3A-3B.
[0030] The number of modes to be replaced in the wide-angle direction depends on the aspect ratio of the block. The replaced intra prediction modes are shown in Table 2-1. [Table 1] Table 2-1 Intra prediction modes replaced by wide-angle modes
[0031] FIG. 4 illustrates the discontinuity problem for orientations greater than 45 degrees.
[0032] As shown in Figure 4, two vertically adjacent prediction samples can use two non-adjacent reference samples in the case of wide-angle intra prediction. Therefore, a low-pass reference sample filter and side smoothing are applied to the wide-angle prediction, resulting in an increased gap Δp α Reduce the negative effects of.
[0033] 2.5 Combining Position-Dependent Intra Prediction In VTM2, the result of planar mode intra prediction is further modified by Position-Dependent Intra Prediction Combined (PDPC) method. PDPC is an intra prediction method that invokes the combination of unfiltered boundary reference samples and HEVC-style intra prediction with filtered boundary reference samples. PDPC is applied without signaling for the following intra modes: planar, DC, horizontal, vertical, bottom-left angle mode and its 8 adjacent angle modes, and top-right angle mode and its 8 adjacent angle modes.
[0034] The intra-prediction sample pred(x,y) is predicted using the intra-prediction mode (DC, planar, angular), and then a linear combination of reference samples according to the formula can be further applied to generate the final predicted sample pred(x,y) as follows: pred(x,y) = (wL × R (-1,y) +wT×R (x,-1) -wTL×R (-1,-1) +(64-wL-wT+wTL)×pred(x,y)+32)>>6(2-1) Here, R (x,-1) , R (-1,y) represents the reference sample located to the upper left of the current sample (x,y), and R (-1,-1)represents the reference sample located in the top-left corner of the current block.
[0035] No additional boundary filters are required when PDPC is applied to DC, planar, horizontal, and vertical intra modes. They are required in the case of HEVCDC mode boundary filters or horizontal / vertical mode edge filters.
[0036] 5A-5D show reference samples of PDPC applied to various prediction modes (R (x,-1) , R (-1,y) , and R (-1,-1) ) is defined. The predicted sample pred(x',y') is located at (x',y') in the predicted block. The reference sample R (x,-1) The coordinate x of is given by x=x'+y'+1, and the reference sample R (-1,y) The y coordinate of is given by y=x'+y'+1.
[0037] 5A-5D show example definitions of samples used by the PDPC applied to diagonal and adjacent angle intra modes. Fig. 5A shows an example of a diagonal top-right mode. Fig. 5B shows an example of a diagonal bottom-left mode. Fig. 5C shows an example of an adjacent diagonal top-right mode. Fig. 5D shows an example of an adjacent diagonal bottom-left mode.
[0038] The PDPC weighting depends on the prediction mode and is shown in Table 2-2. [Table 2] Table 2-2. Example of PDPC weighting according to prediction mode
[0039] Details of PDPC in VVCdraft6 are as follows:
[0040] 8.4.5.2.5 General Intra-Sample Prediction The inputs to this process are: a sample position (xTbCmp, yTbCmp) that specifies the top-left sample of the current transform block relative to the top-left sample of the current image, - a variable predModeIntra that specifies the intra prediction mode, - variable nTbW specifying the transformation block width, - variable nTbH specifying the transformation block height, - the variable nCbW specifying the coding block width, - the variable nCbH specifying the coding block height, - The variable cIdx, which specifies the color component of the current block.
[0041] The output of this process is the predicted samples predSamples[x][y], where x=0..nTbW-1, y=0..nTbH-1.
[0042] The variables refW and refH are derived as follows. -If IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT or if cIdx is not equal to 0: refW=nTbW*2 (8-118) refH=nTbH*2 (8-119) - Otherwise (IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT and cIdx is equal to 0): refW=nCbW+nTbW (8-120) refH=nCbH+nTbH (8-121)
[0043] The variable refIdx, which specifies the intra prediction reference line index, is derived as follows. refIdx=(cIdx==0)?IntraLumaRefLineIdx[xTbCmp][yTbCmp]:0 (8-122)
[0044] The wide-angle intra-prediction mode mapping process specified in clause 8.4.5.2.6 is called with preModeIntra, nTbW, nTbH, and cIdx as inputs and the modified predModeIntra as output.
[0045] The variable refFilterFlag is derived as follows: If -predModeIntra is equal to any of the following values: 0, -14, -12, -10, -6, 2, 34, 66, 72, 76, 78, 80, refFilterFlag is set to 1. Otherwise, refFilterFlag is set to 0.
[0046] For generation of reference samples p[x][y] at x=-1-refIdx, y=-1-refIdx..refH-1, and x=-refIdx..refW-1, y=-1-refIdx, the following ordered steps are applied: 1. The reference sample availability marking process as specified in clause 8.4.5.2.7 is called with sample position (xTbCmp, yTbCmp), intra prediction baseline index refIdx, reference sample width refW, reference sample height refH, color component index cIdx as input, and reference samples refUnfilt[x][y] at x=-1-refIdx, y=-1-refIdx..refH-1 and x=-refIdx..refW-1, y=-1-refIdx as output. 2. If at least one sample at x=-1-refIdx, y=-1-refIdx..refH-1 and x=-refIdx..refW-1, y=-1-refIdx is marked as "unavailable for intra prediction", the reference sample substitution process specified in clause 8.4.5.2.8 is invoked using the intra prediction baseline index refIdx, reference sample width refW, reference sample height refH, and reference samples refUnfilt[x][y] at x=-1-refIdx, y=-1-refIdx..refH-1 and x=-refIdx..refW-1, y=-1-refIdx. Then, the input is the color component index cIdx, and the output is the modified reference samples refUnfilt[x][y] at x=-1-refIdx, y=-1-refIdx..refH-1, and x=-refIdx..refW-1, y=-1-refIdx. 3. The reference sample filtering process specified in subclause 8.4.5.2.9 is called with the intra prediction baseline index refIdx, the transformed block width nTbW and height nTbH, the reference sample width refW, the reference sample height refH, the reference filter flag refFilterFlag, the unfiltered samples refUnfilt[x][y] at x=-1-refIdx, y=-1-refIdx..refH-1 and x=-refIdx..refW-1, y=-1-refIdx, and the color component index cIdx as input and the reference samples p[x][y] at x=-1-refIdx, y=-1-refIdx..refH-1 and x=-refIdx..refW-1, y=-1-refIdx as output.
[0047] The intra sample prediction process according to predModeIntra is applied as follows. If -predModeIntra is equal to INTRA_PLANAR, the corresponding intra prediction mode process specified in clause 8.4.5.2.10 is called with the transform block width nTbW, the transform block height nTbH, and the reference sample array p as input, and the predicted sample array predSamples is output. - Otherwise, if predModeIntra is equal to INTRA_DC, the corresponding intra prediction mode process specified in clause 8.4.5.2.11 is called with the transform block width nTbW, the transform block height nTbH, the intra prediction reference line index refIdx, and the reference sample array p as inputs, and the prediction sample array predSamples is output. - Otherwise, if predModeIntra is equal to INTRA_LT_CCLM, INTRA_L_CCLM, or INTRA_T_CCLM, the corresponding intra-prediction mode process specified in clause 8.4.5.2.13 is called with inputs the intra-prediction mode predModeIntra, the sample positions (xTbC, yTbC) set to (xTbCmp, yTbCmp), the transform block width nTbW, height nTbH, color component index cIdx, and the reference sample array p, and the output is the predicted sample array predSamples. - otherwise the corresponding intra prediction mode process specified in clause 8.4.5.2.12 is called with the intra prediction mode predModeIntra, the intra prediction baseline index refIdx, the transform block width nTbW, the transform block height nTbH, the reference sample width refW, the reference sample height refH, the coded block width nCbW and height nCbH, the reference filter flag refFilterFlag, the color component index cIdx and the reference sample array p as inputs and the prediction sample array predSamples as output.
[0048] If all of the following conditions are true, the position-dependent predicted sample filtering process specified in clause 8.4.5.2.14 is invoked using intra prediction mode predModeIntra, transform block width nTbW, transform block height nTbH, predicted samples predSamples[x][y] at x=0..nTbW-1,y=0..nTbH-1, reference sample width refW, reference sample height refH, x=-1,y-1..refH-1 and reference samples p[x][y] at x=0..refW-1,y=-1, color component index cIdx as input, and the output is the modified predicted sample array predSamples. - nTbW is 4 or more, and nTbH is 4 or more or cIdx is not equal to 0 -refIdx is equal to 0 or cIdx is not equal to 0 -BdpcmFlag[xTbCmp][xTbCmp] is equal to 0 -One of the following conditions is true: -preModeIntra equals INTRA_PLANAR -preModeIntra is equal to INTRA_DC -preModeIntra is equal to or lower than INTRA_ANGULAR18 -preModeIntra is equal to or less than INTRA_ANGULAR50
[0049] 8.4.5.2.14 Position-Dependent Intra-Prediction Sample Filtering Process The inputs to this process are: - intra prediction mode predModeIntra, - variable nTbW specifying the transformation block width, - variable nTbH specifying the transformation block height, - variable refW, which specifies the reference sample width, - variable refH, which specifies the reference sample height, - Prediction samples predSample[x][y] for x=0..nTbW-1, y=0..nTbH-1, - Neighboring samples p[x][y] at x=-1,y=-1..refH-1 and x=0..refW-1,y=-1; - Variable cIdx that specifies the color components of the current block.
[0050] The output of this process is the modified prediction samples presample[x][y], where x=0..nTbW-1, y=0..nTbH-1.
[0051] Depending on the value of cldx, the function clip1Cmp is set as follows: - If cIdx is equal to 0, clip1Cmp is set equal to Clip1Y. - Otherwise, clip1Cmp is set equal to Clip1C.
[0052] The variable nScale is derived as follows: -If predModeIntra is greater than INTRA_ANGULAR50, nScale is set using the invAngle specified in clause 8.4.5.2.12. It is set equal to Min(2,Log2(nTbH)-Floor(Log2(3*invAngle-2))+8. - Otherwise, if predModeIntra is less than INTRA_ANGULAR18, nScale is set using the invAngle specified in clause 8.4.5.2.12. It is set equal to Min(2,Log2(nTbW)-Floor(Log2(3*invAngle-2))+8. - Else, nSacle is set to ((Log2(nTbW)+Log2(nTbH)-2)>>2).
[0053] The reference sample arrays mainRef[x] and sideRef[y], with x=0..refW-1 and y=0..refH-1, are derived as follows: mainRef[x]=p[x][-1] sideRef[y]=p[-1][y] (8-244)
[0054] The variables refL[x][y], refT[x][y], wT[y], wL[x], and wTL[x][y], for x=0..nTbW-1, y=0..nTbH-1, are derived as follows: When -predModeIntra is equal to INTRA_PLANAR or INTRA_DC the following conditions apply: refL[x][y]=p[-1][y] (8-245) refT[x][y]=p[x][-1] (8-246) wT[y]=32>>((y<<1)>>nScale) (8-247) wL[x]=32>>((x<<1)>>nScale) (8-248) wTL[x][y]=0 (8-249) - Otherwise, if predModeIntra is equal to INTRA_ANGULAR18 or INTRA_ANGULAR50: refL[x][y]=p[-1][y] (8-250) refT[x][y]=p[x][-1] (8-251) wT[y]=(predModeIntra==INTRA_ANGULAR18)? 32>>>>(y<<1)>>nScale:0 (8-252) wL[x]=(predModeIntra==INTRA_ANGULAR50)? 32>>>>(x<1)>>nScale:0 (8-253) wTL[x][y]=(predModeIntra==INTRA_ANGULAR18)? wT[y]:wL[x] (8-254) - else if predModeIntra is less than INTRA_ANGULAR18 and nScale is greater than or equal to 0 then the following ordered steps apply: 1. The variables dXInt[y] and dX[x][y] are derived according to intraPredMode and using the invAngle specified in clause 8.4.5.2.12 as follows: dXInt[y]=((y+1)*invAngle+256)>>9 dX[x][y]=x+dXInt[y] (8-255) 2. The variables refL[x][y], refT[x][y], wT[y], wL[x], and wTL[x][y] are derived as follows: refL[x][y]=0 (8-256) refT[x][y]=(y<(3< <nScale))?mainRef[dX[x][y]]:0 (8-257) wT[y]=32>>((y<<1)>>nScale) (8-258) wL[x]=0 (8-259) wTL[x][y]=0 (8-260) - Else, if predModeIntra is greater than INTRA_ANGULAR50 and nScale is greater than or equal to 0, the following ordered steps are applied: 1. The variables dYInt[x] and dY[x][y] are derived according to intraPredMode and using the invAngle specified in clause 8.4.5.2.12 as follows: dYInt[x]=(((x+1)*invAngle+256)>>9 dY[x][y]=y+dYInt[x] (8-261) 2. The variables refL[x][y], refT[x][y], wT[y], wL[x], and wTL[x][y] are derived as follows: refL[x][y]=(y<(3< <nScale))?sideRef[dY[x][y]]:0 (8-262) refL[x][y]=0 (8-263) wT[y]=0 (8-264) wL[x]=32>>((x<<1)>>nScale) (8-265) wTL[x][y]=0 (8-266) - Otherwise, refL[x][y], refT[x][y], wT[y], wL[x], and wTL[x][y] are all set to 0.
[0055] The values of the modified predicted samples predSamples[x][y] for x=0..nTbW-1, y=0..nTbH-1 are derived as follows: predSamples[x][y]=clip1Cmp((refL[x][y]*wL[x]+refT[x][y]*wT[y]- p[-1][-1]*wTL[x][y]+ (64-wL[x]-wT[y]+wTL[x][y])*predSamples[x][y]+32)>>6) (8-267)
[0056] 2.6 Intra-Sub-Block Partitioning (ISP ) JVET-M0102 proposes an ISP that splits a luma intra prediction block into two or four subpartitions vertically or horizontally depending on the block size, as shown in Table 1. Figures 6 and 7 show examples of the two possibilities. All subpartitions satisfy the condition that they have at least 16 samples. [Table 3] Table 1: Number of subpartitions depending on block size
[0057] FIG. 6 shows an example of division of a 4×8 block and an 8×4 block.
[0058] FIG. 7 shows an example of all block divisions except 4×8, 8×4, and 4×4.
[0059] For each of these subpartitions, a residual signal is generated by entropy decoding the coefficients transmitted by the encoder, then dequantizing and inverse transforming them. Next, the subpartitions are intra predicted, and the corresponding reconstructed samples are finally obtained by adding the residual signal to the predicted signal. Thus, the reconstructed values of each subpartition can be used to generate the predicted values of the next subpartition, which repeats the process, etc. All subpartitions share the same intra mode.
[0060] Based on the intra mode and the partition used, two different classes of processing orders are used, which are called normal order and reversed order. In normal order, the first subpartition processed contains the top-left sample of the CU and continues downwards (horizontal partition) or rightwards (vertical partition). As a result, the reference samples used to generate the subpartition prediction signal are located only to the left and top of the line. On the other hand, the reversed processing order starts with the subpartition containing the bottom-left sample of the CU and continues upwards, or starts with the subpartition containing the top-right sample of the CU and continues leftwards.
[0061] 2.7 Quantized Residual Domain BDPCM In JVET-N0413, quantized residual domain BDPCM (hereinafter referred to as RBDPCM) is proposed. Intra prediction is performed for the whole block by sample copying in the prediction direction (horizontal or vertical prediction) as in intra prediction. The residual is quantized, and the delta between the quantized residual and its predictor (horizontal or vertical) quantized value is coded. For a block of size M (rows) × N (columns), r i,j, 0≦i≦M-1, 0≦j≦N-1, be the prediction residual after intra prediction horizontally (copying the left neighboring pixel value for each predicted block line) or vertically (copying the top neighboring pixel value for each predicted block line) using unfiltered samples from the top or left block boundary samples. i,j ), 0≦i≦M-1, 0≦j≦N-1, the residual r i,j Let r denote the quantized version of r, where the residual is the difference between the original block and the predicted block values. Then, block DPCM is applied to the quantized residual samples, resulting in an element r i,j This results in a modified M×N array R with:
number
[0062] For horizontal prediction, a similar rule applies and the residual quantized samples are obtained by:
number
[0063] Residual quantization sample r~ i,j is sent to the decoder.
[0064] At the decoder, the above calculation is reversed to obtain Q(r i,j ), 0≦i≦M-1, 0≦j≦N-1. For vertical prediction,
number
[0065] For horizontal prediction, it is as follows:
number
[0066] Inverse quantization residual Q-1 (Q(r i,j ) is added to the intrablock prediction to generate the reconstructed sample value.
[0067] The main advantage of this scheme is that during analysis of the coefficients, the inverse DPCM can be performed on the fly, simply by adding a predictor as the coefficients are analyzed, or it can be performed after the analysis.
[0068] Transform skip is always used in quantized residual domain BDPCM.
[0069] 2.8 Cross-Component Linear Model Prediction (CCLM) To reduce cross-component redundancy, VTM4 uses the Cross-Component Linear Model (CCLM) prediction mode, where a linear model is used to predict chroma samples based on the reconstructed luma samples of the same CU as follows: pred C (i,j)=α·rec L '(i,j)+β
[0070] Here, pred C (i,j) represents the predicted chroma sample in the CU, and rec L '(i,j) represents the downsampled reconstructed luma sample of the same CU. The linear model parameters α and β are derived from the relationship between luma and chroma values from two samples: the luma sample with the minimum and maximum sample values in the set of downsampled adjacent luma samples, and the corresponding chroma sample. The linear model parameters α and β are obtained according to the following equations:
number
number
[0071] Here, Ya and Xa represent the luma and chroma values of the luma sample, which indicates the maximum value of the luma sample, and Xb and Yb represent the luma and chroma values of the minimum luma sample, respectively. Figure 8 shows an example of the location of the top-left sample and the samples of the current block involved in CCLM mode.
[0072] FIG. 8 shows an example of the sample locations used to derive α and β. The division operations to compute the parameters are performed using lookup tables. To reduce the memory required to store the tables, the diff value (the difference between the maximum and minimum values) and the parameter α are expressed in exponential notation. For example, diff is approximated with a 4-bit significant part and an exponent. Thus, the table for 1 / diff is reduced to 16 elements with 16 significant values as follows: DivTable[]={0,7,6,5,5,4,4,3,2,2,1,1,1,1,0}
[0073] This has the advantage of reducing both the computational complexity and the memory size required to store the required tables.
[0074] In addition to using the top and left templates to calculate the linear model coefficients, they can be alternatively used in two other LM modes, called the LM_A mode and the LM_L mode.
[0075] In LM_A mode, only the top template is used to calculate the linear model coefficients. To get more samples, the top template is extended to (W+H). In LM_L mode, only the left template is used to calculate the linear model coefficients. To get more samples, the left template is extended to (H+W).
[0076] For non-square blocks, the top template is dilated to W+W and the left template is dilated to H+H.
[0077] To match the chroma sample positions of a 4:2:0 video sequence, two types of downsampling filters are applied to the luma samples to achieve a 2:1 downsampling ratio in both horizontal and vertical directions. The choice of downsampling filter is specified by the SPS level flag. The two downsampling filters are as follows, corresponding to "type-0" and "type-2" content, respectively:
number
number
[0078] Note that if the top reference line is on a CTU boundary, only one luma line (a common line buffer for intra prediction) is used to create the downsampled luma samples.
[0079] According to the current VVC design, PDPC is further applied to the prediction blocks generated in CCLM mode based on the luma samples.
[0080] This parameter computation is performed as part of the decoding process, and not simply as an encoder search operation, and as a result, no syntax is used to communicate the values of α and β to the decoder.
[0081] A total of eight intra modes are allowed for chroma intra mode coding. These modes include five traditional intra modes and three cross-component linear model modes (CCLM, LM_A, LM_L). Chroma mode coding directly depends on the intra prediction mode of the corresponding luma block. Since the block partition structures of luma and chroma components are enabled separately in I slices, one chroma block may correspond to multiple luma blocks. Therefore, the chroma DM mode directly inherits the intra prediction mode of the corresponding luma block that currently covers the center position of the chroma block.
[0082] 2.9 Chroma Intra Prediction Mode For chroma intra mode coding, a total of eight or five intra modes are allowed for chroma intra mode coding, depending on whether the cross-component linear model (CCLM) is enabled or not. These modes include five traditional intra modes and three cross-component linear model modes (IntraPredModeC is set to 81, 82, and 83, respectively).
[0083] 2.9.1 Direct Memory Mode In chroma Direct Mode or Derived Mode (DM), the prediction mode of the co-located luma block is used to derive the chroma intra prediction mode.
[0084] First, the intra prediction mode lumaIntraPredMode is derived. If the co-located luma block is coded in MIP mode, lumaIntraPredMode is set equal to planar mode. Otherwise, if the co-located luma block is coded in IBC or palette mode, lumaIntraPredMode is set equal to DC Mode. · Otherwise, lumaIntraPredMode is set equal to the intra prediction mode of the co-located luma block that covers the corresponding luma sample at the center of the chroma block. An example is shown in Figure 9.
[0085] The intra-chroma prediction mode (denoted as IntraPredModeC) is then derived according to lumaIntraPredMode, as highlighted in bold and italics in the table below. Note that intra_croma_pred_mode equal to 4 refers to the DM mode.
[0086] Note that in VVC, due to the dual tree, one chroma block may correspond to a luma region covering multiple CUs. For example, in Figure 9, the gray area of a chroma block corresponds to a luma region covering five CUs. When deriving the DM mode, only one of the five CUs is checked, which is "CR" as shown in Figure 9.
[0087] FIG. 9 shows one example of a "CR" position for DM derivation from the corresponding luma region. [Table 4] Table 8-2 Specifications of IntraPredModeC[xCb][yCb] according to cclm_mode_flag, cclm_mode_idx, intra_croma_pred_mode, and lumaIntraPredMode
[0088] Finally, if the color format of the picture is 4:2:2, IntraPredModeC is further modified according to the table below for DM mode. [Table 5] Specification of the 4:2:2 mapping process from chroma intra prediction mode X to mode Y when chroma_format_idc is equal to 2
[0089] 3. Examples of Technical Problems Solved by the Embodiments The PDPC has the following problems: 1. In planar or DC modes, the weighting coefficients (eg, wL, wT, and wLT) of adjacent samples depend on the prediction angle, which is not defined in planar and DC modes. 2. In CCLM mode, PDPC is enabled, but the method of selecting adjacent samples, the weights applied to the adjacent samples, and the chroma prediction signal generated from the luma block using a linear model are undefined. 3. PDPC is enabled if "predModeIntra is less than or equal to INTRA_ANGULAR50". For top-right wide-angle modes, PDPC is enabled. Therefore, PDPC is disabled for certain wide-angle modes, which may not be appropriate.
[0090] 4. List of Techniques and Embodiments The following list should be considered as examples to illustrate the general concept. These items should not be interpreted narrowly. Moreover, these items can be combined in any way.
[0091] Let W and H be the width and height of a block (CU / PU / TU / CB / PB / TB, etc.), respectively, and let predSamples(x,y) denote the predicted sample values at position (x,y), where x=0...W-1,y=0...H-1. (x,y) are the coordinates of the sample relative to the top-left sample of the block, and x and y are the horizontal and vertical positions of the sample, respectively. Let R(x,y) denote the neighboring samples (e.g., reconstructed neighboring samples or reconstructed neighboring samples modified by a given filtering process), where x=-1,y=-1...refH-1 and x=0...refW-1,y=-1, where refH and refW are the height and width of the reference neighboring samples. Let maxTbSize be the maximum transform block size, e.g., 32 or 64, and let wL[x], wT[y] be the weighting coefficients for the left and top neighboring samples, respectively. Let the function Log2(N) be the base-2 logarithm of N. 1. In planar and / or DC modes, it is proposed that the weighting coefficients of adjacent samples in the PDPC depend only on the block dimensions (e.g. width denoted W and height denoted H) and / or the position of the sample being filtered. In one example, for a sample at position (x,y), the upper neighboring sample (e.g., R (x,-1) The weighting coefficient for y is wT[y]=N1>((y<N2)> >nScale), where nScale = ((Log2(W) + Log2(H) - N3) >> N4, and N1, N2, N3, and N4 are non-negative integers. b. In one example, for a sample at location (x,y), the weighting factor of the left adjacent sample (e.g., R (-1,y) ) is wL[x]=N1>((x<N2)> >nScale), where nScale = ((Log2(W) + Log2(H) - N3) >> N4. c. In one example, for a sample at position (x,y), the upper left neighboring sample (e.g., R (-1,-1) ) may be set equal to zero. d. N1, N2, N3, and N4 are non-negative integers. For example, N1=32, N2=1, N3=2, and N4=2. 2. Whether and how PDPC is applied may depend on whether the current block is coded in CCLM mode (LM, LM-T, LM-L, etc.). a.PDPC may not be applied in CCLM mode. Alternatively, PDPC may be applied with CCLM mode, where a prediction signal generated from a luma block and chroma neighboring samples is utilized to derive a final predicted chroma block. The selection of neighboring chroma samples and / or weighting coefficients may be defined as follows: i. In one example, the manner of selecting adjacent chroma samples and / or determining the weighting coefficients of adjacent chroma samples may be the same as for a given mode (eg, planar mode). ii. Alternatively, if the corresponding luma block is coded in an intra-prediction mode, such as an angular prediction mode (e.g., further including a wide-angle prediction mode, a vertical mode, or a horizontal mode), or a planar mode, or a DC mode, such intra-prediction mode may be used to select neighboring chroma samples and determine weighting coefficients for the neighboring chroma samples. 1. In one example, the corresponding luma block is one of the coding units / prediction units / transform units that the corresponding luma region (eg, the gray region in FIG. 9) covers. a. In one example, the corresponding luma block is a coding unit / prediction unit / transform unit that covers the corresponding luma sample (such as CR in FIG. 9) of the central chroma sample. iii. Alternatively, if the corresponding luma block is coded in an intra-prediction mode, such as an angular prediction mode (e.g., further including a wide-angle prediction mode, a vertical mode, or a horizontal mode), or a planar mode, or a DC mode, such intra-prediction mode may be used to select neighboring chroma samples and determine weighting coefficients for the neighboring chroma samples. c. Alternatively, PDPC may be applied to a CCLM coding block with a prediction signal generated from the luma block to derive chroma neighboring samples instead of using reconstructed chroma neighboring samples. i. In one example, the neighboring chroma samples may be derived from the neighboring luma samples of the corresponding luma block using a linear model derived in the CCLM process. d. Alternatively, the corresponding reconstructed luma samples in the corresponding luma block may be filtered by PDPC before being used to predict the chroma samples. i. In one example, when filtering a reconstructed luma sample, the method of selecting neighboring samples and / or the method of determining weighting coefficients for neighboring luma samples may be the same as in a predefined mode (e.g., a planar mode). ii. Alternatively, the manner in which neighboring luma samples are selected and / or the manner in which weighting factors for the neighboring luma samples are determined may depend on the intra prediction mode of the luma block. 1. In one example, when a luma block is coded in an intra prediction mode such as an angular prediction mode (including a wide-angle prediction mode, a vertical mode, or a horizontal mode), or a planar mode, or a DC mode, such intra prediction mode may be used to select adjacent luma samples and determine weighting coefficients for the adjacent luma samples. 3. Whether or not PDPC is applied may depend on whether the current block is coded in a wide-angle intra-prediction mode. a. PDPC can be applied to blocks of wide-angle intra-prediction modes. i. In one example, PDPC may be applied to blocks having some specific (but not all) wide-angle intra-prediction modes. b. PDPC may not be applied to a block in wide-angle intra prediction mode. 4. Whether PDPC can be applied to a block depends on the upper adjacent sample and the left adjacent sample in equation (2-1) (for example, R (-1,y) and R (x,-1)) may depend on whether both are "involved" in the intra prediction direction. For example, in an intra prediction process, assume that a sample is predicted from an adjacent left / top sample (which may be located at a fractional position). If there is a half-line that crosses the upper / left adjacent row / column, with the left / top adjacent sample as the starting point, then both the upper and left adjacent samples are said to be "involved" along the intra prediction direction of the sample. (-1,-1) Note that, is always considered to be the left adjacent sample or the above adjacent sample, but not both. In one example, the intra prediction direction may be defined as an angular intra prediction mode. i. In one example, the intra prediction direction may exclude the vertical or horizontal prediction direction. ii. In one example, the intra prediction direction may be DC and / or planar mode. iii. In one example, the intra prediction direction may exclude wide-angle intra prediction modes. b. In one example, PDPC may be applied when both the upper neighboring sample and the left neighboring sample "contribute" to the intra-prediction direction for predicting at least N samples (e.g., N=1) of a block. One example is shown in Figures 10(a) and (b), where PDPC is enabled. Alternatively, PDPC may not be applied if no two adjacent samples are "involved" in the intra-prediction process for predicting any sample of the block. Examples are shown in Figures 10(c) and 10(d).
[0092] FIG. 10 shows an example of neighboring samples involved along the prediction direction. 5. Whether to enable or disable the PDPC may depend on the color components: a. In one example, the PDPC may be enabled for a luma color component (e.g., Y in a YCbCr color format, G in a RGB color format), but disabled for at least one chroma color component (e.g., Cb and / or Cr in a YCbCr color format, B and / or R in an RBB color format). 6. Multiple methods of PDPC may be allowed based on how many samples the filtering process requires to derive one final predicted sample. a. In one example, one final prediction sample may be derived according to one or more left adjacent samples (filtered or unfiltered) and an intra prediction value (e.g., pred(x,y) in Equation 2-1), for example, obtained from a normal intra prediction process. b. In one example, one final prediction sample may be derived according to one or more upper neighboring samples (filtered or unfiltered) and an intra prediction value (e.g., pred(x,y) in Equation 2-1), for example, obtained from a normal intra prediction process. c. Which method of PDPC is applied to a block may depend on the coded information. i.Block Dimension ii. Block shape iii. Block width to height ratio iv. An index or flag signaled in a video unit 7. Whether PDPC can be applied to a block may depend on the block dimension and / or the block shape (square or non-square). In one example, for non-square blocks, PDPC may be disabled. b. In one example, whether to enable or disable the PDPC may depend on the ratio of block width to block height. c. If the block size is small, the PDPC may be banned. i. In one example, if the width of a block is less than or equal to a threshold T (eg, T=2,4), then PDPC is not allowed. ii. In one example, if the block height is less than or equal to a threshold T (eg, T=2,4), then the PDPC is not allowed. iii. In one example, if the number of luma samples in a block is less than or equal to a threshold T (eg, 16, 32, 64), then PDPC is not allowed. d. If the block size is large, the PDPC may be banned. i. In one example, if the width of a block is greater than or equal to a threshold T (eg, T=32), then PDPC is not allowed. ii. In one example, if the height of the block is greater than or equal to a threshold T (eg, T=32), then the PDPC is not allowed. iv. In one example, if the number of luma samples in a block is greater than or equal to a threshold T (eg, 1024), then PDPC is not allowed. e. Whether to enable or disable the PDPC may be determined independently for different color components.
[0093] 5. Embodiment New additions are highlighted in bold and italics, deletions are marked with double brackets (e.g., [[a]] indicates the deletion of the letter "a").
[0094] 5.1 One Example This is an example of bullet 1. [Table 6] TIFF0007568348000015.tif227150TIFF0007568348000016.tif189152
[0095] 5.2 One Example This is an example of items 2 and 3. [Table 7] TIFF0007568348000018.tif252150TIFF0007568348000019.tif252151TIFF0007568348000020.tif252150TIFF00075683480 00021.tif252150TIFF0007568348000022.tif252150TIFF0007568348000023.tif252151TIFF0007568348000024.tif208152
[0096] FIG. 11A is a block diagram of a video processing device 1100. The device 1100 may be used to implement one or more methods described herein. The device 1100 may be embodied in a smartphone, a tablet, a computer, an Internet of Things (IoT) receiver, etc. The device 1100 may include one or more processors 1102, one or more memories 1104, and video processing hardware 1106. The processor 1102 may be configured to implement one or more methods described herein. The memory(s) 1104 may be used to store data and code used to implement the methods and techniques described herein. The video processing hardware 1106 may be used to implement some of the techniques described herein in a hardware circuit. In some embodiments, the hardware 1106 may be at least partially within the processor 1102, e.g., a graphics co-processor.
[0097] FIG. 11B is another example of a block diagram of a video processing system in which the disclosed techniques can be implemented. FIG. 11B is a block diagram illustrating an example video processing system 1200 in which various techniques disclosed herein can be implemented. Various implementations may include some or all of the components of system 2400. System 2400 may include an input 2402 for receiving video content. The video content may be received in a raw or uncompressed format, e.g., 8 or 10 bit multi-component values, or may be received in a compressed or encoded format. Input 2402 may represent a network interface, a peripheral bus interface, or a storage interface. Examples of network interfaces include wired interfaces such as Ethernet, passive optical network (PON), etc., and wireless interfaces such as Wi-Fi or cellular interfaces.
[0098] The system 2400 may include a coding component 2404 that can implement various coding or encoding methods described in this document. The coding component 2404 can reduce the average bit rate of the video from the input 2402 to the output of the coding component 2404 to generate a coded representation of the video. Thus, coding techniques are sometimes referred to as video compression or video transcoding techniques. The output of the coding component 2404 may be stored or transmitted via a communication link, as represented by component 2406. The stored or communicated bitstream (or coded) representation of the video received at the input 2402 may be used by component 2408 to generate pixel values sent to the display interface 2410 or displayable video. The process of generating a user-viewable video from the bitstream representation is sometimes referred to as video decompression. Furthermore, although certain video processing operations may be referred to as “coding” operations or tools, it will be understood that the coding tools or operations are used in an encoder and that a corresponding decoding tool or operation, which reverses the result of the coding, is performed in a decoder.
[0099] Examples of peripheral bus interfaces or display interfaces may include Universal Serial Bus (USB), or High Definition Multimedia Interface (HDMI), or DisplayPort, etc. Examples of storage interfaces include SATA (serial advanced technology attachment), PCI, IDE interfaces, etc. The techniques described in this document may be embodied in a variety of electronic devices, such as mobile phones, laptops, smartphones, or other devices capable of performing digital data processing and / or video display.
[0100] In some embodiments, the video processing methods described in this patent document may be implemented using an apparatus implemented on a hardware platform, such as those described with respect to Figures 11A or 11B.
[0101] Some embodiments of the disclosed techniques include making a decision or determination to enable a video processing tool or mode. In one example, if a video processing tool or mode is enabled, an encoder uses or implements the tool or mode in processing blocks of video, but may not necessarily modify the resulting bitstream based on the use of the tool or mode. That is, conversion of blocks of video to a bitstream representation of video uses the video processing tool or mode when enabled based on the decision or determination. In another example, if a video processing tool or mode is enabled, a decoder processes the bitstream knowing that the bitstream has been modified based on the video processing tool or mode. That is, conversion of a bitstream representation of video to blocks of video is performed using the video processing tool or mode enabled based on the decision or determination.
[0102] Some embodiments of the disclosed techniques include making a decision or determination to disable a video processing tool or mode. In one example, when a video processing tool or mode is disabled, an encoder does not use the tool or mode in converting blocks of video into a bitstream representation of the video. In another example, when a video processing tool or mode is disabled, a decoder processes the bitstream knowing that the bitstream has not been modified using the disabled video processing tool or mode based on the decision or determination.
[0103] In this document, the term "video processing" may refer to video encoding, video decoding, video compression, or video decompression. For example, a video compression algorithm may be applied during conversion of a pixel representation of a video to a corresponding bitstream representation, and vice versa. The bitstream representation of a current video block may correspond to bits that are co-located or spread to different locations in the bitstream, e.g., as defined by a syntax. For example, a macroblock may be encoded in terms of transformed and coded error residual values, and also using bits in the header and other fields in the bitstream.
[0104] Various techniques and embodiments may be described using the following clause-based format: A first set of clauses describes certain features and aspects of the techniques disclosed in the previous section.
[0105] The following sections can be implemented in conjunction with additional implementation methods described in the items listed in previous sections (e.g., Clause 1).
[0106] 1. A method of video processing (e.g., method 1200 shown in FIG. 12), comprising: determining weighting factors to be applied to adjacent samples for a conversion between a current video block of a video and a coded representation of the current video block using a self-coding mode (1202), the weighting factors being fully defined by a size of the current video block or a sample position to which the weighting factors are applied; and performing the conversion based on the determination (1204), where the self-coding mode comprises a planar coding mode of a DC coding mode.
[0107] 2. The sample position is (x, y) and the weighting coefficient of the adjacent samples is wT[y]=N1>>((y<<N2)> 2. The method of claim 1, wherein nScale=((Log2(W)+Log2(H)-N3)>>N4, and N1, N2, N3, and N4 are non-negative integers.
[0108] 3. The sample position is (x, y) and the weighting coefficient of the adjacent samples is wL[x]=N1>>((x<<N2)> 2. The method of claim 1, wherein nScale=((Log2(W)+Log2(H)-N3)>>N4, and N1, N2, N3, and N4 are non-negative integers.
[0109] 4. The method according to clause 1, wherein the sample position is (x,y) and the weighting coefficient of the adjacent sample at the top-left position is zero.
[0110] 5. The method of any of clauses 1-4, wherein N1=32, N2=1, N3=2, or N4=2.
[0111] The following solutions may be implemented in conjunction with additional techniques described in the items listed in the previous section (e.g., items 2, 3, 4, and 7).
[0112] 6. A method of video processing, comprising: during a conversion between a current video block of a video and a coded representation of the current video block, determining whether a self-coding mode is applied to the current video block based on a rule using a coding mode used for the converted current video block, and performing the conversion based on the determination.
[0113] 7. The method of claim 6, wherein the coding mode includes a cross-component linear model (CCLM).
[0114] 8. The method of claim 7, wherein the rule specifies that if CCLM is used, then self-encoding mode is disabled.
[0115] 9. The method of claim 7, wherein the rule specifies that if CCLM is used, a self-encoding mode is enabled.
[0116] 10. The method of claim 9, wherein the second rule further specifies a location of the reference sample to be used during the auto-encoding based transformation.
[0117] 11. The method according to clause 10, wherein the second rule specifies using the same positions of the reference samples as those used in the planar coding mode.
[0118] 12. The method of claim 10, wherein the second rule specifies that the self-encoding uses predicted luma samples or derived chroma adjacent samples during transformation of the current video block.
[0119] 13. The method of claim 6, wherein the coding mode includes a wide-angle intra-prediction mode.
[0120] 14. The method of clause 6, wherein the rule specifies that if a wide-angle intra-prediction mode is used, then the self-coding mode is disabled.
[0121] 15. The method of clause 6, wherein the rule specifies that for a wide-angle intra-prediction mode being used, self-coding is enabled.
[0122] 16. The method of claim 6, wherein the coding mode is defined by whether a top sample or a left sample is involved during intra prediction of the current video block.
[0123] 17. The method of claim 16, wherein the intra prediction includes an angular intra prediction mode.
[0124] 18. The method of clause 6, wherein the coding mode corresponds to a height or width of the current video block, or a shape of the current video block.
[0125] 19. The method of claim 18, wherein the rule specifies that for a current video block having a non-square shape, a self-coding mode is disabled.
[0126] The following provisions may be implemented in conjunction with additional technologies described in items listed in the previous section (e.g., item 5).
[0127] 20. A method of video processing, comprising: determining, during a conversion between a current video block of a video and a coded representation of the current video block, whether a self-coding mode is applied to a current video block based on rules using components of the current video block, and performing the conversion based on the determination.
[0128] 21. The method of clause 20, wherein the rule specifies enabling a self-coding mode because the current video block is a luma block.
[0129] 22. The method of claim 20, wherein the rule specifies disabling the self-encoding mode because the current video block is a chroma block.
[0130] The following solutions can be implemented in conjunction with additional techniques described in the items listed in the previous section (e.g., item 6).
[0131] 23. A method of video processing, comprising: determining, during a conversion between a current video block of a video and a coded representation of the current video block, based on a rule, to apply multiple self-coding modes to the current video block; and performing the conversion using results of applying the multiple self-coding modes.
[0132] 24. The method of claim 23, wherein the plurality of self-coding modes includes a coding mode based on filtered or unfiltered left adjacent samples.
[0133] 25. The method of claim 23, wherein the plurality of self-coding modes includes a coding mode based on filtered or unfiltered upper adjacent samples.
[0134] 26. The method of any of clauses 23-25, wherein the rule is based on coded information including dimensions of the current video block, or a shape of the current video block, or a ratio of height and width of the current video block, or a flag signaled in the coded representation.
[0135] 27. The method according to any preceding clause, wherein the self-coding mode comprises a position-dependent intra-prediction combined (PDPC) mode.
[0136] 28. The method of any of clauses 1-27, wherein the converting step includes encoding the video into the coded representation.
[0137] 29. The method of any of clauses 1-27, wherein the converting step includes decoding the coded representation to generate pixel values for the video.
[0138] 30. A video decoding apparatus comprising a processor configured to implement the methods described in one or more of clauses 1-27.
[0139] 31. A video coding apparatus comprising a processor configured to implement a method according to one or more of clauses 1-27.
[0140] 32. A computer program product having computer code stored thereon, which code, when executed by a processor, causes the processor to perform a method according to any of clauses 1-27.
[0141] 33. Any method, apparatus, or system described herein.
[0142] The second set of clauses describes certain features and aspects of the technology disclosed in the previous section, eg, Example 1.
[0143] 1. A method of video processing (e.g., method 1300 shown in FIG. 13), comprising the steps of deriving (1302) weighting coefficients of neighboring samples of a sample of a current video block of a video according to a rule, and performing a conversion between the current video block and a coded representation of the video (1304), the rule specifying that if the current video block is coded using a planar mode or a DC mode, the weighting coefficients are determined from at least one of a dimension of the current video block or a position of the sample, the current video block uses a position-dependent intra prediction (PDPC) method, and combines the neighboring samples with a prediction signal of the current video block to generate a refined prediction signal of the current video block, and the weighting coefficient of the prediction signal of the sample is determined based on the weighting coefficients of the corresponding neighboring samples of the sample.
[0144] 2. The rule is that for a sample position (x, y), the weighting coefficient of the upper adjacent sample is wT[y]=N1>>((y<<N2)> 2. The method of claim 1, wherein nScale=((Log2(W)+Log2(H)-N3)>>N4, and N1, N2, N3, and N4 are non-negative integers.
[0145] 3. The method of claim 2, wherein the upper adjacent sample comprises position (x, -1).
[0146] 4. The rule is that for a sample position (x, y), the weighting coefficient of the left adjacent sample is wL[x]=N1>>((x<<N2)> 2. The method of claim 1, wherein nScale=((Log2(W)+Log2(H)-N3)>>N4, and N1, N2, N3, and N4 are non-negative integers.
[0147] 5. The method of claim 4, wherein the left adjacent sample comprises a position (-1,y).
[0148] 6. The method according to clause 1, wherein the rule specifies that for a sample position (x,y), the weighting coefficient of the upper left adjacent sample is zero.
[0149] 7. The method of claim 6, wherein the position of the upper left adjacent sample is (-1,-1).
[0150] 8. The method of any of clauses 2-5, wherein N1=32, N2=1, N3=2, or N4=2.
[0151] 9. The method of any of clauses 1-8, wherein the step of performing the transformation includes generating the coded representation from the current video block.
[0152] 10. The method of any of clauses 1-8, wherein the step of performing the transformation includes generating the current video block from the coded representation.
[0153] 11. A video processing device comprising a processor configured to implement the method according to any of clauses 1-10.
[0154] 12. A computer program product having computer code stored thereon which, when executed by a processor, causes the processor to perform the method according to any of clauses 1-10.
[0155] The disclosed and other solutions, examples, embodiments, modules, and functional operations described in this document can be implemented in various systems, digital electronic circuitry, or computer software, firmware, or hardware, including the structures disclosed herein and their structural equivalents, or in one or more combinations thereof. Implementations of the technical matters described herein can be implemented as one or more computer program products, such as one or more modules of computer program instructions coded on a tangible and non-transitory computer-readable medium for, for example, a data processing apparatus, or for controlling the operation of a data processing apparatus. The computer-readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, a composition of matter affecting a machine-readable propagated signal, or one or more combinations thereof. The term "data processing apparatus" encompasses all apparatuses, devices, and machines for processing data, including, for example, a programmable processor, a computer, or multiple processors or computers. In addition to hardware, an apparatus may include code that creates an execution environment for the computer program in question, such as code constituting a processor firmware, a protocol stack, a database management system, an operating system, or one or more combinations thereof. The propagated signal is an artificially generated signal, such as a machine-generated electrical, optical, or electromagnetic signal generated to encode information for transmission to an appropriate receiver device.
[0156] A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can 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 can be stored as part 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 in question, or in multiple cooperating files (e.g., a file that stores one or more modules, subprograms, or portions of code). A computer program can be deployed to be executed on multiple computers that are located on one computer or at one site, or distributed across multiple sites and interconnected by a communication network.
[0157] The processes and logic flows described in this document 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 special purpose logic circuitry, such as a FPG (field programmable gate array) or ASI (application specific integrated circuit), and may also be implemented by an apparatus.
[0158] Processors suitable for executing a computer program include, for example, both general purpose and special purpose microprocessors, and any one or more processors of any kind of digital computer. Typically, a processor receives instructions and data from a read-only memory or a random access memory, or both. The essential elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Typically, a computer is also operatively coupled to receive data from, and transfer data to, one or more mass storage devices, such as magnetic disks, magneto-optical disks, or optical disks, for storing data. However, a computer need not have such devices. 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 CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.
[0159] Although this patent document contains many details, these should not be construed as limiting the scope of any invention or what may be claimed, but rather as descriptions of features specific to particular embodiments of a particular invention. Certain features described in this patent document in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may be described above as acting in a particular combination and initially claimed as such, one or more features from a claimed combination may, in some cases, be carved out of the combination and the claimed combination may be directed to a subcombination or a variation of the subcombination.
[0160] Similarly, although the figures depict acts in a particular order, this should not be understood as requiring that such acts be performed in a particular order or sequential order, or that all of the acts illustrated be performed, to achieve desired results. Furthermore, 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.
[0161] Only a few embodiments and examples have been described, and other implementations, extensions, and variations may be made based on what is described and explained in this patent document.
Claims
1. 1. A method of video processing, comprising: generating predictive samples of a current video block of a video for conversion between the current video block and a bitstream of the video; generating modified predicted samples for the current video block using a position-dependent intra-prediction sample filtering process; performing the transformation based on the modified predicted samples; In the filtering process, a first predicted sample and at least one adjacent sample of the current video block are combined to generate a modified first predicted sample based on a weighting factor of the first predicted sample and at least one weighting factor of the at least one adjacent sample; and the filtering process is enabled for the current video block if the current video block is coded using one of INTRA_ANGULAR18, INTRA_ANGULAR50, planar mode, or DC mode, a width of the current video block is 4 or greater, a height of the current video block is 4 or greater, a baseline index is 0, and a bdpcm flag is 0; and the at least one weighting factor for at least one neighboring sample is determined only from dimensions of the current video block and a position of the first predicted sample; the filtering process is enabled for the current video block if the current video block is coded using an intra prediction mode greater than INTRA_ANGULAR50 and less than INTRA_LT_CCLM mode, or less than INTRA_ANGULAR18 and not equal to planar mode and not equal to DC mode, a width of the current video block is greater than or equal to 4, a height of the current video block is greater than or equal to 4, a baseline index is 0, and a bdpcm flag is 0; and the filtering process is not allowed for the current video block if the current video block is coded using an intra prediction mode greater than INTRA_ANGULAR18 and less than INTRA_ANGULAR50; and If the current video block is coded using a DC mode, for the position (x, y) of the first prediction sample, a weighting coefficient of the upper-left neighboring sample is zero. method.
2. the dimensions of the current video block include a width and a height of the current video block; The method of claim 1.
3. If the current video block is coded using one of INTRA_ANGULAR18, planar mode, or DC mode, for a position (x, y) of the first prediction sample, a weighting factor for an upper neighboring sample of the at least one neighboring sample is wT[y]=N1>>(y<N2)> > nScale), Here, nScale = ((Log2(W) + Log2(H) - N3) >> N4), W is the width of the current video block; H is the height of the current video block; and N1, N2, N3, and N4 are non-negative integers. The method according to claim 1 or 2.
4. the upper adjacent sample is the sample located at position (x, -1); The method according to claim 3.
5. If the current video block is coded using one of INTRA_ANGULAR50, planar mode, or DC mode, for a position (x, y) of the first prediction sample, a weighting factor for a left neighboring sample of the at least one neighboring sample is wL[x]=N1>>((x<N2)> > nScale), The method according to claim 3 or 4.
6. The left adjacent sample is the sample located at position (-1,y). The method according to claim 5.
7. N1=32, N2=1, N3=2, or N4=2, The method according to claim 5 or 6.
8. the converting includes encoding the current video block into the bitstream.
8. The method according to any one of claims 1 to 7.
9. the converting includes decoding the current video block from the bitstream.
8. The method according to any one of claims 1 to 7.
10. 1. An apparatus for processing video data comprising a processor and a non-transitory memory having instructions stored thereon, the instructions, when executed by the processor, causing the processor to: generating predictive samples of a current video block of a video for conversion between the current video block and a bitstream of the video; generating modified predicted samples of the current video block using a position-dependent intra-prediction sample filtering process; and performing said transformation based on said modified predicted samples. Let them do so, In the filtering process, a first predicted sample and at least one adjacent sample of the current video block are combined to generate a modified first predicted sample based on a weighting factor of the first predicted sample and at least one weighting factor of the at least one adjacent sample; and the filtering process is enabled for the current video block if the current video block is coded using one of INTRA_ANGULAR18, INTRA_ANGULAR50, planar mode, or DC mode, a width of the current video block is 4 or greater, a height of the current video block is 4 or greater, a baseline index is 0, and a bdpcm flag is 0; and the at least one weighting factor for at least one neighboring sample is determined only from dimensions of the current video block and a position of the first predicted sample; the filtering process is enabled for the current video block if the current video block is coded using an intra prediction mode greater than INTRA_ANGULAR50 and less than INTRA_LT_CCLM mode, or less than INTRA_ANGULAR18 and not equal to planar mode and not equal to DC mode, a width of the current video block is greater than or equal to 4, a height of the current video block is greater than or equal to 4, a baseline index is 0, and a bdpcm flag is 0; and the filtering process is not allowed for the current video block if the current video block is coded using an intra prediction mode greater than INTRA_ANGULAR18 and less than INTRA_ANGULAR50; and If the current video block is coded using a DC mode, for the position (x, y) of the first prediction sample, a weighting coefficient of the upper-left neighboring sample is zero. Device.
11. the dimensions of the current video block include a width and a height of the current video block; 11. The apparatus of claim 10.
12. If the current video block is coded using one of INTRA_ANGULAR18, planar mode, or DC mode, for a position (x, y) of the first prediction sample, a weighting factor for an upper neighboring sample of the at least one neighboring sample is wT[y]=N1>>(y<N2)> > nScale), Here, nScale = ((Log2(W) + Log2(H) - N3) >> N4), W is the width of the current video block; H is the height of the current video block; and N1, N2, N3, and N4 are non-negative integers.
12. Apparatus according to claim 10 or 11.
13. A non-transitory computer-readable storage medium storing instructions that, when executed, cause a processor to: generating predictive samples of a current video block of a video for conversion between the current video block and a bitstream of the video; generating modified predicted samples of the current video block using a position-dependent intra-prediction sample filtering process; and performing said transformation based on said modified predicted samples. Let them do so, In the filtering process, a first predicted sample and at least one adjacent sample of the current video block are combined to generate a modified first predicted sample based on a weighting factor of the first predicted sample and at least one weighting factor of the at least one adjacent sample; and the filtering process is enabled for the current video block if the current video block is coded using one of INTRA_ANGULAR18, INTRA_ANGULAR50, planar mode, or DC mode, a width of the current video block is 4 or greater, a height of the current video block is 4 or greater, a baseline index is 0, and a bdpcm flag is 0; and the at least one weighting factor for at least one neighboring sample is determined only from dimensions of the current video block and a position of the first predicted sample; the filtering process is enabled for the current video block if the current video block is coded using an intra prediction mode greater than INTRA_ANGULAR50 and less than INTRA_LT_CCLM mode, or less than INTRA_ANGULAR18 and not equal to planar mode and not equal to DC mode, a width of the current video block is greater than or equal to 4, a height of the current video block is greater than or equal to 4, a baseline index is 0, and a bdpcm flag is 0; and the filtering process is not allowed for the current video block if the current video block is coded using an intra prediction mode greater than INTRA_ANGULAR18 and less than INTRA_ANGULAR50; and If the current video block is coded using a DC mode, for the position (x, y) of the first prediction sample, a weighting coefficient of the upper-left neighboring sample is zero. A non-transitory computer-readable storage medium.
14. 1. A method for archiving a video bitstream, the method comprising: generating a predictive sample for a current video block of the video; generating modified predicted samples for the current video block using a position-dependent intra-prediction sample filtering process; generating the bitstream based on the modified predicted samples; In the filtering process, a first predicted sample and at least one adjacent sample of the current video block are combined to generate a modified first predicted sample based on a weighting factor of the first predicted sample and at least one weighting factor of the at least one adjacent sample; and the filtering process is enabled for the current video block if the current video block is coded using one of INTRA_ANGULAR18, INTRA_ANGULAR50, planar mode, or DC mode, a width of the current video block is 4 or greater, a height of the current video block is 4 or greater, a baseline index is 0, and a bdpcm flag is 0; and the at least one weighting factor for at least one neighboring sample is determined only from dimensions of the current video block and a position of the first predicted sample; the filtering process is enabled for the current video block if the current video block is coded using an intra prediction mode greater than INTRA_ANGULAR50 and less than INTRA_LT_CCLM mode, or less than INTRA_ANGULAR18 and not equal to a planar mode and not equal to a DC mode, a width of the current video block is greater than or equal to 4, a height of the current video block is greater than or equal to 4, a baseline index is 0, and a bdpcm flag is 0; and the filtering process is not allowed for the current video block if the current video block is coded using an intra prediction mode greater than INTRA_ANGULAR18 and less than INTRA_ANGULAR50; and If the current video block is coded using a DC mode, for the position (x, y) of the first prediction sample, a weighting coefficient of the upper-left neighboring sample is zero. method.
Citation Information
Patent Citations
Position-dependent prediction combinations in video coding
US20190110045A1
