Syntax elements for chroma residual scaling
By deriving the chroma residual scaling factor using samples of the current block in the reference frame during video encoding and decoding, the problem of luma and chroma signal processing latency is solved, improving encoding and decoding efficiency. In particular, in dual/single tree structures, latency is reduced and processing speed is increased.
Patent Information
- Application Number
- CN202080045462.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-06-22
AI Technical Summary
Existing video encoding and decoding technologies suffer from latency issues when processing luminance and chrominance signals, especially in dual/single tree structures. The processing of chrominance blocks requires waiting for the reconstruction of the entire luminance block, resulting in severe latency and affecting encoding and decoding efficiency.
The chroma residual scaling factor is derived by using samples of the current block in the reference frame in the inter-frame encoding and decoding block, avoiding waiting for the reconstruction of the entire luma block. Interpolation or linear combination methods are used to reduce latency, and the chroma residual scaling factor is derived directly using reference samples in LMCS mode.
It effectively reduces the latency of the chroma residual scaling process and improves encoding and decoding efficiency, especially in dual/single tree structures, which enhances processing speed and performance.
Smart Images

Figure CN113994697B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is an application entering the Chinese national phase of International Patent Application No. PCT / CN2020 / 097374 filed on June 22, 2020, which claims priority to International Patent Application No. PCT / CN2019 / 092433 filed on June 22, 2019. The entire disclosure of the above application is incorporated by reference as part of the disclosure of this application. Technical Field
[0003] This patent document relates to video encoding / decoding technology, equipment and systems. Background Art
[0004] Despite advances in video compression, digital video still accounts for the largest usage 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 / decoding are described, and in particular, devices, systems and methods related to simplified linear model derivation of cross-component linear model (CCLM) prediction mode are described. The described methods 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 representative aspect, the disclosed technology can be used to provide a method for visual media processing. The method includes: processing a bitstream representation for conversion between a current video block in a video region of visual media data and a bitstream representation, wherein the bitstream representation is based on a rule that provides for selective inclusion of one or more syntax elements used in a luma-dependent chroma residual scaling step into the bitstream representation; wherein the luma-dependent chroma residual scaling step includes scaling chroma samples based on neighboring reconstructed luma samples during the conversion; and wherein the one or more syntax elements can be used to derive a chroma residual scaling factor for scaling.
[0007] In yet another representative aspect, the above method is embodied in the form of processor executable code and stored in a computer readable program medium.
[0008] In yet another representative aspect, a device configured or operable to perform the above method is disclosed. The device may include a processor programmed to implement the method.
[0009] In yet another example aspect, a video encoding and / or decoding apparatus including a processor configured to implement the above method is disclosed.
[0010] In yet another example aspect, a computer-readable medium is disclosed, wherein the computer-readable medium stores processor-executable code embodying one of the above methods.
[0011] 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
[0012] Figure 1 An example of angular intra prediction mode in HEVC is shown.
[0013] Figure 2 An example of directional mode in non-HEVC is shown.
[0014] Figure 3 An example in combination with CCLM mode is shown.
[0015] Figure 4 An example of luma mapping with a chroma scaling architecture is shown.
[0016] Figure 5 Examples of luma blocks and chroma blocks in different color formats are shown.
[0017] Figure 6 An example of luma blocks and chroma blocks in the same color format is shown.
[0018] Figure 7 Examples of collocated luminance blocks covering multiple formats are shown.
[0019] Figure 8 An example of a luma block within a larger luma block is shown.
[0020] Fig. 9 An example of a luminance block that is within a larger luminance block and within a bounding box is shown.
[0021] Fig.10 is a block diagram of an example of a hardware platform for implementing the visual media decoding techniques or the visual media encoding techniques described in this document.
[0022] Fig.11 A flow chart of an example method for linear model derivation for cross-component prediction according to the disclosed technology is shown.
[0023] Fig.12 is a block diagram of an example video processing system in which the disclosed technology may be implemented.
[0024] Fig.13 is a flow chart of an example method of visual media processing. DETAILED DESCRIPTION
[0025] 2.1 Brief Review of HEVC
[0026] 2.1.1 Intra-frame prediction in HEVC / H.265
[0027] Intra prediction involves generating samples for a given TB (transform block) using previously reconstructed samples in the color channel under consideration. Intra prediction modes are signaled separately for luma and chroma channels, where the chroma channel intra prediction mode optionally depends on the luma channel intra prediction mode through the "DM_CHROMA" mode. Although the intra prediction mode is signaled at the PB (prediction block) level, the intra prediction process is applied at the TB level according to the residual quadtree hierarchy of the CU (coding unit), thereby allowing the encoding and decoding of one TB to affect the encoding and decoding of the next TB within the CU and thus reduce the distance to the samples used as reference values.
[0028] HEVC includes 35 intra-prediction modes - DC mode, planar mode, and 33 directional or "angular" intra-prediction modes. Figure 1 33 angular intra prediction modes are shown in FIG.
[0029] For PBs associated with chroma color channels, the intra prediction mode is specified as planar, DC, horizontal, vertical, "DM_CHROMA" mode, or sometimes diagonal mode "34".
[0030] Note that for chroma formats 4:2:2 and 4:2:0, a chroma PB can overlap with two or four (respectively) luma PBs; in this case, the luma direction of DM_CHROMA is taken from the top left of these luma PBs.
[0031] DM_CHROMA mode indicates that the intra prediction mode of the luma color channel PB is applied to the chroma color channels PB. Since this is relatively common, the most probable mode codec scheme of intra_chroma_pred_mode prefers to support the selection of this mode.
[0032] 2.2 Versatile Video Codec (VVC) Algorithm Description
[0033] 2.2.1 VVC Codec Architecture
[0034] In order to explore future video codec technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. JVET meetings are held quarterly at the same time, and the goal of the new codec standard is to reduce the bit rate by 50% compared to HEVC. The new codec standard was officially named Versatile Video Codec (VVC) at the JVET meeting in April 2018, and the first version of the VVC Test Model (VTM) was released at that time. With the continuous efforts to promote VVC standardization, new codec technologies are adopted by the VVC standard at each JVET meeting. As a result, the VVC working draft and test model VTM are updated after each meeting. Now, the VVC project is committed to achieving technical completion (FDIS) at the July 2020 meeting.
[0035] As in most previous standards, VVC has a block-based hybrid codec architecture that combines inter- and intra-picture prediction and transform codecs with entropy codecs. The picture partitioning structure divides the input video into blocks called coding tree units (CTUs). A quadtree structure with nested multi-type trees is used to divide the CTU into coding units (CUs), where leaf coding units (CUs) define areas that share the same prediction mode (e.g., intra or inter). In this document, the term "unit" defines an area of an image that covers all color components; the term "block" is used to define an area that covers a specific color component (e.g., luminance), and there may be differences in spatial position when considering the chroma sampling format (e.g., 4:2:0).
[0036] 2.2.2 Dual / Single Tree Segmentation in VVC
[0037] Luma and chroma components can have separate partitioning trees for I slices. The separate tree partitioning is at the 64×64 block level, not the CTU level. In the VTM software, there is an SPS (sequence parameter set) flag to control the dual tree on and off.
[0038] 2.2.3 Intra Prediction in VVC
[0039] 2.2.3.1 67 intra prediction modes
[0040] To capture arbitrary edge directions present in natural videos, the number of directional intra modes in VTM4 is extended from 33 (as used in HEVC) to 65. New directional modes not in HEVC are Figure 2Depicted as red dashed arrows in , planar and DC modes remain the same. These denser directional intra prediction modes apply to all block sizes and to both luma and chroma intra prediction.
[0041] 2.2.3.2 Cross-Component Linear Model Prediction (CCLM)
[0042] In order to reduce cross-component redundancy, a cross-component linear model (CCLM) prediction mode is used in VTM4. For this mode, chrominance samples are predicted based on the reconstructed luma samples of the same CU using the following linear model:
[0043] pred C (i,j)=α·rec L ′(i,j)+β
[0044] Among them, pred C (i, j) represents the predicted chroma sample in the CU, and rec L (i, j) represents the downsampled reconstructed luma sample in the same CU. The linear model parameters α and β are derived from the relationship between the luma value and the chroma value from two samples and their corresponding chroma samples, which are the luma samples with the minimum sample value and the maximum sample value in the set of the downsampled neighboring luma samples. The linear model parameters α and β are obtained according to the following equations.
[0045]
[0046] β=Y b -α·X b
[0047] Among them, Y a and X a represents the luminance value and chrominance value of the luminance sample with the maximum luminance sample value. And X b and Y b Represents the luma and chroma values of the luma sample with the minimum luma sample value, respectively. Figure 3 An example of the positions of left and upper samples involved in the CCLM mode and samples of the current block is shown.
[0048] The division operation for calculating the parameter α is implemented using a lookup table. In order to reduce the memory required to store the table, the diff value (the difference between the maximum and minimum values) and the parameter α are represented by an exponential notation system. For example, a 4-bit significant part and an exponent are used to approximate the diff. Therefore, the table of 1 / diff is simplified to 16 elements of 16 values of the significant digit as follows:
[0049] DivTable[]={0,7,6,5,5,4,4,3,3,2,2,1,1,1,1,0}
[0050] The benefit of doing this is that it reduces both the complexity of the calculation and the size of the memory required to store the necessary tables.
[0051] In addition to being able to use the upper template and the left template together to calculate the linear model coefficients, it is also possible to selectively use the upper template and the left template in two other LM modes (called LM_A and LM_L modes).
[0052] In LM_A mode, only the upper template is used to calculate the linear model coefficients. In order to obtain more samples, the upper template is expanded to (W+H). In LM_L mode, only the left template is used to calculate the linear model coefficients. In order to obtain more samples, the left template is expanded to (H+W).
[0053] For non-square blocks, the upper template is extended to W+W and the left template is extended to H+H.
[0054] To match the chroma sample positions of a 4:2:0 video sequence, two types of downsampling filters are applied to the luma samples, resulting in a 2 to 1 downsampling ratio in both the horizontal and vertical directions. The selection of downsampling filters is specified by the SPS level flag. The two downsampling filters are described below, corresponding to "Type 0" and "Type 2" content, respectively.
[0055]
[0056]
[0057] Note that when the upper reference line is on a CTU boundary, only one luma line (normal line buffer in intra prediction) is used to generate the downsampled luma samples.
[0058] This parameter calculation is performed as part of the decoding process, rather than just as an encoder search operation. Therefore, no syntax is used to communicate the α and β values to the decoder.
[0059] For chroma intra mode coding, a total of 8 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 and LM_L). Chroma mode coding depends directly on the intra prediction mode of the corresponding luminance block. Since separate block partitioning structures for luminance components and chrominance components are enabled in the I strip, one chroma block can correspond to multiple luminance blocks. Therefore, for the chroma DM mode, the intra prediction mode of the corresponding luminance block covering the center position of the current chroma block is directly inherited.
[0060] 2.2.3.2.1 Corresponding revised working draft (JVET-N0271)
[0061] The following specification is based on a modified working draft of JVET-M1001 and the adopted proposal in JVET-N0271. The adopted modifications of JVET-N0220 are shown in bold and underlined.
[0062] Syntax table
[0063] Sequence Parameter Set RBSP Syntax
[0064]
[0065] Semantics
[0066] sps_cclm_enabled_flag equal to 0 specifies that cross-component linear model intra prediction from luma components to chroma components is disabled. sps_cclm_enabled_flag equal to 1 specifies that cross-component linear model intra prediction from luma components to chroma components is enabled.
[0067] Decoding process
[0068] In the 8.4.4.2.8 specification for INTRA_LT_CCLM, INTRA_L_CCLM, and INTRA_T_CCLM intra prediction modes
[0069] The inputs to this process are:
[0070] – Intra prediction mode predModeIntra,
[0071] – The sample position of the upper left sample of the current transform block relative to the upper left sample of the current picture (xTbC, yTbC),
[0072] – variable nTbW that specifies the transform block width,
[0073] – variable nTbH that specifies the transform block height,
[0074] – Chroma neighboring samples p[x][y], where x=-1, y=0..2*nTbH–1 and x=0..2*nTbW–1, y=-1.
[0075] The output of this process is the prediction samples predSamples[x][y], where x = 0..nTbW–1, y = 0..nTbH-1.
[0076] The current brightness position (xTbY, yTbY) is derived as follows:
[0077] (xTbY, yTbY) = (xTbC << 1, yTbC << 1) (8-156) The variables availL, availT and availTL are derived as follows:
[0078] – The clause is called with the current chroma position (xCurr, yCurr) set equal to (xTbC, yTbC) and the neighboring chroma position (xTbC-1, yTbC) as input 6.4.X [Ed.(BB): Neighboring Block Availability Check Procedure tbd] The availability of the left neighboring samples of the block specified in is derived and the output is assigned to availL.
[0079] – The clause is called with the current chroma position (xCurr, yCurr) set equal to (xTbC, yTbC) and the neighboring chroma position (xTbC, YTbC-1) as input 6.4.X [Ed.(BB): Neighboring Block Availability Check Procedure tbd] The availability of the upper neighboring samples of the block specified in is derived and the output is assigned to availT.
[0080] – With the current chroma position (xCurr, yCurr) set equal to (xTbC, yTbC) and the neighboring chroma position (XTbC-1, YTbC-1) as input, the clause is called 6.4.X[Ed.(BB): Neighboring Block Availability Check Process tbd] The availability derivation process of the upper left neighboring sample point of the block specified in is performed, and the output is assigned to availTL.
[0081] – The number of available top right neighboring chroma samples numTopRight is derived as follows:
[0082] –The variable numTopRight is set equal to 0, and availTR is set equal to TRUE.
[0083] – When predModeIntra is equal to INTRA_T_CCLM, for x = nTbW .. 2*nTbW - 1, the following applies until availTR is equal to FALSE or x is equal to 2*nTbW - 1:
[0084] – The clause is called with the current chroma position (xCurr, yCurr) set equal to (xTbC, yTbC) and the neighboring chroma position (xTbC+x, yTbC-1) as input 6.4.X[Ed.(BB): Neighboring Block Availability Check Process tbd] The block availability derivation process is specified in , and the output is assigned to availableTR
[0085] – When availableTR is equal to TRUE, numTopRight is increased by 1.
[0086] – The number of available lower left neighboring chroma samples numLeftBelow is derived as follows:
[0087] –The variable numLeftBelow is set equal to 0, and availLB is set equal to TRUE.
[0088] – When predModeIntra is equal to INTRA_L_CCLM, for y = nTbH .. 2*nTbH - 1, the following applies until availLB is equal to FALSE or y is equal to 2*nTbH - 1:
[0089] – The clause is called with the current chroma position (xCurr, yCurr) set equal to (xTbC, yTbC) and the neighboring chroma position (xTbC-1, yTbC+y) as input 6.4.X[Ed.(BB): Neighboring Block Availability Check Process tbd] The block availability derivation process is specified in , and the output is assigned to availableLB
[0090] – When availableLB is equal to TRUE, numLeftBelow is increased by 1.
[0091] The number of available neighboring chroma samples numTopSamp above and to the upper right and the number of available neighboring chroma samples nLeftSamp to the left and to the lower left are derived as follows:
[0092] – If predModeIntra is equal to INTRA_LT_CCLM, the following applies:
[0093] numSampT=availT? nTbW:0 (8-157)
[0094] numSampL=availL? nTbH:0 (8-158)
[0095] – Otherwise, the following applies:
[0096] numSampT=(availT&&predModeIntra==INTRA_T_CCLM)?
[0097] (nTbW+Min(numTopRight,nTbH)):0 (8-159)
[0098] numSampL=
[0099] (availL&&predModeIntra==INTRA_L_CCLM)?
[0100] (nTbH+Min(numLeftBelow,nTbW)):0 (8-160)
[0101] The variable bCTUboundary is derived as follows:
[0102] bCTUboundary=(yTbC&(1<<(CtbLog2SizeY-1)-1)==0)?
[0103] TRUE:FALSE. (8-161)
[0104] The variable cntN and the array pickPosN[] (where N is replaced by L and T) are derived as follows:
[0105] – The variable numIs4N is set equal to ((availT&&availL&&predModeIntra==INTRA_LT_ CCLM)? 0:1).
[0106] – The variable startPosN is set equal to numSampN>>(2+numIs4N).
[0107] – The variable pickStepN is set equal to Max(1,numSampN>>(1+numIs4N)).
[0108] – If availN is equal to TRUE and predModeIntra is equal to INTRA_LT_CCLM or INTRA_N_CCLM, Then cntN is set equal to Min(numSampN,(1+numIs4N)<<1), and pickPosN[pos] is set equal to (startPosN+pos*pickStepN), where pos=0..cntN–1.
[0109] – Otherwise, cntN is set equal to 0.
[0110] The predicted samples predSamples[x][y], where x = 0..nTbW–1, y = 0..nTbH–1, are derived as follows:
[0111] – If numSampL and numSampT are both equal to 0, the following applies:
[0112] predSamples[x][y]=1<<(BitDepthC-1) (8-162)
[0113] – Otherwise, the following sequential steps apply:
[0114] 1. The concatenated luma sample pY[x][y] (where x=0..nTbW*2–1, y=0..nTbH*2–1) is set equal to the reconstructed luma sample before the deblocking filtering process at the position (xTbY+x, yTbY+y).
[0115] 2. The neighboring brightness sample pY[x][y] is derived as follows:
[0116] – When numSampL is greater than 0, the neighboring left luma sample pY[x][y] (where x = -1..-3, y = 0..2*numSampL-1) is set equal to the reconstructed luma sample before the deblocking filtering process at the position (xTbY+x, yTbY+y).
[0117] – When numSampT is greater than 0, the adjacent upper luma sample pY[x][y] (where x=0..2*numSampT-1, y=-1,-2) is set equal to the reconstructed luma sample before the deblocking filtering process at position (xTbY+x, yTbY+y).
[0118] – When availTL is equal to TRUE, the neighboring upper left luma sample pY[x][y] (where x=-1, y=-1, -2) is set equal to the reconstructed luma sample before the deblocking filtering process at position (xTbY+x, yTbY+y).
[0119] 3. The downsampled juxtaposed luminance samples pDsY[x][y], where x = 0..nTbW-1, y = 0..nTbH–1, are derived as follows:
[0120] – If sps_cclm_colocated_chroma_flag is equal to 1, the following applies:
[0121] –pDsY[x][y] (where x = 1..nTbW-1, y = 1..nTbH-1) is derived as follows:
[0122] pDsY[x][y]=(pY[2*x][2*y-1]+
[0123] pY[2*x-1][2*y]+4*pY[2*x][2*y]+pY[2*x+1][2*y]+
[0124] pY[2*x][2*y+1]+4)>>3 (8-163)
[0125] – If availL is equal to TRUE, then pDsY[0][y], where y = 1..nTbH–1, is derived as follows:
[0126]
[0127] – Otherwise, pDsY[0][y] (where y=1..nTbH-1) is derived as follows:
[0128] pDsY[0][y]=(pY[0][2*y-1]+2*pY[0][2*y]+pY[0][2*y+1]+2)>>2 (8-165)
[0129] – If availT is equal to TURE, then pDsY[x][0], where x = 1..nTbW–1, is derived as follows:
[0130]
[0131] – Otherwise, pDsY[x][0], where x = 1..nTbW–1, is derived as follows:
[0132] pDsY[x][0]=(pY[2*x-1][0]+2*pY[2*x][0]+
[0133] pY[2*x+1][0]+2)>>2 (8-167)
[0134] – If availL equals TURE and availT equals TURE, then pDsY[0][0] is derived as follows:
[0135]
[0136] – Otherwise, if availL is equal to TRUE and availT is equal to FALSE, then pDsY[0][0] is derived as follows:
[0137] pDsY[0][0]=(pY[-1][0]+2*pY[0][0]+
[0138] pY[1][0]+2)>>2 (8-169)
[0139] – Otherwise, if availL is equal to FALSE and availT is equal to TRUE, then pDsY[0][0] is derived as follows:
[0140] pDsY[0][0]=(pY[0][-1]+2*pY[0][0]+
[0141] pY[0][1]+2)>>2 (8-170)
[0142] – Otherwise (availL equals FALSE and availT equals FALSE), pDsY[0][0] is derived as follows:
[0143] pDsY[0][0]=pY[0][0] (8-171)
[0144] – Otherwise, the following applies:
[0145] –pDsY[x][y], where x = 1..nTbW-1, y = 0..nTbH–1, is derived as follows:
[0146] pDsY[x][y]=(pY[2*x-1][2*y]+pY[2*x-1][2*y+1]+2*pY[2*x][2*y]+2*pY[2*x][2*y+1]+pY[2*x+1][2*y]+
[0147] pY[2*x+1][2*y+1]+4)>>3 (8-172)
[0148] – If availL is equal to TURE, then pDsY[0][y], where y = 0..nTbH–1, is derived as follows:
[0149] pDsY[0][y]=(pY[-1][2*y]+pY[-1][2*y+1]+2*pY[0][2*y]+2*pY[0][2*y+1]+pY[1][2*y]+pY[1][2*y+1]+4)>>3 (8-173)
[0150] – Otherwise, pDsY[0][y], where y = 0..nTbH–1, is derived as follows:
[0151] pDsY[0][y]=(pY[0][2*y]+pY[0][2*y+1]+1)>>1 (8-174)
[0152] 4. When numSampL is greater than 0, The selected adjacent left chroma sample pSelC[idx] is set equal to p[- 1][pickPosL[idx]], where idx = 0..(cntL–1) ,and The selected The adjacent left brightness sample after downsampling pSelDsY[idx] ,in, idx=0..(cntL–1) , which is derived as follows:
[0153] – The variable y is set equal to pickPosL[idx].
[0154] – If sps_cclm_colocated_chroma_flag is equal to 1, the following applies:
[0155] – If y>0||availTL==TRUE,
[0156] pSelDsY[idx]=(pY[-2][2*y-1]+pY[-3][2*y]+4*pY[-2][2*y]+pY[-1][2*y]+pY [-2][2*y+1]+4)>>3 (8-175)
[0157] -otherwise:
[0158] pSelDsY[idx]=(pY[-3][0]+2*pY[-2][0]+pY[-1][0]+2)>>2 (8-177)
[0159] – Otherwise, the following applies:
[0160] pSelDsY[idx] =(pY[-1][2*y]+pY[-1][2*y+1]+2*pY[-2][2*y]+2*pY[-2][2*y+1]+pY[-3][2*y]+pY[-3][2*y+1]+4)>>3 (8-178)
[0161] 5. When numSampT is greater than 0, The selected adjacent upper chroma sample pSelC[idx] is set equal to p [pickPosT[idx–cntL]][-1], where idx = cntL..(cntL+cntT–1), And the adjacent upper brightness sample after downsampling pSelDsY[idx], where idx = 0..(cntL+cntT–1), Specify as follows:
[0162] – The variable x is set equal to pickPosT[idx–cntL] .
[0163] – If sps_cclm_colocated_chroma_flag is equal to 1, the following applies:
[0164] – If x>0:
[0165] – If bCTUboundary is equal to FALSE, the following applies:
[0166] pSelDsY[idx] =(pY[2*x][-3]+
[0167] pY[2*x-1][-2]+4*pY[2*x][-2]+
[0168] pY[2*x+1][-2]+
[0169] pY[2*x][-1]+4)>>3 (8-179)
[0170] – Otherwise (bCTUboundary equals TRUE), the following applies:
[0171] pSelDsY[idx] =(pY[2*x-1][-1]+
[0172] 2*pY[2*x][-1]+
[0173] pY[2*x+1][-1]+2)>>2 (8-180)
[0174] – otherwise:
[0175] – If availTL equals TRUE and bCTUboundary equals FALSE, the following applies:
[0176] pSelDsY[idx]=(pY[0][-3]+
[0177] pY[-1][-2]+4*pY[0][-2]+pY[1][-2]+
[0178] pY[0][-1]+4)>>3 (8-181)
[0179] – Otherwise, if availTL equals TRUE and bCTUboundary equals TRUE, the following applies:
[0180] pSelDsY[idx] =(pY[-1][-1]+
[0181] 2*pY[0][-1]+
[0182] pY[1][-1]+2)>>2 (8-182)
[0183] – Otherwise, if availTL equals FALSE and bCTUboundary equals FALSE, then the following applies:
[0184] pSelDsY[idx]=(pY[0][-3]+2*pY[0][-2]+
[0185] pY[0][-1]+2)>>2 (8-183)
[0186] – Otherwise (availTL equals FALSE and bCTUboundary equals TRUE), the following applies:
[0187] pSelDsY[idx] = pY[0][-1] (8-184) – otherwise, the following applies:
[0188] – If x>0:
[0189] – If bCTUboundary is equal to FALSE, the following applies:
[0190] pSelDsY[idx] =(pY[2*x-1][-2]+
[0191] pY[2*x-1][-1]+2*pY[2*x][-2]+2*pY[2*x
[0192] ][-1]+pY[2*x+1][-2]+
[0193] pY[2*x+1][-1]+4)>>3 (8-185)
[0194] – Otherwise (bCTUboundary equals TRUE), the following applies:
[0195] pSelDsY[idx] =(pY[2*x-1][-1]+
[0196] 2*pY[2*x][-1]+
[0197] pY[2*x+1][-1]+2)>>2 (8-186)
[0198] – otherwise:
[0199] – If availTL equals TRUE and bCTUboundary equals FALSE, the following applies:
[0200] pSelDsY[idx] =(pY[-1][-2]+pY[-1][-1]+
[0201] 2*pY[0][-2]+2*pY[0][-1]+
[0202] pY[1][-2]+pY[1][-1]+4)>>3 (8-187)
[0203] – Otherwise, if availTL equals TRUE and bCTUboundary equals TRUE, the following applies:
[0204] pSelDsY[idx] =(pY[-1][-1]+
[0205] 2*pY[0][-1]+pY[1][-1]+2)>>2 (8-188)
[0206] – Otherwise, if availTL equals FALSE and bCTUboundary equals FALSE, then the following applies:
[0207] pSelDsY[idx] =(pY[0][-2]+
[0208] pY[0][-1]+1)>>1 (8-189)
[0209] – Otherwise (availTL equals FALSE and bCTUboundary equals TRUE), the following applies:
[0210] pSelDsY[idx] = pY[0][-1] (8-190)
[0211] 6. When cntT+cntL is not equal to 0 , the variables minY, maxY, minC and maxC are derived as follows:
[0212] – When cntT+cntL is equal to 2, pSelComp[3] is set equal to pSelComp[0], and pSelComp[2] is set equal to pSelComp[1]. pSelComp[0] is set equal to pSelComp[1], pSelComp[1] is set equal to pSelComp[3], where Comp is replaced by DsY and C.
[0213] – The arrays minGrpIdx and maxGrpIdx are set to: minGrpIdx[0] = 0, minGrpIdx[1] = 2, maxGrpIdx[0]=1, maxGrpIdx[1]=3.
[0214] – If pSelDsY[minGrpIdx[0]]>pSelDsY[minGrpIdx[1]], Swap(minGrpIdx[0], minGrpIdx[1]).
[0215] – If pSelDsY[maxGrpIdx[0]]>pSelDsY[maxGrpIdx[1]], Swap(maxGrpIdx[0], maxGrpIdx[1]).
[0216] – If pSelDsY[minGrpIdx[0]]>pSelDsY[maxGrpIdx[1]], Swap(minGrpIdx, maxGrpIdx).
[0217] – If pSelDsY[minGrpIdx[1]]>pSelDsY[maxGrpIdx[0]], Swap(minGrpIdx[1], maxGrpIdx[0]).
[0218] – maxY=(pSelDsY[maxGrpIdx[0]]+pSelDsY[maxGrpIdx[1]]+1)>>1.
[0219] – maxC=(pSelC[maxGrpIdx[0]]+pSelC[maxGrpIdx[1]]+1)>>1.
[0220] – minY=(pSelDsY[minGrpIdx[0]]+pSelDsY[minGrpIdx[1]]+1)>>1.
[0221] – minC=(pSelC[minGrpIdx[0]]+pSelC[minGrpIdx[1]]+1)>>1.
[0222] 7. The variables a, b and k are derived as follows:
[0223] – If numSampL is equal to 0, and numSampT is equal to 0, then the following applies:
[0224] k=0 (8-208)
[0225] a=0 (8-209)
[0226] b=1<<(BitDepthC-1) (8-210)
[0227] – Otherwise, the following applies:
[0228] diff=maxY–minY (8-211)
[0229] – If diff is not equal to 0, the following applies:
[0230] diffC=maxC-minC (8-212)
[0231] x=Floor(Log2(diff)) (8-213)
[0232] normDiff=((diff<<4)>>x)&15 (8-214)
[0233] x+=(normDiff!=0)? 1:0 (8-215)
[0234] y=Floor(Log2(Abs(diffC)))+1 (8-216)
[0235] a=(diffC*(divSigTable[normDiff]|8)+2 y-1 )>>y
[0236] (8-217)
[0237] k=((3+xy)<1)? 1:3+xy (8-218)
[0238] a=((3+xy)<1)? Sign(a)*15:a(8-219)
[0239] b=minC-((a*minY)>>k) (8-220)
[0240] Among them, divSigTable[] is specified as follows:
[0241] divSigTable[]={0,7,6,5,5,4,4,3,3,2,2,1,1,1,1,0} (8-221)
[0242] – Otherwise (diff equals 0), the following applies:
[0243] k=0 (8-222)
[0244] a=0 (8-223)
[0245] b=minC (8-224)
[0246] 8. Prediction sample predSamples[x][y], where x = 0..nTbW-1, y = 0..
[0247] nTbH–1, derived as follows:
[0248] predSamples[x][y]=Clip1C(((pDsY[x][y]*a)>>k)+b)
[0249] (8-225)
[0250] 2.2.3.3 Miscellaneous Intra Prediction Aspects
[0251] VTM4 includes many intra-frame codec tools that are different from HEVC. For example, the following features have been included in VVC Test Model 3 on top of the block tree structure.
[0252] 67 intra modes with wide angle mode expansion
[0253] Block size and mode dependent 4-tap interpolation filter
[0254] Position dependent intra prediction combination (PDPC)
[0255] Cross-component linear model intra prediction
[0256] Multi-reference intra prediction
[0257] Intra-frame sub-division
[0258] 2.2.4 Inter-frame prediction in VVC
[0259] 2.2.4.1 Combined inter and intra prediction (CIIP)
[0260] In VTM4, when a CU is encoded or decoded in merge mode, and if the CU contains at least 64 luma samples (that is, the CU width multiplied by the CU height is equal to or greater than 64), an additional flag is signaled to indicate whether combined inter / intra prediction (CIIP) is applied to the current CU.
[0261] To form the CIIP prediction, the intra prediction mode is first derived from two additional syntax elements. Up to four possible intra prediction modes can be used: DC, planar, horizontal or vertical. After that, the inter prediction and intra prediction signals are derived using the conventional intra and inter decoding process. Finally, a weighted averaging of the inter and intra prediction signals is performed to obtain the CIIP prediction.
[0262] 2.2.4.2 Miscellaneous inter-frame prediction aspects
[0263] VTM4 includes many inter-frame codec tools that are different from HEVC. For example, the following features are included in VVC Test Model 3 on top of the block tree structure.
[0264] Affine motion inter-frame prediction
[0265] Sub-block-based temporal motion vector prediction
[0266] Adaptive motion vector resolution
[0267] 8x8 block-based motion compression for temporal motion prediction
[0268] High-resolution (1 / 16 pixel) motion vector storage and motion compensation using 8-tap interpolation filters for luma components and 4-tap interpolation filters for chroma components
[0269] Triangle segmentation
[0270] Combined intra and inter prediction
[0271] Merge using MVD (MMVD)
[0272] Symmetrical MVD codec
[0273] Bidirectional optical flow
[0274] Decoder-side motion vector refinement
[0275] Bidirectional prediction weighted averaging
[0276] 2.2.5 Loop Filter
[0277] There are a total of three loop filters in VTM4. In addition to the deblocking filter and SAO (two loop filters in HEVC), an adaptive loop filter (ALF) is also applied in VTM4. The order of the filtering process in VTM4 is deblocking filter, SAO and ALF.
[0278] In VTM4, the SAO and deblocking filtering processes are almost the same as those in HEVC.
[0279] In VTM4, a new process called "luminance mapping with chroma scaling" was added (this process was previously called adaptive loop reshaper). This new process is performed before deblocking.
[0280] 2.2.6 Luma Mapping with Chroma Scaling (LMCS, also known as Loop Shaping)
[0281] In VTM4, a codec tool called luma mapping with chroma scaling (LMCS) was added as a new processing block before the loop filter. LMCS has two main components: 1) loop mapping of the luma component based on an adaptive piecewise linear model; 2) for the chroma components, luma-dependent chroma residual scaling is applied. Figure 4 The LMCS architecture from the decoder perspective is shown. Figure 4 The dashed shaded blocks in indicate where in the mapped domain the processing is applied; and these include inverse quantization, inverse transform, luma intra prediction, and adding the luma prediction to the luma residual. Figure 4 The unshaded blocks in indicate where the processing is applied in the original (i.e., unmapped) domain; and these include loop filters such as deblocking, ALF and SAO, motion compensated prediction, chroma intra prediction, adding chroma prediction to chroma residual, and storing the decoded picture as a reference picture. Figure 4 The cross-hatching block in is the new LMCS functional block, which includes forward and inverse mapping of the luma signal and the luma-dependent chroma scaling process. Like most other tools in VVC, LMCS can be enabled / disabled on the sequence level using the SPS flag.
[0282] 2.2.6.1 Brightness Mapping Using Piecewise Linear Model
[0283] The loop mapping of the luma component adjusts the dynamic range of the input signal by redistributing the codewords across the dynamic range, thereby improving compression efficiency. Luma mapping utilizes a forward mapping function FwdMap and a corresponding inverse mapping function InvMap. The FwdMap function is signaled using a piecewise linear model with 16 equal segments. The InvMap function does not need to be signaled, but is instead derived from the FwdMap function.
[0284] The brightness mapping model is signaled at the slice group level. First, the existence flag is signaled. If a brightness mapping model exists in the current slice group, the corresponding piecewise linear model parameters are signaled. The piecewise linear model divides the dynamic range of the input signal into 16 equal segments, and for each segment, its linear mapping parameters are represented by the number of codewords assigned to the segment. Take 10-bit input as an example. By default, each of the 16 segments has 64 codewords assigned to it. The scaling factor is calculated using the signaled number of codewords, and the mapping function is adjusted accordingly for the segment. At the slice group level, another LMCS enable flag is signaled to indicate whether the above is applied to the current slice group. Figure 4 The LMCS process is shown.
[0285] Each i-th segment (i=0...15) of the FwdMap piecewise linear model is defined by two input pivot points InputPivot[] and two output (mapped) pivot points MappedPivot[].
[0286] InputPivot[] and MappedPivot[] are calculated as follows (assuming 10-bit video):
[0287] 1)OrgCW=64
[0288] 2) For i = 0:16, InputPivot[i] = i * OrgCW
[0289] 3) For i=0:16, MappedPivot[i] is calculated as follows:
[0290] MappedPivot[0] = 0;
[0291] for(i=0;i<16;i++)
[0292] MappedPivot[i+1]=MappedPivot[i]+SignalledCW[i]
[0293] Among them, SignalledCW[i] is the number of signaling notification codewords in the i-th segment.
[0294] like Figure 4 As shown, for the inter-frame coding block, motion compensation prediction is performed in the mapping domain. In other words, the motion compensation prediction block Y is calculated based on the reference signal in the DPB. pred After that, the FwdMap function is applied to map the luminance prediction block in the original domain to the mapping domain Y′ pred =FwdMap(Y pred ). For intra-frame coded blocks, the FwdMap function is not applied because intra prediction is performed in the mapping domain. r Afterwards, the InvMap function is applied to convert the reconstructed brightness values in the mapped domain back to the original domain The InvMap function is applied to both intra- and inter-coded luminance blocks.
[0295] The brightness mapping process (forward mapping and / or inverse mapping) can be implemented using a lookup table (LUT) or using on-the-fly calculations. If LUTs are used, then the FwdMapLUT and InvMapLUT can be pre-calculated and pre-stored for use at the slice group level, and the forward mapping and inverse mapping can be simply implemented as FwdMap(Y pred )=FwdMapLUT[Y pred ] and InvMap(Y r )=InvMapLUT[Y r]. Alternatively, on-the-fly calculation can be used. Take the forward mapping function FwdMap as an example. In order to determine which segment the brightness sample belongs to, the sample value is shifted to the right by 6 bits (which corresponds to 16 equal segments). After that, the linear model parameters of the segment are retrieved and applied on-the-fly to calculate the mapped brightness value. Let i be the segment index, a1, a2 be InputPivot[i] and InputPivot[i+1] respectively, and b1, b2 be MappedPivot[i] and MappedPivot[i+1] respectively. The FwdMap function is estimated as follows:
[0296] FwdMap(Y pred )=((b2-b1) / (a2-a1))*(Y pred -a1)+b1
[0297] The InvMap function can be calculated in a similar manner, except that a conditional check needs to be applied when determining which fragment a sample value belongs to, rather than simply shifting right, since the fragments in the mapping domain are not of equal size.
[0298] 2.2.6.2 Luma-Dependent Chroma Residual Scaling
[0299] Chroma residual scaling is designed to compensate for the interaction between luma signals and their corresponding chroma signals. Whether chroma residual scaling is enabled is also signaled on the slice group level. If luma mapping is enabled and if dual tree partitioning (also known as separate chroma trees) is not applied for the current slice group, an additional flag is signaled to indicate whether luma-dependent chroma residual scaling is enabled. When luma mapping is not used, or when dual tree partitioning is used in the current slice group, luma-dependent chroma residual scaling is disabled. In addition, luma-dependent chroma residual scaling is always disabled for chroma blocks whose area is less than or equal to 4.
[0300] The chroma residual is scaled to depend on the average value of the corresponding luma prediction block (for both intra and inter coded blocks). Denote avgY′ as the average value of the luma prediction block. Calculate C as follows ScaleInv Values:
[0301] 1) Based on the InvMap function, find the index Y of the piecewise linear model to which avgY′ belongs Idx .
[0302] 2) C ScaleInv =cScaleInv[Y Idx ], where cScaleInv[] is a precomputed 16-fragment LUT.
[0303] If the current block is encoded or decoded into intra, CIIP, or intra block copy (IBC, also known as current picture reference or CPR) mode, avgY′ is calculated as the average of the intra-predicted luminance values, CIIP-predicted luminance values, or IBC-predicted luminance values; otherwise avgY′ is calculated as the average of the forward-mapped inter-predicted luminance values ( Figure 4 Y′ pred ). Unlike luma mapping which is performed on a sample basis, for the entire chroma block, C ScaleInv is a constant value. ScaleInv , chroma residual scaling is applied as follows:
[0304] Encoder side: C ResScale =C Res *C Scale =C Res / C ScaleInv
[0305] Decoder side: C Res =C ResScale / C Scale =C ResScale *C ScaleInv
[0306] 2.2.6.3 Corresponding working draft in JVET-M1001_v7, together with the adopted proposal in JVET-N0220
[0307] The following specification is based on the modified working draft of JVET-M1001 and the adopted proposal in JVET-N0220. The adopted modifications in JVET-N0220 are shown in bold and underlined.
[0308] Syntax table
[0309] In 7.3.2.1 Sequence Parameter Set RBSP Syntax
[0310]
[0311]
[0312] In 7.3.4.1 General slice group header syntax
[0313]
[0314] In 7.3.4.4 Luma Map Data Syntax with Chroma Scaling
[0315]
[0316] Semantics
[0317] In 7.4.3.1 Sequence Parameter Set RBSP Semantics
[0318] sps_lmcs_enabled_flag equal to 1 specifies that luma mapping with chroma scaling is used in CVS. sps_lmcs_enabled_flag equal to 0 specifies that luma mapping with chroma scaling is not used in CVS.
[0319] tile_group_lmcs_model_present_flag equal to 1 specifies that lmcs_data() is present in the slice group header. tile_group_lmcs_model_present_flag equal to 0 specifies that lmcs_data() is not present in the slice group header. When tile_group_lmcs_model_present_flag is not present, it is inferred to be equal to 0.
[0320] tile_group_lmcs_enabled_flag equal to 1 specifies that luma mapping with chroma scaling is enabled for the current slice group. tile_group_lmcs_enabled_flag equal to 0 specifies that luma mapping with chroma scaling is not enabled for the current slice group. When tile_group_lmcs_enabled_flag is not present, it is inferred to be equal to 0.
[0321] tile_group_chroma_residual_scale_flag equal to 1 specifies that chroma residual scaling is enabled for the current slice group. tile_group_chroma_residual_scale_flag equal to 0 specifies that chroma residual scaling is not enabled for the current slice group. When tile_group_chroma_residual_scale_flag is not present, it is inferred to be equal to 0.
[0322] In 7.4.5.4 Luma Map Data Semantics with Chroma Scaling
[0323] lmcs_min_bin_idx specifies the minimum binary index used during the construction of the luma map with chroma scaling. The value of lmcs_min_bin_idx should be in the range of 0 to 15, inclusive.
[0324] lmcs_delta_max_bin_idx indicates the delta value between 15 and the maximum bin index LmcsMaxBinIdx used in the luma map construction process with chroma scaling. The value of lmcs_delta_max_bin_idx shall be in the range of 0 to 15, inclusive. The value of LmcsMaxBinIdx shall be set equal to 15 - lmcs_delta_max_bin_idx. The value of LmcsMaxBinIdx shall be greater than or equal to lmcs_min_bin_idx.
[0325] lmcs_delta_cw_prec_minus1 plus 1 specifies the number of bits used to represent the syntax lmcs_delta_abs_cw[i]. The value of lmcs_delta_cw_prec_minus1 shall be in the range of 0 to BitDepthY-2, inclusive.
[0326] lmcs_delta_abs_cw[i] specifies the absolute delta codeword value of the i-th binary bit.
[0327] lmcs_delta_sign_cw_flag[i] specifies the sign of the variable lmcsDeltaCW[i] as follows:
[0328] – If lmcs_delta_sign_cw_flag[i] is equal to 0, then lmcsDeltaCW[i] is positive.
[0329] – Otherwise (lmcs_delta_sign_cw_flag[i] is not equal to 0), lmcsDeltaCW[i] is a negative value.
[0330] When lmcs_delta_sign_cw_flag[i] is not present, it is inferred to be equal to 0.
[0331] The variable OrgCW is derived as follows:
[0332] OrgCW=(1< <BitDepthY) / 16 (7-70)
[0333] The variable lmcsDeltaCW[i] is derived as follows, where i = lmcs_min_bin_idx..LmcsMaxBinIdx:
[0334] lmcsDeltaCW[i]=(1-2*lmcs_delta_sign_cw_flag[i])*
[0335] lmcs_delta_abs_cw[i] (7-71)
[0336] The variable lmcsCW[i] is derived as follows:
[0337] – For i = 0..lmcs_min_bin_idx-1, set lmcsCW[i] equal to 0.
[0338] – For i = lmcs_min_bin_idx..LmcsMaxBinIdx, the following applies:
[0339] lmcsCW[i]=OrgCW+lmcsDeltaCW[i] (7-72)
[0340] The value of lmcsCW[i] should be in the range of (OrgCW>>3) to (OrgCW<<3-1).
[0341] Contains the endpoint.
[0342] – For i = LmcsMaxBinIdx+1..15, set lmcsCW[i] equal to 0.
[0343] The following conditions are true for bitstream conformance:
[0344]
[0345] The variable InputPivot[i] is derived as follows, where i = 0..16:
[0346] InputPivot[i]=i*OrgCW (7-74)
[0347] The variables LmcsPivot[i] (where i=0..16) and ScaleCoeff[i] and InvScaleCoeff[i] (where i=0..15) are derived as follows:
[0348] LmcsPivot[0] = 0;
[0349] for(i=0;i<=15;i++){
[0350] LmcsPivot[i+1]=LmcsPivot[i]+lmcsCW[i]
[0351] ScaleCoeff[i]=(lmcsCW[i]*(1<<11)+(1<<(Log2(OrgCW)-1)))>>(Log2 (OrgCW)) (7-75)
[0352] if(lmcsCW[i]==0)
[0353] InvScaleCoeff[i]=0
[0354] else
[0355] InvScaleCoeff[i]=OrgCW*(1<<11) / lmcsCW[i]
[0356] }
[0357] The variable ChromaScaleCoeff[i] is derived as follows, where i = 0…15:
[0358] if(lmcsCW[i]==0)
[0359] ChromaScaleCoeff[i]=(1<<11)
[0360] else{
[0361] ChromaScaleCoeff[i]=InvScaleCoeff[i]
[0362] }
[0363] The variables ClipRange, LmcsMinVal, and LmcsMaxVal are derived as follows:
[0364] ClipRange=((lmcs_min_bin_idx>0)&&(LmcsMaxBinIdx<15) (7-77)
[0365] LmcsMinVal=16<<(BitDepthY-8) (7-78)
[0366] LmcsMaxVal=235<<(BitDepthY-8) (7-79)
[0367] NOTE - Arrays InputPivot[i] and LmcsPivot[i], ScaleCoeff[i] and InvScaleCoeff[i], ChromaScaleCoeff[i], ClipRange, LmcsMinVal and LmcsMaxVal are updated only when tile_group_lmcs_model_present_flag is equal to 1. Thus, for example, the lmcs model can be sent with an IRAP picture, but lmcs can be disabled for that IRAP picture.
[0368] 3. Disadvantages of existing implementation methods
[0369] The current design of LMCS / CCLM may have the following problems:
[0370] 1. In the LMCS codec, the chroma residual scaling factor is derived by juxtaposing the average value of the luma prediction block, which causes a delay in processing chroma samples in the LMCS chroma residual scaling.
[0371] a) For a single / shared tree, the delay is caused by (a) waiting for all prediction samples for the entire luma block to be available, and (b) averaging all luma prediction samples obtained by (a).
[0372] b) For dual / single tree, the delay is more serious because separate block partitioning structures for luma and chroma components are enabled in I slices. Therefore, one chroma block can correspond to multiple luma blocks, and one 4x4 chroma block can correspond to a 64x64 luma block. Therefore, the worst case is that the chroma residual scaling factor of the current 4x4 chroma block may need to wait until all prediction samples in the entire 64x64 luma block are available. In short, the delay problem in dual / single tree will be much more serious.
[0373] 2. In CCLM codec, CCLM model calculation for intra chroma prediction depends on left and top reference samples of both luma and chroma blocks. Also, CCLM prediction of chroma blocks depends on collocated luma reconstruction samples of the same CU. This results in high latency in dual / single trees.
[0374] For dual / single tree, a 4x4 chroma block may correspond to a 64x64 luma block. Therefore, the worst case is that the CCLM process of the current chroma block may need to wait until the corresponding entire 64x64 luma block is reconstructed. This delay problem is similar to LMCS chroma scaling in dual / single tree.
[0375] 4. Example Techniques and Implementations
[0376] To address these issues, we propose several methods to eliminate / reduce / limit cross-component dependencies in luma-dependent chroma residual scaling, CCLM, and other codecs that rely on information from different color components.
[0377] The detailed embodiments described below should be considered as examples for explaining the general principles. These embodiments should not be interpreted narrowly. In addition, these embodiments can be combined in any way.
[0378] Note that although the bullet points described below explicitly mention LMCS / CCLM, these methods may also be applicable to other codecs that rely on information from different color components. In addition, the terms "luminance" and "chrominance" mentioned below may be replaced by "first color component" and "second color component" (such as "G component" and "B / R component" in the RBG color format, respectively).
[0379] In the following discussion, the definition of "collocated sample / block" is consistent with the definition of collocated sample / block in the VVC working draft JVET-M1001. More specifically, in the 4:2:0 color format, assuming that the upper left sample of the chroma block is at position (xTbC, yTbC), the collocated luminance block position (xTbY, yTbY) of the upper left sample is derived as follows: (xTbY, yTbY) = (xTbC<<1, yTbC<<1). Figure 5 As shown, the upper left sample point of the current chroma block is located at (x=16, y=16) in the chroma picture, and then the upper left sample point of its collocated luma block is located at (x=32, y=32) in the luma picture, regardless of the block partitioning of the collocated luma block in the luma picture. As another example, it is assumed that in the same color component, the position of the upper left sample point of the collocated block in the reference frame should be the same as the position of the upper left sample point of the current block in the current frame, such as Figure 6 As shown, assuming that the upper left sample point of the current block is (x, y) in the current frame, the upper left sample point of the collocated block of the current block has the same position (x, y) in the reference frame.
[0380] In the following discussion, a "corresponding block" may have a different position than the current block. For example, there may be a motion shift between the current block and its corresponding block in the reference frame. Figure 6 As shown, assume that the current block is located at (x, y) in the current frame and has a motion vector (mv x ,mv y ), then the corresponding block of the current block may be located at (x+mv x ,y+mv y ). Also, for an IBC codec block, the collocated luma block (pointed to by a zero vector) and the corresponding luma block (pointed to by a non-zero BV (block vector)) can be located at different places in the current frame. As another example, when the partitioning of luma blocks is inconsistent with the partitioning of chroma blocks (in a dual-tree partitioning of an I stripe), the collocated luma block of the current chroma block can belong to the larger luma block, depending on the partitioning size of the overlapping luma codec block covering the upper left sample of the collocated luma block. Figure 5As shown, assuming that the bold rectangle represents the partitioning of the block, the 64×64 luma block is first partitioned according to BT (binary tree), and then the right part of the 64×64 luma block is further partitioned according to TT (ternary tree), which produces three luma blocks of size equal to 32×16, 32×32, and 32×16, respectively. Therefore, the upper left sample point (x=32, y=32) of the collocated luma block of the current chroma block is seen, which belongs to the central 32×32 luma block of the TT partition. In this case, we refer to the corresponding luma block covering the upper left sample point of the collocated luma block as the "corresponding luma block". Therefore, in this example, the upper left sample point of the corresponding luma block is located at (x=32, y=16).
[0381] In the following, DMVD (decoder side motion vector derivation) is used to represent BDOF (also known as BIO) or / and DMVR (decoder side motion vector refinement) or / and FRUC (frame rate up conversion) or / and other methods of refining motion vectors or / and predicted sample values at the decoder.
[0382] Removal of chroma scaling delay of LMCS and model calculation of CCLM
[0383] 1. It is proposed that for inter-frame coding blocks, one or more reference frames of the current block can be used.
[0384] The chroma residual scaling factor in the LMCS mode is derived by referring to the sample points.
[0385] a) In one example, the reference luma samples may be used directly to derive the chroma residual scaling factors. i. Alternatively, interpolation may be applied to the reference samples first, and the interpolated samples may be used to derive the chroma residual scaling factors.
[0386] ii. Alternatively, reference samples in different reference frames may be used to derive the final reference samples for chroma residual scaling factor derivation.
[0387] 1) In one example, for a bidirectional prediction coding block, the above method can be applied.
[0388] iii. In one example, the intensities of the reference samples may be converted to the shaping domain before the reference samples are used to derive the chroma residual scaling factors.
[0389] iv. In one example, a linear combination of reference samples may be used to derive the chroma residual scaling factor.
[0390] 1) For example, a×S+b may be used to derive the chroma residual scaling factor, where S is a reference sample, and a and b are parameters. In one example, a and b may be derived by local illumination compensation (LIC).
[0391] b) In one example, the position of the reference luma samples in the reference frame may depend on the motion vector(s) of the current block.
[0392] i. In one example, the reference sample belongs to a reference luma block, which is in a reference picture and has the same width and height as the current luma block. The position of the reference luma sample in the reference picture can be calculated as the position of its corresponding luma sample in the current picture plus the motion vector.
[0393] ii. In one example, the position of the reference luma sample (which is referred to as the corresponding luma sample in the reference frame) can be derived by the position of the upper left (or center or lower right) sample of the current luma block and the motion vector of the current block.
[0394] 1) In one example, an integer motion vector may be used to derive a corresponding luma sample in a reference frame. In one example, a motion vector associated with a block may be rounded toward zero or away from zero to derive an integer motion vector.
[0395] 2) Alternatively, fractional motion vectors may be used to derive corresponding luma samples in a reference frame, whereby an interpolation process may be required to derive fractional reference samples.
[0396] iii. Alternatively, the position of the reference luma sample may be derived from the position of the upper left (or center or lower right) sample of the current luma block.
[0397] iv. Alternatively, a plurality of corresponding luma samples at some predefined positions in the reference frame may be selected to calculate the chroma residual scaling factor.
[0398] c) In one example, the median or average value of multiple reference luma samples may be used to derive the chroma residual scaling factor.
[0399] d) In one example, the reference luma samples in a predefined reference frame may be used to derive the chroma residual scaling factor.
[0400] i. In one example, the predefined reference frame may be a reference frame whose reference index is equal to 0 of reference picture list 0.
[0401] ii. Alternatively, the reference index and / or reference picture list of the predefined reference frames may be signaled in sequence / picture / slice group / slice / slice / CTU row / video unit level.
[0402] iii. Alternatively, reference luma samples in multiple reference frames may be derived, and the chroma residual scaling factor may be obtained by taking an average or weighted average.
[0403] 2. It is proposed that whether and how to derive the chroma residual scaling factor from the luma samples in the LMCS mode may depend on whether the current block applies bidirectional prediction.
[0404] a) In one example, the chroma residual scaling factor is derived separately for each prediction direction.
[0405] 3. It is proposed that whether and how to derive the chroma residual scaling factor from the luma samples in the LMCS mode may depend on whether the current block applies sub-block based prediction.
[0406] a) In one example, the sub-block based prediction is an affine prediction;
[0407] b) In one example, the sub-block based prediction is the Alternative Temporal Motion Vector Prediction (ATMVP).
[0408] c) In one example, the chroma residual scaling factor is derived separately for each sub-block.
[0409] d) In one example, the chroma residual scaling factor is derived for the entire block, even if it is predicted by sub-blocks.
[0410] i. In one example, a motion vector of a selected sub-block (or upper left sub-block) may be used to identify the reference sample of the current block, as described in bullet point 1. 4. It is proposed that the luma prediction value used to derive the chroma residual scaling factor may be an intermediate luma prediction value rather than a final luma prediction value.
[0411] a) In one example, the luma prediction value before the Bidirectional Optical Flow (BDOF, aka BIO) process can be used to derive the chroma residual scaling factor.
[0412] b) In one example, the luma prediction value before the decoder side motion vector refinement (DMVR) process may be employed to derive the chroma residual scaling factor.
[0413] c) In one example, the luma prediction value before the LIC process can be used to derive the chroma residual scaling factor.
[0414] d) In one example, the luma prediction value before the process of predicting refined optical flow (PROF) can be used to derive the chroma residual scaling factor.
[0415] 5. Intermediate motion vectors can be used to identify reference samples.
[0416] a) In one example, the motion vector before the process of BDOF or / and DMVR or / and other DMVD methods may be used to identify the reference sample.
[0417] b) In one example, the reference samples may be identified using motion vectors prior to the process of predicting refined optical flow (PROF) as proposed in JVET-N0236.
[0418] 6. When the current block is encoded and decoded in inter-frame mode, the above method may be applicable.
[0419] 7. It is proposed that for IBC codec blocks, one or more reference samples in the reference block of the current frame can be used to derive the chroma residual scaling factor in the LMCS mode. When the block is IBC codec, the term "motion vector" can also be called "block vector", where the reference picture is set to the current picture.
[0420] a) In one example, the reference sample belongs to a reference block, which is in the current picture and has the same width and height as the current block. The position of the reference sample can be calculated as the position of its corresponding sample plus the motion vector.
[0421] b) In one example, the position of the reference luma sample can be derived by adding the position of the upper left (or center, or lower right) sample of the current luma block to the motion vector.
[0422] c) Alternatively, the position of the reference luma sample can be derived by adding the position of the upper left (or center, or lower right) sample of the current luma block to the block vector of the current block.
[0423] d) Alternatively, a plurality of corresponding luma samples at some predefined positions in the reference area of the current luma block may be picked to calculate the chroma residual scaling factors.
[0424] e) In one example, a function may be used to derive a plurality of corresponding luma samples to derive a chroma residual scaling factor.
[0425] i. For example, the median or average of multiple corresponding luma samples may be calculated to derive the chroma residual scaling factor.
[0426] f) In one example, the intensities of the reference samples may be converted to the shaped domain before the reference samples are used to derive the chroma residual scaling factors.
[0427] i. Alternatively, the intensities of the reference samples may be converted to the original domain before they are used to derive the chroma residual scaling factors.
[0428] 8. It is proposed that one or more prediction / reconstruction samples located at the identified (multiple) positions of the current luminance block in the current frame can be used to derive the chrominance residual scaling factor for the current chrominance block in the LMCS mode.
[0429] a) In one example, if the current block is inter-coded, the luma prediction (or reconstruction) sample located at the center of the current luma block may be selected to derive the chroma residual scaling factor.
[0430] b) In one example, the average of the first MxN luma prediction (or reconstruction) samples may be picked to derive the chroma residual scaling factor, where MxN may be smaller than the collocated luma block size widthxheight.
[0431] 9. All or part of the process proposed for calculating the CCLM model can be used for deriving the chroma residual scaling factor of the current chroma block in the LMCS mode.
[0432] a) In one example, the chroma residual scaling factors may be derived using reference samples located at the positions of the identified neighboring luma samples of the collocated luma block during the CCLM model parameter derivation process.
[0433] i. In one example, those reference points can be directly adopted.
[0434] ii. Alternatively, downsampling may be applied to those reference samples, and the downsampled reference samples may be applied.
[0435] b) In one example, K of the S reference samples selected for CCLM model calculation may be used for chroma residual scaling factor derivation in LMCS mode. For example, K is equal to 1 and S is equal to 4.
[0436] c) In one example, the average / minimum / maximum values of the reference samples of the collocated luma blocks in CCLM mode may be used for chroma residual scaling factor derivation in LMCS mode.
[0437] 10. How to select the samples used for derivation of the chroma residual scaling factor may depend on the coding information of the current block.
[0438] a) Codec information includes QP, codec mode, POC, intra prediction mode, motion information, etc.
[0439] b) In one example, the way of selecting samples may be different for an IBC codec block or a non-IBC codec block.
[0440] c) In one example, the way of selecting samples may be different based on reference picture information (eg, the POC distance between the reference picture and the current picture).
[0441] 11. It is proposed that the model calculation of the chroma residual scaling factor and / or CCLM may depend on the neighboring samples of the corresponding luminance block covering the upper left sample of the collocated luminance block. In the present invention, "codec block" may refer to a video codec area specified in the HEVC specification or VVC working draft, such as CU / TU / PU.
[0442] a) The "corresponding luma codec block" may be defined as the codec block that covers the upper left position of the collocated luma codec block.
[0443] i. Figure 5 An example is shown, where, for an intra-coded chroma block in a dual-tree case, the CTU partitioning of the chroma component may be different from the CTU partitioning of the luma component. First, the "corresponding luma codec block" covering the upper left sample of the collocated luma block of the current chroma block is retrieved. Afterwards, by using the block size information of the "corresponding luma codec block", the upper left sample of the "corresponding luma codec block" can be derived, and the upper left luma sample of the "corresponding luma codec block" covering the upper left sample of the collocated luma block is located at (x=32, y=16).
[0444] b) In one example, the block size / partition / position / coordinates may be needed to deduce the position of the "corresponding luma codec block" covering the top left sample of the collocated luma codec block.
[0445] i. In one example, for each block of a specified color component (eg, luma component), block size and / or block partition and / or block coordinates may be stored.
[0446] ii. In one example, the "corresponding luma codec block" and the current block may always be in the same CTU or CTU row, so the block size / segmentation / position / coordinates may not be stored in the line buffer.
[0447] c) In one example, the reconstructed samples that are not in the "corresponding luma codec block" may be used to derive the chroma residual scaling factor and / or the model calculation of the CCLM.
[0448] i. In one example, the reconstructed samples adjacent to the “corresponding luma codec block” may be used to derive the chroma residual scaling factor and / or the model calculation of the CCLM.
[0449] 1) In one example, N samples located at the left adjacent column and / or the upper adjacent row of the "corresponding luminance codec block" can be used to derive the model calculation of the chrominance residual scaling factor and / or CCLM, where N = 1...2W+2H, W and H are the width and height of the "corresponding luminance codec block".
[0450] a) Assuming that the upper left sample of the "corresponding luma codec block" is (xCb, yCb), then in one example, the upper neighboring luma sample can be located at (xCb+W / 2, yCb-1) or (xCb-1, yCb-1). In an alternative example, the left neighboring luma sample can be located at (xCb+W-1, yCb-1).
[0451] b) In one example, the position(s) of the neighboring sample(s) may be fixed and / or have a predefined checking order.
[0452] 2) In one example, one of the N neighboring samples may be selected to derive the chroma residual scaling factor and / or the model calculation of the CCLM. Assuming N = 3, and the check order of the three neighboring samples is (xCb-1, yCb-H-1), (xCb+W / 2, yCb-1), (xCb-1, yCb-1), then the first available neighboring sample in the check list may be selected to derive the chroma residual scaling factor.
[0453] 3) In one example, the median or average of N samples located at the left adjacent column and / or the upper adjacent row of the "corresponding luminance codec block" can be used to derive the model calculation of the chrominance residual scaling factor and / or CCLM, where N = 1…2W+2H, W and H are the width and height of the "corresponding luminance codec block".
[0454] d) In one example, whether to perform chroma residual scaling may depend on the "available" neighboring samples of the corresponding luma block.
[0455] i. In one example, the “availability” of neighboring samples may depend on the coding mode of the current block / subblock or / and the coding modes of neighboring samples.
[0456] 1) In one example, for a block coded in inter-mode, neighboring samples coded in intra-mode or / and IBC mode or / and CIIP mode or / and LIC mode may be considered “unavailable”.
[0457] 2) In one example, for a block coded in inter-frame mode, neighboring samples using a diffusion filter or / and a bilateral filter or / and a Hadamard transform filter may be considered "unavailable".
[0458] ii. In one example, the "availability" of neighboring samples may depend on the width and / or height of the current picture / slice / slice group / VPDU / slice.
[0459] 1) In one example, if a neighboring block is outside the current picture, it is treated as "unavailable".
[0460] iii. In one example, when there are no "available" neighboring samples, chroma residual scaling may not be allowed.
[0461] iv. In one example, when the number of "available" neighboring samples is less than K (K>=1), chroma residual scaling may not be allowed.
[0462] v. Alternatively, unavailable neighboring samples may be filled by default fixed values, or padding, or replacement, so that chroma residual scaling can always be applied.
[0463] 1) In one example, if the neighboring samples are not available, they can be padded by 1<<(bitDepth-1), where bitDepth specifies the bit depth of the samples of the luma / chroma components.
[0464] 2) Alternatively, if the neighboring sample is not available, it can be filled by filling it with the surrounding samples located on the left / right / top / bottom.
[0465] 3) Alternatively, if a neighboring sample point is not available, it may be replaced by the first available adjacent sample point in a predefined checking order.
[0466] 4) Alternatively, if neighboring samples are not available, they can be filled with predefined filtered / mapped values (e.g., filtered / mapped values of 1<<(bitDepth-1), where bitDepth specifies the bit depth of the samples of the luma / chroma components).
[0467] a) In one example, the filtering / mapping process may be a forward mapped LUT index of the LMCS.
[0468] e) In one example, whether and how to perform chroma residual scaling may depend on the codec mode of the current block and / or the codec mode of neighboring blocks.
[0469] i. "Current block" may refer to the current chroma block, or it may refer to a collocated luma block or a corresponding luma block covering at least one sample of the collocated chroma block. "Neighboring blocks" (adjacent or non-adjacent) may refer to chroma blocks adjacent to the current chroma block, or they may refer to luma blocks adjacent to the current luma block.
[0470] ii. In one example, a coding mode that covers a luma neighboring block at a given position (eg, (-1, -1) relative to the upper left coordinates of the current block) may be utilized.
[0471] iii. In one example, a coding mode covering multiple neighboring blocks at multiple positions can be utilized, such as (x, -1) relative to the upper left coordinate of the current block (e.g., where x is 0 to the block width minus 1), and / or (-1, y) relative to the upper left coordinate of the current block (e.g., where y is -1 to the block height minus 1).
[0472] iv. In one example, if reconstruction of a neighboring block requires access to samples within the current slice / slice group, e.g., it is X-coded, then chroma residual scaling is disabled.
[0473] 1) For example, mode X may be an intra mode;
[0474] 2) For example, mode X may be a CIIP mode;
[0475] 3) For example, mode X may be an IBC mode;
[0476] 4) In one example, if the current block is inter-coded but not CIIP-coded and the neighboring blocks adjacent to the corresponding luma block are coded in mode X, then chroma residual scaling is disabled.
[0477] v. In one example, if the reconstruction of a neighboring block requires access to samples within the current slice / slice group, for example, it is X-coded, then a default value may be used to derive the chroma residual scaling factor.
[0478] 1) For example, mode X may be an intra mode;
[0479] 2) For example, mode X may be a CIIP mode;
[0480] 3) For example, mode X may be an IBC mode;
[0481] 4) In one example, if the current block is inter-coded instead of CIIP-coded, and the neighboring block of the corresponding luminance block is coded using mode X, a default value may be used to derive the chrominance residual scaling factor.
[0482] 5) In one example, the default value may depend on the bit depth of luma samples / chroma samples.
[0483] 6) In one example, the default value may be set to a filtered / mapped value of 1<<(bitDepth-1), where bitDepth specifies the bit depth of the samples of the luma / chroma components. In one example, the filtering / mapping process may be a forward mapped LUT index of the LMCS.
[0484] f) In one example, the filtered / mapped reconstructed samples adjacent to the "corresponding luma codec block" may be used to derive the model calculation of the chroma residual scaling factor and / or CCLM.
[0485] i. In one example, the filtering / mapping process may include reference smoothing filtering for intra blocks, post filtering such as a bilateral filter, a filter based on a Hadamard transform, forward mapping in a shaper domain, etc.
[0486] 12. It is proposed that a fixed value can be used to derive the chroma residual scaling factor for various numbers of chroma blocks (such as CU or TU) within the current slice / slice group.
[0487] a) In one example, the chroma residual scaling factor for N chroma blocks may be derived by a fixed value, where N is 1 to the total number of chroma blocks in the current slice / slice group.
[0488] b) In one example, a fixed value may be used to find the index of the piecewise linear model to which the value belongs, and then the chroma residual scaling factor is calculated from the derived piecewise index. In one example, the fixed value may depend on the internal bit depth of the luma samples.
[0489] c) In one example, a fixed value may be used directly to represent the chroma residual scaling factor.
[0490] d) In one example, the fixed value and / or the fixed chroma residual scaling factor may depend on the picture / slice / slice group type (eg, I or P or B slice) and / or the coding mode of the block (eg, intra mode or inter mode).
[0491] e) In one example, the fixed value may be different for different pictures / slices / slice groups / slices.
[0492] f) In one example, a fixed chroma residual scaling factor may be directly used to scale the chroma residual in LMCS.
[0493] i. In one example, the fixed chroma residual scaling factor may be signaled in a video unit such as DPS / SPS / PPS (picture parameter set) / VPS / APS (adaptation parameter set) / slice header / slice group header.
[0494] ii. In one example, the fixed chroma residual scaling factor for a picture / slice / slice group / slice may depend on a mapping function (eg, a piecewise linear function) used for luma sample shaping within the picture / slice / slice group / slice.
[0495] 1) In one example, the fixed chroma residual scaling factor may depend on the array InvScaleCoeff[] and / or the array ScaleCoeff[] as defined in JVET-M1001-v7.
[0496] a) For example, the array InvScaleCoeff[] and / or the array ScaleCoeff[] on which the fixed chroma residual scaling factor of a picture / slice / slice group / slice depends may be used to reshape the luma samples within the picture / slice / slice group / slice.
[0497] 2) In one example, a fixed chroma residual scaling factor may be derived by the minimum / maximum / median / average value among all scaling coefficients of the piecewise linear function used to shape the luma samples.
[0498] a) For example, a fixed chroma residual scaling factor can be derived by the minimum / maximum / median / average of InvScaleCoeff[i], where i is from the minimum index (e.g., lmcs_min_bin_idx in JVET-M1001-v7) to the maximum index (e.g., LmcsMaxBinIdx in JVET-M1001-v7).
[0499] i. For example, the fixed chroma residual scaling factor can be equal to the minimum / maximum / median / average of InvScaleCoeff[i], where i is from the minimum index (e.g., lmcs_min_bin_idx in JVET-M1001-v7) to the maximum index (e.g., LmcsMaxBinIdx in JVET-M1001-v7).
[0500] ii. Alternatively, the fixed chroma residual scaling factor can be derived by the minimum / maximum / median / average of InvScaleCoeff[i], where i is from the minimum index (e.g., 0) to the maximum index (e.g., 15), and lmcsCW[i] is not equal to 0 as defined in JVET-M1001-v7.
[0501] g) In one example, a fixed value may be used to represent the piecewise function index used to derive the chroma scaling factor.
[0502] i. In one example, a fixed value may be signaled in a video unit such as DPS / SPS / PPS / VPS / APS / slice header / slice group header.
[0503] ii. In one example, the fixed value can represent the luma sample intensity, which can be used to identify the piecewise function index, and the identified piecewise function is further used to find the chroma scaling factor. In one example, the fixed value is equal to 0, or (1<<lumaBitDepth)–1, or 1<<(lumaBitDepth-1), where lumaBitDepth represents the bit depth of the luma sample.
[0504] 1) In one example, if the fixed value is within the input range of the piecewise function, the piecewise function is identified.
[0505] 2) In one example, if the fixed value is within the output range of the piecewise function, the piecewise function is identified.
[0506] iii. In one example, the fixed value can represent a fixed piecewise function index, which can be used to find the chroma scaling factor.
[0507] 1) In one example, the fixed value can be equal to the minimum binary index (e.g., lmcs_min_bin_idx) used in the LMCS construction process.
[0508] 2) In one example, the fixed value can be equal to the maximum binary index (e.g., LmcsMaxBinIdx) used in the LMCS construction process.
[0509] 3) In one example, the fixed value can be equal to the average of the maximum binary index and the minimum binary index used in the LMCS construction process.
[0510] Restrictions on whether to apply chroma residual scaling and / or CCLM
[0511] 13. It is proposed that whether to apply chroma residual scaling or CCLM can depend on the partitioning of the corresponding and / or collocated luma
[0512] block.
[0513] a) In one example, whether to enable or disable the tool with cross-component information can depend on the number of CUs / PUs / TUs within the collocated luma (e.g., Y or G component) block.
[0514] i. In one example, if the number of CUs / PUs / TUs within the collocated luma (e.g., Y or G component) block exceeds the quantity threshold, then such a tool can be disabled.
[0515] ii. Alternatively, whether to enable or disable the tool with cross-component information can depend on the split tree depth.
[0516] 1) In one example, if the maximum (or minimum or average or other variation) quadtree depth of the CUs within the collocated luma block exceeds a threshold, such tools may be disabled.
[0517] 2) In one example, if the maximum (or minimum or average or other variation) BT and / or TT depth of a CU within a collocated luma block exceeds a threshold, such tools may be disabled.
[0518] iii. Alternatively, furthermore, whether to enable or disable tools with cross-component information may depend on the block dimension of the chroma blocks.
[0519] iv. Alternatively, furthermore, whether to enable or disable tools with cross-component information may depend on whether the collocated luminance spans multiple VPDUs / predefined region sizes.
[0520] v. The thresholds in the above discussion may be fixed values, or may be signaled, or may depend on a standard profile / level / layer.
[0521] b) In one example, if the collocated luma block of the current chroma block is divided by multiple partitions (e.g., Figure 7 ), then chroma residual scaling and / or CCLM can be disabled.
[0522] i. Alternatively, if the collocated luma block of the current chroma block is not split (eg, within one CU / TU / PU), chroma residual scaling and / or CCLM may be applied.
[0523] c) In one example, if the collocated luma block of the current chroma block contains more than M CUs / PUs / TUs, chroma residual scaling and / or CCLM may be disabled.
[0524] i. In one example, M may be an integer greater than 1.
[0525] ii. In one example, M may depend on whether it is a CCLM process or a chroma residual scaling process.
[0526] iii. M may be a fixed value, or may be signalled, or may depend on a standard profile / level / layer.
[0527] d) The CU mentioned above in the collocated luminance block may be interpreted as all CUs in the collocated luminance block. Alternatively, the CU mentioned above in the collocated luminance block may be interpreted as part of the CU in the collocated luminance block, for example, a CU along the boundary of the collocated luminance block.
[0528] e) The above-mentioned CU within the collocated luminance block may be interpreted as a sub-CU or a sub-block.
[0529] i. For example, sub-CU or sub-block can be used in ATMVP;
[0530] ii. For example, a sub-CU or sub-block may be used in affine prediction;
[0531] iii. For example, a sub-CU or sub-block may be used in intra sub-partitioning (ISP) mode.
[0532] f) In one example, if the CU / PU / TU covering the top left luma samples of the collocated luma block is larger than the predefined luma block size, chroma residual scaling and / or CCLM may be disabled.
[0533] i. Figure 8 An example is described where a collocated luma block is 32x32 but is within a corresponding luma block of size equal to 64x64, thus if the predefined luma block size is 32x64, chroma residual scaling and / or CCLM is disabled in this case.
[0534] ii. Alternatively, if the collocated luma block of the current chroma block is not split, and the corresponding luma block covering the upper left luma sample of the collocated luma block is completely contained within the predefined bounding box, then chroma residual scaling and / or CCLM may be applied to the current chroma block. The bounding box may be defined as a rectangle with width W and height H, denoted by WxH, as Fig. 9 As shown, the corresponding luminance block has a width of 32 and a height of 64, and the bounding box has a width of 40 and a height of 70.
[0535] 1) In one example, the size WxH of the bounding box may be defined according to CTU width and / or height, or according to CU width and / or height, or according to arbitrary values.
[0536] g) In one example, if the collocated luminance block of the current chrominance block is divided by multiple partitions, only the prediction samples (or reconstructed samples) within the predefined partitions of the collocated luminance block are used to derive the chrominance residual scaling factor in the LMCS mode.
[0537] i. In one example, the chroma residual scaling factor in LMCS mode is derived using the average value of all prediction samples (or reconstructed samples) in the first partition of the collocated luma block.
[0538] ii. Alternatively, the chroma residual scaling factor in LMCS mode is derived using the top left prediction sample (or reconstructed sample) in the first partition of the collocated luma block.
[0539] iii. Alternatively, the chroma residual scaling factor in LMCS mode is derived using the center prediction sample (or reconstructed sample) within the first partition of the collocated luminance block.
[0540] h) It is proposed that whether and how cross-component tools (such as CCLM and LMCS) are applied may depend on the codec mode(s) of one or more luma CUs covering at least one sample of a collocated luma block.
[0541] i. For example, if one or more luma CUs covering at least one sample of a collocated luma block are coded in affine mode, cross-component tools are disabled.
[0542] ii. For example, if one or more luma CUs covering at least one sample of a collocated luma block are coded with bi-prediction, cross-component tools are disabled.
[0543] iii. For example, if one or more luma CUs covering at least one sample of a collocated luma block are coded with BDOF, then cross-component tools are disabled.
[0544] iv. For example, if one or more luma CUs covering at least one sample of a collocated luma block are coded with DMVR, then cross-component tools are disabled.
[0545] v. For example, if one or more luma CUs covering at least one sample of a collocated luma block are coded with matrix affine prediction mode as proposed in JVET-N0217, then cross-component tools are disabled.
[0546] vi. For example, if one or more luma CUs covering at least one sample of a collocated luma block are coded in inter mode, cross-component tools are disabled.
[0547] vii. For example, if one or more luma CUs covering at least one sample of a collocated luma block are coded in ISP mode, cross-component tools are disabled.
[0548] viii. In one example, “one or more luma CUs covering at least one sample of a collocated luma block” may refer to the corresponding luma blocks.
[0549] i) When CCLM / LMCS is disabled, the signaling of the indication of the use of CCLM / LMCS may be skipped.
[0550] j) In the present disclosure, CCLM may refer to any variant modes of CCLM, including LM mode, LM-T mode and LM-L mode.
[0551] 14. It is proposed whether and how cross-component tools (such as CCLM and LMCS) can be applied to parts of chroma blocks.
[0552] a) In one example, whether and how cross-component tools such as CCLM and LMCS are applied on the chroma sub-block level.
[0553] i. In one example, a chroma subblock is defined as a 2x2 or 4x4 block within a chroma CU. ii. In one example, for a chroma subblock, CCLM can be applied when the corresponding luma codec block of the current chroma CU covers all samples of the corresponding block of the subblock.
[0554] iii. In one example, for a chroma sub-block, when the corresponding luma codec block of the current chroma CU does not cover all samples of the corresponding block, CCLM is not applied.
[0555] iv. In one example, when each chroma sub-block is regarded as a chroma CU, parameters of CCLM or LMCS are derived for each chroma sub-block.
[0556] v. In one example, when applying CCLM or LMCS to a chroma sub-block, samples of a collocated block may be used.
[0557] 15. It is proposed that whether and how to apply cross-component tools such as CCLM may depend on the block dimension and / or the partitioning information and / or the partitioning structure type (eg, dual tree or single tree).
[0558] a) In one example, CCLM may be disabled for chroma dual tree partitioning.
[0559] b) In one example, CCLM may be conditionally disabled based on block dimensions.
[0560] i. In one example, assuming the current block dimension is WB×HB, the following CCLM can be disabled according to the relationship between WB, HB and two integers T1 and T2.
[0561] 1) In one example, if WB>=T1 and HB>=T2, then CCLM may be disabled. For example, T1=T2=8.
[0562] 2) In one example, if WB*HB>=T1, then CCLM may be disabled. For example, T1=64.
[0563] 3) In one example, if Min(WB, HB)>=T1, then CCLM may be disabled. For example, T1=8.
[0564] 4) In one example, if Max(WB, HB)>=T1, then CCLM can be disabled. For example, T1=8.
[0565] 5) In one example, if WB<=T1 and HB<=T2, then CCLM can be disabled. For example, T1=T2=16.
[0566] 6) In one example, if WB*HB<=T1, then CCLM may be disabled. For example, T1=4096.
[0567] 7) In one example, if Min(WB, HB) <= T1, then CCLM may be disabled. For example, T1=64.
[0568] 8) In one example, if Max(WB, HB) <= T1, then CCLM may be disabled. For example, T1=64.
[0569] c) In one example, the CCLM may be constrained by block dimension and / or segmentation information.
[0570] i. In one example, for a chroma block with dimensions WB×HB, CCLM is disabled if one or more of the following conditions are met. For example, WB=HB=32. In the following bullets, the collocated luma block dimensions may be (sh×WB)×(sv×HB), where sh and sv are scaling factors. For example, when the color format is 4:2:0, sh=sv=2.
[0571] 1) The current chroma block is at a leaf node with a horizontal partition, and the collocated luminance block is at a leaf node with a vertical partition.
[0572] a) In one example, the current chroma block is split using the SPLIT_TT_HOR mode, and the collocated luma block is split using the SPLIT_TT_VER mode.
[0573] b) In one example, the current chroma block is split using the SPLIT_TT_HOR mode, and the collocated luma block is split using the SPLIT_BT_VER mode.
[0574] c) In one example, the current chroma block is split using the SPLIT_BT_HOR mode, and the collocated luma block is split using the SPLIT_TT_VER mode.
[0575] d) In one example, the current chroma block is split using the SPLIT_BT_HOR mode, and the collocated luma block is split using the SPLIT_BT_VER mode.
[0576] 2) The current chroma block is at a leaf node with a vertical partition, and the collocated luminance block is at a leaf node with a horizontal partition.
[0577] a) In one example, the current chroma block is split using the SPLIT_TT_VER mode, and the collocated luma block is split using the SPLIT_TT_HOR mode.
[0578] b) In one example, the current chroma block is split using the SPLIT_TT_VER mode, and the collocated luma block is split using the SPLIT_BT_HOR mode.
[0579] c) In one example, the current chroma block is split using the SPLIT_BT_VER mode, and the collocated luma block is split using the SPLIT_TT_HOR mode.
[0580] d) In one example, the current chroma block is split using the SPLIT_BT_VER mode, and the collocated luma block is split using the SPLIT_BT_HOR mode.
[0581] d) In one example, if CCLM is disabled for a block, then syntax elements related to CCLM may not be signaled in the block.
[0582] i. Alternatively, if CCLM is disabled for a block, then syntax elements related to CCLM may be signaled, but CCLM mode shall not be used within that block in the conforming bitstream.
[0583] ii. Alternatively, if CCLM is disabled for a block, then syntax elements related to CCLM may be signaled. If CCLM mode is signaled, then a default mode such as Planar or DC may be applied.
[0584] Applicability of Chroma Residual Scaling in LMCS Mode
[0585] 16. It is proposed that whether luma-dependent chroma residual scaling can be applied can be signaled at other syntax levels besides the slice group header as specified in JVET-M1001.
[0586] a) For example, chroma_residual_scale_flag may be signaled at the sequence level (e.g., in the SPS), at the picture level (e.g., in the PPS or picture header), at the slice level (e.g., in the slice header), at the slice level, at the CTU row level, at the CTU level, at the CU level. chroma_residual_scale_flag equal to 1 specifies that chroma residual scaling is enabled for CUs below the signaling syntax level. chroma_residual_scale_flag equal to 0 specifies that chroma residual scaling is not enabled for CUs below the signaling syntax level. When chroma_residual_scale_flag is not present, it is inferred to be equal to 0.
[0587] b) In one example, if chroma residual scaling is limited at the split node level, then chroma_residual_scale_flag may not be signaled for the CU covered by the split node and may be inferred to be 0. In one example, the split node may be a CTU (consider a CTU as the root node of a quadtree partition).
[0588] c) In one example, if chroma residual scaling is restricted for chroma block sizes equal to or less than 32x32, then chroma_residual_scale_flag may not be signaled and inferred to be 0 for chroma block sizes equal to or less than 32x32.
[0589] Applicability of CCLM model
[0590] 17. It is proposed that whether CCLM mode can be applied can be signaled at other syntax levels besides the sps level as specified in JVET-M1001.
[0591] a) For example, it can be signaled at picture level (e.g., in PPS or picture header), at slice level (e.g., in slice header), at slice group level (e.g., in slice group header), at slice level, at CTU row level, at CTU level, at CU level.
[0592] b) In one example, if CCLM cannot be applied, then cclm_flag may not be signaled and may be inferred to be zero.
[0593] i. In one example, if chroma residual scaling is restricted for chroma block sizes equal to or less than 8x8, then ccm_flag may not be signaled and inferred to be 0 for chroma block sizes equal to or less than 8x8.
[0594] Unification of chroma residual scaling factor derivation for intra and inter modes
[0595] 18. The chroma residual scaling factor can be derived after encoding / decoding the luma block and can be used
[0596] Store and use it in subsequent encoding and decoding blocks.
[0597] a) In one example, certain prediction samples or / and intermediate prediction samples or / and reconstructed samples or / and reconstructed samples before loop filtering (e.g., before being processed by a deblocking filter or / and a SAO filter or / and a bilateral filter or / and a Hadamard transform filter or / and an ALF filter) in a luma block may be used for derivation of a chroma residual scaling factor.
[0598] i. For example, some samples in the bottom row and / or right column of the luma block may be used for deriving the chroma residual scaling factor.
[0599] b) In the single tree case, when encoding a block coded in intra mode or / and IBC mode or / and inter mode, the derived chroma residual scaling factors of neighboring blocks can be used to derive the scaling factors of the current block.
[0600] i. In one example, certain neighboring blocks may be checked in order, and the first available chroma residual scaling factor may be used for the current block.
[0601] ii. In one example, certain neighboring blocks may be checked in order and the scaling factor may be derived based on the first K available neighboring chroma residual scaling factors.
[0602] iii. In one example, for a block encoded and decoded in inter-frame mode or / and CIIP mode, if a neighboring block is encoded and decoded in intra-frame mode or / and IBC mode or / and CIIP mode, the chrominance residual scaling factor of the neighboring block can be considered "unavailable".
[0603] iv. In one example, neighboring blocks may be checked in the order of left (or upper left) -> above (or upper right).
[0604] 1) Alternatively, the neighboring blocks may be checked in the order of above (or upper right) -> left (or upper left).
[0605] c) In the case of a single tree, when encoding a chroma block, the corresponding luma block can be identified first. Afterwards, the derived chroma residual scaling factors of its (eg, the corresponding luma block) neighboring blocks can be used to derive the scaling factor of the current block.
[0606] i. In one example, certain neighboring blocks may be checked in order, and the first available chroma residual scaling factor may be used for the current block.
[0607] ii. In one example, certain neighboring blocks may be checked in order and the scaling factor may be derived based on the first K available neighboring chroma residual scaling factors.
[0608] d) Neighboring blocks may be checked in a predefined order.
[0609] i. In one example, neighboring blocks may be checked in the order of left (or upper left) -> above (or upper right).
[0610] ii. In one example, the neighboring blocks may be checked in the order of above (or upper right) -> left (or upper left).
[0611] iii. In one example, neighboring blocks may be checked in the order of lower left->left->upper right->upper->upper left.
[0612] iv. In one example, neighboring blocks may be checked in the order of left->top->top right->bottom left->top left.
[0613] e) In one example, whether to apply chroma residual scaling may depend on the "availability" of neighboring blocks.
[0614] i. In one example, chroma residual scaling may not be allowed when there are no "available" neighboring blocks.
[0615] ii. In one example, when the number of "available" neighboring blocks is less than K (K>=1), chroma residual scaling may not be allowed.
[0616] iii. Alternatively, when there are no "available" neighboring blocks, the chroma residual scaling factors can be derived by default values.
[0617] 1) In one example, the chroma residual scaling factor may be derived using a default value of 1<<(BitDepth-1).
[0618] f) In one example, the chroma residual scaling factor of the current chroma block may be stored and used for subsequent encoding and decoding blocks.
[0619] g) In one example, the storage of the chroma residual scaling factors may be removed from the line buffer.
[0620] i. In one example, when the current block and the neighboring (adjacent or non-adjacent) block to be accessed are in different regions, their chroma residual scaling factors may be considered “unavailable” and may not be used to derive the chroma residual scaling factor of the current block.
[0621] 1) A region can be a slice, a slice, a slice group, a CTU row, or a CTU.
[0622] 2) Alternatively, in such a case the chroma residual scaling factor may be considered to be a default value.
[0623] 3) Alternatively, chroma residual scaling cannot be applied in such a case.
[0624] h) In one example, the chroma residual scaling factor of the current chroma block may be updated on the fly and saved into a history table for scaling factor derivation of subsequent blocks.
[0625] i. The history table can be updated in FIFO (first in first out) mode.
[0626] ii. After decoding / decoding the chroma block, the chroma residual scaling factor can be derived (e.g., based on the luma value) and can be stored in the FIFO history table.
[0627] iii. In one example, the FIFO history table may contain at most 1 entry. In this case, the derived chroma residual scaling factor of the last decoded block is used for the current block.
[0628] iv. In one example, the history table is refreshed before encoding / decoding a picture and / or a slice and / or a slice group and / or a slice and / or a CTU row and / or a CTU.
[0629] 1) In one example, when refreshing the history table, the default chroma residual scaling factor may be placed in the history table.
[0630] 2) In one example, when refreshing the FIFO history table, the history table is set to empty.
[0631] New syntax elements for chroma residual scaling
[0632] 19. It is proposed that one or more new syntax elements may be signaled to derive the scaling factor used in the chroma residual scaling process.
[0633] a) In one example, these syntax elements may be added to the LMCS APS data (eg, lmcs_data() in the VVC specification) for chroma residual scaling of the LMCS codec.
[0634] b) In one example, these syntax elements may be added to SPS / slice header / slice group header / PPS / picture header / brick / CTU row / CTU / CU etc.
[0635] i. If these syntax elements are signaled in a video unit, they can control the scaling factor in all blocks associated with the video unit. For example, if they are signaled in a slice header, they can control the scaling factor among all blocks in the slice.
[0636] 1) Alternatively, if these syntax elements are signaled in a video unit, they may control the scaling factors in some blocks associated with that video unit.
[0637] c) In one example, a new syntax element (eg, lmcs_crs_fixed_bin_idx) may be encoded and decoded to derive the chroma scaling factor for chroma residual scaling.
[0638] i. In one example, lmcs_crs_fixed_bin_idx can be used to present a representative luminance value for deriving a scaling factor.
[0639] ii. Alternatively, lmcs_crs_fixed_bin_idx may be used to present an index for deriving the scaling factor, for example, the index is an index into the lookup table ChromaScaleCoeff.
[0640] iii. Alternatively, in addition, the value of lmcs_crs_fixed_bin_idx must be in the range [k0, k1]. In one example, the range of lmcs_crs_fixed_bin_idx can be set equal to the range of the minimum (e.g., lmcs_min_bin_idx) and / or maximum binary indexes in the luma map construction process with chroma scaling, e.g., [0, 15].
[0641] 1) In one example, lmcs_crs_fixed_bin_idx must be in the valid range in the conforming bitstream.
[0642] 2) In one example, lmcs_crs_fixed_bin_idx is encoded and decoded in such a way that lmcs_crs_fixed_bin_idx must be within a limited range.
[0643] iv. Alternatively, in addition, fixed length, truncated unary code, unary code, exponential Golomb (exp-golomb) codec can be used to encode and decode lmcs_crs_fixed_bin_idx.
[0644] v. Alternatively, in addition, lmcs_crs_fixed_bin_idx prediction can be coded, for example, using the average of the minimum and maximum binary indices used in the luma map construction process with chroma scaling (e.g., (lmcs_min_bin_idx+lmcs_max_bin_idx+offset)>>1), where offset is set to 0 or 1 as the prediction. Alternatively, lmcs_min_bin_idx or lmcs_max_bin_idx can be used as the prediction.
[0645] vi. Alternatively, in addition, lmcs_crs_fixed_bin_idx can be conditionally encoded and decoded.
[0646] 1) In one example, when the current color format is not 4:0:0.
[0647] 2) In one example, when individual plane codecs are disabled.
[0648] 3) In one example, when ChromaArrayType is not equal to 0.
[0649] 4) In one example, when chroma residual scaling is enabled.
[0650] d) In one example, for all chroma residual scaling blocks sharing the same LMCS model, a fixed chroma scaling factor derived via the new syntax element(s) may be used.
[0651] i. In one example, the fixed chroma scaling factor indexed by lmcs_crs_fixed_bin_idx is calculated once for an IDR (instantaneous decoder refresh) / CRA (clean random access) / IRAP (intra random access picture) picture and used for all blocks within the IDR / CRA / IRAP picture.
[0652] ii. In one example, one IDR / CRA / IRAP picture calculates the fixed chroma scaling factor indexed by lmcs_crs_fixed_bin_idx once and uses it for all blocks in the inter-coded pictures before the next IDR / CRA / IRAP picture.
[0653] 5. Examples
[0654] 5.1 Example #1
[0655] The example embodiments discussed below are for Section 4 Project 11 of the illustrative methods in .
[0656] pass Underline Newly added parts are shown by capital and bold, and parts deleted from the VVC working draft are shown by capital bold. The modifications are based on the latest adopted solutions in the latest VVC working draft (JVET-M1007-v7) and JVET-N220-v3.
[0657] 8.7.5.4 Image reconstruction using the luminance-dependent chrominance residual scaling process for chrominance samples
[0658] The input to this process is:
[0659] – The position of the upper left sample point of the current transform block relative to the upper left sample point of the current picture (xCurr, yCurr),
[0660] – variable nCurrSw that specifies the transform block width,
[0661] – variable nCurrSh that specifies the transform block height,
[0662] – specifies the (nCurrSw) x (nCurrSh) array predSamples of the chroma prediction samples for the current block,
[0663] – Specifies the (nCurrSw) x (nCurrSh) array resSamples of the chroma residual samples of the current block.
[0664] The output of this process is the reconstructed chrominance picture sample array recSamples.
[0665] Set the current brightness position (xTbY, yTbY) to (xCurr<<1, yCurr<<1)
[0666] The corresponding brightness position (xTbCorrY, yTbCorrY) is derived as follows:
[0667] – If the slice group type is equal to 2 (I slice group) and qtbtt_dual_tree_intra_flag is equal to 1, then The corresponding luminance position (xTbCorrY, yTbCorrY) is set to the upper left sample point that covers the current luminance position (xTbY, yTbY). The upper left sample point position of the CU.
[0668] – Otherwise, set the corresponding brightness position (xTbCorrY, yTbCorrY) to the current brightness position (xTbY, yTbY)
[0669] The variable availL is derived as follows:
[0670] – At the corresponding brightness position (xTbCorrY, yTbCorrY) and the adjacent brightness position (xTbCorrY-1, yTbCorrY) as input as specified in clause 6.4.X [Ed.(BB): Neighboring Block Availability Check Procedure tbd] The availability derivation process for the left neighboring samples of the block is performed and the output is assigned to availL.
[0671] When availL is equal to TRUE, the adjacent upper left luminance sample pY[x][y] (where x=-1, y=0) is set to is equal to the reconstructed luminance sample before the deblocking filtering process at the position (xTbCorrY+x, yTbCorrY+y). It is derived as follows The mapping value pYMap[x][y] of the adjacent upper left luminance sample point (where x=-1, y=-1):
[0672] idxY=pY[x][y]>>Log2(OrgCW)
[0673] pYMap[x][y]=Clip1Y(LmcsPivot[idxY]+(ScaleCoeff[idxY]*
[0674] (pY[x][y]-InputPivot[idxY])+(1<<10))>>11)
[0675] For i = 0..nCurrSw-1, j = 0..nCurrSh-1, the reconstructed chrominance picture samples recSamples are derived as follows:
[0676] – If TILE_GROUP_CHROMA_RESIDUAL_SCALE_FLAG is equal to 0 or NCURRSW*NCURRSH is less than or equal to 4, then the following applies:
[0677] RECSAMPLES[XCURR+I][YCURR+J]=CLIP1C
[0678] (PREDSAMPLES[I][J]+RESSAMPLES[I][J]) (8-1063)
[0679] – If any of the following conditions is true, then recSamples[xCurr+i][yCurr+j] is set equal to Clip1c(predSamples[i][j]+resSamples[i][j])
[0680] – tile_group_chroma_residual_scale_flag is equal to 0
[0681] – nCurrSw*nCurrSh is less than or equal to 4
[0682] – availL equals false
[0683] – CuPredMode[xCurr][yCurr] is equal to MODE_INTER and ciip_flag[xCurr][yCurr] is equal to is equal to 0, and CuPredMode[xTbCorrY-1][yTbCorrY] is equal to MODE_INTRA
[0684] – CuPredMode[xCurr][yCurr] is equal to MODE_INTER and ciip_flag[xCurr][yCurr] is equal to is 0, and CuPredMode[xTbCorrY-1][yTbCorrY] is equal to MODE_IBC
[0685] – CuPredMode[xCurr][yCurr] is equal to MODE_INTER and ciip_flag[xCurr][yCurr] is equal to is 0, and CuPredMode[xTbCorrY
[0686] -1][yTbCorrY] is equal to MODE_INTER and ciip_flag[xCurr][yCurr] is equal to 1
[0687] – Otherwise (tile_group_chroma_residual_scale_flag is equal to 1 and nCurrSw*nCurrSh is greater than 4), the following applies:
[0688] – For the derivation of the variable varScale, the following sequential steps apply:
[0689] 1. The variable invAvgLuma is derived as follows:
[0690]
[0691] The variable idxYInv is derived by calling the identity of the piecewise function index specified in clause 8.7.5.3.2 with invAvgLuma as input and idxYInv as output.
[0692] 2. Derived variable varScale as follows:
[0693] varScale=ChromaScaleCoeff[idxYInv] (8-1065)
[0694] – Derivation of recSamples is as follows:
[0695] – If tu_cbf_cIdx[xCurr][yCurr] is equal to 1, then the following applies:
[0696] resSamples[i][j]=Clip3(-(1< <BitDepthC),
[0697] 1< <BitDepthC-1,resSamples[i][j])
[0698] recSamples[xCurr+i][yCurr+j]=ClipCidx1(predSamples[i][j]+(8-1066)
[0699] Sign(resSamples[i][j])*((Abs(resSamples[i][j])*varScale+(1<<10))>>11))
[0700] – Otherwise (tu_cbf_cIdx[xCurr][yCurr] is equal to 0), the following applies:
[0701] recSamples[xCurr+i][yCurr+j]=ClipCidx1(predSamples[i][j]) (8-1067)
[0702] 5.2 Example #2
[0703] The following examples are for the description of the present invention. Project 11 The method in .
[0704] pass UnderlineNewly added parts are shown by capital and bold, and parts deleted from the VVC working draft are shown by capital bold. The modifications are based on the latest adopted solutions in the latest VVC working draft (JVET-M1007-v7) and JVET-N220-v3.
[0705] The differences between Example #2 and Example #1 are listed below:
[0706] – Examine multiple neighboring luma samples to derive the chroma residual scaling factor.
[0707] – When the neighboring luma samples are not available, or when the neighboring luma is coded in INTRA / CIIP / IBC mode and the current luma is coded in INTER mode, #2 uses the default value derived from the chroma residual scaling factor.
[0708] 8.7.5.4 Image reconstruction using the luminance-dependent chrominance residual scaling process for chrominance samples
[0709] The input to this process is:
[0710] – The position of the upper left sample point of the current transform block relative to the upper left sample point of the current picture (xCurr, yCurr),
[0711] – variable nCurrSw that specifies the transform block width,
[0712] – variable nCurrSh that specifies the transform block height,
[0713] – specifies the (nCurrSw) x (nCurrSh) array predSamples of the chroma prediction samples for the current block,
[0714] – Specifies the (nCurrSw) x (nCurrSh) array resSamples of the chroma residual samples of the current block.
[0715] The output of this process is the reconstructed chrominance picture sample array recSamples.
[0716] Set the current brightness position (xTbY, yTbY) to (xCurr<<1, yCurr<<1)
[0717] The corresponding brightness position (xTbCorrY, yTbCorrY) is derived as follows:
[0718] – If the slice group type is equal to 2 (I slice group) and qtbtt_dual_tree_intra_flag is equal to 1, then The corresponding luminance position (xTbCorrY, yTbCorrY) is set to the upper left sample point that covers the current luminance position (xTbY, yTbY). The upper left sample point position of the CU.
[0719] – Otherwise, set the corresponding brightness position (xTbCorrY, yTbCorrY) to the current brightness position (xTbY, yTbY)
[0720] The variable availTL is derived as follows:
[0721] – At the corresponding brightness position (xTbCorrY, yTbCorrY) and the adjacent brightness position (xTbCorrY-1, yTbCorrY-1) is the input, as specified in clause 6.4.X [Ed.(BB): Neighboring block availability check process tbd] The upper left neighboring sample availability derivation process for the block is specified, and the output is assigned to availTL.
[0722] The variable availT is derived as follows:
[0723] – In the corresponding brightness position (xTbCorrY, yTbCorrY) and the adjacent brightness position (xTbCorrY, yTbCorrY- 1) In the case of input, call the neighbor block availability check process as specified in clause 6.4.X [Ed.(BB): Neighboring block availability check process tbd] for The top neighboring sample availability of the block is deduced and the output is assigned to availT.
[0724] Set numAvailNeigh equal to availTL + availT.
[0725] If numAvailNeigh is greater than or equal to 1, then the neighboring luma samples pY[x][y] (where x = -1, 0, y=-1) is set equal to the reconstructed luminance sample before the deblocking filtering process at the position (xTbCorrY+x, yTbCorrY+y). The average value of the adjacent brightness sample points pY is derived as follows Avg :
[0726] pY Avg =((availTL?pY[-1][-1]:0)+(availT?pY[0][-1]:0))>>(numAvailNeigh> 1?1:0)
[0727] Otherwise, if one of the following conditions is true, then pY Avg Set equal to (1<<(BitDepthY-1)).
[0728] – availTL equals false
[0729] – CuPredMode[xCurr][yCurr] is equal to MODE_INTER and ciip_flag[xCurr][yCurr] is equal to is equal to 0, and CuPredMode[xTbCorrY-1][yTbCorrY–1] is equal to MODE_INTRA
[0730] – CuPredMode[xCurr][yCurr] is equal to MODE_INTER and ciip_flag[xCurr][yCurr] is equal to is equal to 0, and CuPredMode[xTbCorrY-1][yTbCorrY–1] is equal to MODE_IBC
[0731] – CuPredMode[xCurr][yCurr] is equal to MODE_INTER and ciip_flag[xCurr][yCurr] is equal to is equal to 0, and CuPredMode[xTbCorrY-1][yTbCorrY–1] is equal to MODE_INTER and ciip_flag[xCurr] [yCurr] is equal to 1
[0732] The mapping value pYMap of the adjacent upper left brightness sample point is derived as follows Avg :
[0733] idxY=pY Avg >>Log2(OrgCW)
[0734] pYMap Avg =Clip1 Y (LmcsPivot[idxY]+(ScaleCoeff[idxY]*
[0735] (pY Avg -InputPivot[idxY])+(1<<10))>>11)
[0736] For i = 0..nCurrSw-1, j = 0..nCurrSh-1, the reconstructed chrominance picture samples recSamples are derived as follows:
[0737] – If tile_group_chroma_residual_scale_flag is equal to 0 or nCurrSw*nCurrSh is less than or equal to 4, then the following applies:
[0738] recSamples[xCurr+i][yCurr+j]=Clip1 C (predSamples[i][j]+resSamples[i][j])
[0739] (8-1063)
[0740] – Otherwise (tile_group_chroma_residual_scale_flag is equal to 1 and nCurrSw*nCurrSh is greater than 4), the following applies:
[0741] – For the derivation of the variable varScale, the following sequential steps apply:
[0742] – The variable invAvgLuma is derived as follows:
[0743]
[0744] The variable idxYInv is derived by calling the identity of the piecewise function index specified in clause 8.7.5.3.2 with invAvgLuma as input and idxYInv as output.
[0745] The variable varScale is derived as follows:
[0746] varScale=ChromaScaleCoeff[idxYInv] (8-1065)
[0747] – Derivation of recSamples is as follows:
[0748] – If tu_cbf_cIdx[xCurr][yCurr] is equal to 1, then the following applies:
[0749] resSamples[i][j]=Clip3(-(1< <BitDepthC),
[0750] 1< <BitDepthC-1,resSamples[i][j])
[0751] recSamples[xCurr+i][yCurr+j]=
[0752] ClipCidx1(predSamples[i][j]+ (8-1066)
[0753] Sign(resSamples[i][j])*((Abs(resSammpl
[0754] es[i][j])*varScale+(1<<10))>>11))
[0755] – Otherwise (tu_cbf_cIdx[xCurr][yCurr] is equal to 0), the following applies:
[0756] recSamples[xCurr+i][yCurr+j] =ClipCidx1(predSamples[i][j]) (8-1067)
[0757] 5.3 Example #3
[0758] The following examples are for the description of the present invention. Project 12 The method in .
[0759] New additions are highlighted by bold italics, and deletions from the VVC working draft are highlighted by uppercase bold. The modifications are based on the latest adopted proposals in the latest VVC working draft (JVET-M1007-v7) and JVET-N220-v3.
[0760] 8.7.5.4 Image reconstruction using the luminance-dependent chrominance residual scaling process for chrominance samples
[0761] The input to this process is:
[0762] – The position of the upper left sample point of the current transform block relative to the upper left sample point of the current picture (xCurr, yCurr),
[0763] – variable nCurrSw that specifies the transform block width,
[0764] – variable nCurrSh that specifies the transform block height,
[0765] – specifies the (nCurrSw) x (nCurrSh) array predSamples of the chroma prediction samples for the current block,
[0766] – Specifies the (nCurrSw) x (nCurrSh) array resSamples of the chroma residual samples of the current block.
[0767] The output of this process is the reconstructed chrominance picture sample array recSamples.
[0768] For i = 0..nCurrSw-1, j = 0..nCurrSh-1, the reconstructed chrominance picture samples recSamples are derived as follows:
[0769] - If slice_chroma_residual_scale_flag is equal to 0 or nCurrSw*nCurrSh is less than or equal to 4, then the following applies:
[0770] recSamples[xCurr+i][yCurr+j]=Clip1 C (predSamples[i][j]+resSamples[i][j]) (8-1063)
[0771] – Otherwise (slice_chroma_residual_scale_flag is equal to 1 and nCurrSw*nCurrSh is greater than 4), the following applies:
[0772] – For the derivation of the variable varScale, the following sequential steps apply:
[0773] 1. Derive the variable INVAVGLUMA as follows:
[0774]
[0775] 2. The variable IDXYINV is derived by calling the piecewise function index identification specified in clause 8.7.5.3.2 with INVAVGLUMA as input and IDXYINV as output.
[0776] 3. Derived variable varScale as follows:
[0777] varScale=ChromaScaleCoeff[IDXYINV lmcs_min_bin_idx]
[0778] (8-1064)
[0779] – Derived recSamples is as follows:
[0780] – If tu_cbf_cIdx[xCurr][yCurr] is equal to 1, then the following applies:
[0781] resSamples[i][j]=Clip3(-(1< <BitDepth C ),
[0782] 1< <BitDepth C -1,resSamples[i][j])
[0783] recSamples[xCurr+i][yCurr+j]=
[0784] ClipCidx1(predSamples[i][j]+ (8-1066)
[0785] Sign(resSamples[i][j])*((Abs(resSamples[i][j])*var
[0786] Scale+(1<<10))>>11))
[0787] – Otherwise (tu_cbf_cIdx[xCurr][yCurr] is equal to 0), the following applies:
[0788] recSamples[xCurr+i][yCurr+j]=
[0789] ClipCidx1(predSamples[i][j]) (8-1067)
[0790] 5.4 Example #4
[0791] The following examples are for the description of the present invention. Project 12 The method in .
[0792] New additions are highlighted by bold italics, and deletions from the VVC working draft are highlighted by uppercase bold. The modifications are based on the latest adopted proposals in the latest VVC working draft (JVET-M1007-v7) and JVET-N220-v3.
[0793] 8.7.5.4 Image reconstruction using the luminance-dependent chrominance residual scaling process for chrominance samples
[0794] The input to this process is:
[0795] – The position of the upper left sample point of the current transform block relative to the upper left sample point of the current picture (xCurr, yCurr),
[0796] – variable nCurrSw that specifies the transform block width,
[0797] – variable nCurrSh that specifies the transform block height,
[0798] – specifies the (nCurrSw) x (nCurrSh) array predSamples of the chroma prediction samples for the current block,
[0799] – Specifies the (nCurrSw) x (nCurrSh) array resSamples of the chroma residual samples of the current block.
[0800] The output of this process is the reconstructed chrominance picture sample array recSamples.
[0801] For i = 0..nCurrSw-1, j = 0..nCurrSh-1, the reconstructed chrominance picture samples recSamples are derived as follows:
[0802] – If slice_chroma_residual_scale_flag is equal to 0 or nCurrSw*nCurrSh is less than or equal to 4, then the following applies:
[0803] recSamples[xCurr+i][yCurr+j]=Clip1 C (predSamples[i][j]+resSamples[i][j]) (8-1063)
[0804] – Otherwise (slice_chroma_residual_scale_flag is equal to 1 and nCurrSw*nCurrSh is greater than 4), the following applies:
[0805] – For the derivation of the variable varScale, the following sequential steps apply:
[0806] 1. The variable invAvgLuma is derived as follows:
[0807]
[0808]
[0809] 2. The variable idxYInv is derived by calling the identity of the piecewise function index specified in clause 8.7.5.3.2 with invAvgLuma as input and idxYInv as output.
[0810] 3. Derived variable varScale as follows:
[0811] varScale=ChromaScaleCoeff[idxYInv] (8-994)
[0812] – Derivation of recSamples is as follows:
[0813] – If tu_cbf_cIdx[xCurr][yCurr] is equal to 1, then the following applies:
[0814] resSamples[i][j]=Clip3(-(1< <BitDepth C ),
[0815] 1< <BitDepth C-1,resSamples[i][j])
[0816] recSamples[xCurr+i][yCurr+j]=ClipCidx1(predSamples[i][j]+(8-1066)
[0817] Sign(resSamples[i][j])*((Abs(resSamples[i][j])*varScale+(1<<10))>>11))
[0818] – Otherwise (tu_cbf_cIdx[xCurr][yCurr] is equal to 0), the following applies:
[0819] recSamples[xCurr+i][yCurr+j]=ClipCidx1(predSamples[i][j]) (8-1067)
[0820] 5.5 Example #5
[0821] The following examples are for the description of the present invention. Project 12 The method in .
[0822] New additions are highlighted by bold italics, and deletions from the VVC working draft are highlighted by uppercase bold. The modifications are based on the latest adopted proposals in the latest VVC working draft (JVET-M1007-v7) and JVET-N220-v3.
[0823] 7.4.5.4 Luma Map Data Semantics with Chroma Scaling
[0824] The variable ChromaScaleCoeff[i] is derived as follows, where i = 0…15:
[0825] if(lmcsCW[i]==0)
[0826] ChromaScaleCoeff[i]=(1<<11)
[0827] else{
[0828] ChromaScaleCoeff[i]=InvScaleCoeff[i]
[0829] }
[0830] The variable varScale is derived as follows:
[0831]
[0832] 8.7.5.4 Image reconstruction using the luminance-dependent chrominance residual scaling process for chrominance samples
[0833] The input to this process is:
[0834] – The position of the upper left sample point of the current transform block relative to the upper left sample point of the current picture (xCurr, yCurr),
[0835] – variable nCurrSw that specifies the transform block width,
[0836] – variable nCurrSh that specifies the transform block height,
[0837] – specifies the (nCurrSw) x (nCurrSh) array predSamples of the chroma prediction samples for the current block,
[0838] – Specifies the (nCurrSw) x (nCurrSh) array resSamples of the chroma residual samples of the current block.
[0839] The output of this process is the reconstructed chrominance picture sample array recSamples.
[0840] For i = 0..nCurrSw-1, j = 0..nCurrSh-1, the reconstructed chrominance picture samples recSamples are derived as follows:
[0841] – If slice_chroma_residual_scale_flag is equal to 0 or nCurrSw*nCurrSh is less than or equal to 4, then the following applies:
[0842] recSamples[xCurr+i][yCurr+j]=Clip1 C (predSamples[i][j]+resSamples[i][j]) (8-1063)
[0843] – Otherwise (slice_chroma_residual_scale_flag is equal to 1 and nCurrSw*nCurrSh is greater than 4), the following applies:
[0844] – For the derivation of the variable VARSCALE, the following sequential steps apply:
[0845] 1. Derive the variable INVAVGLUMA as follows:
[0846]
[0847]
[0848] 2. The variable IDXYINV is derived by calling the identity of the piecewise function index specified in clause 8.7.5.3.2 with INVAVGLUMA as input and IDXYINV as output.
[0849] 3. Derived variable VARSCALE as follows:
[0850] VARSCALE=CHROMASCALECOEFF[IDXYINV](8-994)
[0851] – Derivation of recSamples is as follows:
[0852] – If tu_cbf_cIdx[xCurr][yCurr] is equal to 1, then the following applies:
[0853] resSamples[i][j]=Clip3(-(1< <BitDepth C ),1< <BitDepth C -1,resSamples[i][j])
[0854] recSamples[xCurr+i][yCurr+j]=ClipCidx1(predSamples[i][j]+(8-1066)
[0855] Sign(resSamples[i][j])*((Abs(resSamples[i][j])*varScale+(1<<10))>>11))
[0856] – Otherwise (tu_cbf_cIdx[xCurr][yCurr] is equal to 0), the following applies:
[0857] recSamples[xCurr+i][yCurr+j]=ClipCidx1(predSamples[i][j]) (8-1067)
[0858] 5.6 Example #6
[0859] The following examples are for the examples listed in the previous section. Project 19 The method in .
[0860] The working draft specified in JVET-N1001-v8 may be changed as follows (underline or bold italics are used for highlighting, uppercase bold is used for deletions).
[0861] 7.3.4.4 Luma Map Data Syntax with Chroma Scaling
[0862]
[0863]
[0864] 7.4.6.4 Luma Map Data Semantics with Chroma Scaling
[0865] lmcs_crs_fixed_bin_idx specifies the bin used to derive the luminance map during construction with chroma scaling. Binary index of the chroma scaling factor. The value of lmcs_crs_fixed_bin_idx shall be in the range of 0 to 15, inclusive. and 15.
[0866] …
[0867] The variable ChromaScaleCoeff[i] is derived as follows, where i=0…15:
[0868] if(lmcsCW[i]==0)
[0869] ChromaScaleCoeff[i]=(1<<11)
[0870] else (7-94)
[0871] ChromaScaleCoeff[i]=InvScaleCoeff[i]
[0872] The variable varScale is derived as follows:
[0873] varScale=ChromaScaleCoeff[lmcs_crs_fixed_bin_idx]
[0874] 8.7.5.3 Image reconstruction using the luminance-dependent chrominance residual scaling process for chrominance samples
[0875] The input to this process is:
[0876] – The position of the upper left sample point of the current transform block relative to the upper left sample point of the current picture (xCurr, yCurr),
[0877] – variable nCurrSw that specifies the transform block width,
[0878] – variable nCurrSh that specifies the transform block height,
[0879] – The variable tuCbfChroma that specifies the codec block flag of the current chroma transform block,
[0880] – specifies the (nCurrSw) x (nCurrSh) array predSamples of the chroma prediction samples for the current block,
[0881] – Specifies the (nCurrSw) x (nCurrSh) array resSamples of the chroma residual samples of the current block.
[0882] The output of this process is the reconstructed chrominance picture sample array recSamples.
[0883] For i = 0..nCurrSw-1, j = 0..nCurrSh-1, the reconstructed chrominance picture samples recSamples are derived as follows:
[0884] – Set recSamples[xCurr+i][yCurr+j] equal to Clip1C(predSamples[i][j]+resSamples[i][j]) if one of the following conditions is true:
[0885] –slice_chroma_residual_scale_flag is equal to 0
[0886] –nCurrSw*nCurrSh is less than or equal to 4
[0887] –tu_cbf_cb[xCurr][yCurr] is equal to 0, and tu_cbf_cr[xCurr][yCurr] is equal to 0
[0888] – Otherwise, the following applies:
[0889] – For the derivation of the variable VARSCALE, the following sequential steps apply:
[0890] 1. Derive the variable INVAVGLUMA as follows:
[0891]
[0892] 2. The variable IDXYINV is derived by the identity of calling the piecewise function indexing procedure for luma samples specified in clause 8.8.2.3 with the variable LUMASAMPLE set equal to INVAVGLUMA as input and IDXYINV as output.
[0893] 3. Derived variable VARSCALE as follows:
[0894] VARSCALE=CHROMASCALECOEFF[IDXYINV]
[0895] – Derived recSamples is as follows:
[0896] – If tuCbfChroma is equal to 1, then the following applies:
[0897] resSamples[i][j]=Clip3(-(1< <BitDepth C ),(1< <BitDepth C )-1,resSamples[i][j])
[0898] (8-998)
[0899] recSamples[xCurr+i][yCurr+j]=Clip1 C (predSamples[i][j]+ (8-999)
[0900] Sign(resSamples[i][j])*((Abs(resSamples[i][j])*varScale+(1<<10))>>11))
[0901] – Otherwise (tu_cbf equals 0), the following applies:
[0902] recSamples[xCurr+i][yCurr+j]=Clip1 C (predSamples[i][j])
[0903] 5.7 Example #7
[0904] The following examples are for the description of the present invention. Project 12 The method in .
[0905] The working draft specified in JVET-N1001-v8 can be changed as follows.
[0906] 7.4.6.4 Luma Map Data Semantics with Chroma Scaling
[0907] The variable ChromaScaleCoeff[i] is derived as follows, where i=0…15:
[0908] if(lmcsCW[i]==0)
[0909] ChromaScaleCoeff[i]=(1<<11)
[0910] else (7-94)
[0911] ChromaScaleCoeff[i]=InvScaleCoeff[i]
[0912] The variable varScale is derived as follows:
[0913] varScale=ChromaScaleCoeff[(lmcs_min_bin_idx+LmcsMaxBinIdx)>>1]
[0914] 8.7.5.3 Image reconstruction using the luminance-dependent chrominance residual scaling process for chrominance samples
[0915] The input to this process is:
[0916] – The position of the upper left sample point of the current transform block relative to the upper left sample point of the current picture (xCurr, yCurr),
[0917] – variable nCurrSw that specifies the transform block width,
[0918] – variable nCurrSh that specifies the transform block height,
[0919] – The variable tuCbfChroma that specifies the codec block flag of the current chroma transform block,
[0920] – specifies the (nCurrSw) x (nCurrSh) array predSamples of the chroma prediction samples for the current block,
[0921] – Specifies the (nCurrSw) x (nCurrSh) array resSamples of the chroma residual samples of the current block.
[0922] The output of this process is the reconstructed chrominance picture sample array recSamples.
[0923] For i = 0..nCurrSw-1, j = 0..nCurrSh-1, the reconstructed chrominance picture samples recSamples are derived as follows:
[0924] – Set recSamples[xCurr+i][yCurr+j] equal to Clip1C(predSamples[i][j]+resSamples[i][j]) if one of the following conditions is true:
[0925] –slice_chroma_residual_scale_flag is equal to 0
[0926] –nCurrSw*nCurrSh is less than or equal to 4
[0927] –tu_cbf_cb[xCurr][yCurr] is equal to 0, and tu_cbf_cr[xCurr][yCurr] is equal to 0
[0928] – Otherwise, the following applies:
[0929] – For the derivation of the variable VARSCALE, the following sequential steps apply:
[0930] 1. Derive the variable INVAVGLUMA as follows:
[0931]
[0932] 2. The variable IDXYINV is derived by the identity of calling the piecewise function indexing procedure for luma samples specified in clause 8.8.2.3 with the variable LUMASAMPLE set equal to INVAVGLUMA as input and IDXYINV as output.
[0933] 3. Derived variable VARSCALE as follows:
[0934] VARSCALE=CHROMASCALECOEFF[IDXYINV]
[0935] – Derived recSamples is as follows:
[0936] – If tuCbfChroma is equal to 1, then the following applies:
[0937] resSamples[i][j]=Clip3(-(1< <BitDepth C ),(1< <BitDepth C )-1,resSamples[i][j])
[0938] (8-998)
[0939] recSamples[xCurr+i][yCurr+j]=Clip1 C (predSamples[i][j]+ (8-999)
[0940] Sign(resSamples[i][j])*((Abs(resSamples[i][j])*varScale+(1<<10))>>11))
[0941] – Otherwise (tu_cbf equals 0), the following applies:
[0942] recSamples[xCurr+i][yCurr+j]=Clip1 C (predSamples[i][j])
[0943] 6. Example Implementations of the Disclosed Technology
[0944] Fig.10 1 is a block diagram of a video processing device 1000. Device 1000 may be used to implement one or more of the methods described herein. Device 1000 may be embodied in a smartphone, a tablet computer, a computer, an Internet of Things (IoT) receiver, etc. Device 1000 may include one or more processors 1002, one or more memories 1004, and video processing hardware 1006. Processor(s) 1002 may be configured to implement one or more methods described herein (including, but not limited to, methods 800 and 900). Memory(s) 1004 may be used to store data and code for implementing the methods and techniques described herein. Video processing hardware 1006 may be used to implement some of the techniques described in this document in a hardware circuit system.
[0945] In some embodiments, the Fig.10 The apparatus implemented on the described hardware platform is used to implement these video encoding and decoding methods.
[0946] Fig.11 A flow chart of an example method 1100 for linear model derivation for cross-component prediction according to the disclosed technology is shown. The method 1100 includes performing a conversion between a current video block and a bitstream representation of the current video block in step 1110, wherein during the conversion, a second set of color component values of the current video block is derived from a first set of color component values contained in one or more reference frames, wherein the first set of color component values can be used in a linear model of a video encoding and decoding step.
[0947] Some embodiments may be described using the following clause-based format.
[0948] 1. A method for video processing, comprising:
[0949] A conversion between a current video block and a bitstream representation of the current video block is performed, wherein during the conversion, a second set of color component values for the current video block is derived from a first set of color component values contained in one or more reference frames, wherein the first set of color component values can be used in a linear model of a video encoding and decoding step.
[0950] 2. A method according to clause 1, wherein the first set of color component values are interpolated before being used in the linear model of the video encoding and decoding step.
[0951] 3. A method according to any one or more of clauses 1-2, wherein linear combinations of the first set of color component values can be used as parameters of the linear model.
[0952] 4. The method of clause 1, wherein the locations of the first set of color component values contained within the one or more reference frames are selected based at least in part on motion information of the current video block.
[0953] 5. A method according to clause 4, wherein the position of the luma component within the one or more reference frames is calculated from the position of the corresponding luma component value in the current video block and the motion information of the current video block.
[0954] 6. The method of clause 5, wherein the position of the corresponding luma component value is an upper left sample point, a center sample point, or a lower right sample point in the current video block.
[0955] 7. The method of clause 6, wherein the motion information of the current video block corresponds to an integer motion vector or a fractional motion vector.
[0956] 8. A method according to clause 7, wherein the fractional motion vector is derived using fractional luma component values in one or more reference frames.
[0957] 9. A method according to clause 7, wherein the integer motion vector is derived by rounding towards or away from zero.
[0958] 10. The method of clause 1, wherein the locations of the first set of color component values contained within the one or more reference frames are predefined locations.
[0959] 11. A method according to any one or more of clauses 1-10, wherein a median or average value of the first set of color component values is used to derive the second set of color component values for the current video block.
[0960] 12. A method according to any one or more of clauses 1-11, wherein the one or more reference frames are predefined reference frames.
[0961] 13. A method according to clause 12, wherein the predefined reference frame comprises a frame having a reference index of a reference picture list.
[0962] 14. A method according to clause 13, wherein the reference index is 0 and the reference picture list is 0.
[0963] 15. A method according to clause 13, wherein the reference index and / or the reference picture list is signaled in a bitstream representation associated with one or more of the following items: sequence, picture, slice, group, slice, codec tree unit row or video block.
[0964] 16. The method of clause 1, wherein the second set of color component values for the current video block is derived from a mathematical median or a weighted average of the first set of color component values contained in one or more reference frames.
[0965] 17. The method of clause 1, wherein the second set of color component values for the current video block is selectively derived from the first set of color component values contained in one or more reference frames based on whether the current video block is a bi-predictive codec block.
[0966] 18. The method of clause 17, wherein the second set of color component values for the current video block is derived separately for each prediction direction of the first set of color component values.
[0967] 19. The method of clause 1, wherein the second set of color component values for the current video block is selectively derived from the first set of color component values contained in one or more reference frames based on whether the current video block is associated with a sub-block based prediction.
[0968] 20. A method as described in clause 1, wherein the sub-block based prediction corresponds to affine prediction or optional temporal motion vector prediction (ATMVP).
[0969] 21. A method according to any one or more of clauses 19-20, wherein a second set of colour component values for the current video block is derived for each sub-block.
[0970] 22. A method according to any one or more of clauses 19-21, wherein the second set of color component values for the current video block is derived for the entire current video block regardless of sub-block based prediction.
[0971] 23. A method as recited in any one or more of clauses 19-22, wherein the first set of color component values contained within one or more reference frames is selected based at least in part on a motion vector of a sub-block of the current video block.
[0972] 24. A method according to any one or more of clauses 1-23, wherein the first set of color component values contained in one or more reference frames are intermediate color component values.
[0973] 25. A method according to any one or more of clauses 1-24, wherein the video encoding and decoding step is preceded by another video encoding and decoding step.
[0974] 26. A method according to clause 25, wherein the first set of color component values contained in one or more reference frames is selected based at least in part on an intermediate motion vector of the current video block or a sub-block of the current video block, and wherein the intermediate motion vector is calculated prior to another video encoding and decoding step.
[0975] 27. A method according to any one or more of clauses 24-26, wherein the further video encoding and decoding step comprises one or a combination of the following steps: a bidirectional optical flow (BDOF) step, a decoder-side motion vector refinement (DMVR) step, a prediction refined optical flow (PROF) step.
[0976] 28. A method according to any one or more of clauses 1-27, wherein the first set of color component values contained in one or more reference frames corresponds to MxN luma component values associated with a corresponding luma block.
[0977] 29. The method of clause 28, wherein the corresponding luma block is a collocated luma block of the current video block.
[0978] 30. The method of clause 29, wherein the product of M and N is less than the product of a block width and a block height of a collocated luma block of the current video block.
[0979] 31. A method according to any one or more of clauses 27-30, wherein the first set of color component values contained in the one or more reference frames corresponds to at least a portion of reference samples identified at locations of adjacent luma samples of the collocated luma block.
[0980] 32. A method according to any one or more of clauses 1-31, wherein the first set of colour component values are downsampled before being used in a linear model of a video encoding and decoding step.
[0981] 33. The method of clause 1, wherein the second set of color component values for the current video block is selected based at least in part on one or more of the following information for the current video block: a quantization parameter, a codec mode, or a picture order count (POC).
[0982] 34. A method as described in clause 31, wherein the adjacent luma samples are positioned such that an upper left sample of a collocated luma block is overlapped.
[0983] 35. The method of clause 28, wherein the first set of color component values contained within the one or more reference frames corresponds to at least a portion of reference samples identified at locations outside of the corresponding luma block.
[0984] 36. The method of clause 28, wherein the second set of color component values for the current video block is selectively derived from the first set of color component values contained in one or more reference frames based on availability of neighboring samples of a corresponding luma block.
[0985] 37. A method according to clause 28, wherein the availability of neighboring samples of the corresponding luma block is based on one or more of the following content items: the use of a codec mode of the current video block, the use of a codec mode of the neighboring samples of the corresponding luma block, the use of a codec mode of the corresponding luma block, the use of a codec mode of one or more neighboring video blocks, the use of a type of filter associated with the neighboring samples of the corresponding luma block, or the position of the neighboring samples of the corresponding luma block relative to the current video block or a subblock thereof.
[0986] 38. The method according to clause 28, further comprising:
[0987] In response to a lack of availability of neighboring samples for a corresponding luma block, unavailable samples are replaced, filled, or padded with other samples.
[0988] 39. The method according to clause 28, further comprising:
[0989] A smoothing filter is applied to samples neighboring the corresponding luma block.
[0990] 40. A method for video processing, comprising:
[0991] performing a conversion between a current video block and a bitstream representation of the current video block, wherein during the conversion, a second set of color component values for the current video block is derived from a first set of color component values contained in one or more reference frames, wherein the first set of color component values can be used in a linear model of a video encoding and decoding step; and
[0992] In response to determining that the first set of color component values contained within the one or more reference frames is a collocated luma block of the current video block, derivation of a second set of color component values for the current video block is selectively enabled or disabled based on one or more conditions associated with the collocated luma block of the current video block.
[0993] 41. A method according to clause 40, wherein one or more conditions associated with the collocated luma block of the current video block include: a partition size of the collocated luma block, a number of codec units of the collocated luma block reaching a threshold number, an upper left luma sample of the collocated luma block reaching a threshold size, a partition tree depth of the collocated luma block, a corresponding luma block covering the upper left luma sample of the collocated luma block, a dimension of the collocated luma block or the current video block, or a corresponding luma block covering the upper left luma sample of the collocated luma block and also contained in a bounding box of a predefined size.
[0994] 42. A method as described in clause 40, wherein information indicating the selective enabling or disabling of derivation is included in the bitstream representation.
[0995] 43. A method according to clause 28, wherein the availability of neighboring samples for a corresponding luma block is associated with checking the neighboring samples according to a predefined order.
[0996] 44. The method of clause 41, wherein the collocated luma block and the current video block are associated with the same codec tree unit or the same row of a codec tree unit.
[0997] 45. A method for video processing, comprising:
[0998] performing a conversion between a current video block and a bitstream representation of the current video block, wherein during the conversion, a second set of color component values for the current video block is derived from a first set of color component values contained in one or more reference frames, wherein the first set of color component values can be used in a linear model of a video encoding and decoding step; and
[0999] In response to determining that one or more characteristics of the current video block or a neighboring video block of the current video block are satisfied, derivation of a second set of color component values for the current video block is selectively enabled or disabled.
[1000] 46. The method of clause 45, wherein the one or more characteristics of the current video block or a neighboring video block of the current video block correspond to a neighboring luma block covering a spatial position relative to the spatial position of the current video block.
[1001] 47. The method of clause 45, wherein the one or more characteristics of the current video block or a neighboring video block of the current video block correspond to a spatial position of the neighboring video block of the current video block relative to the spatial position of the current video block.
[1002] 48. The method according to clause 45, further comprising:
[1003] In response to determining that reconstruction of the neighboring video block is based at least in part on a codec mode of the current video block, derivation of a second set of color component values for the current video block is disabled.
[1004] 49. The method according to clause 45, further comprising:
[1005] In response to determining that the current video block is an inter-frame codec block rather than a combined inter-frame and intra-frame prediction codec block and a block adjacent to the corresponding luma block of the current video block is an intra-frame codec block, a combined inter-frame and intra-frame prediction (CIIP) block, or an intra-frame block copy (IBC) codec block, derivation of a second set of color component values for the current video block is disabled.
[1006] 50. The method according to clause 45, further comprising:
[1007] In response to determining that the current video block is an inter-frame codec block rather than a combined inter-frame and intra-frame prediction codec block and a block adjacent to the corresponding luma block of the current video block is an intra-frame codec block, a combined inter-frame and intra-frame prediction (CIIP) block, or an intra-frame block copy (IBC) codec block, derivation of a second set of color component values for the current video block is enabled, wherein the first set of color component values are fixed values.
[1008] 51. The method of clause 45, wherein the first set of color component values are fixed values.
[1009] 52. A method according to clause 51, wherein the fixed value corresponds to a segment index of a linear model of a video encoding and decoding step.
[1010] 53. A method as described in any one or more of clauses 1-52, wherein the neighboring samples may be adjacent to the current video block or non-adjacent to the current video block.
[1011] 54. A method as described in any one or more of clauses 1-52, wherein the neighboring samples may be associated with or may be chroma blocks neighboring the current video block.
[1012] 55. A method as described in any one or more of clauses 1-54, wherein the current video block corresponds to a chroma block, a collocated luma block, or a corresponding luma block covering the top left luma sample of the collocated chroma block.
[1013] 56. A method as described in any one or more of clauses 1-54, wherein a second set of color component values for the current video block is stored for use in conjunction with one or more other video blocks.
[1014] 57. A method according to any one or more of clauses 1-56, wherein the linear model corresponds to a cross-component linear model (CCLM) and the video encoding and decoding step corresponds to a luminance mapping with chroma scaling (LMCS) mode.
[1015] 58. A method according to any one or more of clauses 1-57, wherein the current video block is an inter-frame codec block, a bi-directional prediction codec block, a combined inter-frame and intra-frame prediction (CIIP) block or an intra-frame block copy (IBC) codec block.
[1016] 59. A method as described in any one or more of clauses 1-58, wherein a second set of color component values for the current video block is stored for use in association with other video blocks in the bitstream.
[1017] 60. A method according to clause 59, wherein a second set of color component values of the current video block is stored in a line buffer to be selectively available or unavailable to neighboring video blocks included in other video blocks, wherein the current video block and the neighboring video blocks are associated with different slices, slices, slice groups, codec tree units or codec tree unit rows.
[1018] 61. The method of clause 60, wherein the second set of color component values for the current video block are fixed values.
[1019] 62. The method of clause 60, wherein derivation of a second set of color component values for the current video block is prevented.
[1020] 63. The method of clause 59, wherein derivation of a second set of color component values for the current video block is prevented.
[1021] 64. The method of clause 59, wherein the second set of color component values for the current video block is stored in a table for selective availability or non-availability to neighboring video blocks included in other video blocks.
[1022] 65. The method of clause 64, wherein the second set of color component values for the current video block is dynamically updated.
[1023] 66. The method of clause 65, wherein the second set of color component values of the current video block is the same as a previous video block in the other video blocks.
[1024] 67. The method of clause 64, wherein the second set of color component values for the current video block is dynamically updated in a first-in-first-out (FIFO) manner.
[1025] 68. A method as described in any one or more of clauses 1-67, wherein the first set of color component values corresponds to luma sample values and the second set of color component values corresponds to chroma scaling factors.
[1026] 69. A method for video processing, comprising: determining the applicability of a cross-component codec tool based on a rule for conversion between a video block including at least two component blocks and a bitstream representation of the video block; and selectively performing the conversion using the cross-component codec tool.
[1027] 70. The method of clause 69, wherein the rule is based on a dimension of the current video block.
[1028] 71. A method according to clauses 69-70, wherein the rule is based on segmentation information of the current video block.
[1029] 72. A method according to any of clauses 69-71, wherein the rule is based on a partition tree structure of the current video block.
[1030] 73. A method according to clause 72, wherein the partition tree structure is one of a dual tree or a single tree.
[1031] 74. The method of clause 72, wherein the rule provides for disabling cross-component codec tools because the current video block is a chroma block employing a dual-tree partitioning tree structure.
[1032] 75. A method according to any of clauses 69-74, wherein the rule provides for omitting signalling of syntax elements across component codecs in the bitstream representation.
[1033] Additional examples and aspects of clauses 69-75 are described in item 15 of Section 4.
[1034] 76. An apparatus in a video system, comprising a processor and a non-volatile memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to implement the method of any one of clauses 1 to 75.
[1035] 77. A computer program product stored on a non-transitory computer readable medium, the computer program product comprising program code for implementing the method according to any of clauses 1 to 75.
[1036] Fig.12 1 is a block diagram illustrating an example video processing system 1200 in which the various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of system 1200. System 1200 may include an input 1202 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 1202 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.
[1037] System 1200 may include a codec component 1204, which may implement various codecs or coding methods described in this document. Codec component 1204 may reduce the average bit rate of the video from input 1202 to the output of codec component 1204 to generate a codec representation of the video. Therefore, codec technology is sometimes referred to as video compression or video transcoding technology. The output of codec component 1204 may be stored or transmitted by a connected communication, as shown in component 1206. The storage or communication bitstream (or coded) representation of the video received at input 1202 may be used by component 1208 to generate pixel values or send to a displayable video of display interface 1210. 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 "codec" operations or tools, it should be understood that codec tools or operations are used at encoders, and the corresponding decoding tools or operations that reverse the codec results will be performed by decoders.
[1038] 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 technology described in this document may be embodied in various electronic devices, such as mobile phones, laptops, smart phones, or other devices capable of performing digital data processing and / or video display.
[1039] Fig.13 is an example method for visual media processing. The steps of this flowchart are discussed in conjunction with Example 19 in Section 4 of this document. In step 1302, a bitstream representation is processed for conversion between a current video block in a video region of visual media data and a bitstream representation, wherein the bitstream representation is based on a rule that provides for selective inclusion of one or more syntax elements used in a luma-dependent chroma residual scaling step into the bitstream representation; wherein the luma-dependent chroma residual scaling step includes scaling chroma samples based on neighboring reconstructed luma samples during the conversion; and wherein the one or more syntax elements can be used to derive a chroma residual scaling factor.
[1040] Some embodiments of this document are now provided in a clause-based format.
[1041] 1. A method for video media processing (e.g., Fig.13), comprising: processing a bitstream representation for conversion between a current video block in a video region of visual media data and a bitstream representation, wherein the bitstream representation is based on a rule that provides for selective inclusion of one or more syntax elements used in a luma-dependent chroma residual scaling step into the bitstream representation; wherein the luma-dependent chroma residual scaling step includes scaling chroma samples based on neighboring reconstructed luma samples during the conversion; and wherein the one or more syntax elements can be used to derive a chroma residual scaling factor for the scaling. For example, during encoding, the one or more syntax elements can be derived from a chroma residual scaling factor used for encoding, and during decoding, the one or more syntax elements can be used to derive a chroma residual scaling factor for use during decoding. As used herein, the term "visual media data" can refer to a single image or a sequence of images or a video.
[1042] 2. A method according to clause 1, wherein, if the one or more syntax elements are included in the bitstream representation, the rule provides for representing the one or more syntax elements as fields in the bitstream representation of the visual media data.
[1043] 3. A method according to any one or more of clauses 1-2, wherein one or more syntax elements contained in the bitstream representation are associated with adaptation parameter set (APS) data related to the application of a luma mapping with chroma scaling (LMCS) mode.
[1044] 4. A method according to any one or more of clauses 1-2, wherein one or more syntax elements contained in the bitstream representation are associated with one of the following options: a sequence parameter set (SPS), a slice header, a slice group header, a picture parameter set (PPS), a picture header, a brick, a codec tree unit (CTU) row, a codec tree unit (CTU) or a codec unit (CU).
[1045] 5. A method according to any one or more of clauses 1-4, wherein the video unit comprises a plurality of video blocks, the method further comprising: upon detecting that the one or more syntax elements are associated with the video unit, determining to use the one or more syntax elements in a luma-related chroma residual scaling step for a plurality of video blocks contained in the video unit.
[1046] 6. A method according to any one or more of clauses 1-5, wherein the one or more syntax elements include a first syntax element that falls within a predefined interval represented as [k0, k1], wherein k0, k1 represent endpoints of the predefined interval, and wherein both k0 and k1 are contained within the predefined interval.
[1047] 7. A method as described in any one or more of clauses 1-6, wherein the one or more syntax elements include a second syntax element that is selectively included in the bitstream representation based on satisfying one or more conditions.
[1048] 8. A method according to any one or more of clauses 1-7, wherein the one or more syntax elements are encoded and decoded using one of the following options: fixed length precision, truncated unary precision, unary precision or exponential Golomb precision.
[1049] 9. A method according to clause 1, wherein the one or more syntax elements include an index representing a luma sample point used to calculate a residual scaling (CRS) factor in a chroma residual scaling step, so that the chroma residual scaling step is a luma-dependent chroma residual scaling step.
[1050] 10. A method according to clause 9, wherein the index is a fixed index and the rule provides for representing the fixed index as a field in the bitstream representation of the visual media data if the one or more syntax elements are included into the bitstream representation.
[1051] 11. A method according to any one or more of clauses 9-10, wherein the index also represents an index into a lookup table used to derive a chroma residual scaling (CRS) factor in a luma-dependent chroma residual scaling step.
[1052] 12. A method according to any one or more of clauses 9-10, wherein the index falls within a predefined interval represented as [k0, k1], wherein k0, k1 represent endpoints of the predefined interval, and wherein both k0 and k1 are contained within the predefined interval.
[1053] 13. The method of clause 12, wherein k0=0 and k1=15.
[1054] 14. A method according to any one or more of clauses 12-13, wherein the index is predictively derived from at least one other index used in a luma-dependent chroma residual scaling step.
[1055] 15. A method according to clause 14, wherein the at least one other index corresponds to the smallest index used in the luma-dependent chroma residual scaling step.
[1056] 16. A method according to any one or more of clauses 11-12, wherein the at least one other index corresponds to the maximum index used in the luma-related chroma residual scaling step.
[1057] 17. A method according to any one or more of clauses 11-12, wherein the index is predictively derived based at least in part on adding an offset value to the sum of a maximum index used in the luma-related chroma residual scaling step and a minimum index used in the luma-related chroma residual scaling step.
[1058] 18. The method of clause 14, wherein the index is subjected to a rounding operation.
[1059] 19. A method according to any one or more of clauses 14-15, wherein the offset value is 0 or 1.
[1060] 20. A method according to any one or more of clauses 6-16, wherein the precision of the index is encoded using one of the following options: fixed length precision, truncated unary precision, unary precision or exponential Golomb precision.
[1061] 21. A method according to any one or more of clauses 6-17, wherein indices identified in a luma-dependent chroma residual scaling step are selectively included in the bitstream representation based on satisfying one or more conditions.
[1062] 22. The method of clause 18, wherein the one or more conditions include:
[1063] (1) It is detected that the color format of the current video block is not 4:0:0 format,
[1064] (2) It is detected that the single plane coding technology is disabled for the current video block,
[1065] (3) ChromaArrayType is not equal to 0, or
[1066] (4) It is detected that a luma-dependent chroma residual scaling step is enabled for the current video block.
[1067] 23. A method according to any one or more of clauses 6-19, wherein the luma-related chroma residual scaling step is associated with data related to the application of a luma mapping with chroma scaling (LMCS) mode, the method further comprising: when it is determined that multiple video blocks share the same data related to the application of a luma mapping with chroma scaling (LMCS) mode, the rule provides that the CRS factor is derived as a fixed value based on the index.
[1068] 24. The method of clause 20, wherein the CRS factor is derived once for an Instantaneous Decoder Refresh (IDR) picture, a Clean Random Access (CRA) picture, or an Intra Random Access Picture (IRAP) picture.
[1069] 25. The method of clause 21, wherein the CRS factor is applicable to all video blocks contained in the instantaneous decoder refresh (IDR) picture, clean random access (CRA) picture or intra random access picture (IRAP) picture.
[1070] 26. A method according to clause 20, wherein the CRS factor is applicable to all video blocks contained in an inter-coded picture preceding a subsequent instantaneous decoder refresh (IDR) picture, a subsequent clean random access (CRA) picture, or a subsequent intra-frame random access picture (IRAP) picture.
[1071] 27. A method according to any of clauses 1-23, wherein the converting comprises generating a bitstream representation from the current video block.
[1072] 28. A method according to any of clauses 9-27, wherein the index is a binary index. For example, the binary index may be used for context coding as disclosed in this document.
[1073] 29. The method of any of clauses 9-27, wherein the index is an integer.
[1074] 30. A method according to any of clauses 1-29, wherein the converting comprises generating pixel values of the current video block from a bitstream representation.
[1075] 31. A video encoder apparatus comprising a processor configured to implement a method as described in any one or more of clauses 1-30.
[1076] 32. A video decoder apparatus comprising a processor configured to implement a method as described in any one or more of clauses 1-30.
[1077] 33. A computer readable medium having stored thereon code embodied as processor readable instructions for implementing the method of any one or more of clauses 1-30.
[1078] In this document, the term "video processing" or "visual media processing" may refer to video encoding, video decoding, video compression, or video decompression. For example, a video compression algorithm may be applied during the conversion from a pixel representation of a video to a corresponding bitstream representation or vice versa. The bitstream representation of the current video block may correspond to bits located in one place or scattered in different places within the bitstream, as defined by the syntax. For example, macroblocks may be encoded based on the transformed and coded error residual values and also using bits in the header and other fields in the bitstream. In addition, during the conversion, the decoder may parse the bitstream based on the determination that certain fields may or may not exist, as described in the solution above. Similarly, the encoder may determine whether certain syntax fields are included and generate a codec representation accordingly by including or excluding these syntax fields in the codec representation. It will be appreciated that the disclosed technology may be embodied in a video encoder or decoder, thereby improving compression efficiency using techniques including the use of sub-block-based motion vector refinement.
[1079] From the foregoing, it will be appreciated that specific embodiments of the technology disclosed herein have been described for illustrative purposes, but that various modifications may be made without departing from the scope of the invention. Accordingly, the technology disclosed herein is not to be limited except by the appended claims.
[1080] The embodiments of the subject matter and functional operations described in this patent document can be implemented in various systems, digital electronic circuits, or computer software, firmware or hardware, including the structures disclosed in this specification and their structural equivalents or a combination of one or more of them. The embodiments of the subject matter described in this specification can be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on a tangible and non-transitory computer-readable medium, for data processing devices to execute or control the operation of data processing devices. The computer-readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, a material composition that affects machine-readable propagation signals, or a combination of one or more of them. The term "data processing unit" or "data processing device" covers all devices, equipment and machines for processing data, including (for example) a programmable processor, a computer or multiple processors or computers. 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 of them.
[1081] 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 document in a file system. A program may be stored in a portion of a document that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single document dedicated to the program, or in multiple coordinated documents (e.g., documents storing one or more modules, subroutines, or portions of code). A computer program may be deployed to be executed on one or more computers that are located at one site or distributed across multiple sites and interconnected by a communications network.
[1082] The processes and logic flows described in this specification can be performed by executing one or more computer programs by one or more programmable processors to perform functions by operating on input data and generating output. These processes and logic flows can also be performed by special purpose logic circuits, and the apparatus can also be implemented as special purpose logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application specific integrated circuits).
[1083] For example, processors suitable for executing computer programs include general and special purpose microprocessors, and any one or more processors of any kind of digital computer. Generally speaking, 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 large-capacity storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or be operatively coupled to receive data from or transmit data to one or more large-capacity 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 storage devices, such as EPROM, EEPROM, and flash memory devices. The processor and memory can be supplemented by a dedicated logic circuit, or incorporated into the dedicated logic circuit.
[1084] It is intended that the specification, together with the drawings, be considered exemplary only, with exemplary representations of examples.As used herein, the use of "or" is intended to include "and / or" unless the context clearly dictates otherwise.
[1085] Although this patent document contains many details, they should not be interpreted as limitations on any invention or the scope of the claims, but rather as descriptions of specific features of specific embodiments of specific inventions. Certain features described in this patent document in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. In addition, although certain features may be described above as working in certain combinations and even initially claimed as such, one or more features from the claimed combination may be removed from the combination in some cases, and the claimed combination may involve sub-combinations or variations of sub-combinations.
[1086] Similarly, although operations are shown in a particular order in the drawings, this should not be understood as requiring such operations to be performed in a sequential order or at the particular times shown, or requiring all of the operations shown to be performed to achieve the desired results. In addition, the division of various system components among the embodiments described in this patent document should not be understood as requiring such division in all embodiments.
[1087] 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 method for processing video data, comprising: During conversion between a current chroma video block of a video and a bitstream of the video, determining chroma residual samples to which a scaling process is applied to the current chroma video block; as well as performing said conversion by applying said scaling process to said chroma residual samples, wherein, in the scaling process, the chroma residual samples are scaled based on at least one scaling factor before being used to reconstruct the current chroma video block, and wherein one or more syntax elements and a binary index identifying a segment of a piecewise linear model are used to derive the at least one scaling factor, and the one or more syntax elements are conditionally signaled, wherein the one or more syntax elements indicating parameters used to derive the piecewise linear model are included in an adaptation parameter set; a syntax element indicating selective enabling or disabling of the scaling process, if included in the bitstream, is included at a picture level associated with the current chroma video block, and The binary index is derived in the following way: checking availability of one or more neighboring luma blocks of a video unit, the video unit being determined based on luma samples corresponding to an upper left sample of the current chroma video block; determining whether to retrieve neighboring luma samples of the video unit based on availability of the one or more neighboring luma blocks, wherein the one or more neighboring luma blocks include the neighboring luma samples; and In case the neighboring luma samples are available, the binary index is derived based on an average luma variable calculated using the neighboring luma samples by an integer-based averaging operation.
2. The method according to claim 1, wherein: The value of the binary index is in the range of k0 to k1, where k0 and k1 are integers.
3. The method according to claim 2, wherein: The value of the binary index is in the range of 0 to 15.
4. The method according to claim 1, wherein: When checking the availability of one or more neighboring luminance blocks of the video unit, a first neighboring luminance block among the one or more neighboring luminance blocks is deemed unavailable in response to the first neighboring luminance block and the video unit being located in different video regions, and wherein the video region includes at least one of a codec tree unit or a codec tree unit row.
5. The method according to claim 1, wherein: The one or more syntax elements are used to represent a luma value for each segment of the piecewise linear model.
6. The method according to claim 1, wherein: The one or more syntax elements are used to represent a luma value added to a representation of each segment of the piecewise linear model.
7. The method according to claim 1, wherein: In case the color format of the video is not 4:0:0, the one or more syntax elements are included in the bitstream.
8. The method according to claim 1, wherein: The converting includes encoding the current chroma video block into the bitstream.
9. The method according to claim 1, wherein: The converting includes decoding the current chroma video block from the bitstream.
10. An apparatus for processing video data, comprising a processor and a non-transitory memory having instructions thereon, wherein: The instructions, when executed by the processor, cause the processor to: During conversion between a current chroma video block of a video and a bitstream of the video, determining chroma residual samples to which a scaling process is applied to the current chroma video block; as well as performing said conversion by applying said scaling process to said chroma residual samples, wherein, in the scaling process, the chroma residual samples are scaled based on at least one scaling factor before being used to reconstruct the current chroma video block, and wherein one or more syntax elements and a binary index identifying a segment of a piecewise linear model are used to derive the at least one scaling factor, and the one or more syntax elements are conditionally signaled, wherein the one or more syntax elements indicating parameters used to derive the piecewise linear model are included in an adaptation parameter set; a syntax element indicating selective enabling or disabling of the scaling process, if included in the bitstream, is included at a picture level associated with the current chroma video block, and The binary index is derived in the following way: checking availability of one or more neighboring luma blocks of a video unit, the video unit being determined based on luma samples corresponding to an upper left sample of the current chroma video block; determining whether to retrieve neighboring luma samples of the video unit based on availability of the one or more neighboring luma blocks, wherein the one or more neighboring luma blocks include the neighboring luma samples; and In case the neighboring luma samples are available, the binary index is derived based on an average luma variable calculated using the neighboring luma samples by an integer-based averaging operation.
11. The device according to claim 10, wherein: The value of the binary index is in the range of k0 to k1, where k0 and k1 are integers.
12. The device according to claim 11, wherein The value of the binary index is in the range of 0 to 15.
13. A non-transitory computer-readable storage medium storing instructions that cause a processor to: During conversion between a current chroma video block of a video and a bitstream of the video, determining chroma residual samples to which a scaling process is applied to the current chroma video block; as well as performing said conversion by applying said scaling process to said chroma residual samples, in, In the scaling process, the chroma residual samples are scaled based on at least one scaling factor before being used to reconstruct the current chroma video block, and wherein one or more syntax elements and a binary index identifying a segment of a piecewise linear model are used to derive the at least one scaling factor, and the one or more syntax elements are conditionally signaled, wherein the one or more syntax elements indicating parameters used to derive the piecewise linear model are included in an adaptation parameter set; a syntax element indicating selective enabling or disabling of the scaling process, if included in the bitstream, is included at a picture level associated with the current chroma video block, and The binary index is derived in the following way: checking availability of one or more neighboring luma blocks of a video unit, the video unit being determined based on luma samples corresponding to an upper left sample of the current chroma video block; determining whether to retrieve neighboring luma samples of the video unit based on availability of the one or more neighboring luma blocks, wherein the one or more neighboring luma blocks include the neighboring luma samples; and In case the neighboring luma samples are available, the binary index is derived based on an average luma variable calculated using the neighboring luma samples by an integer-based averaging operation.
14. A method for storing a bit stream of a video, comprising: For a current chroma video block of a video, determining chroma residual samples for which a scaling process is applied to the current chroma video block; generating the bitstream by applying the scaling process to the chroma residual samples; as well as storing the bitstream in a non-transitory computer-readable storage medium, wherein, in the scaling process, the chroma residual samples are scaled based on at least one scaling factor before being used to reconstruct the current chroma video block, and wherein one or more syntax elements and a binary index identifying a segment of a piecewise linear model are used to derive the at least one scaling factor, and the one or more syntax elements are conditionally signaled, wherein the one or more syntax elements indicating parameters used to derive the piecewise linear model are included in an adaptation parameter set; a syntax element indicating selective enabling or disabling of the scaling process, if included in the bitstream, is included at a picture level associated with the current chroma video block, and The binary index is derived in the following way: checking availability of one or more neighboring luma blocks of a video unit, the video unit being determined based on luma samples corresponding to an upper left sample of the current chroma video block; determining whether to retrieve neighboring luma samples of the video unit based on availability of the one or more neighboring luma blocks, wherein the one or more neighboring luma blocks include the neighboring luma samples; and In case the neighboring luma samples are available, the binary index is derived based on an average luma variable calculated using the neighboring luma samples by an integer-based averaging operation.
Citation Information
Patent Citations
Method and apparatus of simplified luma-based chroma intra prediction
CN104471940A
Grouping Palette Index At The End And Index Coding Using Palette Size And Run Value
CN107637080A
Cited By
Parameter derivation in cross component mode
US12301845B2
Signaling of reshaping information in video processing
US12445653B2
