Level-based signaling for video codecs
By introducing adaptive resolution changing and reference picture resampling technology, we optimize video coding and decoding standards, solve the problems of low efficiency and large resource usage of existing technologies when resolution changes, and achieve efficient video stream processing and seamless switching. .
Patent Information
- Application Number
- CN202080070273.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-10-05
- Filing Date
- 2020-10-09
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2040-10-09
AI Technical Summary
Existing video codec technology has problems such as low efficiency, large resource usage, and increased latency when dealing with resolution changes. Especially in video calls, multi-party video conferencing, and streaming, it is difficult to achieve seamless switching and quickly adapt to changes in network conditions. .
A video processing method is proposed that allows inter-frame prediction to be achieved without increasing memory access bandwidth by introducing adaptive resolution change (ARC) and reference picture resampling (RPR) technology into the video codec standard. Finer granularity and improved encoding and decoding performance through optimization of consistency windows and interpolation filters.
It achieves efficient encoding and decoding when resolution changes, reduces resource occupation and delay, supports seamless switching and rapid adaptation to network conditions, and improves the quality and stability of video streams.
Smart Images

Figure CN114503588B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application promptly claims priority and the benefit of International Patent Application No. PCT / CN2019 / 109837 filed on October 5, 2019, under applicable patent law and / or under the rules of the Paris Convention. The entire disclosure of the above application is incorporated by reference as part of the disclosure of this application for all purposes under the law. Technical Field
[0003] This patent document relates to video encoding and decoding technology, equipment and systems. Background Art
[0004] Currently, efforts are underway to improve the performance of current video codec technologies to provide better compression rates or to provide video encoding and decoding schemes that allow for lower complexity or parallelized implementations. Several new video codec tools have recently been proposed by industry experts and are currently being tested to determine their effectiveness. Summary of the invention
[0005] Devices, systems and methods related to digital video coding and, in particular, management of motion vectors are described. The described methods can be applied to existing video coding standards (e.g., High Efficiency Video Codec (HEVC) or Universal Video Codec) and future video coding standards or video codecs.
[0006] In one representative aspect, the disclosed technology can be used to provide a method for video processing. The method includes determining a signaling method to be used for a joint Cb-Cr residual codec tool for converting between a video and a bitstream representation of the video based on a color format of the video. The method also includes performing the conversion based on the determination.
[0007] In yet another representative aspect, the disclosed technology can be used to provide a method for video processing. The method includes performing a conversion between a video and a bitstream representation of the video. The bitstream representation conforms to a format rule that specifies whether, if a first syntax element is included in a first video unit in the bitstream representation, a corresponding second syntax element in a second video unit is included in the bitstream representation.
[0008] In another representative aspect, the disclosed technology can be used to provide a method for video processing. The method includes performing a conversion between a region of a video and a bitstream representation of the video. During the conversion, a first syntax element is included in the bitstream representation to indicate whether a multiple transform selection (MTS) codec is disabled for all blocks of the region.
[0009] In another representative aspect, the disclosed technology can be used to provide a method for video processing. The method includes determining a rule for signaling a first maximum block size of a block coded in a transform skip mode based on a second maximum block size of a transform coded block for conversion between a video and a bitstream representation of the video. The method also includes performing the conversion based on the determination.
[0010] In another representative aspect, the disclosed technology can be used to provide a method for video processing. The method includes performing conversion between blocks of chroma components of a video and a bitstream representation of the video using a partitioned mode codec tool, wherein a final prediction of the chroma block is determined by blending predictions of the chroma block using partition-based weights in the partitioned mode codec tool. During the conversion, the weights are determined based on the type of chroma sample locations in the chroma components of the block.
[0011] In another representative aspect, the disclosed technology can be used to provide a method for video processing. The method includes performing a conversion between a current video block and a codec representation of the current video block, wherein during the conversion, if the resolution and / or size of a reference picture is different from the resolution and / or size of the current video block, the same interpolation filter is applied to a set of adjacent or non-adjacent samples predicted using the current video block.
[0012] In another representative aspect, the disclosed technology can be used to provide another method for video processing. The method includes performing a conversion between a current video block and a codec representation of the current video block, wherein during the conversion, if a resolution and / or size of a reference picture is different from a resolution and / or size of the current video block, only blocks predicted using the current video block are allowed to use integer-valued motion information related to the current block.
[0013] In another representative aspect, the disclosed technology can be used to provide another method for video processing. The method includes performing a conversion between a current video block and a codec representation of the current video block, wherein during the conversion, if a resolution and / or size of a reference picture is different from a resolution and / or size of the current video block, an interpolation filter is applied to derive a block predicted using the current video block, and wherein the interpolation filter is selected based on a rule.
[0014] In another representative aspect, the disclosed technology can be used to provide another method for video processing. The method includes performing a conversion between a current video block and a codec representation of the current video block, wherein during the conversion, if the resolution and / or size of the reference picture is different from the resolution and / or size of the current video block, a deblocking filter is selectively applied, wherein the strength of the deblocking filter is set according to a rule related to the resolution and / or size of the reference picture relative to the resolution and / or size of the current video block.
[0015] In another representative aspect, the disclosed technology can be used to provide another method for video processing. The method includes performing a conversion between a current video block and a codec representation of the current video block, wherein during the conversion, a reference picture of the current video block is resampled according to a rule based on a dimension of the current video block.
[0016] In another representative aspect, the disclosed technology can be used to provide another method for video processing. The method includes performing a conversion between a current video block and a codec representation of the current video block, wherein during the conversion, depending on the resolution / size of a reference picture of the current video block relative to the resolution / size of the current video block, the use of a codec tool on the current video block is selectively enabled or disabled.
[0017] In another representative aspect, the disclosed technology can be used to provide another method for video processing. The method includes performing a conversion between a plurality of video blocks and a codec representation of the plurality of video blocks, wherein during the conversion, a first consistency window is defined for the first video block and a second consistency window is defined for the second video block, and wherein a ratio of a width and / or height of the first consistency window to a width and / or height of the second consistency window complies with a rule based at least on a conforming bitstream.
[0018] In another representative aspect, the disclosed technology can be used to provide another method for video processing. The method includes performing a conversion between a plurality of video blocks and a codec representation of the plurality of video blocks, wherein during the conversion, a first consistency window is defined for the first video block and a second consistency window is defined for the second video block, and wherein a ratio of a width and / or height of the first consistency window to a width and / or height of the second consistency window complies with a rule based at least on a conforming bitstream.
[0019] In addition, in a representative aspect, an apparatus in a video system is disclosed, the apparatus comprising a processor and a non-transitory memory having instructions thereon. The instructions executed by the processor cause the processor to implement any one or more of the disclosed methods.
[0020] In one representative aspect, a video decoding apparatus is disclosed that includes a processor configured to implement the methods described herein.
[0021] In one representative aspect, a video encoding apparatus is disclosed that includes a processor configured to implement the methods described herein.
[0022] Furthermore, a computer program product stored on a non-transitory computer-readable medium is disclosed, the computer program product comprising program codes for performing any one or more of the disclosed methods.
[0023] The above and other aspects and features of the disclosed technology are described in more detail in the drawings, the description and the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 Examples of sub-block motion vectors (VSB) and motion vector differences are shown.
[0025] Figure 2 An example of partitioning a 16x16 video block into 16 4x4 regions is shown.
[0026] Figure 3A Examples of specific locations in the sample points are shown.
[0027] Figure 3B Another example of a specific location in a sample point is shown.
[0028] Figure 3C Another example showing a specific location in a sample point
[0029] Figure 4A An example of the position of the current sample point and its reference sample point is shown.
[0030] Figure 4B Another example of the position of the current sample and its reference sample is shown.
[0031] Figure 5 is a block diagram of an example of a hardware platform for implementing the visual media decoding or visual media encoding techniques described in this document.
[0032] Figure 6 A flow chart of an example method for encoding and decoding a video is shown.
[0033] Figure 7 is a block diagram of an example video processing system in which the disclosed techniques may be implemented.
[0034] Figure 8 is a block diagram illustrating an example video encoding and decoding system.
[0035] Fig. 9is a block diagram illustrating an encoder according to some embodiments of the present disclosure.
[0036] Fig.10 is a block diagram illustrating a decoder according to some embodiments of the present disclosure.
[0037] Fig.11 is a flowchart representation of a method of video processing according to the present technology.
[0038] Fig.12 is a flowchart representation of another method of video processing according to the present technology.
[0039] Fig.13 is a flowchart representation of another method of video processing according to the present technology.
[0040] Fig.14 is a flowchart representation of another method of video processing according to the present technology.
[0041] Fig.15 is a flowchart representation of yet another method of video processing according to the present technology. DETAILED DESCRIPTION
[0042] 1. Video Codec in HEVC / H.265
[0043] Video codec standards have evolved primarily through the development of the well-known ITU-T and ISO / IEC standards. ITU-T produced the H.261 and H.263 standards, ISO / IEC produced the MPEG-1 and MPEG-4 Visual standards, and the two organizations jointly produced the H.262 / MPEG-2 Video standard, the H.264 / MPEG-4 Advanced Video Codec (AVC) standard, and the H.265 / HEVC standard. Starting with H.262, video codec standards are based on a hybrid video codec structure, in which temporal prediction plus transform coding is utilized. In order to explore future video codec technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, JVET has adopted many new methods and introduced them into a reference software named Joint Exploration Model (JEM). In April 2018, the Joint Video Experts Team (JVET) between VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) was created to work on the VVC standard, which targets a 50% bitrate reduction compared to HEVC.
[0044] 2. Overview
[0045] 2.1. Adaptive resolution change
[0046] AVC and HEVC do not have the ability to change resolution without introducing IDR or Intra Random Access Point (IRAP) pictures; this capability may be referred to as Adaptive Resolution Change (ARC).
[0047] Some use cases or application scenarios that will benefit from the ARC feature include the following:
[0048] - Rate Adaptation in Video Telephony and Conferencing: For adapting the codec video to changing network conditions, when network conditions get worse so that the available bandwidth becomes lower, the encoder can adapt to it by encoding pictures of smaller resolution. Currently, picture resolution can only be changed after an IRAP picture; this has several problems. An IRAP picture of reasonable quality will be much larger than an inter-codec picture, and its decoding will also be correspondingly more complex: this costs time and resources. Problems arise if the decoder requests a resolution change for loading reasons. It may also break the low-latency buffer condition, forcing the audio to resynchronize, and the end-to-end delay of the stream will increase, at least temporarily. This may result in a poor experience for the user.
[0049] -Active speaker changes in multi-party video conferences: For multi-party video conferences, the active speaker is usually displayed at a larger video size than the other conference participants. When the active speaker changes, the picture resolution of each participant may also need to be adjusted. When such changes in the active speaker occur frequently, the need for ARC becomes more important.
[0050] - Fast start in streaming: For streaming applications, typically the application will buffer up to a certain length of decoded pictures before starting display. Starting the bitstream at a smaller resolution will allow the application to have enough pictures in the buffer to start displaying faster.
[0051] Adaptive stream switching in streaming: The Dynamic Adaptive Streaming over HTTP (DASH) specification includes a feature called @mediaStreamStructureId. This enables switching between different representations at open GOP random access points with non-decodable leading pictures (e.g., CRA pictures with associated RASL pictures in HEVC). When two different representations of the same video have different bitrates but the same spatial resolution, and they have the same @mediaStreamStructureId value, switching between the two representations at CRA pictures with associated RASL pictures can be performed, and the RASL pictures associated with the switching CRA pictures can be decoded with acceptable quality, resulting in seamless switching. Using ARC, the @mediaStreamStructureId feature will also be available for switching between DASH representations with different spatial resolutions.
[0052] ARC is also known as Dynamic Resolution Switching.
[0053] ARC can also be viewed as a special case of Reference Picture Resampling (RPR), such as H.263 Annex P.
[0054] 2.2. Reference Picture Resampling in H.263 Annex P
[0055] This mode describes an algorithm that warps a reference picture before it is used for prediction. This algorithm can be useful for resampling reference pictures that have a different source format than the picture being predicted. By warping the shape, size and position of the reference picture, the algorithm can also be used for global motion estimation or rotational motion estimation. The syntax contains the warping parameters to be used as well as the resampling algorithm. The simplest level of operation for the reference picture resampling mode is an implicit resampling factor of 4, as only an FIR filter needs to be applied for the upsampling and downsampling processes. In this case, no additional signaling overhead is required when the size of the new picture (indicated in the picture header) is different from the size of the previous picture, as its purpose is understood.
[0056] 2.3.Consistency Window in VVC
[0057] The consistency window in VVC defines a rectangle. Samples within the consistency window belong to the image of interest. Samples outside the consistency window may be discarded when output.
[0058] When a consistency window is applied, the scaling ratio in the RPR is derived based on the consistency window.
[0059] Picture Parameter Set RBSP Syntax
[0060]
[0061]
[0062] pic_width_in_luma_samples specifies the width of each decoded picture with respect to the PPS in units of luma samples. pic_width_in_luma_samples shall not be equal to 0, shall be an integer multiple of Max(8, MinCbSizeY), and shall be less than or equal to pic_width_max_in_luma_samples.
[0063] When subpics_present_flag is equal to 1, the value of pic_width_in_luma_samples shall be equal to pic_width_max_in_luma_samples.
[0064] pic_height_in_luma_samples specifies the height of each decoded picture with respect to the PPS in units of luma samples. pic_height_in_luma_samples shall not be equal to 0, and shall be an integer multiple of Max(8, MinCbSizeY), and shall be less than or equal to pic_height_max_in_luma_samples.
[0065] When subpics_present_flag is equal to 1, the value of pic_height_in_luma_samples shall be equal to pic_height_max_in_luma_samples.
[0066] Assume that refPicWidthInLumaSamples and refPicHeightInLumaSamples are the pic_width_in_luma_samples and pic_height_in_luma_samples of the reference picture of the current picture of this PPS, respectively. Bitstream conformance requirements that satisfy all of the following conditions:
[0067]
[0068] conformance_window_flag equal to 1 indicates that a conformance cropping window offset parameter immediately follows in the SPS. conformance_window_flag equal to 0 indicates that no conformance cropping window offset parameter is present.
[0069] conf_win_left_offset, conf_win_right_offset, conf_win_top_offset, and conf_win_bottom_offset specify the samples of the picture in the CVS that are output from the decoding process according to the rectangular area for output specified in picture coordinates. When conformance_window_flag is equal to 0, the values of conf_win_left_offset, conf_win_right_offset, conf_win_top_offset, and conf_win_bottom_offset are inferred to be equal to 0.
[0070] The consistent cropping window contains luma samples whose horizontal picture coordinates are from SubWidthC*conf_win_left_offset to pic_width_in_luma_samples-(SubWidthC*conf_win_right_offset+1) and whose vertical picture coordinates are from SubHeightC*conf_win_top_offset to pic_height_in_luma_samples-(SubHeightC*conf_win_bottom_offset+1), inclusive.
[0071] The value of SubWidthC*(conf_win_left_offset+conf_win_right_offset) should be less than pic_width_in_luma_samples, and the value of SubHeightC*(conf_win_top_offset+conf_win_bottom_offset) should be less than pic_height_in_luma_samples.
[0072] The variables PicOutputWidthL and PicOutputHeightL are derived as follows:
[0073] PicOutputWidthL=pic_width_in_luma_samples- (7-43)
[0074] SubWidthC*(conf_win_right_offset+conf_win_left_offset)
[0075] PicOutputHeightL=pic_height_in_pic_size_units- (7-44)
[0076] SubHeightC*(conf_win_bottom_offset+conf_win_top_offset)
[0077] When ChromaArrayType is not equal to 0, the corresponding specified samples of the two chroma arrays are samples with picture coordinates (x / SubWidthC, y / SubHeightC), where (x, y) are the picture coordinates of the specified luma sample.
[0078]
[0079] Assume that ppsA and ppsB are any two PPSs about the same SPS. The bitstream conformance requirement is that when ppsA and ppsB have the same values of pic_width_in_luma_samples and pic_height_in_luma_samples, respectively, ppsA and ppsB shall have the same values of conf_win_left_offset, conf_win_right_offset, conf_win_top_offset and conf_win_bottom_offset, respectively.
[0080] 2.4. Reference Picture Resampling (RPR)
[0081] In some embodiments, ARC is also referred to as reference picture resampling (RPR). For RPR, TMVP is disabled if the resolution of the co-located picture is different from the resolution of the current picture. In addition, BDOF and DMVR are disabled when the resolution of the reference picture is different from the resolution of the current picture.
[0082] To handle normal MC when the resolution of the reference picture is different from the resolution of the current picture, the interpolation section is defined as follows:
[0083] 8.5.6.3 Fractional Sample Interpolation Process
[0084] 8.5.6.3.1 Overview
[0085] The inputs to this process are:
[0086] – Luma position (xSb, ySb), specifies the current codec relative to the top left luminance sample of the current picture.
[0087] The upper left sample point of the decoded sub-block;
[0088] –Variable sbWidth specifies the width of the current codec sub-block.
[0089] –Variable sbHeight specifies the height of the current codec sub-block.
[0090] – motion vector offset mvOffset,
[0091] – the refined motion vector refMvLX,
[0092] – Select the reference picture sample array refPicLX,
[0093] – Half-sample interpolation filter index hpelIfIdx,
[0094] – bidirectional optical flow flag bdofFlag,
[0095] –Variable cIdx, specifies the color component index of the current block.
[0096] The output of this process is:
[0097] – predSamplesLX, an array of (sbWidth+brdExtSize)x(sbHeight+brdExtSize) predicted sample values.
[0098] The prediction block boundary extension size brdExtSize is derived as follows:
[0099] brdExtSize=(bdofFlag||(inter_affine_flag[xSb][ySb]&&sps_affine_prof_enabled_flag))? 2:0 (8-752)
[0100] The variable fRefWidth is set equal to PicOutputWidthL of the reference picture in luma samples.
[0101] The variable fRefHeight is set equal to PicOutputHeightL of the reference picture in luma samples.
[0102] The motion vector mvLX is set equal to (refMvLX-mvOffset).
[0103] – If cIdx is equal to 0, the following conditions apply:
[0104] –The scaling factor and its fixed-point representation are defined as
[0105] hori_scale_fp=((fRefWidth<<14)+(PicOutputWidthL>>1)) / PicOutputWidthL(8-753)
[0106] vert_scale_fp=((fRefHeight<<14)+(PicOutputHeightL>>1)) / PicOutputHeightL (8-754)
[0107] – Assume that (xIntL, yIntL) is the luma position given in full sample units and (xFracL, yFracL) is the offset given in 1 / 16 sample units. These variables are used only in this clause to specify fractional sample positions within the reference sample array refPicLX.
[0108] – The upper left coordinate of the boundary block filled with reference samples (xSbInt L ,ySbInt L ) is set equal to (xSb+(mvLX[0]>>4), ySb+(mvLX[1]>>4)).
[0109] – For each luma sample position (x L =0..sbWidth-1+brdExtSize,y L =0..sbHeight-1+brdExtSize),
[0110] The corresponding predicted brightness sample value predSamplesLX[x L ][y L ] is exported as follows:
[0111] – Assumption (refxSb L ,refySb L ) and (refx L ,refy L ) is the luminance position pointed to by the motion vector (refMvLX[0], refMvLX[1]) given in units of 1 / 16 samples. The variable refxSb L ,refx L 、refySb L and refy L The export is as follows:
[0112] sbX L =((xSb<<4)+refMvLX[0])*hori_scale_fp (8-755)
[0113] refx L =((Sign(refxSb)*((Abs(refxSb)+128)>>8)+x L*((hori_scale_fp+8)>>4))+32)>>6 (8-756)
[0114] sb L =((ySb<<4)+refMvLX[1])*vert_scale_fp (8-757)
[0115] refyL=((Sign(refySb)*((Abs(refySb)+128)>>8)+yL*((vert_scale_fp+8)>>4))+32)>>6 (8-758)
[0116] – Variable xInt L ,yInt L ,xFrac L and yFrac L The export is as follows:
[0117] xInt L =refx L >>4 (8-759)
[0118] yInt L =refy L >>4 (8-760)
[0119] xFrac L =refx L &15 (8-761)
[0120] yFrac L =refy L &15 (8-762)
[0121] – If bdofFlag is equal to true (TRUE) or (sps_affine_prof_enabled_flag is equal to true and inter_affine_flag[xSb][ySb] is equal to true), and one or more of the following conditions are true, the predicted luma sample value predSamplesLX[xSb][ySb] is L ][y L ] is derived by invoking the luma integer sample extraction process specified in clause 8.5.6.3.3, where (xInt L +(xFrac L >>3)-1),yInt L +(yFrac L >>3)-1) and refPicLX as input.
[0122] –x Lis equal to 0.
[0123] –x L Equal to sbWidth+1.
[0124] –y L is equal to 0.
[0125] –y L Equal to sbHeight+1.
[0126] – Otherwise, the predicted luma sample values predSamplesLX[xL][yL] are derived by invoking the luma sample 8-tap interpolation filtering process as specified in clause 8.5.6.3.2, where (xIntL - (brdExtSize > 0? 1:0), yIntL - (brdExtSize > 0? 1:0)), (xFracL, yFracL), (xSbInt L ,ySbInt L ), refPicLX, hpelIfIdx, sbWidth, sbHeight and (xSb, ySb) as input.
[0127] – Otherwise (cIdx is not equal to 0), the following conditions apply:
[0128] – Assume that (xIntC, yIntC) are chroma positions given in full sample units and (xFracC, yFracC) are offsets given in 1 / 32 sample units. These variables are used only in this clause to specify regular fractional sample positions within the reference sample array refPicLX.
[0129] – The upper left coordinate (xSbIntC, ySbIntC) of the reference sample filled boundary block is set equal to ((xSb / SubWidthC)+(mvLX[0]>>5), (ySb / SubHeightC)+(mvLX[1]>>5)).
[0130] – For each chroma sample position (xC = 0..sbWidth-1, yC = 0..sbHeight-1) in the predicted chroma sample array predSamplesLX, the corresponding predicted chroma sample value predSamplesLX[xC][yC] is derived as follows:
[0131] – Assumption (refxSb C ,refySb C ) and (refx C ,refy C) is the chrominance position pointed to by the motion vector (mvLX[0], mvLX[1]) given in units of 1 / 32 samples. Then the variable refxSb C 、refySb C ,refx C and refy C The export is as follows:
[0132] sbX C =((xSb / SubWidthC<<5)+mvLX[0])*hori_scale_fp (8-763)
[0133] refx C =((Sign(refxSb C )*((Abs(refxSb C )+256)>>9)+xC*((hori_scale_fp+8)>>4))+16)>>5 (8-764)
[0134] sb C =((ySb / SubHeightC<<5)+mvLX[1])*vert_scale_fp (8-765)
[0135] refy C =((Sign(refySb C )*((Abs(refySb C )+256)>>9)+yC*((vert_scale_fp+8)>>4))+16)>>5 (8-766)
[0136] – Variable xInt C ,yInt C 、xFrac C and yFrac C The export is as follows:
[0137] xInt C =refx C >>5 (8-767)
[0138] yInt C =refy C >>5 (8-768)
[0139] xFrac C =refy C &31 (8-769)
[0140] yFrac C =refyC &31 (8-770)
[0141] – The predicted sample values predSamplesLX[xC][yC] are derived by calling the procedure specified in clause 8.5.6.3.4 with (xIntC, yIntC), (xFracC, yFracC), (xSbIntC, ySbIntC), sbWidth, sbHeight and refPicLX as input.
[0142] 8.5.6.3.2 Luma Sample Interpolation Filtering Process
[0143] The inputs to this process are:
[0144] – Luminance position in full sample units (xInt L ,yInt L ),
[0145] – Luma position in fractional samples (xFrac L ,yFrac L ),
[0146] – Luminance position in full sample units (xSbInt L ,ySbInt L ), specifies the upper left sample point of the boundary block filled with reference samples relative to the upper left luma sample point of the reference picture,
[0147] – Luminance reference sample array refPicLX L ,
[0148] – Half-sample interpolation filter index hpelIfIdx,
[0149] – The variable sbWidth specifies the width of the current sub-block.
[0150] –Variable sbHeight specifies the height of the current sub-block.
[0151] – Luma position (xSb, ySb), specifies the top left sample of the current subblock relative to the top left luma sample of the current picture,
[0152] The output of this process is the predicted luminance sample value predSampleLX L
[0153] The variables shift 1, shift 2, and shift3 are derived as follows:
[0154] – The variable shift1 is set equal to Min(4, BitDepth Y-8), variable shift2 is set equal to 6, and variable shift3 is set equal to Max(2,14-BitDepth Y ).
[0155] – The variable picW is set equal to pic_width_in_luma_samples, and the variable picH is set equal to pic_height_in_luma_samples.
[0156] Luma interpolation filter coefficient f for each 1 / 16 fractional sample position p L [p] is equal to xFrac L or yFrac L The export is as follows:
[0157] – If MotionModelIdc[xSb][ySb] is greater than 0, and sbWidth and sbHeight are both equal to 4, then the luma interpolation filter coefficients f are specified in Table 2 L [p].
[0158] – Otherwise, specify the luma interpolation filter coefficients f in Table 1 according to hpelIfIdx L [p].
[0159] Where i = 0..7, the brightness position in units of all samples (xInt i ,yInt i ) is exported as follows:
[0160] - If subpic_treated_as_pic_flag[SubPicIdx] is equal to 1, the following conditions apply:
[0161] xInt i =Clip3(SubPicLeftBoundaryPos,SubPicRightBoundaryPos,
[0162] xInt L +i-3)(8-771)
[0163] yInt i =Clip3(SubPicTopBoundaryPos,SubPicBotBoundaryPos,
[0164] yInt L +i-3)(8-772)
[0165] - Otherwise (subpic_treated_as_pic_flag[SubPicIdx] is equal to 0), the following conditions apply:
[0166] xInt i =Clip3(0,picW-1,sps_ref_wraparound_enabled_flag?
[0167] ClipH((sps_ref_wraparound_offset_minus1+1)*MinCbSizeY,picW,xInt L +i-3):xInt L +i-3) (8-773)
[0168] yInt i =Clip3(0,picH-1,yInt L +i-3) (8-774)
[0169] The brightness position in full sample units is also modified as follows, where i = 0..7:
[0170] xInt i =Clip3(xSbInt L -3,xSbInt L +sbWidth+4,xInt i ) (8-775)
[0171] yInt i =Clip3(ySbInt L -3,ySbInt L +sbHeight+4,yInt i ) (8-776)
[0172] Predicted brightness sample value predSampleLX L The export is as follows:
[0173] – If xFrac L and yFrac L are all equal to 0, then predSampleLX L The value of is derived as follows:
[0174] predSampleLX L =refPicLX L [xInt3][yInt3]< <shift3 (8-777)
[0175] – Otherwise, if xFrac Lis not equal to 0 and yFrac L If equal to 0, predSampleLX L The value of is derived as follows:
[0176]
[0177] – Otherwise, if xFrac L Equal to 0 and yFrac L If not equal to 0, predSampleLX L The value of is derived as follows:
[0178]
[0179] – Otherwise, if xFrac L Not equal to 0 and yFrac L If not equal to 0, predSampleLX L The value of is derived as follows:
[0180] – The sample array temp[n] with n=0..7 is derived as follows:
[0181]
[0182] –Predicted brightness sample value predSampleLX L The export is as follows:
[0183]
[0184] Table 8-11 – Luma interpolation filter coefficients f for each 1 / 16 fractional sample position p L [p] specification.
[0185]
[0186] Table 8-12 – Luma interpolation filter coefficients f for each 1 / 16 fractional sample position p for affine motion mode L [p] specification.
[0187]
[0188] 8.5.6.3.3 Luminance integer sample extraction process
[0189] The inputs to this process are:
[0190] – Luminance position in full sample units (xInt L ,yInt L ),
[0191] – Luminance reference sample array refPicLX L,
[0192] The output of this process is the predicted luminance sample value predSampleLX L
[0193] The variable shift is set equal to Max(2,14-BitDepthY).
[0194] The variable picW is set equal to pic_width_in_luma_samples, and the variable picH is set equal to pic_height_in_luma_samples.
[0195] The luminance position (xInt, yInt) in units of full samples is derived as follows:
[0196] xInt=Clip3(0,picW-1,sps_ref_wraparound_enabled_flag? (8-782)
[0197] ClipH((sps_ref_wraparound_offset_minus1+1)*MinCbSizeY,picW,xInt L ):xInt L )
[0198] yInt=Clip3(0,picH-1,yInt L ) (8-783)
[0199] Predicted brightness sample value predSampleLX L The export is as follows:
[0200] predSampleLX L =refPicLX L [xInt][yInt]< <shift3 (8-784)
[0201] 8.5.6.3.4 Chroma sample interpolation process
[0202] The inputs to this process are:
[0203] - Chroma position in units of full samples (xInt C ,yInt C ),
[0204] – Chroma position in 1 / 32 fractional samples (xFrac C ,yFrac C ),
[0205] – Chroma position (xSbIntC, ySbIntC) in full sample units, specified as the top left sample of the reference sample filled boundary block relative to the top left chroma sample of the reference picture,
[0206] – The variable sbWidth specifies the width of the current sub-block.
[0207] –Variable sbHeight specifies the height of the current sub-block.
[0208] – Chroma reference sample array refPicLX C .
[0209] The output of this process is the predicted chrominance sample value predSampleLX C
[0210] The variables shift1, shift2 and shift3 are derived as follows:
[0211] - Set the variable shift1 to be equal to Min(4, BitDepth C -8), variable shift2 is set equal to 6, and variable shift3 is set equal to Max(2,14-BitDepth C ).
[0212] -Variable picW C Set equal to pic_width_in_luma_samples / SubWidthC, and the variable picH C Set equal to pic_height_in_luma_samples / SubHeightC.
[0213] Table 3 specifies that xFrac C or yFrac C The chroma interpolation filter coefficient f for each 1 / 32 fractional sample position p C [p].
[0214] The variable xOffset is set equal to (sps_ref_wraparound_offset_minus1+1)*MinCbSizeY) / SubWidthC.
[0215] The chroma position (xInt) in units of all samples where i = 0..3 i ,yInt i ) is exported as follows:
[0216] - If subpic_treated_as_pic_flag[SubPicIdx] is equal to 1, the following conditions apply:
[0217] xInt i =Clip3(SubPicLeftBoundaryPos / SubWidthC,SubPicRightBoundaryPos / SubWidthC,xInt L +i) (8-785)
[0218] yInt i =Clip3(SubPicTopBoundaryPos / SubHeightC,SubPicBotBoundaryPos / SubHeightC,yInt L +i) (8-786)
[0219] - Otherwise (subpic_treated_as_pic_flag[SubPicIdx] is equal to 0), the following conditions apply:
[0220] xInt i =Clip3(0,picW C -1,sps_ref_wraparound_enabled_flag? ClipH(xOffset,picW C ,xInt C +i-1):xInt C +i-1) (8-787)
[0221] yInt i =Clip3(0,picH C -1,yInt C +i-1) (8-788)
[0222] The chroma position (xInt) in units of all samples where i = 0..3 i ,yInt i ) is also modified as follows:
[0223] xInt i =Clip3(xSbIntC-1,xSbIntC+sbWidth+2,xInt i ) (8-789)
[0224] yInt i =Clip3(ySbIntC-1,ySbIntC+sbHeight+2,yInt i ) (8-790)
[0225] Predicted chroma sample value predSampleLXC The export is as follows:
[0226] -If xFrac C and yFrac C are all equal to 0, then predSampleLX C The value of is derived as follows:
[0227] predSampleLX C =refPicLX C [xInt1][yInt1]< <shift3 (8-791)
[0228] - Otherwise, if xFrac C is not equal to 0 and yFrac C If equal to 0, predSampleLX C The value of is derived as follows:
[0229]
[0230] - Otherwise, if xFrac C Equal to 0 and yFrac C If not equal to 0, predSampleLX C The value of is derived as follows:
[0231]
[0232] - Otherwise, if xFrac C is not equal to 0 and yFrac C If not equal to 0, predSampleLX C The value of is derived as follows:
[0233] – The sample array temp[n] with n=0..3 is derived as follows:
[0234]
[0235] –Predicted chroma sample value predSampleLX C The export is as follows:
[0236]
[0237] Table 8-13 – Chroma interpolation filter coefficients f for each 1 / 32 fractional sample position p C [p] specification.
[0238]
[0239] 2.5. Refined Sub-block-based Affine Motion Compensated Prediction
[0240] The technology disclosed herein includes a method for refining sub-block based affine motion compensation prediction with optical flow. After performing sub-block based affine motion compensation, the prediction samples are refined by adding the difference derived from the optical flow equation, which is called prediction refinement with optical flow (PROF). The proposed method can achieve inter-frame prediction with pixel-level granularity without increasing the memory access bandwidth.
[0241] To achieve finer granularity of motion compensation, this contribution proposes a method to refine sub-block based affine motion compensation prediction with optical flow. After performing sub-block based affine motion compensation, the luma prediction samples are refined by adding the difference derived from the optical flow equation. The proposed PROF (Prediction Refinement with Optical Flow) is described as the following four steps.
[0242] Step 1) performs sub-block based affine motion compensation to generate sub-block prediction I(i,j).
[0243] Step 2) Use a 3-tap filter [-1, 0, 1] to calculate the spatial gradient g of the sub-block prediction at each sample point position x (i,j) and g y (i,j).
[0244] g x (i,j)=I(i+1,j)-I(i-1,j)
[0245] g y (i,j)=I(i,j+1)-I(i,j-1)
[0246] The sub-block prediction is extended by one pixel on each side for gradient calculation. To reduce memory bandwidth and complexity, pixels on the extended boundary are copied from the nearest integer pixel position in the reference picture. Thus, additional interpolation for the padded area is avoided.
[0247] Step 3) The brightness prediction as calculated by the optical flow equation is refined (denoted as ΔI).
[0248] ΔI(i,j)=g x (i,j)*Δv x (i,j)+g y (i,j)*Δv y (i,j)
[0249] where delta MV (denoted as Δv(i,j))) is the difference between the pixel MV (denoted by v(i,j)) calculated for the sample position (i,j) and the sub-block MV of the sub-block to which the pixel (i,j) belongs. Figure 1 shown.
[0250] Since the affine model parameters and the pixel position relative to the sub-block center do not change from sub-block to sub-block, Δv(i,j) can be calculated for the first sub-block and reused for other sub-blocks in the same CU. Assuming x and y are the horizontal and vertical offsets from the pixel position to the sub-block center, Δv(x,y) can be derived by the following equation:
[0251]
[0252] For the 4-parameter affine model,
[0253]
[0254] For the 6-parameter affine model,
[0255]
[0256] Where (v 0x ,v 0y )、(v 1x ,v 1y )、(v 2x ,v 2y ) are the upper left, upper right and lower left control point motion vectors, w and h are the width and height of the CU.
[0257] Step 4) Finally, the luma prediction refinement is added to the sub-block prediction I(i,j). The final prediction I' is generated as follows.
[0258] I′(i,j)=I(i,j)+ΔI(i,j)
[0259] Here are some details:
[0260] a) How to export PROF gradients
[0261] In some embodiments, the gradient is calculated for each sub-block (4×4 sub-blocks in VTM-4.0) of each reference list. For each sub-block, the nearest integer samples of the reference block are extracted to fill the four side outer lines of the samples.
[0262] Assume that the MV of the current sub-block is (MVx, MVy). Then the fractional part is calculated as (FracX, FracY) = (MVx & 15, MVy & 15). The integer part is calculated as (IntX, IntY) = (MVx>>4, MVy>>4). The offset (OffsetX, OffsetY) is derived as:
[0263] OffsetX = FracX > 7? 1:0;
[0264] OffsetY = FracY > 7? 1:0;
[0265] Assume that the upper left coordinates of the current sub-block are (xCur, yCur) and the dimensions of the current sub-block are W×H. Then (xCor0, yCor0), (xCor1, yCor1), (xCor2, yCor2), and (xCor3, yCor3) are calculated as follows:
[0266] (xCor0,yCor0) = (xCur + IntX + OffsetX - 1, yCur + IntY + OffsetY - 1);
[0267] (xCor1,yCor1) = (xCur + IntX + OffsetX - 1, yCur + IntY + OffsetY + H);
[0268] (xCor2,yCor2) = (xCur + IntX + OffsetX - 1, yCur + IntY + OffsetY);
[0269] (xCor3,yCor3) = (xCur + IntX + OffsetX + W, yCur + IntY + OffsetY);
[0270] Assume that PredSample[x][y] (where x = 0..W - 1, y = 0..H - 1) stores the predicted samples of the sub-block. Then the filled samples are derived as follows:
[0271] PredSample[x][-1] = (Ref(xCor0 + x, yCor0) << Shift0) – Rounding, where x = -1..W;
[0272] PredSample[x][H] = (Ref(xCor1 + x, yCor1) << Shift0) – Rounding, where x = -1..W;
[0273] PredSample[-1][y] = (Ref(xCor2, yCor2 + y) << Shift0) - Rounding, where y = 0..H - 1;
[0274] PredSample[W][y] = (Ref(xCor3, yCor3 + y) << Shift0) – Rounding, where y = 0..H - 1;
[0275] where Rec represents the reference picture. Rounding is an integer, and in an exemplary PROF implementation, Rounding is equal to 2 13Shift0 = Max(2, (14-BitDepth)); PROF attempts to improve the precision of the gradients, which is different from BIO in VTM-4.0, where the gradients are output with the same precision as the input luminance samples.
[0276] The gradient in PROF is calculated as follows:
[0277] Shift1=Shift0-4.
[0278] gradientH[x][y]=(predSamples[x+1][y]-predSample[x-1][y])>>Shift1
[0279] gradientV[x][y]=(predSample[x][y+1]-predSample[x][y-1])>>Shift1
[0280] It should be noted that predSamples[x][y] maintains the precision after interpolation.
[0281] b) How to derive Δv from PROF
[0282] The derivation of Δv (expressed as dMvH[posX][posY] and dMvV[posX][posY], where posX=0..W-1, posY=0..H-1) can be described as follows.
[0283] Assume that the dimension of the current block is cbWidth×cbHeight, the number of control point motion vectors is numCpMv, and the control point motion vector is cpMvLX[cpIdx], where cpIdx=0..numCpMv-1 and X is 0 or 1 to identify two reference lists.
[0284] The variables log2CbW and log2CbH are derived as follows:
[0285] log2CbW=Log2(cbWidth)
[0286] log2CbH=Log2(cbHeight)
[0287] The variables mvScaleHor, mvScaleVer, dHorX and dVerX are exported as follows:
[0288] mvScaleHor=cpMvLX[0][0]<<7
[0289] mvScaleVer=cpMvLX[0][1]<<7
[0290] dHorX=(cpMvLX[1][0]-cpMvLX[0][0])<<(7-log2CbW)
[0291] dVerX=(cpMvLX[1][1]-cpMvLX[0][1])<<(7-log2CbW) The variables dHorY and dVerY are derived as follows:
[0292] - If numCpMv is equal to 3, the following conditions apply:
[0293] dHorY=(cpMvLX[2][0]-cpMvLX[0][0])<<(7-log2CbH)
[0294] dVerY=(cpMvLX[2][1]-cpMvLX[0][1])<<(7-log2CbH)
[0295] - Otherwise (numCpMv is equal to 2), the following conditions apply:
[0296] dHorY=-dVerX
[0297] dVerY=dHorX
[0298] The variables qHorX, qVerX, qHorY, and qVerY are exported as:
[0299] qHorX=dHorX<<2;
[0300] qVerX=dVerX<<2;
[0301] qHorY=dHorY<<2;
[0302] qVerY=dVerY<<2;
[0303] dMvH[0][0] and dMvV[0][0] are calculated as:
[0304] dMvH[0][0]=((dHorX+dHorY)<<1)-((qHorX+qHorY)<<1);
[0305] dMvV[0][0]=((dVerX+dVerY)<<1)-((qVerX+qVerY)<<1);
[0306] dMvH[xPos][0] and dMvV[xPos][0] for xPos from 1 to W-1 are derived as:
[0307] dMvH[xPos][0]=dMvH[xPos-1][0]+qHorX;
[0308] dMvV[xPos][0]=dMvV[xPos-1][0]+qVerX;
[0309] For yPos from 1 to H-1, the following conditions apply:
[0310] dMvH[xPos][yPos]=dMvH[xPos][yPos-1]+qHorY, where xPos=0..W-1
[0311] dMvV[xPos][yPos]=dMvV[xPos][yPos-1]+qVerY, where xPos=0..W-1
[0312] Finally, dMvH[xPos][yPos] and dMvV[xPos][yPos], where posX = 0..W-1, posY 0..H-1, are right-shifted to:
[0313] dMvH[xPos][yPos]=SatShift(dMvH[xPos][yPos],7+2-1);
[0314] dMvV[xPos][yPos]=SatShift(dMvV[xPos][yPos],7+2-1);
[0315] Where SatShift(x,n) and Shift(x,n) are defined as:
[0316]
[0317] Shift(x,n)=(x+offset0)>>n
[0318] In one example, offset0 and / or offset1 are set to (1 <<n)> >1.
[0319] c) How to derive ΔI of PROF
[0320] For the position (posX, posY) in the sub-block, its corresponding Δv(i, j) is expressed as (dMvH[posX][posY], dMvV[posX][posY]). Its corresponding gradient is expressed as (gradientH[posX][posY], gradientV[posX][posY]).
[0321] Then, ΔI(posX, posY) is derived as follows.
[0322] (dMvH[posX][posY],dMvV[posX][posY]) is clipped to:
[0323] dMvH[posX][posY]=Clip3(-32768,32767,dMvH[posX][posY]);
[0324] dMvV[posX][posY]=Clip3(-32768,32767,dMvV[posX][posY]);
[0325] ΔI(posX,posY)=dMvH[posX][posY]×gradientH[posX][posY]+dMvV[posX][posY]×gradientV[posX][posY];
[0326] ΔI(posX,posY)=Shift(ΔI(posX,posY),1+1+4);
[0327] ΔI(posX,posY)=Clip3(-(2 13 -1),2 13 -1,ΔI(posX,posY));
[0328] d) How to export PROF's I'
[0329] If the current block is not coded as bi-predictive or weighted prediction,
[0330] I'(posX,posY)=Shift((I(posX,posY)+ΔI(posX,posY)),Shift0),
[0331] I'(posX,posY)=ClipSample(I'(posX,posY)),
[0332] ClipSample limits the sample value to a valid output sample value, and then outputs I'(posX, posY) as the inter-frame prediction value.
[0333] Otherwise (the current block is encoded or decoded as bidirectional prediction or weighted prediction), I'(posX, posY) will be stored and used to generate inter-frame prediction values according to other prediction values and / or weighted values.
[0334] 2.6. Stripe Header Example
[0335]
[0336]
[0337]
[0338]
[0339]
[0340] 2.7. Example Sequence Parameter Set
[0341]
[0342]
[0343]
[0344]
[0345]
[0346] 2.8 Example Image Parameter Set
[0347]
[0348]
[0349]
[0350]
[0351] 2.9. Example Adaptive Parameter Set
[0352]
[0353]
[0354]
[0355]
[0356]
[0357]
[0358] 2.10. Example image header
[0359] In some embodiments, the picture header is designed to have the following properties:
[0360] 1. The temporal ID and layer ID of the picture header NAL unit are the same as the temporal ID and layer ID of the layer access unit containing the picture header.
[0361] 2. A picture header NAL unit shall precede the NAL unit containing the first slice of the picture it is associated with. This establishes an association between the picture header and the slice of the picture associated with the picture header without having the picture header Id signaled in the picture header and referenced from the slice header.
[0362] 3. The picture header NAL unit shall follow the picture level parameter set or higher level, such as DPS, VPS, SPS, PPS, etc. Therefore, this requires that these parameter sets are not repeated / appeared within a picture or within an access unit.
[0363] 4. The picture header contains information about the picture type of the picture it is associated with. The picture type can be used to define the following (not an exhaustive list):
[0364] a. The image is an IDR image
[0365] b. The image is a CRA image
[0366] c. The picture is a GDR picture
[0367] d. The picture is a non-IRAP, non-GDR picture and contains only I stripes
[0368] e. The picture is a non-IRAP, non-GDR picture and may contain only P slices and I slices
[0369] f. The picture is a non-IRAP, non-GDR picture and contains any one of the B slices, P slices and / or I slices
[0370] 5. Move the signaling of picture level syntax elements in the slice header to the picture header.
[0371] 6. Signaling non-picture level syntax elements in the slice header, which are typically the same for all slices of the same picture in the picture header. When those syntax elements are not present in the picture header, those syntax elements may be signaled in the slice header.
[0372] In some implementations, a mandatory picture header concept is used to be sent once per picture as the first VCL NAL unit of the picture. It is also proposed to move syntax elements currently in the slice header to the picture header. Syntax elements that functionally only need to be sent once per picture can be moved to the picture header instead of sending them multiple times to a given picture, for example, sending the syntax elements in the slice header once per slice. The slice header syntax elements are constrained to be the same within the moving picture.
[0373] The syntax elements are already constrained to be the same in all slices of a picture. It can be asserted that moving these fields to the picture header so that they are signaled only once per picture instead of once per slice avoids redundant transmission of unnecessary bits without making any changes to the functionality of these syntax elements.
[0374] 1. In some implementations, the following semantic constraints exist:
[0375] When present, the value of each of the slice header syntax elements slice_pic_parameter_set_id, non_reference_picture_flag, colour_plane_id, slice_pic_order_cnt_lsb, recovery_poc_cnt, no_output_of_prior_pics_flag, pic_output_flag, and slice_temporal_mvp_enabled_flag shall be the same in all slice headers of a coded picture. Therefore, each of these syntax elements can be moved to the picture header to avoid unnecessary redundant bits.
[0376] In this contribution, recovery_poc_cnt and no_output_of_prior_pics_flag are not moved to the picture header. Their presence in the slice header depends on the conditional check of the slice header nal_unit_type, so it is recommended to study these syntax elements if they need to be moved to the picture header.
[0377] 2. In some implementations, the following semantic constraints exist:
[0378] When present, the value of slice_lmcs_aps_id shall be the same for all slices of a picture.
[0379] When present, the value of slice_scaling_list_aps_id shall be the same for all slices of a picture.Therefore, each of these syntax elements can be moved to the picture header to avoid unnecessary redundant bits.
[0380] In some embodiments, syntax elements are not currently constrained to be the same in all slices of a picture. It is recommended to evaluate the expected usage of these syntax elements to determine which syntax elements can be moved into the picture header to simplify the overall VVC design, as it is reported that performing processing on a large number of syntax elements in each slice header will bring complexity impact.
[0381] 1. It is proposed to move the following syntax elements to the picture header. Although there is currently no restriction on this syntax element having different values for different slices, it is advocated that there is no benefit / minimal benefit and codec loss in sending this syntax element in each slice header because their intended usage changes at the picture level:
[0382] a.six_minus_max_num_merge_cand
[0383] b.five_minus_max_num_subblock_merge_cand
[0384] c.slice_fpel_mmvd_enabled_flag
[0385] d.slice_disable_bdof_dmvr_flag
[0386] e.max_num_merge_cand_minus_max_num_triangle_cand
[0387] f.slice_six_minus_max_num_ibc_merge_cand
[0388] 2. It is proposed to move the following syntax elements to the picture header. Although there is currently no restriction on this syntax element having different values for different slices, it is argued that there is no benefit / minimal benefit and codec loss in sending this syntax element in each slice header because their intended usage changes at the picture level:
[0389] a.partition_constraints_override_flag
[0390] b.slice_log2_diff_min_qt_min_cb_luma
[0391] c.slice_max_mtt_hierarchy_depth_luma
[0392] d.slice_log2_diff_max_bt_min_qt_luma
[0393] e.slice_log2_diff_max_tt_min_qt_luma
[0394] f.slice_log2_diff_min_qt_min_cb_chroma
[0395] g.slice_max_mtt_hierarchy_depth_chroma
[0396] h.slice_log2_diff_max_bt_min_qt_chroma
[0397] i.slice_log2_diff_max_tt_min_qt_chroma
[0398] The conditional check "slice_type == I" associated with some of these syntax elements has been removed with the move to the picture header.
[0399] 3. It is proposed to move the following syntax elements to the picture header. Although there is currently no restriction on this syntax element having different values for different slices, it is argued that there is no benefit / minimal benefit and codec loss in sending this syntax element in each slice header because their intended usage changes at the picture level:
[0400] a.mvd_l1_zero_flag
[0401] The conditional check "slice_type == B" associated with some of these syntax elements has been removed with the move to the picture header.
[0402] 4. It is proposed to move the following syntax elements to the picture header. Although there is currently no restriction on this syntax element having different values for different slices, it is argued that there is no benefit / minimal benefit and codec loss in sending this syntax element in each slice header because their intended usage changes at the picture level:
[0403] a.dep_quant_enabled_flag
[0404] b.sign_data_hiding_enabled_flag
[0405] 3. Disadvantages of existing implementations
[0406] DMVR and BIO do not involve original signaling during motion vector refinement, which may cause the codec block to have inaccurate motion information. In addition, DMVR and BIO sometimes use fractional motion vectors after motion refinement, while screen video usually has integer motion vectors, which makes the current motion information more inaccurate and worsens the codec performance.
[0407] When RPR is applied in VVC, RPR (ARC) may have the following problems:
[0408] 1. Using RPR, the interpolation filters may be different for adjacent samples in a block, which is undesirable in SIMD (Single Instruction Multiple Data) implementation.
[0409] 2. RPR is not considered in the boundary area.
[0410] 3. Note that "the consistency crop window offset parameters are only applied at the output. All internal decoding processes are applied to the uncropped picture size". However, when RPR is applied, these parameters can be used during the decoding process.
[0411] 4. When deriving the reference sample point position, RPR only considers the ratio between the two consistency windows. However, the upper left offset difference between the two consistency windows should also be considered.
[0412] 5. The ratio between the width / height of the reference picture and the width / height of the current picture is constrained in VVC. However, the ratio between the width / height of the consistency window of the reference picture and the width / height of the consistency window of the current picture is not constrained.
[0413] 6. Not all syntax elements are properly processed in the picture header.
[0414] 7. In the current VVC, for TPM and GEO prediction modes, chroma mixing weights can be derived regardless of the chroma sample position type of the video sequence. For example, in TPM / GEO, if the chroma weights are derived from the luma weights, the luma weights may need to be downsampled to match the sampling of the chroma signaling. Assuming chroma sample position type 0, chroma downsampling is typically applied, which is widely used in ITU-R BT.601 or ITU-R BT.709 containers. However, if different chroma sample position types are used, misalignment between the chroma samples and the downsampled luma samples may result, which may degrade the encoding and decoding performance.
[0415] 4. Example Techniques and Implementations
[0416] The detailed embodiments described below should be considered as examples to explain the general concept. These embodiments should not be interpreted narrowly. In addition, these embodiments can be combined in any way.
[0417] In addition to DMVR and BIO mentioned below, the method described below can also be applied to other decoder motion information derivation techniques.
[0418] A motion vector is represented by (mv_x, mv_y), where mv_x is the horizontal component and mv_y is the vertical component.
[0419] In the present disclosure, the resolution (or dimension, or width / height, or size) of a picture may refer to the resolution (or dimension, or width / height, or size) of the encoded / decoded picture, or may refer to the resolution (or dimension, or width / height, or size) of a consistency window in the encoded / decoded picture.
[0420] Motion Compensation in RPR
[0421] 1. When the resolution of the reference picture is different from the resolution of the current picture, or when the width and / or height of the reference picture is larger than the width and / or height of the current picture, the prediction values of a set of samples (at least two samples) of the current block can be generated using the same horizontal and / or vertical interpolation filters.
[0422] a. In one example, the group may include all samples in the region of the block.
[0423] i. For example, the block can be divided into S MxN rectangles that do not overlap each other. Each MxN rectangle is a group. Figure 2 In the example shown in , a 16x16 block can be divided into 16 4x4 rectangles, each 4x4 rectangle is a group.
[0424] ii. For example, a row with N samples is a group. N is an integer not greater than the block width. In one example, N is 4 or 8 or the block width.
[0425] iii. For example, a column with N samples is a group. N is an integer not greater than the block height. In one example, N is 4 or 8 or the block height.
[0426] iv. M and / or N may be predefined or derived on the fly (such as based on block dimension / codec information or signaling).
[0427] b. In one example, the samples in the group may have the same MV (denoted as shared MV). c. In one example, the samples in the group may have MVs with the same horizontal component (denoted as shared horizontal component).
[0428] d. In one example, the samples in the group may have MVs with the same vertical component (denoted as shared vertical component).
[0429] e. In one example, the samples in the group may have MVs with fractional parts of the same horizontal component (denoted as shared fractional horizontal components).
[0430] i. For example, assuming that the MV of the first sample point is (MV1x, MV1y), and the MV of the second sample point is (MV2x, MV2y), then MV1x&(2 M-1) is equal to MV2x&(2 M -1), where M represents the MV precision. For example, M=4.
[0431] f. In one example, the samples in the group may have MVs with fractional parts of the same vertical component (denoted as shared fractional vertical components).
[0432] i. For example, assuming that the MV of the first sample point is (MV1x, MV1y), and the MV of the second sample point is (MV2x, MV2y), then MV1y&(2 M -1) is equal to MV2y&(2 M -1), where M represents the MV precision. For example, M=4.
[0433] g. In one example, for the samples in the group to be predicted, the prediction may first be performed based on the current picture and the reference picture (eg, derived in 8.5.6.3 of JVET-O2001-v14 (refx L ,refy L )) resolution to export from MV b Then, we can use MV b The sample is further modified (eg, rounded / truncated / clipped) to MV' to meet requirements such as those in the above bullet points, and MV' will be used to derive the predicted sample for that sample.
[0434] i. In one example, MV' has the same b The same integer part, and the fractional part of MV' is set to a shared fractional horizontal component and / or a shared fractional vertical component.
[0435] ii. In one example, MV' is set to have a shared fractional horizontal component and / or a shared fractional vertical component and is closest to MV b The one.
[0436] h. The shared motion vector (and / or shared horizontal component and / or shared vertical component and / or shared fractional horizontal component and / or shared fractional vertical component) can be set to the motion vector (and / or horizontal component and / or vertical component and / or fractional horizontal component and / or fractional vertical component) of a specific sample in the group.
[0437] i. For example, a specific sample point can be at the corner of a rectangular group, such as Figure 3A "A", "B", "C" and "D" shown in.
[0438] ii. For example, a specific sample point can be at the center of a rectangular group, such as Figure 3A "E", "F", "G" and "H" shown in.
[0439] iii. For example, a specific sample point can be at the end of a row or column group, such as Figure 3B and Figure 3C "A" and "D" shown in.
[0440] iv. For example, a specific sample point can be in the middle of a row or column group, such as Figure 3B and Figure 3C "B" and "C" shown in Figure 1.
[0441] v. In one example, the motion vector of a particular sample point may be the MV mentioned in bullet g. b .
[0442] i. The shared motion vector (and / or shared horizontal component and / or shared vertical component and / or shared fractional horizontal component and / or shared fractional vertical component) may be set to the motion vector (and / or horizontal component and / or vertical component and / or fractional horizontal component and / or fractional vertical component) of a virtual sample located at a different position compared to all samples in the group.
[0443] i. In one example, the virtual sample point is not in the group, but is located in a region covering all the samples in the group.
[0444] 1) Alternatively, the virtual sample point is located outside the region covering all the sample points in the group, for example, immediately below and to the right of the region.
[0445] ii. In one example, the MVs of virtual samples are derived in the same way as real samples, but with different positions.
[0446] iii. FIG. 3A to FIG. 3C The "V" in shows three examples of virtual sample points.
[0447] j. The shared MV (and / or shared horizontal component and / or shared vertical component and / or shared fractional horizontal component and / or shared fractional vertical component) can be set as a function of the MV (and / or horizontal component and / or vertical component and / or fractional horizontal component and / or fractional vertical component) of multiple samples and / or virtual samples.
[0448] i. For example, the shared MV (and / or shared horizontal component and / or shared vertical component and / or shared fractional horizontal component and / or shared fractional vertical component) can be set to all or part of the samples in the group, or Figure 3A The sample points "E", "F", "G", "H", or Figure 3A The sample points "E", "H", or Figure 3A The sample points "A", "B", "C", "D", or Figure 3A The sample points "A", "D", or Figure 3B The sample points "B", "C", or Figure 3B The sample points "A", "D", or Figure 3C The sample points "B", "C", or Figure 3C The average value of the MV (and / or horizontal component and / or vertical component and / or fractional horizontal component and / or fractional vertical component) of the sample points "A" and "D" in
[0449] 2. It is proposed that when the resolution of the reference picture is different from that of the current picture, or when the width and / or height of the reference picture is larger than that of the current picture, only integer MVs are allowed to perform the motion compensation process to derive the prediction block of the current block.
[0450] a. In one example, the decoded motion vector of the sample to be predicted is rounded to an integer MV before use.
[0451] b. In one example, the decoded motion vector of the sample to be predicted is rounded to an integer MV that is closest to the decoded motion vector.
[0452] c. In one example, the decoded motion vector of the sample to be predicted is rounded to an integer MV that is closest to the decoded motion vector in the horizontal direction.
[0453] d. In one example, the decoded motion vector of the sample to be predicted is rounded to an integer MV that is closest to the decoded motion vector in the vertical direction.
[0454] 3. The motion vectors used in the motion compensation process of samples in the current block (e.g., the shared MV / shared horizontal or vertical or fractional component / MV' mentioned in the above bullet points) can be stored in the decoded picture buffer and used for motion vector prediction of subsequent blocks in the current / different picture.
[0455] a. Alternatively, the motion vector used in the motion compensation process of the samples in the current block (e.g., the shared MV / shared horizontal or vertical or fractional component / MV' mentioned in the above bullet points) may not be allowed to be used for motion vector prediction of subsequent blocks in the current / different picture.
[0456] i. In one example, the decoded motion vector (eg, MV in the above bullet point) may be b ) is used for motion vector prediction of subsequent blocks in the current / different picture.
[0457] b. In one example, the motion vector used in the motion compensation process (eg, deblocking filter / SAO / ALF) of the samples in the current block may be utilized in the filtering process.
[0458] i. Alternatively, the decoded motion vectors (e.g., MV in the above bullet points) can be used in the filtering process. b ).
[0459] c. In one example, such MVs may be derived at a sub-block level and may be stored for each sub-block.
[0460] 4. It is proposed that the interpolation filter used to derive the prediction block of the current block in the motion compensation process can be selected depending on whether the resolution of the reference picture is different from the resolution of the current picture, or whether the width and / or height of the reference picture is larger than the width and / or height of the current picture.
[0461] a. In one example, when condition A is satisfied, an interpolation filter with fewer taps may be applied, where condition A depends on the dimensions of the current picture and / or the reference picture.
[0462] i. In one example, condition A is that the resolution of the reference picture is different from the resolution of the current picture.
[0463] ii. In one example, condition A is that the width and / or height of the reference picture is greater than the width and / or height of the current picture.
[0464] iii. In one example, condition A is W1>a*W2 and / or H1>b*H2, where (W1, H1) represents the width and height of the reference picture, and (W2, H2) represents the width and height of the current picture, and a and b are two factors, for example a=b=1.5.
[0465] iv. In one example, condition A may also depend on whether bidirectional prediction is used.
[0466] v. In one example, a 1-tap filter is applied. In other words, integer pixels without filtering are output as the interpolation result.
[0467] vi. In one example, when the resolution of the reference picture is different from the resolution of the current picture, a bilinear filter is applied.
[0468] vii. In one example, when the resolution of the reference picture is different from that of the current picture, or the width and / or height of the reference picture is greater than that of the current picture, a 4-tap filter or a 6-tap filter is applied.
[0469] 1) The 6-tap filter can also be used for affine motion compensation.
[0470] 2) A 4-tap filter can also be used for interpolation of chroma samples.
[0471] b. In one example, when the resolution of the reference picture is different from that of the current picture, or the width and / or height of the reference picture is larger than that of the current picture, interpolation is performed using padding samples.
[0472] c. Whether and / or how to apply the method disclosed in bullet point 4 may depend on the color component.
[0473] i. For example, this method is only applicable to the luminance component.
[0474] d. Whether and / or how to apply the method disclosed in bullet point 4 may depend on the interpolation filtering direction.
[0475] i. For example, this method is only applicable to horizontal filtering.
[0476] ii. For example, this method is only applicable to vertical filtering.
[0477] 5. It is proposed to apply a two-stage process for prediction block generation when the resolution of the reference picture is different from that of the current picture, or when the width and / or height of the reference picture is larger than that of the current picture.
[0478] a. In the first stage, a virtual reference block is generated by upsampling or downsampling an area in the reference picture, depending on the width and / or height of the current picture and the reference picture.
[0479] b. In the second stage, prediction samples are generated from the virtual reference blocks by applying interpolation filtering, independent of the width and / or height of the current picture and the reference picture.
[0480] 6. It is proposed that, as in some embodiments, the upper left coordinate (xSbInt) of the boundary block used for reference sample filling can be derived depending on the width and / or height of the current picture and the reference picture. L ,ySbInt L ) calculation.
[0481] a. In one example, the brightness position in units of all samples is modified to:
[0482] xInt i =Clip3(xSbInt L -Dx,xSbInt L +sbWidth+Ux,xInt i ),
[0483] yInt i =Clip3(ySbInt L -Dy,ySbInt L +sbHeight+Uy,yInti ),
[0484] Dx and / or Dy and / or Ux and / or Uy may depend on the width and / or height of the current picture and the reference picture.
[0485] b. In one example, the chroma position in units of full sample points is modified as follows:
[0486] xInt i =Clip3(xSbInt C -Dx,xSbInt C +sbWidth+Ux,xInt i )
[0487] yInt i =Clip3(ySbInt C -Dy,ySbInt C +sbHeight+Uy,yInt i )
[0488] Dx and / or Dy and / or Ux and / or Uy may depend on the width and / or height of the current picture and the reference picture.
[0489] 7. Instead of storing / using the motion vector of the block based on the same reference picture resolution as the current picture, it is proposed to use the real motion vector taking into account the resolution difference.
[0490] a. Alternatively, when a motion vector is used to generate a prediction block, it is not necessary to calculate the prediction block according to the current picture and the reference picture (eg, (refx L ,refy L ))'s resolution to further change the motion vectors.
[0491] Interaction between RPR and other codecs
[0492] 8. Whether / how to apply a filtering process (eg, a deblocking filter) may depend on the resolution of the reference picture and / or the resolution of the current picture.
[0493] a. In one example, the boundary strength (BS) setting in the deblocking filter may also consider the resolution difference in addition to the motion vector difference.
[0494] i. In one example, the motion vector difference scaled according to the resolution of the current picture and the reference picture can be used to determine the boundary strength.
[0495] b. In one example, if the resolution of at least one reference picture of block A is different from (or smaller than or larger than) the resolution of at least one reference picture of block B compared to a case where the same resolution is used for both blocks, the strength of the deblocking filter used for the boundary between block A and block B can be set differently (e.g., increased / decreased).
[0496] c. In one example, if the resolution of at least one reference picture of block A is different from (or smaller than or larger than) the resolution of at least one reference picture of block B, the boundary between block A and block B is marked as to be filtered (e.g., BS is set to 2).
[0497] d. In one example, if the resolution of at least one reference picture of block A and / or block B is different from (or smaller than or larger than) the resolution of the current picture compared to a case where the same resolution is used for the reference picture and the current picture, the strength of the deblocking filter used for the boundary between block A and block B may be set differently (e.g., increased / decreased).
[0498] e. In one example, if at least one reference picture of at least one of the two blocks has a resolution different from that of the current picture, the boundary between the two blocks is marked to be filtered (eg, BS is set to 2).
[0499] 9. When sub-pictures exist, the consistency bitstream should satisfy that the reference picture must have the same resolution as the current picture.
[0500] a. Alternatively, when the reference picture has a different resolution than the current picture, there must be no sub-picture in the current picture.
[0501] b. Alternatively, for a sub-picture in the current picture, it is not allowed to use a reference picture with a different resolution than the current picture.
[0502] i. Alternatively, furthermore, reference picture management may be invoked to exclude those reference pictures having different resolutions.
[0503] 10. In one example, sub-pictures may be defined for pictures with different resolutions (eg, how to divide a picture into multiple sub-pictures).
[0504] In one example, if the reference picture has a different resolution than the current picture, the corresponding sub-picture in the reference picture may be derived by scaling and / or offsetting a sub-picture of the current picture.
[0505] 11. When the resolution of the reference image is different from that of the current image, PROF (refinement with optical flow prediction) can be enabled.
[0506] a. In one example, an MV can be generated for a set of samples (denoted as MV g ) and can be used for motion compensation as described in bullet point 1. On the other hand, MV (denoted as MV p ), and MV p and MV g The difference between (eg, corresponding to the Δv used in PROF) together with the gradient (eg, the spatial gradient of the motion compensated block) can be used to derive prediction refinement.
[0507] b. In one example, MV p Can have with MV g Different precision. For example, MV p The accuracy can be 1 / N pixel (pel) (N>0), N=32, 64, etc.
[0508] c. In one example, MV g It can have a different precision than the internal MV precision (e.g., 1 / 16 pixel).
[0509] d. In one example, prediction refinements are added to the prediction block to generate a refined prediction block.
[0510] e. In one example, this method can be applied in each prediction direction.
[0511] f. In one example, this method can be applied only in the case of unidirectional prediction.
[0512] g. In one example, this method can be applied in unidirectional prediction or / and bidirectional prediction.
[0513] h. In one example, this method can be applied only when the reference picture has a different resolution than the current picture.
[0514] 12. It is proposed that when the resolution of the reference picture is different from that of the current picture, only one MV can be used for a block / sub-block to perform the motion compensation process to derive the prediction block of the current block.
[0515] a. In one example, a unique MV for a block / sub-block may be defined as a function (eg, an average) of all MVs associated with each sample within the block / sub-block.
[0516] b. In one example, a unique MV of a block / sub-block may be defined as a selected MV associated with a selected sample point (eg, a center sample point) within the block / sub-block.
[0517] c. In one example, a 4x4 block or sub-block (eg, 4x1) may utilize only one MV.
[0518] d. In one example, BIO can be further applied to compensate for the precision loss due to block-based motion vectors.
[0519] 13. When the width and / or height of the reference picture is different from the width and / or height of the current picture, a lazy mode that does not signal any block-based motion vectors may be applied.
[0520] a. In one example, motion vectors may not be signaled and the motion compensation process will approximate the case of a pure resolution change of a still image.
[0521] b. In one example, the motion vector may be signaled only at the picture / slice / brick / CTU level, and the relevant blocks may use the motion vector when the resolution changes.
[0522] 14. PROF can be applied to approximate motion compensation when the width and / or height of the reference picture is different from the width and / or height of the current picture for a block coded using an affine prediction mode and / or a non-affine prediction mode.
[0523] a. In one example, PROF may be enabled when the width and / or height of the reference picture is different from the width and / or height of the current picture.
[0524] b. In one example, a set of affine motions may be generated by combining the indicated motion and resolution scaling and used by PROF.
[0525] 15. When the width and / or height of the reference picture is different from the width and / or height of the current picture, interlaced prediction (eg as proposed in JVET-K0102) may be applied for approximate motion compensation.
[0526] a. In one example, the resolution change (scaling) is represented as an affine motion and interlaced motion prediction can be applied.
[0527] 16. LMCS and / or chroma residual scaling may be disabled when the width and / or height of the current picture is different from the width and / or height of an IRAP picture in the same IRAP period.
[0528] a. In one example, when LMCS is disabled, slice level flags such as slice_lmcs_enabled_flag, slice_lmcs_aps_id, and slice_chroma_residual_scale_flag may not be signaled and inferred to be 0.
[0529] b. In one example, when chroma residual scaling is disabled, slice-level flags such as slice_chroma_residual_scale_flag may not be signaled and are inferred as 0.
[0530] Constraints on RPR
[0531] 17. RPR can be applied to coded blocks with block dimension constraints.
[0532] a. In one example, for an M×N coded block, where M is the block width and N is the block height, when M*N < T or M*N <= T (such as T = 256), RPR may not be used.
[0533] b. In one example, when M < K (or M <= K) (such as K = 16) and / or N < L (or N <= L) (such as L = 16), RPR may not be used.
[0534] 18. Bitstream consistency can be added to limit the ratio between the width and / or height of the active reference picture (or its consistency window) and the width and / or height of the current picture (or its consistency window). Assume refPicW and refPicH represent the width and height of the reference picture, and curPicW and curPicH represent the width and height of the current picture.
[0535] a. In one example, when (refPicW ÷ curPicW) is equal to an integer, the reference picture can be marked as an active reference picture.
[0536] i. Alternatively, when (refPicW ÷ curPicW) is equal to a fraction, the reference picture can be marked as unavailable.
[0537] b. In one example, when (refPicW ÷ curPicW) is equal to (X*n), where X represents a fraction (such as X = 1 / 2) and n represents an integer (such as n = 1, 2, 3, 4...), the reference picture can be marked as an active reference picture.
[0538] i. In one example, when (refPicW ÷ curPicW) is not equal to (X*n), the reference picture can be marked as unavailable.
[0539] 19. For an M×N block, whether to enable and / or how to enable coding tools (e.g., the hybrid process in TPM / the entire triangular prediction mode (TPM) / bi-prediction) can depend on the resolution of the reference picture (or their consistency windows) and / or the resolution of the current picture (or its consistency window).
[0540] a. In one example, M*N < T or M*N <= T (such as T = 64).
[0541] b. In one example, M < K (or M <= K) (such as K = 16) and / or N < L (or N <= L) (such as L = 16).
[0542] c. In one example, when the width / height of at least one reference picture is different from the width / height of the current picture, the codec tool is not allowed.
[0543] i. In one example, when the width / height of at least one reference picture of a block is greater than the width / height of the current picture, the codec tool is not allowed.
[0544] d. In one example, when the width / height of each reference picture of a block is different from the width / height of the current picture, the codec tool is not allowed.
[0545] i. In one example, when the width / height of each reference picture is greater than the width / height of the current picture, the codec tool is not allowed.
[0546] e. Alternatively, in addition, when the codec tool is not allowed, motion compensation can be performed with a single MV as unidirectional prediction.
[0547] Related consistency windows
[0548] 20. The consistency cropping window offset parameter (e.g., conf_win_left_offset) is signaled with N-pixel precision instead of 1-pixel, where N is a positive integer greater than 1.
[0549] a. In one example, the actual offset can be derived as the signaled offset multiplied by N.
[0550] b. In one example, N is set to 4 or 8.
[0551] 21. It is proposed to apply the consistency cropping window offset parameter not only at the output. Some internal decoding processes can depend on the cropped picture size (i.e., the resolution of the consistency window in the picture).
[0552] 22. It is proposed that when the width and / or height (represented as pic_width_in_luma_samples, pic_height_in_luma_samples) of the pictures in the first video unit (e.g., PPS) and the second video unit are the same, the consistency cropping window offset parameters in the first video unit and the second video unit can be different.
[0553] 23. It is proposed that when the width and / or height (expressed as pic_width_in_luma_samples, pic_height_in_luma_samples) of the pictures in the first video unit (e.g., PPS) and the second video unit are different, the consistency cropping window offset parameters in the first video unit and the second video unit should be the same in the consistency bitstream.
[0554] a. It is proposed that regardless of whether the width and / or height (expressed as pic_width_in_luma_samples, pic_height_in_luma_samples) of the pictures in the first video unit (e.g., PPS) and the second video unit are the same, the consistency cropping window offset parameters in the first video unit and the second video unit should be the same in the consistency bitstream.
[0555] 24. Assume that the width and height of the consistency window defined in the first video unit (e.g., PPS) are denoted as W1 and H1, respectively. The width and height of the consistency window defined in the second video unit (e.g., PPS) are denoted as W2 and H2, respectively. The upper left position of the consistency window defined in the first video unit (e.g., PPS) is denoted as X1 and Y1. The upper left position of the consistency window defined in the second video unit (e.g., PPS) is denoted as X2 and Y2. The width and height (e.g., pic_width_in_luma_samples and pic_height_in_luma_samples) of the encoded / decoded picture defined in the first video unit (e.g., PPS) are denoted as PW1 and PH1, respectively. The width and height of the encoded / decoded picture defined in the second video unit (e.g., PPS) are denoted as PW2 and PH2.
[0556] a. In one example, in a conforming bitstream, W1 / W2 should be equal to X1 / X2.
[0557] i. Alternatively, in a conforming bitstream, W1 / X1 should be equal to W2 / X2.
[0558] ii. Alternatively, in a conforming bitstream, W1*X2 should be equal to W2*X1.
[0559] b. In one example, in a conforming bitstream, H1 / H2 should be equal to Y1 / Y2.
[0560] i. Alternatively, in a conforming bitstream, H1 / Y1 should be equal to H2 / Y2.
[0561] ii. Alternatively, in a conforming bitstream, H1*Y2 should be equal to H2*Y1.
[0562] c. In one example, in a conforming bitstream, PW1 / PW2 should be equal to X1 / X2.
[0563] i. Alternatively, in a conforming bitstream, PW1 / X1 should be equal to PW2 / X2.
[0564] ii. Alternatively, in a conforming bitstream, PW1*X2 should be equal to PW2*X1.
[0565] d. In one example, PH1 / PH2 should be equal to Y1 / Y2 in a conforming bitstream.
[0566] i. Alternatively, in a conforming bitstream, PH1 / Y1 should be equal to PH2 / Y2.
[0567] ii. Alternatively, in a conforming bitstream, PH1*Y2 should be equal to PH2*Y1.
[0568] e. In one example, in a conforming bitstream, PW1 / PW2 should be equal to W1 / W2.
[0569] i. Alternatively, in a conforming bitstream, PW1 / W1 should be equal to PW2 / W2.
[0570] ii. Alternatively, in a conforming bitstream, PW1*W2 should be equal to PW2*W1.
[0571] f. In one example, in a conforming bitstream, PH1 / PH2 should be equal to H1 / H2.
[0572] i. Alternatively, in a conforming bitstream, PH1 / H1 should be equal to PH2 / H2.
[0573] ii. Alternatively, in a conforming bitstream, PH1*H2 should be equal to PH2*H1.
[0574] g. In a conforming bitstream, if PW1 is greater than PW2, then W1 must be greater than W2.
[0575] h. In a conforming bitstream, if PW1 is less than PW2, then W1 must be less than W2.
[0576] i. In a conformant bitstream, (PW1-PW2)*(W1-W2) must be no less than 0.
[0577] j. In a conforming bitstream, if PH1 is greater than PH2, then H1 must be greater than H2.
[0578] k. In a conforming bitstream, if PH1 is less than PH2, then H1 must be less than H2.
[0579] l. In a conformant bitstream, (PH1-PH2)*(H1-H2) must be no less than 0.
[0580] m. In a conforming bitstream, if PW1>=PW2, then W1 / W2 must not be greater than (or less than) PW1 / PW2.
[0581] n. In a conformant bitstream, if PH1>=PH2, then H1 / H2 must not be greater than (or less than) PH1 / PH2.
[0582] 25. Assume that the width and height of the consistency window of the current picture are denoted as W and H respectively. The width and height of the consistency window of the reference picture are denoted as W' and H' respectively. Then, the consistency bitstream shall comply with at least one of the following constraints.
[0583] aW*pw>=W'; pw is an integer, such as 2.
[0584] bW*pw>W'; pw is an integer such as 2.
[0585] c. W'*pw'>=W; pw' is an integer, such as 8.
[0586] d. W'*pw'>W; pw' is an integer, such as 8.
[0587] eH*ph>=H'; ph is an integer such as 2.
[0588] fH*ph>H'; ph is an integer such as 2.
[0589] g. H'*ph'>=H; ph' is an integer, such as 8.
[0590] h.H'*ph'>H; ph' is an integer such as 8.
[0591] i. In one example, pw is equal to pw'.
[0592] j. In one example, ph is equal to ph'.
[0593] k. In one example, pw is equal to ph.
[0594] l. In one example, pw' is equal to ph'.
[0595] m. In one example, when W and H represent the width and height of the current picture, respectively, the conforming bitstream may be required to satisfy the above sub-items. W' and H' represent the width and height of the reference picture.
[0596] 26. It is proposed to partially signal consistency window parameters.
[0597] a. In one example, the upper-left sample point in the consistency window of the picture is the same as the upper-left sample point in the picture.
[0598] b. For example, conf_win_left_offset defined in VVC is not signaled and is inferred as zero.
[0599] c. For example, conf_win_top_offset defined in VVC is not signaled and is inferred as zero.
[0600] 27. It is proposed that the derivation of the position of the reference sample point (e.g., (refx L , refy L )) defined in VVC can depend on the upper-left position of the consistency window of the current picture and / or the reference picture (e.g., (conf_win_left_offset, conf_win_top_offset) defined in VVC). Figure 4 shows examples of the sample point positions derived in VVC (a) and in the proposed method (b). The dashed rectangle represents the consistency window.
[0601] a. In one example, the dependency exists only when the width and / or height of the current picture is different from the width and / or height of the reference picture.
[0602] b. In one example, the derivation of the horizontal position of the reference sample point (e.g., refx L ) defined in VVC can depend on the left position of the consistency window of the current picture and / or the reference picture (e.g., conf_win_left_offset defined in VVC).
[0603] i. In one example, the horizontal position of the current sample point relative to the upper-left position of the consistency window in the current picture (denoted as xSb') is calculated and used to derive the position of the reference sample point.
[0604] 1) For example, calculate xSb’ = xSb – (conf_win_left_offset << Prec), and use it to derive the position of the reference sample point, where xSb represents the horizontal position of the current sample point in the current picture. conf_win_left_offset represents the horizontal position of the upper-left sample point in the consistency window of the current picture. Prec represents the precision of xSb and xSb', where (xSb >> Prec) can show the actual horizontal coordinate of the current sample point relative to the current picture. For example, Prec = 0 or Prec = 4.
[0605] ii. In one example, calculate the horizontal position of the reference sample point relative to the upper - left position of the consistency window in the reference picture (denoted as Rx').
[0606] 1) The calculation of Rx' can depend on xSb' and / or the motion vector and / or the resampling rate.
[0607] iii. In one example, calculate the horizontal position of the reference sample point relative to the reference picture (denoted as Rx) depending on Rx'.
[0608] 1) For example, calculate Rx = Rx' + (conf_win_left_offset_ref << Prec), where conf_win_left_offset_ref represents the horizontal position of the upper - left sample point in the consistency window of the reference picture. Prec represents the precision of Rx and Rx'. For example, Prec = 0 or Prec = 4.
[0609] iv. In one example, Rx can be directly calculated depending on xSb' and / or the motion vector and / or the resampling rate. In other words, the two steps of deriving Rx' and Rx are combined into one - step calculation.
[0610] v. Whether to use and / or how to use the left - hand position of the consistency window of the current picture and / or the reference picture (e.g., conf_win_left_offset defined in VVC) can depend on the color component and / or the color format.
[0611] 1) For example, conf_win_left_offset can be modified to conf_win_left_offset = conf_win_left_offset * SubWidthC, where SubWidthC defines the horizontal sampling step of the color component. For example, SubWidthC of the luminance component is equal to 1. When the color format is 4:2:0 or 4:2:2, SubWidthC of the chrominance component is equal to 2.
[0612] 2) For example, conf_win_left_offset can be modified to conf_win_left_offset = conf_win_left_offset / SubWidthC, where SubWidthC defines the horizontal sampling step of the color component. For example, SubWidthC of the luminance component is equal to 1. When the color format is 4:2:0 or 4:2:2, SubWidthC of the chrominance component is equal to 2.
[0613] c. In one example, the vertical position of the reference sample point (e.g., refy defined in VVC) L) The derivation of can depend on the top position of the consistency window of the current picture and / or the reference picture (e.g., conf_win_top_offset as defined in VVC).
[0614] i. In one example, calculate the vertical position of the current sample relative to the upper-left position of the consistency window in the current picture (denoted as ySb'), and use it to derive the position of the reference sample.
[0615] 1) For example, calculate ySb’ = ySb – (conf_win_top_offset << Prec) and use it to derive the position of the reference sample, where ySb represents the vertical position of the current sample in the current picture. conf_win_top_offset represents the vertical position of the upper-left sample in the consistency window of the current picture. Prec represents the precision of ySb and ySb’. For example, Prec = 0 or Prec = 4.
[0616] ii. In one example, calculate the vertical position of the reference sample relative to the upper-left position of the consistency window in the reference picture (denoted as Ry').
[0617] 1) The calculation of Ry’ can depend on ySb’ and / or the motion vector and / or the resampling rate.
[0618] iii. In one example, calculate the vertical position of the reference sample relative to the reference picture depending on Ry’ (denoted as Ry).
[0619] 1) For example, calculate Ry = Ry’ + (conf_win_top_offset_ref << Prec), where conf_win_top_offset_ref represents the vertical position of the upper-left sample in the consistency window of the reference picture. Prec represents the precision of Ry and Ry’. For example, Prec = 0 or Prec = 4.
[0620] iv. In one example, Ry can be directly calculated depending on ySb’ and / or the motion vector and / or the resampling rate. In other words, the two steps of deriving Ry’ and Ry are combined into one-step calculation.
[0621] v. Whether to use and / or how to use the top position of the consistency window of the current picture and / or the reference picture (e.g., conf_win_top_offset as defined in VVC) can depend on the color component and / or the color format.
[0622] 1) For example, conf_win_top_offset can be modified to conf_win_top_offset = conf_win_top_offset * SubHeightC, where SubHeightC defines the vertical sampling step of the color component. For example, SubHeightC of the luma component is equal to 1. When the color format is 4:2:0, SubHeightC of the chroma component is equal to 2.
[0623] 2) For example, conf_win_top_offset can be modified to conf_win_top_offset = conf_win_top_offset / SubHeightC, where SubHeightC defines the vertical sampling step of the color component. For example, SubHeightC of the luma component is equal to 1. When the color format is 4:2:0, SubHeightC of the chroma component is equal to 2.
[0624] 28. It is proposed that the integer part of the horizontal coordinate of the reference sample can be clipped to [minW, maxW]. Assume that the width and height of the consistency window of the reference picture are denoted by W and H respectively. The width and height of the consistency window of the reference picture are denoted by W' and H' respectively. The upper left position of the consistency window in the reference picture is denoted by (X0, Y0).
[0625] a. In one example, minW is equal to 0.
[0626] b. In one example, minW is equal to X0.
[0627] c. In one example, maxW is equal to W-1.
[0628] d. In one example, maxW is equal to W'-1.
[0629] e. In one example, maxW is equal to X0+W'-1.
[0630] f. In one example, minW and / or maxW may be modified based on color format and / or color components.
[0631] i. For example, modify minW to minW*SubC.
[0632] ii. For example, change minW to minW / SubC.
[0633] iii. For example, modify maxW to maxW*SubC.
[0634] iv. For example, modify maxW to maxW / SubC.
[0635] v. In one example, SubC of the luma component is equal to 1.
[0636] vi. In one example, when the color format is 4:2:0, the SubC of the chroma component is equal to 2.
[0637] vii. In one example, when the color format is 4:2:2, SubC of the chroma component is equal to 2.
[0638] viii. In one example, when the color format is 4:4:4, SubC of the chroma component is equal to 1.
[0639] g. In one example, whether and / or how to perform clipping may depend on the dimensions of the current picture (or the consistency window therein) and the dimensions of the reference picture (or the consistency window therein).
[0640] i. In one example, clipping is performed only when the dimensions of the current picture (or a consistency window therein) are different from the dimensions of the reference picture (or a consistency window therein).
[0641] 29. It is proposed that the integer part of the vertical coordinate of the reference sample can be clipped to [minH, maxH]. Assume that the width and height of the consistency window of the reference picture are denoted by W and H respectively. The width and height of the consistency window of the reference picture are denoted by W' and H'. The upper left position of the consistency window in the reference picture is denoted by (X0, Y0).
[0642] a. In one example, minH is equal to 0.
[0643] b. In one example, minH is equal to Y0.
[0644] c. In one example, maxH is equal to H-1.
[0645] d. In one example, maxH is equal to H'-1.
[0646] e. In one example, maxH is equal to Y0+H'-1.
[0647] f. In one example, minH and / or
[0648] maxH.
[0649] i. For example, modify minH to minH*SubC.
[0650] ii. For example, change minH to minH / SubC.
[0651] iii. For example, modify maxH to maxH*SubC.
[0652] iv. For example, modify maxH to maxH / SubC.
[0653] v. In one example, SubC of the luma component is equal to 1.
[0654] vi. In one example, when the color format is 4:2:0, the SubC of the chroma component is equal to 2.
[0655] vii. In one example, when the color format is 4:2:2, SubC of the chroma component is equal to 1.
[0656] viii. In one example, when the color format is 4:4:4, SubC of the chroma component is equal to 1.
[0657] g. In one example, whether and / or how to perform clipping may depend on the dimensions of the current picture (or the consistency window therein) and the dimensions of the reference picture (or the consistency window therein).
[0658] i. In one example, clipping is performed only when the dimensions of the current picture (or a consistency window therein) are different from the dimensions of the reference picture (or a consistency window therein).
[0659] In the following discussion, a first syntax element is asserted to "correspond to" a second syntax element if the two syntax elements have equivalent functionality but may be signaled at different video units (eg, VPS / SPS / PPS / slice header / picture header, etc.).
[0660] 30. It is proposed that a syntax element may be signaled in a first video unit (eg, a picture header or PPS), and the corresponding syntax element may not be signaled in a second video unit at a higher level (such as an SPS) or a lower level (such as a slice header).
[0661] a. Alternatively, a first syntax element may be signaled in a first video unit (eg, a picture header or PPS) and a corresponding second syntax element may be signaled in a second video unit at a lower level (such as a slice header).
[0662] i. Alternatively, an indicator may be signaled in the second video unit to inform whether the second syntax element is signaled thereafter.
[0663] ii. In one example, if a second syntax element is signaled, a slice (such as a slice header) associated with the second video unit may follow the indication of the second syntax element instead of the indication of the first syntax element.
[0664] iii. An indicator associated with the first syntax element may be signaled in the first video unit to notify whether the second syntax element is signaled in any slice (or other video unit) associated with the first video unit.
[0665] b. Alternatively, the first syntax element may be signaled at a higher level (such as VPS / SPS / PPS) in the first video unit, and the corresponding second syntax element may be signaled in the second video unit (such as a picture header).
[0666] i. Alternatively, an indicator may be signaled to inform whether a second syntax element is signaled thereafter.
[0667] ii. In one example, if the second video unit is signaled, the pictures associated with the second video unit (which may be partitioned into slices) may follow the indication of the second syntax element instead of the indication of the first syntax element.
[0668] c. The first syntax element in the picture header may have the same functionality as the second syntax element in the slice header as specified in section 2.6 (such as but not limited to slice_temporal_mvp_enabled_flag, cabac_init_flag, six_minus_max_num_merge_cand, five_minus_max_num_subblock_merge_cand, slice_fpel_mmvd_enabled_flag, slice_disable_bdof_dmvr_flag, max_num_merge_cand_minus_max_num_triangle_cand, slice_fpel_mmvd_enabled_flag, slice_six_minus_max_num_ibc_merge_cand, slice_joint_cbcr_sign_flag, slice_qp_delta, ...), but controls all slices of the picture.
[0669] d. The first syntax element in the SPS as specified in section 2.6 may have the same functionality as the second syntax element in the picture header (such as but not limited to sps_bdof_dmvr_slice_present_flag, sps_mmvd_enabled_flag, sps_isp_enabled_flag, sps_mrl_enabled_flag, sps_mip_enabled_flag, sps_cclm_enabled_flag, sps_mts_enabled_flag…), but only controls the associated picture (which may be partitioned into slices).
[0670] e. The first syntax element in the PPS as specified in section 2.7 may have the same functionality as the second syntax element in the picture header (such as but not limited to entropy_coding_sync_enabled_flag, entry_point_offsets_present_flag, cabac_init_present_flag, rpl1_idx_present_flag, ...), but only controls the associated picture (which may be partitioned into slices).
[0671] 31. In the present disclosure (bullet 1-bullet 29), the term "consistency window" may be replaced by other terms such as "scaling window". The scaling window may be signaled differently from the consistency window and used to derive a scaling ratio and / or an upper left offset, which is used to derive a reference sample position for the RPR.
[0672] a. In one example, the scaling window may be constrained by a consistency window. For example, in a conforming bitstream, the scaling window must be contained by the consistency window.
[0673] 32. Whether and / or how the allowed maximum block size for transform skip codec blocks is signaled may depend on the maximum block size for transform codec blocks.
[0674] a. Alternatively, in a conforming bitstream, the maximum block size for transform skip codec blocks cannot be larger than the maximum block size for transform codec blocks.
[0675] 33. Whether and how to signal an indication (such as sps_joint_cbcr_enabled_flag) that joint Cb-Cr residual (JCCR) codec is enabled may depend on the color format (such as 4:0:0, 4:2:0, etc.).
[0676] a. For example, if the color format is 4:0:0, the indication of enabling the joint Cb-Cr residual (JCCR) may not be signaled. An exemplary syntax design is as follows:
[0677] <![CDATA[ if (ChromaArrayType!= 0) ]]> sps_joint_cbcr_enabled_flag u(1)
[0678] Downsampling filter type used for chroma blending mask generation in TPM / GEO
[0679] 34. The downsampling filter type used for weight derivation of mixed chroma samples can be signaled at video unit level (such as SPS / VPS / PPS / picture header / sub-picture / slice / slice header / slice / brick / CTU / VPDU level).
[0680] a. In one example, a high level flag may be signaled to switch between different chroma format types for content.
[0681] i. In one example, a high level flag may be signaled to switch between chroma format type 0 and chroma format type 2.
[0682] ii. In one example, a flag may be signaled to specify whether the luma weights of the left upper and lower samples in TPM / GEO prediction mode are co-located with the upper left luma weight (ie, chroma sample location type 0).
[0683] iii. In one example, a notification flag may be signaled to specify whether the luma samples of the left upper and lower samples in TPM / GEO prediction mode are co-located horizontally with the upper left luma sample, but are vertically shifted by 0.5 units of the luma sample relative to the upper left luma sample (i.e., chroma sample position type 2).
[0684] b. In one example, the downsampling filter type may be signaled for a 4:2:0 chroma format and / or a 4:2:2 chroma format.
[0685] c. In one example, a flag may be signaled to specify the chroma downsampling filter type for TPM / GEO prediction.
[0686] i. In one example, a flag may be signaled to use downsampling filter A or downsampling filter B for chroma weight derivation in TPM / GEO prediction mode.
[0687] 35. The downsampling filter type for mixing weight derivation of chroma samples can be derived at video unit level (such as SPS / VPS / PPS / picture header / sub-picture / slice / slice header / slice / brick / CTU / VPDU level).
[0688] a. In one example, a lookup table may be defined to specify the correspondence between the chroma subsampling filter type and the chroma format type of the content.
[0689] 36. In case of different chroma sample position types, the specified downsampling filter can be used for TPM / GEO prediction mode.
[0690] a. In one example, in the case of certain chroma sample location types (eg, chroma sample location type 0), the chroma weights of the TPM / GEO may be subsampled from the co-located top-left luma weight.
[0691] b. In one example, in the case of a certain chroma sample position type (e.g., chroma sample position type 0 or 2), a specified X-tap filter (X is a constant, such as X=6 or 5) can be used for chroma weight subsampling in TPM / GEO prediction mode.
[0692] 37. In a video unit (e.g., SPS, PPS, picture header, slice header, etc.), a first syntax element (such as a flag) may be signaled to indicate whether multiple transform selection (MTS) is disabled for all blocks (slices / pictures). MTS is based on the selection of a transform among multiple transforms to maximize the rate-distortion cost.
[0693] a. A second syntax element indicating how to apply MTS (such as enabling MTS / disabling MTS / implicit MTS / explicit MTS) on an intra-frame coded block (slice / picture) is conditionally signaled on the first syntax element. For example, the second syntax element is signaled only when the first syntax element indicates that MTS is not disabled for all blocks (slices / pictures).
[0694] b. A third syntax element indicating how to apply MTS on an inter-coded block (slice / picture) (such as enabling MTS / disabling MTS / implicit MTS / explicit MTS) is conditionally signaled on the first syntax element. For example, the third syntax element is signaled only when the first syntax element indicates that MTS is not disabled for all blocks (slices / pictures).
[0695] c. The exemplary grammar design is as follows
[0696]
[0697] d. The third syntax element may be conditionally signaled based on whether sub-block transform (SBT) is applied. An exemplary syntax design is as follows
[0698]
[0699] e. The exemplary grammar design is as follows
[0700]
[0701] 5. Additional Embodiments
[0702] In the following, text changes are shown in underlined bold italic font.
[0703] 5.1 Example of Constraints on Consistency Windows
[0704] conf_win_left_offset, conf_win_right_offset, conf_win_top_offset, and conf_win_bottom_offset specify the samples of the picture in the CVS that are output from the decoding process according to the rectangular area for output specified in picture coordinates. When conformance_window_flag is equal to 0, the values of conf_win_left_offset, conf_win_right_offset, conf_win_top_offset, and conf_win_bottom_offset are inferred to be equal to 0.
[0705] The consistent cropping window contains luma samples, where the horizontal picture coordinate is from SubWidthC*conf_win_left_offset to pic_width_in_luma_samples-(SubWidthC*conf_win_right_offset+1) and the vertical picture coordinate is from SubHeightC*conf_win_top_offset to pic_height_in_luma_samples-(SubHeightC*conf_win_bottom_offset+1), inclusive.
[0706] The value of SubWidthC*(conf_win_left_offset+conf_win_right_offset) should be less than pic_width_in_luma_samples, and the value of SubHeightC*(conf_win_top_offset+conf_win_bottom_offset) should be less than pic_height_in_luma_samples.
[0707] The variables PicOutputWidthL and PicOutputHeightL are derived as follows:
[0708] PicOutputWidthL=pic_width_in_luma_samples- (7-43)
[0709] SubWidthC*(conf_win_right_offset+conf_win_left_offset)
[0710] PicOutputHeightL=pic_height_in_pic_size_units- (7-44)
[0711] SubHeightC*(conf_win_bottom_offset+conf_win_top_offset)
[0712] When ChromaArrayType is not equal to 0, the corresponding specified samples of the two chroma arrays are samples with picture coordinates (x / SubWidthC, y / SubHeightC), where (x, y) are the picture coordinates of the specified luma sample.
[0713]
[0714] 5.2 Example 1 of deriving reference sample point positions
[0715] 8.5.6.3.1 Overview
[0716] …
[0717] The variable fRefWidth is set equal to PicOutputWidthL of the reference picture in luma samples.
[0718] The variable fRefHeight is set equal to PicOutputHeightL of the reference picture in luma samples.
[0719]
[0720] The motion vector mvLX is set equal to (refMvLX-mvOffset).
[0721] – If cIdx is equal to 0, the following conditions apply:
[0722] –The scaling factor and its fixed-point representation are defined as
[0723] hori_scale_fp=((fRefWidth<<14)+(PicOutputWidthL>>1)) / PicOutputWidthL(8-753)
[0724] vert_scale_fp=((fRefHeight<<14)+(PicOutputHeightL>>1)) / PicOutputHeightL (8-754)
[0725] – Assume that (xIntL, yIntL) is the luma position given in full sample units and (xFracL, yFracL) is the offset given in 1 / 16 sample units. These variables are used only in this clause to specify fractional sample positions within the reference sample array refPicLX.
[0726] – The upper left coordinate of the boundary block filled with reference samples (xSbInt L ,ySbInt L ) is set equal to (xSb+(mvLX[0]>>4), ySb+(mvLX[1]>>4)).
[0727] – For each luma sample position (x L =0..sbWidth-1+brdExtSize,y L =0..sbHeight-1+brdExtSize), the corresponding predicted brightness sample value predSamplesLX[x L ][y L ] is exported as follows:
[0728] – Assumption (refxSb L ,refySb L ) and (refx L ,refy L ) is the luminance position pointed to by the motion vector (refMvLX[0], refMvLX[1]) given in units of 1 / 16 samples. The variable refxSb L ,refx L 、refySb L and refy L The export is as follows:
[0729]
[0730] refx L =((Sign(refxSb)*((Abs(refxSb)+128)>>8)+x L *((hori_scale_fp+8)>>4))+32)>>6 (8-756)
[0731]
[0732] refy L =((Sign(refySb)*((Abs(refySb)+128)>>8)+yL*((vert_scale_fp+8)>>4))+32)>>6 (8-758)
[0733]
[0734] – Variable xInt L ,yInt L ,xFrac L and yFrac L The export is as follows:
[0735] xInt L =refx L >>4 (8-759)
[0736] yInt L =refy L >>4 (8-760)
[0737] xFrac L =refx L &15 (8-761)
[0738] yFrac L =refy L &15 (8-762)
[0739] – If bdofFlag is equal to true (TRUE) or (sps_affine_prof_enabled_flag is equal to true and inter_affine_flag[xSb][ySb] is equal to true), and one or more of the following conditions are true, the predicted luma sample value predSamplesLX[xSb][ySb] is L ][y L ] is derived by invoking the luma integer sample extraction process specified in clause 8.5.6.3.3, where (xInt L +(xFrac L >>3)-1),yInt L +(yFrac L >>3)-1) and refPicLX as input.
[0740] –x L is equal to 0.
[0741] –x L Equal to sbWidth+1.
[0742] –yL is equal to 0.
[0743] –y L Equal to sbHeight+1.
[0744] – Otherwise, the predicted luma sample values predSamplesLX[xL][yL] are derived by invoking the luma sample 8-tap interpolation filtering process as specified in clause 8.5.6.3.2, where (xIntL - (brdExtSize > 0? 1:0), yIntL - (brdExtSize > 0? 1:0)),
[0745] (xFracL,yFracL), (xSbInt L ,ySbInt L ), refPicLX, hpelIfIdx, sbWidth, sbHeight and (xSb, ySb) as input.
[0746] – Otherwise (cIdx is not equal to 0), the following conditions apply:
[0747] – Assume that (xIntC, yIntC) are chroma positions given in full sample units and (xFracC, yFracC) are offsets given in 1 / 32 sample units. These variables are used only in this clause to specify regular fractional sample positions within the reference sample array refPicLX.
[0748] – The upper left coordinate (xSbIntC, ySbIntC) of the reference sample filled boundary block is set equal to ((xSb / SubWidthC)+(mvLX[0]>>5), (ySb / SubHeightC)+(mvLX[1]>>5)).
[0749] – For each chroma sample position (xC = 0..sbWidth-1, yC = 0..sbHeight-1) in the predicted chroma sample array predSamplesLX, the corresponding predicted chroma sample value predSamplesLX[xC][yC] is derived as follows:
[0750] – Assumption (refxSb C ,refySb C ) and (refx C ,refy C ) is the chroma position pointed to by the motion vector (mvLX[0], mvLX[1]) given in units of 1 / 32 samples. The variable refxSb C ,refySb C ,refx Cand refy C The export is as follows:
[0751]
[0752] refx C =((Sign(refxSb C )*((Abs(refxSb C )+256)>>9)+xC*((hori_scale_fp+8)>>4))+16)>>5(8-764)
[0753]
[0754] refy C =((Sign(refySb C )*((Abs(refySb C )+256)>>9)+yC*((vert_scale_fp+8)>>4))+16)>>5 (8-766)
[0755]
[0756] – Variable xInt C ,yInt C 、xFrac C and yFrac C The export is as follows:
[0757] xInt C =refx C >>5 (8-767)
[0758] yInt C =refy C >>5 (8-768)
[0759] xFrac C =refy C &31 (8-769)
[0760] yFrac C =refy C &31 (8-770)
[0761] 5.3 Example 2 of deriving reference sample point positions
[0762] 8.5.6.3.1 Overview
[0763] …
[0764] The variable fRefWidth is set equal to PicOutputWidthL of the reference picture in luma samples.
[0765] The variable fRefHeight is set equal to PicOutputHeightL of the reference picture in luma samples.
[0766]
[0767] The motion vector mvLX is set equal to (refMvLX-mvOffset).
[0768] – If cIdx is equal to 0, the following conditions apply:
[0769] –The scaling factor and its fixed-point representation are defined as
[0770] hori_scale_fp=((fRefWidth<<14)+(PicOutputWidthL>>1)) / PicOutputWidthL(8-753)
[0771] vert_scale_fp=((fRefHeight<<14)+(PicOutputHeightL>>1)) / PicOutputHeightL (8-754)
[0772] – Assume that (xIntL, yIntL) is the luma position given in full sample units and (xFracL, yFracL) is the offset given in 1 / 16 sample units. These variables are used only in this clause to specify fractional sample positions within the reference sample array refPicLX.
[0773] – The upper left coordinate of the boundary block filled with reference samples (xSbInt L ,ySbInt L ) is set equal to (xSb+(mvLX[0]>>4), ySb+(mvLX[1]>>4)).
[0774] – For each luma sample position (x L =0..sbWidth-1+brdExtSize,y L =0..sbHeight-1+brdExtSize), the corresponding predicted brightness sample value predSamplesLX[x L ][y L ] is exported as follows:
[0775] – Assumption (refxSbL ,refySb L ) and (refx L ,refy L ) is the luminance position pointed to by the motion vector (refMvLX[0], refMvLX[1]) given in units of 1 / 16 samples. The variable refxSb L ,refx L 、refySb L and refy L The export is as follows:
[0776]
[0777]
[0778]
[0779]
[0780] – Variable xInt L ,yInt L ,xFrac L and yFrac L The export is as follows:
[0781] xInt L =refx L >>4 (8-759)
[0782] yInt L =refy L >>4 (8-760)
[0783] xFrac L =refx L &15 (8-761)
[0784] yFrac L =refy L &15 (8-762)
[0785] – If bdofFlag is true or (sps_affine_prof_enabled_flag is true and inter_affine_flag[xSb][ySb] is true), and one or more of the following conditions are true, then the predicted luma sample values predSamplesLX[xSb][ySb] are L ][y L ] is derived by invoking the luma integer sample extraction process as specified in clause 8.5.6.3.3, where (xInt L +(xFracL >>3)-1),yInt L +(yFrac L >>3)-1) and refPicLX as input.
[0786] -x L is equal to 0.
[0787] -x L Equal to sbWidth+1.
[0788] -y L is equal to 0.
[0789] -y L Equal to sbHeight+1.
[0790] – Otherwise, the predicted luma sample values predSamplesLX[xL][yL] are derived by invoking the luma sample 8-tap interpolation filtering process as specified in clause 8.5.6.3.2, where (xIntL - (brdExtSize > 0? 1:0), yIntL - (brdExtSize > 0? 1:0)), (xFracL, yFracL), (xSbInt L ,ySbInt L ), refPicLX, hpelIfIdx, sbWidth, sbHeight and (xSb, ySb) as input.
[0791] - Otherwise (cIdx is not equal to 0), the following conditions apply:
[0792] – Assume that (xIntC, yIntC) are chroma positions given in full sample units and (xFracC, yFracC) are offsets given in 1 / 32 sample units. These variables are used only in this clause to specify regular fractional sample positions within the reference sample array refPicLX.
[0793] – The upper left coordinate (xSbIntC, ySbIntC) of the border block filled with the reference sample is set equal to ((xSb / SubWidthC)+(mvLX[0]>>5), (ySb / SubHeightC)
[0794] +(mvLX[1]>>5)).
[0795] – For each chroma sample position in the predicted chroma sample array predSamplesLX (xC = 0..sbWidth-1, yC = 0..sbHeight-1), the corresponding predicted chroma sample
[0796] The point value predSamplesLX[xC][yC] is derived as follows:
[0797] – Assumption (refxSb C ,refySb C ) and (refx C ,refy C ) is the chroma position pointed to by the motion vector (mvLX[0], mvLX[1]) given in units of 1 / 32 samples. The variable refxSb C 、refySb C ,refx C and refy C The export is as follows:
[0798]
[0799] refx C =((Sign(refxSb C )*((Abs(refxSb C )+256)>>9)+xC*((hori_scale_fp+8)>>4))+16)>>5 (8-764)
[0800]
[0801] refy C =((Sign(refySb C )*((Abs(refySb C )+256)>>9)+yC*((vert_scale_fp+8)>>4))+16)>>5 (8-766)
[0802]
[0803] -Variable xInt C ,yInt C 、xFrac C and yFrac C The export is as follows:
[0804] xInt C =refx C >>5 (8-767)
[0805] yInt C =refy C >>5 (8-768)
[0806] xFrac C =refy C &31 (8-769)
[0807] yFrac C =refy C &31 (8-770)
[0808] 5.4 Example 3 of deriving reference sample point positions
[0809] 8.5.6.3.1 Overview
[0810] …
[0811] The variable fRefWidth is set equal to PicOutputWidthL of the reference picture in luma samples.
[0812] The variable fRefHeight is set equal to PicOutputHeightL of the reference picture in luma samples.
[0813]
[0814] The motion vector mvLX is set equal to (refMvLX-mvOffset).
[0815] – If cIdx is equal to 0, the following conditions apply:
[0816] –The scaling factor and its fixed-point representation are defined as
[0817] hori_scale_fp=((fRefWidth<<14)+(PicOutputWidthL>>1)) / PicOutputWidthL(8-753)
[0818] vert_scale_fp=((fRefHeight<<14)+(PicOutputHeightL>>1)) / PicOutputHeightL (8-754)
[0819] – Assume that (xIntL, yIntL) is the luma position given in full sample units and (xFracL, yFracL) is the offset given in 1 / 16 sample units. These variables are used only in this clause to specify fractional sample positions within the reference sample array refPicLX.
[0820] – The upper left coordinate of the boundary block filled with reference samples (xSbInt L ,ySbInt L ) is set equal to (xSb+(mvLX[0]>>4), ySb+(mvLX[1]>>4)).
[0821] – For each luma sample position (x L =0..sbWidth-1+brdExtSize,y L =0..sbHeight-1+brdExtSize), the corresponding predicted brightness sample value predSamplesLX[x L ][y L ] is exported as follows:
[0822] – Assumption (refxSb L ,refySb L ) and (refx L ,refy L ) is the luminance position pointed to by the motion vector (refMvLX[0], refMvLX[1]) given in units of 1 / 16 samples. The variable refxSb L ,refx L 、refySb L and refy L The export is as follows:
[0823]
[0824]
[0825]
[0826]
[0827] – Variable xInt L ,yInt L 、xFrac L and yFrac L The export is as follows:
[0828] xInt L =refx L >>4 (8-759)
[0829] yInt L =refy L >>4 (8-760)
[0830] xFrac L =refx L &15 (8-761)
[0831] yFrac L =refy L &15 (8-762)
[0832] – If bdofFlag is true or (sps_affine_prof_enabled_flag is true and inter_affine_flag[xSb][ySb] is true), and one or more of the following conditions are true, then the predicted luma sample values predSamplesLX[xSb][ySb] are L ][y L ] is derived by invoking the luma integer sample extraction process as specified in clause 8.5.6.3.3, where
[0833] (xInt L +(xFrac L >>3)-1),yInt L +(yFrac L >>3)-1) and refPicLX as input.
[0834] –x L is equal to 0.
[0835] –x L Equal to sbWidth+1.
[0836] –y L is equal to 0.
[0837] –y L Equal to sbHeight+1.
[0838] – Otherwise, the predicted luma sample values predSamplesLX[xL][yL] are derived by invoking the luma sample 8-tap interpolation filtering process as specified in clause 8.5.6.3.2, where (xIntL - (brdExtSize > 0? 1:0), yIntL - (brdExtSize > 0? 1:0)), (xFracL, yFracL), (xSbInt L ,ySbInt L ), refPicLX, hpelIfIdx, sbWidth, sbHeight and (xSb, ySb) as input.
[0839] – Otherwise (cIdx is not equal to 0), the following conditions apply:
[0840] – Assume that (xIntC, yIntC) are chroma positions given in full sample units and (xFracC, yFracC) are offsets given in 1 / 32 sample units. These variables are used only in this clause to specify regular fractional sample positions within the reference sample array refPicLX.
[0841] – The upper left coordinate (xSbIntC, ySbIntC) of the reference sample filled boundary block is set equal to ((xSb / SubWidthC)+(mvLX[0]>>5), (ySb / SubHeightC)+(mvLX[1]>>5)).
[0842] – For each chroma sample position (xC = 0..sbWidth-1, yC = 0..sbHeight-1) in the predicted chroma sample array predSamplesLX, the corresponding predicted chroma sample value predSamplesLX[xC][yC] is derived as follows:
[0843] – Assumption (refxSb C ,refySb C ) and (refx C ,refy C ) is the chroma position pointed to by the motion vector (mvLX[0], mvLX[1]) given in units of 1 / 32 samples. The variable refxSb C 、refySb C ,refx C and refy C The export is as follows:
[0844]
[0845]
[0846]
[0847]
[0848] – Variable xInt C ,yInt C 、xFrac C and yFrac C The export is as follows:
[0849] xInt C =refx C >>5 (8-767)
[0850] yInt C =refy C >>5 (8-768)
[0851] xFrac C =refy C &31 (8-769)
[0852] yFrac C =refyC &31 (8-770)
[0853] 5.5 Example 1 of limiting the reference sample point position
[0854] 8.5.6.3.1 Overview
[0855] The inputs to this process are:
[0856] – Luma position (xSb, ySb), specifies the top left sample of the current codec subblock relative to the top left luma sample of the current picture,
[0857] –Variable sbWidth specifies the width of the current codec sub-block.
[0858] –Variable sbHeight specifies the height of the current codec sub-block.
[0859] – motion vector offset mvOffset,
[0860] – the refined motion vector refMvLX,
[0861] – Select the reference picture sample array refPicLX,
[0862] – Half-sample interpolation filter index hpelIfIdx,
[0863] – bidirectional optical flow flag bdofFlag,
[0864] –Variable cIdx, specifies the color component index of the current block.
[0865] The output of this process is:
[0866] – predSamplesLX, an array of (sbWidth+brdExtSize)x(sbHeight+brdExtSize) predicted sample values.
[0867] The prediction block boundary extension size brdExtSize is derived as follows:
[0868] brdExtSize=(bdofFlag||(inter_affine_flag[xSb][ySb]&&sps_affine_prof_enabled_flag))? 2:0 (8-752)
[0869] The variable fRefWidth is set equal to PicOutputWidthL of the reference picture in luma samples.
[0870] The variable fRefHeight is set equal to PicOutputHeightL of the reference picture in luma samples.
[0871] The motion vector mvLX is set equal to (refMvLX-mvOffset).
[0872] – If cIdx is equal to 0, the following conditions apply:
[0873] –The scaling factor and its fixed-point representation are defined as
[0874] hori_scale_fp=((fRefWidth<<14)+(PicOutputWidthL>>1)) / PicOutputWidthL(8-753)
[0875] vert_scale_fp=((fRefHeight<<14)+(PicOutputHeightL>>1)) / PicOutputHeightL (8-754)
[0876] – Assume that (xIntL, yIntL) is the luma position given in full sample units and (xFracL, yFracL) is the offset given in 1 / 16 sample units. These variables are used only in this clause to specify fractional sample positions within the reference sample array refPicLX.
[0877] – The upper left coordinate of the boundary block filled with reference samples (xSbInt L ,ySbInt L ) is set equal to (xSb+(mvLX[0]>>4), ySb+(mvLX[1]>>4)).
[0878] – For each luma sample position (x L =0..sbWidth-1+brdExtSize,y L =0..sbHeight-1+brdExtSize), the corresponding predicted brightness sample value predSamplesLX[x L ][y L ] is exported as follows:
[0879] – Assumption (refxSb L ,refySb L ) and (refx L ,refy L) is the luminance position pointed to by the motion vector (refMvLX[0], refMvLX[1]) given in units of 1 / 16 samples. The variable refxSb L ,refx L 、refySb L and refy L The export is as follows:
[0880] sbX L =((xSb<<4)+refMvLX[0])*hori_scale_fp (8-755)
[0881] refx L =((Sign(refxSb)*((Abs(refxSb)+128)>>8)+x L *((hori_scale_fp+8)>>4))+32)>>6 (8-756)
[0882] sb L =((ySb<<4)+refMvLX[1])*vert_scale_fp (8-757)
[0883] refyL=((Sign(refySb)*((Abs(refySb)+128)>>8)+yL*((vert_scale_fp+8)>>4))+32)>>6 (8-758)
[0884] – Variable xInt L ,yInt L 、xFrac L and yFrac L The export is as follows:
[0885]
[0886]
[0887] xFrac L =refx L &15 (8-761)
[0888] yFrac L =refy L &15 (8-762)
[0889] – If bdofFlag is true or (sps_affine_prof_enabled_flag is true and inter_affine_flag[xSb][ySb] is true), and one or more of the following conditions are true, then the predicted luma sample values predSamplesLX[xSb][ySb] are L ][y L ] is derived by invoking the luma integer sample extraction process as specified in clause 8.5.6.3.3, where (xInt L +(xFrac L >>3)-1),yInt L +(yFrac L >>3)-1) and refPicLX as input.
[0890] –x L is equal to 0.
[0891] –x L Equal to sbWidth+1.
[0892] –y L is equal to 0.
[0893] –y L Equal to sbHeight+1.
[0894] – Otherwise, the predicted luma sample values predSamplesLX[xL][yL] are derived by invoking the luma sample 8-tap interpolation filtering process as specified in clause 8.5.6.3.2, where (xIntL - (brdExtSize > 0? 1:0), yIntL - (brdExtSize > 0? 1:0)), (xFracL, yFracL), (xSbInt L ,ySbInt L ), refPicLX, hpelIfIdx, sbWidth, sbHeight and (xSb, ySb) as input.
[0895] – Otherwise (cIdx is not equal to 0), the following conditions apply:
[0896] – Assume that (xIntC, yIntC) are chroma positions given in full sample units and (xFracC, yFracC) are offsets given in 1 / 32 sample units. These variables are used only in this clause to specify regular fractional sample positions within the reference sample array refPicLX.
[0897] – The upper left coordinate (xSbIntC, ySbIntC) of the reference sample filled boundary block is set equal to ((xSb / SubWidthC)+(mvLX[0]>>5), (ySb / SubHeightC)+(mvLX[1]>>5)).
[0898] – For each chroma sample position in the predicted chroma sample array predSamplesLX (xC = 0..sbWidth-1, yC = 0..sbHeight-1), the corresponding predicted chroma sample
[0899] The point value predSamplesLX[xC][yC] is derived as follows:
[0900] – Assumption (refxSb C ,refySb C ) and (refx C ,refy C ) is the chroma position pointed to by the motion vector (mvLX[0], mvLX[1]) given in units of 1 / 32 samples. The variable refxSb C 、refySb C ,refx C and refy C The export is as follows:
[0901] sbX C =((xSb / SubWidthC<<5)+mvLX[0])*hori_scale_fp (8-763)
[0902] refx C =((Sign(refxSb C )*((Abs(refxSb C )+256)>>9)+xC*((hori_scale_fp+8)>>4))+16)>>5 (8-764)
[0903] sb C =((ySb / SubHeightC<<5)+mvLX[1])*vert_scale_fp (8-765)
[0904] refy C =((Sign(refySb C )*((Abs(refySb C )+256)>>9)+yC*((vert_scale_fp+8)>>4))+16)>>5 (8-766)
[0905] – Variable xInt C ,yInt C 、xFrac C and yFrac C The export is as follows:
[0906]
[0907]
[0908] xFrac C =refy C &31 (8-769)
[0909] yFrac C =refy C &31 (8-770)
[0910] – The predicted sample values predSamplesLX[xC][yC] are derived by calling the procedure specified in clause 8.5.6.3.4 with (xIntC, yIntC), (xFracC, yFracC), (xSbIntC, ySbIntC), sbWidth, sbHeight and refPicLX as input.
[0911] 5.6 Example 2 of limiting the reference sample point position
[0912] 8.5.6.3.1 Overview
[0913] The inputs to this process are:
[0914] – Luma position (xSb, ySb), specifies the top left sample of the current codec subblock relative to the top left luma sample of the current picture,
[0915] –Variable sbWidth specifies the width of the current codec sub-block.
[0916] –Variable sbHeight specifies the height of the current codec sub-block.
[0917] – motion vector offset mvOffset,
[0918] – the refined motion vector refMvLX,
[0919] – Select the reference picture sample array refPicLX,
[0920] – Half-sample interpolation filter index hpelIfIdx,
[0921] – bidirectional optical flow flag bdofFlag,
[0922] –Variable cIdx, specifies the color component index of the current block.
[0923] The output of this process is:
[0924] – predSamplesLX, an array of (sbWidth+brdExtSize)x(sbHeight+brdExtSize) predicted sample values.
[0925] The prediction block boundary extension size brdExtSize is derived as follows:
[0926] brdExtSize=(bdofFlag||(inter_affine_flag[xSb][ySb]&&sps_affine_prof_enabled_flag))? 2:0 (8-752)
[0927] The variable fRefWidth is set equal to PicOutputWidthL of the reference picture in luma samples.
[0928] The variable fRefHeight is set equal to PicOutputHeightL of the reference picture in luma samples.
[0929]
[0930] The motion vector mvLX is set equal to (refMvLX-mvOffset).
[0931] – If cIdx is equal to 0, the following conditions apply:
[0932] –The scaling factor and its fixed-point representation are defined as
[0933] hori_scale_fp=((fRefWidth<<14)+(PicOutputWidthL>>1)) / PicOutputWidthL(8-753)
[0934] vert_scale_fp=((fRefHeight<<14)+(PicOutputHeightL>>1)) / PicOutputHeightL (8-754)
[0935] – Assume that (xIntL, yIntL) is the luma position given in full sample units and (xFracL, yFracL) is the offset given in 1 / 16 sample units. These variables are used only in this clause to specify fractional sample positions within the reference sample array refPicLX.
[0936] – The upper left coordinate of the boundary block filled with reference samples (xSbInt L ,ySbInt L ) is set equal to (xSb+(mvLX[0]>>4), ySb+(mvLX[1]>>4)).
[0937] – For each luma sample position (x L =0..sbWidth-1+brdExtSize,y L =0..sbHeight-1+brdExtSize), the corresponding predicted brightness sample value predSamplesLX[x L ][y L ] is exported as follows:
[0938] – Assumption (refxSb L ,refySb L ) and (refx L ,refy L ) is the luminance position pointed to by the motion vector (refMvLX[0], refMvLX[1]) given in units of 1 / 16 samples. The variable refxSb L ,refx L 、refySb L and refy L The export is as follows:
[0939] sbX L =((xSb<<4)+refMvLX[0])*hori_scale_fp (8-755)
[0940] refx L =((Sign(refxSb)*((Abs(refxSb)+128)>>8)+x L *((hori_scale_fp+8)>>4))+32)>>6 (8-756)
[0941] sb L =((ySb<<4)+refMvLX[1])*vert_scale_fp (8-757)
[0942] refyL=((Sign(refySb)*((Abs(refySb)+128)>>8)+yL*((vert_scale_fp+8)>>4))+32)>>6 (8-758)
[0943] – Variable xInt L ,yInt L 、xFrac L and yFrac L The export is as follows:
[0944]
[0945]
[0946] xFrac L =refx L &15 (8-761)
[0947] yFrac L =refy L &15 (8-762)
[0948] – If bdofFlag is true or (sps_affine_prof_enabled_flag is true and inter_affine_flag[xSb][ySb] is true), and one or more of the following conditions are true, then the predicted luma sample values predSamplesLX[xSb][ySb] are L ][y L ] is derived by invoking the luma integer sample extraction process as specified in clause 8.5.6.3.3, where (xInt L +(xFrac L >>3)-1),yInt L +(yFrac L >>3)-1) and refPicLX as input.
[0949] –x L is equal to 0.
[0950] –x L Equal to sbWidth+1.
[0951] –y L is equal to 0.
[0952] –y L Equal to sbHeight+1.
[0953] – Otherwise, the predicted luma sample values predSamplesLX[xL][yL] are derived by invoking the luma sample 8-tap interpolation filtering process as specified in clause 8.5.6.3.2, where (xIntL - (brdExtSize > 0? 1:0), yIntL - (brdExtSize > 0? 1:0)), (xFracL, yFracL), (xSbIntL ,ySbInt L ), refPicLX, hpelIfIdx, sbWidth, sbHeight and (xSb, ySb) as input.
[0954] – Otherwise (cIdx is not equal to 0), the following conditions apply:
[0955] – Assume that (xIntC, yIntC) are chroma positions given in full sample units and (xFracC, yFracC) are offsets given in 1 / 32 sample units. These variables are used only in this clause to specify regular fractional sample positions within the reference sample array refPicLX.
[0956] – The upper left coordinate (xSbIntC, ySbIntC) of the reference sample filled boundary block is set equal to ((xSb / SubWidthC)+(mvLX[0]>>5), (ySb / SubHeightC)+(mvLX[1]>>5)).
[0957] – For each chroma sample position in the predicted chroma sample array predSamplesLX (xC = 0..sbWidth-1, yC = 0..sbHeight-1), the corresponding predicted chroma sample
[0958] The point value predSamplesLX[xC][yC] is derived as follows:
[0959] – Assumption (refxSb C ,refySb C ) and (refx C ,refy C ) is the chroma position pointed to by the motion vector (mvLX[0], mvLX[1]) given in units of 1 / 32 samples. The variable refxSb C 、refySb C ,refx C and refy C The export is as follows:
[0960] sbX C =((xSb / SubWidthC<<5)+mvLX[0])*hori_scale_fp (8-763)
[0961] refx C =((Sign(refxSb C )*((Abs(refxSb C)+256)>>9)+xC*((hori_scale_fp+8)>>4))+16)>>5 (8-764)
[0962] sb C =((ySb / SubHeightC<<5)+mvLX[1])*vert_scale_fp (8-765)
[0963] refy C =((Sign(refySb C )*((Abs(refySb C )+256)>>9)+yC*((vert_scale_fp+8)>>4))+16)>>5 (8-766)
[0964] – Variable xInt C ,yInt C 、xFrac C and yFrac C The export is as follows:
[0965]
[0966]
[0967] xFrac C =refy C &31 (8-769)
[0968] yFrac C =refy C &31 (8-770)
[0969] – The predicted sample values predSamplesLX[xC][yC] are derived by calling the procedure specified in clause 8.5.6.3.4 with (xIntC, yIntC), (xFracC, yFracC), (xSbIntC, ySbIntC), sbWidth, sbHeight and refPicLX as input.
[0970] 6. Example Implementations of the Disclosed Technology
[0971] Figure 5is a block diagram of a video processing device 500. The device 500 can be used to implement one or more of the methods described herein. The device 500 can be embodied in a smartphone, a tablet computer, a computer, an Internet of Things (IoT) receiver, etc. The device 500 can include one or more processors 502, one or more memories 504, and video processing hardware 506. (Multiple) processors 502 can be configured to implement one or more methods described in this document. Memory (multiple memories) 504 can be used to store data and code for implementing the methods and techniques described herein. Video processing hardware 506 can be used to implement some of the techniques described in this document in hardware circuits, and can be partially or completely part of the processor 502 (e.g., a graphics processor core GPU or other signaling processing circuit).
[0972] In this document, the term "video processing" or codec may refer to video encoding, video decoding, video compression, or video decompression. For example, a video compression algorithm may be applied during conversion from a pixel representation of a video to a corresponding bitstream representation, or vice versa. As defined by the syntax, the bitstream representation of the current video block may correspond, for example, to bits that are co-located within the bitstream or to bits that are spread out in different locations within the bitstream. For example, encoding may be performed on a macroblock based on error residual values of a transform and codec and also using bits in the header and other fields in the bitstream.
[0973] It will be appreciated that the disclosed methods and techniques will benefit video encoder and / or video decoder embodiments incorporated within video processing devices, such as smartphones, laptops, desktop computers, and similar devices, by enabling use of the techniques disclosed in this document.
[0974] Figure 6 6 is a flow chart of an example method 600 of video processing. The method 600 includes, at 610, performing a conversion between a current video block and a codec representation of the current video block, wherein during the conversion, if a resolution and / or size of a reference picture is different from a resolution and / or size of the current video block, applying the same interpolation filter to a set of adjacent or non-adjacent samples predicted using the current video block.
[0975] Some embodiments may be described using the following clause-based format.
[0976] 1. A video processing method, comprising:
[0977] A conversion is performed between a current video block and a codec representation of the current video block, wherein during the conversion, if a resolution and / or size of a reference picture is different from a resolution and / or size of the current video block, a same interpolation filter is applied to a set of adjacent or non-adjacent samples predicted using the current video block.
[0978] 2. The method of clause 1, wherein the same interpolation filter is a vertical interpolation filter.
[0979] 3. The method of clause 1, wherein the same interpolation filter is a horizontal interpolation filter.
[0980] 4. The method of clause 1, wherein a set of adjacent or non-adjacent samples comprises all samples located in a region of the current video block.
[0981] 5. The method of clause 4, wherein the current video block is divided into a plurality of rectangles, each rectangle having a size of MXN.
[0982] 6. The method according to clause 5, wherein M and / or N are predetermined.
[0983] 7. The method of clause 5, wherein M and / or N are derived from the dimensions of the current video block.
[0984] 8. A method according to clause 5, wherein M and / or N are signalled in a codec representation of the current video block.
[0985] 9. A method as described in clause 1, wherein a group of samples share the same motion vector.
[0986] 10. The method of clause 9, wherein a group of samples share the same horizontal component and / or the same fractional part of the horizontal component.
[0987] 11. The method of clause 9, wherein a group of samples share the same vertical component and / or the same fractional part of a vertical component.
[0988] 12. A method according to any one or more of clauses 9 to 11, wherein the same motion vector or its components satisfy one or more rules based on at least one of the following: the resolution of the reference picture, the size of the reference picture, the resolution of the current video block, the size of the current video block or the precision value.
[0989] 13. A method according to any one or more of clauses 9 to 11, wherein the same motion vector or components thereof correspond to motion information of samples located in the current video block.
[0990] 14. A method according to any one or more of clauses 9 to 11, wherein the same motion vector or its components are set as motion information for virtual samples located inside or outside the group.
[0991] 15. A video processing method, comprising:
[0992] A conversion is performed between a current video block and a codec representation of the current video block, wherein during the conversion, if a resolution and / or size of a reference picture is different from a resolution and / or size of the current video block, only blocks predicted using the current video block are allowed to use integer-valued motion information related to the current block.
[0993] 16. The method of clause 15, wherein the integer-valued motion information is derived by rounding raw motion information for the current video block.
[0994] 17. The method of clause 15, wherein the original motion information of the current video block is in a horizontal direction and / or a vertical direction.
[0995] 18. A method for video processing, comprising:
[0996] A conversion is performed between a current video block and a codec representation of the current video block, wherein, during the conversion, if a resolution and / or size of a reference picture is different from a resolution and / or size of the current video block, an interpolation filter is applied to derive a block predicted using the current video block, and wherein the interpolation filter is selected based on a rule.
[0997] 19. A method according to clause 18, wherein the rule is related to the resolution and / or size of the reference picture relative to the resolution and / or size of the current video block.
[0998] 20. The method of clause 18, wherein the interpolation filter is a vertical interpolation filter.
[0999] 21. The method of clause 18, wherein the interpolation filter is a horizontal interpolation filter.
[1000] 22. The method of clause 18, wherein the interpolation filter is one of: a 1-tap filter, a bilinear filter, a 4-tap filter, or a 6-tap filter.
[1001] 23. A method according to clause 22, wherein an interpolation filter is used as part of the further steps of converting.
[1002] 24. The method of clause 18, wherein the interpolation filter comprises the use of padding samples.
[1003] 25. The method of clause 18, wherein use of the interpolation filter depends on the color components of the samples of the current video block.
[1004] 26. A method for video processing, comprising:
[1005] A conversion is performed between a current video block and a codec representation of the current video block, wherein during the conversion, if a resolution and / or size of a reference picture differs from a resolution and / or size of the current video block, a deblocking filter is selectively applied, wherein a strength of the deblocking filter is set according to a rule related to a resolution and / or size of the reference picture relative to a resolution and / or size of the current video block.
[1006] 27. The method of clause 27, wherein the strength of the deblocking filter varies from one video block to another.
[1007] 28. A method for video processing, comprising:
[1008] Converting between a current video block and a codec representation of the current video block is performed, wherein during the conversion, if a sub-picture of the current video block exists, the conforming bitstream satisfies rules related to the resolution and / or size of the reference picture relative to the resolution and / or size of the current video block.
[1009] 29. The method according to clause 28, further comprising
[1010] The current video block is divided into one or more sub-pictures, wherein the division depends at least on the resolution of the current video block.
[1011] 30. A method for video processing, comprising:
[1012] Converting between a current video block and a codec representation of the current video block is performed, wherein during the conversion, reference pictures of the current video block are resampled according to a rule based on a dimension of the current video block.
[1013] 31. A method for video processing, comprising:
[1014] A conversion is performed between a current video block and a codec representation of the current video block, wherein during the conversion, use of codec tools on the current video block is selectively enabled or disabled depending on a resolution / size of a reference picture of the current video block relative to a resolution / size of the current video block.
[1015] 32. A method according to one or more of the preceding clauses, wherein a set of samples is located within a consistency window.
[1016] 33. The method of clause 32, wherein the consistency window is rectangular in shape.
[1017] 34. A method according to any one or more of the preceding clauses, wherein the resolution is related to the resolution of the encoded / decoded video block or the resolution of a consistency window in the encoded / decoded video block.
[1018] 35. A method according to any one or more of the preceding clauses, wherein the size is related to the size of a coded / decoded video block or the size of a consistency window in a coded / decoded video block.
[1019] 36. A method according to any one or more of the preceding clauses, wherein the dimension is related to a dimension of a coded / decoded video block or a dimension of a consistency window in a coded / decoded video block.
[1020] 37. The method of clause 32, wherein the consistency window is defined by a set of consistency clipping window parameters.
[1021] 38. A method according to clause 37, wherein at least a part of the set of consistent cropping window parameters is signalled implicitly or explicitly in the codec representation.
[1022] 39. A method according to any one or more of the preceding clauses, wherein signalling of a set of consistent cropping window parameters in a codec representation is not allowed.
[1023] 40. A method according to any one or more of the preceding clauses, wherein the position of the reference samples is derived relative to the top left sample of the current video block in the consistency window.
[1024] 41. A method for video processing, comprising:
[1025] Converting between a plurality of video blocks and codec representations of the plurality of video blocks is performed, wherein, during the converting, a first consistency window is defined for the first video block and a second consistency window is defined for the second video block, and wherein a ratio of a width and / or height of the first consistency window to a width and / or height of the second consistency window complies with a rule based at least on a conforming bitstream.
[1026] 42. A video decoding device, comprising a processor configured to implement the method of any one or more of clauses 1 to 41.
[1027] 43. A video encoding device comprising a processor configured to implement the method of any one or more of clauses 1 to 41.
[1028] 44. A computer program product having computer code stored thereon, which code, when executed by a processor, causes the processor to implement the method of any one of clauses 1 to 41.
[1029] 45. The methods, apparatus, or systems described in this document.
[1030] Figure 7is a block diagram illustrating an example video processing system 700 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of system 700. System 700 may include an input 702 for receiving video content. The video content may be received in a raw or uncompressed format (e.g., 8 or 10 bit multi-component pixel values) or may be received in a compressed or encoded format. Input 702 may represent a network interface, a peripheral bus interface, or a storage interface. Examples of network interfaces include wired interfaces (such as Ethernet, passive optical networks (PONs), etc.) and wireless interfaces (such as Wi-Fi or cellular interfaces).
[1031] System 700 may include a codec component 704, which may implement various codecs or coding methods described in this document. Codec component 704 may reduce the average bit rate of a video from input 702 to the output of codec component 704 to generate a codec representation of the video. Therefore, codec techniques are sometimes referred to as video compression or video transcoding techniques. As represented by component 706, the output of codec component 704 may be stored or sent via connected communications. The bitstream (or codec) representation of the storage or transmission of the video received at input 702 may be used by component 708 to generate pixel values or displayable video sent to display interface 710. The process of generating user-visible video from bitstream representation is sometimes referred to as video decompression. In addition, although some video processing operations are referred to as "codec" operations or tools, it will be understood that coding tools or operations are used at encoders, and the corresponding decoding tools or operations of the reverse coding results will be performed by decoders.
[1032] Examples of peripheral bus interfaces or display interfaces may include Universal Serial Bus (USB) or High Definition Multimedia Interface (HDMI) or Display Port, etc. Examples of storage interfaces include SATA (Serial Advanced Technology Attachment), PCI, IDE interfaces, etc. The technology described in this document may be embodied in various electronic devices such as mobile phones, laptop computers, smart phones, or other devices capable of performing digital data processing and / or video display.
[1033] Figure 8 is a block diagram illustrating an example video coding system 100 that may utilize the techniques of this disclosure.
[1034] like Figure 8 As shown in , the video coding system 100 may include a source device 110 and a destination device 120. The source device 110 generates encoded video data and may be referred to as a video encoding device. The destination device 120 may decode the encoded video data generated by the source device 110 and may be referred to as a video decoding device.
[1035] Source device 110 may include a video source 112 , a video encoder 114 , and an input / output (I / O) interface 116 .
[1036] The video source 112 may include a source (such as a video capture device, an interface for receiving video data from a video content provider, and / or a computer graphics system for generating video data, or a combination of these sources). The video data may include one or more pictures. The video encoder 114 encodes the video data from the video source 112 to generate a bit stream. The bit stream may include a bit sequence that forms a codec representation of the video data. The bit stream may include a codec picture and associated data. The codec picture is a codec representation of the picture. The associated data may include a sequence parameter set, a picture parameter set, and other grammatical structures. The I / O interface 116 may include a modulator / demodulator (modem) and / or a transmitter. The encoded video data may be directly sent to the destination device 120 via the network 130a via the I / O interface 116. The encoded video data may also be stored on a storage medium / server 130b for access by the destination device 120.
[1037] Destination device 120 may include an I / O interface 126 , a video decoder 124 , and a display device 122 .
[1038] The I / O interface 126 may include a receiver and / or a modem. The I / O interface 126 may obtain the encoded video data from the source device 110 or the storage medium / server 130b. The video decoder 124 may decode the encoded video data. The display device 122 may display the decoded video data to a user. The display device 122 may be integrated with the destination device 120, or may be external to the destination device 120, which is configured to interface with an external display device.
[1039] The video encoder 114 and the video decoder 124 may operate according to a video compression standard, such as the High Efficiency Video Codec (HEVC) standard, the Versatile Video Codec (VVC) standard, and other current and / or other standards.
[1040] Fig. 9 2 is a block diagram illustrating an example of a video encoder 200, which may be Figure 8 1. The video encoder 114 in the system 100 is shown in FIG.
[1041] Video encoder 200 may be configured to perform any or all of the techniques of this disclosure. Fig. 9In the example of , video encoder 200 includes multiple functional components. The techniques described in this disclosure can be shared among the various components of video encoder 200. In some examples, a processor can be configured to perform any or all of the techniques described in this disclosure.
[1042] The functional components of the video encoder 200 may include a segmentation unit 201, a prediction unit 202 (which may include a mode selection unit 203, a motion estimation unit 204, a motion compensation unit 205 and an intra-frame prediction unit 206), a residual generation unit 207, a transform unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transform unit 211, a reconstruction unit 212, a buffer 213 and an entropy coding unit 214.
[1043] In other examples, the video encoder 200 may include more, fewer, or different functional components. In one example, the prediction unit 202 may include an intra-block copy (IBC) unit. The IBC unit may perform prediction in an IBC mode, wherein at least one reference picture is a picture where the current video block is located.
[1044] Furthermore, some components such as the motion estimation unit 204 and the motion compensation unit 205 may be highly integrated, but are not shown for the purpose of explanation. Figure 5 In the example, they are respectively represented.
[1045] The partitioning unit 201 may partition a picture into one or more video blocks. The video encoder 200 and the video decoder 300 may support various video block sizes.
[1046] The mode selection unit 203 may select one of the intra or inter coding modes, for example, based on the error result, and provide the resulting intra or inter coding block to the residual generation unit 207 to generate residual block data, and provide the resulting intra or inter coding block to the reconstruction unit 212 to reconstruct the coding block for use as a reference picture. In some examples, the mode selection unit 203 may select a combination of intra prediction and inter prediction (CIIP) mode, where the prediction is based on inter prediction signaling and intra prediction signaling. In the case of inter prediction, the mode selection unit 203 may also select a resolution of the motion vector (e.g., sub-pixel or integer pixel precision) for the block.
[1047] To perform inter-frame prediction on the current video block, the motion estimation unit 204 may generate motion information of the current video block by comparing the current video block with one or more reference frames from the buffer 213. The motion compensation unit 205 may determine a predicted video block of the current video block based on decoded samples and motion information of pictures other than the picture associated with the current video block from the buffer 213.
[1048] For example, motion estimation unit 204 and motion compensation unit 205 may perform different operations on the current video block depending on whether the current video block is in an I slice, a P slice, or a B slice.
[1049] In some examples, the motion estimation unit 204 may perform unidirectional prediction on the current video block, and the motion estimation unit 204 may search for a reference picture of list 0 or list 1 for a reference video block of the current video block. The motion estimation unit 204 may then generate a reference index indicating a reference picture in list 0 or list 1 containing the reference video block, and a motion vector indicating a spatial displacement between the current video block and the reference video block. The motion estimation unit 204 may output the reference index, the prediction direction indicator, and the motion vector as motion information of the current video block. The motion compensation unit 205 may generate a predicted video block of the current block based on the reference video block indicated by the motion information of the current video block.
[1050] In other examples, the motion estimation unit 204 may perform bidirectional prediction on the current video block, and the motion estimation unit 204 may search for a reference picture in list 0 of a reference video block for the current video block, and may also search for a reference picture in list 1 of another reference video block for the current video block. The motion estimation unit 204 may then generate a reference index indicating the reference pictures in list 0 and list 1 containing the reference video block, and a motion vector indicating a spatial displacement between the reference video block and the current video block. The motion estimation unit 204 may output the reference index and the motion vector of the current video block as the motion information of the current video block. The motion compensation unit 205 may generate a predicted video block of the current video block based on the reference video block indicated by the motion information of the current video block.
[1051] In some examples, motion estimation unit 204 may output the full set of motion information for use in a decoding process by a decoder.
[1052] In some examples, motion estimation unit 204 may not output a full set of motion information for the current video. Instead, motion estimation unit 204 may reference motion information of another video block to signal the motion information of the current video block. For example, motion estimation unit 204 may determine that the motion information of the current video block is sufficiently similar to the motion information of a neighboring video block.
[1053] In one example, motion estimation unit 204 may indicate a value in a syntax structure associated with the current video block that indicates to video decoder 300 that the current video block has the same motion information as another video block.
[1054] In another example, the motion estimation unit 204 may identify another video block and a motion vector difference (MVD) in a syntax structure associated with the current video block. The motion vector difference indicates the difference between the motion vector of the current video block and the motion vector of the indicated video block. The video decoder 300 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.
[1055] As discussed above, the video encoder 200 may predictively signal motion vectors.Two examples of predictive signaling techniques that may be implemented by the video encoder 200 include Advanced Motion Vector Prediction (AMVP) and Merge mode signaling.
[1056] The intra prediction unit 206 may perform intra prediction on the current video block. When the intra prediction unit 206 performs intra prediction on the current video block, the intra prediction unit 206 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 prediction video block and various syntax elements.
[1057] The residual generation unit 207 may generate residual data for the current video block by subtracting (e.g., indicated by a minus sign) the prediction video block(s) of the current video block from the current video block. The residual data for the current video block may include residual video blocks corresponding to different sample components of the samples in the current video block.
[1058] In other examples, such as in skip mode, there may be no residual data for the current video block, and the residual generation unit 207 may not perform a subtraction operation.
[1059] Transform processing unit 208 may generate one or more transform coefficient video blocks for the current video block by applying one or more transforms to the residual video block associated with the current video block.
[1060] After transform processing unit 208 generates a transform coefficient video block associated with the current video block, quantization unit 209 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.
[1061] The inverse quantization unit 210 and the inverse transform unit 211 may apply inverse quantization and inverse transform to the transform coefficient video block, respectively, to reconstruct the residual video block from the transform coefficient video block. The reconstruction unit 212 may add the reconstructed residual video block to the corresponding samples of one or more prediction video blocks generated by the prediction unit 202 to generate a reconstructed video block associated with the current block for storage in the buffer 213.
[1062] After the reconstruction unit 212 reconstructs the video block, a loop filtering operation may be performed to reduce video blocking artifacts in the video block.
[1063] The entropy coding unit 214 may receive data from other functional components of the video encoder 200. When the entropy coding unit 214 receives the data, the entropy coding unit 214 may perform one or more entropy coding operations to generate entropy-coded data and output a bitstream containing the entropy-coded data.
[1064] Fig.10 is a block diagram illustrating an example of a video decoder 300, which may be Figure 8 1. The video decoder 114 in the system 100 is shown in FIG.
[1065] Video decoder 300 may be configured to perform any or all of the techniques of this disclosure. Fig.10 In the example of , video decoder 300 includes multiple functional components. The techniques described in this disclosure can be shared between the various components of video decoder 300. In some examples, a processor can be configured to perform any or all of the techniques described in this disclosure.
[1066] exist Fig.10 In the example of FIG. 3 , the video decoder 300 includes an entropy decoding unit 301, a motion compensation unit 302, an intra-frame prediction unit 303, an inverse quantization unit 304, an inverse transform unit 305, a reconstruction unit 306, and a buffer 307. In some examples, the video decoder 300 can perform operations generally related to the video encoder 200 (e.g., Fig. 9 ) is the decoding process that is the inverse of the encoding process described.
[1067] The entropy decoding unit 301 may retrieve a coded bitstream. The coded bitstream may include entropy coded video data (e.g., coded blocks of video data). The entropy decoding unit 301 may decode the entropy coded video data, and the motion compensation unit 302 may determine motion information including motion vectors, motion vector precision, reference picture list index, and other motion information from the entropy decoded video data. The motion compensation unit 302 may determine such information, for example, by performing AMVP and Merge modes.
[1068] The motion compensation unit 302 may generate a motion compensated block, possibly performing interpolation based on an interpolation filter. An identifier of an interpolation filter to be used with sub-pixel precision may be included in the syntax element.
[1069] Motion compensation unit 302 may use interpolation filters as used by video encoder 20 during encoding of a video block to calculate interpolated values for sub-integer pixels of a reference block. Motion compensation unit 302 may determine the interpolation filters used by video encoder 200 based on received syntax information and use the interpolation filters to produce a prediction block.
[1070] The motion compensation unit 302 may use some syntax information to determine the size of blocks used to encode frames and / or slices of the encoded video sequence, partitioning information describing how each macroblock of the pictures of the encoded video sequence is partitioned, a mode indicating how each partition is encoded, one or more reference frames (and reference frame lists) for each inter-frame coded block, and other information used to decode the encoded video sequence.
[1071] The intra prediction unit 303 may use, for example, an intra prediction mode received in the bitstream to form a prediction block from spatially adjacent blocks. The inverse quantization unit 303 inversely quantizes (i.e., dequantizes) the quantized video block coefficients provided in the bitstream and decoded by the entropy decoding unit 301. The inverse transform unit 303 applies an inverse transform.
[1072] The reconstruction unit 306 may add the residual block to the corresponding prediction block generated by the motion compensation unit 202 or the intra prediction unit 303 to form a decoded block. If necessary, a deblocking filter may also be applied to filter the decoded block to remove block artifacts. The decoded video block is then stored in a buffer 307, which provides a reference block for subsequent motion compensation.
[1073] Fig.11 1 is a flowchart representation of a method of video processing according to the present technology. The method 1100 includes, at operation 1110, determining a signaling method to be used for a joint Cb-Cr residual codec tool based on a color format of the video for conversion between a video and a bitstream representation of the video. The method 1200 also includes, at operation 1220, performing the conversion based on the determination.
[1074] In some embodiments, the method specifies that, in the case where the syntax element indicating the color format has a non-zero value, signaling notification of the use of the joint Cb-Cr residual codec tool is included in the bitstream representation. In some embodiments, in the case where the syntax element indicating the color format has a non-zero value, the coordinates of the chroma samples for the joint Cb-Cr residual codec tool are determined based on the scaled coordinates of the corresponding luma samples. In some embodiments, the samples of the two chroma arrays have coordinates (x / SubWidthC, y / SubHeightC), where (x, y) are the coordinates of the corresponding luma samples, and SubWidthC and SubHeightC are scaling factors. In some embodiments, the method specifies that, in the case where the color format of the video is 4:0:0, signaling notification of the use of the joint Cb-Cr residual codec tool is omitted in the bitstream representation.
[1075] Fig.12 12 is a flowchart representation of a method of video processing according to the present technology. The method 1210 includes performing a conversion between a video and a bitstream representation of the video. The bitstream representation conforms to a format rule that specifies whether, if a first syntax element is included in a first video unit in the bitstream representation, a corresponding second syntax element in a second video unit is included in the bitstream representation.
[1076] In some embodiments, the first video unit includes a picture header or a picture parameter set. In some embodiments, the second video unit includes a slice header or a slice parameter set. In some embodiments, the first video unit includes a video parameter set, a slice parameter set, or a picture parameter set. In some embodiments, the second video unit includes a picture header.
[1077] In some embodiments, the format rule specifies that, in case a first syntax element is included in a first video unit in a bitstream representation, a second syntax element in a second video unit is omitted in the bitstream representation. In some embodiments, the format rule specifies that, in case a first syntax element is included in a first video unit in a bitstream representation, a second syntax element in a second video unit is included in the bitstream representation. In some embodiments, an indicator is included in the second video unit to indicate whether the second syntax element is subsequently signaled. In some embodiments, in case the second syntax element is included in the bitstream representation, a slice associated with the second video unit is processed according to an indicator of the second syntax element without considering the first syntax element. In some embodiments, an indicator is included in the first video unit to indicate whether the second syntax element is included in a second video unit associated with the first video unit.
[1078] In some embodiments, the first video unit is a picture header, the second video unit is a slice header, and the first syntax element in the picture header is functionally equivalent to the second syntax element in the slice header. In some embodiments, the first video unit is a slice parameter set, the second video unit is a picture header, and the first syntax element in the slice parameter set is functionally equivalent to the second syntax element in the picture header. In some embodiments, the first video unit is a picture parameter set, the second video unit is a picture header, and the first syntax element in the picture parameter set is functionally equivalent to the second syntax element in the picture header.
[1079] Fig.13 13 is a flowchart representation of a method of video processing according to the present technology. The method 1300 includes, at operation 1310, performing a conversion between a region of a video and a bitstream representation of the video. During the conversion, a first syntax element is included in the bitstream representation to indicate whether a multiple transform selection (MTS) codec is disabled for all blocks of the region.
[1080] In some embodiments, the region includes a slice, a picture, or an entire sequence. In some embodiments, during conversion, a second syntax element is conditionally included in the bitstream representation based on the first syntax element to indicate the manner in which the MTS codec tool is applied to intra-frame codec blocks. In some embodiments, the second syntax element is included in the bitstream representation when the first syntax element indicates that the MTS codec tool is not disabled for all blocks in the region. In some embodiments, during conversion, a third syntax element is conditionally included in the bitstream representation based on the first syntax element to indicate the manner in which the MTS codec tool is applied to inter-frame codec blocks. In some embodiments, the third syntax element is included in the bitstream representation when the first syntax element indicates that the MTS codec tool is not disabled for all blocks in the region. In some embodiments, the third syntax element is conditionally included in the bitstream representation further based on the applicability of the sub-block transform codec tool. In some embodiments, the second syntax element includes sps_intra_mts_selection, and the third syntax element includes sps_inter_mts_selection. In some embodiments, the MTS codec tool is based on a selection of a transform among a plurality of transforms.
[1081] Fig.14is a flowchart representation of a method of video processing according to the present technology. The method 1400 includes, at operation 1410, determining a rule for signaling a first maximum block size of a block coded in a transform skip mode based on a second maximum block size of a transform coded block for conversion between a video and a bitstream representation of the video. The method 1400 also includes, at operation 1420, performing the conversion based on the determination. In some embodiments, the rule specifies that the first maximum block size is equal to or less than the second maximum block size.
[1082] Fig.15 1 is a flowchart representation of a method of video processing according to the present technology. The method 1500 includes, at operation 1510, performing conversion between blocks of chroma components of a video and a bitstream representation of the video using a partitioned mode codec tool, in which a final prediction of the chroma block is determined by blending predictions of the chroma block using partition-based weights. During the conversion, the weights are determined based on the type of chroma sample locations in the chroma components of the block.
[1083] In some embodiments, weights for chroma components having a first chroma sample position type are determined based on weights for luma sample positions in a luma component of the block. In some embodiments, the luma sample positions are co-located upper left luma sample positions. In some embodiments, the first chroma sample position type comprises chroma sample position type 0. In some embodiments, weights for chroma components having a first chroma sample position type are subsampled from weights for luma sample positions in a luma component of the block.
[1084] In some embodiments, a downsampling filter is used to determine the weights, and wherein the downsampling filter is determined based on the type of chroma sample position in the chroma component of the block. In some embodiments, the downsampling filter comprises an X-tap filter, X being a positive integer. In some embodiments, X is 5 or 6.
[1085] In some embodiments, at least one of the partitions is a non-rectangular partition. In some embodiments, at least one of the partitions has angled edges. In some embodiments, a downsampling filter is indicated in a video unit represented by the bitstream according to an indication rule. In some embodiments, a video unit includes a slice parameter set, a video parameter set, a picture parameter set, a picture header, a sub-picture, a slice, a slice header, a slice, a brick, a codec tree unit, a virtual pipeline data unit.
[1086] In some embodiments, the downsampling filter type is indicated by a first syntax element in the bitstream representation. In some embodiments, a second syntax element is included in the bitstream representation to indicate a switch between different chroma format types of the video. In some embodiments, the different chroma format types include at least one of chroma format type 0 or chroma format type 2. In some embodiments, a third syntax element is included in the bitstream representation to specify whether the downsampled luma weight in the upper left position of the region is co-located with the corresponding luma weight. In some embodiments, the third syntax element indicates chroma sample position type 0. In some embodiments, a third syntax element is included in the bitstream representation to specify whether the downsampled luma sample in the upper left position of the region is horizontally co-located with the corresponding luma sample and vertically shifted by 0.5 units relative to the corresponding luma sample. In some embodiments, the third syntax element indicates chroma sample position type 2. In some embodiments, the indication rule specifies that the downsampling filter type is included in the first syntax element when the color format of the video is 4:2:0 or 4:2:2. In some embodiments, the indication rule specifies that another syntax element in the bitstream representation indicates whether the first downsampling filter type is used or the second downsampling filter type is used.
[1087] In some embodiments, the downsampling filter type is derived based on the video unit represented by the bitstream. In some embodiments, a lookup table is used to specify the correspondence between the downsampling filter and the chroma format type of the content.
[1088] In some embodiments, the partitioning mode codec tool corresponds to a triangle partitioning mode tool. In some embodiments, the partitioning mode codec tool corresponds to a geometry partitioning mode tool.
[1089] In some embodiments, the conversion includes encoding the video into a bitstream representation. In some embodiments, the conversion includes decoding the bitstream representation into the video.
[1090] Some embodiments of the disclosed technology include making a decision or determination to enable a video processing tool or mode. In an example, when a video processing tool or mode is enabled, the encoder will use or implement the tool or mode in the processing of a block of video, but will not necessarily modify the resulting bitstream based on the use of the tool or mode. That is, when a video processing tool or mode is enabled based on the decision or determination, the conversion from a block of video to a bitstream representation of the video will use the video processing tool or mode. In another example, when a video processing tool or mode is enabled, the decoder will process the bitstream knowing that the bitstream has been modified based on the video processing tool or mode. That is, the conversion from the bitstream representation of the video to the block of the video will be performed using the video processing tool or mode enabled based on the decision or determination.
[1091] Some embodiments of the disclosed technology include making a decision or determination to disable a video processing tool or mode. In one example, when the video processing tool or mode is disabled, the encoder will not use the tool or mode in the conversion of blocks of video to a bitstream representation of the video. In another example, when the video processing tool or mode is disabled, the decoder will process the bitstream knowing that the bitstream was not modified using the video processing tool or mode enabled based on the decision or determination.
[1092] The disclosure and other solutions, examples, embodiments, modules and functional operations described in this document may be implemented in digital electronic circuits, or in computer software, firmware or hardware, including the structures disclosed in this document and their structural equivalents, or in a combination of one or more of them. The disclosure and other embodiments may be implemented as one or more computer program products, i.e., one or more computer program instruction modules encoded on a computer-readable medium, for execution by a data processing device or to control the operation of a data processing device. The computer-readable medium may be a machine-readable storage device, a machine-readable storage substrate, a memory device, a material combination that implements machine-readable propagation signaling, or a combination of one or more of them. The term "data processing device" covers all devices, equipment and machines for processing data, including, for example, a programmable processor, a computer or multiple processors or computers. In addition to hardware, the device may also include code that creates an execution environment for the computer program in question, for example, code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them. Propagation signaling is artificially generated signaling, such as machine-generated electrical signaling, optical signaling or electromagnetic signaling, which is generated to encode information for transmission to a suitable receiver device.
[1093] A computer program (also referred to as a program, software, software application, script, or code) may be written in any form of programming language, including compiled or interpreted languages, and may be deployed in any form, including stand-alone programs or modules, components, subroutines, or other units suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program may 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 storing one or more modules, subroutines, or code portions). A computer program may be deployed to execute on one computer or on multiple computers located on one site or distributed on multiple sites and interconnected by a communications network.
[1094] The processes and logic flows described in this document can be performed by one or more programmable processors executing one or more computer programs to perform functions by performing operations on input data and generating output. The processes and logic flows can also be performed by special purpose logic circuitry, and the apparatus can also be implemented as special purpose logic circuitry, such as an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).
[1095] For example, processors suitable for executing computer programs include general and special purpose microprocessors, and any one or more processors of any kind of digital computer. Typically, the processor will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Typically, the computer will also include or be operably coupled to one or more mass storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, to receive data from the one or more mass storage devices, or to transfer data to the one or more mass storage devices, or both. However, the computer does not need to have such a device. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CD ROM and DVD-ROM disks. The processor and memory can be supplemented by or incorporated into a dedicated logic circuit.
[1096] Although this patent document contains many details, these details should not be interpreted as limitations on any subject matter or the scope of protection that can be claimed, but rather as descriptions of features specific to a particular embodiment of a particular technology. In this patent document, certain features described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. In addition, although the above features may be described as working in certain combinations and even initially claimed as such, in some cases, one or more features from the combination may be removed from the claimed combination, and the claimed combination may point to a sub-combination or a variation of the sub-combination.
[1097] Similarly, although operations are depicted in a particular order in the drawings, 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 the desired results. Furthermore, the separation of various system components in the embodiments described in this patent document should not be understood as requiring such separation in all embodiments.
[1098] Only a few implementations and examples are described, and other implementations, enhancements, and variations may be made based on what is described and shown in this patent document.
Claims
1. A method for processing video data, comprising: determining a first syntax element and a second syntax element for conversion between a video unit of a video and a bitstream of the video; as well as performing said converting based on said determining, The first syntax element and the second syntax element have the same function. wherein the first syntax element is included at a first level of the video unit in a bitstream, and the second syntax element is included at a second level in the video unit that is different from the first level, wherein the first level is a picture header and the second level is a slice header, a sequence parameter set or a picture parameter set, or wherein the first level is a slice header and the second level is a sequence parameter set or a picture parameter set, The first syntax element specifies whether the picture header includes enabling codec tools including luma mapping and chroma scaling, and the second syntax element specifies whether the sequence parameter set includes enabling the codec tools, and Whether to include a third syntax element in the sequence parameter set depends on a color format of the sequence parameter set, and wherein the third syntax element specifies whether to enable joint coding of chroma residual.
2. The method according to claim 1, wherein: The first syntax element specifies whether the slice header includes enabling codec tools including luma mapping and chroma scaling, and the second syntax element specifies whether the sequence parameter set includes enabling the codec tools, and When the second syntax element is not included in the sequence parameter set, the first syntax element is not included in the slice header.
3. The method according to claim 1, wherein: The first syntax element specifies whether to include use of an explicit scaling list in the slice header, and the second syntax element specifies whether to include use of the explicit scaling list in the sequence parameter set, and When the second syntax element is not included in the sequence parameter set, the first syntax element is not included in the slice header.
4. The method according to claim 1, wherein: The first syntax element specifies whether ALF is enabled in the slice header and whether ALF is enabled in the sequence parameter set, and When the second syntax element is not included in the sequence parameter set, the first syntax element is not included in the slice header.
5. The method according to claim 1, wherein: The first syntax element specifies whether to include enabling mmvd-fullpel-only in the picture header, and the second syntax element specifies whether to include enabling mmvd-fullpel-only in the sequence parameter set, and When the second syntax element is not included in the sequence parameter set, the first syntax element is not included in the picture header.
6. The method according to claim 1, wherein: When the color format of the sequence parameter set is 4:0:0, the third syntax element is not included in the sequence parameter set, and when the color format of the sequence parameter set is 4:2:0, 4:2:2 or 4:4:4, the third syntax element is included in the sequence parameter set.
7. The method according to claim 1, wherein: When the third syntax element specifies enabling joint coding of chroma residual, including a joint_cbcr_sign_flag at a different level than the sequence parameter set in the bitstream, and When the third syntax element specifies that joint coding and decoding of chroma residual is not enabled, the bitstream does not include joint_cbcr_sign_flag.
8. The method according to claim 1, wherein: Including in the sequence parameter set an sps_mts_enabled_flag that specifies whether sps_explicit_mts_intra_enabled_flag and sps_explicit_mts_inter_enabled_flag exist, and, The bitstream includes a fourth syntax element to indicate whether to disable multiple transform selection (MTS) for all pictures.
9. The method according to any one of claims 1 to 8, wherein: The converting includes encoding the video unit into the bitstream.
10. The method according to any one of claims 1 to 8, wherein: The converting includes decoding the video unit from the bitstream.
11. An apparatus for processing video data, comprising a processor and a non-transitory memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to: determining a first syntax element and a second syntax element for conversion between a video unit of a video and a bitstream of the video; and performing said converting based on said determining, in, The first syntax element and the second syntax element have the same function, wherein the first syntax element is included at a first level of the video unit in a bitstream, and the second syntax element is included at a second level in the video unit that is different from the first level, wherein the first level is a picture header and the second level is a slice header, a sequence parameter set or a picture parameter set, or wherein the first level is a slice header and the second level is a sequence parameter set or a picture parameter set, The first syntax element specifies whether the picture header includes enabling codec tools including luma mapping and chroma scaling, and the second syntax element specifies whether the sequence parameter set includes enabling the codec tools, and Whether to include a third syntax element in the sequence parameter set depends on a color format of the sequence parameter set, and wherein the third syntax element specifies whether to enable joint coding of chroma residual.
12. The device according to claim 11, wherein The first syntax element specifies whether the slice header includes enabling codec tools including luma mapping and chroma scaling, and the second syntax element specifies whether the sequence parameter set includes enabling the codec tools, and When the second syntax element is not included in the sequence parameter set, the first syntax element is not included in the slice header.
13. The device according to claim 11, wherein: The first syntax element specifies whether to include use of an explicit scaling list in the slice header, and the second syntax element specifies whether to include use of the explicit scaling list in the sequence parameter set, and When the second syntax element is not included in the sequence parameter set, the first syntax element is not included in the slice header.
14. The device according to claim 11, wherein: The first syntax element specifies whether ALF is enabled in the slice header and whether ALF is enabled in the sequence parameter set, and When the second syntax element is not included in the sequence parameter set, the first syntax element is not included in the slice header.
15. The device according to claim 11, wherein The first syntax element specifies whether to include enabling mmvd-fullpel-only in the picture header, and the second syntax element specifies whether to include enabling mmvd-fullpel-only in the sequence parameter set, and When the second syntax element is not included in the sequence parameter set, the first syntax element is not included in the picture header.
16. The device according to claim 11, wherein When the color format of the sequence parameter set is 4:0:0, the third syntax element is not included in the sequence parameter set, and when the color format of the sequence parameter set is 4:2:0, 4:2:2 or 4:4:4, the third syntax element is included in the sequence parameter set.
17. A non-transitory computer-readable storage medium storing instructions that cause a processor to: determining a first syntax element and a second syntax element for conversion between a video unit of a video and a bitstream of the video; and performing said converting based on said determining, in, The first syntax element and the second syntax element have the same function, wherein the first syntax element is included at a first level of the video unit in a bitstream, and the second syntax element is included at a second level in the video unit that is different from the first level, wherein the first level is a picture header and the second level is a slice header, a sequence parameter set or a picture parameter set, or wherein the first level is a slice header and the second level is a sequence parameter set or a picture parameter set, The first syntax element specifies whether the picture header includes enabling codec tools including luma mapping and chroma scaling, and the second syntax element specifies whether the sequence parameter set includes enabling the codec tools, and Whether to include a third syntax element in the sequence parameter set depends on a color format of the sequence parameter set, and wherein the third syntax element specifies whether to enable joint coding of chroma residual.
18. A method for storing a bitstream of a video, the method comprising: determining a first syntax element and a second syntax element for a video unit of the video; generating the bitstream based on the determination; as well as storing the bitstream in a non-transitory computer-readable recording medium, The first syntax element and the second syntax element have the same function. wherein the first syntax element is included at a first level of the video unit in a bitstream, and the second syntax element is included at a second level in the video unit that is different from the first level, wherein the first level is a picture header and the second level is a slice header, a sequence parameter set or a picture parameter set, or wherein the first level is a slice header and the second level is a sequence parameter set or a picture parameter set, The first syntax element specifies whether the picture header includes enabling codec tools including luma mapping and chroma scaling, and the second syntax element specifies whether the sequence parameter set includes enabling the codec tools, and Whether to include a third syntax element in the sequence parameter set depends on a color format of the sequence parameter set, and wherein the third syntax element specifies whether to enable joint coding of chroma residual.
Citation Information
Cited By
Deriving reference sample positions in video coding
US12407812B2
Interplay between reference picture resampling and video coding tools
US12483691B2
Prediction type signaling in video coding
US12615394B2
Deriving reference sample positions in video coding
US12795080B2
