[go: up one dir, main page]

CN113632481B - Delay reduction method and device for chroma residual scaling - Google Patents

Delay reduction method and device for chroma residual scaling Download PDF

Info

Publication number
CN113632481B
CN113632481B CN202080021613.7A CN202080021613A CN113632481B CN 113632481 B CN113632481 B CN 113632481B CN 202080021613 A CN202080021613 A CN 202080021613A CN 113632481 B CN113632481 B CN 113632481B
Authority
CN
China
Prior art keywords
processing data
chroma
luma
samples
data unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202080021613.7A
Other languages
Chinese (zh)
Other versions
CN113632481A (en
Inventor
林芷仪
庄子德
陈庆晔
徐志玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MediaTek Inc
Original Assignee
MediaTek Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MediaTek Inc filed Critical MediaTek Inc
Priority claimed from PCT/CN2020/079287 external-priority patent/WO2020187161A1/en
Publication of CN113632481A publication Critical patent/CN113632481A/en
Application granted granted Critical
Publication of CN113632481B publication Critical patent/CN113632481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

公开了一种视频解码的方法和装置。根据一种方法,色度残差缩放因子是基于并置亮度块的相邻预测或重建的亮度样本导出的,其中并置亮度块的相邻预测或重建的亮度样本对应于沿着并置亮度块的顶部边界的M个样本和沿并置亮度块的左边界的N个样本中的样本。根据导出的色度残差缩放因子,将色度缩放应用于色度残差块的色度残差样本。在另一种方法中,色度残差缩放因子是基于并置亮度处理数据单元外部的一个或多个重建的亮度样本得出的。在另一种方法中,色度残差缩放因子在数据流的APS(自适应参数集)中发信或从中解析出来。

A video decoding method and device are disclosed. According to one approach, a chroma residual scaling factor is derived based on adjacent predicted or reconstructed luma samples of a collocated luma block, where the adjacent predicted or reconstructed luma samples of the collocated luma block correspond to the adjacent predicted or reconstructed luma samples along the collocated luma Samples from M samples at the top boundary of the block and N samples along the left boundary of the collocated luma block. Applies chroma scaling to the chroma residual samples of the chroma residual block according to the derived chroma residual scaling factor. In another approach, the chroma residual scaling factor is derived based on one or more reconstructed luma samples juxtaposed outside the luma processing data unit. In another approach, the chroma residual scaling factors are signaled in or parsed out of the APS (Adaptive Parameter Set) of the data stream.

Description

色度残差缩放的延迟降低方法和装置Delay reduction method and device for chroma residual scaling

【相关申请的交叉引用】[Cross-reference to related applications]

本发明要求2019.3.15提交的申请号为No.62/818,799的美国临时专利申请、2019.3.23提交的申请号为62/822,866的美国临时专利申请、2019.4.24提交的申请号为62/837,773的美国临时专利申请、2019.6.19提交的申请号为No.62/863,333的美国临时专利申请、2019.6.26提交的申请号为No.62/866,710的美国临时专利申请、2019.7.4提交的申请号为No.62/870,757的美国临时专利申请的优先权。该美国临时专利申请的内容通过引用一并并入本说明书中。The present invention requires the U.S. Provisional Patent Application No. 62/818,799 submitted on March 15, 2019, the U.S. Provisional Patent Application No. 62/822,866 submitted on March 23, 2019, and the U.S. Provisional Patent Application No. 62/837,773 submitted on April 24, 2019. U.S. provisional patent application, U.S. provisional patent application with application number No. 62/863,333 filed on June 19, 2019, U.S. provisional patent application with application number No. 62/866,710 filed on June 26, 2019, application filed on July 4, 2019 Priority to U.S. Provisional Patent Application No. 62/870,757. The contents of this U.S. Provisional Patent Application are incorporated by reference into this specification.

【技术领域】【Technical field】

本发明涉及用于彩色视频数据的视频编解码,其中亮度映射被应用于亮度分量。特别地,本发明公开了用于导出和/或发信用于色度残差缩放的一个或多个色度缩放因子(scaling factor)的技术。The present invention relates to video codecs for color video data in which luminance mapping is applied to the luminance component. In particular, this disclosure discloses techniques for deriving and/or signaling one or more chroma scaling factors for chroma residual scaling.

【背景技术】【Background technique】

多功能视频编解码(VVC)是由联合视频专家组开发的新兴视频编解码标准,该联合视频专家组由ITU-T第16研究组视频编解码专家组和ISO/IEC JTC1SC29/WG11(运动图像专家组(Moving Picture Experts Group,简写为MPEG))组成。VVC基于HEVC(高效视频编解码)视频标准,具有改进和新的编解码工具。例如,重塑(reshap)过程是VTM-4.0(VVC测试模型4.0版)中采用的新编解码工具。重塑过程也称为LMCS(亮度映射和色度缩放(LumaMapping and Chroma Scaling))。当应用重塑时,视频样本在环路滤波(loop filter)之前在重塑域中进行编解码和重建。通过使用逆重塑,将重塑域重建的样本转换为原始域。经环路滤波的原始域重建样本存储在解码图片缓冲器中。对于帧间模式(Inter mode),通过使用前向重塑(forward reshaping)将运动补偿(MC)预测子转换为重塑域。图1示出了在解码器侧的重塑过程的示例。Versatile Video Codec (VVC) is an emerging video codec standard developed by the Joint Video Experts Group, which consists of ITU-T Study Group 16 Video Codec Expert Group and ISO/IEC JTC1SC29/WG11 (Moving Pictures Experts Group (Moving Picture Experts Group, abbreviated as MPEG)). VVC is based on the HEVC (High Efficiency Video Codec) video standard with improved and new codec tools. For example, the reshap process is a new codec tool adopted in VTM-4.0 (VVC Test Model version 4.0). The reshaping process is also called LMCS (LumaMapping and Chroma Scaling). When reshaping is applied, video samples are encoded, decoded and reconstructed in the reshape domain before loop filtering. Convert the reconstructed samples from the reshaped domain to the original domain by using inverse reshaping. The loop-filtered original domain reconstructed samples are stored in the decoded picture buffer. For Inter mode, the motion compensation (MC) predictor is converted into the reshaping domain by using forward reshaping. Figure 1 shows an example of the reshaping process on the decoder side.

如图1所示,数据流由块110中的CABAC(上下文自适应二进制算术编解码)解码器(即CABAC-1)、逆量化(即Q-1)和逆变换(T-1)得出重建的亮度残差Yres。重建的亮度残差被提供给亮度重建块120以生成重建的亮度信号。对于帧内模式,预测子来自帧内预测块130。对于帧间模式,预测子来自运动补偿块140。由于将重塑应用于编码器侧的亮度信号,在将来自运动补偿块140的预测子提供给重建块120之前,将前向重塑150用于该预测子。将逆重塑160应用于来自重建块120的重建的亮度信号以恢复未塑(un-shaped)的重建的亮度信号。然后,在将信号存储在解码图片缓冲器(DPB)180中之前,将环路滤波器170应用于未塑的重建亮度信号。As shown in Figure 1, the data stream is derived from the CABAC (Context Adaptive Binary Arithmetic Coding and Decoding) decoder (i.e. CABAC -1 ), inverse quantization (i.e. Q -1 ) and inverse transform (T -1 ) in block 110 The reconstructed brightness residual Y res . The reconstructed luminance residual is provided to luminance reconstruction block 120 to generate a reconstructed luminance signal. For intra mode, the predictor is from intra prediction block 130. For inter mode, the predictor comes from motion compensation block 140. Since reshaping is applied to the luma signal on the encoder side, forward reshaping 150 is used for the predictor from the motion compensation block 140 before it is provided to the reconstruction block 120 . Inverse reshaping 160 is applied to the reconstructed luminance signal from reconstruction block 120 to recover an un-shaped reconstructed luminance signal. A loop filter 170 is then applied to the unshaped reconstructed luminance signal before the signal is stored in a decoded picture buffer (DPB) 180.

当应用重塑时,色度残差缩放也被应用。色度残差缩放可补偿亮度信号与色度信号之间的相互作用,如图2所示。在图2中,上部对应于亮度解码,下部对应于色度解码。When reshaping is applied, chroma residual scaling is also applied. Chroma residual scaling compensates for the interaction between the luma and chroma signals, as shown in Figure 2. In Figure 2, the upper part corresponds to luma decoding and the lower part corresponds to chroma decoding.

分别根据以下方程在编码器侧和解码器侧在TU级别应用色度残差缩放:Chroma residual scaling is applied at the TU level at the encoder side and decoder side according to the following equations respectively:

编码器侧:CResScale=CRes*CScale=CRes/CScaleInv (1)Encoder side: C ResScale =C Res *C Scale =C Res /C ScaleInv (1)

解码器侧:CRes=CResScale/CScale=CResScale*CScaleInv (2)Decoder side: C Res =C ResScale /C Scale =C ResScale *C ScaleInv (2)

在以上等式中,CRes是原始色度残差信号,CResScale是缩放的色度残差信号。CScale是使用FwdLUT(即,前向查找表(forward look-up table))针对帧间模式预测子计算的缩放因子,并且被转换为其倒数CScaleInv以在解码器侧进行乘法而非除法,从而降低了实现复杂度。编码器和解码器端的缩放操作均通过定点整数算法(fixed-point integerarithmetic)通过以下公式实现:In the above equation, C Res is the original chroma residual signal and C ResScale is the scaled chroma residual signal. C Scale is the scaling factor calculated for the inter mode predictor using FwdLUT (i.e. forward look-up table) and converted to its reciprocal C ScaleInv for multiplication instead of division on the decoder side, This reduces implementation complexity. The scaling operations on the encoder and decoder sides are implemented through fixed-point integer arithmetic (fixed-point integerarithmetic) through the following formula:

c’=sign(c)*((abs(c)*s+2CSCALE_FP_PREC-1)>>c'=sign(c)*((abs(c)*s+2 CSCALE_FP_PREC-1 )>>

CSCALE_FP_PREC) (3)CSCALE_FP_PREC) (3)

在上式中,c是色度残差,s是cScaleInv[pieceIdx]中的色度残差缩放因子,pieceIdx由TU的相应平均亮度值决定,CSCALE_FP_PREC是用于指定精度的常数。为了得出缩放因子,使用了整个TU的预测子。C_ScaleInv的值是按照以下步骤计算的:In the above equation, c is the chroma residual, s is the chroma residual scaling factor in cScaleInv[pieceIdx], pieceIdx is determined by the corresponding average luminance value of the TU, and CSCALE_FP_PREC is a constant used to specify the accuracy. To derive the scaling factor, the predictor for the entire TU is used. The value of C_ScaleInv is calculated according to the following steps:

如果是帧内模式,则计算帧内预测亮度值的平均值;如果是帧间模式,则计算前向重塑的帧间预测亮度值的平均值。换句话说,在重塑域中计算平均亮度值acgY′TUIf it is intra mode, the average value of the intra prediction brightness value is calculated; if it is the inter mode, the average value of the inter prediction brightness value of the forward reshaping is calculated. In other words, the average brightness value acgY′ TU is calculated in the reshaped domain.

找到索引idx,其中avgY′TU属于逆映射PWL。Find the index idx where avgY′ TU belongs to the inverse mapping PWL.

CScaleInv=cScaleInv[idx]C ScaleInv =cScaleInv[idx]

由图2中的块210执行导出色度缩放因子CScaleInv的步骤,色度缩放因子输入到色度残差缩放块250。导出的色度缩放因子CScaleInv用于转换缩放的色度残差,其通过CABAC(上下文自适应二进制算术编解码)解码(即CABAC-1)、逆量化(即Q-1)和逆变换(T-1)来重建。重建块220通过将预测子添加到重建的色度残差来重建色度信号。对于帧内模式,预测子来自帧内预测块230。对于帧间模式,预测子来自运动补偿块240。然后,在将重建的色度信号存储在色度解码图片缓冲器(decodedpicture buffer,简写为DPB)280中之前,将环路滤波器270应用于该信号。The step of deriving the chroma scaling factor C ScaleInv is performed by block 210 in Figure 2, which is input to chroma residual scaling block 250. The derived chroma scaling factor C ScaleInv is used to transform the scaled chroma residuals via CABAC (Context Adaptive Binary Arithmetic Coding) decoding (i.e. CABAC -1 ), inverse quantization (i.e. Q -1 ) and inverse transform ( T -1 ) to rebuild. Reconstruction block 220 reconstructs the chroma signal by adding predictors to the reconstructed chroma residual. For intra mode, the predictor is from intra prediction block 230. For inter mode, the predictor comes from motion compensation block 240. A loop filter 270 is then applied to the reconstructed chroma signal before it is stored in a chroma decoded picture buffer (DPB) 280 .

图3示出了亮度映射的示例。在图3A中,示出了1:1映射,其中输出(即,重塑的亮度)与输入相同。由于亮度样本的直方图通常不是平坦的,因此使用强度重塑可以帮助提高RDO(rate-distortion optimization,速率失真优化)方面的性能。针对图像区域(例如图片)计算亮度样本的统计量。然后根据统计确定映射曲线。通常,使用分段线性(piece-wiselinear,简写为PWL)映射曲线。图3B示出了具有3个片段的分段线性(PWL)映射的示例,其中两个相邻片段具有不同的斜率。虚线340对应于1:1映射。如果范围从0到340的样本具有较大的空间变异(spatial variance)并且出现的次数(number of occurrences)较小,则将输入范围0-340映射到较小的输出范围(即0-170),如图3B的线段310所示。如果范围从340到680的样本具有较小的空间变异并且出现次数较大,则将输入范围340-680映射到较大的输出范围(即170-850),如图3B的线段320所示。如果范围从680到1023的样本具有较大的空间变异并且出现的次数较小,则将输入范围680-1023映射到较小的输出范围(即850-1023),如图3B的线段330所示。图3B旨在示出简单的PWL映射。实际上,PWL映射可以具有更多或更少的段。Figure 3 shows an example of brightness mapping. In Figure 3A, a 1:1 mapping is shown, where the output (i.e., the reshaped brightness) is the same as the input. Since the histogram of luminance samples is usually not flat, using intensity reshaping can help improve performance in terms of RDO (rate-distortion optimization). Computes statistics for luma samples for an image region (such as a picture). The mapping curve is then statistically determined. Usually, piece-wiselinear (PWL) mapping curve is used. Figure 3B shows an example of a piecewise linear (PWL) map with 3 segments, where two adjacent segments have different slopes. Dashed line 340 corresponds to a 1:1 mapping. If the samples ranging from 0 to 340 have a large spatial variance and a small number of occurrences, map the input range 0-340 to a smaller output range (i.e. 0-170) , shown as line segment 310 in Figure 3B. If the samples ranging from 340 to 680 have small spatial variation and a large number of occurrences, then the input range 340-680 is mapped to a larger output range (i.e., 170-850), as shown by line segment 320 in Figure 3B. If the samples ranging from 680 to 1023 have large spatial variation and a small number of occurrences, then the input range 680-1023 is mapped to a smaller output range (i.e., 850-1023), as shown in line segment 330 of Figure 3B . Figure 3B is intended to show a simple PWL mapping. In practice, a PWL map can have more or fewer segments.

帧内子块划分(Intra sub-block partition,简写为ISP)和子块变换(sub-blocktransform,简写为SBT)Intra sub-block partition (ISP) and sub-block transform (SBT)

为了生成更好的帧内模式预测子,可以应用帧内子块划分(ISP)。当应用ISP时,亮度分量被分为多个子TB。子TB逐个重建。对于每个子TU,相邻子TB的重建样本可以用作帧内预测的相邻重建样本。对于色度分量TB,不会像亮度那样将其分为多个子TB。In order to generate better intra mode predictors, intra sub-block partitioning (ISP) can be applied. When ISP is applied, the luminance component is divided into multiple sub-TBs. Sub-TBs are rebuilt one by one. For each sub-TU, the reconstructed samples of adjacent sub-TBs can be used as adjacent reconstructed samples for intra prediction. For the chroma component TB, it is not divided into multiple sub-TBs like the luma.

类似于ISP,子块变换(SBT)可以应用于帧间模式。应用SBT时,仅部分CU数据被转换。例如,可以通过水平分割或垂直分割将当前块分成两个分区。只能将一个分区用于转换编解码。另一个分区的残差设置为零。例如,CU被分为两个TU或四个TU。TU中只有一个具有非零系数。Similar to ISP, sub-block transform (SBT) can be applied in inter mode. When applying SBT, only part of the CU data is converted. For example, the current block can be divided into two partitions by horizontal split or vertical split. Only one partition can be used for converting codecs. The residual of the other partition is set to zero. For example, a CU is divided into two TUs or four TUs. Only one of the TUs has non-zero coefficients.

LMCS参数的信令(signaling)Signaling of LMCS parameters

表1中显示了VVC正在考虑的LMCS参数的语法表。A syntax table for the LMCS parameters being considered by VVC is shown in Table 1.

表1.Table 1.

在以上语法表中,语法的语义定义如下:In the above grammar table, the semantics of the grammar are defined as follows:

lmcs_min_bin_idx指定亮度映射的PWL(逐段线性)模型的最小数据子(bin)索引lmcs_min_bin_idx specifies the minimum data sub(bin) index of the PWL (piecewise linear) model for brightness mapping

lmcs_delta_max_bin_idx指定介于15和lmcs中使用的最大数据子索引LmcsMaxBinIdx之间的增量值(delta value)。该值应在1到15(含)范围内。lmcs_delta_max_bin_idx specifies a delta value between 15 and the maximum data subindex used in lmcs, LmcsMaxBinIdx. The value should be in the range 1 to 15 (inclusive).

lmcs_delta_cw_prec_minus1加1是用于表示语法lmcs_delta_abs_cw[i]的数据数。lmcs_delta_cw_prec_minus1 plus 1 is the number of data used to represent the syntax lmcs_delta_abs_cw[i].

lmcs_delta_abs_cw[i]是第i个数据子的绝对增量码字值(absolute deltacodeword value)。lmcs_delta_abs_cw[i] is the absolute deltacodeword value of the i-th data element.

lmcs_delta_sign_cw_flag[i]是变量lmcsDeltaCW[i]的正负号(sign)。lmcs_delta_sign_cw_flag[i] is the sign of variable lmcsDeltaCW[i].

变量lmcsDeltaCW[i]如下导出:The variable lmcsDeltaCW[i] is derived as follows:

lmcsDeltaCW[i]=lmcsDeltaCW[i]=

(1-2*lmcs_delta_sign_cw_flag[i])*lmcs_delta_abs_cw[i].(1-2*lmcs_delta_sign_cw_flag[i])*lmcs_delta_abs_cw[i].

变量lmcsCW[i]指定映射的域中每个间隔的码字的数量,其中i=0…15。其可如下导出:The variable lmcsCW[i] specifies the number of codewords for each interval in the mapped domain, where i=0...15. It can be exported as follows:

OrgCW=(1<<BitDepthY)/16OrgCW=(1<<BitDepthY)/16

对于i=0…lmcs_min_bin_idx-1,lmcsCW[i]设置为等于0。For i=0...lmcs_min_bin_idx-1, lmcsCW[i] is set equal to 0.

对于i=lmcs_min_bin_idx...LmcsMaxBinIdx,以下适用:For i=lmcs_min_bin_idx...LmcsMaxBinIdx, the following applies:

lmcsCW[i]=OrgCW+lmcsDeltaCW[i]lmcsCW[i]=OrgCW+lmcsDeltaCW[i]

lmcsCW[i]的值应在(OrgCW>>3)至(OrgCW<<3-1)的范围内(包括(OrgCW>>3)和(OrgCW<<3-1))。The value of lmcsCW[i] should be in the range from (OrgCW>>3) to (OrgCW<<3-1) (including (OrgCW>>3) and (OrgCW<<3-1)).

对于i=LmcsMaxBinIdx+1…15,lmcsCW[i]设置为等于0。For i=LmcsMaxBinIdx+1…15, lmcsCW[i] is set equal to 0.

为了表示重塑曲线的PWL模型,如下导出三个变量LmcsPivot[i](i=0…16),ScaleCoeff[i](i=0…15),以及InvScaleCoeff[i](i=0…15):In order to represent the PWL model of the reshaped curve, three variables LmcsPivot[i](i=0…16), ScaleCoeff[i](i=0…15), and InvScaleCoeff[i](i=0…15) are derived as follows :

在以上推导中,SCALE_FP_PREC是用于指定精度的常数值。In the above derivation, SCALE_FP_PREC is a constant value used to specify the precision.

在LMCS过程中,由于依赖于相应的亮度数据,色度残差缩放的延迟可能会对处理速度产生负面影响。因此,期望开发出减少色度残差缩放的延迟的方法和装置。In the LMCS process, the delay in scaling of the chroma residuals may have a negative impact on the processing speed due to the dependence on the corresponding luma data. Therefore, it is desirable to develop methods and apparatus that reduce the delay of chroma residual scaling.

【发明内容】[Content of the invention]

公开了视频解码的方法和装置。根据本发明的一种方法,接收当前色度残差块。基于并置亮度块的相邻预测或重建的亮度样本,得出一个或多个色度残差缩放因子,其中,与当前色度残差块相关联的并置亮度块的邻近预测或重建的亮度样本对应于沿并置亮度块的顶部边界的M个样本和沿并置亮度块的左边界的N个样本中的样本,其中M和N为正整数。根据导出的所述一个或多个色度残差缩放因子,将色度缩放应用于当前色度残差块的色度残差样本。Video decoding methods and devices are disclosed. According to a method of the invention, a current chroma residual block is received. One or more chroma residual scaling factors are derived based on neighboring predicted or reconstructed luma samples of the collocated luma block, where Luminance samples correspond to samples among the M samples along the top boundary of the collocated luma block and the N samples along the left boundary of the collocated luma block, where M and N are positive integers. Chroma scaling is applied to the chroma residual samples of the current chroma residual block based on the derived one or more chroma residual scaling factors.

在一个实施例中,并置亮度块的相邻预测或重建的亮度样本对应于沿并置亮度块的顶部边界的M个样本。在另一实施例中,并置亮度块的相邻预测或重建的亮度样本对应于沿并置亮度块的左边界的N个样本。在又一个实施例中,并置亮度块的相邻预测或重建的亮度样本既对应于沿并置亮度块的顶部边界的M个样本,又对应于沿并置亮度块的左边界的N个样本。In one embodiment, adjacent predicted or reconstructed luma samples of a collocated luma block correspond to M samples along the top boundary of the collocated luma block. In another embodiment, adjacent predicted or reconstructed luma samples of a collocated luma block correspond to N samples along the left boundary of the collocated luma block. In yet another embodiment, adjacent predicted or reconstructed luma samples of a collocated luma block correspond to both M samples along the top boundary of the collocated luma block and N samples along the left boundary of the collocated luma block. sample.

在一个实施例中,如果在并置亮度块的左上位置处的边界样本可用,则在并置亮度块的左上位置处的边界样本用于导出所述一个或多个色度残差缩放因子。如果在并置亮度块的左上位置处的边界样本不可用,则沿并置亮度块的左边界的左边界样本或沿并置亮度块的顶部边界的顶部边界样本被用来推导表示一个或多个色度残差缩放因子。In one embodiment, the boundary sample at the upper left position of the collocated luma block is used to derive the one or more chroma residual scaling factors, if the boundary sample at the upper left position of the collocated luma block is available. If the boundary sample at the upper left position of the collocated luma block is not available, the left boundary sample along the left boundary of the collocated luma block or the top boundary sample along the top boundary of the collocated luma block is used to derive the representation of one or more chroma residual scaling factor.

根据另一种方法,接收与图片中的当前色度处理数据单元相关联的色度残差数据,其中将图片划分为多个不重迭的处理数据单元,并且每个处理数据单元包括亮度处理数据单元和一个或多个色度处理数据单元。基于与当前色度处理数据单元相关联的并置亮度处理数据单元外部的一个或多个重建的亮度样本,得出一个或多个色度残差缩放因子。然后根据导出的所述一个或多个色度残差缩放因子,将色度缩放应用于当前色度处理数据单元的色度残差样本。根据该方法的变型,基于来自覆盖并置亮度处理数据单元的左上位置的第一编解码单元(CU)的一个或多个重建的亮度样本,导出色度残差缩放因子。According to another method, chroma residual data associated with a current chroma processing data unit in a picture is received, wherein the picture is divided into a plurality of non-overlapping processing data units, and each processing data unit includes a luma processing data unit and one or more chroma processing data units. One or more chroma residual scaling factors are derived based on one or more reconstructed luma samples external to a collocated luma processing data unit associated with the current chroma processing data unit. Chroma scaling is then applied to the chroma residual samples of the current chroma processing data unit based on the derived one or more chroma residual scaling factors. According to a variant of the method, a chroma residual scaling factor is derived based on one or more reconstructed luma samples from a first codec unit (CU) covering the upper left position of the collocated luma processing data unit.

在一个实施例中,在覆盖并置亮度处理数据单元的第一编解码单元(CU)外部的所述一个或多个重建的亮度样本对应于一个或多个先前编解码的亮度处理数据单元的一个或多个重建的亮度样本。在另一实施例中,所述一个或多个先前编解码的亮度处理数据单元的所述一个或多个重建的亮度样本对应于沿着覆盖并置的亮度的第一编解码单元(CU)的顶部边界的一个或多个重建的亮度样本、沿着覆盖并置的亮度的第一编解码单元(CU)的左边界的一个或多个重建的亮度样本,或两者。In one embodiment, the one or more reconstructed luma samples outside a first codec unit (CU) covering a collocated luma processing data unit correspond to one or more previously codec luma processing data units. One or more reconstructed brightness samples. In another embodiment, the one or more reconstructed luma samples of the one or more previously codec luma processing data units correspond to a first codec unit (CU) along the covering collocated luma one or more reconstructed luma samples along the top boundary of the CU, one or more reconstructed luma samples along the left boundary of the first codec unit (CU) covering the collocated luma, or both.

在一个实施例中,在并置亮度处理数据单元外部的重建的亮度样本对应于一个或多个先前解码的亮度处理数据单元的一个或多个重建的亮度样本。例如,所述一个或多个先前解码的亮度处理数据单元的重建的亮度样本对应于沿着并置亮度处理数据单元的顶部边界的一个或多个重建的亮度样本、沿着并置亮度处理数据单元的左边界的一个或多个重建的亮度样本,或两者。In one embodiment, the reconstructed luma samples outside the collocated luma processing data unit correspond to one or more reconstructed luma samples of one or more previously decoded luma processing data units. For example, the reconstructed luma samples of the one or more previously decoded luma processing data units correspond to one or more reconstructed luma samples along the top boundary of the collocated luma processing data unit, along the collocated luma processing data unit One or more reconstructed luminance samples, or both, of the cell's left boundary.

在又一方法中,在编码器侧的视频数据流的APS(Adaptation Parameter Set,适应参数集)级别中信令一个或多个色度残差缩放因子,或者在解码器侧从视频数据流的APS级别解析一个或多个色度残差缩放因子。In yet another method, one or more chroma residual scaling factors are signaled in the APS (Adaptation Parameter Set) level of the video data stream on the encoder side, or from the decoder side The APS level resolves one or more chroma residual scaling factors.

【附图说明】[Picture description]

图1示出了结合了亮度重塑过程的视频解码器的示例性框图。Figure 1 shows an exemplary block diagram of a video decoder incorporating a brightness reshaping process.

图2示出了结合了亮度重塑过程和色度缩放的视频解码器的示例性框图。Figure 2 shows an exemplary block diagram of a video decoder that combines a luma reshaping process and chroma scaling.

图3A示出了1:1亮度映射的示例,其中输出(即重塑的亮度)与输入相同。Figure 3A shows an example of a 1:1 brightness mapping, where the output (i.e. the reshaped brightness) is the same as the input.

图3B示出了具有3个分段的分段线性(PWL)亮度映射的示例。Figure 3B shows an example of piecewise linear (PWL) brightness mapping with 3 segments.

图4示出了根据本发明实施例的基于沿着VPDU顶部边界、左边界或两者的参考重建的亮度样本来导出色度缩放因子的示例。Figure 4 shows an example of deriving a chroma scaling factor based on reference reconstructed luma samples along a VPDU top boundary, a left boundary, or both, according to an embodiment of the present invention.

图5示出了根据本发明的实施例的基于参考重建的亮度样本TL、A或L位置导出色度缩放因子的示例。Figure 5 shows an example of deriving a chroma scaling factor based on a reference reconstructed luminance sample TL, A or L position according to an embodiment of the present invention.

图6示出了根据本发明实施例的用于基于并置亮度块的相邻预测或重建的亮度样本来推导一个或多个色度残差缩放因子的示例性解码系统的流程图。6 illustrates a flowchart of an exemplary decoding system for deriving one or more chroma residual scaling factors based on neighboring predicted or reconstructed luma samples of collocated luma blocks in accordance with an embodiment of the present invention.

图7示出了根据本发明的一个实施例的另一示例性解码系统的流程图,其用于基于并置亮度处理数据单元外部的一个或多个重建的亮度样本来导出一个或多个色度残差缩放因子。7 illustrates a flowchart of another exemplary decoding system for deriving one or more colors based on one or more reconstructed luma samples external to a collocated luma processing data unit in accordance with one embodiment of the present invention. Residual scaling factor.

图8示出了示例性的编解码系统的流程图,其中,根据本发明的实施例,在编码器侧的视频数据流的APS(自适应参数集)级别中信令一个或多个色度残差缩放因子,或者从解码器侧的视频数据流的APS级别解析一个或多个色度残差缩放因子。Figure 8 shows a flowchart of an exemplary codec system in which one or more chromas are signaled in the APS (Adaptive Parameter Set) level of the video data stream at the encoder side according to an embodiment of the invention. Residual scaling factors, or one or more chroma residual scaling factors parsed from the APS level of the video data stream on the decoder side.

【具体实施方式】【Detailed ways】

以下描述是实施本发明的最佳构想模式。进行该描述是为了说明本发明的一般原理,而不应被认为是限制性的。本发明的范围最好通过参考所附的权利要求来确定。The following description is of the best mode contemplated for carrying out the invention. This description is made to illustrate the general principles of the invention and should not be considered limiting. The scope of the invention can best be determined by reference to the appended claims.

在色度残差缩放中,对于色度TU,所有相应的亮度预测子用于导出一个单个缩放因子。在导出缩放因子之前,无法处理色度样本重建。它为跨组件过程引入了新的数据依赖性,从而导致色度样本重建的延迟更长。在VVC中,引入了一些解码器辅助工具来完善亮度预测子,以提高编解码效率。这些类型的编解码工具还将增加重建循环的关键路径。在帧间和帧内模式预测中,CU/PU/TU的预测样本可以分为多个MxN块,并且可以按顺序或并行处理这些块。In chroma residual scaling, for a chroma TU, all corresponding luma predictors are used to derive a single scaling factor. Chroma sample reconstruction cannot be processed until scaling factors are exported. It introduces new data dependencies to the cross-component process, resulting in longer delays in chroma sample reconstruction. In VVC, some decoder auxiliary tools are introduced to improve the brightness predictor to improve encoding and decoding efficiency. These types of codec tools will also add to the critical path of the reconstruction loop. In inter and intra mode prediction, prediction samples of CU/PU/TU can be divided into multiple MxN blocks, and these blocks can be processed sequentially or in parallel.

在一个实施例中,为了减少色度样本重建的延迟,对于CU/PU/TU,它仅使用其左上方的KxL亮度样本(例如,亮度预测子或亮度重建样本或亮度残差)或左上角M个亮度样本用于导出一个或多个色度残差缩放因子。K和L可以等于1、2、4、8、16、32或64。一个或多个缩放因子用于整个色度TU。例如,使用左上方的16x15亮度样本。在另一个示例中,使用了左上方的1x1亮度样本。在另一个示例中,使用了左上方的256个亮度样本。在另一个示例中,使用了左上方的1亮度样本。在另一个示例中,如果亮度CU/TU的宽度和高度大于或等于16,则使用左上16x16亮度样本;否则,最多使用256个左上角的亮度样本。在一个示例中,当应用ISP时,仅使用第一个ISP子TB的左上KxL块或左上M个样本来得出色度残差缩放因子。在另一个示例中,当应用SBT时,仅使用具有非零系数的TU的左上KxL块或左上M个样本来得出缩放因子。在另一个实施例中,仅一部分相应的亮度样本被用于导出色度残差缩放因子。例如,内部并置的亮度CT/TU/PU边界样本的一部分,例如内部并置的亮度CT/TU/PU边界样本的顶行(top-row)的一部分和左列的一部分,用于导出色度剩余缩放因子。In one embodiment, to reduce the latency of chroma sample reconstruction, for a CU/PU/TU, it only uses its upper left KxL luma samples (e.g., luma predictors or luma reconstruction samples or luma residuals) or its upper left corner M luma samples are used to derive one or more chroma residual scaling factors. K and L can be equal to 1, 2, 4, 8, 16, 32 or 64. One or more scaling factors are used for the entire chroma TU. For example, use the 16x15 luma sample at the top left. In another example, the top left 1x1 luma sample is used. In another example, the 256 luminance samples from the upper left are used. In another example, the 1 luma sample from the upper left is used. In another example, if the width and height of the luma CU/TU are greater than or equal to 16, then the top left 16x16 luma samples are used; otherwise, up to 256 top left luma samples are used. In one example, when ISP is applied, only the upper left KxL block or the upper left M samples of the first ISP sub-TB are used to derive the chroma residual scaling factor. In another example, when applying SBT, only the upper left KxL blocks or upper left M samples of the TU with non-zero coefficients are used to derive the scaling factor. In another embodiment, only a portion of the corresponding luma samples are used to derive the chroma residual scaling factor. For example, a portion of the top-row and a portion of the left column of the internally collocated luma CT/TU/PU boundary samples are used to export the color degree remaining scaling factor.

在另一个实施例中,为了减少用于CU/PU/TU的色度样本重建的延迟,仅使用沿当前TB的相邻边界样本(即,对应的亮度样本或称为并置的亮度样本)得出一个或多个色度残差缩放因子。样本可以是相邻块的预测样本或重建样本。在一实施例中,沿着顶部边界的M个样本被用于导出一个或多个色度残差缩放因子。在一实施例中,沿着左边界的N个样本被用于导出一个或多个色度残差缩放因子。在一实施例中,沿着顶部边界的M个样本和沿着左边界的N个样本被用于导出一个或多个色度残差缩放因子。在此,M和N可以是1、2、4、8、16、32或64。在另一个实施例中,使用位于L形边界左上角位置的样本来导出一个或多个色度残差缩放因子。在另一个实施例中,如果左上相邻样本可用,则使用样本。否则,使用顶部相邻样本之一或左侧相邻样本之一。在一个示例中,如果以上样本均不可用,则使用并置亮度块中的左上样本。一个或多个缩放因子用于整个色度TU。In another embodiment, to reduce the latency of chroma sample reconstruction for a CU/PU/TU, only adjacent boundary samples along the current TB are used (i.e., corresponding luma samples or called collocated luma samples) Returns one or more chroma residual scaling factors. The samples can be predicted samples or reconstructed samples of neighboring blocks. In one embodiment, M samples along the top boundary are used to derive one or more chroma residual scaling factors. In one embodiment, N samples along the left boundary are used to derive one or more chroma residual scaling factors. In one embodiment, M samples along the top boundary and N samples along the left boundary are used to derive one or more chroma residual scaling factors. Here, M and N can be 1, 2, 4, 8, 16, 32 or 64. In another embodiment, one or more chroma residual scaling factors are derived using samples located at the upper left corner of the L-shaped boundary. In another embodiment, the sample is used if the upper left neighbor sample is available. Otherwise, use one of the top adjacent samples or one of the left adjacent samples. In one example, if none of the above samples are available, the top left sample in the collocated luma block is used. One or more scaling factors are used for the entire chroma TU.

在另一个实施例中,为了减少在应用色度残差缩放时色度样本重建的延迟,建议将色度TU划分为子块,例如KxL子块或块大小等于M的子块。K和L可以是2、4、8、16或32;M可以是4、8、16、32、64、128、256、512或1024。对于每个KxL色度残差子块,都会得出一个或多个缩放因子。不同的KxL色度残差子块可以具有不同的缩放因子。例如,对于M×N块,其中M大于K(即,宽度阈值)并且N小于L(即,高度阈值),该M×N块被划分为M/K个大小为(K×N)的块。In another embodiment, to reduce the latency of chroma sample reconstruction when applying chroma residual scaling, it is proposed to partition the chroma TU into sub-blocks, such as KxL sub-blocks or sub-blocks with a block size equal to M. K and L can be 2, 4, 8, 16 or 32; M can be 4, 8, 16, 32, 64, 128, 256, 512 or 1024. For each KxL chroma residual sub-block, one or more scaling factors are derived. Different KxL chroma residual sub-blocks can have different scaling factors. For example, for an M×N block, where M is larger than K (i.e., the width threshold) and N is smaller than L (i.e., the height threshold), the M×N block is divided into M/K blocks of size (K×N) .

在另一实施例中,当色度残差TU的大小/面积/宽度/高度小于第一阈值或大于第二阈值时,不应用色度残差缩放。例如,当TU大小小于或等于8或16或64时,将禁用色度残差缩放。在另一个示例中,当TU宽度或高度小于或等于2或4或8或16时,将禁用色度残差缩放。在另一个示例中,当TU大小大于或等于16、64、256或1024时,禁用色度残差缩放。在另一个示例中,在TU宽度或高度大于或等于8或16或32时,禁用色度残差缩放。在另一个示例中,对于某些预测模式,色度残差缩放禁用。例如,对于启用了DMVR模式、BIO模式、LIC模式、扩散模式或启用这些模式的组合的块,禁用色度残差缩放。In another embodiment, when the size/area/width/height of the chroma residual TU is less than the first threshold or greater than the second threshold, no chroma residual scaling is applied. For example, chroma residual scaling is disabled when the TU size is less than or equal to 8 or 16 or 64. In another example, chroma residual scaling is disabled when the TU width or height is less than or equal to 2 or 4 or 8 or 16. In another example, chroma residual scaling is disabled when the TU size is greater than or equal to 16, 64, 256, or 1024. In another example, chroma residual scaling is disabled when the TU width or height is greater than or equal to 8 or 16 or 32. In another example, chroma residual scaling is disabled for certain prediction modes. For example, chroma residual scaling is disabled for blocks that have DMVR mode, BIO mode, LIC mode, diffusion mode, or a combination of these modes enabled.

DMVR(解码器侧运动向量精化(refinement))是近年来开发的新的编解码工具。DMVR在解码器端导出MV精化信息,以提高编解码性能。BIO是近年来开发的另一种新的编解码工具。BIO根据光流和稳定运动的假设得出样本级运动精化,其中B切片(双向预测切片)中的当前像素由参考图片0中的一个像素和参考图片1中的一个像素预测的。LIC(LocalIllumination Compensation,局部照明补偿)是一种使用当前块和参考块的相邻样本来执行帧间预测的方法。它基于使用缩放因子和偏移量的线性模型。DMVR (decoder side motion vector refinement) is a new encoding and decoding tool developed in recent years. DMVR exports MV refinement information on the decoder side to improve encoding and decoding performance. BIO is another new encoding and decoding tool developed in recent years. BIO derives sample-level motion refinement based on the assumptions of optical flow and stable motion, where the current pixel in the B slice (bidirectionally predicted slice) is predicted by a pixel in reference picture 0 and a pixel in reference picture 1. LIC (LocalIllumination Compensation) is a method that uses adjacent samples of the current block and the reference block to perform inter-frame prediction. It is based on a linear model using scaling factors and offsets.

在一个实施例中,当应用ISP时,仅亮度子TB的一部分用于导出色度残差缩放因子。例如,仅第一亮度TB用于导出色度残差缩放因子。使用第一亮度TB生成缩放因子可以减少色度样本重建的延迟。在另一示例中,仅最后的亮度TB被用于导出色度残差缩放因子。In one embodiment, when ISP is applied, only a portion of the luma sub-TB is used to derive the chroma residual scaling factor. For example, only the first luminance TB is used to derive the chroma residual scaling factor. Using the first luma TB to generate scaling factors can reduce the delay in chroma sample reconstruction. In another example, only the last luminance TB is used to derive the chroma residual scaling factor.

在另一个实施例中,当应用ISP时,每个亮度子TB可被视为一个单独的TB。对于每个子TB,它可以计算自己的色度残差缩放因子。以上提出的方法也可以被应用,例如,将每个亮度子TB划分为几个KxL子块,并为每个子块导出缩放因子。对于色度TB,即使在进行变换时不像亮度那样将其划分为多个子TB,但在进行色度残差缩放时,也将色度TB划分为多个子区域。每个子区域对应一个亮度TB;每个子区域对应一个或多个亮度子TB;或一个或多个色度子区域对应一个亮度子TB。对于每个色度子区域,如果将亮度子TB划分为多个子块以导出缩放因子,则可以将其进一步划分为多个子块。In another embodiment, when applying ISP, each luma sub-TB can be treated as a separate TB. For each sub-TB, it can calculate its own chroma residual scaling factor. The method proposed above can also be applied, for example, dividing each luma sub-TB into several KxL sub-blocks and deriving a scaling factor for each sub-block. For chroma TB, even if it is not divided into multiple sub-TBs like luminance when performing transformation, chroma TB is also divided into multiple sub-regions when performing chroma residual scaling. Each sub-region corresponds to a brightness TB; each sub-region corresponds to one or more brightness sub-TBs; or one or more chroma sub-regions correspond to a brightness sub-TB. For each chroma sub-region, if the luma sub-TB is divided into sub-blocks to derive the scaling factor, it can be further divided into sub-blocks.

在另一个实施例中,当应用SBT时,仅使用具有非零系数的亮度分区导出色度残差缩放因子。所使用的亮度分区可以被划分为子块,以导出缩放因子。在另一实施例中,当应用SBT时,整个CU的亮度样本可用于导出一个或多个缩放因子。In another embodiment, when applying SBT, only luma partitions with non-zero coefficients are used to derive the chroma residual scaling factors. The brightness partition used can be divided into sub-blocks to derive the scaling factor. In another embodiment, when applying SBT, the luma samples of the entire CU can be used to derive one or more scaling factors.

在另一个实施例中,CU(不是TU或TB)的亮度样本用于导出色度残差缩放因子。当应用ISP时,整个亮度CU样本将用于得出色度残差缩放因子。例如,可以将亮度CU样本划分为子块,以针对不同的子块导出不同的缩放因子。子块可以跨越ISP子TB边界。In another embodiment, the luma samples of a CU (not a TU or TB) are used to derive the chroma residual scaling factor. When ISP is applied, the entire luma CU sample will be used to derive the chroma residual scaling factor. For example, luma CU samples can be divided into sub-blocks to derive different scaling factors for different sub-blocks. Sub-blocks can span ISP sub-TB boundaries.

在另一个实施例中,对于应用变换或不应用变换(例如变换跳过),色度残差缩放因子推导可以不同。对于色度残差缩放因子推导,值/因子/常数或方程序可以不同。在另一个实施例中,对于不同的预测模式或不同的残差能量水平,色度残差缩放因子推导可以不同。In another embodiment, the chroma residual scaling factor derivation may be different for applying a transform or not (eg, transform skipping). For chroma residual scaling factor derivation, the values/factors/constants or equations can be different. In another embodiment, the chroma residual scaling factor derivation may be different for different prediction modes or different residual energy levels.

在编码器侧,缩放因子推导通常包括推导用于量化参数的λ。在一个实施例中,整个TU预测数据用于导出λ值。对于色度残差缩放,TU仍分为子块。每个子块可以导出其自己的缩放因子。On the encoder side, scaling factor derivation typically involves deriving λ for the quantization parameter. In one embodiment, the entire TU prediction data is used to derive the lambda value. For chroma residual scaling, the TU is still divided into sub-blocks. Each sub-block can derive its own scaling factor.

在BIO和DMVR过程中,将遇到相同类型的过程问题。例如,对于BIO过程,执行TU/PU/CU级别的SAD(sum of absolute differences,绝对差之和)计算。如果计算出的成本足够小,则可以禁用BIO过程。对于DMVR过程,如果整个CU/PU/TU用于推导一个MV差(MVD),则这不是友好的设计。因此,提出了将BIO与DMVR对准,或者甚至将BIO和/或DMVR与色度残差缩放过程对准,这将当前块划分为KxL个块。例如,对于BIO和DMVR进程,当前块分为KxL个块。对于每个KxL块,它都可以计算其BIO提前终止决策的成本,也可以使用DMVR过程得出自己的MVD。在另一个示例中,对于BIO或DMVR过程,当前块被划分为用于执行BIO和DMVR过程的KxL块,其中KxL(以亮度样本精度为单位)的大小与色度残差缩放过程的基本单位相同。The same types of process issues will be encountered during the BIO and DMVR processes. For example, for the BIO process, SAD (sum of absolute differences) calculation at the TU/PU/CU level is performed. If the calculated cost is small enough, the BIO process can be disabled. For the DMVR process, if the entire CU/PU/TU is used to derive an MV difference (MVD), this is not a friendly design. Therefore, it is proposed to align the BIO with DMVR, or even align the BIO and/or DMVR with the chroma residual scaling process, which divides the current block into KxL blocks. For example, for BIO and DMVR processes, the current block is divided into KxL blocks. For each KxL block, it can calculate the cost of its BIO early termination decision, or it can derive its own MVD using the DMVR process. In another example, for BIO or DMVR processes, the current block is divided into KxL blocks for performing BIO and DMVR processes, where the size of KxL (in luma sample precision) is the same as the base unit of the chroma residual scaling process same.

在另一个实施例中,不同模式可以在不同位置使用参考亮度样本。In another embodiment, different modes may use reference brightness samples at different locations.

在一个实施例中,对于可以参考相邻的重建样本以进行预测过程的块,用于缩放值推导的参考亮度样本来自用于生成当前CU或TU的预测子的相邻的重建样本或参考边界样本。例如,如果当前块是帧内预测模式,则参考亮度样本是当前CU的左上、上,或左参考边界样本。因此,对于帧内子分区预测(ISP)模式,色度残差缩放值是使用当前CU/TU(不是子分区TU)的L形边界重建样本的左上角、上或左侧边界重建样本导出的。在另一个示例中,如果当前块是帧内预测模式,则参考亮度样本是当前TU的左上参考边界样本。因此,对于帧内子分区预测(ISP)模式,使用当前TU(子分区)的L形边界重建样本的左上、上或左边界重建样本来导出色度残差缩放值。左上L形边界重建样本可以是一个样本。In one embodiment, for blocks that can refer to adjacent reconstructed samples for the prediction process, the reference luma samples used for scaling value derivation are from adjacent reconstructed samples or reference boundaries used to generate predictors for the current CU or TU. sample. For example, if the current block is in intra prediction mode, the reference luma sample is the upper left, upper, or left reference boundary sample of the current CU. Therefore, for Intra Subpartition Prediction (ISP) mode, the chroma residual scaling values are derived using the upper left, upper, or left boundary reconstruction samples of the L-shaped boundary reconstruction samples of the current CU/TU (not the subpartition TU). In another example, if the current block is in intra prediction mode, the reference luma sample is the upper left reference boundary sample of the current TU. Therefore, for intra sub-partition prediction (ISP) mode, the chroma residual scaling value is derived using the upper, upper or left boundary reconstruction samples of the L-shaped boundary reconstruction sample of the current TU (sub-partition). The upper left L-shaped boundary reconstruction sample may be one sample.

在另一个示例中,如果当前CU是帧间预测模式,但是通过组合帧间/帧内模式(CIIP)或需要相邻重建样本的其他预测方法来预测,则参考亮度样本可以是参考边界重建样本或者是用于生成当前CU或TU的预测子的参考边界样本(例如,使用左上相邻重建样本),如上所述。如本领域中已知的,CIIP是近年来开发的又一种编解码工具。CIIP使用帧间和帧内预测信号的加权平均值来获得CIIP预测。In another example, if the current CU is in inter prediction mode but predicted by combined inter/intra mode (CIIP) or other prediction methods that require adjacent reconstructed samples, the reference luma samples can be reference boundary reconstructed samples Or the reference boundary sample used to generate the predictor for the current CU or TU (e.g., using the upper left neighbor reconstructed sample), as described above. As is known in the art, CIIP is another codec tool developed in recent years. CIIP uses a weighted average of inter- and intra-prediction signals to obtain CIIP predictions.

在另一实施例中,如果当前块是帧间预测模式,则参考亮度样本可以是当前CU或TU的左上角亮度预测样本。In another embodiment, if the current block is in inter prediction mode, the reference luma sample may be the upper left corner luma prediction sample of the current CU or TU.

在一个实施例中,如果是CIIP模式,则参考亮度样本是帧间预测子的左上角亮度预测样本。In one embodiment, if it is CIIP mode, the reference luma sample is the upper left corner luma prediction sample of the inter predictor.

在另一个实施例中,如果当前块是除了CIIP模式之外的帧间预测模式,则参考亮度样本可以是当前CU或TU的左上角亮度预测样本。在该实施例中,以CIIP模式编解码的块被视为帧内预测模式,并且可以应用与帧内预测模式有关的任何上述方法。In another embodiment, if the current block is in inter prediction mode other than CIIP mode, the reference luma sample may be the upper left corner luma prediction sample of the current CU or TU. In this embodiment, blocks coded in CIIP mode are regarded as intra prediction modes, and any of the above methods related to intra prediction modes may be applied.

在另一个实施例中,如果当前块是IBC模式,则参考亮度样本的判定与帧间预测模式相同。如本领域中已知的,IBC(帧内块复制)是近年来开发的新的编解码工具。IBC与帧间预测模式相似。但是,IBC使用当前帧中的参考像素,而不是使用先前已编解码帧中的参考像素。In another embodiment, if the current block is in IBC mode, the determination of reference luma samples is the same as in inter prediction mode. As known in the art, IBC (Intra Block Copy) is a new codec tool developed in recent years. IBC is similar to inter prediction mode. However, IBC uses reference pixels from the current frame instead of reference pixels from previously encoded and decoded frames.

在另一个实施例中,如果当前块是IBC模式,则参考亮度样本的确定与帧内预测模式相同。In another embodiment, if the current block is IBC mode, the determination of the reference luma samples is the same as for intra prediction mode.

当一个或多个参考亮度样本是当前CU或TU的预测样本时,可以如以上实施例中所述使用不同数量的样本。When one or more reference luma samples are prediction samples for the current CU or TU, a different number of samples may be used as described in the above embodiments.

在一个实施例中,帧内和帧间预测模式的以上实施例可以被组合。In one embodiment, the above embodiments of intra and inter prediction modes may be combined.

在一个实施例中,对于帧内预测模式和CIIP模式,参考亮度样本是用于生成帧内预测子的左上边界参考样本,并且对于除CIIP模式之外的帧间预测模式,参考亮度样本是左上角亮度预测样本。In one embodiment, for intra prediction mode and CIIP mode, the reference luma sample is the upper left boundary reference sample used to generate the intra predictor, and for inter prediction mode except CIIP mode, the reference luma sample is the upper left boundary Angular brightness prediction sample.

在一个实施例中,对于帧内预测模式,参考亮度样本是用于生成帧内预测子的左上边界参考样本,并且对于帧间预测模式,除了CIIP模式之外,参考亮度样本是左上亮度预测样本。对于CIIP模式,参考亮度样本是帧间预测子的左上角亮度预测样本。换句话说,在使用之前将预测样本与帧内预测样本混合。In one embodiment, for intra prediction mode, the reference luma sample is the upper left boundary reference sample used to generate the intra predictor, and for inter prediction mode, except CIIP mode, the reference luma sample is the upper left luma prediction sample . For CIIP mode, the reference luma sample is the upper left corner luma prediction sample of the inter predictor. In other words, prediction samples are mixed with intra prediction samples before use.

在一个实施例中,对于帧内预测模式和CIIP模式,参考亮度样本是左上、上或左(第一可用)边界重建样本,并且对于帧间预测模式(除了CIIP模式),参考亮度样本是左上角的亮度预测样本。换句话说,在使用之前将预测样本与帧内预测样本混合。In one embodiment, for intra prediction mode and CIIP mode, the reference luma sample is the top left, top, or left (first available) boundary reconstruction sample, and for inter prediction mode (except CIIP mode), the reference luma sample is the top left Corner brightness prediction sample. In other words, prediction samples are mixed with intra prediction samples before use.

在另一个示例中,仅使用左上方的重建样本。In another example, only the upper left reconstructed sample is used.

如果参考样本不可用,则将缩放因子设置为默认值。在一个实施例中,默认值等于(1<<PREC),其中PREC是色度缩放的预测。If the reference sample is not available, the scaling factor is set to its default value. In one embodiment, the default value is equal to (1<<PREC), where PREC is the chroma-scaled prediction.

在一个实施例中,对于帧内预测模式,参考亮度样本是左上、上或左(第一可用)边界重建样本,并且对于帧间预测模式(除了CIIP模式),参考亮度样本为左上角的亮度预测样本。对于CIIP模式,参考亮度样本是帧间预测子的左上角亮度预测样本。换句话说,在使用之前将预测样本与帧内预测样本混合。In one embodiment, for intra prediction mode, the reference luminance sample is the upper left, upper, or left (first available) boundary reconstruction sample, and for inter prediction mode (except CIIP mode), the reference luminance sample is the upper left corner luminance Prediction sample. For CIIP mode, the reference luma sample is the upper left corner luma prediction sample of the inter predictor. In other words, prediction samples are mixed with intra prediction samples before use.

模式约束并有条件地禁止在根块内进行色度拆分Mode constrains and conditionally disables chroma splitting within the root block

在另一个实施例中,确定根块,并且可以将该根块的亮度分量进一步划分为较小的块。根据该实施例,根据同一根块内的亮度块的预测模式来确定是否可以进一步分割根块的色度分量。In another embodiment, a root block is determined and the luminance components of the root block can be further divided into smaller blocks. According to this embodiment, whether the chrominance component of the root block can be further divided is determined based on the prediction mode of the luma block within the same root block.

在以前的方法中,以下列出了“相同模式”定义的三种情况:In the previous approach, three cases of "same pattern" definition are listed below:

情況1.相同模式意味着根块内的所有块必须为帧内预测模式、或根块内的所有块必须为帧间预测模式、或根块内的所有块必须为IBC模式。Case 1. The same mode means that all blocks within the root block must be in intra prediction mode, or all blocks within the root block must be in inter prediction mode, or all blocks within the root block must be in IBC mode.

情況2.相同模式意味着根块内的所有块必须为帧内预测模式,或根块内的所有块必须为帧间预测模式以及IBC预测模式其中之一(帧间/IBC模式)。Case 2. The same mode means that all blocks in the root block must be in intra prediction mode, or all blocks in the root block must be in one of inter prediction mode and IBC prediction mode (inter/IBC mode).

情況3.相同模式意味着根块内的所有块必须为帧内预测模式以及IBC预测模式其中之一(帧内/IBC模式),或根块内的所有块必须为帧间预测模式。Case 3. The same mode means that all blocks in the root block must be in intra prediction mode and one of the IBC prediction modes (intra/IBC mode), or all blocks in the root block must be in inter prediction mode.

在一个实施例中,如果当前根块内的所有块对于情况1、情况2和情况3分别是帧间预测模式、帧间/IBC模式和帧间预测模式,则色度分量的划分遵循亮度块。如果当前根块内的所有块对于情况1、情况2和情况3分别是帧内预测模式、帧内预测模式和帧内/IBC模式,则无法进一步拆分此根块的色度分量,因此导致多个亮度块对应一个色度块。In one embodiment, if all blocks within the current root block are inter prediction mode, inter/IBC mode and inter prediction mode for case 1, case 2 and case 3 respectively, then the division of chroma components follows the luma block . If all blocks within the current root block are intra prediction mode, intra prediction mode and intra/IBC mode for case 1, case 2 and case 3 respectively, then the chroma components of this root block cannot be further split, thus resulting in Multiple luma blocks correspond to one chrominance block.

在另一个实施例中,确定根块,并且可以将该根块的亮度分量进一步划分为较小的块。根据该实施例,确定是否不能进一步分割根块的色度分量。在该区域中,亮度块可以是相同模式或可以是不同模式。In another embodiment, a root block is determined and the luminance components of the root block can be further divided into smaller blocks. According to this embodiment, it is determined whether the chrominance component of the root block cannot be further divided. In this area, the luminance blocks may be of the same pattern or may be of different patterns.

在一个实施例中,当不允许色度分量被进一步分割时,色度残差缩放不能被应用。在另一个实施例中,当色度分量不允许进一步分裂时,色度残差缩放仍然可以被应用。参考亮度样本的位置可以不同。在一实施例中,使用并置亮度块的左上NxM个亮度预测样本。N和M可以是1、2、4、8、16、32、64和128。在另一个实施例中,使用当前根块的重建的顶部边界K参考样本。在另一个实施例中,使用当前根块的重建的左边界K个参考样本。K可以是1、2、4、8、16、32、64和128。在另一个实施例中,使用当前根块的重建的左上参考样本。In one embodiment, chroma residual scaling cannot be applied when the chroma components are not allowed to be further split. In another embodiment, chroma residual scaling can still be applied when the chroma components are not allowed to split further. The location of the reference brightness samples can vary. In one embodiment, the upper left NxM luma prediction samples of the collocated luma block are used. N and M can be 1, 2, 4, 8, 16, 32, 64 and 128. In another embodiment, the reconstructed top boundary K reference samples of the current root block are used. In another embodiment, the reconstructed left boundary K reference samples of the current root block are used. K can be 1, 2, 4, 8, 16, 32, 64 and 128. In another embodiment, the reconstructed upper left reference sample of the current root block is used.

在另一个实施例中,当不允许色度分量被进一步分割并且色度根块以帧内模式被编解码时,色度残差缩放不能被应用。在另一示例中,当不允许色度分量进一步拆分并且以IBC模式对色度根块进行编解码时,则无法应用色度残差缩放。在另一个实施例中,当不允许色度分量进一步拆分并且以帧内模式对色度根块进行编解码时,仍然可以应用色度残差缩放。在另一个示例中,当不允许色度分量进一步拆分并且以IBC模式对色度根块进行编解码时,仍然可以应用色度残差缩放。参考亮度样本的位置可以不同。在一实施例中,使用并置亮度块的左上NxM个亮度预测样本。N和M可以是1、2、4、8、16、32、64和128。在另一个实施例中,使用当前根块的重建的顶部边界K个参考样本。在另一个实施例中,使用当前根块的重建的左边界K个参考样本。K可以是1、2、4、8、16、32、64和128。在另一个实施例中,使用当前根块的重建的左上参考样本。In another embodiment, chroma residual scaling cannot be applied when the chroma components are not allowed to be further segmented and the chroma root block is coded in intra mode. In another example, when the chroma components are not allowed to be further split and the chroma root block is coded in IBC mode, then chroma residual scaling cannot be applied. In another embodiment, chroma residual scaling can still be applied when further splitting of the chroma components is not allowed and the chroma root block is coded in intra mode. In another example, when the chroma components are not allowed to be further split and the chroma root block is coded in IBC mode, chroma residual scaling can still be applied. The location of the reference brightness samples can vary. In one embodiment, the upper left NxM luma prediction samples of the collocated luma block are used. N and M can be 1, 2, 4, 8, 16, 32, 64 and 128. In another embodiment, the reconstructed top boundary K reference samples of the current root block are used. In another embodiment, the reconstructed left boundary K reference samples of the current root block are used. K can be 1, 2, 4, 8, 16, 32, 64 and 128. In another embodiment, the reconstructed upper left reference sample of the current root block is used.

在另一个实施例中,当色度块在色度根块中时,色度残差缩放不能被应用。在另一个实施例中,当色度块在色度根块中时,仍然可以应用色度残差缩放。参考亮度样本的位置可以不同。在一实施例中,使用并置亮度块的左上NxM个亮度预测样本。N和M可以是1、2、4、8、16、32、64和128。在另一个实施例中,使用当前根块的重建的顶部边界K个参考样本。在另一个实施例中,使用当前根块的重建的左边界的K个参考样本。K可以是1、2、4、8、16、32、64和128。在另一个实施例中,使用当前根块的重建的左上参考样本。In another embodiment, chroma residual scaling cannot be applied when the chroma block is in the chroma root block. In another embodiment, chroma residual scaling can still be applied when the chroma block is in the chroma root block. The location of the reference brightness samples can vary. In one embodiment, the upper left NxM luma prediction samples of the collocated luma block are used. N and M can be 1, 2, 4, 8, 16, 32, 64 and 128. In another embodiment, the reconstructed top boundary K reference samples of the current root block are used. In another embodiment, K reference samples of the reconstructed left boundary of the current root block are used. K can be 1, 2, 4, 8, 16, 32, 64 and 128. In another embodiment, the reconstructed upper left reference sample of the current root block is used.

LMCS将原始域中的样本映射到重塑域,以进行更好的数据估计。映射曲线由分段线性(PWL)模型近似(approximate)。为了将样本值从原始域转换为重塑域,使用了查找表(look-up-table,简写为LUT)。LUT的条目数量(entry number)与输入样本动态范围相同。例如,如果使用10数据输入,则使用1024个条目的LUT。如果使用14数据输入,则使用8192个条目LUT。在硬件实现中,这种LUT的成本很高。因此,可以使用分段线性模型。可以将输入与多个片段中的每个片段进行比较,以找出输入所属的片段。在每个片段中,可以根据该片段的特性计算相应的输出值。LMCS maps samples in the original domain to the reshaped domain for better data estimation. The mapping curve is approximated by a piecewise linear (PWL) model. In order to convert the sample values from the original domain to the reshaped domain, a look-up-table (LUT) is used. The entry number of the LUT is the same as the input sample dynamic range. For example, if using 10 data inputs, use a LUT of 1024 entries. If 14 data inputs are used, an 8192 entry LUT is used. In hardware implementation, the cost of this LUT is high. Therefore, piecewise linear models can be used. The input can be compared to each of multiple fragments to find out which fragment the input belongs to. Within each segment, the corresponding output value can be calculated based on the characteristics of that segment.

根据本发明的实施例公开了LMCS的各种方法。Various methods of LMCS are disclosed according to embodiments of the present invention.

方法1-具有LMCS的PCM模式Method 1 - PCM mode with LMCS

LMCS将原始域中的样本映射到重塑域,以进行更好的数据估计。通过分段线性模型来近似映射曲线。使用查找表(LUT)将样本值从原始域转换为重塑域。LUT的条目数量与输入样本动态范围相同。例如,如果使用10数据输入,则使用1024个条目的LUT。如果使用14数据输入,则使用8192个条目的LUT。LMCS maps samples in the original domain to the reshaped domain for better data estimation. The mapping curve is approximated by a piecewise linear model. Use a lookup table (LUT) to transform sample values from the original domain to the reshaped domain. The LUT has the same number of entries as the input sample dynamic range. For example, if using 10 data inputs, use a LUT of 1024 entries. If 14 data inputs are used, a LUT of 8192 entries is used.

在一个实施例中,当使用脉冲编解码调制(Pulse code Modulation,简写为PCM)编解码时,LMCS被禁用,这可以实现无损编解码。这是因为映射过程可能会引入一些数位舍入,或者在执行前向映射和后向映射后无法将其精确映射回原始值,从而导致有损编解码。根据本发明的一个实施例,以SPS/PPS/APS/切片/图块组/图块/图片级别发信PCM编解码的一种或多种高级语法,并在LMCS语法之前发信。当确定图块/图块组/图片/切片/序列使用PCM编解码时,与LMCS有关的语法元素(重塑工具或重塑模型)可以跳过、推断为未使用或被约束为不使用(例如,编码器约束以禁止LMCS用于PCM编解码)。In one embodiment, when using Pulse code Modulation (PCM) encoding and decoding, LMCS is disabled, which can achieve lossless encoding and decoding. This is because the mapping process may introduce some bit rounding, or it may not be accurately mapped back to the original value after performing the forward and backward mappings, resulting in lossy encoding and decoding. According to one embodiment of the present invention, one or more high-level syntaxes of PCM codec are sent at SPS/PPS/APS/slice/tile group/tile/picture level, and are sent before the LMCS syntax. When determining that a tile/tilegroup/picture/slice/sequence uses the PCM codec, LMCS-related syntax elements (reshape tools or reshape models) may be skipped, inferred as unused, or constrained to not be used ( For example, encoder constraints prohibit LMCS from being used for PCM codecs).

在另一个实施例中,如果在图块/图块组/切片/图片/序列级区域中应用PCM编解码模式,则仍然可以应用重塑。但是,前向重塑和逆向重塑的映射表应该是恒等式映射(identity mapping),例如,输入等于输出,或映射函数为斜率等于1的线。In another embodiment, reshaping can still be applied if PCM codec mode is applied in tile/tile group/slice/picture/sequence level regions. However, the mapping table for forward reshaping and reverse reshaping should be identity mapping, for example, the input is equal to the output, or the mapping function is a line with a slope equal to 1.

在一个示例中,可以发信映射表,但是该映射表应当是恒等式映射表。在另一个示例中,不发信映射表。使用默认的恒等式映射表。默认映射是一个简单的相同映射,其中输入等于输出。In one example, a mapping table can be signaled, but the mapping table should be an identity mapping table. In another example, the mapping table is not sent. Use the default identity mapping table. The default mapping is a simple identical mapping where input equals output.

在另一个实施例中,如果应用CU/PU/TU级PCM编解码和/或变换量化旁通模式,则应在原始域中对残差或变换后的残差进行编解码以实现PCM编解码。例如,预测子(例如,帧间模式预测子,帧内模式预测子,帧内块复制模式预测子,调色板模式预测子)也应位于原始域中。对于帧内预测或使用相邻重建样本来生成预测子的任何其他预测模式(例如,组合帧间/帧内预测),在生成预测子之前,将相邻重建样本转换为原始域。在另一个示例中,如果在重塑域中生成了预测子(例如,帧内模式预测子),则将所生成的预测子转换为原始域。在此示例中,对于帧间模式预测子,当使用PCM模式时,它将不通过前向重塑器而成为经过重塑的域的预测子。残差数据在原始域中进行编解码。语法用于指定重建的CU样本的域。因此,当应用CU/PU/TU级PCM编解码和/或变换量化旁路模式时,如果使用帧内预测进行预测,则仅重塑域中的相邻重建样本需逆映射到原始域。In another embodiment, if CU/PU/TU level PCM codec and/or transform quantization bypass mode is applied, the residual or transformed residual should be coded in the original domain to achieve PCM codec . For example, predictors (eg, inter mode predictor, intra mode predictor, intra block copy mode predictor, palette mode predictor) should also be located in the original domain. For intra prediction or any other prediction mode that uses adjacent reconstructed samples to generate predictors (eg, combined inter/intra prediction), the adjacent reconstructed samples are converted to the original domain before generating the predictor. In another example, if a predictor is generated in the reshaped domain (eg, an intra-mode predictor), the generated predictor is converted to the original domain. In this example, for the inter mode predictor, it will not go through the forward reshaper and become the predictor of the reshaped domain when using PCM mode. The residual data is encoded and decoded in the original domain. Syntax for specifying the domain of reconstructed CU samples. Therefore, when applying CU/PU/TU level PCM codec and/or transform quantization bypass mode, only adjacent reconstructed samples in the reconstructed domain need to be inversely mapped to the original domain if intra prediction is used for prediction.

当在有损编解码中对当前帧内CU进行编解码时,如果相邻的重建样本在原始域中,则需要前向映射。在将邻近的重建样本映射到重塑域之后,将使用重塑的邻近的重建样本来生成帧内预测样本。When encoding and decoding the current intra-frame CU in lossy encoding and decoding, forward mapping is required if the adjacent reconstructed samples are in the original domain. After mapping the neighboring reconstructed samples to the reshaped domain, the reshaped neighboring reconstructed samples are used to generate intra prediction samples.

在另一个实施例中,如果在有损编解码中对当前帧内CU进行了编解码,则无论相邻重建样本属于哪个域,都将相邻重建样本视为重塑样本。In another embodiment, if the current intra-frame CU is coded in lossy coding, adjacent reconstructed samples are regarded as reconstructed samples regardless of which domain they belong to.

在另一个实施例中,如果应用CU/PU/TU级PCM编解码和/或变换量化旁通模式,则仍可在重塑域中生成预测子,但是重建样本不会被逆映射(到原始域)重建。但是,在重塑域中的重建样本应为对原始样本进行PCM得到的值。例如,对于帧内预测或使用相邻重建样本来生成预测子的任何其他预测模式,不需要将相邻样本转换回原始域。重塑域相邻样本可用于生成预测子。对于帧间预测,预测子可以像有损编解码一样通过前向映射进行转换,或者不能通过前向映射进行转换。在另一个实施例中,后向映射仍然可以被应用。但是,后向映射的映射表是相同的映射,例如斜率等于1或输出等于输入的一对一映射。In another embodiment, if CU/PU/TU level PCM codec and/or transform quantization bypass mode is applied, predictors can still be generated in the reconstruction domain, but the reconstructed samples are not inversely mapped (to the original domain) reconstruction. However, the reconstructed samples in the reshaping domain should be the values obtained by performing PCM on the original samples. For example, for intra prediction or any other prediction mode that uses adjacent reconstructed samples to generate predictors, there is no need to convert adjacent samples back to the original domain. Reshape domain neighbor samples can be used to generate predictors. For inter prediction, the predictor may or may not be transformed via forward mapping as in lossy codecs. In another embodiment, backward mapping can still be applied. However, the mapping table for backward mapping is the same mapping, such as a one-to-one mapping with slope equal to 1 or output equal to input.

在另一个实施例中,如果应用CU/PU/TU级PCM编解码和/或变换量化旁路模式,则前向和后向映射被禁用或使用相同的映射(对于所有预测模式)。在另一个实施例中,仍然可以在重塑域中对残差/预测子/重建样本进行编解码。但是,存在编码器约束或数据流一致性要求,即在应用PCM模式时,可以将重建样本转换为原始域,并且原始域重建样本应与输入样本相同。In another embodiment, if CU/PU/TU level PCM codec and/or transform quantization bypass mode is applied, forward and backward mapping are disabled or the same mapping is used (for all prediction modes). In another embodiment, the residual/predictor/reconstructed samples can still be encoded and decoded in the reconstruction domain. However, there are encoder constraints or data stream consistency requirements, that is, when applying PCM mode, the reconstructed samples can be converted to the original domain, and the original domain reconstructed samples should be the same as the input samples.

在一个实施例中,如果应用CU/PU/TU级PCM编解码和/或变换量化旁路模式,则不应用色度残差缩放,或者将缩放因子设置为1,或者缩放因子限制在一个范围内。例如,缩放因子应不大于1或不小于1。在另一个实施例中,当应用变换跳过模式时,不应用色度残差缩放。在另一个实施例中,当将变换跳过模式应用于色度分量时,不应用色度残差缩放。In one embodiment, if CU/PU/TU level PCM codec and/or transform quantization bypass mode is applied, chroma residual scaling is not applied, or the scaling factor is set to 1, or the scaling factor is limited to a range Inside. For example, the scaling factor should be no greater than 1 or no less than 1. In another embodiment, when transform skip mode is applied, no chroma residual scaling is applied. In another embodiment, when transform skip mode is applied to the chroma component, no chroma residual scaling is applied.

在另一个实施例中,如果应用CU/PU/TU级PCM编解码和/或变换量化旁路模式,则应在重塑域中对残差或变换后的残差进行编解码,其中映射表的输出与输入相同。因此,映射过程不会引入有损编解码。In another embodiment, if CU/PU/TU level PCM codec and/or transform quantization bypass mode is applied, the residual or transformed residual should be coded in the reconstruction domain, where the mapping table The output is the same as the input. Therefore, the mapping process does not introduce lossy codecs.

在另一实施例中,如果使用CU/PU/TU级PCM模式和/或变换量化旁路模式,则将相邻的重建样本转换为原始域。仍可通过重塑转换当前块的预测样本。但是,前向重塑和反向重塑的映射表应该是一对一的映射,例如输出等于输入,或者映射函数对应于斜率等于1的线。In another embodiment, if CU/PU/TU level PCM mode and/or transform quantization bypass mode is used, adjacent reconstructed samples are converted to the original domain. Prediction samples for the current block can still be transformed by reshaping. However, the mapping table for forward reshaping and reverse reshaping should be a one-to-one mapping, such that the output is equal to the input, or the mapping function corresponds to a line with a slope equal to 1.

方法2-逆缩放因子的推导Method 2 - Derivation of inverse scaling factors

在一个实施例中,逆缩放因子可以如下得出:In one embodiment, the inverse scaling factor can be derived as follows:

InvScaleCoeff[i]=InvScaleCoeff[i]=

OrgCW*((1<<SCALE_FP_PREC)/lmcsCW[i]).OrgCW*((1<<SCALE_FP_PREC)/lmcsCW[i]).

这样,由于分母的可能值的数量(例如lmcsCW[i])是有限的,可以使用查找表来实现非2的幂的值的除法(例如lmcsCW[i])。查找表包含(1<<SCALE_FP_PREC)/lmcsCW[i]的值。Thus, since the number of possible values for the denominator (eg, lmcsCW[i]) is limited, a lookup table can be used to implement division for values that are not powers of two (eg, lmcsCW[i]). The lookup table contains the values of (1<<SCALE_FP_PREC)/lmcsCW[i].

方法3-具有默认数量的码字的LMCSMethod 3 - LMCS with default number of codewords

在一个实施例中,可以使用默认数量的码字而不是使用OrgCW(其仅取决于输入数据的数据深度)来推导映射域中每个数据子的码字数量(例如lmcsCW[i])。In one embodiment, the number of codewords for each data bin in the mapping domain (eg, lmcsCW[i]) can be derived using a default number of codewords instead of using OrgCW (which only depends on the data depth of the input data).

在所提出的方法中,根据以下公式导出变量lmcsCW[i],其中i=lmcs_min_bin_idx到LmcsMaxBinIdx:In the proposed method, the variable lmcsCW[i] is derived according to the following formula, where i=lmcs_min_bin_idx to LmcsMaxBinIdx:

lmcsCW[i]=default_CW+lmcsDeltaCW[i],lmcsCW[i]=default_CW+lmcsDeltaCW[i],

其中default_CW在解码器端导出或重编码器发信。Among them, default_CW is exported at the decoder or sent by the re-encoder.

在一个实施例中,如果default_CW是在解码器侧导出的,则可以根据lmcs_min_bin_idx和LmcsMaxBinIdx导出它。如果小于lmcs_min_bin_idx的数据子的数量以及大于LmcsMaxBinIdx的数据子的数量之和大于lmcs_min_bin_idx,则可以将default_CW调整为大于OrgCW的值。In one embodiment, if default_CW is derived on the decoder side, it can be derived based on lmcs_min_bin_idx and LmcsMaxBinIdx. If the sum of the number of data children smaller than lmcs_min_bin_idx and the number of data children larger than LmcsMaxBinIdx is greater than lmcs_min_bin_idx, default_CW can be adjusted to a value greater than OrgCW.

例如,如果小于lmcs_min_bin_idx的数据子数量及大于LmcsMaxBinIdx的数据子数量之和等于2,则default_CW导出为default_CW=OrgCW+A,其中A为正整数(例如1,2、3…)。For example, if the sum of the number of data sub-numbers less than lmcs_min_bin_idx and the number of data sub-numbers greater than LmcsMaxBinIdx is equal to 2, then default_CW is derived as default_CW=OrgCW+A, where A is a positive integer (such as 1, 2, 3...).

如果小于lmcs_min_bin_idx的数据子数量及大于LmcsMaxBinIdx的数据子数量之和等于0,则default_CW等于OrgCW。If the sum of the number of data sub-numbers less than lmcs_min_bin_idx and the number of data sub-numbers greater than LmcsMaxBinIdx is equal to 0, then default_CW is equal to OrgCW.

在一个实施例中,如果发信了default_CW,则在lmcs_delta_cw_prec_minus1之前发信两个语法default_delta_abs_CW和default_delta_sign_CW_flag。In one embodiment, if default_CW is signaled, the two syntaxes default_delta_abs_CW and default_delta_sign_CW_flag are signaled before lmcs_delta_cw_prec_minus1.

变量default_delta_abs_CW表示default_CW和OrgCW的绝对差,变量default_delta_sign_CW_flag表示增量值为正或负。仅当default_delta_abs_CW大于0时才发信default_delta_sign_CW_flag。The variable default_delta_abs_CW represents the absolute difference between default_CW and OrgCW, and the variable default_delta_sign_CW_flag represents whether the incremental value is positive or negative. The default_delta_sign_CW_flag is sent only when default_delta_abs_CW is greater than 0.

在一个实施例中,如果发信了default_CW,则在lmcs_delta_cw_prec_minus1之前发信语法default_delta_CW。In one embodiment, if default_CW is signaled, the syntax default_delta_CW is signaled before lmcs_delta_cw_prec_minus1.

变量default_delta_CW表示default_CW与OrgCW之差。The variable default_delta_CW represents the difference between default_CW and OrgCW.

方法4-重塑曲线更新Method 4 - Reshape Curve Update

在一个实施例中,在每一帧或每隔一帧中更新重塑曲线。In one embodiment, the reshaping curve is updated every frame or every other frame.

具有VPDU约束的色度缩放Chroma scaling with VPDU constraints

图片可被划分为几个非重迭的MxN块。这些作为处理数据单元的MxN个非重迭块称为VPDU。M和N可以是64,或者是任何预定义或发信的值,或者是与最大变换块大小有关的值。The picture can be divided into several non-overlapping MxN blocks. These MxN non-overlapping blocks as processing data units are called VPDUs. M and N can be 64, or any predefined or signaled value, or a value related to the maximum transform block size.

在一个实施例中,对于色度分量,色度残差缩放使用当前VPDU外部的参考亮度重建样本,例如先前编解码的VPDU。In one embodiment, for the chroma component, chroma residual scaling uses reference luma reconstruction samples external to the current VPDU, such as a previously encoded VPDU.

在一个实施例中,参考亮度样本可以是一个或多个区域。例如,参考样本是当前VPDU外部的KxL块。K和L可以是2、4、8、16或32。详细地说,根据本实施例,当前VPDU的大小等于min(CtbSizeY,64),并且顶部边界和左侧边界的参考亮度样本数分别等于min(CtbSizeY,64)。变量CtbSizeY指定亮度编解码树块的亮度宽度和亮度高度。In one embodiment, the reference brightness sample may be one or more regions. For example, the reference sample is the KxL block outside the current VPDU. K and L can be 2, 4, 8, 16 or 32. In detail, according to this embodiment, the size of the current VPDU is equal to min(CtbSizeY, 64), and the number of reference brightness samples of the top boundary and the left boundary are respectively equal to min(CtbSizeY, 64). The variable CtbSizeY specifies the luminance width and luminance height of the luminance codec tree block.

在另一个实施例中,参考重建的亮度样本沿着VPDU顶部边界或左边界或两者,如图4所示。参考亮度样本的数目是2的幂次方。In another embodiment, the reference reconstructed luma samples are along the VPDU top boundary or left boundary or both, as shown in Figure 4. The number of reference luminance samples is a power of 2.

在另一实施例中,参考重建的亮度样本仅仅是一个样本值。在一个实施例中,该位置可以是当前VPDU的L形边界的左上位置,例如图5中的TL位置。在另一实施例中,参考样本的位置可以是当前VPDU上面的位置,例如图5中的A位置。在另一个实施例中,参考样本的位置可以是当前VPDU的左侧位置,例如图5中的L位置。In another embodiment, the reference reconstructed luminance sample is simply a sample value. In one embodiment, the position may be the upper left position of the L-shaped boundary of the current VPDU, such as the TL position in Figure 5. In another embodiment, the position of the reference sample may be the position above the current VPDU, such as position A in Figure 5. In another embodiment, the position of the reference sample may be the left position of the current VPDU, such as the L position in Figure 5.

在另一实施例中,在每个VPDU中仅导出一次色度缩放,并且由每个VPDU中的第一CU导出缩放因子。详细地,VPDU的大小等于Min(CtbSizeY,64),并且对于Min(CtbSizeY,64)乘以Min(CtbSizeY,64)区域(即,在同一VPDU中)中的所有块,根据本实施例,用于导出色度缩放因子的参考亮度样本是相同的。变量CtbSizeY指定亮度编解码树块的亮度宽度和亮度高度。In another embodiment, chroma scaling is derived only once per VPDU, and the scaling factor is derived by the first CU in each VPDU. In detail, the size of the VPDU is equal to Min(CtbSizeY, 64), and for all blocks in the Min(CtbSizeY, 64) times Min(CtbSizeY, 64) area (ie, in the same VPDU), according to this embodiment, use The reference luminance sample is the same as the one from which the chroma scaling factor is derived. The variable CtbSizeY specifies the luminance width and luminance height of the luminance codec tree block.

在另一个实施例中,根据与当前块相对应的VPDU来导出用于色度缩放的参考编解码单元(CU)(例如,即使色度缩放缩放不适用于该CU,色度缩放也总是由VPDU中的第一CU来导出)。详细地,根据该实施例,VPDU的大小等于Min(CtbSizeY,64),并且参考CU覆盖当前VPDU的左上位置。参考亮度样本包括沿参考CU顶部边界的Min(CtbSizeY,64)重建的亮度样本和沿参考CU左侧边界的Min(CtbSizeY,64)亮度重建样本。在另一实施例中,如果没有将色度缩放应用于当前VPDU中的第一CU,则缩放因子被设置为默认值。在一个实施例中,默认值等于(1<<PREC),其中PREC是色度缩放的预测。In another embodiment, the reference codec unit (CU) for chroma scaling is derived from the VPDU corresponding to the current block (e.g., the chroma scaling is always Derived from the first CU in the VPDU). In detail, according to this embodiment, the size of the VPDU is equal to Min(CtbSizeY, 64), and the reference CU covers the upper left position of the current VPDU. The reference luminance samples include Min(CtbSizeY, 64) reconstructed luminance samples along the top boundary of the reference CU and Min(CtbSizeY, 64) luminance reconstructed samples along the left boundary of the reference CU. In another embodiment, if chroma scaling is not applied to the first CU in the current VPDU, the scaling factor is set to a default value. In one embodiment, the default value is equal to (1<<PREC), where PREC is the chroma-scaled prediction.

在另一个实施例中,色度缩放因子在图片/切片级别中共享。在另一实施例中,色度缩放因子在APS水平中共享。换句话说,对于每个发信的映射曲线,导出一个色度缩放因子。在一个示例中,通过对所有间隔(片段)中的缩放因子求平均来完成针对每个重塑曲线的色度缩放因子的推导。在另一个实施例中,通过选择所有间隔(片段)中的大多数缩放因子来得出缩放因子。在另一实施例中,通过直接将最大亮度样本与最小亮度样本之间的差除以重塑域中的最大亮度样本与重塑域中的最小亮度样本之间的差来得出缩放因子。In another embodiment, the chroma scaling factors are shared at the picture/slice level. In another embodiment, the chroma scaling factors are shared among APS levels. In other words, for each signaled mapping curve, a chroma scaling factor is derived. In one example, the derivation of the chromatic scaling factor for each reshaping curve is accomplished by averaging the scaling factors in all intervals (segments). In another embodiment, the scaling factor is derived by selecting the majority scaling factor in all intervals (segments). In another embodiment, the scaling factor is derived by directly dividing the difference between the maximum luminance sample and the minimum luminance sample by the difference between the maximum luminance sample in the reshaping domain and the minimum luminance sample in the reshaping domain.

具有减少的延迟的亮度残差Luminance residual with reduced latency

代替映射亮度预测样本,该映射可以仅应用于亮度残差。换句话说,亮度分量的预测样本在原始域中,并且亮度分量的残差将通过缩放因子缩放。通过在不同位置或以不同方式引用亮度预测样本来得出缩放因子。建议用于色度缩放的以上方法也可以应用于亮度残差缩放。Instead of mapping the luma prediction samples, the mapping can be applied only to the luma residuals. In other words, the predicted samples of the luminance component are in the original domain, and the residuals of the luminance component will be scaled by the scaling factor. The scaling factor is derived by referencing the brightness prediction samples at different locations or in different ways. The above methods suggested for chroma scaling can also be applied to luma residual scaling.

在另一个实施例中,缩放因子是两个连续间隔的两个缩放因子的平均值。In another embodiment, the scaling factor is the average of two scaling factors for two consecutive intervals.

在一个实施例中,用于亮度残差缩放和色度残差缩放的缩放因子相同。In one embodiment, the scaling factors used for luma residual scaling and chroma residual scaling are the same.

信令色度缩放因子Signaling chroma scaling factor

替代在解码器侧隐式地导出色度缩放因子,本发明的实施例在TB、TU、CU、CTU、VPDU、切片级别、块级或APS级别发信色度缩放因子。Instead of implicitly deriving the chroma scaling factor at the decoder side, embodiments of the present invention signal the chroma scaling factor at the TB, TU, CU, CTU, VPDU, slice level, block level or APS level.

在一个实施例中,在一个APS中发信一个或多个色度缩放因子。In one embodiment, one or more chroma scaling factors are signaled in an APS.

在一个实施例中,如果以TU级别发信色度缩放因子,并且如果Cb和Cr的Cbfs(编码块标记)都等于0,则不发信色度缩放因子。In one embodiment, if the chroma scaling factor is signaled at the TU level, and if the Cbfs (coding block flag) of both Cb and Cr is equal to 0, then the chroma scaling factor is not signaled.

在另一个实施例中,如果以TU级别发信色度缩放因子,并且如果根Cbf等于0,则不发信色度缩放因子。In another embodiment, if the chroma scaling factor is signaled at the TU level, and if the root Cbf is equal to 0, then the chroma scaling factor is not signaled.

在一个实施例中,如果针对色度Cb分量在TB级别发信色度缩放因子,并且如果Cb的Cbf等于0,则不发信色度缩放因子;对于色度Cr分量,如果Cr的Cbf等于0,则不发信色度缩放因子。In one embodiment, if the chroma scaling factor is signaled at the TB level for the chroma Cb component, and if Cbf of Cb is equal to 0, then the chroma scaling factor is not signaled; for the chroma Cr component, if Cbf of Cr is equal to 0, no chroma scaling factor is sent.

在一些实施例中,视频编码器必须遵循前述语法设计以便生成合法数据流,并且仅在解析过程符合前述语法设计的情况下,视频解码器才能够正确地解码数据流。当在数据流中跳过语法时,编码器和解码器应将语法值设置为推断值,以确保编码和解码结果匹配。In some embodiments, the video encoder must follow the foregoing syntax design in order to generate a legal data stream, and the video decoder can correctly decode the data stream only if the parsing process complies with the foregoing syntax design. When syntax is skipped in the data stream, encoders and decoders should set the syntax value to an inferred value to ensure that the encoding and decoding results match.

图6示出了根据本发明实施例的用于基于并置亮度块的相邻预测或重建的亮度样本来推导一个或多个色度残差缩放因子的示例性解码系统的流程图。流程图中所示的步骤以及本公开中的其他后续流程图可被实现为可在编码器侧和/或解码器侧的一个或多个处理器(例如,一个或多个CPU)上执行的程序码。流程图中所示的步骤也可以基于硬件来实现,例如被布置为执行流程图中的步骤的一个或多个电子设备或处理器。根据该方法,在步骤610中接收当前色度残差块。在步骤620中,基于与当前色度残差块相关联的并置亮度块的相邻预测或重建的亮度样本,导出一个或多个色度残差缩放因子,其中并置亮度块的相邻预测或重建的亮度样本对应于并置亮度块顶部边界的M个样本和并置亮度块左侧边界的N个样本中的样本,其中M和N为正整数。然后在步骤630中,根据所述一个或多个色度残差缩放因子,将色度缩放应用于当前色度残差块的色度残差样本。6 illustrates a flowchart of an exemplary decoding system for deriving one or more chroma residual scaling factors based on neighboring predicted or reconstructed luma samples of collocated luma blocks in accordance with an embodiment of the present invention. The steps shown in the flowchart, as well as other subsequent flowcharts in this disclosure, may be implemented as executable on one or more processors (e.g., one or more CPUs) on the encoder side and/or the decoder side. Program code. The steps shown in the flowcharts may also be implemented on a hardware basis, such as one or more electronic devices or processors arranged to perform the steps in the flowcharts. According to the method, in step 610 the current chroma residual block is received. In step 620, one or more chroma residual scaling factors are derived based on neighboring predicted or reconstructed luma samples of the collocated luma block associated with the current chroma residual block, where the neighboring luma blocks of the collocated luma block are The predicted or reconstructed luma samples correspond to samples among the M samples that collocate the top boundary of the luma block and the N samples that collocate the left boundary of the luma block, where M and N are positive integers. Then in step 630, chroma scaling is applied to the chroma residual samples of the current chroma residual block according to the one or more chroma residual scaling factors.

图7示出了根据本发明的实施例的另一示例性解码系统的流程图,该解码系统用于基于并置亮度处理数据单元外部的一个或多个重建的亮度样本来导出一个或多个色度残差缩放因子。根据该方法,在步骤710中接收与图片中的当前色度处理数据单元相关联的色度残差数据,其中,将图片划分为多个不重迭的处理数据单元,并且每个处理数据单元包括一个亮度处理数据单元和一个或多个色度处理数据单元。在步骤720中,基于与当前色度处理数据单元相关联的并置亮度处理数据单元外部的一个或多个重建的亮度样本,得出一个或多个色度残差缩放因子。在步骤730中,根据所述一个或多个色度残差缩放因子将色度缩放应用于当前色度处理数据单位的色度残差样本。7 illustrates a flow diagram of another exemplary decoding system for deriving one or more reconstructed luma samples based on one or more reconstructed luma samples external to a collocated luma processing data unit in accordance with an embodiment of the present invention. Chroma residual scaling factor. According to the method, chroma residual data associated with the current chroma processing data unit in the picture is received in step 710, wherein the picture is divided into a plurality of non-overlapping processing data units, and each processing data unit Includes one luminance processing data unit and one or more chrominance processing data units. In step 720, one or more chroma residual scaling factors are derived based on one or more reconstructed luma samples external to the collocated luma processing data unit associated with the current chroma processing data unit. In step 730, chroma scaling is applied to the chroma residual samples of the current chroma processing data unit according to the one or more chroma residual scaling factors.

图8示出了示例性的编解码系统的流程图,其中,根据本发明的实施例在编码器侧的视频数据流的APS(自适应参数集)级别中发信一个或多个色度残差缩放因子,或者自解码器侧的视频数据流的APS级别解析一个或多个色度残差缩放因子。根据该方法,在步骤810中接收当前色度残差块。在步骤820中,在视频数据流的APS(自适应参数集)级别中发信一个或多个色度残差缩放因子,或者在其视频数据流的APS级别中中解析所述一个或多个色度残差缩放因子。在步骤830中,将色度缩放应用于当前色度残差块的色度残差样本。Figure 8 shows a flow diagram of an exemplary codec system in which one or more chroma residuals are signaled in the APS (Adaptive Parameter Set) level of the video data stream on the encoder side according to an embodiment of the invention. Differential scaling factors, or one or more chroma residual scaling factors resolved from the APS level of the video data stream on the decoder side. According to the method, in step 810 the current chroma residual block is received. In step 820, one or more chroma residual scaling factors are signaled or parsed in the APS level of the video data stream. Chroma residual scaling factor. In step 830, chroma scaling is applied to the chroma residual samples of the current chroma residual block.

所示的流程图旨在说明根据本发明的视频编解码的示例。本领域技术人员可以修改每个步骤,重新布置步骤,拆分步骤或组合步骤以实践本发明,而不背离本发明的精神。在本公开中,已经使用特定的语法和语义来说明用于实现本发明的实施例的示例。本领域技术人员可以通过用等效的语法和语义替换语法和语义来实践本发明,而不脱离本发明的精神。The flowchart shown is intended to illustrate an example of video encoding and decoding according to the present invention. Those skilled in the art may modify each step, rearrange steps, split steps or combine steps to practice the invention without departing from the spirit of the invention. In this disclosure, specific syntax and semantics have been used to illustrate examples for implementing embodiments of the invention. Those skilled in the art may practice the invention by replacing syntax and semantics with equivalent syntax and semantics without departing from the spirit of the invention.

呈现以上描述是为了使本领域技术人员能够实践在特定应用及其要求的上下文中提供的本发明。对所描述的实施例的各种修改对本领域技术人员将是显而易见的,并且本文中定义的一般原理可以应用于其他实施例。因此,本发明并不旨在限于所示出和描述的特定实施例,而是与和本文所公开的原理和新颖特征相一致的最广范围相一致。在以上详细描述中,示出了各种具体细节以便提供对本发明的透彻理解。然而,本领域技术人员将理解可以实施本发明。The above description is presented to enable one skilled in the art to practice the invention in the context of a particular application and its requirements. Various modifications to the described embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments. Thus, the present invention is not intended to be limited to the specific embodiments shown and described but is to be accorded the widest scope consistent with the principles and novel features disclosed herein. In the foregoing detailed description, various specific details are set forth in order to provide a thorough understanding of the invention. However, those skilled in the art will understand that the invention may be practiced.

如上所述的本发明的实施例可以以各种硬件、软件编解码或两者的组合来实现。例如,本发明的实施例可以是集成到视频压缩芯片中的一个或多个电子电路或集成到视频压缩软件中以执行本文所述的处理的程序代码。本发明的实施例还可以是将在数字信号处理器(DSP)上执行以执行本文描述的处理的程序代码。本发明还可涉及由计算机处理器、数字信号处理器、微处理器或现场可编程门阵列(FPGA)执行的许多功能。通过执行定义本发明所体现的特定方法的机器可读软件代码或固件代码,可以将这些处理器配置为执行根据本发明的特定任务。可以以不同的编程语言和不同的格式或样式来开发软件代码或固件代码。也可以针对不同的目标平台来编译软件代码。然而,不同的编解码格式、软件代码的样式和语言以及配置代码以执行根据本发明的任务的其他手段将不脱离本发明的精神和范围。The embodiments of the present invention as described above can be implemented in various hardware, software codecs, or a combination of both. For example, an embodiment of the invention may be one or more electronic circuits integrated into a video compression chip or program code integrated into video compression software to perform the processes described herein. Embodiments of the invention may also be program code to be executed on a digital signal processor (DSP) to perform the processes described herein. The present invention may also be directed to any number of functions performed by a computer processor, digital signal processor, microprocessor or field programmable gate array (FPGA). These processors may be configured to perform specific tasks in accordance with the invention by executing machine-readable software code or firmware code that defines the specific methods embodied by the invention. Software code or firmware code can be developed in different programming languages and in different formats or styles. Software code can also be compiled for different target platforms. However, different codec formats, styles and languages of software code, and other means of configuring the code to perform tasks in accordance with the invention will not depart from the spirit and scope of the invention.

在不脱离本发明的精神或基本特征的情况下,本发明可以以其他特定形式实施。所描述的示例在所有方面仅应被认为是说明性的而非限制性的。因此,本发明的范围由所附权利要求而不是前面的描述指示。落入权利要求等同含义和范围内的所有改变均应包含在其范围之内。The present invention may be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. The described examples should be considered in all respects as illustrative only and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than the foregoing description. All changes that fall within the equivalent meaning and scope of the claims shall be included within their scope.

Claims (11)

1.一种视频解码方法,该方法包括:1. A video decoding method, the method includes: 接收图片中与当前色度处理数据单元相关的色度残差数据,其中,该图片被划分为多个不重迭的处理数据单元,每个处理数据单元包括一个亮度处理数据单元和一个或多个色度处理数据单元;Receive chroma residual data related to the current chroma processing data unit in the picture, wherein the picture is divided into multiple non-overlapping processing data units, each processing data unit includes a luminance processing data unit and one or more colorimetric processing data unit; 基于与该当前色度处理数据单元相关联的并置亮度处理数据单元外部的一个或多个重建的亮度样本,得出一个或多个色度残差缩放因子;以及deriving one or more chroma residual scaling factors based on one or more reconstructed luma samples external to the collocated luma processing data unit associated with the current chroma processing data unit; and 根据导出的该一个或多个色度残差缩放因子,将色度缩放应用于该当前色度处理数据单元的色度残差样本,applying chroma scaling to the chroma residual samples of the current chroma processing data unit according to the derived one or more chroma residual scaling factors, 其中一个或多个非重迭处理数据单元的亮度大小等于Min(CtbSizeY,64)乘以Min(CtbSizeY,64),并且其中CtbSizeY指定亮度编解码树块的亮度宽度和亮度高度。The luminance size of one or more non-overlapping processing data units is equal to Min(CtbSizeY, 64) times Min(CtbSizeY, 64), and wherein CtbSizeY specifies the luminance width and luminance height of the luma codec tree block. 2.根据权利要求1所述的方法,其特征在于,在该并置亮度处理数据单元外部的该一个或多个重建的亮度样本对应于一个或多个先前编解码的亮度处理数据单元的一个或多个重建的亮度样本。2. The method of claim 1, wherein the one or more reconstructed luma samples outside the collocated luma processing data unit correspond to one of one or more previously coded luma processing data units. or multiple reconstructed brightness samples. 3.根据权利要求2所述的方法,其特征在于,该一个或多个先前编解码的亮度处理数据单元的一个或多个重建的亮度样本对应于沿该并置亮度处理数据单元的顶部边界的一个或多个重建的亮度样本、沿该并置亮度处理数据单元的左边界的一个或多个重建的亮度样本,或两者。3. The method of claim 2, wherein the one or more reconstructed luma samples of the one or more previously coded luma processing data units correspond to a top boundary along the collocated luma processing data unit one or more reconstructed luma samples of , one or more reconstructed luma samples along the left boundary of the collocated luma processing data unit, or both. 4.一种视频解码装置,该装置包括一个或多个电子电路或处理器,该电子电路或处理器被布置为:4. A video decoding device comprising one or more electronic circuits or processors arranged to: 接收图片中与当前色度处理数据单元相关的色度残差数据,其中,该图片被划分为多个不重迭的处理数据单元,每个处理数据单元包括一个亮度处理数据单元和一个或多个色度处理数据单元;Receive chroma residual data related to the current chroma processing data unit in the picture, wherein the picture is divided into multiple non-overlapping processing data units, each processing data unit includes a luminance processing data unit and one or more colorimetric processing data unit; 基于与该当前色度处理数据单元相关联的并置亮度处理数据单元外部的一个或多个重建的亮度样本,得出一个或多个色度残差缩放因子;以及deriving one or more chroma residual scaling factors based on one or more reconstructed luma samples external to the collocated luma processing data unit associated with the current chroma processing data unit; and 根据导出的该一个或多个色度残差缩放因子,将色度缩放应用于该当前色度处理数据单元的色度残差样本,applying chroma scaling to the chroma residual samples of the current chroma processing data unit according to the derived one or more chroma residual scaling factors, 其中一个或多个非重迭处理数据单元的亮度大小等于Min(CtbSizeY,64)乘以Min(CtbSizeY,64),并且其中CtbSizeY指定亮度编解码树块的亮度宽度和亮度高度。The luminance size of one or more non-overlapping processing data units is equal to Min(CtbSizeY, 64) times Min(CtbSizeY, 64), and wherein CtbSizeY specifies the luminance width and luminance height of the luma codec tree block. 5.一种视频解码方法,该方法包括:5. A video decoding method, the method comprising: 接收图片中与当前色度处理数据单元相关的色度残差数据,其中,该图片被划分为多个不重迭的处理数据单元,每个处理数据单元包括亮度处理数据单元和一个或多个色度处理数据单元;Receive chroma residual data related to the current chroma processing data unit in the picture, wherein the picture is divided into a plurality of non-overlapping processing data units, each processing data unit includes a luminance processing data unit and one or more Colorimetric processing data unit; 基于一个或多个重建的亮度样本,从第一编解码单元推导一个或多个色度残差缩放因子,其中该第一编解码单元覆盖与该当前色度处理数据单元相关联的并置亮度处理数据单元的左上位置;以及Derive one or more chroma residual scaling factors from a first codec unit that covers collocated luma associated with the current chroma processed data unit based on the one or more reconstructed luma samples Process the upper left position of the data unit; and 根据导出的该一个或多个色度残差缩放因子,将色度缩放应用于与该当前色度处理数据单元相关联的该色度残差数据的色度残差样本,applying chroma scaling to the chroma residual samples of the chroma residual data associated with the current chroma processing data unit based on the derived one or more chroma residual scaling factors, 其中该一个或多个不重迭的处理数据单元的亮度大小等于Min(CtbSizeY,64)乘以Min(CtbSizeY,64),并且其中CtbSizeY指定亮度编解码树块的亮度宽度和亮度高度。The luminance size of the one or more non-overlapping processing data units is equal to Min(CtbSizeY, 64) times Min(CtbSizeY, 64), and wherein CtbSizeY specifies the luminance width and luminance height of the luma codec tree block. 6.根据权利要求5所述的方法,其特征在于,在覆盖该并置亮度处理数据单元的该第一编解码单元外部的该一个或多个重建的亮度样本对应于一个或多个先前编解码的亮度处理数据单元的一个或多个重建的亮度样本。6. The method of claim 5, wherein the one or more reconstructed luma samples outside the first codec unit covering the collocated luma processing data unit correspond to one or more previous codecs. One or more reconstructed luma samples of the decoded luma processing data unit. 7.根据权利要求5所述的方法,其特征在于,该一个或多个先前编解码的亮度处理数据单元的该一个或多个重建的亮度样本对应于沿着该第一编码解码单元(CU)的顶部边界的一个或多个重建的亮度样本、沿着该第一编码解码单元(CU)的左边界的一个或多个重建的亮度样本,或二者,其中该第一编解码单元覆盖该并置亮度处理数据单元。7. The method of claim 5, wherein the one or more reconstructed luma samples of the one or more previously coded luma processing data units correspond to images along the first codec unit (CU). ), one or more reconstructed luma samples along the left boundary of the first codec unit (CU), or both, where the first codec unit covers The concatenated brightness processing data unit. 8.根据权利要求7所述的方法,其特征在于,沿着覆盖该并置亮度处理数据单元的该第一编解码单元的顶部边界的参考重建的亮度样本的数量等于该亮度处理数据单元的宽度或高度。8. The method of claim 7, wherein the number of reference reconstructed luma samples along the top boundary of the first codec unit covering the collocated luma processing data unit is equal to that of the luma processing data unit. width or height. 9.根据权利要求7所述的方法,其特征在于,沿着覆盖该并置亮度处理数据单元的该第一编解码单元的左边界的参考重建的亮度样本的数量等于该亮度处理数据单元的宽度或高度。9. The method of claim 7, wherein the number of reference reconstructed luma samples along the left boundary of the first codec unit covering the collocated luma processing data unit is equal to the luma processing data unit. width or height. 10.一种视频编解码方法,该方法包括:10. A video encoding and decoding method, the method includes: 接收当前色度残差块;Receive the current chroma residual block; 在视频数据流的自适应参数集级别中发信一个或多个色度残差缩放因子,或者在该视频数据流的自适应参数集级别中解析该一个或多个色度残差缩放因子;以及signaling one or more chroma residual scaling factors in the adaptive parameter set level of the video data stream, or parsing the one or more chroma residual scaling factors in the adaptive parameter set level of the video data stream; as well as 将色度缩放应用于该当前色度残差块的色度残差样本。Applies chroma scaling to the chroma residual samples of this current chroma residual block. 11.一种视频编解码装置,所述装置包括一个或多个电子电路或处理器,该电子电路或处理器被布置为:11. A video encoding and decoding device, the device comprising one or more electronic circuits or processors, the electronic circuits or processors being arranged to: 接收当前色度残差块;Receive the current chroma residual block; 在视频数据流的自适应参数集级别中发信一个或多个色度残差缩放因子,或者在该视频数据流的自适应参数集级别中解析该一个或多个色度残差缩放因子;以及signaling one or more chroma residual scaling factors in the adaptive parameter set level of the video data stream, or parsing the one or more chroma residual scaling factors in the adaptive parameter set level of the video data stream; as well as 将色度缩放应用于该当前色度残差块的色度残差样本。Applies chroma scaling to the chroma residual samples of this current chroma residual block.
CN202080021613.7A 2019-03-15 2020-03-13 Delay reduction method and device for chroma residual scaling Active CN113632481B (en)

Applications Claiming Priority (13)

Application Number Priority Date Filing Date Title
US201962818799P 2019-03-15 2019-03-15
US62/818,799 2019-03-15
US201962822866P 2019-03-23 2019-03-23
US62/822,866 2019-03-23
US201962837733P 2019-04-24 2019-04-24
US62/837,733 2019-04-24
US201962863333P 2019-06-19 2019-06-19
US62/863,333 2019-06-19
US201962866710P 2019-06-26 2019-06-26
US62/866,710 2019-06-26
US201962870757P 2019-07-04 2019-07-04
US62/870,757 2019-07-04
PCT/CN2020/079287 WO2020187161A1 (en) 2019-03-15 2020-03-13 Method and apparatus of latency reduction for chroma residue scaling

Publications (2)

Publication Number Publication Date
CN113632481A CN113632481A (en) 2021-11-09
CN113632481B true CN113632481B (en) 2023-12-26

Family

ID=78378415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080021613.7A Active CN113632481B (en) 2019-03-15 2020-03-13 Delay reduction method and device for chroma residual scaling

Country Status (1)

Country Link
CN (1) CN113632481B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104471940A (en) * 2012-04-16 2015-03-25 联发科技(新加坡)私人有限公司 Method and apparatus of simplified luma-based chroma intra prediction
WO2015196119A1 (en) * 2014-06-20 2015-12-23 Qualcomm Incorporated Cross-component prediction in video coding
CN105723707A (en) * 2013-11-01 2016-06-29 高通股份有限公司 Color residual prediction for video coding
JP2016530775A (en) * 2013-07-15 2016-09-29 クゥアルコム・インコーポレイテッドQualcomm Incorporated Inter color component residual prediction

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI606718B (en) * 2012-01-03 2017-11-21 杜比實驗室特許公司 Specifying visual dynamic range coding operations and parameters
US10531105B2 (en) * 2013-12-17 2020-01-07 Qualcomm Incorporated Signaling partition information for 3D lookup table for color gamut scalability in multi-layer video coding

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104471940A (en) * 2012-04-16 2015-03-25 联发科技(新加坡)私人有限公司 Method and apparatus of simplified luma-based chroma intra prediction
JP2016530775A (en) * 2013-07-15 2016-09-29 クゥアルコム・インコーポレイテッドQualcomm Incorporated Inter color component residual prediction
CN105723707A (en) * 2013-11-01 2016-06-29 高通股份有限公司 Color residual prediction for video coding
WO2015196119A1 (en) * 2014-06-20 2015-12-23 Qualcomm Incorporated Cross-component prediction in video coding

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Chroma residual scaling with separate luma/chroma tree;Edouard François, Christophe Chevance;《Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11 14th Meeting: Geneva》;全文 *
Luc Trudeau ; Nathan Egge ; David Barr.Predicting Chroma from Luma in AV1.《2018 Data Compression Conference》.2018,全文. *

Also Published As

Publication number Publication date
CN113632481A (en) 2021-11-09

Similar Documents

Publication Publication Date Title
CN106664405B (en) Robust encoding/decoding of escape-coded pixels with palette mode
US10506234B2 (en) Method of run-length coding for palette predictor
CA2949542C (en) Block adaptive color-space conversion coding
TWI700919B (en) Video encoding/decoding method/apparatus and storage medium thereof
RU2457632C2 (en) Method and apparatus for providing reduced resolution update mode for multi-view video coding
TWI752438B (en) Method and apparatus of latency reduction for chroma residue scaling
KR101700966B1 (en) Methods and apparatus for illumination compensation of intra-predicted video
US10477214B2 (en) Method and apparatus for scaling parameter coding for inter-component residual prediction
AU2019202043A1 (en) Method and apparatus for palette coding of monochrome contents in video and image compression
CN114930822A (en) Entropy coding and decoding for palette escape symbols
CN119629366A (en) Image prediction method, encoder, decoder and storage medium
CN112997481A (en) Method and apparatus for encoding and decoding a luminance-chrominance-only coding tree with constraints
WO2021088951A1 (en) Quantization properties of adaptive in-loop color-space transform for video coding
KR20220138864A (en) Method and apparatus for signaling loop filter parameters in an image or video processing system
CN113853787A (en) Transform skip mode based on sub-block usage
TWI734501B (en) Method and apparatus of video coding
CN110771166B (en) Intra-frame prediction device and method, encoding device, decoding device, and storage medium
US20220272322A1 (en) Method and Apparatus of Residual Coding Selection for Lossless Coding Mode in Video Coding
CN113632481B (en) Delay reduction method and device for chroma residual scaling
TWI811070B (en) Method and apparatus of video coding
KR20220088682A (en) Decryption apparatus, program, and decryption method
WO2024222411A1 (en) Entropy coding transform blocks
TW202341736A (en) Method and apparatus for video coding
CN119325709A (en) Adaptive codec image and video data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20220505

Address after: Hsinchu County, Taiwan, China

Applicant after: MEDIATEK Inc.

Address before: China Taiwan Hsinchu Science Park Hsinchu city Dusing a road No.

Applicant before: MEDIATEK Inc.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant