Residual adjustment for loop-filters in video coding

WO2026166462A1PCT designated stage Publication Date: 2026-08-13DOUYIN VISION CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2026-02-04
Publication Date
2026-08-13

Smart Images

  • Figure CN2026077013_13082026_PF_FP_ABST
    Figure CN2026077013_13082026_PF_FP_ABST
Patent Text Reader

Abstract

A mechanism for processing video data is disclosed. The mechanism includes determining to apply a residual adjustment, in-loop filtering, or prediction filtering to a different internal bit depth. A conversion between a visual media data and a bitstream is performed based on application of the residual adjustment, the in-loop filtering, or the prediction filtering to the different internal bit depth.
Need to check novelty before this filing date? Find Prior Art

Description

Residual Adjustment For Loop-Filters in Video CodingCROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This patent application claims the benefit of International Application No. PCT / CN2025 / 075713 filed on February 5, 2025, which is hereby incorporated by reference in its entirety.TECHNICAL FIELD

[0002] The present disclosure relates to generation, storage, and consumption of digital audio video media information in a file format.BACKGROUND

[0003] Digital video accounts for the largest bandwidth used 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 usage is likely to continue to grow.SUMMARY

[0004] A first aspect relates to a method for processing video data, comprising: determining to apply a residual adjustment, in-loop filtering, or prediction filtering to a different internal bit depth; and performing a conversion between a visual media data and a bitstream based on application of the residual adjustment, the in-loop filtering, or the prediction filtering to the different internal bit depth.

[0005] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a shift operation is used to make a residual, an absolute residual, an in-loop filtering input, or a prediction filtering input suitable for the different internal bit depth.

[0006] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a lookup table (LUT) used for the residual adjustment, the in-loop filtering, or the prediction filtering is limited to a pre-defined bit depth N.

[0007] Optionally, in any of the preceding aspects, another implementation of the aspect provides that N is a positive integer.

[0008] Optionally, in any of the preceding aspects, another implementation of the aspect provides that N is 10.

[0009] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a residual, an absolute residual, an in-loop filtering input, or a prediction filtering input is right shifted by K when the different internal bit depth is greater than N, and wherein K and N are each positive integers.

[0010] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the residual adjustment, the in-loop filtering, or the prediction filtering is applied after right shifting.

[0011] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a residual, an absolute residual, an in-loop filtering input, or a prediction filtering input is right shifted by K when the different internal bit depth is less than N, and wherein K and N are each positive integers.

[0012] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the residual adjustment, the in-loop filtering, or the prediction filtering is applied after right shifting.

[0013] Optionally, in any of the preceding aspects, another implementation of the aspect provides that, after application of the residual adjustment, the in-loop filtering, or the prediction filtering, an adjusted residual, an adjusted absolute residual, an in-loop filtering offset, or a prediction filtering offset is left shifted by M when the different internal bit depth is greater than N, and wherein M and N are each positive integers.

[0014] Optionally, in any of the preceding aspects, another implementation of the aspect provides that M = the different internal bit depth –N.

[0015] Optionally, in any of the preceding aspects, another implementation of the aspect provides that, after application of the residual adjustment, the in-loop filtering, or the prediction filtering, an adjusted residual, an adjusted absolute residual, an in-loop filtering offset, or a prediction filtering offset is left shifted by M when the different internal bit depth is less than N, and wherein M and N are each positive integers.

[0016] Optionally, in any of the preceding aspects, another implementation of the aspect provides that M = 0.

[0017] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the residual adjustment is left shifted or right shifted.

[0018] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the in-loop filtering is left shifted or right shifted.

[0019] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the in-loop filtering comprises a deblocking filter (DBF) .

[0020] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the in-loop filtering comprises a sample adaptive offset (SAO) filter.

[0021] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the in-loop filtering comprises an in-loop bilateral filter (BF) .

[0022] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the in-loop filtering comprises a cross component sample adaptive offset (CCSAO) filter.

[0023] Optionally, in any of the preceding aspects, another implementation of the aspect provides that an adaptive loop filter (ALF) is left shifted or right shifted.

[0024] Optionally, in any of the preceding aspects, another implementation of the aspect provides that an offline ALF is left shifted or right shifted.

[0025] Optionally, in any of the preceding aspects, another implementation of the aspect provides that an online ALF is left shifted or right shifted.

[0026] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a classification of the ALF is left shifted or right shifted.

[0027] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a temporal adaptive loop filter (Temporal-ALF) is left shifted or right shifted.

[0028] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a convolutional cross-component model adaptive loop filter (CCCM-ALF) is left shifted or right shifted.

[0029] Optionally, in any of the preceding aspects, another implementation of the aspect provides that an in-loop filter tool is left shifted or right shifted.

[0030] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction filtering is left shifted or right shifted.

[0031] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction filtering comprises a prediction bilateral filter (BF) .

[0032] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction filtering comprises a convolutional cross-component model (CCCM) , a cross-component linear model (CCLM) , or a generalized linear model (GLM) .

[0033] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction filtering comprises a interpolation filtering.

[0034] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction filtering comprises a temporal motion (TM) interpolation filtering.

[0035] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction filtering comprises reference sample filtering.

[0036] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction filtering comprises extrapolation filter-based intra prediction (EIP) filtering.

[0037] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction filtering comprises a fusion mode.

[0038] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction filtering comprises a matrix-based intra prediction (MIP) , parallel, a distributed and network-based processing (PDP) , or a neural-network (NN) -intra mode.

[0039] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction filtering comprises an intra mode.

[0040] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction filtering comprises an inter mode.

[0041] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction filtering comprises a cross-component mode.

[0042] Optionally, in any of the preceding aspects, another implementation of the aspect provides that one or more of the disclosed methods are applied in post-processing and / or pre-processing.

[0043] Optionally, in any of the preceding aspects, another implementation of the aspect provides that two or more of the methods are used jointly.

[0044] Optionally, in any of the preceding aspects, another implementation of the aspect provides that each of the methods is used individually.

[0045] Optionally, in any of the preceding aspects, another implementation of the aspect provides that one or more of the methods are applied to any in-loop filtering tools, pre-processing filtering method, or post-processing filtering method in video coding including but not limited to an adaptive loop filter (ALF) , a cross component ALF (CCALF) , a bilateral filter (BF) , a sample adaptive offset (SAO) filter, a cross component SAO (CCSAO) filter, or any other filtering method.

[0046] Optionally, in any of the preceding aspects, another implementation of the aspect provides that one or more of the methods are applied to an in-loop filtering method.

[0047] Optionally, in any of the preceding aspects, another implementation of the aspect provides that one or more of the methods are applied to a pre-processing filtering method.

[0048] Optionally, in any of the preceding aspects, another implementation of the aspect provides that one or more of the methods are applied to a post-processing filtering method.

[0049] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the video unit refers to a sequence, picture, sub-picture, slice, tile, coding tree unit (CTU) , CTU row, group of CTUs, coding unit (CU) , prediction unit (PU) , transform unit (TU) , coding tree block (CTB) , coding block (CB) , prediction block (PB) , transform block (TB) , any other region that contains more than one luma or chroma sample or pixel.

[0050] Optionally, in any of the preceding aspects, another implementation of the aspect provides that whether and / or how to apply one or more of the disclosed methods is signalled in the bitstream.

[0051] Optionally, in any of the preceding aspects, another implementation of the aspect provides that whether and / or how to apply one or more of the disclosed methods is signalled at a sequence level, group of pictures level, picture level, slice level, tile group level, or in a sequence header, picture header, SPS, video parameter set (VPS) , dependency parameter set (DPS) , decoding capability information (DCI) , picture parameter set (PPS) , adaptation parameter set (APS) , slice header, or tile group header.

[0052] Optionally, in any of the preceding aspects, another implementation of the aspect provides that whether and / or how to apply one or more of the disclosed methods is signalled at a prediction block (PB) , transform block (TB) , coding block (CB) , prediction unit (PU) , transform unit (TU) , coding unit (CU) , virtual pipeline data unit (VPDU) , coding tree unit (CTU) , CTU row, slice, tile, sub-picture, or any other region that contains more than one sample or pixel.

[0053] Optionally, in any of the preceding aspects, another implementation of the aspect provides that whether and / or how to apply one or more of the disclosed methods is dependent on coded information, and wherein the coded information includes one or more of block size, color format, single or dual tree partitioning, color component, slice type, or picture type.

[0054] Optionally, in any of the preceding aspects, another implementation of the aspect provides that whether to and / or how to apply the disclosed methods above may be dependent on coded information, and wherein the coded information comprises a block size, color format, single / dual tree partitioning, color component, slice type, or picture type.

[0055] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a syntax element is binarized as a flag, a fixed length code, an exponential Golomb code, a unary code, a truncated unary code, or a truncated binary code, and wherein the syntax element is signed or unsigned.

[0056] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a syntax element is coded with at least one context model or is bypass coded.

[0057] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a syntax element is signaled in a conditional way.

[0058] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the syntax element is signaled only when the corresponding function is applicable.

[0059] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the syntax element is signaled only when dimensions of a block satisfy a condition, and wherein the dimensions comprise a width and / or a height.

[0060] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a syntax element is signaled at a block level, sequence level, group of pictures level, picture level, slice level, or tile group level, or is signaled in one of the following coding structures: coding tree unit (CTU) , coding unit (CU) , transform unit (TU) , prediction unit (PU) , coding tree block (CTB) , coding block (CB) , transform block (TB) , prediction block (PB) , or is signaled in a sequence header, picture header, sequence parameter set (SPS) , video parameter set (VPS) , dependency parameter set (DPS) , decoding capability information (DCI) , picture parameter set (PPS) , adaptation parameter set (APS) , slice header, or tile group header.

[0061] Optionally, in any of the preceding aspects, another implementation of the aspect provides that one or more of the methods is combined with another coding tool, and wherein the another coding tool is one or more of affine, multiple transform selection (MTS) , low-frequency non-separable transform (LFNST) , merge with motion vector difference (MMVD) , Matrix-Based Intra Prediction (MIP) , intra sub-partitions (ISP) , cross-component linear model (CCLM) , Convolutional cross-component model (CCCM) , Symmetric Motion Vector Difference (SMVD) , Bidirectional optical flow (BDOF) , decoder side motion vector refinement (DMVR) , History-based Motion Vector Prediction (HMVP) , Template Matching, intra block copy (IBC) , or Palette.

[0062] Optionally, in any of the preceding aspects, another implementation of the aspect provides that one or more of the methods is excluded from being used with another coding tool, and wherein the another coding tool is one or more of affine, multiple transform selection (MTS) , low-frequency non-separable transform (LFNST) , merge with motion vector difference (MMVD) , Matrix-Based Intra Prediction (MIP) , intra sub-partitions (ISP) , cross-component linear model (CCLM) , Convolutional cross-component model (CCCM) , Symmetric Motion Vector Difference (SMVD) , Bidirectional optical flow (BDOF) , decoder side motion vector refinement (DMVR) , History-based Motion Vector Prediction (HMVP) , Template Matching, intra block copy (IBC) , or Palette.

[0063] Optionally, in any of the preceding aspects, another implementation of the aspect provides that, when one or more of the methods are used, the another coding tool is disabled implicitly without signaling.

[0064] Optionally, in any of the preceding aspects, another implementation of the aspect provides that, when the another coding tool is used, one or more of the methods are disabled implicitly without signaling.

[0065] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the conversion includes encoding the visual media data into the bitstream.

[0066] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the conversion includes decoding the visual media data from the bitstream.

[0067] A second aspect relates to an apparatus for processing video data comprising: a processor; and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform the method of any of the disclosed aspects.

[0068] A third aspect relates to a non-transitory computer readable medium comprising a computer program product for use by a video coding device, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method of any of the disclosed aspects.

[0069] A fourth aspect relates to a non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises: determining to apply a residual adjustment, in-loop filtering, or prediction filtering to a different internal bit depth; and performing a conversion between a visual media data and a bitstream based on application of the residual adjustment, the in-loop filtering, or the prediction filtering to the different internal bit depth.

[0070] A fifth aspect relates to a method for storing bitstream of a video, comprising: determining to apply a residual adjustment, in-loop filtering, or prediction filtering to a different internal bit depth; generating the bitstream based on the residual adjustment, the in-loop filtering, or the prediction filtering to the different internal bit depth; and storing the bitstream in a non-transitory computer-readable recording medium.

[0071] A sixth aspect relates to a method, apparatus, or system described in the present disclosure.

[0072] For the purpose of clarity, any one of the foregoing embodiments may be combined with any one or more of the other foregoing embodiments to create a new embodiment within the scope of the present disclosure.

[0073] These and other features will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings and claims.BRIEF DESCRIPTION OF THE DRAWINGS

[0074] For a more complete understanding of this disclosure, reference is now made to the following brief description, taken in connection with the accompanying drawings and detailed description, wherein like reference numerals represent like parts.

[0075] FIG. 1 illustrates an example of nominal vertical and horizontal locations of 4: 2: 2 luma and chroma samples in a picture.

[0076] FIG. 2 illustrates an example encoder block diagram.

[0077] FIG. 3 illustrates an example of intra prediction modes.

[0078] FIG. 4 illustrates an example of a cross component sample adaptive offset (CCSAO) process.

[0079] FIG. 5 illustrates an example of candidate positions used for the CCSAO classifier.

[0080] FIG. 6 is a block diagram showing an example video processing system.

[0081] FIG. 7 is a block diagram of an example video processing apparatus.

[0082] FIG. 8 is a flowchart for an example method of video processing.

[0083] FIG. 9 is a block diagram that illustrates an example video coding system.

[0084] FIG. 10 is a block diagram that illustrates an example encoder.

[0085] FIG. 11 is a block diagram that illustrates an example decoder.

[0086] FIG. 12 is a schematic diagram of an example encoder.DETAILED DESCRIPTION

[0087] It should be understood at the outset that although an illustrative implementation of one or more embodiments are provided below, the disclosed systems and / or methods may be implemented using any number of techniques, whether currently known or yet to be developed. The disclosure should in no way be limited to the illustrative implementations, drawings, and techniques illustrated below, including the exemplary designs and implementations illustrated and described herein, but may be modified within the scope of the appended claims along with their full scope of equivalents.

[0088] Section headings are used in the present disclosure for ease of understanding and do not limit the applicability of techniques and embodiments disclosed in each section only to that section. Furthermore, the techniques described herein are applicable to other video codec protocols and designs. 1. Initial discussion

[0089] This disclosure is related to video coding technologies. Specifically, it is related to in-loop filter and other coding tools in image / video coding. The ideas may be applied individually or in various combinations to video codecs, such as High Efficiency Video Coding (HEVC) , Versatile Video Coding (VVC) , or other video coding technologies. 2. Abbreviations

[0090] The present disclosure includes the following abbreviations. Advanced video coding (Rec. International Telecommunication Union (ITU) telecommunication standardization sector (ITU-T) H. 264 | International Organization for Standardization (ISO)  / International Electrotechnical Commission (IEC) 14496-10) (AVC) , coded picture buffer (CPB) , clean random access (CRA) , coding tree unit (CTU) , coded video sequence (CVS) , decoded picture buffer (DPB) , decoding parameter set (DPS) , general constraints information (GCI) , high efficiency video coding, also known as Rec. ITU-T H. 265 | ISO / IEC 23008-2, (HEVC) , Joint exploration model (JEM) , motion constrained tile set (MCTS) , network abstraction layer (NAL) , output layer set (OLS) , picture header (PH) , picture parameter set (PPS) , profile, tier, and level (PTL) , picture unit (PU) , reference picture resampling (RPR) , raw byte sequence payload (RBSP) , supplemental enhancement information (SEI) , slice header (SH) , sequence parameter set (SPS) , video coding layer (VCL) , video parameter set (VPS) , versatile video coding, also known as Rec. ITU-T H. 266 | ISO / IEC 23090-3, (VVC) , VVC test model (VTM) , video usability information (VUI) , transform unit (TU) , coding unit (CU) , deblocking filter (DF) , sample adaptive offset (SAO) , adaptive loop filter (ALF) , coding block flag (CBF) , quantization parameter (QP) , rate distortion optimization (RDO) , and bilateral filter (BF) . 3. Video coding standards

[0091] Video coding standards have evolved primarily through the development of the ITU-T and International Organization for Standardization (ISO)  / International Electrotechnical Commission (IEC) standards. The ITU-T produced H. 261 and H. 263, ISO / IEC produced Moving Picture Experts Group (MPEG) -1 and MPEG-4 Visual, and the two organizations jointly produced the H. 262 / MPEG-2 Video and H. 264 / MPEG-4 Advanced Video Coding (AVC) and H. 265 / HEVC [1] standards. Since H. 262, the video coding standards are based on the hybrid video coding structure wherein temporal prediction plus transform coding are utilized. To explore the future video coding technologies beyond HEVC, the Joint Video Exploration Team (JVET) was founded by video coding experts group (VCEG) and MPEG jointly. Many methods have been adopted by JVET and put into the reference software named Joint Exploration Model (JEM) [2] . The JVET was renamed to be the Joint Video Experts Team (JVET) when the Versatile Video Coding (VVC) project officially started. VVC is a coding standard, targeting at 50%bitrate reduction as compared to HEVC. The VVC working draft and VVC test model (VTM) are continuously updated.

[0092] An example version of the VVC draft, i.e., Versatile Video Coding (Draft 10) may be found at: https:  / / jvet-experts. org / doc_end_user / documents / 19_Teleconference / wg11 / JVET-S2001-v17. zip. An example version of the reference software of VVC, named as VTM, could be found at: https:  / / vcgit. hhi. fraunhofer. de / jvet-u-ee2 / VVCSoftware_VTM / - / tree / VTM-11.2. 3.1 Color space and chroma subsampling

[0093] Color space, also known as the color model (or color system) , is a mathematical model which describes the range of colors as tuples of numbers, for example as 3 or 4 values or color components (e.g. RGB) . Generally speaking, a color space is an elaboration of the coordinate system and sub-space. For video compression, the most frequently used color spaces are luma, blue difference chroma, and red difference chroma (YCbCr) and red, green, blue (RGB) .

[0094] YCbCr, Y’ CbCr, or Y Pb / Cb Pr / Cr, also written as YCBCR or Y'CBCR, is a family of color spaces used as a part of the color image pipeline in video and digital photography systems. Y’ is the luma component and CB and CR are the blue-difference and red-difference chroma components. Y’ (with prime) is distinguished from Y, which is luminance, meaning that light intensity is nonlinearly encoded based on gamma corrected RGB primaries.

[0095] Chroma subsampling is the practice of encoding images by implementing less resolution for chroma information than for luma information, taking advantage of the human visual system's lower acuity for color differences than for luminance. 3.1.1 4: 4: 4

[0096] In 4: 4: 4, each of the three Y'CbCr components have the same sample rate. Thus there is no chroma subsampling. This scheme is sometimes used in high-end film scanners and cinematic postproduction. 3.1.2 4: 2: 2

[0097] In 4: 3: 2, the two chroma components are sampled at half the sample rate of luma. The horizontal chroma resolution is halved while the vertical chroma resolution is unchanged. This reduces the bandwidth of an uncompressed video signal by one-third with little to no visual difference. FIG. 1 illustrates an example of nominal vertical and horizontal locations of 4: 2: 2 luma and chroma samples in a picture. 3.1.3 4: 2: 0

[0098] In 4: 2: 0, the horizontal sampling is doubled compared to 4: 1: 1, but as the Cb and Cr channels are only sampled on each alternate line in this scheme, the vertical resolution is halved. The data rate is thus the same. Cb and Cr are each subsampled at a factor of 2 both horizontally and vertically. There are three variants of 4: 2: 0 schemes, having different horizontal and vertical siting. In MPEG-2, Cb and Cr are cosited horizontally. Cb and Cr are sited between pixels in the vertical direction (sited interstitially) . In Joint Photographic Experts Group (JPEG)  / JPEG File Interchange Format (JFIF) , H. 261, and MPEG-1, Cb and Cr are sited interstitially, halfway between alternate luma samples. In 4: 2: 0 DV, Cb and Cr are co-sited in the horizontal direction. In the vertical direction, they are co-sited on alternating lines. Table. 1 SubWidthC and SubHeightC values derived from chroma_format_idc and separate_colour_plane_flag 3.2 Example Coding Flow of a Video Codec

[0099] FIG. 2 illustrates an example encoder block diagram, for example in VVC. The encoder contains three in-loop filtering blocks: deblocking filter (DF) , sample adaptive offset (SAO) , and ALF. Unlike DF, which uses predefined filters, SAO and ALF utilize the original samples of the current picture to reduce the mean square errors between the original samples and the reconstructed samples by adding an offset and by applying a finite impulse response (FIR) filter, respectively, with coded side information signaling the offsets and filter coefficients. ALF is located at the last processing stage of each picture and can be regarded as a tool trying to catch and fix artifacts created by the previous stages. 3.3 Intra Prediction

[0100] FIG. 3 illustrates an example of intra prediction modes. To capture the arbitrary edge directions presented in natural video, the number of directional intra modes is extended from 33, as used in HEVC, to 65. The additional directional modes are depicted in FIG. 3, and the planar and direct current (DC) modes remain the same. These denser directional intra prediction modes apply for all block sizes and for both luma and chroma intra predictions.

[0101] Angular intra prediction directions may be defined from 45 degrees to -135 degrees in clockwise direction as shown in FIG. 3. In VTM, several angular intra prediction modes are adaptively replaced with wide-angle intra prediction modes for the non-square blocks. The replaced modes are signaled and remapped to the indexes of wide angular modes after parsing. The total number of intra prediction modes is unchanged, e.g., 67, and the intra mode coding is unchanged.

[0102] In the HEVC, every intra-coded block has a square shape and the length of each of the block’s sides is a power of 2. Thus, no division operations are required to generate an intra-predictor using DC mode. In VVC, blocks can have a rectangular shape that necessitates the use of a division operation per block in the general case. To avoid division operations for DC prediction, only the longer side is used to compute the average for non-square blocks.  3.4 Inter prediction

[0103] For each inter-predicted CU, motion parameters include motion vectors, reference picture indices, reference picture list usage index, and additional information used for the new coding feature of VVC to be used for inter-predicted sample generation. The motion parameters can be signaled in an explicit or implicit manner. When a CU is coded with skip mode, the CU is associated with one PU and has no significant residual coefficients, no coded motion vector delta, and / or reference picture index. A merge mode is specified whereby the motion parameters for the current CU are obtained from neighboring CUs, including spatial and temporal candidates, and additional schedules introduced in VVC. The merge mode can be applied to any inter-predicted CU, not only for skip mode. The alternative to merge mode is the explicit transmission of motion parameters, where motion vector, corresponding reference picture index for each reference picture list, reference picture list usage flag, and other useful information are signaled explicitly per each CU. 3.5 Deblocking Filter

[0104] Deblocking filtering is an example in-loop filter in video codec. In VVC, the deblocking filtering process is applied on CU boundaries, transform subblock boundaries, and prediction subblock boundaries. The prediction subblock boundaries include the prediction unit boundaries introduced by the Subblock based Temporal Motion Vector prediction (SbTMVP) and affine modes. The transform subblock boundaries include the transform unit boundaries introduced by Subblock transform (SBT) and Intra Sub-Partitions (ISP) modes and transforms due to implicit split of large CUs. The processing order of the deblocking filter is defined as horizontal filtering for vertical edges for the entire picture first, followed by vertical filtering for horizontal edges. This specific order enables either multiple horizontal filtering or vertical filtering processes to be applied in parallel threads. Filtering processes can also be implemented on a coding tree block (CTB) -by-CTB basis with only a small processing latency. 3.6 Sample Adaptive Offset

[0105] Sample adaptive offset (SAO) is applied to the reconstructed signal after the deblocking filter by using offsets specified for each CTB by the encoder. The video encoder first makes the decision on whether or not the SAO process is to be applied for current slice. If SAO is applied for the slice, each CTB is classified as one of five SAO types as shown in Table 2. The concept of SAO is to classify pixels into categories and reduces the distortion by adding an offset to pixels of each category. SAO operation includes edge offset (EO) which uses edge properties for pixel classification in SAO type 1 to 4 and band offset (BO) which uses pixel intensity for pixel classification in SAO type 5. Each applicable CTB has SAO parameters including sao_merge_left_flag, sao_merge_up_flag, SAO type and four offsets. If sao_merge_left_flag is equal to 1, the current CTB will reuse the SAO type and offsets of the CTB to the left. If sao_merge_up_flag is equal to 1, the current CTB will reuse SAO type and offsets of the CTB above. Table. 2 Specification of SAO type 3.6.1. Cross Component Sample Adaptive Offset

[0106] FIG. 4 illustrates an example of a CCSAO process. The Cross-component Sample Adaptive Offset (CCSAO) is proposed for further compression efficiency exploration of the VVC [1] . Specifically, similar to SAO, the CCSAO classifies the reconstructed samples into different categories, properly derives one offset for each category and adds the offset to the reconstructed samples in that category. However, different from SAO which only uses one single luma / chroma component of current sample as input, the CCSAO utilizes all three components to classify the current sample into different categories. To facilitate the parallel processing, the output samples from the de-blocking filter are used as the input of the CCSAO. FIG. 4 shows the diagram of the decoding workflow when the CCSAO is applied.

[0107] In the CCSAO design, to achieve one better complexity / performance trade-off, only BO is used to enhance the quality of the reconstructed samples. For a given luma / chroma sample, three candidate samples are selected to classify the given sample into different categories: one collocated Y sample, one collocated U sample, and one collocated V sample. The sample values of these three selected samples are then classified into three different {bandY, bandU, bandV} bands, and a joint index i is used to indicate the category of the given sample. One offset is signaled and added to the reconstructed samples that fall into that category, which can be formulated as bandY= (Ycol·NY) >>BD bandU= (Ucol·NU) >>BD bandV= (Vcol·NV) >>BD i=bandY· (NU·NV) +bandU·NV+bandV C′rec=Clip1 (Crec+σCCSAO [i] )

[0108] FIG. 5 illustrates an example of candidate positions used for the CCSAO classifier. In above equation, {Ycol, Ucol, Vcol} are the three selected collocated samples that are used to classify the current sample; {NY, NU, NV} are the numbers of equally divided bands applied to {Ycol, Ucol, Vcol} full range respectively; BD is the internal coding bit-depth; Crec and Cr′ec are the reconstructed samples before and after the CCSAO is applied; σCCSAO [i] is the value of CCSAO offset that is applied to the i-th BO category. In the CCSAO design, the collocated luma sample can be chosen from 9 candidate positions, while the collocated chroma sample positions are fixed, as depicted in FIG. 5.

[0109] Similar to SAO, different classifiers can be applied to different local region to further enhance the whole picture quality. The parameters for each classifier (i.e., the position of Ycol, NY, NU, NV, and offsets) are signaled in frame level, and which classifier to be used is explicitly signaled and switched in CTB level. For each classifier, the maximum of {NY, NU, NV} is set to {16, 4, 4} , and offsets are constrained to be within the range [-15, 15] . The maximum classifiers per frame is constrained to be 4. 3.7 Adaptive Loop Filter

[0110] Adaptive loop filtering for video coding is to minimize the mean square error between original samples and decoded samples by using Wiener-based adaptive filter. The ALF is located at the last processing stage for each picture and can be regarded as a tool to catch and fix artifacts from previous stages. The suitable filter coefficients are determined by the encoder and explicitly signaled to the decoder. In order to achieve better coding efficiency, especially for high resolution videos, local adaptation is used for luma signals by applying different filters to different regions or blocks in a picture. In addition to filter adaptation, filter on / off control at coding tree unit (CTU) level is also helpful for improving coding efficiency. Syntax-wise, filter coefficients are sent in a picture level header called adaptation parameter set, and filter on / off flags of CTUs are interleaved at CTU level in the slice data. This syntax design not only supports picture level optimization but also achieves a low encoding latency. 3.8 Bilateral In-loop Filter 3.8.1 Bilateral Image Filter

[0111] Bilateral image filter is a nonlinear filter that smooths the noise while preserving edge structures. The bilateral filtering is a technique to make the filter weights decrease not only with the distance between the samples but also with increasing difference in intensity. This way, over-smoothing of edges can be ameliorated. A weight is defined as where Δx and Δy is the distance in the vertical and horizontal and ΔI is the difference in intensity between the samples.

[0112] The edge-preserving de-noising bilateral filter adopts a low-pass Gaussian filter for both the domain filter and the range filter. The domain low-pass Gaussian filter gives higher weight to pixels that are spatially close to the center pixel. The range low-pass Gaussian filter gives higher weight to pixels that are similar to the center pixel. Combining the range filter and the domain filter, a bilateral filter at an edge pixel becomes an elongated Gaussian filter that is oriented along the edge and is greatly reduced in gradient direction. This is the reason why the bilateral filter can smooth the noise while preserving edge structures. 3.8.2 Bilateral Filter in Video Coding

[0113] The bilateral filter in video coding is a coding tool for the VVC [2] . The filter acts as a loop filter in parallel with the sample adaptive offset (SAO) filter. Both the bilateral filter and SAO act on the same input samples, each filter produces an offset, and these offsets are then added to the input sample to produce an output sample that, after clipping, goes to the next stage. The spatial filtering strength σdis determined by the block size, with smaller blocks filtered more strongly, and the intensity filtering strength σris determined by the quantization parameter, with stronger filtering being used for higher QPs. Only the four closest samples are used, so the filtered sample intensity IF can be calculated as where ICdenotes the intensity of the center sample, ΔIA=IA-ICthe intensity difference between the center sample and the sample above. ΔIB, ΔIL and ΔIRdenote the intensity difference between the center sample and that of the sample below, to the left and to the right respectively. 4. Technical problems solved by disclosed technical solutions

[0114] Example designs for loop-filters in video coding have the following problems.

[0115] The generated offset (residual) of each in-loop filter may be derived based on a global optimization. In such a case, the residual may not be locally optimal for each position. An adjustment of residual may further improvement the coding efficiency 5. A listing of solutions and embodiments

[0116] To solve the above-described problems, methods as summarized below are disclosed. The embodiments should be considered as examples to explain the general concepts and should not be interpreted in a narrow way. Furthermore, these embodiments can be applied individually or combined in any manner.

[0117] It should be noted that the disclosed methods may be used as in-loop filters or post-processing.

[0118] In this disclosure, an ALF processing unit may refer to a sequence, a picture, a sub-picture, a slice, a CTU, a block, a region, or a sample. The ALF processing unit may comprise one color component or it may comprise multiple color components.

[0119] In this disclosure, residual may refer to the difference between input sample and output sample for one position of one loop-filter. 1) It is proposed to apply residual adjustment for different areas. a. In one example, the area may refer to CU / TU / PU. b. In one example, the area may refer to CTU / CTB / CTU row. c. In one example, the area may refer to picture / slice / tile. 2) In one example, the residual adjustment may be enabled / disabled / controlled at different levels. a. In one example, a syntax element may be signaled to indicate whether the residual adjustment is enabled. b. In one example, a syntax element may be signaled to indicate which strength of residual adjustment is selected / used. c. In one example, a syntax element may be signaled to indicate which function of residual adjustment is selected / used. d. In one example, the syntax element may be coded with at least one context. a) In one example, the context may depend on coding information of current block or neighboring block. b) In one example, the context may depend on residual adjustment on / off decision of at least one neighboring block. e. In one example, the syntax element may be binarized by unary code, or truncated unary code, or fixed-length code, or exponential Golomb code, truncated exponential Golomb code, etc. f. In one example, the syntax element may be signaled conditionally. a) For example, the syntax element may be signaled only if the residual is available. g. The syntax element may be coded in a predictive way. a) The first syntax element may be predicted by the on / off decision of the residual adjustment at least one neighboring block. h. The syntax element may be signaled independently for different color components. a) Alternatively, the first syntax element may be signaled and shared for different color components. b) Alternatively, the first syntax element may be signaled for a first color component but not signaled for a second color component. i. In one example, the syntax element may be signaled to indicate how to apply the residual adjustment. j. The syntax element may be signaled in SPS / PPS / picture header / slice header / adaptation parameter set (APS)  / CTU / CU / etc. 3) In one example, the residual adjustment may be applied to different loop-filters. a. In one example, the residual adjustment may be applied to DBF. b. In one example, the residual adjustment may be applied to Bilateral Filter. c. In one example, the residual adjustment may be applied to SAO. d. In one example, the residual adjustment may be applied to CCSAO. e. In one example, the residual adjustment may be applied to BF / SAO / CCSAO jointly. a) In one example, the residual may refer to the difference between input and output sample for one position of all BF / SAO / CCSAO. f. In one example, the residual adjustment may be applied to ALF. g. In one example, the residual adjustment may be applied to CCALF. h. In one example, the residual adjustment may be applied to ALF / CCALF jointly. a) In one example, the residual may refer to the difference between input and output sample for one position of all ALF / CCALF. 4) In one example, the residual adjustment may be applied to different color components. a. In one example, the residual adjustment may be applied to only Luma component for one loop-filter. b. In one example, the residual adjustment may be applied to Chroma components for one loop-filter. a) In one example, the residual adjustment may be applied to only one of the Chroma components. c. In one example, the residual adjustment may be applied to both Luma and Chroma components. 5) In one example, the residual adjustment may be enabled / disabled based on picture / slice / tile condition. a. In one example, the residual adjustment may be enabled / disabled based on picture / slice / tile type (e.g., I / B / P) . b. In one example, the residual adjustment may be enabled / disabled based on picture / slice / tile temporal identifier (ID) . c. In one example, the residual adjustment may be enabled / disabled based on picture / slice / tile picture order count (POC) . d. In one example, the residual adjustment may be enabled / disabled based on other picture / slice / tile info. 6) In one example, the residual adjustment may be designed as follow. a. In one example, the residual may be adjusted for one position only if the absolute residual is greater than N (e.g., N = 1) . a) In one example, the threshold value N may be different for different positions based on classification results. 1. In one example, the classification may be based on partitioning information (e.g., boundary and non-boundary positions) . 2. In one example, the classification may be based on prediction residual information (e.g., prediction residual high or low) . a. In one example, the prediction residual information may be calculated inside one window. 3. In one example, the classification may be based on texture information (e.g., texture rich or poor) . a. In one example, the texture information may be calculated based on gradient. b. In one example, the texture information may be calculated based on variance. b. In one example, the residual may be adjusted for one position only if the absolute residual inside a window is greater than N (e.g., N = 5) . a) In one example, the window size may be T (e.g., T = 3) . b) In one example, the window shape may be diamond / square / cross. c. In one example, the absolute residual may be adjusted. a) In one example, the absolute residual may be decreased by M (e.g., M = 1) . b) In one example, the absolute residual may be increased by P (e.g., P = 1) . c) In one example, the absolute residual may be adjusted by Max (N, (absolute residual)  / K) (e.g., N = 1, K = 8) . d) In one example, the absolute residual may be adjusted by Min (N, (absolute residual)  / K) (e.g., N = 2, K = 16) . e) In one example, the absolute residual may be adjusted by Sigmoid function. f) In one example, the absolute residual may be adjusted by clipping function. g) In one example, the absolute residual may be adjusted by mapping function. h) In one example, the absolute residual may be adjusted by a pre-defined function. 1. In one example, the pre-defined function may be designed as follow: |x|′= |x|- ( (a×log2|x|+b) >>c) , a, b, c are parameters. 2. In one example, the pre-defined function may be designed as follow: |x|′= |x|+ ( (a×log2|x|+b) >>c) , a, b, c are parameters. 3. In one example, the pre-defined function may be designed as follow: x′= sign (x) × (|x|- ( (a×log2 (|x|-k>0? |x|: 1) +b) >>c) ) , a, b, c, k are parameters. 4. In one example, the pre-defined function may be designed as follow: x′= sign (x) × (|x|+ ( (a×log2 (|x|-k>0? |x|: 1) +b) >>c) ) , a, b, c, k are parameters. 5. In one example, the log2 x function may be baked into a Look-Up Table. 6. In one example, the parameters {a, b, c, k} (one or more) may be pre-defined. a. In one example, the parameters may be adaptively adjusted based on QP information. b. In one example, the parameters may be adaptively adjusted based on picture / slice type information. c. In one example, the parameters may be adaptively adjusted based on partitioning information. d. In one example, the parameters may be adaptively adjusted based on prediction residual information. e. In one example, the parameters may be adaptively adjusted based on coding mode information. f. In one example, the parameters may be adaptively adjusted based on any other coding information. 7. In one example, the parameters {a, b, c, k} (one or more) may be signaled. a. In one example, the parameters may be signaled in SPS / PPS / picture header / slice header / APS / CTU / CU. b. In one example, the parameters set index may be signaled in SPS / PPS / picture header / slice header / APS / CTU / CU. i) In one example, the absolute residual may be adjusted by any other non-linear function. 7) In one example, the residual adjustment / in-loop filtering / prediction filtering may be applied to different internal bit depth. a. In one example, the shift operation may be used to make the residual / absolute residual / in-loop filtering input / prediction filtering input suitable for different internal bit depth. b. In one example, the LUT used for the residual adjustment / in-loop filtering / prediction filtering may be limited to a pre-defined bit depth N (e.g., N = 10) . c. In one example, the residual / absolute residual / in-loop filtering input / prediction filtering input may be right shifted by K (e.g., K = internal bit depth –N) if the internal bit depth is higher than N. Then the residual adjustment / in-loop filtering / prediction filtering is performed. d. In one example, the residual / absolute residual / in-loop filtering input / prediction filtering input may be right shifted by K (e.g., K = 0) if the internal bit depth is lower than or equal to N. Then the residual adjustment / in-loop filtering / prediction filtering is performed. e. In one example, after the residual adjustment / in-loop filtering / prediction filtering is performed, the adjusted residual / adjusted absolute residual / in-loop filtering offset / prediction filtering offset may be left shifted by M (e.g., M = internal bit depth –N) if the internal bit depth is higher than N. f. In one example, after the residual adjustment / in-loop filtering / prediction filtering is performed, the adjusted residual / adjusted absolute residual / in-loop filtering offset / prediction filtering offset may be left shifted by M (e.g., M = 0) if the internal bit depth is lower than or equal to N. g. In one example, the above-mentioned shift operations may be applied to the proposed residual adjustment. h. In one example, the above-mentioned shift operations may be applied to in-loop filtering. a) In one example, the above-mentioned shift operations may be applied to DBF. b) In one example, the above-mentioned shift operations may be applied to SAO. c) In one example, the above-mentioned shift operations may be applied to in-loop BF. d) In one example, the above-mentioned shift operations may be applied to CCSAO. e) In one example, the above-mentioned shift operations may be applied to ALF. 1. In one example, the above-mentioned shift operations may be applied to offline filtering of ALF. 2. In one example, the above-mentioned shift operations may be applied to online filtering of ALF. 3. In one example, the above-mentioned shift operations may be applied to classification of ALF. f) In one example, the above-mentioned shift operations may be applied to Temporal-ALF. g) In one example, the above-mentioned shift operations may be applied to CCCM-ALF. h) In one example, the above-mentioned shift operations may be applied to any other in-loop filter tool. i. In one example, the above-mentioned shift operations may be applied to prediction filtering. a) In one example, the above-mentioned shift operations may be applied to prediction BF. b) In one example, the above-mentioned shift operations may be applied to CCCM / CCLM / GLM. c) In one example, the above-mentioned shift operations may be applied to interpolation filtering. d) In one example, the above-mentioned shift operations may be applied to TM interpolation filtering. e) In one example, the above-mentioned shift operations may be applied to reference sample filtering. f) In one example, the above-mentioned shift operations may be applied to EIP. g) In one example, the above-mentioned shift operations may be applied to a fusion mode. h) In one example, the above-mentioned shift operations may be applied to MIP / PDP / NN-Intra mode. i) In one example, the above-mentioned shift operations may be applied to an intra mode. j) In one example, the above-mentioned shift operations may be applied to an inter mode. k) In one example, the above-mentioned shift operations may be applied to a cross-component mode. 8) In one example, the disclosed methods may be used in post-processing and / or pre-processing. 9) In one example, the above-mentioned methods may be used jointly. 10) Alternatively, the above-mentioned methods may be used individually. 11) In one example, the proposed method may be applied to any in-loop filtering tools, pre-processing, or post-processing filtering method in video coding (including but not limited to ALF / CCALF / BF / SAO / CCSAO or any other filtering method) . a. In one example, the proposed method may be applied to an in-loop filtering method. b. In one example, the proposed method may be applied to a pre-processing filtering method. c. In one example, the proposed method may be applied to a post-processing filtering method. 12) In above examples, the video unit may refer to sequence / picture / sub-picture / slice / tile / coding tree unit (CTU)  / CTU row / groups of CTU / coding unit (CU)  / prediction unit (PU)  / transform unit (TU)  / coding tree block (CTB)  / coding block (CB)  / prediction block (PB)  / transform block (TB)  / any other region that contains more than one luma or chroma sample / pixel. 13) Whether to and / or how to apply the disclosed methods above may be signalled in a bitstream. a. In one example, they may be signalled at sequence level / group of pictures level / picture level / slice level / tile group level, such as in sequence header / picture header / SPS / VPS / DPS / decoding capability information (DCI)  / PPS / APS / slice header / tile group header. b. In one example, they may be signalled at PB / TB / CB / PU / TU / CU / virtual pipeline data unit (VPDU)  / CTU / CTU row / slice / tile / sub-picture / other kinds of region contain more than one sample or pixel. 14) Whether to and / or how to apply the disclosed methods above may be dependent on coded information, such as block size, colour format, single / dual tree partitioning, colour component, slice / picture type. 15) A syntax element disclosed above may be binarized as a flag, a fixed length code, an EG (x) code, a unary code, a truncated unary code, a truncated binary code, etc. It can be signed or unsigned. 16) A syntax element disclosed above may be coded with at least one context model. Or it may be bypass coded. 17) A syntax element disclosed above may be signaled in a conditional way. a. The SE is signaled only if the corresponding function is applicable. b. The SE is signaled only if the dimensions (width and / or height) of the block satisfy a condition. 18) A syntax element disclosed above may be signaled at block level / sequence level / group of pictures level / picture level / slice level / tile group level, such as in coding structures of CTU / CU / TU / PU / CTB / CB / TB / PB, or sequence header / picture header / SPS / VPS / DPS / DCI / PPS / APS / slice header / tile group header. 19) The proposed method (s) may be combined with another coding tool such as affine / multiple transform selection (MTS)  / low-frequency non-separable transform (LFNST)  / merge with motion vector difference (MMVD)  /  Matrix-Based Intra Prediction (MIP)  / intra sub-partitions (ISP)  / cross-component linear model (CCLM)  /  Convolutional cross-component model (CCCM)  / Symmetric Motion Vector Difference (SMVD)  / Bidirectional optical flow (BDOF)  / decoder side motion vector refinement (DMVR)  / History-based Motion Vector Prediction (HMVP)  / Template Matching / intra block copy (IBC)  / Palette / etc. 20) The proposed method (s) may be excluded with another coding tool such as affine / multiple transform selection (MTS)  / low-frequency non-separable transform (LFNST)  / merge with motion vector difference (MMVD)  /  Matrix-Based Intra Prediction (MIP)  / intra sub-partitions (ISP)  / cross-component linear model (CCLM)  /  Convolutional cross-component model (CCCM)  / Symmetric Motion Vector Difference (SMVD)  / Bidirectional optical flow (BDOF)  / decoder side motion vector refinement (DMVR)  / History-based Motion Vector Prediction (HMVP)  / Template Matching / intra block copy (IBC)  / Palette / etc. a. In one example, if the proposed method (s) is used, the excluded coding tool is disabled implicitly without signaling. b. In one example, if the excluded coding tool is used, the proposed method (s) is disabled implicitly without signaling.

[0120] FIG. 6 is a block diagram showing an example video processing system 4000 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of the system 4000. The system 4000 may include input 4002 for receiving video content. The video content may be received in a raw or uncompressed format, e.g., 8 or 10 bit multi-component pixel values, or may be in a compressed or encoded format. The input 4002 may represent a network interface, a peripheral bus interface, or a storage interface. Examples of network interface include wired interfaces such as Ethernet, passive optical network (PON) , etc. and wireless interfaces such as wireless fidelity (Wi-Fi) or cellular interfaces.

[0121] The system 4000 may include a coding component 4004 that may implement the various coding or encoding methods described in the present disclosure. The coding component 4004 may reduce the average bitrate of video from the input 4002 to the output of the coding component 4004 to produce a coded representation of the video. The coding techniques are therefore sometimes called video compression or video transcoding techniques. The output of the coding component 4004 may be either stored, or transmitted via a communication connected, as represented by the component 4006. The stored or communicated bitstream (or coded) representation of the video received at the input 4002 may be used by a component 4008 for generating pixel values or displayable video that is sent to a display interface 4010. The process of generating user-viewable video from the bitstream representation is sometimes called video decompression. Furthermore, while certain video processing operations are referred to as “coding” operations or tools, it will be appreciated that the coding tools or operations are used at an encoder and corresponding decoding tools or operations that reverse the results of the coding will be performed by a decoder.

[0122] Examples of a peripheral bus interface or a display interface may include universal serial bus (USB) or high definition multimedia interface (HDMI) or Displayport, and so on. Examples of storage interfaces include serial advanced technology attachment (SATA) , peripheral component interconnect (PCI) , integrated drive electronics (IDE) interface, and the like. The techniques described in the present disclosure may be embodied in various electronic devices such as mobile phones, laptops, smartphones or other devices that are capable of performing digital data processing and / or video display.

[0123] FIG. 7 is a block diagram of an example video processing apparatus 4100. The apparatus 4100 may be used to implement one or more of the methods described herein. The apparatus 4100 may be embodied in a smartphone, tablet, computer, Internet of Things (IoT) receiver, and so on. The apparatus 4100 may include one or more processors 4102, one or more memories 4104 and video processing circuitry 4106. The processor (s) 4102 may be configured to implement one or more methods described in the present disclosure. The memory (memories) 4104 may be used for storing data and code used for implementing the methods and techniques described herein. The video processing circuitry 4106 may be used to implement, in hardware circuitry, some techniques described in the present disclosure. In some embodiments, the video processing circuitry 4106 may be at least partly included in the processor 4102, e.g., a graphics co-processor.

[0124] FIG. 8 is a flowchart for an example method 4200 of video processing. The method 4200 includes determining to apply a residual adjustment, in-loop filtering, or prediction filtering to a different internal bit depth at step 4202. A conversion is performed between a visual media data and a bitstream based on application of the residual adjustment, the in-loop filtering, or the prediction filtering to the different internal bit depth at step 4204. The conversion of step 4204 may include encoding at an encoder or decoding at a decoder, depending on the example.

[0125] It should be noted that the method 4200 can be implemented in an apparatus for processing video data comprising a processor and a non-transitory memory with instructions thereon, such as video encoder 4400, video decoder 4500, and / or encoder 4600. In such a case, the instructions upon execution by the processor, cause the processor to perform the method 4200. Further, the method 4200 can be performed by a non-transitory computer readable medium comprising a computer program product for use by a video coding device. The computer program product comprises computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method 4200.

[0126] FIG. 9 is a block diagram that illustrates an example video coding system 4300 that may utilize the techniques of this disclosure. The video coding system 4300 may include a source device 4310 and a destination device 4320. Source device 4310 generates encoded video data which may be referred to as a video encoding device. Destination device 4320 may decode the encoded video data generated by source device 4310 which may be referred to as a video decoding device.

[0127] Source device 4310 may include a video source 4312, a video encoder 4314, and an input / output (I / O) interface 4316. Video source 4312 may include a source such as a video capture device, an interface to receive video data from a video content provider, and / or a computer graphics system for generating video data, or a combination of such sources. The video data may comprise one or more pictures. Video encoder 4314 encodes the video data from video source 4312 to generate a bitstream. The bitstream may include a sequence of bits that form a coded representation of the video data. The bitstream may include coded pictures and associated data. The coded picture is a coded representation of a picture. The associated data may include sequence parameter sets, picture parameter sets, and other syntax structures. I / O interface 4316 may include a modulator / demodulator (modem) and / or a transmitter. The encoded video data may be transmitted directly to destination device 4320 via I / O interface 4316 through network 4330. The encoded video data may also be stored onto a storage medium / server 4340 for access by destination device 4320.

[0128] Destination device 4320 may include an I / O interface 4326, a video decoder 4324, and a display device 4322. I / O interface 4326 may include a receiver and / or a modem. I / O interface 4326 may acquire encoded video data from the source device 4310 or the storage medium / server 4340. Video decoder 4324 may decode the encoded video data. Display device 4322 may display the decoded video data to a user. Display device 4322 may be integrated with the destination device 4320, or may be external to destination device 4320, which can be configured to interface with an external display device.

[0129] Video encoder 4314 and video decoder 4324 may operate according to a video compression standard, such as the High Efficiency Video Coding (HEVC) standard, Versatile Video Coding (VVC) standard and other current and / or further standards.

[0130] FIG. 10 is a block diagram illustrating an example of video encoder 4400, which may be video encoder 4314 in the system 4300 illustrated in FIG. 9. Video encoder 4400 may be configured to perform any or all of the techniques of this disclosure. The video encoder 4400 includes a plurality of functional components. The techniques described in this disclosure may be shared among the various components of video encoder 4400. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.

[0131] The functional components of video encoder 4400 may include a partition unit 4401, a prediction unit 4402 which may include a mode select unit 4403, a motion estimation unit 4404, a motion compensation unit 4405, an intra prediction unit 4406, a residual generation unit 4407, a transform processing unit 4408, a quantization unit 4409, an inverse quantization unit 4410, an inverse transform unit 4411, a reconstruction unit 4412, a buffer 4413, and an entropy encoding unit 4414.

[0132] In other examples, video encoder 4400 may include more, fewer, or different functional components. In an example, prediction unit 4402 may include an intra block copy (IBC) unit. The IBC unit may perform prediction in an IBC mode in which at least one reference picture is a picture where the current video block is located.

[0133] Furthermore, some components, such as motion estimation unit 4404 and motion compensation unit 4405 may be highly integrated, but are represented in the example of video encoder 4400 separately for purposes of explanation.

[0134] Partition unit 4401 may partition a picture into one or more video blocks. Video encoder 4400 and video decoder 4500 may support various video block sizes.

[0135] Mode select unit 4403 may select one of the coding modes, intra or inter, e.g., based on error results, and provide the resulting intra or inter coded block to a residual generation unit 4407 to generate residual block data and to a reconstruction unit 4412 to reconstruct the encoded block for use as a reference picture. In some examples, mode select unit 4403 may select a combination of intra and inter prediction (CIIP) mode in which the prediction is based on an inter prediction signal and an intra prediction signal. Mode select unit 4403 may also select a resolution for a motion vector (e.g., a sub-pixel or integer pixel precision) for the block in the case of inter prediction.

[0136] To perform inter prediction on a current video block, motion estimation unit 4404 may generate motion information for the current video block by comparing one or more reference frames from buffer 4413 to the current video block. Motion compensation unit 4405 may determine a predicted video block for the current video block based on the motion information and decoded samples of pictures from buffer 4413 other than the picture associated with the current video block.

[0137] Motion estimation unit 4404 and motion compensation unit 4405 may perform different operations for a current video block, for example, depending on whether the current video block is in an I slice, a P slice, or a B slice.

[0138] In some examples, motion estimation unit 4404 may perform uni-directional prediction for the current video block, and motion estimation unit 4404 may search reference pictures of list 0 or list 1 for a reference video block for the current video block. Motion estimation unit 4404 may then generate a reference index that indicates the reference picture in list 0 or list 1 that contains the reference video block and a motion vector that indicates a spatial displacement between the current video block and the reference video block. Motion estimation unit 4404 may output the reference index, a prediction direction indicator, and the motion vector as the motion information of the current video block. Motion compensation unit 4405 may generate the predicted video block of the current block based on the reference video block indicated by the motion information of the current video block.

[0139] In other examples, motion estimation unit 4404 may perform bi-directional prediction for the current video block, motion estimation unit 4404 may search the reference pictures in list 0 for a reference video block for the current video block and may also search the reference pictures in list 1 for another reference video block for the current video block. Motion estimation unit 4404 may then generate reference indexes that indicate the reference pictures in list 0 and list 1 containing the reference video blocks and motion vectors that indicate spatial displacements between the reference video blocks and the current video block. Motion estimation unit 4404 may output the reference indexes and the motion vectors of the current video block as the motion information of the current video block. Motion compensation unit 4405 may generate the predicted video block of the current video block based on the reference video blocks indicated by the motion information of the current video block.

[0140] In some examples, motion estimation unit 4404 may output a full set of motion information for decoding processing of a decoder. In some examples, motion estimation unit 4404 may not output a full set of motion information for the current video. Rather, motion estimation unit 4404 may signal the motion information of the current video block with reference to the motion information of another video block. For example, motion estimation unit 4404 may determine that the motion information of the current video block is sufficiently similar to the motion information of a neighboring video block.

[0141] In one example, motion estimation unit 4404 may indicate, in a syntax structure associated with the current video block, a value that indicates to the video decoder 4500 that the current video block has the same motion information as another video block.

[0142] In another example, motion estimation unit 4404 may identify, in a syntax structure associated with the current video block, another video block and a motion vector difference (MVD) . The motion vector difference indicates a difference between the motion vector of the current video block and the motion vector of the indicated video block. The video decoder 4500 may use the motion vector of the indicated video block and the motion vector difference to determine the motion vector of the current video block.

[0143] As discussed above, video encoder 4400 may predictively signal the motion vector. Two examples of predictive signaling techniques that may be implemented by video encoder 4400 include advanced motion vector prediction (AMVP) and merge mode signaling.

[0144] Intra prediction unit 4406 may perform intra prediction on the current video block. When intra prediction unit 4406 performs intra prediction on the current video block, intra prediction unit 4406 may generate prediction data for the current video block based on decoded samples of other video blocks in the same picture. The prediction data for the current video block may include a predicted video block and various syntax elements.

[0145] Residual generation unit 4407 may generate residual data for the current video block by subtracting the predicted video block (s) of the current video block from the current video block. The residual data of the current video block may include residual video blocks that correspond to different sample components of the samples in the current video block.

[0146] In other examples, there may be no residual data for the current video block for the current video block, for example in a skip mode, and residual generation unit 4407 may not perform the subtracting operation.

[0147] Transform processing unit 4408 may generate one or more transform coefficient video blocks for the current video block by applying one or more transforms to a residual video block associated with the current video block.

[0148] After transform processing unit 4408 generates a transform coefficient video block associated with the current video block, quantization unit 4409 may 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.

[0149] Inverse quantization unit 4410 and inverse transform unit 4411 may apply inverse quantization and inverse transforms to the transform coefficient video block, respectively, to reconstruct a residual video block from the transform coefficient video block. Reconstruction unit 4412 may add the reconstructed residual video block to corresponding samples from one or more predicted video blocks generated by the prediction unit 4402 to produce a reconstructed video block associated with the current block for storage in the buffer 4413.

[0150] After reconstruction unit 4412 reconstructs the video block, the loop filtering operation may be performed to reduce video blocking artifacts in the video block.

[0151] Entropy encoding unit 4414 may receive data from other functional components of the video encoder 4400. When entropy encoding unit 4414 receives the data, entropy encoding unit 4414 may perform one or more entropy encoding operations to generate entropy encoded data and output a bitstream that includes the entropy encoded data.

[0152] FIG. 11 is a block diagram illustrating an example of video decoder 4500 which may be video decoder 4324 in the system 4300 illustrated in FIG. 9. The video decoder 4500 may be configured to perform any or all of the techniques of this disclosure. In the example shown, the video decoder 4500 includes a plurality of functional components. The techniques described in this disclosure may be shared among the various components of the video decoder 4500. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.

[0153] In the example shown, video decoder 4500 includes an entropy decoding unit 4501, a motion compensation unit 4502, an intra prediction unit 4503, an inverse quantization unit 4504, an inverse transformation unit 4505, a reconstruction unit 4506, and a buffer 4507. Video decoder 4500 may, in some examples, perform a decoding pass generally reciprocal to the encoding pass described with respect to video encoder 4400.

[0154] Entropy decoding unit 4501 may retrieve an encoded bitstream. The encoded bitstream may include entropy coded video data (e.g., encoded blocks of video data) . Entropy decoding unit 4501 may decode the entropy coded video data, and from the entropy decoded video data, motion compensation unit 4502 may determine motion information including motion vectors, motion vector precision, reference picture list indexes, and other motion information. Motion compensation unit 4502 may, for example, determine such information by performing the AMVP and merge mode.

[0155] Motion compensation unit 4502 may produce motion compensated blocks, possibly performing interpolation based on interpolation filters. Identifiers for interpolation filters to be used with sub-pixel precision may be included in the syntax elements.

[0156] Motion compensation unit 4502 may use interpolation filters as used by video encoder 4400 during encoding of the video block to calculate interpolated values for sub-integer pixels of a reference block. Motion compensation unit 4502 may determine the interpolation filters used by video encoder 4400 according to received syntax information and use the interpolation filters to produce predictive blocks.

[0157] Motion compensation unit 4502 may use some of the syntax information to determine sizes of blocks used to encode frame (s) and / or slice (s) of the encoded video sequence, partition information that describes how each macroblock of a picture of the encoded video sequence is partitioned, modes indicating how each partition is encoded, one or more reference frames (and reference frame lists) for each inter coded block, and other information to decode the encoded video sequence.

[0158] Intra prediction unit 4503 may use intra prediction modes for example received in the bitstream to form a prediction block from spatially adjacent blocks. Inverse quantization unit 4504 inverse quantizes, i.e., de-quantizes, the quantized video block coefficients provided in the bitstream and decoded by entropy decoding unit 4501. Inverse transform unit 4505 applies an inverse transform.

[0159] Reconstruction unit 4506 may sum the residual blocks with the corresponding prediction blocks generated by motion compensation unit 4502 or intra prediction unit 4503 to form decoded blocks. If desired, a deblocking filter may also be applied to filter the decoded blocks in order to remove blockiness artifacts. The decoded video blocks are then stored in buffer 4507, which provides reference blocks for subsequent motion compensation / intra prediction and also produces decoded video for presentation on a display device.

[0160] FIG. 12 is a schematic diagram of an example encoder 4600. The encoder 4600 is suitable for implementing the techniques of VVC. The encoder 4600 includes three in-loop filters, namely a deblocking filter (DF) 4602, a sample adaptive offset (SAO) 4604, and an adaptive loop filter (ALF) 4606. Unlike the DF 4602, which uses predefined filters, the SAO 4604 and the ALF 4606 utilize the original samples of the current picture to reduce the mean square errors between the original samples and the reconstructed samples by adding an offset and by applying a finite impulse response (FIR) filter, respectively, with coded side information signaling the offsets and filter coefficients. The ALF 4606 is located at the last processing stage of each picture and can be regarded as a tool trying to catch and fix artifacts created by the previous stages.

[0161] The encoder 4600 further includes an intra prediction component 4608 and a motion estimation / compensation (ME / MC) component 4610 configured to receive input video. The intra prediction component 4608 is configured to perform intra prediction, while the ME / MC component 4610 is configured to utilize reference pictures obtained from a reference picture buffer 4612 to perform inter prediction. Residual blocks from inter prediction or intra prediction are fed into a transform (T) component 4614 and a quantization (Q) component 4616 to generate quantized residual transform coefficients, which are fed into an entropy coding component 4618. The entropy coding component 4618 entropy codes the prediction results and the quantized transform coefficients and transmits the same toward a video decoder (not shown) . Quantization components output from the quantization component 4616 may be fed into an inverse quantization (IQ) components 4620, an inverse transform component 4622, and a reconstruction (REC) component 4624. The REC component 4624 is able to output images to the DF 4602, the SAO 4604, and the ALF 4606 for filtering prior to those images being stored in the reference picture buffer 4612.

[0162] A listing of solutions preferred by some examples is provided next.

[0163] The following solutions show examples of techniques discussed herein.

[0164] 1. A method for processing video data comprising: determining to apply a residual adjustment to a video unit in a picture; and performing a conversion between a visual media data and a bitstream based on the residual adjustment.

[0165] 2. The method of solution 1, wherein the video unit is a coding unit (CU) , transform unit (TU) , prediction unit (PU) , coding tree unit (CTU) , coding tree block (CTB) , CTU row, picture, slice, or tile.

[0166] 3. The method of any of solutions 1-2, wherein the residual adjustment is enabled, disabled, or controlled at different levels.

[0167] 4. The method of any of solutions 1-3, wherein a syntax element is signaled to indicate whether the residual adjustment is enabled, a syntax element is signaled to indicate which strength of residual adjustment is selected or used, or a syntax element is signaled to indicate which function of residual adjustment is selected or used.

[0168] 5. The method of any of solutions 1-4, wherein the syntax element is coded with at least one context, or wherein the context depends on coding information of a current block or a neighboring block, or wherein the context depends on residual adjustment on or off decision of at least one neighboring block.

[0169] 6. The method of any of solutions 1-5, wherein the syntax element is binarized by unary code, truncated unary code, fixed-length code, exponential Golomb code, or truncated exponential Golomb code, or wherein the syntax element is signaled conditionally, or wherein the syntax element is signaled only when the residual is available, or wherein the syntax element is coded in a predictive way, or wherein the first syntax element is predicted by the on or off decision of the residual adjustment at least one neighboring block, or wherein the syntax element is signaled independently for different color components, or wherein the first syntax element is signaled and shared for different color components, or wherein the first syntax element is signaled for a first color component but not signaled for a second color component, or wherein the syntax element is signaled to indicate how to apply the residual adjustment, or wherein the syntax element is signaled in sequence parameter set (SPS) , picture parameter set (PPS) , picture header, slice header, adaptation parameter set (APS) , CTU, or CU.

[0170] 7. The method of any of solutions 1-6, wherein the residual adjustment is applied to different loop-filters.

[0171] 8. The method of any of solutions 1-7, wherein the residual adjustment is applied to deblocking filter (DBF) , Bilateral Filter (BF) , sample adaptive offset (SAO) , cross component SAO (CCSAO) , adaptive loop filter (ALF) , or cross component ALF (CCALF) .

[0172] 9. The method of any of solutions 1-8, wherein the residual adjustment is applied to BF, SAO, and CCSAO jointly, or wherein the residual is the difference between input and output sample for one position of all BF, SAO, and CCSAO.

[0173] 10. The method of any of solutions 1-9, wherein the residual adjustment is applied to ALF and CCALF jointly, or wherein the residual refers to the difference between input and output sample for one position of all ALF and CCALF.

[0174] 11. The method of any of solutions 1-10, wherein the residual adjustment is applied to different color components.

[0175] 12. The method of any of solutions 1-11, wherein the residual adjustment is applied to only Luma component for one loop-filter, or wherein the residual adjustment is applied to Chroma components for one loop-filter, or wherein the residual adjustment is applied to only one of the Chroma components, or wherein the residual adjustment is applied to both Luma and Chroma components.

[0176] 13. The method of any of solutions 1-12, wherein the residual adjustment is enabled or disabled based on picture, slice, or tile condition.

[0177] 14. The method of any of solutions 1-13, wherein the residual adjustment is enabled or disabled based on picture, slice, or tile type, or wherein the residual adjustment is enabled or disabled based on picture, slice, or tile temporal identifier (ID) , or wherein the residual adjustment is enabled or disabled based on picture, slice, or tile picture order count (POC) , or wherein the residual adjustment is enabled or disabled based on other picture, slice, or tile info.

[0178] 15. The method of any of solutions 1-14, wherein the residual is adjusted for one position only when the absolute residual is greater than N, where N = 1.

[0179] 16. The method of any of solutions 1-15, wherein the residual is adjusted for one position only when the absolute residual inside a window is greater than N, where N = 5, or wherein the window size is T, where T = 3, or wherein the window shape is diamond, square, or cross.

[0180] 17. The method of any of solutions 1-16, wherein the absolute residual is adjusted.

[0181] 18. The method of any of solutions 1-17, wherein the absolute residual is decreased by M where M = 1, or wherein the absolute residual is increased by P where P = 1, or wherein the absolute residual is adjusted by Max (N, (absolute residual)  / K) where N = 1, K = 8 , or wherein the absolute residual is adjusted by Min (N, (absolute residual)  / K) where N = 2, K = 16, or wherein the absolute residual is adjusted by Sigmoid function, or wherein the absolute residual is adjusted by clipping function, or wherein the absolute residual is adjusted by mapping function, or wherein the absolute residual is adjusted by any non-linear function.

[0182] 19. The method of any of solutions 1-18, wherein the method is applied in post-processing or pre-processing, or wherein the method is used jointly or individually.

[0183] 20. The method of any of solutions 1-19, wherein the method is applied to any in-loop filtering tools, pre-processing tools, or post-processing filtering tools in video coding including but not limited to ALF, CCALF, BF, SAO, CCSAO, or any other filtering method.

[0184] 21. The method of any of solutions 1-20, wherein the video unit includes a sequence, picture, sub-picture, slice, tile, coding tree unit (CTU) , CTU row, groups of CTU, coding unit (CU) , prediction unit (PU) , transform unit (TU) , coding tree block (CTB) , coding block (CB) , prediction block (PB) , transform block (TB) , or any other region that contains more than one luma or chroma sample or pixel.

[0185] 22. The method of any of solutions 1-21, wherein application of the methods is signalled in a bitstream, or wherein they are signalled at sequence level, group of pictures level, picture level, slice level, or tile group level, in sequence header, picture header, sequence parameter set (SPS) , video parameter set (VPS) , decoding parameter set (DPS) , decoding capability information (DCI) , picture parameter set (PPS) , Adaptation Parameter Set (APS) , slice header, or tile group header, or wherein they are signalled at PB, TB, CB, PU, TU, CU, virtual pipeline data unit (VPDU) , CTU, CTU row, slice, tile, sub-picture, other kinds of region contain more than one sample or pixel.

[0186] 23. The method of any of solutions 1-22, wherein whether to or how to apply the method is dependent on coded information, block size, color format, single or dual tree partitioning, color component, slice, or picture type.

[0187] 24. The method of any of solutions 1-23, wherein a syntax element is binarized as a flag, a fixed length code, an EG (x) code, a unary code, a truncated unary code, or a truncated binary code, and wherein the syntax element is signed or unsigned.

[0188] 25. The method of any of solutions 1-24, wherein a syntax element is coded with at least one context model or is bypass coded.

[0189] 26. The method of any of solutions 1-25, wherein a syntax element is signaled in a conditional way, or wherein the syntax element is signaled only when the corresponding function is applicable, or wherein the syntax element is signaled only when the dimensions including width or height of the block satisfy a condition.

[0190] 27. The method of any of solutions 1-26, wherein a syntax element is signaled at block level, sequence level, group of pictures level, picture level, slice level, or tile group level, in coding structures CTU, CU, TU, PU, CTB, CB, TB, PB, sequence header, picture header, SPS, VPS, DPS, DCI, PPS, APS, slice header, or tile group header.

[0191] 28. The method of any of solutions 1-27, wherein the method is combined with another coding tool including affine, Multi Transform Selection (MTS) , Low-Frequency Non-Separable Transform (LFNST) , merge mode with motion vector difference (MMVD) , Matrix-based Intra Prediction (MIP) , intra sub-partitions (ISP) , Cross-Component Linear Model (CCLM) , convolutional cross-component model (CCCM) , Symmetrical motion vector difference (SMVD) , Bi-directional optical flow (BDOF) , decoder-side motion vector refinement (DMVR) , history-based motion vector prediction (HMVP) , Template Matching, intra block copy (IBC) , or Palette.

[0192] 29. The method of any of solutions 1-28, wherein the method is excluded with another coding tool including affine, MTS, LFNST, MMVD, MIP, ISP, CCLM, CCCM, SMVD, BDOF, DMVR, HMVP, Template Matching, IBC, or Palette, or wherein when the method is used, the excluded coding tool is disabled implicitly without signaling, or wherein when the excluded coding tool is used, the method is disabled implicitly without signaling.

[0193] 30. An apparatus for processing video data comprising: a processor; and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform the method of any of solutions 1-29.

[0194] 31. A non-transitory computer readable medium comprising a computer program product for use by a video coding device, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method of any of solutions 1-29.

[0195] 32. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises: determining to apply a residual adjustment to a video unit in a picture; and generating the bitstream based on the determining.

[0196] 33. A method for storing bitstream of a video comprising: determining to apply a residual adjustment to a video unit in a picture; generating the bitstream based on the determining; and storing the bitstream in a non-transitory computer-readable recording medium.

[0197] 34. A method, apparatus, or system described in the present disclosure.

[0198] In the solutions described herein, an encoder may conform to the format rule by producing a coded representation according to the format rule. In the solutions described herein, a decoder may use the format rule to parse syntax elements in the coded representation with the knowledge of presence and absence of syntax elements according to the format rule to produce decoded video.

[0199] In the present disclosure, the term “video processing” may refer to video encoding, video decoding, video compression or video decompression. For example, video compression algorithms may be applied during conversion from pixel representation of a video to a corresponding bitstream representation or vice versa. The bitstream representation of a current video block may, for example, correspond to bits that are either co-located or spread in different places within the bitstream, as is defined by the syntax. For example, a macroblock may be encoded in terms of transformed and coded error residual values and also using bits in headers and other fields in the bitstream. Furthermore, during conversion, a decoder may parse a bitstream with the knowledge that some fields may be present, or absent, based on the determination, as is described in the above solutions. Similarly, an encoder may determine that certain syntax fields are or are not to be included and generate the coded representation accordingly by including or excluding the syntax fields from the coded representation.

[0200] The disclosed and other solutions, examples, embodiments, modules and the functional operations described in this disclosure can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed in this disclosure and their structural equivalents, or in combinations 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 execution by, or to control the operation of, data processing apparatus. The computer readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, a composition of matter effecting a machine-readable propagated signal, or a combination of one or more them. The term “data processing apparatus” encompasses all apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, or multiple processors or computers. The apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them. A propagated signal is an artificially generated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to suitable receiver apparatus.

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

[0202] The processes and logic flows described in this disclosure can be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an field programmable gate array (FPGA) or an application specific integrated circuit (ASIC) .

[0203] Processors suitable for the execution of a computer program include, by way of example, both general and special purpose microprocessors, and any one or more processors of any kind of digital computer. Generally, a processor will receive instructions and data from a read only memory or a random-access memory or both. The essential elements of a computer are a processor for performing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto optical disks, or optical disks. However, a computer need not have such devices. Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., erasable programmable read-only memory (EPROM) , electrically erasable programmable read-only memory (EEPROM) , and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto optical disks; and compact disc read-only memory (CD ROM) and Digital versatile disc-read only memory (DVD-ROM) disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.

[0204] While the present disclosure contains many specifics, these should not be construed as limitations on the scope of any subject matter or of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of particular techniques. Certain features that are described in the present disclosure in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.

[0205] Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Moreover, the separation of various system components in the embodiments described in the present disclosure should not be understood as requiring such separation in all embodiments.

[0206] Only a few implementations and examples are described and other implementations, enhancements and variations can be made based on what is described and illustrated in the present disclosure.

[0207] A first component is directly coupled to a second component when there are no intervening components, except for a line, a trace, or another medium between the first component and the second component. The first component is indirectly coupled to the second component when there are intervening components other than a line, a trace, or another medium between the first component and the second component. The term “coupled” and its variants include both directly coupled and indirectly coupled. The use of the term “about” means a range including ±10%of the subsequent number unless otherwise stated.

[0208] While several embodiments have been provided in the present disclosure, it should be understood that the disclosed systems and methods might be embodied in many other specific forms without departing from the spirit or scope of the present disclosure. The present examples are to be considered as illustrative and not restrictive, and the intention is not to be limited to the details given herein. For example, the various elements or components may be combined or integrated in another system or certain features may be omitted, or not implemented.

[0209] In addition, techniques, systems, subsystems, and methods described and illustrated in the various embodiments as discrete or separate may be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the present disclosure. Other items shown or discussed as coupled may be directly connected or may be indirectly coupled or communicating through some interface, device, or intermediate component whether electrically, mechanically, or otherwise. Other examples of changes, substitutions, and alterations are ascertainable by one skilled in the art and could be made without departing from the spirit and scope disclosed herein.

Claims

A method for processing video data, comprising:determining to apply a residual adjustment, in-loop filtering, or prediction filtering to a different internal bit depth; andperforming a conversion between a visual media data and a bitstream based on application of the residual adjustment, the in-loop filtering, or the prediction filtering to the different internal bit depth.The method of claim 1, wherein a shift operation is used to make a residual, an absolute residual, an in-loop filtering input, or a prediction filtering input suitable for the different internal bit depth.The method of claim 1, wherein a lookup table (LUT) used for the residual adjustment, the in-loop filtering, or the prediction filtering is limited to a pre-defined bit depth N.The method of claim 3, wherein N is a positive integer.The method of claim 3, wherein N is 10.The method of claim 1, wherein a residual, an absolute residual, an in-loop filtering input, or a prediction filtering input is right shifted by K when the different internal bit depth is greater than N, and wherein K and N are each positive integers.The method of claim 6, wherein the residual adjustment, the in-loop filtering, or the prediction filtering is applied after right shifting.The method of claim 1, wherein a residual, an absolute residual, an in-loop filtering input, or a prediction filtering input is right shifted by K when the different internal bit depth is less than N, and wherein K and N are each positive integers.The method of claim 8, wherein the residual adjustment, the in-loop filtering, or the prediction filtering is applied after right shifting.The method of claim 1, wherein, after application of the residual adjustment, the in-loop filtering, or the prediction filtering, an adjusted residual, an adjusted absolute residual, an in-loop filtering offset, or a prediction filtering offset is left shifted by M when the different internal bit depth is greater than N, and wherein M and N are each positive integers.The method of claim 10, wherein M = the different internal bit depth –N.The method of claim 1, wherein, after application of the residual adjustment, the in-loop filtering, or the prediction filtering, an adjusted residual, an adjusted absolute residual, an in-loop filtering offset, or a prediction filtering offset is left shifted by M when the different internal bit depth is less than N, and wherein M and N are each positive integers.The method of claim 12, wherein M = 0.The method of any of claims 1-13, wherein the residual adjustment is left shifted or right shifted.The method of any of claims 1-13, wherein the in-loop filtering is left shifted or right shifted.The method of claim 15, wherein the in-loop filtering comprises a deblocking filter (DBF) .The method of claim 15, wherein the in-loop filtering comprises a sample adaptive offset (SAO) filter.The method of claim 15, wherein the in-loop filtering comprises an in-loop bilateral filter (BF) .The method of claim 15, wherein the in-loop filtering comprises a cross component sample adaptive offset (CCSAO) filter.The method of any of claims 1-13, wherein an adaptive loop filter (ALF) is left shifted or right shifted.The method of claim 20, wherein an offline ALF is left shifted or right shifted.The method of claim 20, wherein an online ALF is left shifted or right shifted.The method of claim 20, wherein a classification of the ALF is left shifted or right shifted.The method of any of claims 1-13, wherein a temporal adaptive loop filter (Temporal-ALF) is left shifted or right shifted.The method of any of claims 1-13, wherein a convolutional cross-component model adaptive loop filter (CCCM-ALF) is left shifted or right shifted.The method of any of claims 1-13, wherein an in-loop filter tool is left shifted or right shifted.The method of any of claims 1-13, wherein the prediction filtering is left shifted or right shifted.The method of claim 26, wherein the prediction filtering comprises a prediction bilateral filter (BF) .The method of claim 26, wherein the prediction filtering comprises a convolutional cross-component model (CCCM) , a cross-component linear model (CCLM) , or a generalized linear model (GLM) .The method of claim 26, wherein the prediction filtering comprises a interpolation filtering.The method of claim 26, wherein the prediction filtering comprises a temporal motion (TM) interpolation filtering.The method of claim 26, wherein the prediction filtering comprises reference sample filtering.The method of claim 26, wherein the prediction filtering comprises extrapolation filter-based intra prediction (EIP) filtering.The method of claim 26, wherein the prediction filtering comprises a fusion mode.The method of claim 26, wherein the prediction filtering comprises a matrix-based intra prediction (MIP) , parallel, a distributed and network-based processing (PDP) , or a neural-network (NN) -intra mode.The method of claim 26, wherein the prediction filtering comprises an intra mode.The method of claim 26, wherein the prediction filtering comprises an inter mode.The method of claim 26, wherein the prediction filtering comprises a cross-component mode.The method of any of claims 1-38, wherein one or more of the disclosed methods are applied in post-processing and / or pre-processing.The method of any of claims 1-39, wherein two or more of the methods are used jointly.The method of any of claims 1-39, wherein each of the methods is used individually.The method of any of claims 1-41, wherein one or more of the methods are applied to any in-loop filtering tools, pre-processing filtering method, or post-processing filtering method in video coding including but not limited to an adaptive loop filter (ALF) , a cross component ALF (CCALF) , a bilateral filter (BF) , a sample adaptive offset (SAO) filter, a cross component SAO (CCSAO) filter, or any other filtering method.The method of claim 42, wherein one or more of the methods are applied to an in-loop filtering method.The method of claim 42, wherein one or more of the methods are applied to a pre-processing filtering method.The method of claim 42, wherein one or more of the methods are applied to a post-processing filtering method.The method of any of claims 1-45, wherein the video unit refers to a sequence, picture, sub-picture, slice, tile, coding tree unit (CTU) , CTU row, group of CTUs, coding unit (CU) , prediction unit (PU) , transform unit (TU) , coding tree block (CTB) , coding block (CB) , prediction block (PB) , transform block (TB) , any other region that contains more than one luma or chroma sample or pixel.The method of any of claims 1-46, wherein whether and / or how to apply one or more of the disclosed methods is signalled in the bitstream.The method of any of claims 1-47, wherein whether and / or how to apply one or more of the disclosed methods is signalled at a sequence level, group of pictures level, picture level, slice level, tile group level, or in a sequence header, picture header, SPS, video parameter set (VPS) , dependency parameter set (DPS) , decoding capability information (DCI) , picture parameter set (PPS) , adaptation parameter set (APS) , slice header, or tile group header.The method of any of claims 1-48, wherein whether and / or how to apply one or more of the disclosed methods is signalled at a prediction block (PB) , transform block (TB) , coding block (CB) , prediction unit (PU) , transform unit (TU) , coding unit (CU) , virtual pipeline data unit (VPDU) , coding tree unit (CTU) , CTU row, slice, tile, sub-picture, or any other region that contains more than one sample or pixel.The method of any of claims 1-49, wherein whether and / or how to apply one or more of the disclosed methods is dependent on coded information, and wherein the coded information includes one or more of block size, color format, single or dual tree partitioning, color component, slice type, or picture type.The method of any of claims 1-50, wherein whether to and / or how to apply the disclosed methods above may be dependent on coded information, and wherein the coded information comprises a block size, color format, single / dual tree partitioning, color component, slice type, or picture type.The method of any of claims 1-51, wherein a syntax element is binarized as a flag, a fixed length code, an exponential Golomb code, a unary code, a truncated unary code, or a truncated binary code, and wherein the syntax element is signed or unsigned.The method of any of claims 1-52, wherein a syntax element is coded with at least one context model or is bypass coded.The method of any of claims 1-53, wherein a syntax element is signaled in a conditional way.The method of claim 54, wherein the syntax element is signaled only when the corresponding function is applicable.The method of claim 54, wherein the syntax element is signaled only when dimensions of a block satisfy a condition, and wherein the dimensions comprise a width and / or a height.The method of any of claims 1-56, wherein a syntax element is signaled at a block level, sequence level, group of pictures level, picture level, slice level, or tile group level, or is signaled in one of the following coding structures: coding tree unit (CTU) , coding unit (CU) , transform unit (TU) , prediction unit (PU) , coding tree block (CTB) , coding block (CB) , transform block (TB) , prediction block (PB) , or is signaled in a sequence header, picture header, sequence parameter set (SPS) , video parameter set (VPS) , dependency parameter set (DPS) , decoding capability information (DCI) , picture parameter set (PPS) , adaptation parameter set (APS) , slice header, or tile group header.The method of any of claims 1-57, wherein one or more of the methods is combined with another coding tool, and wherein the another coding tool is one or more of affine, multiple transform selection (MTS) , low-frequency non-separable transform (LFNST) , merge with motion vector difference (MMVD) , Matrix-Based Intra Prediction (MIP) , intra sub-partitions (ISP) , cross-component linear model (CCLM) , Convolutional cross-component model (CCCM) , Symmetric Motion Vector Difference (SMVD) , Bidirectional optical flow (BDOF) , decoder side motion vector refinement (DMVR) , History-based Motion Vector Prediction (HMVP) , Template Matching, intra block copy (IBC) , or Palette.The method of any of claims 1-58, wherein one or more of the methods is excluded from being used with another coding tool, and wherein the another coding tool is one or more of affine, multiple transform selection (MTS) , low-frequency non-separable transform (LFNST) , merge with motion vector difference (MMVD) , Matrix-Based Intra Prediction (MIP) , intra sub-partitions (ISP) , cross-component linear model (CCLM) , Convolutional cross-component model (CCCM) , Symmetric Motion Vector Difference (SMVD) , Bidirectional optical flow (BDOF) , decoder side motion vector refinement (DMVR) , History-based Motion Vector Prediction (HMVP) , Template Matching, intra block copy (IBC) , or Palette.The method of claim 59, wherein, when one or more of the methods are used, the another coding tool is disabled implicitly without signaling.The method of claim 59, wherein, when the another coding tool is used, one or more of the methods are disabled implicitly without signaling.The method of any of claims 1-61, wherein the conversion includes encoding the visual media data into the bitstream.The method of any of claims 1-61, wherein the conversion includes decoding the visual media data from the bitstream.An apparatus for processing video data comprising: a processor; and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform the method of any of claims 1-63.A non-transitory computer readable medium comprising a computer program product for use by a video coding device, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method of any of claims 1-63.A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises:determining to apply a residual adjustment, in-loop filtering, or prediction filtering to a different internal bit depth; andperforming a conversion between a visual media data and a bitstream based on application of the residual adjustment, the in-loop filtering, or the prediction filtering to the different internal bit depth.A method for storing bitstream of a video, comprising:determining to apply a residual adjustment, in-loop filtering, or prediction filtering to a different internal bit depth;generating the bitstream based on the residual adjustment, the in-loop filtering, or the prediction filtering to the different internal bit depth; andstoring the bitstream in a non-transitory computer-readable recording medium.A method, apparatus, or system described in the present disclosure.