Method and apparatus for reference picture resampling

By introducing new low-pass interpolation filters in VVC and disabling RPR interframe prediction, and allowing bit depth variation, the problems of low efficiency and high complexity of affine mode codec in VVC are solved, and the encoding and codec performance and flexibility are improved sex.

CN118890466AActive Publication Date: 2024-11-01BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410800824.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2019-12-24
Filing Date
2020-12-24
Publication Date
2024-11-01
Estimated Expiration
2040-12-24

AI Technical Summary

Technical Problem

The existing video codec standard VVC has low encoding and decoding efficiency in affine mode when resampling the reference picture, and has high memory bandwidth and computational complexity, especially when downsampling, aliasing artifacts and significant complexity increase.

Method used

A new low-pass interpolation filter is proposed instead of the default 6-tap and 4-tap motion interpolation filter, disables RPR-based interpolation for certain CU sizes, and allows dynamic changes in internal bit depth to improve codec efficiency and reduce Complexity.

Benefits of technology

Improves RPR encoding and decoding efficiency in affine mode, reduces memory bandwidth and computing complexity, reduces aliasing artifacts, and achieves better encoding and decoding performance and flexible performance/complexity trade-offs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890466A_ABST
    Figure CN118890466A_ABST
Patent Text Reader

Abstract

A method, an apparatus, and a non-transitory computer-readable storage medium for decoding a video signal are provided. A decoder obtains a reference picture I associated with a video block within a video signal. The decoder may further obtain reference samples I (i, j) of the video block from reference blocks in the reference picture I. The decoder may also obtain a first downsampling filter and a second downsampling filter to generate luma and chroma inter prediction samples of the video block, respectively. When a video block is encoded and decoded by affine mode, the decoder may further obtain a third downsampling filter and a fourth downsampling filter to generate luma and chroma inter prediction samples of the video block, respectively. The decoder may also obtain inter prediction samples for the video block based on the third and fourth downsampling filters being applied to the reference samples I (i, j).
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on and claims the benefit of priority of Provisional Application No. 62 / 953,471 filed on December 24, 2019, the entire contents of which are fully incorporated herein by reference for all purposes. Technical Field

[0003] The present disclosure relates to video coding and compression. More specifically, the present disclosure relates to methods and apparatuses for reference picture resampling techniques for video coding. Background Art

[0004] Various video codec technologies can be used to compress video data. Video coding is performed in accordance with one or more video coding standards. For example, video coding standards include Versatile Video Codec (VVC), Joint Exploration Test Model (JEM), High Efficiency Video Codec (H.265 / HEVC), Advanced Video Codec (H.264 / AVC), Moving Picture Experts Group (MPEG) codec, etc. Video codecs typically use prediction methods (e.g., inter-frame prediction, intra-frame prediction, etc.) that exploit redundancy present in video images or sequences. An important goal of video coding technology is to compress video data into a form that uses a lower bit rate while avoiding or minimizing the degradation of video quality. Summary of the invention

[0005] Examples of the present disclosure provide methods and apparatus for reference picture resampling.

[0006] According to a first aspect of the present disclosure, a method for decoding a video signal is provided. The method may include a decoder obtaining a reference picture I associated with a video block in a video signal. The decoder may also obtain a reference sample I(i, j) of the video block from a reference block in the reference picture I. i and j may represent the coordinates of a sample in the video block. When the video block is encoded and decoded in a non-affine inter-frame mode and the resolution of the reference picture I is greater than the resolution of the current picture, the decoder may further obtain a first down-sampling filter and a second down-sampling filter to generate luminance and chrominance inter-frame prediction samples of the video block, respectively. When the video block is encoded and decoded by an affine mode and the resolution of the reference picture is greater than the resolution of the current picture, the decoder may also obtain a third down-sampling filter and a fourth down-sampling filter to generate luminance and chrominance inter-frame prediction samples of the video block, respectively. The decoder may further obtain inter-frame prediction samples of the video block based on the third and fourth down-sampling filters being applied to the reference sample I(i, j).

[0007] According to a second aspect of the present disclosure, a computing device is provided. The computing device may include one or more processors, and a non-temporary computer-readable memory storing instructions executable by the one or more processors. The one or more processors may be configured to obtain a reference picture I associated with a video block in a video signal. The one or more processors may also be configured to obtain a reference sample I (i, j) of the video block from a reference block in the reference picture I. i and j may represent the coordinates of a sample in the video block. The one or more processors may be further configured to: when the video block is encoded and decoded in a non-affine inter-frame mode and the resolution of the reference picture I is greater than the resolution of the current picture, obtain a first down-sampling filter and a second down-sampling filter to generate luminance and chrominance inter-frame prediction samples of the video block, respectively. The one or more processors may also be configured to: when the video block is encoded and decoded by an affine mode and the resolution of the reference picture is greater than the resolution of the current picture, obtain a third down-sampling filter and a fourth down-sampling filter to generate luminance and chrominance inter-frame prediction samples of the video block, respectively. The one or more processors may be further configured to obtain inter-frame prediction samples of the video block based on the third and fourth down-sampling filters being applied to the reference sample I (i, j).

[0008] According to a third aspect of the present disclosure, a non-transitory computer-readable storage medium in which instructions are stored is provided. When these instructions are executed by one or more processors of the device, these instructions may cause the device to obtain a reference picture I associated with a video block in a video signal. These instructions may also cause the device to obtain a reference sample I (i, j) of the video block from a reference block in the reference picture I. i and j may represent the coordinates of a sample in the video block. These instructions may further cause the device to: when the video block is encoded and decoded in a non-affine inter-frame mode and the resolution of the reference picture I is greater than the resolution of the current picture, obtain a first down-sampling filter and a second down-sampling filter to generate luminance and chrominance inter-frame prediction samples of the video block, respectively. These instructions may also cause the device to: when the video block is encoded and decoded by an affine mode and the resolution of the reference picture is greater than the resolution of the current picture, obtain a third down-sampling filter and a fourth down-sampling filter to generate luminance and chrominance inter-frame prediction samples of the video block, respectively. These instructions may further cause the device to obtain inter-frame prediction samples of the video block based on the third and fourth down-sampling filters being applied to the reference sample I (i, j).

[0009] It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate examples consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure. Like reference numerals designate corresponding parts.

[0011] Figure 1 A block diagram of an encoder according to an example of the present disclosure.

[0012] Figure 2 A block diagram of a decoder according to an example of the present disclosure.

[0013] Figure 3A The diagram is a schematic diagram illustrating block partitioning of a multi-type tree structure according to an example of the present disclosure.

[0014] Figure 3B The diagram is a schematic diagram illustrating block partitioning of a multi-type tree structure according to an example of the present disclosure.

[0015] Figure 3C The diagram is a schematic diagram illustrating block partitioning of a multi-type tree structure according to an example of the present disclosure.

[0016] Figure 3D The diagram is a schematic diagram illustrating block partitioning of a multi-type tree structure according to an example of the present disclosure.

[0017] Figure 3E The diagram is a schematic diagram illustrating block partitioning of a multi-type tree structure according to an example of the present disclosure.

[0018] Figure 4A Schematic illustration of a 4-parameter affine model according to an example of the present disclosure.

[0019] Figure 4B Schematic illustration of a 4-parameter affine model according to an example of the present disclosure.

[0020] Figure 5 Schematic illustration of a 6-parameter affine model according to an example of the present disclosure.

[0021] Figure 6 FIG. 1 is a schematic diagram of adaptive bit depth switching according to an example of the present disclosure.

[0022] Figure 7 A method for decoding a video signal according to an example of the present disclosure is provided.

[0023] Figure 8 A method for decoding a video signal according to an example of the present disclosure is provided.

[0024] Fig. 9 A schematic diagram of a computing environment coupled with a user interface is illustrated in accordance with one example of the present disclosure. DETAILED DESCRIPTION

[0025] Reference will now be made in detail to example implementations, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings, wherein the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations set forth in the following description of the example embodiments do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with various aspects related to the present disclosure as set forth in the appended claims.

[0026] The terms used in this disclosure are only used for the purpose of describing specific embodiments and are not intended to limit the disclosure. When used in this disclosure and the appended claims, the singular forms "a", "an", and "the / said" are intended to include plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein is intended to represent and include any or all possible combinations of one or more associated listed items.

[0027] It should be understood that although the terms "first", "second", "third", etc. may be used herein to describe various information, the information should not be limited by these terms. These terms are merely used to distinguish one type of information from another type of information. For example, without departing from the scope of the present disclosure, the first information may be referred to as the second information; and similarly, the second information may also be referred to as the first information. As used herein, the term "if" may be understood to mean "when" or "at" or "in response to a judgment" depending on the context.

[0028] The first version of the HEVC standard was finalized in October 2013, which provides about 50% bitrate savings or equivalent perceptual quality compared to the previous generation video codec standard H.264 / MPEG AVC. Although the HEVC standard provides significant codec improvements compared to its predecessor, there is evidence that superior codec efficiency can be achieved with additional codec tools relative to HEVC. Based on this, both VCEG and MPEG have initiated exploration work on new codec technologies for future video codec standardization. A Joint Video Exploration Team (JVET) was established in October 2015 by ITU-T VECG and ISO / IEC MPEG to begin major research on advanced technologies that can achieve significant improvements in codec efficiency. JVET advocates a reference software called the Joint Exploration Model (JEM) by integrating several additional codec tools on top of the HEVC Test Model (HM).

[0029] In October 2017, ITU-T and ISO / IEC issued a joint call for proposals (CfP) for video compression with capabilities beyond HEVC. In April 2018, at the 10th JVET meeting, 23 CfP responses were received and evaluated, showing a compression efficiency gain of about 40% over HEVC. Based on such evaluation results, JVET launched a new project to develop a new generation of video codec standards, which was named Versatile Video Codec (VVC). In the same month, a reference software code base called VVC Test Model (VTM) was established to demonstrate a reference implementation of the VVC standard.

[0030] Like HEVC, VVC is built on a block-based hybrid video codec framework.

[0031] Figure 1 FIG. 1 shows an overall schematic diagram of a block-based video encoder for VVC. Specifically, Figure 1 A typical encoder 100 is shown. The encoder 100 has a video input 110, motion compensation 112, motion estimation 114, intra / inter mode decision 116, block predictor 140, adder 128, transform 130, quantization 132, prediction related information 142, intra prediction 118, picture buffer 120, inverse quantization 134, inverse transform 136, adder 126, memory 124, loop filter 122, entropy coding 138 and bitstream 144.

[0032] In encoder 100, a video frame is segmented into a plurality of video blocks for processing. For each given video block, a prediction is formed based on either an inter-prediction method or an intra-prediction method.

[0033] The prediction residual representing the difference between the current video block, part of the video input 110, and its predictor, part of the block predictor 140, is sent from the adder 128 to the transform 130. The transform coefficients are then sent from the transform 130 to the quantization 132 for entropy reduction. The quantized coefficients are then fed to the entropy coding 138 to generate a compressed video bitstream. Figure 1 As shown, prediction related information 142 from intra / inter mode decision 116, such as video block partition information, motion vectors (MVs), reference picture indexes, and intra prediction modes, is also fed through entropy coding 138 and saved into a compressed bitstream 144. The compressed bitstream 144 comprises a video bitstream.

[0034] Decoder related circuitry is also required in order to reconstruct pixels for prediction purposes in encoder 100. First, a prediction residual is reconstructed by inverse quantization 134 and inverse transform 136. This reconstructed prediction residual is combined with a block predictor 140 to generate unfiltered reconstructed pixels for the current video block.

[0035] Spatial prediction (or "intra-prediction") uses pixels from samples of already coded neighboring blocks (called reference samples) in the same video frame as the current video block to predict the current video block.

[0036] Temporal prediction (also called "inter prediction") uses reconstructed pixels from already coded video pictures to predict the current video block. Temporal prediction reduces the temporal redundancy inherent in video signals. The temporal prediction signal for a given codec unit (CU) or codec block is typically signaled via one or more MVs that indicate the amount and direction of motion between the current CU and its temporal reference. Furthermore, if multiple reference pictures are supported, a reference picture index is additionally sent that identifies which reference picture in the reference picture repository the temporal prediction signal comes from.

[0037] Motion estimation 114 takes in the video input 110 and the signal from the picture buffer 120, and outputs the motion estimation signal to motion compensation 112. Motion compensation 112 takes in the video input 110, the signal from the picture buffer 120, and the motion estimation signal from motion estimation 114, and outputs the motion compensation signal to intra / inter mode decision 116.

[0038] After performing spatial and / or temporal prediction, the intra / inter mode decision 116 in the encoder 100 selects the best prediction mode, for example based on a rate-distortion optimization method. Next, the block predictor 140 is subtracted from the current video block, and the resulting prediction residual is decorrelated using a transform 130 and a quantization 132. The resulting quantized residual coefficients are inverse quantized by an inverse quantization 134 and inverse transformed by an inverse transform 136 to form a reconstructed residual, which is then added back to the predicted block to form a reconstructed signal for the CU. Further, before the reconstructed CU is placed in a reference picture store in the picture buffer 120 and used to encode and decode future video blocks, loop filtering 122 such as a deblocking filter, sample adaptive offset (SAO) and / or an adaptive loop filter (ALF) may be applied to it. To form an output video bitstream 144, the coding mode (inter or intra), prediction mode information, motion information, and quantized residual coefficients are all sent to an entropy coding unit 138 for further compression and packaging to form a bitstream.

[0039] Figure 1A block diagram of a general block-based hybrid video coding system is given. The input video signal is processed block by block (called CU). In VVC, a CU can be up to 128x128 pixels. However, unlike HEVC, which is based only on quadtree partitioning blocks, in VVC, a codec tree unit (CTU) is split into several CUs based on quad / binary / ternary trees to adapt to changing local characteristics. In addition, the concept of multi-partition unit types in HEVC is removed, that is, there is no separation of CU, prediction unit (PU) and transform unit (TU) in VVC; instead, each CU is always used as a basic unit for both prediction and transformation without further partitioning. In the multi-type tree structure, a CTU is first partitioned by a quadtree structure. Then, each quadtree leaf node can be further partitioned by binary and ternary tree structures.

[0040] like Figure 3A , Figure 3B , Figure 3C , Figure 3D and Figure 3E As shown, there are five types of splits: quaternary split, horizontal binary split, vertical binary split, horizontal ternary split, and vertical ternary split.

[0041] Figure 3A A schematic diagram illustrating block quad partitioning in a multi-type tree structure in accordance with the present disclosure is shown.

[0042] Figure 3B A schematic diagram illustrating vertical binary partitioning of blocks in a multi-type tree structure in accordance with the present disclosure is shown.

[0043] Figure 3C A schematic diagram illustrating block-level binary partitioning in a multi-type tree structure in accordance with the present disclosure is shown.

[0044] Figure 3D A schematic diagram illustrating vertical ternary partitioning of blocks in a multi-type tree structure in accordance with the present disclosure is shown.

[0045] Figure 3E A schematic diagram illustrating block-level ternary partitioning in a multi-type tree structure in accordance with the present disclosure is shown.

[0046] exist Figure 1In the video code, spatial prediction and / or temporal prediction can be performed. Spatial prediction (or "intra-frame prediction") uses pixels from samples of already coded adjacent blocks in the same video picture or slice (called reference samples) to predict the current video block. Spatial prediction reduces the spatial redundancy inherent in the video signal. Temporal prediction (also known as "inter-frame prediction" or "motion-compensated prediction") uses reconstructed pixels from already coded video pictures to predict the current video block. Temporal prediction reduces the temporal redundancy inherent in the video signal. The temporal prediction signal for a given CU is usually signaled by one or more MVs, which indicate the amount and direction of motion between the current CU and its temporal reference. Furthermore, if multiple reference pictures are supported, a reference picture index is additionally sent, which is used to identify which reference picture in the reference picture repository the temporal prediction signal comes from. After spatial and / or temporal prediction, the mode decision block in the encoder selects the best prediction mode, for example based on a rate-distortion optimization method. Next, the prediction block is subtracted from the current video block; and the prediction residual is decorrelated using transformation and quantization. The quantized residual coefficients are inverse quantized and inverse transformed to form a reconstructed residual, which is then added back to the prediction block to form the reconstructed signal of the CU. Further, loop filtering such as deblocking filter, SAO and ALF can be applied to the reconstructed CU before it is placed in the reference picture repository and used to encode and decode future video blocks. In order to form the output video bitstream, the coding mode (inter or intra), prediction mode information, motion information and quantized residual coefficients are all sent to the entropy coding unit for further compression and packaging to form a bitstream.

[0047] Figure 2 The overall block diagram of the video decoder for VVC is shown. Specifically, Figure 2 A block diagram of a typical decoder 200 is shown. The decoder 200 has a bitstream 210, entropy decoding 212, inverse quantization 214, inverse transform 216, adder 218, intra / inter mode selection 220, intra prediction 222, memory 230, loop filter 228, motion compensation 224, picture buffer 226, prediction related information 234 and video output 232.

[0048] Decoder 200 is similar to Figure 1The decoder 200 is a block predictor mechanism implemented in the intra / inter mode selector 220. The block predictor mechanism is configured to perform intra prediction 222 or motion compensation 224 based on the decoded prediction information. The set of unfiltered reconstructed pixels is obtained by summing the reconstructed prediction residuals from the inverse transform 216 and the prediction output generated by the block predictor mechanism using a summer 218.

[0049] The reconstructed blocks may be further passed through a loop filter 228 before being stored in a picture buffer 226, which is used as a reference picture store. The reconstructed video in the picture buffer 226 may be sent to drive a display device, as well as used to predict future video blocks. In the case where the loop filter 228 is turned on, filtering operations are performed on these reconstructed pixels to derive a final reconstructed video output 232.

[0050] Figure 2 The overall block diagram of a block-based video decoder is given. First, the video bitstream is entropy decoded at the entropy decoding unit. The coding mode and prediction information are sent to the spatial prediction unit (if intra-frame coding and decoding are performed) or the temporal prediction unit (if inter-frame coding and decoding are performed) to form a prediction block. The residual transform coefficients are sent to the inverse quantization unit and the inverse transform unit to reconstruct the residual block. Then, the prediction block and the residual block are added together. The reconstructed block can be further loop filtered before it is stored in the reference picture repository. Then, the reconstructed video in the reference picture repository is sent out to drive the display device and to predict future video blocks.

[0051] The present disclosure focuses on improving and simplifying the existing reference picture resampling design supported in VVC. In the following, the current coding and decoding tools in VVC that are closely related to the technology proposed in the present disclosure are briefly reviewed.

[0052] Affine mode

[0053] In HEVC, only the translational motion model is applied for motion compensation prediction. In the real world, there are many kinds of motion, such as zooming in / out, rotation, perspective motion, and other irregular motions. In VVC, affine motion compensation prediction is applied in the following way: a flag is signaled for each inter-frame codec block to indicate whether the translational motion or affine motion model is applied for inter-frame prediction. In the current VVC design, for one affine codec block, two affine modes including 4-parameter affine mode and 6-parameter affine mode are supported.

[0054] The 4-parameter affine model has the following parameters: two parameters for translation motion in horizontal and vertical directions respectively, one parameter for scaling motion in these two directions, and one parameter for rotation motion. The horizontal scaling parameter is equal to the vertical scaling parameter. The horizontal rotation parameter is equal to the vertical rotation parameter. To achieve more efficient affine parameter signaling, in VVC, those affine parameters are derived by two MVs located at the top left and top right corners of the current block, which are also called control point motion vectors (CPMVs).

[0055] like Figure 4A and Figure 4B As shown, the affine motion field of the block is described by two control points MV(V0, V1).

[0056] Figure 4A A diagram of a 4-parameter affine model is shown. Figure 4B A diagram of a 4-parameter affine model is shown. Based on the control point motion, the motion field (v x ,v y ) is described as:

[0057]

[0058] The 6-parameter affine mode has the following parameters: two parameters for translation motion in the horizontal and vertical directions, one parameter for scaling motion and one parameter for rotation motion in the horizontal direction, one parameter for scaling motion and one parameter for rotation motion in the vertical direction. The 6-parameter affine motion model is encoded and decoded using three CPMVs.

[0059] Figure 5 A diagram of a 6-parameter affine model is shown. Figure 5 As shown, the three control points of a 6-parameter affine block are located at the top left, top right, and bottom left corners of the block. The motion at the top left control point is related to the translation motion, the motion at the top right control point is related to the horizontal rotation and scaling motion, and the motion at the bottom left control point is related to the vertical rotation and scaling motion. Compared with the 4-parameter affine motion model, the 6-parameter horizontal rotation and scaling motion may not be the same as those in the vertical direction. Assume (V0, V1, V2) is Figure 5 The motion vector (v x ,v y ) is exported as:

[0060]

[0061] In VVC, the CPMV of an affine codec block is stored in a separate buffer. The stored CPMV is only used to generate the affine CPMV predictor for affine merge mode (i.e., inheriting the affine CPMV from a neighboring affine block) and affine explicit mode (i.e., signaling the affine CPMV according to a prediction-based scheme). The sub-block MV derived from the CPMV is used for motion compensation, MV prediction of translation MV, and deblocking.

[0062] Similar to the motion compensation of conventional inter-frame blocks, the MV of each affine sub-block can point to a reference sample at a fractional sample position. In such a case, an interpolation filtering process is required to generate a reference sample at a fractional pixel position. In order to control the worst-case memory bandwidth requirement and the worst-case interpolation computational complexity, a 6-tap interpolation filter set is used for motion compensation of affine sub-blocks. Tables 1 and 2 illustrate the interpolation filters used for motion compensation of conventional inter-frame blocks and affine blocks, respectively. As can be seen, the 6-tap interpolation filter for affine mode is derived directly from the 8-tap filter by directly adding the two outermost filter coefficients on each side of the 8-tap filter for conventional inter-frame blocks into a single filter coefficient for the 6-tap filter, that is, the filter coefficients P0 and P5 in Table 2 are equal to the sum of the filter coefficients P0 and P1 in Table 1 and the sum of the filter coefficients P6 and P7, respectively.

[0063] Table 1 Luminance interpolation filter for conventional inter-frame blocks

[0064]

[0065] Table 2 Luminance interpolation filters for affine blocks

[0066]

[0067] Furthermore, for motion compensation of chroma samples, the same 4-tap interpolation filter (as illustrated in Table 3) used for regular inter blocks is used for affine blocks.

[0068] Table 3 Chroma interpolation filters for inter-frame blocks (i.e., affine blocks and non-affine blocks)

[0069]

[0070] Reference image resampling

[0071] Unlike HEVC, the emerging VVC standard supports fast resolution switching within a bitstream of the same content. Such a capability is called reference picture resampling (RPR) or adaptive resolution switching (ARC). In real-time video applications, allowing resolution changes within a coded video sequence without requiring the insertion of random access-supported pictures or intra-frame random access point (IRAP) pictures (such as IDR pictures or CRA pictures, etc.) can not only adapt the compressed video data to dynamic communication channel conditions, but also avoid the surge in bandwidth consumption caused by the relatively large size of IDR or CRA pictures. Specifically, the following typical user scenarios can benefit from the RPR feature:

[0072] Rate Adaptation in Video Telephony and Conferencing: To adapt the encoded video to changing network conditions, the encoder can adapt by encoding smaller resolution pictures when network conditions become worse so that the available bandwidth becomes lower. Currently, changing picture resolution can only be done after an IRAP picture; this has several problems. An IRAP picture of reasonable quality will be much larger than an inter-coded picture, and correspondingly more complex to decode: this costs time and resources. This is a problem in cases where a resolution change is requested by the decoder for loading reasons. It can also break low-latency buffering conditions, forcing the audio to resynchronize, and the end-to-end latency of the stream will be increased, at least temporarily. This will give a poor user experience.

[0073] Active speaker changes in multi-party video conferencing: For multi-party video conferencing, it is common for the active speaker to be displayed with a larger video size than the videos of the remaining conference participants. When the active speaker changes, the picture resolution for each participant also needs to be adjusted. When such active speaker changes occur frequently, the need to have an ARC feature becomes more important.

[0074] Fast start in streaming: For streaming applications, it is common for the application to buffer decoded pictures up to a certain length before starting display. Starting a bitstream with a smaller resolution will allow the application to have enough pictures in the buffer to start display faster.

[0075] 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, such as 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 these two representations at CRA pictures with associated RASL pictures can be performed, and the RASL pictures associated with the switch at the CRA pictures can be decoded with acceptable quality, enabling seamless switching. With ARC, the @mediaStreamStructureId feature will also be available for switching between DASH representations with different spatial resolutions.

[0076] At the 15th JVET meeting, the VVC standard officially supported the RPR feature. The main aspects of the existing RPR design in VVC are summarized as follows:

[0077] RPR High-level Signaling

[0078] According to the current RPR design, in the sequence parameter set (SPS), two syntax elements pic_width_max_in_luma_samples and pic_height_max_in_luma_samples are signaled to specify the maximum width and height of the codec picture referencing the SPS. Thus, when the picture resolution changes, a new picture parameter set (PPS) needs to be set when the relevant syntax elements pic_width_in_luma_samples and pic_height_in_luma_samples are signaled to specify different picture resolutions for pictures referencing the PPS. There is bitstream consistency, i.e., the values ​​of pic_width_in_luma_samples and pic_height_in_luma_samples should not exceed the values ​​of pic_width_max_in_luma_samples and pic_height_max_in_luma_samples. Table 4 illustrates the RPR related signaling in the SPS and PPS.

[0079] Table 4 RPR signaling in SPS and PPS

[0080]

[0081] Reference image resampling process

[0082] When there is a resolution change within a bitstream, the current picture may have one or more reference pictures of different sizes. According to the current RPR design, when the picture resolution changes, all MVs of the current picture are normalized to the sample grid of the current picture instead of the sample grid of the reference picture. This can make the picture resolution change transparent to the MV prediction process.

[0083] When the picture resolution changes, in addition to the MV, samples in a reference block must be upsampled / downsampled during motion compensation of the current block. In VVC, the scaling ratios, refPicWidthInLumaSample / picWidthInLuma and refPicHeightInLumaSample / picHeightInLumaSample, are limited to the range [1 / 8, 2].

[0084] In the current RPR design, when the current picture and its reference picture are at different resolutions, different interpolation filters are applied to interpolate the reference samples. Specifically, when the resolution of the reference picture is equal to or less than the resolution of the current picture, the default 8-tap and 4-tap interpolation filters are used to generate inter-frame prediction samples of luminance and chrominance samples, respectively. However, the default motion interpolation filter does not present a strong low-pass characteristic. When the resolution of the reference picture is higher than the resolution of the current picture, the use of the default motion interpolation filter will result in non-negligible aliasing, which becomes more serious when the downsampling ratio increases. Therefore, in order to improve the inter-frame prediction efficiency of RPR, when the reference picture has a higher resolution than the current picture, two different downsampling filter sets are applied. In detail, when the downsampling ratio is equal to or greater than 1.5:1, the following 8-tap and 4-tap Lanczos filters as shown in Tables 5 and 6 are used.

[0085] Table 5 Luminance interpolation filter when the downsampling ratio is equal to or greater than 1.5:1

[0086]

[0087] Table 6 Chroma interpolation filter when the downsampling ratio is equal to or greater than 1.5:1

[0088]

[0089] When the downsampling ratio is equal to or greater than 2:1, the following 8-tap and 4-tap downsampling filters (as shown in Tables 7 and 8) derived by applying a cosine window function to a 12-tap SHM downsampling filter are used.

[0090] Table 7 Luminance interpolation filter when the downsampling ratio is equal to or greater than 2:1

[0091]

[0092] Table 8 Chroma interpolation filter when the downsampling ratio is equal to or greater than 2:1

[0093]

[0094] Finally, the above downsampling filters are only applied to generate luma and chroma prediction samples for non-affine inter blocks. For affine mode, the default 8-tap and 4-tap motion interpolation filters are still applied for downsampling.

[0095] Problems in existing RPR designs

[0096] The goal of the present disclosure is to improve the coding efficiency of the affine mode when applying RPR. Specifically, the following problems of the existing RPR design in VVC are identified:

[0097] First, as previously discussed, when the resolution of the reference picture is higher than the resolution of the current picture, only additional downsampling filters are applied to motion compensation in non-affine mode. For affine mode, 6-tap and 4-tap motion interpolation filters are applied. Assuming that those filters are derived from the default motion interpolation filters, they do not exhibit strong low-pass characteristics. Therefore, compared with non-affine mode, the predicted samples of affine mode will exhibit more severe aliasing artifacts due to the famous Nyquist-Shannon sampling theorem. In this way, in order to achieve better codec performance, it is desirable to apply appropriate low-pass filters to motion compensation in affine mode when downsampling is required.

[0098] Second, according to the existing RPR design, the fractional pixel position of the reference sample is determined based on the position of the current sample, the MV, and the resolution scaling ratio between the reference picture and the current picture. Therefore, when downsampling of the reference block is applied, this results in higher memory bandwidth consumption and computational complexity to interpolate the reference samples of the current block. Assume that the size of the current block is M (width) × N (height). When the reference picture size is the same as the current picture, integer samples of size (M+7) × (N+7) need to be accessed in the reference picture, and motion compensation of the current block requires 8 × (M × (N+7)) + 8 × M × N multiplications. If the downsampling scaling ratio is s, then the corresponding memory bandwidth and multiplications increase to (s × M + 7) × (s × N + 7) and 8 × (M × (s × N + 7)) + 8 × M × N. Tables 9 and 10 compare the number of integer samples and the number of multiplications per sample for motion compensation of different block sizes when the RPR downsampling scaling ratios are 1.5X and 2X, respectively. In Tables 9 and 10, the columns under the name "RPR 1X" correspond to the case where the resolution of the reference picture and the current picture are the same, i.e., when RPR is not applied. The column "Ratio to RPR 1X" depicts the corresponding ratio of memory bandwidth / multiplications when the RPR downsampling ratio is greater than 1 to the corresponding worst-case number in conventional inter-frame mode without RPR (i.e., 16×4 bidirectional prediction). As can be seen, there is a significant increase in memory bandwidth and computational complexity when the reference picture has a higher resolution than the current picture, compared to the worst-case complexity of conventional inter-frame prediction. The peak increase comes from 16×4 bidirectional prediction, where the memory bandwidth and number of multiplications are 231% and 127% of the memory bandwidth and number of multiplications of the worst-case bidirectional prediction.

[0099] Table 9 Memory bandwidth consumption per sample when RPR ratio is 1.5X and 2X

[0100]

[0101] Table 10 Number of multiplications per sample when the RPR ratio is 1.5X and 2X

[0102]

[0103] Third, in the existing RPR design, VVC only supports adaptive switching of the resolution of pictures within the same bitstream, while the bit depth used to encode and decode the video sequence remains the same. However, according to the "Requirements for Future Video Codec Standards" of CfP used to publish the VVC standard, it is clearly stated that "this standard should support fast representation switching in the case of adaptive streaming services that provide multiple representations of the same content, each with different attributes (such as spatial resolution or sample bit depth)". In actual video applications, due to single instruction multiple data (SIMD) operations, allowing the codec bit depth within the encoded video sequence to be changed can provide more flexible performance / complexity tradeoffs for video encoders / decoders, especially for software codec implementations.

[0104] RPR codec improvement

[0105] In this disclosure, a solution is proposed to improve the efficiency of RPR encoding and decoding in VVC and reduce its memory bandwidth and computational complexity. More specifically, the technology proposed in this disclosure can be summarized as follows:

[0106] First, in order to improve the RPR coding efficiency in affine mode, a new low-pass interpolation filter is proposed to replace the existing 8-tap luminance and 4-tap chrominance interpolation filters used for affine when the resolution of the reference picture is higher than the current picture, that is, when downsampling is required.

[0107] Second, to simplify RPR, it is proposed to disable RPR-based inter prediction for certain CU sizes, which result in significant increases in memory bandwidth and computational complexity compared to the conventional inter mode where RPR is not applied.

[0108] Thirdly, a method is proposed that allows dynamic variation of the internal bit depth used to encode and decode a video sequence.

[0109] Downsampling filter for affine mode

[0110] As mentioned above, regardless of whether the resolution of the current picture and its reference picture is the same, the default 6-tap and 4-tap motion interpolation filters are always applied to the affine mode. Like the interpolation filters used in HEVC, the default motion interpolation filter in VVC does not exhibit a strong low-pass characteristic. When the spatial scaling ratio is close to 1, the default motion interpolation filter can provide acceptable prediction sample quality. However, when the resolution downsampling ratio from the reference picture to the current picture becomes larger, based on the Nyquist-Shannon sampling theorem, if the same default motion interpolation filter is used, the aliasing artifacts will become much more serious. In particular, when the applied MV points to the reference sample at an integer sample position, the default motion interpolation does not apply any filtering operation at all. This may result in a significant degradation in the quality of the predicted samples for the affine block.

[0111] In order to mitigate the aliasing artifacts caused by downsampling, according to the present disclosure, it is proposed to use a different interpolation filter with a stronger low-pass characteristic to replace the existing default 6-tap / 4-tap interpolation filter for motion compensation in affine mode. In addition, in order to maintain the same memory bandwidth and computational complexity as the conventional motion compensation process, the proposed downsampling filter length is the same as the existing interpolation filter used for affine mode, that is, 6 taps for luminance component and 4 taps for chrominance component.

[0112] Figure 7 A method for decoding a video signal is shown. The method can be applied, for example, to a decoder.

[0113] In step 710 , the decoder may obtain a reference picture I associated with a video block within a video signal.

[0114] In step 712, the decoder may obtain a reference sample I(i, j) of the video block from a reference block in a reference picture I. i and j may represent, for example, the coordinates of a sample within the video block.

[0115] In step 714, when the video block is encoded and decoded in non-affine inter mode and the resolution of the reference picture I is greater than the resolution of the current picture, the decoder can obtain a first downsampling filter and a second downsampling filter to generate luma and chroma inter prediction samples of the video block, respectively.

[0116] In step 716, when the video block is encoded and decoded by affine mode and the resolution of the reference picture is greater than the resolution of the current picture, the decoder may obtain a third downsampling filter and a fourth downsampling filter to generate luma and chroma inter-frame prediction samples of the video block, respectively.

[0117] In step 718, the decoder may obtain inter-frame prediction samples of the video block based on the third and fourth down-sampling filters being applied to the reference samples I(i, j).

[0118] Affine Luminance Downsampling Filter

[0119] There are several ways to derive the luma downsampling filter for affine mode.

[0120] Method 1: In one or more embodiments of the present disclosure, it is proposed to directly derive the luma downsampling filter of the affine mode from the existing luma downsampling filter of the conventional inter-frame mode (i.e., non-affine mode). Specifically, through this method, a new 6-tap luma downsampling filter is derived from the 8-tap luma downsampling filter in Table 5 (for scaling ratio 1.5X) and Table 7 (for scaling ratio 2X) in the following manner: the two leftmost / rightmost filter coefficients of the 8-tap filter are added together to become a single filter coefficient for the 6-tap filter. Tables 11 and 12 illustrate the proposed 6-tap luma downsampling filter when the spatial scaling ratio is 1.5:1 and 2:1, respectively.

[0121] Table 11 6-tap luma downsampling filter with scaling equal to or greater than 1.5:1

[0122]

[0123] Table 12 6-tap luma downsampling filter when scaling ratio equal to or greater than 2:1

[0124]

[0125] Method 2: In one or more embodiments of the present disclosure, it is proposed to directly derive a 6-tap affine downsampling filter from an SHM filter derived based on a cosine windowed sinc function. Specifically, in this method, the affine downsampling filter is derived based on the following equation:

[0126]

[0127] Where L is the filter length and h(n) is the frequency response of an ideal low-pass filter, which is calculated as:

[0128] h(n)=s·f c ·sinc(s·f c ·n),n=-∞,…,+∞ (4)

[0129] f c is the cutoff frequency, s is the scaling factor. w(n) is the cosine window function, which is defined as:

[0130]

[0131] In one example, assuming f is 0.9 and L=6, Tables 13 and 14 illustrate the 6-tap luma downsampling derived when the spatial scaling ratios are 1.5X (ie, s=1.5) and 2X (ie, s=2).

[0132] Table 136 Tapped Luminance Downsampling Filter, Scaling Ratio Equal to or Greater than 1.5:1

[0133]

[0134] Table 14 6-tap luminance downsampling filter when the scaling ratio is equal to or greater than 2:1

[0135]

[0136] It should be noted that in Tables 13 and 14, the filter coefficients are derived with a precision of 7-bit symbol variables, which remains the same as the downsampling filter used in the RPR design.

[0137] Figure 8 A method for decoding a video signal is shown. The method can be applied, for example, to a decoder.

[0138] In step 810 , the decoder may obtain a frequency response of an ideal low pass filter based on the cutoff frequency and the scaling factor.

[0139] In step 812, the decoder may obtain a cosine window function based on the filter length.

[0140] In step 814, the decoder may obtain a third down-sampling filter based on the frequency response and the cosine window function.

[0141] Affine Chroma Downsampling Filter

[0142] In the following, three methods are proposed to downsample the chroma reference block when the resolution of the reference picture is higher than that of the current picture.

[0143] Method 1: In the first method, it is proposed to reuse the existing 1.5X (Table 6) and 2X (Table 8) 4-tap chroma downsampling filters designed for non-affine mode at RPR for downsampling of reference samples for affine mode.

[0144] Method 2: In the second method, it is proposed to reuse the default 4-tap chroma interpolation filter (Table 3) to downsample the reference samples of the affine mode.

[0145] Method 3: In the third method, it is proposed to derive a chroma downsampling filter based on a cosine windowed sinc function as depicted in (3)-(5). Tables 15 and 16 depict the derived 4-tap chroma downsampling filters with scaling of 1.5X and 2X, respectively, assuming that the cutoff frequency of the cosine windowed sinc function is 0.9.

[0146] Table 15 4-tap chroma downsampling filter with scaling equal to or greater than 1.5:1

[0147]

[0148] Table 16 4-tap chroma downsampling filter with scaling equal to or greater than 2:1

[0149]

[0150] Constrained block size for RPR mode

[0151] As analyzed in the "Problem Statement" section, when downsampling occurs, the existing RPR brings a significant increase in complexity (e.g., the number of integer samples accessed for motion compensation and the number of multiplications required). Specifically, the memory bandwidth and the number of multiplications required when downsampling the reference block are 231% and 127% of the worst-case bidirectional prediction.

[0152] In one or more embodiments, it is proposed that when the resolution of the reference picture is higher than the resolution of the current picture, bidirectional prediction is disabled during inter-frame prediction for certain block shapes, such as 4×N, N×4, and / or 8×8 (but unidirectional prediction is still allowed). Tables 17 and 18 show the corresponding per-sample memory bandwidth and number of multiplications when bidirectional prediction is disabled for 4×N, N×4, and 8×8 block sizes during inter-frame prediction using RPR. As can be seen, with the proposed constraints, the memory bandwidth and number of multiplications are reduced to 130% and 107% of the worst-case bidirectional prediction for 1.5X downsampling and 116% and 113% of the worst-case bidirectional prediction for 2X downsampling.

[0153] Table 17 Memory bandwidth consumption per sample after applying block size constraint for RPR for downsampling ratios of 1.5X and 2X

[0154]

[0155] Table 18 Number of multiplications per sample when applying block size constraints to RPR for downsampling ratios of 1.5X and 2X

[0156]

[0157] Although in the above example, RPR mode bidirectional prediction is disabled only for 4×N, N×4 and 8×8 block sizes, for technicians who have mastered the most advanced modern video technology, the proposed constraints still apply to other block sizes and inter-frame coding modes (such as unidirectional / bidirectional prediction, merge / non-merge mode, etc.).

[0158] Adaptive bit depth switching

[0159] In the existing RPR design, VVC only supports adaptive switching of picture resolution within the same bitstream, while the bit depth used to encode and decode the video sequence remains the same. However, as analyzed earlier, allowing the switching of codec bit depth within the same bitstream can provide more flexibility for actual codec / decoder devices and provide different trade-offs between codec performance and computational complexity.

[0160] In this section, an adaptive bit depth switching (ABS) method is proposed to allow changing the intra-codec bit depth without requiring the introduction of an IRAP picture such as an Instantaneous Decoder Refresh (IDR) picture or the like.

[0161] Figure 6 A hypothetical example is depicted where a current picture 620 and its reference pictures 610 and 630 are encoded at different intra bit depths. Figure 6 A reference picture 610Ref0 decoded with 8-bit codec, a current picture 620 decoded with 10-bit codec, and a reference picture 630Ref1 decoded with 12-bit codec are shown. Specifically, in the following, high-level syntax signaling and modification of the motion compensation process are proposed for the current VVC framework in order to support the proposed ABS capability.

[0162] High-level ABS signaling

[0163] For the proposed ABS signaling, in the SPS, a new syntax element sps_max_bit_depth_minus8 is proposed to replace the existing bit depth syntax element bit_depth_minus8 that specifies the maximum intra codec bit depth for pictures of the codec referencing the SPS. Then, when the codec bit depth is changed, a new PPS syntax pps_bit_depth_minus8 is sent to specify the different codec bit depth of the pictures referencing the PPS.

[0164] There is bitstream consistency, ie the value of pps_bit_depth_minus8 shall not exceed the value of sps_max_bit_depth_minus8. Table 19 illustrates the proposed ABS signaling in SPS and PPS.

[0165] Table 19 Proposed ABS signaling in SPS and PPS

[0166]

[0167] Prediction sample bit depth adjustment

[0168] When there is a codec bit depth change within a codec video sequence, a current picture can be predicted from another reference picture whose reconstructed samples are represented with a different bit depth precision. When this happens, the prediction samples generated from the motion compensation of the reference picture should be adjusted to the codec bit depth of the current picture.

[0169] Interaction with other codecs

[0170] Assuming that ABS is applied to the reference picture and the current picture can be represented with different precision, some existing codec tools in VVC that use reference samples to derive certain codec parameters may not work properly. For example, in the current VVC, bidirectional optical flow (BDOF) and decoder-side motion vector correction (DMVR) are two decoder-side techniques that use temporal prediction samples to improve inter-frame coding and decoding efficiency. Specifically, the BDOF tool uses L0 and L1 prediction samples to calculate sample-by-sample correction to improve the quality of prediction samples, while DMVR relies on L0 and L1 prediction samples to correct motion vector accuracy at the sub-block level. Based on the above considerations, it is proposed to always bypass the BDOF and DMVR processes for an inter-frame block when either of the two prediction signals is encoded and decoded with a bit depth different from the current picture.

[0171] Fig. 9 A computing environment 910 coupled to a user interface 960 is shown. The computing environment 910 may be part of a data processing server. The computing environment 910 includes a processor 920, a memory 940, and an I / O interface 950.

[0172] The processor 920 typically controls the overall operation of the computing environment 910, such as operations associated with display, data acquisition, data communication, and image processing. The processor 920 may include one or more processors that execute instructions to perform all or some steps of the above method. Moreover, the processor 920 may include one or more modules that facilitate the interaction between the processor 920 and other components. The processor may be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, a GPU, etc.

[0173] The memory 940 is configured to store a variety of different types of data to support the operation of the computing environment 910. The memory 940 may include predetermined software 942. Examples of such data include instructions for any application or method running on the computing environment 910, video data sets, image data, etc. The memory 940 may be implemented using any type of volatile or non-volatile memory device, or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk.

[0174] The I / O interface 950 provides an interface between the processor 920 and peripheral interface modules such as a keyboard, a click wheel, buttons, etc. The buttons may include, but are not limited to, a home button, a start scanning button, and a stop scanning button. The I / O interface 950 may be coupled to an encoder and a decoder.

[0175] In one embodiment, a non-transitory computer-readable storage medium is also provided, including a plurality of programs for performing the above-mentioned method, such as contained in the memory 940 and executable by the processor 920 in the computing environment 910. For example, the non-transitory computer-readable storage medium may be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

[0176] The non-transitory computer-readable storage medium stores therein a plurality of programs for execution by a computing device having one or more processors, wherein the plurality of programs, when executed by the one or more processors, causes the computing device to perform the above-mentioned method for motion prediction.

[0177] In one embodiment, the computing environment 910 can be implemented using one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), graphics processing units (GPUs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above methods.

[0178] The description of the present disclosure has been given for purposes of illustration and is not intended to be exhaustive or limited to the present disclosure. Many modifications, variations, and alternative implementations will be apparent to those of ordinary skill in the art having the benefit of the teachings presented in the foregoing description and the associated drawings.

[0179] Examples are selected and described in order to explain the principles of the present disclosure and enable those skilled in the art to understand the present disclosure in terms of various implementations and to best utilize the underlying principles and different implementations with different modifications suitable for the specific purposes contemplated. Therefore, it should be understood that the scope of the present disclosure should not be limited to the specific examples of the disclosed implementations, and modifications and other implementations are intended to be included within the scope of the present disclosure.

Claims

1. A method for decoding a video signal, comprising: determining a reference picture associated with a video block within a video signal; Obtaining a reference sample of a video block from the reference picture; determining a luma interpolation filter for a video block encoded in an affine motion mode based on a scaling ratio derived from resolutions of a current picture and a reference picture, wherein a first filter coefficient of the luma interpolation filter is equal to a sum of first two filter coefficients of a first luma interpolation filter, a last filter coefficient of the luma interpolation filter is equal to a sum of last two filter coefficients of the first luma interpolation filter, and other filter coefficients of the luma interpolation filter are correspondingly equal to other filter coefficients of the first luma interpolation filter in order, wherein the first luma interpolation filter is used for a video block encoded in a non-affine motion mode when the scaling ratio is equal to or greater than a first value; as well as Luma inter-prediction samples for the video block are obtained by applying the luma interpolation filter to the reference samples.

2. The method of claim 1, wherein the determining, based on the scaling, a luma interpolation filter for a video block encoded in an affine motion mode comprises: determining a second luma interpolation filter as a luma interpolation filter for a video block encoded in an affine motion mode in response to the scaling being equal to or greater than a first value, The second luma interpolation filter is different from a third luma interpolation filter used for video blocks encoded in affine motion mode when the scaling factor is not equal to or greater than the first value.

3. The method of claim 1, further comprising: determining a chroma interpolation filter for a video block encoded in an affine motion mode based on a comparison between resolutions of the reference picture and the current picture; as well as Chroma inter-prediction samples for the video block are obtained by applying the chroma interpolation filter to the reference samples.

4. A computing device comprising: one or more processors; as well as A non-transitory computer-readable storage medium storing instructions executable by the one or more processors, wherein the one or more processors are configured to implement the method according to any one of claims 1 to 3 when executing the instructions.

5. A non-transitory computer-readable storage medium storing a plurality of programs for execution by a computing device having one or more processors, wherein the plurality of programs, when executed by the one or more processors, causes the computing device to execute the method as described in any one of claims 1-3 and store a bit stream to be decoded according to the method as described in any one of claims 1-3.

6. A computer program product comprising instructions, which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 3.

7. A non-transitory computer-readable storage medium storing a bit stream to be decoded according to the method of any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method and apparatus for encoding / decoding scalable video signal

    CN105379277A

  • Intra block copy mode for screen content coding

    CN107646195A

  • Method and apparatus of adaptive inter prediction in video coding

    CN108028931A

  • Reference picture prediction for video coding

    US20100246680A1