Overriding of quantization parameters in video coding
By dynamically adjusting the size of the chroma BDPCM mode, crop quantization parameters, and palette mode during video encoding and decoding, the limitations of ACT and palette modes are overcome, achieving more efficient video encoding and decoding and lossless encoding and decoding, and optimizing the processing of outlier samples.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DOUYIN VISION CO LTD
- Filing Date
- 2021-01-14
- Publication Date
- 2026-05-26
AI Technical Summary
In the prior art, the ACT and luma BDPCM modes disable the chroma BDPCM mode when enabled on the codec block, resulting in low encoding and decoding efficiency; the ACT design does not support lossless encoding and decoding, and the quantization parameter (QP) may become negative; the maximum size and predictor size of the palette mode are fixed, which limits flexibility; the binarization method of the escaped sample does not depend on the quantization parameter (QP).
The chroma BDPCM mode is inferred based on the usage of ACT and luminance BDPCM modes by enabling or disabling the chroma BDPCM mode on the block; the quantization parameter (QP) is clipped when ACT is enabled; the maximum size of the palette mode and the predictor size are dynamically adjusted according to the encoding and decoding characteristics; the binarization method of the outlier sample depends on the quantization parameter (QP).
It improves encoding and decoding efficiency, supports lossless encoding and decoding, enhances the flexibility of the palette mode, and optimizes the encoding and decoding process for escaped samples.
Smart Images

Figure CN115244926B_ABST
Abstract
Description
[0001] Cross-references to related applications
[0002] In accordance with applicable patent law and / or the Paris Convention, this application promptly claims priority and benefit to International Patent Application No. PCT / CN2020 / 072105, filed on January 14, 2020. For all purposes under the law, the entire disclosure of the aforementioned application is incorporated herein by reference as part of the disclosure of this application. Technical Field
[0003] This patent document relates to image and video encoding and decoding. Background Technology
[0004] Digital video accounts for the largest share of bandwidth usage on the internet and other digital communication networks. As the number of connected user devices capable of receiving and displaying video increases, the bandwidth demand for digital video is expected to continue to grow. Summary of the Invention
[0005] This document discloses systems, methods, and apparatus for video encoding and decoding, including signaling notification and overwriting of quantization parameters.
[0006] In one example aspect, a video processing method is disclosed. The method includes, for a current video block encoded using an adaptive color transform (ACT) mode, determining whether to enable a joint coding of chroma residual (JCCR) encoding / decoding tool for the current video block; and, based on this determination, performing a conversion between the video and a bitstream of the video, wherein the bitstream conforms to a rule, and wherein the rule specifies that when the JCCR encoding / decoding tool is enabled, signaling is used to notify one or more quantization parameter (QP) offsets for encoding / decoding the current video block.
[0007] In another example aspect, a video processing method is disclosed. The method includes performing a conversion between a current video block and a bitstream of the video, wherein the bitstream conforms to a format rule, and wherein the format rule specifies a manner for deriving or signaling-notified incremental quantization parameters (QPs) based on codec information of the current video block.
[0008] In yet another example aspect, a video processing method is disclosed. The method includes performing a conversion between a current video block and a bitstream of the video, wherein the bitstream conforms to a format rule, and wherein the format rule specifies that signaling notifications in the Picture Parameter Set (PPS) associated with the current video block indicate one or more quantization parameter (QP) offsets used for encoding and decoding the current video block, independent of information signaled in the Sequence Parameter Set (SPS) associated with the current video block.
[0009] In yet another example aspect, a video processing method is disclosed. The method includes performing a conversion between a current video block and a bitstream of the video, wherein the bitstream conforms to a format rule, and wherein the format rule specifies a video level, at which signaling is provided to inform one or more quantization parameter (QP) offsets for encoding and decoding the current video block, wherein the video level is a first level or a second level lower than the first level.
[0010] In yet another example aspect, a video processing method is disclosed. The method includes performing a conversion between a current video block and a bitstream of the video, wherein the bitstream conforms to a format rule, and wherein the format rule specifies whether and how an overwrite mechanism is used to signal quantization parameter (QP) offsets used for encoding and decoding the current video block.
[0011] In yet another example aspect, a video encoder apparatus is disclosed. This video encoder apparatus includes a processor configured to implement the methods described above.
[0012] In yet another example aspect, a video decoder apparatus is disclosed. This video decoder apparatus includes a processor configured to implement the methods described above.
[0013] In yet another example aspect, a non-transitory computer-readable medium on which code is stored is disclosed. This code implements one of the methods described herein in the form of processor-executable code.
[0014] These and other features are described throughout this document. Attached Figure Description
[0015] Figure 1 The flow of the screen content codec (SCC) decoder for Loop Adaptive Color Transformation (ACT) is shown.
[0016] Figure 2 The diagram illustrates the decoding process using ACT.
[0017] Figure 3 An example of a block encoded and decoded in palette mode is shown.
[0018] Figure 4An example of using a palette predictor to signal palette entries is shown.
[0019] Figure 5 Examples of horizontal and vertical traversal scans are shown.
[0020] Figure 6 An example of encoding and decoding a palette index is shown.
[0021] Figure 7 This is a block diagram illustrating an example video processing system that can implement the various techniques disclosed herein.
[0022] Figure 8 This is a block diagram of an example hardware platform used for video processing.
[0023] Figure 9 This is a block diagram illustrating a video encoding / decoding system according to some embodiments of the present disclosure.
[0024] Figure 10 This is a block diagram illustrating an encoder according to some embodiments of the present disclosure.
[0025] Figure 11 This is a block diagram illustrating a decoder according to some embodiments of the present disclosure.
[0026] Figure 12-16 A flowchart of an example method for video processing is shown. Detailed Implementation
[0027] The use of section headings in this document is for ease of understanding and does not limit the applicability of the techniques and embodiments disclosed in each section to that section. Furthermore, the use of H.266 terminology in some descriptions is merely for ease of understanding and not to limit the scope of the disclosed techniques. Therefore, the techniques described herein are also applicable to other video codec protocols and designs.
[0028] 1. Preliminary Discussion
[0029] Video codec standards are primarily developed from well-known ITU-T and ISO / IEC standards. ITU-T developed H.261 and H.263, while ISO / IEC developed MPEG-1 and MPEG-4 visual standards. These two organizations jointly developed the H.262 / MPEG-2 video standard.
[0030] This patent document relates to image / video codec technology. Specifically, it relates to adaptive color transformation in image / video codecs. It can be applied to standards under development, such as multi-functional video codecs. It can also be applied to future video codec standards or video codecs.
[0031] 2. Introduction to Video Encoding and Decoding
[0032] Video coding standards have mainly evolved through the well-known ITU-T and ISO / IEC standards. ITU-T developed H.261 and H.263, and ISO / IEC developed MPEG-1 and MPEG-4 Visual. The two organizations jointly developed the H.262 / MPEG-2 video standard, the H.264 / MPEG-4 Advanced Video Coding (AVC) standard, and the H.265 / HEVC standard. Since H.262, video coding standards are based on a hybrid video coding structure, in which temporal prediction plus transform coding is used. To explore future video coding technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, JVET has adopted many new methods and incorporated them into a reference software called the Joint Exploration Model (JEM). In April 2018, VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) established the Joint Video Expert Team (JVET) to work on the VVC standard, with the goal of reducing the bit rate by 50% compared to HEVC.
[0033] The latest version of the VVC draft, namely the Versatile Video Coding (Draft 7), can be found at: http: / / phenix.it-sudparis.eu / jvet / doc_end_user / documents / 16_Geneva / wg11 / JVET-P2001-v14.zip.
[0034] The latest reference software for VVC, called VTM, can be found at:
[0035] https: / / vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM / tags / VTM-7.02.1 Adaptive Color Transform (ACT) in HEVC-SCC
[0036] At the 18th JCT-VC conference (June 30 – July 9, 2014, Sapporo, Japan), Adaptive Color Transform (ACT) was adopted in HEVC Screen Content Codec (SCC) test model 2. ACT performs loop color space conversion in the prediction residual domain using color transformation matrices based on the YCoCg and YCoCg-R color spaces. ACT is adaptively enabled or disabled at the CU level using the flag cu_residual_act_flag. ACT can be used in conjunction with Cross Component Prediction (CCP), another inter-frame component decorrelation method already supported in HEVC. When both are enabled, ACT is performed after CCP at the decoder, as shown below. Figure 1 As shown.
[0037] 2.1.1 Color Space Conversion in ACT
[0038] Color space conversion in ACT is based on the YCoCg-R transform. Both lossy and lossless encoding / decoding (cu_transquant_bypass_flag = 0 or 1) use the same inverse transform, but in the case of lossy encoding / decoding, an additional 1-bit left shift is applied to the Co and Cg components. Specifically, the following color space transformations are used for forward and backward conversions in lossy and lossless encoding / decoding:
[0039] Forward transform (non-normalized) of lossy encoding and decoding:
[0040]
[0041] Forward transform (non-normalized) of lossless encoding and decoding:
[0042] Co = RB
[0043] t = B + (Co >> 1)
[0044] Cg=(Gt)
[0045] Y = t + (Cg >> 1)
[0046] Backward transformation (normalized):
[0047]
[0048] The positive color transformation is unnormalized, and its norm for Y and Cg is approximately equal to 1 / 2. For Co equals To compensate for the non-normalization nature of the forward transform, incremental QP values of (-5, -3, -5) are applied to (Y, Co, Cg). In other words, for a given "normal" QP in the CU, if ACT is enabled, then for (Y, Co, Cg), the quantization parameters are set to (QP-5, QP-3, QP-5). The adjusted quantization parameters only affect the quantization and inverse quantization of the residuals in the CU. For deblocking, the "normal" QP value is still used. Clipping to 0 is applied to the adjusted QP value to ensure that the adjusted QP value does not become negative. Note that this QP adjustment only applies to lossy codecs, as quantization is not performed in lossless codecs (cu_transquant_bypass_flag = 1). In SCM 4, additional QP offset values are introduced as PPS / strip level signaling notifications. These QP offset values, instead of (-5, -3, -5), can be used for the CU when applying adaptive color transforms.
[0049] When the input bit depths of the color components are different, an appropriate left shift is applied during ACT to align the sample bit depth with the maximum bit depth, and an appropriate right shift is applied after ACT to restore the original sample bit depth.
[0050] 2.2 ACT in VVC
[0051] Figure 2 The diagram illustrates the decoding flowchart of VVC using ACT. Figure 2 As shown, the color space conversion is performed in the residual domain. Specifically, an additional decoding module, the inverse ACT, is introduced after the inverse transform to convert the residual from the YCgCo domain back to the original domain.
[0052] In VVC, a CU leaf node is also used as a unit for transform processing unless the maximum transform size is smaller than the width or height of a coding unit (CU). Therefore, in the proposed implementation, a CU is signaled to the ACT flag to select the color space for encoding / decoding its residuals. Furthermore, according to the HEVC ACT design, for inter-frame and IBC CUs, ACT is enabled only if at least one non-zero coefficient exists in the CU. For intra-frame CUs, ACT is enabled only if the chroma component selects the same intra-prediction mode (i.e., DM mode) as the luma component.
[0053] The core transformation used for color space conversion remains the same as that used for HEVC. Furthermore, similar to the ACT design in HEVC, a QP adjustment of (-5, -5, -3) is applied to the transformation residuals to compensate for changes in the dynamic range of the residual signaling before and after color transformation.
[0054] On the other hand, both forward and inverse color transformations require access to the residuals of all three components. Accordingly, in the proposed implementation, ACT is disabled in two cases where not all residuals of the three components are available.
[0055] 1. Split Tree Segmentation: When using a split tree, the luminance and chrominance samples within a CTU are segmented by different structures. This results in the CU in the luminance tree containing only the luminance component, while the CU in the chrominance tree contains only the two chrominance components.
[0056] 2. Intra-sub-partition prediction (ISP): ISP sub-segmentation applies only to luma, while chroma signaling is encoded / decoded without being segmented. In the current ISP design, except for the last ISP sub-segment, other sub-segments only contain luma components.
[0057] The draft codec unit in the VVC draft is shown below.
[0058]
[0059]
[0060]
[0061]
[0062]
[0063]
[0064]
[0065]
[0066]
[0067] A value of 1 for `cu_act_enabled_flag` indicates that the residual of the current codec unit is encoded and decoded in the YCgCo color space. A value of 0 for `cu_act_enabled_flag` indicates that the residual of the current codec unit is encoded and decoded in the original color space. If `cu_act_enabled_flag` does not exist, it is inferred to be equal to 0.
[0068] 2.3 Transform Skip Mode in VVC
[0069] Similar to HEVC, the block residuals can be encoded and decoded using a transform skip mode, which completely skips the block's transform process. Furthermore, for transform skip blocks, the minimum allowed quantization parameter (QP) for signaling notification in SPS is used, which in VTM 7.0 is set to equal to 6 * (internalBitDepth – inputBitDepth) + 4.
[0070] 2.4 Block-based Delta Pulse Code Modulation (BDPCM)
[0071] In JVET-M0413, a block-based incremental pulse coding-decoding modulation (BDPCM) is proposed to efficiently encode and decode screen content and then apply it to VVC.
[0072] The prediction direction used in BDPCM can be either vertical or horizontal prediction mode. Intra-prediction of the entire block is performed by copying samples along the prediction direction (horizontal or vertical prediction), similar to intra-prediction. The residual is quantized, and the difference between the quantized residual and its predictor (horizontal or vertical) quantization value is encoded and decoded. This can be described as follows: For a block of size M (rows) × N (columns), let r... i,j ,0≤i≤M-1,0≤j≤N-1 is the prediction residual after performing intra-frame prediction using unfiltered samples from the top or left block boundary samples horizontally (copying the left neighboring pixel value of the prediction block line by line) or vertically (copying the top neighboring line to each line in the prediction block).
[0073] Let Q(r) i,j ), 0≤i≤M-1, 0≤j≤N-1 represent residuals r i,j The quantized version is then used, where the residual is the difference between the original block and the predicted block. The block DPCM is then applied to the quantized residual samples to obtain an element-wise... Modified M×N array When signaling is sent to the vertical BDPCM:
[0074]
[0075] For horizontal prediction, applying a similar rule, the residual quantization samples are obtained by the following formula.
[0076]
[0077] Remaining quantization samples It is sent to the decoder.
[0078] At the decoder end, the above calculation is reversed to produce Q(r). i,j), 0≤i≤M-1, 0≤j≤N-1.
[0079] For vertical prediction cases
[0080]
[0081] Regarding the horizontal situation
[0082]
[0083] Inverse quantization residual Q -1 (Q(r i,j Add to the block-predicted values to generate reconstructed sample values.
[0084] The main advantage of this approach is that inverse BDPCM can be performed in real time during coefficient resolution, simply by adding predictors when resolving coefficients, or it can be performed after resolution.
[0085] In VTM 7.0, BDPCM can also be applied to chroma blocks, and chroma BDPCM has a different flag and BDPCM direction than the luminance BDPCM mode.
[0086] 2.5 Scaling process of transform coefficients
[0087] The following is the text regarding the scaling process of transformation coefficients in JVET-P2001-vE.
[0088] The input to this process is:
[0089] – Brightness position (xTbY, yTbY), specifies the top-left corner sample of the current brightness transform block relative to the top-left corner brightness sample of the current image.
[0090] – The variable nTbW specifies the transform block width.
[0091] – The variable nTbH specifies the transform block height.
[0092] – The variable predMode specifies the prediction mode of the codec unit.
[0093] – The variable cIdx specifies the color component of the current block.
[0094] The output of this process is an array d of (nTbW)×(nTbH) with scaling transformation coefficients of elements d[x][y].
[0095] The quantization parameter qP is derived as follows:
[0096] – If cIdx equals 0, then the following applies:
[0097] qP=Qp′ Y (1129)
[0098] Otherwise, if TuCResMode[xTbY][yTbY] equals 2, then the following applies:
[0099] qP=Qp′ CbCr (1130)
[0100] Otherwise, if cIdx equals 1, the following applies:
[0101] qP=Qp′ Cb (1131)
[0102] Otherwise (cIdx equals 2), the following applies:
[0103] qP=Qp′ Cr (1132)
[0104] The quantization parameter qP is modified, and the derivation of variables rectNonTsFlag and bdShift is as follows:
[0105] – If transform_skip_flag[xTbY][yTbY][cIdx] equals 0, then the following applies:
[0106] qP=qP-(cu_act_enabled_flag[xTbY][yTbY]?5:0)(1133)
[0107] rectNonTsFlag=(((Log2(nTbW)+Log2(nTbH))&1)==1)? 1:0(1134)
[0108] bdShift=BitDepth+rectNonTsFlag+((Log2(nTbW)+Log2(nTbH)) / 2)-5+pic_dep_quant_enabled_flag(1135)
[0109] – Otherwise (transform_skip_flag[xTbY][yTbY][cIdx] equals 1), the following applies:
[0110] qP=Max(QpPrimeTsMin,qP)-(cu_act_enabled_flag[xTbY][yTbY]?5:0)(1136)
[0111] rectNonTsFlag = 0 (1137)
[0112] bdShift = 10 (1138)
[0113] The derivation of the variable bdOffset is as follows:
[0114] bdOffset = (1 <<bdShift)> >1 (1139)
[0115] The specified list levelScale[][] is levelScale[j][k] = {{40,45,51,57,64,72},{57,64,72,80,90,102}}, where j = 0..1 and k = 0..5.
[0116] Set the (nTbW)x(nTbH) array dz to be equal to the (nTbW)x(nTbH) array TransCoeffLevel[xTbY][yTbY][cIdx].
[0117] The following applies to the derivation of the scaling transformation coefficients d[x][y] where x = 0..nTbW-1 and y = 0..nTbH-1:
[0118] – The intermediate scaling factor m[x][y] is derived as follows:
[0119] – m[x][y] is set to 16 if one or more of the following conditions are true:
[0120] –sps_scaling_list_enabled_flag equals 0.
[0121] –pic_scaling_list_present_flag equals 0.
[0122] –transform_skip_flag[xTbY][yTbY][cIdx] equals 1.
[0123] –scaling_matrix_for_lfnst_disabled_flag equals 1 and lfnst_idx[xTbY][yTbY] is not equal to 0.
[0124] –Otherwise, the following applies:
[0125] –Based on the predMode, cIdx, nTbW, and nTbH specified in Table 36, the variable id is derived, and the variable log2MatrixSize is derived as follows:
[0126] log2MatrixSize=(id<2)? 1:(id<8)? 2:3 (1140)
[0127] The scaling factor m[x][y] is derived as follows:
[0128] m[x][y] = ScalingMatrixRec[id][i][j], where i = (x <<log2MatrixSize)> Log2(nTbW),j=(y<<log2MatrixSize)> Log2(nTbH) (1141)
[0129] – If id is greater than 13 and x and y are both equal to 0, then m[0][0] is further modified as follows:
[0130] m[0][0]=ScalingMatrixDCRec[id-14] (1142)
[0131] Note—Quantization matrix element m[x][y] can be set to zero when any of the following conditions are true.
[0132] -x is greater than 32
[0133] -y is greater than 32
[0134] – The default transformation mode for decoding is no encoding / decoding (i.e., transformation type is not equal to 0) and x is greater than 16.
[0135] – The default transformation mode for decoding tu is no encoding / decoding (i.e., transformation type is not equal to 0) and y is greater than 16.
[0136] The derivation of the scaling factor ls[x][y] is as follows:
[0137] – If pic_dep_quant_enabled_flag equals 1 and transform_skip_flag[xTbY][yTbY][cIdx] equals 0, then the following applies:
[0138] ls[x][y]=(m[x][y]*levelScale[rectNonTsFlag][(qP+1)%6])<<((qP+1) / 6)(1143)
[0139] – Otherwise (pic_dep_quant_enabled_flag equals 0 or transform_skip_flag[xTbY][yTbY][cIdx] equals 1), the following applies:
[0140] ls[x][y]=(m[x][y]*levelScale[rectNonTsFlag][qP%6])<<(qP / 6)(1144)
[0141] – When BdpcmFlag[xTbY][yYbY][cIdx] equals 1, dz[x][y] is modified as follows:
[0142] – If BdpcmDir[xTbY][yYbY][cIdx] equals 0 and x is greater than 0, then the following applies:
[0143] dz[x][y]=Clip3(CoeffMin,CoeffMax,dz[x-1][y]+dz[x][y]) (1145)
[0144] Otherwise, if BdpcmDir[xTbY][yTbY][cIdx] equals 1 and y is greater than 0, then the following applies:
[0145] dz[x][y]=Clip3(CoeffMin,CoeffMax,dz[x][y-1]+dz[x][y]) (1146)
[0146] The derivation of the value dnc[x][y] is as follows:
[0147] dnc[x][y]=(dz[x][y]*ls[x][y]+bdOffset)>>bdShift (1147)
[0148] The scaling transformation coefficients d[x][y] are derived as follows:
[0149] d[x][y]=Clip3(CoeffMin,CoeffMax,dnc[x][y]) (1148)
[0150] Table 36—Specifications for the Scaling Matrix Identifier Variable id based on predMode, cIdx, nTbW, and nTbH
[0151]
[0152] 2.6 Palette Mode
[0153] 2.6.1 The concept of palette mode
[0154] The basic idea behind palette mode is that pixels in a CU are represented by a small set of representative color values. This set is called the palette. Samples outside the palette can also be indicated by an escape symbol for (potentially quantized) component values after signaling notification. Such pixels are called escape pixels. Palette mode is as follows: Figure 3 As shown. Figure 3As shown, for each pixel with three coloc components (luminance and two chrominance components), a palette index is established, and the block can be reconstructed based on the values found in the palette.
[0155] 2.6.2 Encoding and Decoding of Palette Entries
[0156] For the encoding and decoding of palette entries, palette predictors are preserved. The maximum size of the palette and the palette predictors are signaled in the SPS. In HEVC-SCC, the `palette_predictor_initializer_present_flag` is introduced in the PPS. When this flag is 1, the entries used to initialize the palette predictors are signaled in the bitstream. Palette predictors are initialized at the beginning of each CTU line, each stripe, and each slice. Depending on the value of `palette_predictor_initializer_present_flag`, the palette predictors are either reset to 0 or initialized using palette predictor initializer entries signaled in the PPS. In HEVC-SCC, a palette predictor initializer of size 0 is enabled to allow explicit disabling of palette predictor initialization at the PPS level.
[0157] For each entry in the palette predictor, a reuse flag is sent to indicate whether it is part of the current palette. This is in Figure 4 The diagram illustrates this. A reuse flag is sent using zero-length codec. Following this, the number of new palette entries is notified using Exponential Golomb (EG) code of order 0 (i.e., EG-0) signaling. Finally, the component values of the new palette entries are signaled.
[0158] 2.6.3 Palette Index Encoding and Decoding
[0159] The palette index is encoded and decoded using horizontal and vertical traversal scans, such as... Figure 5 As shown. The scan order is explicitly signaled in the bitstream using the palette_transpose_flag. For the remainder of this section, it is assumed that the scan is horizontal.
[0160] The palette index is encoded and decoded using two palette sample modes: "COPY_LEFT" and "COPY_ABOVE". In "COPY_LEFT" mode, the palette index is assigned to the decode index. In "COPY_ABOVE" mode, the palette index of the previous row of samples is copied. For both "COPY_LEFT" and "COPY_ABOVE" modes, a run value is signaled specifying the number of subsequent samples that are also encoded and decoded using the same mode.
[0161] In palette mode, the index value of the escape symbol is the number of palette entries. Furthermore, when the escape symbol is part of operation in "COPY_LEFT" or "COPY_ABOVE" mode, the escape component value is signaled for each escape symbol. The encoding and decoding of the palette index is as follows: Figure 6 As shown.
[0162] The syntax is completed in the following order. First, signaling informs the number of index values for the CU. Then, signaling informs the actual index values of the entire CU using truncated binary encoding / decoding. Both the number of indices and the index values are encoded / decoded in bypass mode. This combines the bypass binary numbers (bins) associated with the indices. Then, signaling is performed in an interleaved manner for palette sample mode (if needed) and execution. Finally, the component escape values corresponding to the escape samples of the entire CU are grouped together and encoded / decoded in bypass mode. The binarization of the escape symbols is 3rd order EG encoding / decoding, i.e., EG-3.
[0163] Following the signaling notification index value, the signaling notification appends the syntax element `last_run_type_flag`. This syntax element, combined with the number of indices, eliminates the need for the signaling notification to correspond to the run value of the last run in the block.
[0164] In HEVC-SCC, palette mode is also enabled for 4:2:2, 4:2:0, and monochrome chroma formats. For all chroma formats, the signaling for palette entries and palette indices is almost identical. In non-monochrome formats, each palette entry consists of 3 components. In monochrome formats, each palette entry consists of a single component. For the chroma direction of a subsample, the chroma sample is associated with a luminance sample index divisible by 2. After reconstructing the CU's palette index, if a sample has only one associated component, only the first component of the palette entry is used. The only difference in signaling is the escape component values. For each escape sample, the number of escape component values signaled may vary depending on the number of components associated with that sample.
[0165] 2.6.4 Palette in Two Trees
[0166] In VVC, a dual-tree encoding / decoding structure is used for intra-frame stripe encoding and decoding, so the luma component and the two chroma components can have different palettes and palette indices. Furthermore, the two chroma components share the same palette and palette index.
[0167] 2.6.5 Row-based CG Palette Mode
[0168] VVC employs a row-based CG palette mode. In this method, each CU in the palette mode is divided into multiple segments of m samples (m=16 in this test) based on a traversal scan pattern. The encoding order of the palette run encoder / decoder in each segment is as follows: For each pixel, a signaling instruction is given to a context encoder / decoder binary run_copy_flag=0 to indicate whether the pixel has the same mode as the previous pixel, i.e., whether the previously scanned pixels and the current pixel are both run type COPY_ABOVE, or whether the previously scanned pixels and the current pixel are both run type INDEX and have the same index value. Otherwise, the signaling instruction is given run_copy_flag=1. If the pixel has a different mode than the previous pixel, a signaling instruction is given to a context encoder / decoder binary number copy_above_palette_indices_flag to indicate the run type of the pixel, i.e., INDEX or COPY_ABOVE. Similar to the palette mode in VTM 6.0, if a sample is in the first row (horizontal traversal scan) or the first column (vertical traversal scan), the decoder does not need to resolve the run type because the INDEX mode is used by default. Furthermore, if the previously resolved run type was COPY_ABOVE, the decoder also does not need to resolve the run type. After palette run encoding / decoding of pixels in a segment, the index values (for INDEX mode) and quantized escaped colors are bypassed and grouped separately from the encoding / decoding of the context encoding / decoding binary numbers to improve throughput within each row of CG. Because the index values are now encoded / decoded / decoded after the run encoding / decoding, instead of being processed before palette run encoding / decoding as in VTM, the encoder does not need to signal the number of index values num_palette_indices_minus1 and the last run type copy_above_indices_for_final_run_flag.
[0169] 3. Technical problems solved by the embodiments and solutions described herein
[0170] In the current design, ACT and luma BDPCM modes can be enabled for a single block. However, chroma BDPCM mode is always disabled on blocks encoded using ACT mode. Therefore, predictive signaling can be derived differently for luma and chroma blocks within the same codec unit, which is inefficient.
[0171] When ACT is enabled, the block's quantization parameter (QP) can become negative.
[0172] The current design of ACT does not support lossless encoding and decoding.
[0173] Signaling notifications using ACT are independent of block size.
[0174] The maximum palette size and maximum predictor size are fixed numbers, which may limit the flexibility of the palette mode.
[0175] The escaped samples are binarized using the third-order exponential Columbus (EG) method, but the binarization of the escaped samples does not depend on the quantization parameter (QP).
[0176] 4 Technical Solutions
[0177] The technical solutions described below should be considered as examples to illustrate general concepts. These technical solutions should not be interpreted narrowly. Furthermore, these technical solutions can be combined in any way.
[0178] In the following description, the term "block" can refer to a video region, such as a codec unit (CU), prediction unit (PU), or transform unit (TU), which may contain samples from the three color components. The term "BDPCM" is not limited to designs in VVC, but can also refer to techniques for encoding and decoding residuals using different predictive signaling generation methods.
[0179] In the following description, a video block encoded using a Joint Codec and Decoder (JCCR) mode with chroma residuals comprises signaling only one chroma residual block (e.g., a Cb residual block), deriving another chroma residual block (e.g., a Cr residual block) based on the signaled chroma residual block, and one or more flags (e.g., at the transform unit level) indicating a particular JCCR mode. As mentioned above, the JCCR mode utilizes the correlation between the Cb residual and the Cr residual to improve encoding and decoding efficiency.
[0180] Interaction between ACT and BDPCM (Projects 1-4)
[0181] 1. Whether to enable the chroma BDPCM mode may depend on the use of ACT and / or luminance BDPCM modes.
[0182] a. In one example, when ACT is enabled on a block, the usage indication of the chroma BDPCM mode (e.g., intra_bdpcm_chroma_flag) can be inferred to be the usage indication of the luma BDPCM mode (e.g., intra_bdpcm_luma_flag).
[0183] i. In one example, the inferred value for defining the chroma BDPCM mode is (ACT and luminance BDPCM modes enabled? True: False).
[0184] 1. In one example, when intra_bdpcm_luma_flag is pseudo, intra_bdpcm_chroma_flag can be set to pseudo.
[0185] a. Alternatively, when intra_bdpcm_luma_flag is true, intra_bdpcm_chroma_flag can be set to true.
[0186] ii. Alternatively, in one example, if the block’s luminance BDPCM mode and ACT usage indication are true, then it can be inferred that the chrominance BDPCM mode usage indication is true.
[0187] b. Alternatively, it is possible to conditionally check whether the use of ACT in the block is signaled, for example, using the same BDPCM prediction direction for luminance and chrominance samples in the block.
[0188] i. Alternatively, in addition, a signaling notification for the use of ACT is given after the use of BDPCM mode.
[0189] 2. When ACT is enabled on a block, the indication of the prediction direction of the chroma BDPCM mode (e.g., intra_bdpcm_chroma_dir_flag) can be inferred as the indication of the prediction direction used by the luma BDPCM mode (e.g., intra_bdpcm_luma_dir_flag).
[0190] a. In one example, the inferred value for defining intra_bdpcm_chroma_dir_flag is (ACT enabled? intra_bdpcm_luma_dir_flag: 0).
[0191] i. In one example, if the prediction direction indicator of the luminance BDPCM mode is horizontal, then the prediction direction indicator of the chrominance BDPCM mode can be inferred to be horizontal.
[0192] ii. Alternatively, in one example, if the prediction direction indicator of the luminance BDPCM mode is vertical, the prediction direction indicator of the chrominance BDPCM mode can be inferred to be vertical.
[0193] 3. ACT and BDPCM modes can be applied independently.
[0194] a. In one example, when ACT mode is enabled on a block, BDPCM mode can be disabled on the block.
[0195] i. Alternatively, the signaling notification of the use of ACT mode may be followed by the signaling notification of the use of BDPCM mode.
[0196] ii. Alternatively, the use indication of BDPCM mode may not be signaled and may be inferred as pseudo(0).
[0197] b. In one example, when BDPCM mode is enabled on a block, ACT mode can be disabled on the block.
[0198] i. Alternatively, the signaling instruction for the use of BDPCM mode may be signaled after the signaling instruction for the use of ACT mode.
[0199] ii. Alternatively, the use indication of ACT mode may not be signaled and may be inferred as pseudo(0).
[0200] c. In one example, the BDPCM mode in the above example can represent the luminance BDPCM mode and / or the chrominance BDPCM mode.
[0201] 4. Inverse ACT can be applied before the inverse BDPCM of the decoder.
[0202] a. In one example, ACT can be applied even when the luminance and chrominance BDPCMs have different prediction modes.
[0203] b. Alternatively, at the encoder, a positive ACT can be applied after BDPCM.
[0204] QP settings when ACT is enabled (Item 5)
[0205] 5. It is proposed to trim QP when ACT is enabled.
[0206] a. In one example, the clipping function can be defined as (l,h,x), where l is the lowest possible value of the input x and h is the highest possible value of the input x.
[0207] i. In one example, l can be set to equal to 0.
[0208] ii. In one example, h can be set to equal 63.
[0209] b. In one example, QP can be the qP given in Section 2.5.
[0210] c. In one example, trimming can be performed after QP adjustments for ACT mode.
[0211] d. In one example, when applying transform skip, l can be set to the minimum allowed QP of the transform skip mode.
[0212] Palette mode related (Items 6-7)
[0213] 6. The values of the maximum permissible palette size and / or the maximum permissible predictor size may depend on the codec characteristics. Assume that S1 is the maximum palette size (or palette predictor size) associated with the first codec characteristic; and S2 is the maximum palette size (or palette predictor size) associated with the second codec characteristic.
[0214] a. In one example, the encoding / decoding feature could be a color component.
[0215] i. In one example, the maximum allowed palette size and / or maximum allowed predictor size for different color components can have different values.
[0216] ii. In one example, the maximum permissible palette size and / or maximum permissible predictor size of the first color component (e.g., Y in YCbCr, G in RGB) may differ from other dual color components (e.g., Cr and Cb in YCbCr, B and R in RGB) that do not include the first color component.
[0217] b. In one example, the encoding / decoding feature could be the quantization parameter (QP).
[0218] i. In one example, if QP1 is greater than QP2, then S1 and / or S2 of QP1 should be less than S1 and / or S2 of QP2.
[0219] ii. In one example, a QP can be a strip-level QP or a block-level QP.
[0220] c. In one example, S2 can be greater than or equal to S1.
[0221] d. For the first and second codec features, the indication of the maximum palette size / palette predictor size can be signaled separately or inferred from one.
[0222] i. In one example, S1 can be signaled and S2 can be derived from S1.
[0223] 1. In one example, S2 can be inferred as S1–n.
[0224] 2. In one example, S2 can be inferred as S1 >> n.
[0225] 3. In one example, S2 can be inferred as floor(S1 / n), where floor(x) represents the largest integer not greater than x.
[0226] e. In one example, S1 and / or S2 may be signaled at a high level (e.g., SPS / PPS / PH / strip header) and adjusted at a lower level (e.g., CU / block).
[0227] i. How to adjust S1 and / or S2 can depend on the encoding / decoding information.
[0228] 1. How to adjust S1 and / or S2 can depend on the current QP.
[0229] a. In one example, if the current QP increases, then S1 and / or S2 should decrease.
[0230] 2. How to adjust S1 and / or S2 can depend on the block dimension.
[0231] a. In one example, if the current block size increases, S1 and / or S2 should be increased.
[0232] f.S1 and / or S2 may depend on whether LMCS is used.
[0233] 7. The parameters associated with the binarization method for the escaped sample / pixel can depend on encoding / decoding information, such as quantization parameters (QP).
[0234] a. In one example, the EG binarization method can be used, and the order of EG binarization, denoted by k, can depend on the encoding and decoding information.
[0235] i. In one example, k can decrease as the current QP increases.
[0236] Signaling notification in ACT mode (Items 8-10)
[0237] 8. The indication of the maximum and / or minimum allowed ACT size can be signaled or derived based on encoding / decoding information at the sequence / video / strip / piece / sub-picture / tile / other video processing unit level.
[0238] a. In one example, they can be signaled in SPS / PPS / image header / strip header.
[0239] b. In one example, they can be conditionally signaled, for example, enabled according to ACT.
[0240] c. In one example, the N level of the maximum and / or minimum allowed ACT size can be signaled / defined, for example, N=2.
[0241] i. In one example, the maximum and / or minimum allowed ACT size can be set to K0 or K1 (e.g., K0 = 64, K1 = 32).
[0242] ii. Alternatively, a signaling notification level indication may be provided, for example, a signaling notification flag when N=2.
[0243] d. In one example, an indication of the difference between the maximum and / or minimum allowed ACT size and the maximum and / or minimum allowed transform (or transform skip) size (e.g., for the luma component) can be provided by signaling.
[0244] e. In one example, the maximum and / or minimum allowed ACT size can be derived from the maximum and / or minimum (or transform skip) size allowed (e.g., for the luminance component).
[0245] f. Alternatively, whether and / or how signaling notifications are given to the ACT regarding usage instructions and other ancillary information related to the ACT may depend on the maximum and / or minimum allowed values.
[0246] 9. When a block is larger than the maximum allowed ACT size (or the maximum allowed transform size), the block can be automatically divided into multiple sub-blocks, where all sub-blocks share the same prediction mode (e.g., all sub-blocks are intra-coded), and ACT can be enabled at the sub-block level rather than the block level.
[0247] 10. The use of ACT mode can be conditionally signaled based on block dimensions (e.g., block width and / or height, block width multiplied by height, the ratio between block width and height, the maximum / minimum value of block width and height) and / or the maximum allowed ACT size.
[0248] a. In one example, when certain conditions are met (e.g., based on block dimensions), a signaling instruction for the use of ACT mode can be sent.
[0249] i. In one example, the condition is whether the current block width is less than or equal to m and / or the current block height is less than or equal to n.
[0250] ii. In one example, the condition is whether the current block width multiplied by its height is less than or greater than m.
[0251] iii. In one example, the condition is whether the current block width multiplied by its height is greater than or not less than m.
[0252] b. Alternatively, in one example, the usage pattern of ACT may not be signaled when certain conditions (e.g., based on block dimensions) are not met.
[0253] i. In one example, the condition is whether the current block width is greater than m and / or the current block height is greater than n.
[0254] ii. In one example, the condition is whether the current block width multiplied by its height is less than or greater than m.
[0255] iii. In one example, the condition is whether the current block width multiplied by its height is greater than or not less than m.
[0256] iv. Alternatively, the usage indication for ACT mode can be inferred as 0.
[0257] c. In the above example, variables m and n can be predefined (e.g., 4, 64, 128), or be notified by a signal, or be deduced on-the-fly.
[0258] i. In one example, m and / or n can be derived based on the decoded messages of SPS / PPS / APS / CTU lines / CTU groups / CU / blocks.
[0259] 1. In one example, m and / or n can be set to be equal to the maximum allowed transformation size (e.g., MaxTbSizeY).
[0260] Signaling notification of constraint flags in the general constraint information syntax (Item 11-16)
[0261] The following constraint flags can be signaled in video units other than SPS. For example, they can be signaled in the general constraint information syntax specified in JVET-P2001-vE.
[0262] 11. It is proposed to have a constraint flag to specify whether the SPS ACT enable flag (e.g., sps_act_enabled_flag) should be equal to 0.
[0263] a. In one example, this flag could be represented as no_act_constraint_flag
[0264] i. When this flag is equal to 1, the SPS ACT enable flag (e.g., sps_act_enabled_flag) should be equal to 0.
[0265] ii. When the flag is equal to 0, no such constraint is imposed.
[0266] 12. It is proposed that there be a constraint flag to specify whether the SPS BDPCM enable flag (e.g., sps_bdpcm_enabled_flag) should be equal to 0.
[0267] a. In one example, this flag can be represented as no_bdpcm_constraint_flag.
[0268] i. When this flag is equal to 1, the SPS BDPCM enable flag (e.g., sps_bdpcm_enabled_flag) should be equal to 0.
[0269] ii. When the flag is equal to 0, no such constraint is imposed.
[0270] 13. It is proposed that there be a constraint flag to specify whether the SPS chroma BDPCM enable flag (e.g., sps_bdpcm_chroma_enabled_flag) should be equal to 0.
[0271] a. In one example, this flag could be represented as no_bdpcm_chroma_constraint_flag.
[0272] i. When this flag is equal to 1, the SPS chroma BDPCM enable flag (e.g., sps_bdpcm_chroma_enabled_flag) should be equal to 0.
[0273] ii. When the flag is equal to 0, no such constraint is imposed.
[0274] 14. It is proposed that there be a constraint flag to specify whether the SPS palette enabling flag (e.g., sps_palette_enabled_flag) should be equal to 0.
[0275] a. In one example, this flag could be represented as no_palette_constraint_flag.
[0276] i. When this flag is equal to 1, the SPS palette enable flag (e.g., sps_palette_enabled_flag) should be equal to 0.
[0277] ii. When the flag is equal to 0, no such constraint is imposed.
[0278] 15. It is proposed that there be a constraint flag to specify whether the SPS RPR enabling flag (e.g., ref_pic_resampling_enabled_flag) should be equal to 0.
[0279] a. In one example, this flag could be represented as no_ref_pic_resampling_constraint_flag.
[0280] i. When this flag is equal to 1, the SPS RPR enable flag (e.g., ref_pic_resampling_enabled_flag) should be equal to 0.
[0281] ii. When the flag is equal to 0, no such constraint is imposed.
[0282] 16. In the examples above (bullets 11-15), such constraint flags can be conditionally signaled, for example, based on the chroma format (e.g., chroma_format_idc) and / or a separate planar codec or ChromaArrayType.
[0283] ACT QP Offset (Items 17-19)
[0284] 17. It is proposed that when applying ACT to a block, the ACT offset can be applied after applying other chroma offsets (e.g., chroma offsets in PPS and / or picture header (PH) and / or strip header (SH)).
[0285] 18. It is proposed that when applying YCgCo color transformation to a block, a PPS and / or PH offset other than -5 be set for JCbCr mode 2.
[0286] a. In one example, the offset may not be -5.
[0287] b. In one example, the offset can be indicated in the PPS (e.g., as pps_act_cbcr_qp_offset_plus6), and the offset can be set to pps_act_cbcr_qp_offset_plus6-6.
[0288] c. In one example, the offset can be indicated in the PPS (e.g., as pps_act_cbcr_qp_offset_plus7), and the offset can be set to pps_act_cbcr_qp_offset_plus7-7.
[0289] 19. It is proposed that when YCgCo-R is applied to a block, the PPS and / or PH offsets are not 1 for JCbCr mode 2.
[0290] a. In one example, the offset may not be -1.
[0291] b. In one example, the offset can be indicated in the PPS (e.g., as pps_act_cbcr_qp_offset), and the offset can be set to pps_act_cbcr_qp_offset.
[0292] c. In one example, the offset can be indicated in the PPS (e.g., as pps_act_cbcr_qp_offset_plus1), and the offset can be set to pps_act_cbcr_qp_offset_plus1-1.
[0293] 20. It is proposed that when using JCCR, the QP offset of ACT with YCgCo transformation, denoted as act_qp_offset, may depend on the JCCR mode.
[0294] a. In one example, when JCCR mode is 1, act_qp_offset can be -5.
[0295] i. Alternatively, in one example, when JCCR mode is 1, act_qp_offset can be -6.
[0296] b. In one example, when JCCR mode is 2, act_qp_offset can be -7.
[0297] i. Alternatively, in one example, when JCCR mode is 2, act_qp_offset can be (-7-pps_joint_cbcr_qp_offset-slice_joint_cbcr_qp_offset).
[0298] ii. Alternatively, in one example, when JCCR mode is 2, act_qp_offset can be (-7+pps_joint_cbcr_qp_offset+slice_joint_cbcr_qp_offset).
[0299] c. In one example, when the JCCR mode is 3, the ACT offset can be -4.
[0300] i. Alternatively, in one example, when the JCCR mode is 3, the ACT offset can be -5.
[0301] 21. It is proposed that when using JCCR, the QP offset of ACT with YCgCo-R transformation, denoted as act_qp_offset, may depend on the JCCR mode.
[0302] a. In one example, when JCCR mode is 1, act_qp_offset can be 1.
[0303] i. Alternatively, in one example, when JCCR mode is 1, act_qp_offset can be 0.
[0304] b. In one example, when JCCR mode is 2, act_qp_offset can be -1.
[0305] i. Alternatively, in one example, when JCCR mode is 2, act_qp_offset can be (-1-pps_joint_cbcr_qp_offset-slice_joint_cbcr_qp_offset).
[0306] ii. Alternatively, in one example, when JCCR mode is 2, act_qp_offset can be (-1+pps_joint_cbcr_qp_offset+slice_joint_cbcr_qp_offset).
[0307] c. In one example, when the JCCR mode is 3, the ACT offset can be 2.
[0308] i. Alternatively, in one example, when the JCCR mode is 3, the ACT offset can be 1.
[0309] 22. Whether signaling notifications are sent for the QP offsets of ACT and JCCR codec blocks (e.g., slice_act_cbcr_qp_offset) can depend on whether JCCR condition checks are enabled.
[0310] a. Alternatively, the presence of an indication of the QP offset of the ACT and JCCR codec blocks (e.g., pps_joint_cbcr_qp_offset_present_flag / pps_slice_cbcr_qp_offset_present_flag) may depend on whether condition checks for JCCR are enabled.
[0311] 23. How to derive / signaling notification incremental QP can depend on encoding / decoding information, such as encoding / decoding mode and the use of encoding / decoding tools.
[0312] a. In one example, how the incremental QP for signaling notification can be derived may depend on the ACT usage of the current block and / or the previous encoded / decoded blocks (e.g., the blocks above and to the left of the neighboring blocks).
[0313] b. In one example, the derivation / signaling notification of incremental QPs may depend on whether the current block and the previous codec blocks used to derive the QP predictor share the same codec mode or the enabled / disabled state of the codec tool (e.g., ACT).
[0314] c. In one example, for the current block encoded using encoding / decoding tool X (e.g., ACT / transform skip), the QP predictor derivation process may differ from that of other blocks where X is disabled.
[0315] i. In one example, the QP predictor of the current block encoded and decoded using codec tool X can be derived from those blocks that have codec tool X enabled.
[0316] ii. In one example, the QP predictor for the current block that was not encoded or decoded using codec tool X can be derived from those blocks where codec tool X is disabled.
[0317] 24. How to signal QP offsets independently of SPS in PPS?
[0318] a. Alternatively, the color format indication and / or ACT enable indication can be signaled in the PPS.
[0319] i. Alternatively, QP offsets can be signaled under indicated condition checks.
[0320] 25. Whether QP offsets are notified at the first level (e.g., image level) (e.g., applied to ACT codec blocks)
[0321] a. It is proposed that if a QP offset (e.g., applied to an ACT codec block) exists in a second level (e.g., a stripe level), signaling notifications for the QP offset in the first level should be skipped.
[0322] 26. The QP mentioned in the above example can also exist at the image / strip / film / sub-image level (e.g., image header / PPS / strip header).
[0323] 27. The overwrite mechanism can be used for signaling notification of available QP offsets. That is, QP offsets can be signaled at the first level (e.g., PPS) but overwritten at the second level (e.g., picture header).
[0324] a. Alternatively, a signaling notification flag can be used in either the first or second level to indicate whether overwriting is enabled.
[0325] b. Alternatively, when overwriting is enabled, it is not necessary to notify relevant information in the first-level signaling.
[0326] i. In one example, if an overwrite is applied to the second level (e.g., a stripe), signaling notification of the QP offset (e.g., applied to an ACT codec block) may not occur in the first level (e.g., PPS).
[0327] c. Alternatively, the difference in QP offset between the first and second levels can be signaled in the second level.
[0328] General techniques (items 20-21)
[0329] 28. In the above example, S1, S2, l, h, m, n, and / or k are integers and can depend on
[0330] a. Signaling notification messages in DPS / SPS / VPS / PPS / APS / Picture Header / Strip Header / Piece Group Header / Largest Coding Unit (LCU) / Coding Unit (CU) / LCU Line / LCU Group / TU / PU Block / Video Coding Unit
[0331] b. Location of CU / PU / TU / block / video codec unit
[0332] c. Encoding / decoding mode for blocks containing samples along the edges
[0333] d. Transformation matrix applied to blocks containing sample points along their edges
[0334] e. Block size / block shape of the current block and / or its neighboring blocks
[0335] f. Color format indication (e.g., 4:2:0, 4:4:4, RGB, or YUV)
[0336] g. Encoding / decoding tree structures (such as dual-tree or single-tree structures)
[0337] h. Strip / Piece Type and / or Image Type
[0338] i. Color components (e.g., may be applicable only to Cb or Cr)
[0339] j. Time-domain layer ID
[0340] k. Standard configuration files / levels / layers
[0341] l. Alternatively, the decoder can be notified with signaling S1, S2, l, h, m, n and / or k.
[0342] 29. The proposed methods described above can be applied under certain conditions.
[0343] a. In one example, the condition is that the color format is 4:2:0 and / or 4:2:2.
[0344] b. In one example, the signaling instructions for using the above method can be communicated at the sequence / image / strip / piece / tile / video region level (e.g., SPS / PPS / image header / strip header).
[0345] c. In one example, the use of the above method may depend on
[0346] i. Video content (e.g., screen content or natural content)
[0347] ii. Signaling notification messages in DPS / SPS / VPS / PPS / APS / Picture header / Strip header / Piece group header / Maximum Codec Unit (LCU) / Codec Unit (CU) / LCU line / LCU group / TU / PU block / Video codec unit
[0348] iii. Location of CU / PU / TU / block / video codec unit
[0349] iv. Encoding / decoding modes for blocks containing samples along the edges
[0350] v. A transformation matrix applied to a block containing sample points along its edge.
[0351] vi. Block size of the current block and / or its neighboring blocks
[0352] vii. Block shape of the current block and / or its neighboring blocks
[0353] viii. Indication of color format (e.g., 4:2:0, 4:4:4, RGB, or YUV)
[0354] ix. Encoding / decoding tree structures (such as dual-tree or single-tree)
[0355] x. Strip / group type and / or image type
[0356] xi. Color component (e.g., may only apply to Cb or Cr)
[0357] xii. Temporal layer ID
[0358] xiii. Standard configuration files / levels / layers
[0359] xiv. Alternatively, m and / or n signaling can be sent to the decoder.
[0360] 5 Examples
[0361] These embodiments are based on JVET-P2001-vE. Newly added text is... Bold italic underlined text Highlighted. Deleted text is marked in italics.
[0362] 5.1 Example #1
[0363] This embodiment involves the interaction between ACT and BDPCM modes.
[0364]
[0365]
[0366] 5.2 Example #2
[0367] This embodiment involves the interaction between ACT and BDPCM modes.
[0368] A value of 1 indicates that BDPCM is applied to the current chroma codec block at position (x0, y0), i.e., the transform is skipped. The intra-frame chroma prediction mode is specified by intra_bdpcm_chroma_dir_flag. A value of 0 indicates that BDPCM is not applied to the current chroma codec block at position (x0, y0).
[0369] When intra_bdpcm_chroma_flag does not exist When the time is right, it is inferred that it equals 0.
[0370]
[0371] For x = x0..x0+cbWidth-1, y = y0..y0+cbHeight-1, and cIdx = 1..2, set the variable BdpcmFlag[x][y][cIdx] to be equal to intra_bdpcm_chroma_flag.
[0372] A value of 0 indicates that the BDPCM prediction direction is horizontal. An intra_bdpcm_chroma_dir_flag value of 1 indicates that the BDPCM prediction direction is vertical.
[0373] For x = x0..x0+cbWidth-1, y = y0..y0+cbHeight-1, and cIdx = 1..2, set the variable BdpcmDir[x][y][cIdx] to be equal to intra_bdpcm_chroma_dir_flag.
[0374] 5.3 Example #3
[0375] This embodiment involves QP settings.
[0376] 8.7.3 Scaling process of transformation coefficients
[0377] The input to this process is:
[0378] – Brightness position (xTbY, yTbY), specifies the top-left corner sample of the current brightness transform block relative to the top-left corner brightness sample of the current image.
[0379] – The variable nTbW specifies the transform block width.
[0380] – The variable nTbH specifies the transform block height.
[0381] – The variable predMode specifies the prediction mode of the codec unit.
[0382] – The variable cIdx specifies the color component of the current block.
[0383] The output of this process is an array d of (nTbW)×(nTbH) with scaling transformation coefficients of elements d[x][y].
[0384] …
[0385] The quantization parameter qP is modified, and the derivation of variables rectNonTsFlag and bdShift is as follows:
[0386] – If transform_skip_flag[xTbY][yTbY][cIdx] equals 0, then the following applies:
[0387] qP=qP-(cu_act_enabled_flag[xTbY][yTbY]?5:0) (1133)
[0388]
[0389] rectNonTsFlag=(((Log2(nTbW)+Log2(nTbH))&1)==1)? 1:0(1134)
[0390]
[0391] – Otherwise (transform_skip_flag[xTbY][yTbY][cIdx] equals 1), the following applies:
[0392] qP=Max(QpPrimeTsMin,qP)-(cu_act_enabled_flag[xTbY][yTbY]?5:0)(1136)
[0393]
[0394] rectNonTsFlag = 0 (1137)
[0395] bdShift = 10 (1138)
[0396] …
[0397] 5.4 Example #4
[0398] 8.7.1 Derivation of Quantization Parameters
[0399] …
[0400] The chromaticity parameters (Qp′Cb and Qp′Cr) of the Cb and Cr components, as well as the chromaticity parameter Qp′CbCr of the joint Cb-Cr encoding and decoding, are derived as follows:
[0401] Qp′Cb=Clip3(-QpBdOffset,63,qPCb+pps_cb_qp_offset+slice_cb_qp_offset+CuQpOffsetCb)
[0402] +QpBdOffset (1122)
[0403] Qp′Cr=Clip3(-QpBdOffset,63,qPCr+pps_cr_qp_offset+slice_cr_qp_offset+CuQpOffsetCr)
[0404] +QpBdOffset (1123)
[0405] Qp′CbCr=Clip3(-QpBdOffset,63,qPCbCr+pps_joint_cbcr_qp_offset+
[0406] slice_joint_cbcr_qp_offset+CuQpOffsetCbCr)+QpBdOffset (1124)
[0407] 5.5 Example #5
[0408] 7.3.9.5 Encoding / Decoding Unit Syntax
[0409]
[0410]
[0411]
[0412] 5.6 Example #6
[0413] 7.3.9.5 Encoding / Decoding Unit Syntax
[0414]
[0415]
[0416] 5.7 Example #7
[0417] 8.7.3 Scaling process of transformation coefficients
[0418] The input to this process is:
[0419] – Brightness position (xTbY, yTbY), specifies the top-left corner sample of the current brightness transform block relative to the top-left corner brightness sample of the current image.
[0420] – The variable nTbW specifies the transform block width.
[0421] – The variable nTbH specifies the transform block height.
[0422] – The variable predMode specifies the prediction mode of the codec unit.
[0423] – The variable cIdx specifies the color component of the current block.
[0424] The output of this process is an array d of (nTbW)×(nTbH) with scaling transformation coefficients of elements d[x][y].
[0425] The quantization parameter qP is derived as follows:
[0426] – If cIdx equals 0, then the following applies:
[0427]
[0428] qP=Qp′ Y (1129)
[0429] Otherwise, if TuCResMode[xTbY][yTbY] equals 2, then the following applies:
[0430]
[0431] qP=Qp′ CbCr (1130)
[0432] Otherwise, if cIdx equals 1, the following applies:
[0433]
[0434] qP=Qp′ Cb (1131)
[0435] Otherwise (cIdx equals 2), the following applies:
[0436]
[0437] qP=Qp′ Cr (1132)
[0438] The quantization parameter qP is modified, and the derivation of variables rectNonTsFlag and bdShift is as follows:
[0439] – If transform_skip_flag[xTbY][yTbY][cIdx] equals 0, then the following applies:
[0440] qP=qP-(cu_act_enabled_flag[xTbY][yTbY]?5:0) (1133)
[0441]
[0442] rectNonTsFlag=(((Log2(nTbW)+Log2(nTbH))&1)==1)? 1:0(1134)
[0443]
[0444] – Otherwise (transform_skip_flag[xTbY][yTbY][cIdx] equals 1), the following applies:
[0445] qP=Max(QpPrimeTsMin,qP)-(cu_act_enabled_flag[xTbY][yTbY]?5:0)(1136)
[0446]
[0447] rectNonTsFlag = 0 (1137)
[0448] bdShift = 10 (1138)
[0449] The derivation of the variable bdOffset is as follows:
[0450] bdOffset = (1 <<bdShift)> >1 (1139)
[0451] The specified list levelScale[][] is levelScale[j][k] = {{40,45,51,57,64,72},{57,64,72,80,90,102}}, where j = 0..1 and k = 0..5.
[0452] …
[0453] 5.8 Example #8
[0454] 8.7.3 Scaling process of transformation coefficients
[0455] The input to this process is:
[0456] – Brightness position (xTbY, yTbY), specifies the top-left corner sample of the current brightness transform block relative to the top-left corner brightness sample of the current image.
[0457] – The variable nTbW specifies the transform block width.
[0458] – The variable nTbH specifies the transform block height.
[0459] – The variable predMode specifies the prediction mode of the codec unit.
[0460] – The variable cIdx specifies the color component of the current block.
[0461] The output of this process is an array d of (nTbW)×(nTbH) with scaling transformation coefficients of elements d[x][y].
[0462] – If cIdx equals 0, then the following applies:
[0463] qP=Qp′ Y (1129)
[0464]
[0465] Otherwise, if TuCResMode[xTbY][yTbY] equals 2, then the following applies:
[0466]
[0467] qP=Qp′ CbCr (1130)
[0468] Otherwise, if cIdx equals 1, the following applies:
[0469]
[0470] qP=Qp′ Cb (1131)
[0471] Otherwise (cIdx equals 2), the following applies:
[0472]
[0473] qP=Qp′ Cr (1132)
[0474] The quantization parameter qP is modified, and the derivation of variables rectNonTsFlag and bdShift is as follows:
[0475] – If transform_skip_flag[xTbY][yTbY][cIdx] equals 0, then the following applies:
[0476] qP=qP-(cu_act_enabled_flag[xTbY][yTbY]?5:0) (1133)
[0477] rectNonTsFlag=(((Log2(nTbW)+Log2(nTbH))&1)==1)? 1:0(1134)
[0478]
[0479] – Otherwise (transform_skip_flag[xTbY][yTbY][cIdx] equals 1), the following applies:
[0480] qP=Max(QpPrimeTsMin,qP)-(cu_act_enabled_flag[xTbY][yTbY]?5:0)(1136)
[0481]
[0482] rectNonTsFlag = 0 (1137)
[0483] bdShift = 10 (1138)
[0484] The derivation of the variable bdOffset is as follows:
[0485] bdOffset = (1 <<bdShift)> >1 (1139)
[0486] The specified list levelScale[][] is levelScale[j][k] = {{40,45,51,57,64,72},{57,64,72,80,90,102}}, where j = 0..1 and k = 0..5.
[0487] …
[0488] 5.9 Example #9
[0489] 7.4.3.4 Image Parameter Set RBSP Semantics
[0490]
[0491] 8.7.3 Scaling process of transformation coefficients
[0492] The input to this process is:
[0493] – Brightness position (xTbY, yTbY), specifies the top-left corner sample of the current brightness transform block relative to the top-left corner brightness sample of the current image.
[0494] – The variable nTbW specifies the transform block width.
[0495] – The variable nTbH specifies the transform block height.
[0496] – The variable predMode specifies the prediction mode of the codec unit.
[0497] – The variable cIdx specifies the color component of the current block.
[0498] The output of this process is an array d of (nTbW)×(nTbH) with scaling transformation coefficients of elements d[x][y].
[0499] The quantization parameter qP is derived as follows:
[0500] – If cIdx equals 0, then the following applies:
[0501]
[0502] qP=Qp′ Y (1129)
[0503] Otherwise, if TuCResMode[xTbY][yTbY] equals 2, then the following applies:
[0504]
[0505] qP=Qp′ CbCr (1130)
[0506] Otherwise, if cIdx equals 1, the following applies:
[0507]
[0508] qP=Qp′ Cb (1131)
[0509] Otherwise (cIdx equals 2), the following applies:
[0510]
[0511] qP=Qp′ Cr (1132)
[0512] The quantization parameter qP is modified, and the derivation of variables rectNonTsFlag and bdShift is as follows:
[0513] – If transform_skip_flag[xTbY][yTbY][cIdx] equals 0, then the following applies:
[0514] qP=qP-(cu_act_enabled_flag[xTbY][yTbY]?5:0) (1133)
[0515]
[0516] rectNonTsFlag=(((Log2(nTbW)+Log2(nTbH))&1)==1)? 1:0(1134)
[0517]
[0518] – Otherwise (transform_skip_flag[xTbY][yTbY][cIdx] equals 1), the following applies:
[0519] qP=Max(QpPrimeTsMin,qP)-(cu_act_enabled_flag[xTbY][yTbY]?5:0)(1136)
[0520]
[0521] rectNonTsFlag = 0 (1137)
[0522] bdShift = 10 (1138)
[0523] The derivation of the variable bdOffset is as follows:
[0524] bdOffset = (1 <<bdShift)> >1 (1139)
[0525] The specified list levelScale[][] is levelScale[j][k] = {{40,45,51,57,64,72},{57,64,72,80,90,102}}, where j = 0..1 and k = 0..5.
[0526] …
[0527] 5.10 Example #10
[0528] 7.4.3.4 Image Parameter Set RBSP Semantics
[0529]
[0530]
[0531] 8.7.3 Scaling process of transformation coefficients
[0532] The input to this process is:
[0533] – Brightness position (xTbY, yTbY), specifies the top-left corner sample of the current brightness transform block relative to the top-left corner brightness sample of the current image.
[0534] – The variable nTbW specifies the transform block width.
[0535] – The variable nTbH specifies the transform block height.
[0536] – The variable predMode specifies the prediction mode of the codec unit.
[0537] – The variable cIdx specifies the color component of the current block.
[0538] The output of this process is an array d of (nTbW)×(nTbH) with scaling transformation coefficients of elements d[x][y].
[0539] – If cIdx equals 0, then the following applies:
[0540] qP=Qp′ Y (1129)
[0541]
[0542] Otherwise, if TuCResMode[xTbY][yTbY] equals 2, then the following applies:
[0543]
[0544] qP=Qp′ CbCr (1130)
[0545] Otherwise, if cIdx equals 1, the following applies:
[0546]
[0547]
[0548] qP=Qp′ Cb (1131)
[0549] Otherwise (cIdx equals 2), the following applies:
[0550]
[0551] qP=Qp′ Cr (1132)
[0552] The quantization parameter qP is modified, and the derivation of variables rectNonTsFlag and bdShift is as follows:
[0553] – If transform_skip_flag[xTbY][yTbY][cIdx] equals 0, then the following applies:
[0554] qP=qP-(cu_act_enabled_flag[xTbY][yTbY]?5:0) (1133)
[0555] rectNonTsFlag=(((Log2(nTbW)+Log2(nTbH))&1)==1)? 1:0(1134)
[0556]
[0557] – Otherwise (transform_skip_flag[xTbY][yTbY][cIdx] equals 1), the following applies:
[0558] qP=Max(QpPrimeTsMin,qP)-(cu_act_enabled_flag[xTbY][yTbY]?5:0)(1136)
[0559]
[0560] rectNonTsFlag = 0 (1137)
[0561] bdShift = 10 (1138)
[0562] The derivation of the variable bdOffset is as follows:
[0563] bdOffset = (1 <<bdShift)> >1 (1139)
[0564] The specified list levelScale[][] is levelScale[j][k] = {{40,45,51,57,64,72},{57,64,72,80,90,102}}, where j = 0..1 and k = 0..5.
[0565] …
[0566] 5.11 Example #11
[0567] Syntax changes in PPS:
[0568]
[0569]
[0570] Syntax changes in the strip header:
[0571]
[0572] When cu_act_enabled_flag is 1 and Specifies the offsets for the quantization parameters Qp′Y, Qp′Cb, Qp′Cr, and Qp′CbCr, respectively. The values of pps_act_y_qp_offset, pps_act_cb_qp_offset, and pps_act_cr_qp_offset should be in the range of -12 to +12, inclusive. If not present, the values of pps_act_y_qp_offset, pps_act_cb_qp_offset, and pps_act_cr_qp_offset are inferred to be 0.
[0573] A value of 1 indicates that `slice_act_y_qp_offset`, `slice_act_cb_qp_offset`, `slice_act_cr_qp_offset`, and `slice_act_cbcr_qp_offset` exist in the slice header. A value of 0 for `pps_slice_act_qp_offsets_present_flag` indicates that `slice_act_y_qp_offset`, `slice_act_cb_qp_offset`, `slice_act_cr_qp_offset`, and `slice_act_cbcr_qp_offset` do not exist in the slice header. When they do not exist, the value of `pps_slice_act_qp_offsets_present_flag` is inferred to be 0.
[0574] When determining the values of the quantization parameters Qp'Y, Qp'Cb, Qp'Cr, and Qp'CbCr and Specify the offset. The values of slice_act_y_qp_offset, slice_act_cb_qp_offset, slice_act_cr_qp_offset, and slice_act_cbcr_qp_offset should be in the range of -12 to +12, inclusive. If they do not exist, these values are inferred to be equal to 0. 8.7.1 Derivation of Quantization Parameters
[0575] …
[0576] variable Qp Y The derivation is as follows:
[0577]
[0578] Brightness quantization parameter Qp' Y The derivation is as follows:
[0579] Qp′ Y =Qp Y +QpBdOffset (1117)
[0580] The following applies when ChromaArrayType is not equal to 0 and treeType is equal to SINGLE_TREE or DUAL_TREE_CHROMA:
[0581] – When treeType equals DUAL_TREE_CHROMA, set the variable Qp. Y The luminance quantization parameter Qp is equal to the luminance encoding / decoding unit covering the luminance location (xCb+cbWidth / 2, yCb+cbHeight / 2). Y .
[0582] – Variable qP Cb qP Cr and qP CbCr The derivation is as follows:
[0583] qP Chroma =Clip3(-QpBdOffset,63,Qp Y ) (1118)
[0585] qP Cb =ChromaQpTable[0][qP Chroma ] (1119)
[0587] qP Cr =ChromaQpTable[1][qP Chroma ] (1120)
[0589] qP CbCr =ChromaQpTable[2][qP Chroma ] (1121)
[0591] The chromaticity parameters Qp′Cb and Qp′Cr of the Cb and Cr components, as well as the chromaticity parameter Qp′CbCr of the joint Cb-Cr encoding and decoding, are derived as follows:
[0592]
[0593]
[0594]
[0595]
[0596] 8.7.3 Scaling process of transformation coefficients
[0597] …
[0598]
[0599] The quantization parameter qP is derived as follows:
[0600] – If cIdx equals 0, then the following applies:
[0601] qP=Qp′ Y (1129)
[0602] Otherwise, if TuCResMode[xTbY][yTbY] equals 2, then the following applies:
[0603] qP=Qp′ CbCr (1130)
[0604] Otherwise, if cIdx equals 1, the following applies:
[0605] qP=Qp′ Cb (1131)
[0606] Otherwise (cIdx equals 2), the following applies:
[0607] qP=Qp′ Cr (1132)
[0608]
[0609] The quantization parameter qP is modified, and the derivation of variables rectNonTsFlag and bdShift is as follows:
[0610] – If transform_skip_flag[xTbY][yTbY][cIdx] equals 0, then the following applies:
[0611]
[0612]
[0613] – Otherwise (transform_skip_flag[xTbY][yTbY][cIdx] equals 1), the following applies:
[0614] qP=Max(QpPrimeTsMin,qP)-(cu_act_enabled_flag[xTbY][yTbY]?5:0)(1136)
[0615]
[0616] Figure 7 This is a block diagram illustrating an example video processing system 700 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of the video processing system 700. System 700 may include an input 702 for receiving video content. The video content may be received in a raw or uncompressed format, such as 8 or 10-bit multi-component pixel values, or it may be received in a compressed or encoded format. Input 702 may represent a network interface, a peripheral bus interface, or a storage interface. Examples of network interfaces include wired interfaces such as Ethernet, Passive Optical Network (PON), etc., and wireless interfaces such as Wi-Fi or cellular interfaces.
[0617] System 700 may include an encoding / decoding component 704 capable of implementing the various encoding / decoding or coding methods described in this document. The encoding / decoding component 704 can reduce the average bit rate of the video from input 702 to its output to produce an encoded / decoded representation of the video. Encoding / decoding techniques are therefore sometimes referred to as video compression or video transcoding techniques. The output of the encoding / decoding component 704 may be stored or transmitted via a communication connection, as represented by component 706. The bitstream (or encoded / decoded) representation of the video received at input 702, whether stored or communicated, can be used by component 708 to generate pixel values or transmit as displayable video to display interface 710. The process of generating user-visual video from the bitstream representation is sometimes referred to as video decompression. Furthermore, although some video processing operations are referred to as “encoding / decoding” operations or tools, it should be understood that encoding / decoding tools or operations are used at the encoder, and the corresponding decoding tools or operations that inversely represent the encoding / decoding results will be performed by the decoder.
[0618] Examples of peripheral bus interfaces or display interfaces may include Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), or DisplayPort. Examples of storage interfaces include SATA (Serial Advanced Technology Accessory), Peripheral Component Interconnect (PCI), and Integrated Drive Electronics (IDE) interfaces. The technologies described in this document can be found in a variety of electronic devices, such as mobile phones, laptops, smartphones, or other devices capable of performing digital data processing and / or video display.
[0619] Figure 8 This is a block diagram of a video processing apparatus 800. Apparatus 800 can be used to implement one or more methods described herein. Apparatus 800 can be implemented in smartphones, tablet computers, computers, Internet of Things (IoT) receivers, etc. Apparatus 800 may include one or more processors 802, one or more memories 804, and video processing hardware 806 (also known as video processing circuitry). The processors(multiple) 802 can be configured to implement one or more methods described in this document (e.g., in...). Figure 5 (A and 5B). Memory (multiple memories) 804 can be used to store data and code for implementing the methods and techniques described herein. Video processing hardware 806 can be used to implement some of the techniques described in this document in a hardware circuit system. In some embodiments, hardware 806 may be partially or wholly located within processor 802 (e.g., a graphics processor).
[0620] Figure 9 This is a block diagram illustrating an example of a video encoding / decoding system 100 that can utilize the techniques of this disclosure. Figure 9 As shown, the video encoding / decoding system 100 may include a source device 110 and a target device 120. The source device 110 generates encoded video data; this source device 110 may be referred to as a video encoding device. The target device 120 can decode the encoded video data generated by the source device 110; this target device 120 may be referred to as a video decoding device. The source device 110 may include a video source 112, a video encoder 114, and an input / output (I / O) interface 116.
[0621] Video source 112 may include sources such as video capture devices, interfaces for receiving video data from video content providers, and / or computer graphics systems for generating video data, or combinations of these sources. Video data may include one or more pictures. Video encoder 114 encodes the video data from video source 112 to generate a bitstream. The bitstream may include a sequence of bits forming a codec representation of the video data. The bitstream may include codec pictures and related data. A codec picture is a codec representation of a picture. Related data may include sequence parameter sets, picture parameter sets, and other syntax structures. I / O interface 116 may include a modulator / demodulator (modem) and / or a transmitter. Encoded video data may be transmitted directly to target device 120 via network 130a through I / O interface 116. Encoded video data may also be stored on storage medium / server 130b for access by target device 120.
[0622] The target device 120 may include an I / O interface 126, a video decoder 124, and a display device 122.
[0623] I / O interface 126 may include a receiver and / or a modem. I / O interface 126 may acquire encoded video data from source device 110 or storage medium / server 130b. Video decoder 124 may decode the encoded video data. Display device 122 may display the decoded video data to a user. Display device 122 may be integrated with target device 120, or may be external to target device 120 that can be configured to interface with an external display device.
[0624] The video encoder 114 and the video decoder 124 can operate according to video compression standards, such as the High Efficiency Video Codec (HEVC) standard, the Multi-Functional Video Codec (VVC) standard, and other current and / or further standards.
[0625] Figure 10 This is a block diagram illustrating an example of a video encoder 200, which may be... Figure 9 The video encoder 114 in the video encoding and decoding system 100 shown.
[0626] The video encoder 200 can be configured to perform any or all of the techniques disclosed herein. Figure 10 In the example, the video encoder 200 includes multiple functional components. The techniques described in this disclosure can be shared among the various components of the video encoder 200. In some examples, the processor can be configured to perform any or all of the techniques described in this disclosure.
[0627] The functional components of the video encoder 200 may include a segmentation unit 201, a prediction unit 202 (which may include a mode selection unit 203, a motion estimation unit 204, a motion compensation unit 205, and an intra-frame prediction unit 206), a residual generation unit 207, a transform unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transform unit 211, a reconstruction unit 212, a buffer 213, and an entropy coding unit 214.
[0628] In other examples, the video encoder 200 may include more, fewer, or different functional components. In one example, the prediction unit 202 may include an intra-block copy (IBC) unit. The IBC unit can perform prediction in IBC mode, where at least one reference picture is the picture containing the current video block.
[0629] Furthermore, some components, such as the motion estimation unit 204 and the motion compensation unit 205, can be highly integrated, but for illustrative purposes, in Figure 10 The examples are shown separately.
[0630] The segmentation unit 201 can segment an image into one or more video blocks. The video encoder 200 and the video decoder 300 can support various video block sizes.
[0631] The mode selection unit 203 can select one of the encoding / decoding modes (intra-frame or inter-frame) based, for example, on the error result, and provide the resulting intra-frame or inter-frame codec block to the residual generation unit 207 to generate residual block data, and to the reconstruction unit 212 to reconstruct the codec block for use as a reference image. In some examples, the mode selection unit 203 can select a combination of intra-frame and inter-frame prediction modes (CIIP), where the prediction is based on inter-frame prediction signaling and intra-frame prediction signaling. In the case of inter-frame prediction, the mode selection unit 203 can also select the resolution of the block's motion vector (e.g., sub-pixel or integer pixel precision).
[0632] To perform inter-frame prediction on the current video block, motion estimation unit 204 can generate motion information for the current video block by comparing one or more reference frames from buffer 213 with the current video block. Motion compensation unit 205 can determine the predicted video block for the current video block based on the motion information and decoded samples of images from buffer 213 other than the image associated with the current video block.
[0633] The motion estimation unit 204 and the motion compensation unit 205 can perform different operations on the current video block, for example, depending on whether the current video block is in an I-band, P-band, or B-band.
[0634] In some examples, motion estimation unit 204 can perform unidirectional prediction on the current video block, and can search for reference images in list 0 or list 1 for reference video blocks of the current video block. Motion estimation unit 204 can then generate a reference index indicating the reference image in list 0 or list 1, which includes the reference video block and a motion vector indicating the spatial displacement between the current video block and the reference video block. Motion estimation unit 204 can output the reference index, prediction direction indicator, and motion vector as motion information for the current video block. Motion compensation unit 205 can generate a predicted video block for the current block based on the reference video block indicated by the motion information of the current video block.
[0635] In other examples, motion estimation unit 204 can perform bidirectional prediction on the current video block. Motion estimation unit 204 can search for a reference video block for the current video block in the reference images in list 0, and can also search for another reference video block for the current video block in the reference images in list 1. Motion estimation unit 204 can then generate a reference index indicating the reference images in list 0 or list 1, which contains the reference video block and a motion vector indicating the spatial displacement between the reference video block and the current video block. Motion estimation unit 204 can output the reference index and motion vector of the current video block as motion information for the current video block. Motion compensation unit 205 can generate a predicted video block for the current video block based on the reference video block indicated by the motion information of the current video block.
[0636] In some examples, the motion estimation unit 204 can output a complete set of motion information for use in the decoder's decoding process.
[0637] In some examples, the motion estimation unit 204 may not output the complete set of motion information for the current video. Instead, the motion estimation unit 204 may refer to motion information signaling from another video block to inform the motion information of the current video block. For example, the motion estimation unit 204 may determine that the motion information of the current video block is sufficiently similar to the motion information of neighboring video blocks.
[0638] In one example, motion estimation unit 204 may indicate a value in the syntax structure associated with the current video block that indicates to video decoder 300 that the current video block has the same motion information as another video block.
[0639] In another example, motion estimation unit 204 can identify another video block and motion vector difference (MVD) in the syntax structure associated with the current video block. The motion vector difference indicates the difference between the motion vectors of the current video block and the motion vectors of the indicated video block. Video decoder 300 can use the motion vectors of the indicated video block and the motion vector difference to determine the motion vectors of the current video block.
[0640] As discussed above, the video encoder 200 can predictively signal motion vectors. Two examples of predictive signaling notification techniques that can be implemented by the video encoder 200 include advanced motion vector prediction (AMVP) and merge pattern signaling notification.
[0641] Intra-prediction unit 206 can perform intra-prediction on the current video block. When intra-prediction unit 206 performs intra-prediction on the current video block, it can generate prediction data for the current video block based on decoded samples from other video blocks in the same frame. The prediction data for the current video block can include the predicted video block and various syntax elements.
[0642] The residual generation unit 207 can generate residual data for the current video block by subtracting (e.g., indicated by a minus sign) multiple predicted video blocks from the current video block. The residual data for the current video block may include residual video blocks corresponding to different sample components of the samples in the current video block.
[0643] In other examples, such as in skip mode, there may be no residual data for the current video block, and the residual generation unit 207 may not perform the subtraction operation.
[0644] The transform processing unit 208 can generate one or more transform coefficient video blocks for the current video block by applying one or more transforms to the residual video blocks associated with the current video block.
[0645] After the transform processing unit 208 generates a transform coefficient video block associated with the current video block, the quantization unit 209 can quantize the transform coefficient video block associated with the current video block based on one or more quantization parameter (QP) values associated with the current video block.
[0646] Inverse quantization unit 210 and inverse transform unit 211 can apply inverse quantization and inverse transform to the transform coefficient video block, respectively, to reconstruct the residual video block from the transform coefficient video block. Reconstruction unit 212 can add the reconstructed residual video block to the corresponding samples of one or more predicted video blocks generated by prediction unit 202 to generate a reconstructed video block associated with the current block, which is then stored in buffer 213.
[0647] After the video block is reconstructed by the reconstruction unit 212, a loop filtering operation can be performed to reduce video block artifacts in the video block.
[0648] Entropy encoding unit 214 can receive data from other functional components of video encoder 200. When entropy encoding unit 214 receives data, it can perform one or more entropy encoding operations to generate entropy encoded data and output a bit stream including the entropy encoded data.
[0649] Figure 11 This is a block diagram illustrating an example of a video decoder 300, which can be... Figure 9 The video decoder 114 in the video encoding and decoding system 100 shown.
[0650] The video decoder 300 can be configured to perform any or all of the technologies disclosed herein. Figure 11 In the example, the video decoder 300 includes multiple functional components. The techniques described in this disclosure can be shared among the various components of the video decoder 300. In some examples, the processor can be configured to perform any or all of the techniques described in this disclosure.
[0651] exist Figure 11 In the example, the video decoder 300 includes an entropy decoding unit 301, a motion compensation unit 302, an intra-frame prediction unit 303, an inverse quantization unit 304, an inverse transform unit 305, a reconstruction unit 306, and a buffer 307. In some examples, the video decoder 300 can perform functions typically associated with the video encoder 200. Figure 10 The encoding process described is the opposite of the decoding process.
[0652] Entropy decoding unit 301 can retrieve the encoded bitstream. The encoded bitstream may include entropy-coded video data (e.g., encoded blocks of video data). Entropy decoding unit 301 can decode the entropy-coded video data, and from the entropy-coded video data, motion compensation unit 302 can determine motion information, including motion vectors, motion vector precision, reference image list index, and other motion information. Motion compensation unit 302 can determine such information, for example, by executing AMVP and merge mode signaling notification.
[0653] The motion compensation unit 302 can generate motion compensation blocks and can perform interpolation based on interpolation filtering. The identifier of the interpolation filter to be used at sub-pixel precision can be included in the syntax element.
[0654] The motion compensation unit 302 can use the interpolation filter used by the video encoder 200 during the encoding of the video block to calculate the interpolation of the sub-integer pixels of the reference block. The motion compensation unit 302 can determine the interpolation filter used by the video encoder 200 based on the received syntax information, and use the interpolation filter to generate the prediction block.
[0655] The motion compensation unit 302 may use some syntax information to determine the size of the blocks used to encode (multiple) frames and / or (multiple) stripes of the encoded video sequence, segmentation information describing how each macroblock of the image of the encoded video sequence is segmented, a mode indicating how each segment is encoded, one or more reference frames (and a list of reference frames) for each inter-frame codec block, and other information used to decode the encoded video sequence.
[0656] Intra-prediction unit 303 can use, for example, an intra-prediction mode received in the bitstream to form prediction blocks from spatially adjacent blocks. Inverse quantization unit 304 performs inverse quantization, i.e., dequantization, on the quantized video block coefficients provided in the bitstream and decoded by entropy decoding unit 301. Inverse transform unit 305 applies an inverse transform.
[0657] The reconstruction unit 306 can add the residual block to the corresponding prediction block generated by the motion compensation unit 302 or the intra-frame prediction unit 303 to form a decoded block. If necessary, deblocking filtering can also be applied to filter the decoded block to remove block artifacts. The decoded video block is then stored in the buffer 307 to provide a reference block for subsequent motion compensation / intra-frame prediction, and also generates the decoded video for presentation on the display device.
[0658] Figure 12-16 It shows that it can be done in, for example Figure 7-11 The embodiments shown are example methods for implementing the above technical solutions.
[0659] Figure 12 A flowchart of an example method 1200 for video processing is shown, including, in operation 1210, determining whether to enable the Joint Chroma Residual Codec (JCCR) codec tool for the current video block, for a current video block encoded using Adaptive Color Transform (ACT) mode. Method 1200 includes, in operation 1220, performing a conversion between the video and a video bitstream based on this determination, the bitstream conforming to a rule that, when the JCCR codec tool is enabled, signaling is provided to inform one or more quantization parameter (QP) offsets used for encoding and decoding the current video block.
[0660] Figure 13 A flowchart of an example method 1300 for video processing is shown, including, in operation 1310, performing a conversion between the current video block and the video bitstream, the bitstream conforming to a format rule that specifies how incremental quantization parameters (QPs) are derived or signaled based on the encoding / decoding information of the current video block.
[0661] Figure 14 A flowchart of an example method 1400 for video processing is shown, including, in operation 1410, performing a conversion between a current video block of video and a bitstream of video, wherein the bitstream conforms to a format rule, and wherein the format rule specifies that signaling notifications in the Picture Parameter Set (PPS) associated with the current video block indicate one or more quantization parameter (QP) offsets used for encoding and decoding the current video block, independent of the information notified in the Sequence Parameter Set (SPS) associated with the current video block.
[0662] Figure 15 A flowchart of an example method 1500 for video processing is shown, including, in operation 1510, performing a conversion between a current video block of video and a bitstream of video, the bitstream conforming to a format rule that specifies a video level, at which signaling is given at the video level to inform one or more quantization parameter (QP) offsets used for encoding and decoding the current video block, wherein the video level is a first level or a second level below the first level.
[0663] Figure 16 A flowchart of an example method 1600 for video processing is shown, including, in operation 1610, performing a conversion between a current video block of video and a bitstream of video, wherein the bitstream conforms to a format rule, and wherein the format rule specifies whether or how an overwrite mechanism is used to signal the quantization parameter (QP) offset used for encoding and decoding the current video block.
[0664] The following is a list of preferred solutions for some embodiments.
[0665] A1. A video processing method, comprising: for a current video block encoded and decoded using an Adaptive Color Transform (ACT) mode, determining whether to enable a Joint Chroma Residual Codec (JCCR) codec tool for the current video block; and based on the determination, performing a conversion between the video and a bitstream of the video, wherein the bitstream conforms to a rule, and wherein the rule specifies that when the JCCR codec tool is enabled, signaling notifies one or more quantization parameter (QP) offsets used for encoding and decoding the current video block.
[0666] A2, the method of solution A1, wherein when the JCCR codec tool is enabled, one or more QP offsets are signaled in the stripe header (SH).
[0667] A3, the approach of solution A1, wherein the rule further specifies whether the signaling notification indicates the existence of one or more QP offset syntax elements based on enabling the JCCR codec tool.
[0668] A4, the method of solution A3, wherein the syntax elements are in the Picture Parameter Set (PPS) or Strip Header (SH).
[0669] A5, the method of solution A3 or A4, where the syntax element is pps_joint_cbcr_qp_offset_present_flag or slice_joint_cbcr_qp_offset_present_flag.
[0670] A6. A video processing method, comprising: performing a conversion between a current video block and a bitstream of the video, wherein the bitstream conforms to a format rule, and wherein the format rule specifies a method for deriving or signaling-notified incremental quantization parameters (QP) based on encoding / decoding information of the current video block.
[0671] A7, the method of solution A6, wherein the encoding and decoding information includes the encoding and decoding mode of the current video block or the previously encoded and decoded neighboring blocks of the current video block.
[0672] A8, the method of solution A7, wherein the encoding and decoding mode includes adaptive color transformation (ACT) mode.
[0673] A9, the method of solution A6, wherein the derivation and / or signaling notification of incremental QP is further based on whether the current video block and the previously encoded neighboring blocks of the current video block used to derive the QP predictor share the same encoding and decoding information.
[0674] A10, the method of solution A6, wherein the encoding and decoding information includes the encoding and decoding tools applied to the current video block, and wherein the derivation of the QP predictor is based on one or more video blocks to which the encoding and decoding tools have been applied.
[0675] A11. A video processing method, comprising: performing a conversion between a current video block and a bitstream of video, wherein the bitstream conforms to a format rule, and wherein the format rule specifies that signaling notification in a Picture Parameter Set (PPS) associated with the current video block indicates one or more Quantization Parameter (QP) offsets for encoding and decoding the current video block, independent of information signaled in a Sequence Parameter Set (SPS) associated with the current video block.
[0676] A12, the method of solution A11, wherein the signaling in the PPS notifies the first indication of the color format of the video and / or the second indication of enabling the encoding / decoding mode of the current video block.
[0677] A13. A video processing method, comprising: performing a conversion between a current video block of a video and a bitstream of a video, wherein the bitstream conforms to a format rule, and wherein the format rule specifies a video level, signaling at the video level to notify one or more quantization parameter (QP) offsets for encoding and decoding the current video block, wherein the video level is a first level or a second level lower than the first level.
[0678] A14, the method of solution A13, where the first level is the image level and the second level is the strip level.
[0679] A15, the method of solution A14, wherein one or more QP offsets are signaled in the first level.
[0680] A16, the method of solution A14, wherein one or more QP offsets are excluded from the first level because one or more QP offsets are signaled in the second level.
[0681] A17, the method of any one of solutions A11 to A16, wherein one or more QP offsets are signaled in the picture header (PH) or strip header (SH).
[0682] A18, the method of any one of solutions A1 to A17, wherein the conversion includes decoding video from a bitstream.
[0683] A19, the method of any one of solutions A1 to A17, wherein the conversion includes encoding the video into a bitstream.
[0684] A20, the method of any one of solutions A1 to A17, wherein the conversion includes generating a bitstream from the current video block, and wherein the method further includes storing the bitstream in a non-transitory computer-readable recording medium.
[0685] A21. A method for storing a bitstream representing a video to a computer-readable recording medium, comprising: generating a bitstream from the video according to one or more of the methods in solutions A1 to A17; and writing the bitstream to the computer-readable recording medium.
[0686] A22. A video processing apparatus, including a processor configured to implement methods such as any one or more of solutions A1 to A17.
[0687] A23. A computer-readable medium that stores a bit stream generated according to one or more of the methods in solutions A1 to A17.
[0688] A24. A computer-readable medium having instructions stored thereon, which, when executed, cause a processor to perform one or more of the methods described in solutions A1 to A23.
[0689] A25. A video processing apparatus for storing bitstreams, wherein the video processing apparatus is configured to implement a method such as any one or more of solutions A1 to A23.
[0690] The following is another list of preferred solutions for some embodiments.
[0691] B1. A video processing method. The method includes performing a conversion between a current video block and a bitstream of the video, wherein the bitstream conforms to a format rule, and wherein the format rule specifies whether or how an overwrite mechanism is used to signal quantization parameter (QP) offsets used for encoding and decoding the current video block.
[0692] B2, the method of solution B1, wherein a first value of the QP offset is signaled in the first level, and wherein the first value is overwritten by a second value of the QP offset signaled in the second level.
[0693] B3, the method of solution B2, in which the first level is higher than the second level.
[0694] B4, the method of solution B2 or B3, wherein, in the second level, signaling is used to notify the difference between the first group of values and the second group of values.
[0695] B5, the method of solution B2 or B3, wherein a signaling notification is given to a first syntax element in the first or second level, and the first syntax element indicates whether overwriting the QP offset is allowed.
[0696] B6, the method of solution B5, wherein the first syntax element equal to 1 indicates that the QP incremental information is signaled in the picture header (PH) and excluded from the strip header (SH) involving the first level.
[0697] B7, the method of solution B6, wherein the second syntax element indicates that the QP increment information in PH is used to determine the initial value of QP, and wherein the initial value of QP is used to encode and decode the current video block.
[0698] B8, the method of solution B5, wherein the first syntax element equal to 0 indicates that the QP incremental information is excluded from the picture header (PH) and is signaled in the strip header (SH) involving the first level.
[0699] B9, the method of solution B8, wherein the second syntax element indicates that the QP increment information in SH is used to determine the initial value of QP, and wherein the initial value of QP is used to encode and decode the current video block.
[0700] B10, the method of any one of solutions B5 to B9, wherein the first syntax element is pps_qp_delta_info_in_ph_flag.
[0701] B11, the method of any one of solutions B2 to B10, wherein the first level includes the Picture Parameter Set (PPS).
[0702] B12, the method of any one of solutions B2 to B10, wherein the second level includes a picture header (PH) or a strip header (SH).
[0703] B13, the method of solution B1, wherein, since the signaling notification is configured to overwrite the second value of the QP offset of the first value in the second level, the first value of the QP offset is excluded from the first level.
[0704] B14, the method of any one of solutions B1 to B13, wherein the conversion includes decoding video from a bitstream.
[0705] B15, the method of any one of solutions B1 to B13, wherein the conversion includes encoding the video into a bitstream.
[0706] B16, a method of any one of solutions B1 to B13, wherein the conversion includes generating a bitstream from the current video block, and wherein the method further includes storing the bitstream in a non-transitory computer-readable recording medium.
[0707] B17. A method for storing a bitstream representing a video to a computer-readable recording medium, comprising generating a bitstream from the video according to one or more of the methods in solutions B1 to B13; and writing the bitstream to the computer-readable recording medium.
[0708] B18. A video processing apparatus, including a processor configured to implement methods such as any one or more of solutions B1 to B13.
[0709] B19. A computer-readable medium that stores a bit stream generated according to one or more of the methods in solutions B1 to B13.
[0710] B20. A computer-readable medium having instructions stored thereon, which, when executed, cause a processor to perform one or more of the methods described in solutions B1 to B19.
[0711] B21. A video processing apparatus for storing bitstreams, wherein the video processing apparatus is configured to implement a method such as any one or more of solutions B1 to B19.
[0712] The following is yet another list of preferred solutions for some embodiments.
[0713] P1. A video processing method, comprising: determining whether to enable a chroma block-based incremental pulse code modulation (BDPCM) mode for a video block based on whether an adaptive color transformation (ACT) mode and / or a luminance BDPCM mode for a video block are enabled; and performing a conversion between a video block and a bitstream representation of the video based on the determination.
[0714] P2, the method of solution P1, wherein a signaling notification of a first value of a first flag associated with enabling chroma BDPCM mode is determined based on a signaling notification that ACT mode is enabled for a video block, and a signaling notification of a second value of a second flag associated with the use of luminance BDPCM mode.
[0715] P3, the method of solution P2, wherein, in response to the ACT mode being enabled and the second value of the second flag having a pseudo value, the first value of the first flag having a pseudo value.
[0716] P4, the method of solution P2, wherein the second value of the second flag has a true value and the first value of the first flag has a true value.
[0717] P5, the method of solution P1, wherein the signaling notification of the ACT mode of the video block is conditionally based on the same BDPCM prediction direction for the luminance and chrominance samples of the video block.
[0718] P6, the method of solution P5, wherein the signaling notification for ACT mode is indicated after the signaling notification for chroma BDPCM mode and luminance BDPCM mode.
[0719] P7, the method of solution P1, wherein, in response to the use of ACT mode being enabled, a first value of the first prediction direction of the chromaticity BDPCM mode is derived from a second value of the second prediction direction of the luminance BDPCM mode.
[0720] P8, the method of solution P7, wherein the first value of the first prediction direction of the chromaticity BDPCM mode is the same as the second value of the second prediction direction of the luminance BDPCM mode.
[0721] P9, the method of solution P8, wherein the first prediction direction of the chroma BDPCM mode and the second prediction direction of the luminance BDPCM mode are horizontal.
[0722] The method in P10 and solution P8, wherein the first prediction direction of the chroma BDPCM mode and the second prediction direction of the luminance BDPCM mode are vertical.
[0723] P11, the method of solution P1, wherein, in response to the use of ACT mode being disabled, the first value indicating the first prediction direction of the chromaticity BDPCM mode is zero.
[0724] P12. A video processing method, comprising: determining whether to enable a block-based incremental pulse code modulation (BDPCM) mode for video blocks based on whether the use of an adaptive color transformation (ACT) mode for video blocks is enabled; and performing a conversion between video blocks and a bitstream representation of the video based on the determination.
[0725] P13, the method of solution P12, wherein the ACT mode of the video block is enabled and the BDPCM mode of the video block is disabled in response to the video block.
[0726] P14, the method of solution P13, wherein the first flag of BDPCM mode is signaled after the second flag indicating ACT mode.
[0727] P15, the method of solution P13, wherein the flag indicating the BDPCM mode is not signaled, wherein the flag is determined to be a pseudo value or zero.
[0728] P16, the method of solution P12, wherein, in response to the BDPCM mode of the video block being enabled, the ACT mode of the video block is disabled.
[0729] P17, the method of solution P16, wherein the signaling notifies the first flag indicating the BDPCM mode before the second flag indicating the ACT mode.
[0730] P18, the method of solution P16, wherein the flag indicating the ACT mode is not signaled, wherein the flag is determined to be a pseudo value or zero.
[0731] P19, the method of any one of solutions P12 to P18, wherein the BDPCM mode includes a luminance BDPCM mode and / or a chrominance BDPCM mode.
[0732] The method of P20 and solution P1, in which the ACT mode is applied when the chromaticity BDPCM mode and the luminance BDPCM mode are associated with different prediction modes.
[0733] P21, the method of solution P20, in which a positive ACT mode is applied after either the chroma BDPCM mode or the luminance BDPCM mode.
[0734] P22, any one of solutions P1 to P21, wherein, in response to the ACT mode being enabled, the quantization parameters (QP) of the video block are cropped.
[0735] P23, the solution P22 method, in which the clipping function of clipping QP is defined as (l, h, x), where l is the lowest possible value of input x and h is the highest possible value of input x.
[0736] P24, the method of solution P23, where l equals 0.
[0737] P25, the method of solution P23, where h equals 63.
[0738] P26, the method in solution P22, in which, after adjusting the QP in ACT mode, the QP of the video block is trimmed.
[0739] P27, the method of solution P23, wherein, in response to applying transform skip to a video block, l is equal to the minimum allowed QP of the transform skip mode.
[0740] P28, the method of any one of the solutions P23 to P26, where l, h, m, n and / or k are integers that depend on (i) in DPS / SPS / VPS / PPS / APS / Picture Header / Strip Header / Piece Group Header / Largest Coding Unit (Largest Coding Unit) (ii) Signaling notification message in the unit (LCU) / codec unit (CU) / LCU line / LCU group / TU / PU block / video codec unit, (iii) Location of the CU / PU / TU / block / video codec unit, (iv) Codec mode of the block containing samples along the edge, (v) Transform matrix applied to the block containing samples along the edge, (v) Block dimension / block shape of the current block and / or its neighboring blocks, (vi) Indication of color format (e.g., 4:2:0, 4:4:4, RGB or YUV), (vii) Codec tree structure (e.g., dual tree or single tree), (viii) Strip / slice group type and / or picture type, (ix) Color components (e.g., may be applicable only to Cb or Cr), (x) Temporal layer ID, or (xi) Standard profile / level / layer.
[0741] P29, the method of any one of solutions P23 to P26, wherein the l, h, m, n and / or k signaling is notified to the decoder.
[0742] Method of any one of P30 and Solution P30, wherein the color format is 4:2:0 or 4:2:2.
[0743] P31, the method of any one of solutions P1 to P30, wherein signaling at the sequence, picture, strip, slice, tile or video region level indicates ACT mode or BDPCM mode or chroma BDPCM mode or luminance BDPCM mode.
[0744] P32. A video processing method, comprising: determining to use a chroma residual joint codec (JCCR) tool on a video block of a video with an adaptive color transformation (ACT) mode enabled; and performing a conversion between the video block and a bitstream representation of the video based on the determination, wherein the quantization parameter (QP) of the ACT mode is a mode based on the JCCR tool.
[0745] The method in P33 and solution P32, where QP is -5 or -6 when the mode of the JCCR tool is determined to be 1.
[0746] P34, the method of solution P32, wherein when the mode of the JCCR tool is determined to be 3, QP is -4 or -5.
[0747] P35, the method of any one of solutions P1 to P34, wherein the transformation includes parsing and decoding the codec representation to generate video pixels.
[0748] P36, the method of any one of solutions P1 to P34, wherein the transformation includes generating a codec representation by encoding the video.
[0749] P37. A video decoding apparatus, including a processor configured to implement one or more of the methods of solutions P1 to P36.
[0750] P38. A video encoding apparatus, including a processor configured to implement one or more of the methods of solutions P1 to P36.
[0751] P39. A computer program product having computer code stored thereon, which, when executed by a processor, causes the processor to implement one or more of the methods of solutions P1 to P36.
[0752] In this document, the term "video processing" can refer to video encoding, video decoding, video compression, or video decompression. For example, a video compression algorithm may be applied during the conversion from a pixel representation of a video to its corresponding bitstream representation, and vice versa. The bitstream representation of the current video block may, for example, correspond to bits located at different positions or distributed at different positions within the bitstream, as defined in the syntax. For example, macroblocks may be encoded based on the error residuals from the transform and encoding / decoding, and may also utilize bits in the header and other fields in the bitstream.
[0753] The disclosed and other solutions, examples, embodiments, modules, and functional operations described in this document can be implemented in digital electronic circuits, or in computer software, firmware, or hardware (including the structures disclosed in this document and their structural equivalents), or in a combination of one or more of them. The disclosed and other embodiments can be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on a computer-readable medium for use by a data processing apparatus to operate or control the operation of the data processing apparatus. The computer-readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, a combination of substances affecting machine-readable propagation signals, or a combination of one or more of them. The term "data processing apparatus" includes all means, devices, and machines for processing data, including, for example, a programmable processor, a computer, or multiple processors or computers. In addition to hardware, the apparatus may also include code that creates an operating environment for the computer program in question, for example, code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them. Propagation signals are artificially generated signals, such as machine-generated electrical, optical, or electromagnetic signals, which are generated to encode information for transmission to a suitable receiver device.
[0754] Computer programs (also known as programs, software, software applications, scripts, or code) can be written in any programming language (including compiled or interpreted languages) and can be deployed in any form, including as standalone programs or as modules, components, subroutines, or other units suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored as a portion of a file containing other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinating files (e.g., a file storing one or more modules, subroutines, or code portions). Computer programs can be deployed to run on a single computer, located at a single site, or distributed across multiple sites and interconnected via a communication network.
[0755] The processes and logic described in this document can be executed by one or more programmable processors running one or more computer programs to perform functions by manipulating input data and generating output. Processing and logic can also be executed by dedicated logic circuitry, and the device can be implemented as dedicated logic circuitry, such as an FPGA (field-programmable gate array) or an ASIC (application-specific integrated circuit).
[0756] Processors suitable for running computer programs include, for example, general-purpose and special-purpose microprocessors, and any one or more processors of any type of digital computer. Typically, the processor receives instructions and data from read-only memory or random access memory, or both. The basic components of a computer are the processor for executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include, or be operatively coupled to, one or more mass storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, to receive data from, transfer data to, or receive data from and transfer data to said mass storage device. However, a computer does not require such devices. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by or incorporated into dedicated logic circuitry.
[0757] While this patent document contains numerous details, these details should not be construed as limiting any subject matter or potentially claimed scope, but rather as descriptions of features specific to particular embodiments of a particular technology. Certain features described in this patent document within the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination. Furthermore, although features may be described above as functioning in certain combinations and even initially claimed in this way, in some cases one or more features from the claimed combination may be excluded from the combination, and the claimed combination may be for sub-combinations or variations thereof.
[0758] Similarly, although operations are depicted in a specific order in the accompanying drawings, this should not be construed as requiring the operations to be performed in the specific order shown or in a sequential manner, or as performing all shown operations to achieve the desired result. Furthermore, the separation of various system components in the embodiments described in this patent document should not be construed as requiring such separation in all embodiments.
[0759] Only some implementation methods and examples are described, and other implementation methods, enhancements and variations can be made based on the content described and shown in this patent document.
Claims
1. A video processing method, comprising: Perform the conversion between the current video block and the bitstream of the video. The bitstream conforms to the format rules. The format rules specify whether and how the overwrite mechanism is used to signal the quantization parameter QP offset used for encoding and decoding the current video block. Specifically, since the signaling notification in the second level is configured to overwrite the second value of the QP offset of the first value, the first value of the QP offset is excluded from the first level, and The first level includes the image parameter set PPS, and the second level includes the image header PH.
2. The method according to claim 1, wherein, The first level is higher than the second level.
3. The method according to claim 1, wherein, In the second level, signaling is used to notify the difference between the QP offset of the first level and the QP offset of the second level.
4. The method according to claim 1, wherein, In the first or second level, a signaling notification is sent to a first syntax element, which indicates whether overwriting the QP offset is permitted.
5. The method according to claim 4, wherein, The first syntax element being equal to 1 indicates that the QP incremental information is signaled in the PH and excluded from the strip header SH referencing the first level.
6. The method according to claim 5, wherein, The second syntax element indicates that the QP increment information in the PH is used to determine the initial value of QP, and wherein the initial value of QP is used to encode and decode the current video block.
7. The method according to claim 4, wherein, The first syntax element being equal to 0 indicates that QP incremental information is excluded from the picture header PH and is signaled in the strip header SH referring to the first level.
8. The method according to claim 7, wherein, The second syntax element indicates that the QP increment information in the SH is used to determine the initial value of QP, and wherein the initial value of QP is used to encode and decode the current video block.
9. The method according to claim 4, wherein, The first syntax element is pps_qp_delta_info_in_ph_flag.
10. The method according to claim 1, wherein, The second level also includes the strip header SH.
11. The method according to any one of claims 1 to 10, wherein, The conversion includes decoding the video from the bitstream.
12. The method according to any one of claims 1 to 10, wherein, The conversion includes encoding the video into the bitstream.
13. The method according to any one of claims 1 to 10, wherein, The conversion includes generating the bitstream from the current video block, and the method further includes: The bit stream is stored in a non-transitory computer-readable recording medium.
14. A method for storing a bitstream representing video to a computer-readable recording medium, comprising: The method according to any one of claims 1 to 10 generates the bitstream from the video; as well as The bitstream is written to the computer-readable recording medium.
15. A video processing apparatus comprising a processor configured to implement the method as described in any one of claims 1 to 10.
16. A non-transitory computer-readable medium having stored thereon a computer program / instructions and a bit stream, wherein the computer program / instructions, when executed by a processor, implement the method according to any one of claims 1 to 10 to generate the bit stream.
17. A computer-readable medium having instructions stored thereon, which, when executed, cause a processor to perform the method as claimed in any one of claims 1 to 13.
18. A video processing apparatus for storing bitstreams, wherein, The video processing apparatus is configured to implement the method as described in any one of claims 1 to 13.