A method for encoding a video signal, a video encoding device, a non-transitory computer-readable storage medium, a computer program and a method for storing a bitstream.

The introduction of new interpolation filters and adaptive bit depth switching in video encoding addresses inefficiencies in VVC's reference picture resampling, enhancing coding efficiency and user experience by reducing aliasing and complexity.

JP7565398B2Active Publication Date: 2024-10-10BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023032279
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-12-24
Filing Date
2023-03-02
Publication Date
2024-10-10
Estimated Expiration
2040-12-24

AI Technical Summary

Technical Problem

Existing video encoding standards like VVC face inefficiencies in reference picture resampling, particularly in affine modes, leading to aliasing artifacts and increased computational complexity due to inadequate downsampling filters and bit depth limitations.

Method used

Implementing new low-pass interpolation filters for affine modes and allowing adaptive bit depth switching within video sequences to reduce aliasing and computational complexity, while supporting flexible resolution and bit depth changes.

Benefits of technology

Improves coding efficiency by reducing aliasing artifacts and computational complexity, enabling seamless resolution and bit depth adaptations in video encoding, enhancing user experience in real-time applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007565398000025
    Figure 0007565398000025
  • Figure 0007565398000026
    Figure 0007565398000026
  • Figure 0007565398000027
    Figure 0007565398000027
Patent Text Reader

Abstract

A method for encoding a video signal is provided that reduces memory bandwidth and computational complexity. [Solution] A method for encoding a video signal includes determining a reference picture associated with a video block in the video signal, obtaining reference samples of the video block from the reference picture, determining a luma interpolation filter for the video block to be encoded in an affine motion mode based on a scaling ratio obtained from the resolutions of the reference picture and a current picture, and obtaining luma inter-prediction samples of the video block by applying the luma interpolation filter to the reference samples of the video block.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

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

[0002] FIELD OF THE DISCLOSURE This disclosure relates to video encoding and compression. More specifically, this disclosure relates to methods and apparatus for reference picture resampling techniques for video encoding. [Background technology]

[0003] Various video coding techniques can be used to compress the video data. The video coding is performed according to one or more video coding standards. For example, video coding standards include Generalized Video Coding (VVC), Joint Search Model (JEM), High Efficiency Video Coding (H.265 / HEVC), Advanced Video Coding (H.264 / AVC), Moving Picture Experts Group (MPEG) coding, etc. Video coding typically uses prediction methods (e.g., inter-prediction, intra-prediction, etc.) that exploit redundancy present in a video image or sequence. One important goal of video coding techniques is to compress the video data into a format that uses a relatively low bit rate while avoiding or minimizing degradation of video quality. Summary of the Invention

[0004] Examples of this disclosure provide a method and apparatus for resampling a reference picture.

[0005] 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 the 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 coordinates of one sample in the video block. If the video block is coded in a non-affine inter 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 downsampling filter and a second downsampling filter to generate luma inter prediction samples and chroma inter prediction samples of the video block, respectively. If the video block is coded in 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 downsampling filter and a fourth downsampling filter to generate luma inter prediction samples and chroma inter prediction samples of the video block, respectively. The decoder may further obtain an inter prediction sample of the video block based on the application of the third and fourth downsampling filters to the reference sample I(i,j).

[0006] 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-transitory computer-readable memory on which instructions executable by the one or more processors are stored. 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 reference samples I(i,j) of the video block from a reference block in the reference picture I, where i and j may represent coordinates of one sample in the video block. The one or more processors may further be configured to obtain a first downsampling filter and a second downsampling filter to generate luma inter-predicted samples and chroma inter-predicted samples of the video block, respectively, when the video block is coded in a non-affine inter mode and a resolution of the reference picture I is greater than a resolution of a current picture. The one or more processors may also be configured to derive a third downsampling filter and a fourth downsampling filter to generate luma inter predicted samples and chroma inter predicted samples of the video block, respectively, when the video block is coded in affine mode and a resolution of the reference picture is greater than a resolution of the current picture. The one or more processors may be further configured to derive inter predicted samples of the video block based on the third and fourth downsampling filters being applied to the reference samples I(i,j).

[0007] According to a third aspect of the disclosure, a non-transitory computer-readable storage medium having instructions stored thereon is provided. When these instructions are executed by one or more processors of the device, the instructions can cause the device to obtain a reference picture I associated with a video block in a video signal. The instructions can 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 coordinates of one sample in the video block. The instructions can further cause the device to obtain a first downsampling filter and a second downsampling filter to generate luma inter prediction samples and chroma inter prediction samples of the video block, respectively, when the video block is coded in a non-affine inter mode and the resolution of the reference picture I is greater than the resolution of the current picture. The instructions can also cause the device to obtain a third downsampling filter and a fourth downsampling filter to generate luma inter prediction samples and chroma inter prediction samples of the video block, respectively, when the video block is coded in an affine mode and the resolution of the reference picture is greater than the resolution of the current picture. The instructions may further cause the apparatus to obtain inter-predicted samples of the video block based on the third and fourth downsampling filters applied to the reference samples I(i,j).

[0008] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the present disclosure. [Brief description of the drawings]

[0009] 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 disclosure.

[0010] [Figure 1] FIG. 1 is a block diagram of an encoder according to an example of the present disclosure. [Diagram 2]FIG. 2 is a block diagram of a decoder according to an example of the present disclosure. [Figure 3A] FIG. 3A is a diagram illustrating block division of a multi-type tree structure according to an example of the present disclosure. [Figure 3B] FIG. 3B is a diagram illustrating block division of a multi-type tree structure according to an example of the present disclosure. [Figure 3C] FIG. 3C is a diagram illustrating block division of a multi-type tree structure according to an example of the present disclosure. [Figure 3D] FIG. 3D is a diagram illustrating block division of a multi-type tree structure according to an example of the present disclosure. [Figure 3E] FIG. 3E is a diagram illustrating block division of a multi-type tree structure according to an example of the present disclosure. [Figure 4A] FIG. 4A is a diagrammatic representation of a four-parameter affine model according to one example of the present disclosure. [Figure 4B] FIG. 4B is a diagrammatic representation of a four-parameter affine model according to one example of the present disclosure. [Diagram 5] FIG. 5 is a diagram of a six-parameter affine model according to one example of the present disclosure. [Figure 6] FIG. 6 is a diagram of adaptive bit depth switching according to an example of the present disclosure. [Figure 7] FIG. 7 is a method for decoding a video signal according to an example of the present disclosure. [Figure 8] FIG. 8 is a method for decoding a video signal according to an example of the present disclosure. [Figure 9] FIG. 9 is a diagram illustrating a computing environment coupled to a user interface according to an example of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

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

[0012] The terms used in this disclosure are intended only to describe certain 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" are also intended to include the plural forms, unless the context clearly dictates otherwise. It is also to be understood that the term "and / or" used herein is intended to represent and encompasses any or all possible combinations of one or more associated listed items.

[0013] The terms "first," "second," "third," etc. may be used herein to describe various pieces of information, but it is further understood that such information should not be limited by these terms. These terms are used only to distinguish one category of information from another. For example, the first information may be referred to as the second information, and similarly, the second information may be referred to as the first information, without departing from the scope of this disclosure. As used herein, the term "if" may be understood to mean "when," "in the event of," or "at the discretion of" depending on the context.

[0014] The first version of the HEVC standard was completed in October 2013 and provides approximately 50% bitrate savings or equivalent perceived quality compared to the previous generation video coding standard H.264 / MPEG AVC. Although the HEVC standard provides significant coding improvements over its predecessors, there is evidence that better coding efficiency than HEVC can be achieved by utilizing additional coding tools. Based on this, both VECG and MPEG have begun exploration work on new coding techniques to standardize future video coding. The Joint Video Exploration Team (JVET) was formed by ITU-T VECG and ISO / IEC MPEG in October 2015 to initiate major research into advanced techniques that can achieve significant improvements in coding efficiency. One reference software, called the Joint Exploration Model (JEM), is supported by JVET by integrating several additional coding tools into the HEVC Test Model (HM).

[0015] 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, which exhibited approximately 40% higher compression efficiency gain than HEVC. Based on these evaluation results, JVET initiated a new project to develop a new generation video coding standard named Versatile Video Coding (VVC). In the same month, a reference software code base called VVC Test Model (VTM) was established to exhibit a reference implementation of the VVC standard.

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

[0017] Figure 1 shows an overview of a block-based video encoder for VVC. Specifically, Figure 1 shows an exemplary encoder 100. Encoder 100 includes a video input 110, motion compensation 112, motion estimation 114, intra / inter mode decision 116, block predictor 140, summer 128, transform 130, quantization 132, prediction related information 142, intra prediction 118, picture buffer 120, inverse quantization 134, inverse transform 136, summer 126, memory 124, in-loop filter 122, entropy coding unit 138, and bitstream 144.

[0018] At encoder 100, a video frame is divided into 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.

[0019] A prediction residual, which represents the difference between a current video block that is part of the video input 110 and its predictor (part of the block predictor 140), is sent from the summer 128 to a transform 130. The transform coefficients are then sent from the transform 130 to a quantizer 132 for entropy reduction. The quantized coefficients are then fed to an entropy coding unit 138 to generate a compressed video bitstream. As shown in FIG. 1, prediction related information 142 from the intra / inter mode decision 116, such as video block partition information, motion vectors (MVs), reference picture indexes, and intra prediction modes, are also fed through the entropy coding unit 138 and stored in a compressed bitstream 144. The compressed bitstream 144 comprises the video bitstream.

[0020] In the encoder 100, decoder-related circuitry is also required to reconstruct pixels for prediction. First, a prediction residual is reconstructed by inverse quantization 134 and inverse transform 136. The reconstructed prediction residual is combined with a block predictor 140 to generate unfiltered reconstructed pixels for the current video block.

[0021] Spatial prediction (or "intra prediction") predicts a current video block using pixels from samples (called reference samples) of previously coded neighboring blocks in the same video frame as the current video block.

[0022] Temporal prediction (also called "inter prediction") uses reconstructed pixels from a previously coded video picture to predict a current video block. Temporal prediction reduces the temporal redundancy inherent in video signals. The temporal prediction signal for a given coding unit (CU) or coding block is typically signaled by one or more MVs, which indicate the amount and direction of motion between the current CU and its temporal references. In addition, when multiple reference pictures are supported, one reference picture index is additionally transmitted, which is used to identify which reference picture in the reference picture store the temporal prediction signal comes from.

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

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

[0025] FIG. 1 gives a block diagram of a general block-based hybrid video encoding system. An input video signal is processed by blocks (called CUs). In VVC, a CU can be as large as 128x128 pixels. However, unlike HEVC, which divides blocks based only on quadtrees, in VVC, one coding tree unit (CTU) is divided into several CUs based on quad / bi / tert-trees to adapt to changing local characteristics. Also, the concept of multi-partition unit types in HEVC is removed, i.e., there is no longer a separation of CUs, prediction units (PUs) and transform units (TUs) in VVC, instead, each CU is always used as a basic unit for both prediction and transformation, without further division. In the multi-type tree structure, one CTU is first divided by a quadtree structure. Then, the leaf nodes of each quadtree may be further divided by bi and tert-tree structures.

[0026] As shown in Figures 3A, 3B, 3C, 3D and 3E, there are five division types, namely, 4-way division, horizontal 2-way division, vertical 2-way division, horizontal 3-way division and vertical 3-way division.

[0027] FIG. 3A shows a diagram illustrating a quaternary division of a block in a multi-type tree structure according to the present disclosure.

[0028] FIG. 3B shows a diagram illustrating vertical binary division of blocks in a multi-type tree structure according to the present disclosure.

[0029] FIG. 3C shows a diagram illustrating horizontal binary division of blocks in a multi-type tree structure according to the present disclosure.

[0030] FIG. 3D shows a diagram illustrating a vertical ternary division of a block in a multi-type tree structure according to the present disclosure.

[0031] FIG. 3E shows a diagram illustrating a horizontal ternary partitioning of blocks in a multi-type tree structure according to the present disclosure.

[0032] In FIG. 1, spatial prediction and / or temporal prediction can be performed. Spatial prediction (or "intra prediction") predicts a current video block using pixels from samples (called reference samples) of previously coded neighboring blocks in the same video picture / slice. Spatial prediction reduces the inherent spatial redundancy in a video signal. Temporal prediction (also called "inter prediction" or "motion compensated prediction") predicts a current video block using reconstructed pixels from previously coded video pictures. Temporal prediction reduces the inherent temporal redundancy in a video signal. A temporal prediction signal for a given CU is typically signaled by one or more MVs, which indicate the amount and direction of motion between the current CU and its temporal references. Also, when multiple reference pictures are supported, one reference picture index is additionally transmitted, which is used to identify which reference picture in the reference picture store the temporal prediction signal is from. After spatial and / or temporal prediction, a mode decision block in the encoder selects the optimal prediction mode, for example based on a rate-distortion optimization method. The prediction block is then subtracted from the current video block, and the prediction residual is decorrelated using transform and quantization. The quantized residual coefficients are inverse quantized and inverse transformed to form a reconstructed residual, which is then added to the prediction block to form a reconstructed signal of the CU. Furthermore, in-loop filtering, such as a deblocking filter, SAO and ALF, may be applied to the reconstructed CU before it is placed in a reference picture store and used to encode future video blocks. To form an output video bitstream, the coding mode (inter or intra), prediction mode information, motion information and the quantized residual coefficients are all sent to an entropy coding unit for further compression and packing to form a bitstream.

[0033] Figure 2 shows an overall block diagram of a video decoder for VVC. Specifically, Figure 2 shows a block diagram of an exemplary decoder 200. The decoder 200 includes a bitstream 210, an entropy decoding 212, an inverse quantization 214, an inverse transform 216, an adder 218, an intra / inter mode selector 220, an intra prediction 222, a memory 230, an in-loop filter 228, a motion compensation 224, a picture buffer 226, prediction related information 234, and a video output 232.

[0034] The decoder 200 is similar to the reconstruction related parts residing in the encoder 100 in Fig. 1. In the decoder 200, the incoming video bitstream 210 is first decoded by entropy decoding 212 to obtain quantized coefficient levels and prediction related information. The quantized coefficient levels are then processed by inverse quantization 214 and inverse transform 216 to obtain a reconstructed prediction residual. A block predictor mechanism implemented in an intra / inter mode selector 220 is arranged to perform intra prediction 222 or motion compensation 224 based on the decoded prediction information. A set of unfiltered reconstructed pixels is obtained by summing the reconstructed prediction residual from the inverse transform 216 and the prediction output generated by the block predictor mechanism using an adder 218.

[0035] The reconstructed blocks may further pass through an in-loop filter 228 before being stored in a picture buffer 226, which acts as a reference picture store. The reconstructed image in the picture buffer 226 may be transmitted for driving a display device and for use in predicting future image blocks. In situations where the in-loop filter 228 is activated, it performs a filtering operation on these reconstructed pixels to obtain the final reconstructed image output 232.

[0036] FIG. 2 gives an overall block diagram of a block-based video decoder. First, the video bitstream is entropy decoded in an entropy decoding unit. The coding mode and prediction information are sent to a spatial prediction unit (intra-coding case) or a temporal prediction unit (inter-coding case) to form a prediction block. The residual transform coefficients are sent to an inverse quantization unit and an inverse transform unit to reconstruct the residual block. Then, the prediction block and the residual block are added. The reconstructed block may go through further in-loop filtering before being stored in a reference picture store. The reconstructed image in the reference picture store is then sent for driving a display device and for use in predicting future video blocks.

[0037] The focus of this disclosure is to improve and simplify the existing reference picture resampling design supported in VVC. In the following, we briefly review the current coding tools in VVC that are closely related to the techniques presented in this disclosure.

[0038] Affine Mode

[0039] In HEVC, only translational motion model is applied to motion compensated prediction. However, in the real world, there are many motion types, such as zoom, rotation, perspective motion, and other irregular motion. In VVC, affine motion compensated prediction is applied by signaling a flag for each inter-coded block to indicate whether translational motion or affine motion model is applied to inter prediction. In the current VVC design, two affine modes are supported for one affine-coded block, including a 4-parameter affine mode and a 6-parameter affine mode.

[0040] The four-parameter affine model has the following parameters: two parameters used for translational motion in horizontal and vertical directions respectively, one parameter used for scaling motion relative to these two directions, and one parameter used for rotational 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, these affine parameters are obtained by two MVs (also called control point motion vectors (CPMVs)) located at the top-left and top-right corners of the current block.

[0041] As shown in Figures 4A and 4B, the affine motion field of a block is described by two control points MV(V0, V1).

[0042] FIG. 4A shows a diagram of the four-parameter affine model. FIG. 4B shows a diagram of the four-parameter affine model. Based on the control point motion, the motion field (v x ,v y ) is explained as follows:

number

[0043] The 6-parameter affine mode has the following parameters: 2 parameters for horizontal and vertical translational motion, 1 parameter for horizontal scaling motion and 1 parameter for rotational motion, 1 parameter for vertical scaling motion and 1 parameter for rotational motion. The 6-parameter affine motion model is coded using 3 CPMVs.

[0044] FIG. 5 shows a diagram of a six-parameter affine model. As shown in FIG. 5, the three control points of one six-parameter affine block are located at the top left corner, the top right corner and the bottom left corner 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 four-parameter affine motion model, the six-parameter horizontal rotation and scaling motions may not be the same as those in the vertical direction. Suppose (V0, V1, V2) are the MVs of the top left corner, the top right corner and the bottom left corner of the current block in FIG. 5, and the three MVs at the control points are used to calculate the motion vector (v x ,v y ) is obtained as follows:

number

[0045] In VVC, the CPMV of an affine coded block is stored in a separate buffer. The stored CPMV is used only to generate the affine CPMV predictor in affine merge mode (i.e., inheriting affine CPMV from neighboring affine blocks) and affine explicit mode (i.e., signaling affine CPMV based on a prediction-based scheme). Sub-block MVs derived from the CPMV are used for motion compensation, MV prediction of translational MVs, and deblocking.

[0046] Similar to normal interblock motion compensation, the MV of each affine subblock may point to a reference sample at a fractional sample position. In such a case, an interpolation filtering process is required to generate the reference sample at the fractional pixel position. In order to control the worst-case memory bandwidth requirement and the worst-case computational complexity of the interpolation, a set of 6-tap interpolation filters is used for the motion compensation of the affine subblocks. Tables 1 and 2 respectively describe the interpolation filters used for the motion compensation of normal interblocks and affine blocks. As can be seen, the 6-tap interpolation filter for the affine mode is directly obtained from the 8-tap filter by directly adding the two outermost filter coefficients on each side of the 8-tap filter for normal interblocks to one single filter coefficient for the 6-tap filter, i.e., the filter coefficients P0 and P5 in Table 2 are equal to the sum of the filter coefficients P0 and P1 and the sum of the filter coefficients P6 and P7 in Table 1, respectively.

[0047] [Table 1]

[0048] [Table 2]

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

[0050] Reference Picture Resampling

[0051] Unlike HEVC, the emerging VVC standard supports rapid spatial resolution switching within one same content bitstream. Such capability is called Reference Picture Resampling (RPR) or Adaptive Resolution Switching (ARC). In real-time video applications, allowing resolution changes in one coded video sequence without the need to insert random access supporting pictures or Intra Random Access Point (IRAP) pictures (e.g., IDR pictures or CRA pictures, etc.) can not only allow compressed video data to adapt to dynamic communication channel conditions, but also avoid the sudden increase in bandwidth consumption due to the relatively large size of IDR or CRA pictures. Specifically, the following representative user scenarios can benefit from the RPR feature:

[0052] Rate adaptation in video telephony and conferencing. To adapt the coded video to changing network conditions, if the network conditions worsen and the available bandwidth becomes lower, the encoder can adapt by encoding pictures with smaller resolution. Currently, changing the resolution of pictures can only be done after IRAP pictures, which causes some problems. A reasonable quality IRAP picture is significantly larger than an inter-coded picture, and the decoding is correspondingly more complex, which consumes time and resources. This becomes a problem when the decoder requires a resolution change for loading. It can also break low-latency buffer conditions, forcing the audio to be resynchronized, and increasing the end-to-end delay of the stream, at least temporarily. This results in a worsened user experience.

[0053] Changes in active speakers in multi-party video conferences In a multi-way video conference, it is common for the active speaker to be shown with a larger image size than the remaining conference participants. When the active speaker changes, the picture resolution used for each participant must also be adjusted. When such active speaker changes occur frequently, the need for the ARC feature becomes even more important.

[0054] Get started quickly with streaming For streaming applications, it is common for the application to buffer up to a certain length of decoded pictures before starting to display them. Starting a bitstream with a relatively small resolution allows the application to have enough pictures in the buffer to start displaying sooner.

[0055] Adaptive stream switching in streaming - Patents.com The Dynamic Adaptive Streaming (DASH) standard in HTTP includes a feature called @mediaStreamStructureId, which allows to realize switching between different views at an open GOP random access point with a non-decodable first picture, which is e.g. a CRA picture with an associated RASL picture in HEVC. If two different views of the same video have different bit rates but the same spatial resolution and they have the same @mediaStreamStructureId value, it is possible to switch between the two views at a CRA picture with an associated RASL picture and decode the associated RASL picture to switch at the CRA picture with an acceptable quality, thereby realizing seamless switching. Using ARC, the @mediaStreamStructureId feature can also be used to switch between DASH views with different spatial resolutions.

[0056] At the 15th JVET conference, the RPR feature will be officially supported by the VVC standard. The main aspects of the existing RPR design in VVC can be summarized as follows:

[0057] RPR Advanced Signaling

[0058] According to the current RPR design, in a 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 a coded picture that references an SPS. Then, if the resolution of a picture changes, one new picture parameter set (PPS) needs to be configured when the related syntax elements pic_width_in_luma_samples and pic_height_in_luma_samples are signaled to specify a different picture resolution of a picture that references a PPS. There is bitstream compatibility, 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 describes the RPR-related signaling in SPS and PPS.

[0059] [Table 4]

[0060] Reference Picture Resampling

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

[0062] When the picture resolution changes, in addition to the MV, one more reference block sample must be unsampled / downsampled during the motion compensation of the current block. In VVC, the scaling ratio, i.e., refPicWidthInLumaSample / picWidthInLuma and refPicHeightInLumaSample / picHeightInLumaSample, is restricted to the range [1 / 8,2].

[0063] In the current RPR design, when the current picture and its reference picture have different resolutions, different interpolation filters are applied to interpolate the reference samples. Specifically, when the resolution of the reference picture is equal to or lower than that of the current picture, default 8-tap and 4-tap interpolation filters are used to generate inter-prediction samples of luma samples and chroma samples, respectively. However, the default motion interpolation filters do not exhibit strong low-pass characteristics. When the resolution of the reference picture is higher than that of the current picture, using the default motion interpolation filters will cause non-negligible aliasing, which becomes worse when the downsampling ratio increases. Therefore, in order to improve the inter-prediction efficiency of the RPR, when the reference picture has a higher resolution than the current picture, two different sets of downsampling filters are applied. In particular, when the downsampling ratio is 1.5:1 or higher, the 8-tap and 4-tap Lanczos filters shown in Tables 5 and 6 below are used.

[0064] [Table 5]

[0065] [Table 6]

[0066] When the downsampling ratio is 2:1 or more, the following 8-tap and 4-tap downsampling filters (shown in Tables 7 and 8) are used, which are obtained by applying a cosine window function to the 12-tap SHM downsampling filter. [Table 7]

[0067] [Table 8]

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

[0069] Problems with existing RPR designs

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

[0071] First, as discussed previously, when the resolution of the reference picture is higher than that of the current picture, an additional downsampling filter is applied only for non-affine mode motion compensation. For affine mode, 6-tap and 4-tap motion interpolation filters are applied. Assuming that these filters are derived from the default motion interpolation filters, they do not exhibit strong low-pass characteristics. Therefore, compared to non-affine mode, the predicted samples of affine mode exhibit more severe aliasing artifacts due to the famous Nyquist-Shannon sampling theorem. Thus, in order to achieve better coding performance, it is desired to also apply a suitable low-pass filter to affine mode motion compensation when downsampling is required.

[0072] Secondly, based on the existing RPR design, the fractional pixel location of the reference sample is determined based on the location 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, the reference sample of the current block is interpolated with higher memory bandwidth consumption and computational complexity. Assume that the dimension of the current block is M (width) x N (height). If the dimension of the reference picture is the same as that of the current picture, an integer sample with a dimension of (M+7) x (N+7) needs to be accessed in the reference picture, and 8 x (M x (N+7)) + 8 x M x N multiplications are required for the motion compensation of the current block. If the downsampling scaling ratio is s, the corresponding memory bandwidth and multiplications are increased to (s x M + 7) x (s x N + 7) and 8 x (M x (s x N + 7)) + 8 x M x N. In Tables 9 and 10, the number of integer samples and the number of multiplications per sample used in motion compensation for various block sizes are compared when the RPR downsampling scaling ratio is 1.5X and 2X, respectively. In Tables 9 and 10, the column named "RPR 1X" corresponds to the situation when the resolution of the reference picture and the current picture are the same, i.e., RPR is not applied. The column "Ratio with RPR 1X" depicts the corresponding ratio of memory bandwidth / multiplications when the RPR downsampling ratio is greater than 1 and the corresponding worst case number in normal inter mode without RPR (i.e., 16x4 bi-prediction). As can be seen, compared to the worst case complexity of normal inter prediction, the memory bandwidth and computational complexity increase significantly when the reference picture has a higher resolution than the current picture. The peak increase is due to 16x4 bi-prediction, where the memory bandwidth and the number of multiplications are 231% and 127% of the memory bandwidth and the number of multiplications of the worst case bi-prediction.

[0073] [Table 9]

[0074] [Table 10]

[0075] Third, in the existing RPR design, VVC only supports adaptive switching of picture resolution within one and the same bitstream, but keeps the bit depth for encoding a video sequence the same. However, the "Requirements for Future Video Coding Standards" for publishing the CfP of the VVC standard clearly explains that "this standard should support fast display switching in the case of adaptive streaming services that provide multiple views of the same content, each view having different attributes (e.g., spatial resolution or sample bit depth)." In practical video applications, allowing the coding bit depth to change within an encoded video sequence due to single instruction multiple data (SIMD) operations can provide a more flexible performance / complexity compromise for video encoders / decoders, especially software codec implementations.

[0076] Improvements to RPR coding

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

[0078] First, to improve the RPR coding efficiency of affine mode, a new low-pass interpolation filter is proposed to replace the existing 8-tap luma interpolation filter and 4-tap chroma interpolation filter for affine when the reference picture has a higher resolution than the current picture, i.e., when downsampling is required.

[0079] Second, to simplify RPR, it is proposed to disable RPR-based inter prediction for certain CU sizes, which would result in a significant increase in memory bandwidth and computational complexity compared to normal inter modes that do not apply RPR.

[0080] Third, a method is proposed that allows dynamic variation of the internal bit depth for encoding a video sequence.

[0081] Downsampling Filter for Affine Modes

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

[0083] In order to mitigate the aliasing artifacts due to downsampling, according to the present disclosure, it is proposed to replace the existing default 6-tap / 4-tap interpolation filter with a different interpolation filter that has stronger low-pass characteristics for affine mode motion compensation. Also, in order to keep the memory bandwidth and computational complexity the same as the normal motion compensation process, the proposed downsampling filter has the same length as the existing interpolation filter for affine mode, i.e., 6 taps are used for luma components and 4 taps are used for chroma components.

[0084] 7 shows a method for decoding a video signal, which may be applied in a decoder, for example.

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

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

[0087] In step 714, if the video block is coded 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 inter prediction samples and chroma inter prediction samples of the video block, respectively.

[0088] In step 716, if the video block is coded in affine mode and the resolution of the reference picture is greater than the resolution of the current picture, the decoder can obtain a third downsampling filter and a fourth downsampling filter to generate luma inter-prediction samples and chroma inter-prediction samples of the video block, respectively.

[0089] In step 718, the decoder may obtain inter-predicted samples of the video block based on the application of the third and fourth downsampling filters to the reference samples I(i,j).

[0090] Affine Luminance Downsampling Filter

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

[0092] Method 1 In one or more embodiments of the present disclosure, it is proposed to directly derive the luma downsampling filter of affine mode from the existing luma downsampling filter of normal inter mode (i.e. non-affine mode). Specifically, the method derives a new 6-tap luma downsampling filter from the 8-tap luma downsampling filters in Table 5 (used when the scaling ratio is 1.5X) and Table 7 (used when the scaling ratio is 2X) by respectively adding the two leftmost / rightmost filter coefficients of the 8-tap filter into one single filter coefficient for the 6-tap filter. Tables 11 and 12 describe the proposed 6-tap luma downsampling filters when the spatial scaling ratios are 1.5:1 and 2:1, respectively.

[0093] [Table 11]

[0094] [Table 12]

[0095] 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 obtained based on a cosine windowed sinc function. Specifically, in this method, the affine downsampling filter is obtained based on the following formula:

number

number

[0096] f cis the cutoff frequency, s is the scaling ratio, and w(n) is the cosine window function, which is defined as follows:

number

[0097] In one example, assuming f is 0.9 and L=6, Tables 13 and 14 describe the 6-tap luma downsampling obtained when the spatial scaling ratio is 1.5X (i.e., s=1.5) and 2X (i.e., s=2). [Table 13]

[0098] [Table 14]

[0099] It should be pointed out that in Tables 13 and 14, the filter coefficients are obtained with 7-bit sign variable precision, and the precision is maintained to be the same as the downsampling filter used in the RPR design.

[0100] 8 shows a method for decoding a video signal, which may be applied in a decoder, for example.

[0101] In step 810, the decoder can obtain an ideal low-pass filter frequency response based on the cutoff frequency and the scaling ratio.

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

[0103] In step 814, the decoder can derive a third downsampling filter based on the frequency response and the cosine window function.

[0104] Affine chroma downsampling filter

[0105] Below, three methods are proposed to downsample chroma reference blocks when the resolution of the reference picture is higher than that of the current picture.

[0106] Method 1 In the first method, it is proposed to adapt the existing 1.5X (Table 6) and 2X (Table 8) 4-tap chroma downsampling filters designed for use in non-affine modes in RPR to downsample reference samples in affine mode.

[0107] Method 2 In a second method, it is proposed to use the default 4-tap chroma interpolation filter (Table 3) to downsample the reference samples again in affine mode.

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

[0109] [Table 15]

[0110] [Table 16]

[0111] Constraint block size for RPR mode

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

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

[0114] [Table 17]

[0115] [Table 18]

[0116] Although the above examples prohibit bi-directional prediction in RPR mode only for 4xN, Nx4 and 8x8 block sizes, for engineers familiar with the most advanced modern video technology, the proposed constraints still apply to other block sizes and inter-coding modes (e.g., uni-directional / bi-directional prediction, merged / non-merged modes, etc.).

[0117] Adaptive Bit Depth Switching

[0118] In the existing RPR design, VVC only supports adaptive switching of picture resolution within one and the same bitstream, while the bit depth for encoding a video sequence is kept the same. However, as previously analyzed, allowing switching of encoding bit depth within one and the same bitstream can provide more flexibility for the actual encoder / decoder device and provide different compromises between encoding performance and computational complexity.

[0119] In this section, an Adaptive Bit-Depth Switching (ABS) method is proposed to allow changing the intra-coding bit-depth without the requirement of introducing one IRAP picture, such as an Instantaneous Decode Refresh (IDR) picture.

[0120] One hypothetical example is depicted in Figure 6, where a current picture 620 and its reference pictures 610 and 630 are coded with different intra bit depths. Figure 6 shows a reference picture 610 Ref0 that uses 8-bit coding, a current picture 620 that uses 10-bit coding, and a reference picture 630 Ref1 that uses 12-bit coding. Specifically, in the following, advanced syntax signaling and modifications to the motion compensation process are proposed for the current VVC framework to support the proposed ABS capability.

[0121] Advanced ABS signalling

[0122] For the proposed ABS signaling, one new syntax element sps_max_bit_depth_minus8 is proposed in the SPS to replace the existing bit depth syntax element bit_depth_minus8 that specifies the maximum intra coding bit depth for coded pictures that reference the SPS. Then, one new PPS syntax element pps_bit_depth_minus8 is sent to specify different coding bit depths of pictures that reference the PPS when the coding bit depth is changed.

[0123] There is bitstream compatibility, ie the value of pps_bit_depth_minus8 should not exceed the value of sps_max_bit_depth_minus8. Table 19 describes the proposed ABS signaling in SPS and PPS.

[0124] [Table 19]

[0125] Predicted sample bit depth adjustment

[0126] When an encoding bit depth changes within an encoded video sequence, a current picture can be predicted from another reference picture, and the reconstructed samples of the other reference picture are represented with different bit depth precision. When this situation occurs, the prediction samples generated from the motion compensation of the reference picture should be adjusted to the encoding bit depth of the current picture.

[0127] Interaction with other coding tools

[0128] Given that ABS is applied to the reference picture and the current picture can be represented with different accuracy, some existing coding tools in VVC that use reference samples to obtain certain coding parameters may not work properly. For example, in current VVC, bidirectional optical flow (BDOF) and decoder-side motion vector refinement (DMVR) are two decoder-side techniques that use temporal prediction samples to improve inter-coding efficiency. Specifically, the BDOF tool uses L0 and L1 prediction samples to calculate refinement on a sample-by-sample basis to improve prediction sample quality, while DMVR relies on L0 and L1 prediction samples to improve motion vector accuracy at the sub-block level. Based on the above considerations, it is proposed to avoid BDOF and DMVR processing for an inter block whenever any one of the two prediction signals is coded with a bit depth different from that of the current picture.

[0129] 9 shows a computing environment 910 coupled to a user interface 960. 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.

[0130] The processor 920 typically controls the overall operation of the computing environment 910, such as operations associated with display, data collection, data communication, and image processing. The processor 920 may comprise one or more processors for executing instructions to perform all or some of the steps in the methods described above. Additionally, the processor 920 may comprise one or more modules that facilitate interaction between the processor 920 and other components. The processor may be a central processing unit (CPU), a microprocessor, a single chip machine, a GPU, etc.

[0131] The memory 940 is arranged to store various types of data to support the operation of the computing environment 910. The memory 940 may include predefined software 942. Examples of such data include instructions for any application or method executed in 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 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.

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

[0133] In an embodiment, a non-transitory computer readable storage medium containing a number of programs is also provided, which may be included in, for example, memory 940 and executed by processor 920 in computing environment 910 to perform the methods described above. 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.

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

[0135] In an embodiment, the computing environment 910 may 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 to perform the methods described above.

[0136] The description of the present disclosure has been provided for purposes of illustration and is not intended to be exhaustive or limiting, as many modifications, variations and alternative implementations will be apparent to one skilled in the art having the benefit of the guidance provided in the foregoing descriptions and the associated drawings.

[0137] The examples are selected and described to illustrate the principles of the present disclosure, and allow those skilled in the art to understand the present disclosure through various different implementations and optimally utilize different implementations with different modifications for specific applications that conform to the underlying principles and assumptions. Therefore, it is understood that the scope of the present disclosure should not be limited to the specific examples of the implementations disclosed, and modifications and other implementations are expected to be included within the scope of the present disclosure. [Explanation of symbols]

[0138] 100: Encoder; 110: Video input; 112: Motion compensation; 114: Motion estimation; 116: Intra / Inter mode decision; 118: Intra prediction; 120: Picture buffer; 122: In-loop filter; 124: Memory; 126: Adder; 128: Adder; 130: Transform; 132: Quantization; 134: Inverse quantization; 136: Inverse transform; 138: Entropy coding unit; 140: Block predictor; 142: Prediction related information; 144: Bit stream 200: decoder, 210: bitstream, 212: entropy decoding, 214: inverse quantization, 216: inverse transform, 218: adder, 220: intra / inter mode selector, 222: intra prediction, 224: motion compensation, 226: picture buffer, 228: in-loop filter, 230: memory, 232: video output, 234: prediction-related information, 910: computing environment, 920: processor, 940: memory, 950: I / O interface

Claims

1. 1. A method for encoding a video signal, comprising: determining a reference picture associated with a video block in the video signal; obtaining a reference sample for the video block from the reference picture; determining a luma interpolation filter for the video block to be encoded in an affine motion mode based on a scaling factor derived from resolutions of the reference picture and the current picture; applying the luma interpolation filter to the reference samples to obtain luma inter predicted samples of the video block; and 23. A method for encoding said video signal comprising:

2. Determining the luma interpolation filter for the image block encoded in affine motion mode based on the scaling factor comprises: determining a first luma interpolation filter as the luma interpolation filter for the image block encoded in an affine motion mode in response to the scaling ratio being greater than or equal to a first value; the first luma interpolation filter is different from a second luma interpolation filter for the image block that is encoded in an affine motion mode when the scaling ratio is not greater than or equal to a first value. The method of claim 1.

3. the luma interpolation filter is associated with a third luma interpolation filter that is used when the video block is encoded in a non-affine motion mode and the scaling ratio is greater than or equal to a first value. The method of claim 1.

4. one of the filter coefficients of the luminance interpolation filter is equal to the sum of the first two filter coefficients or the last two filter coefficients of the third luminance interpolation filter; The method according to claim 3.

5. determining a chroma interpolation filter for the video block encoded in an affine motion mode based on a comparison between resolutions of the reference picture and the current picture; applying the chroma interpolation filter to the reference samples to obtain chroma inter predicted samples of the video block; and The method of claim 1 further comprising:

6. Determining the luminance interpolation filter comprises:

2. The method of claim 1, comprising obtaining the intensity interpolation filter by applying a cosine window function to the frequency response of an ideal low pass filter.

7. Determining the luminance interpolation filter comprises: obtaining the frequency response of the ideal low pass filter based on a cutoff frequency and the scaling ratio; obtaining the cosine window function based on a filter length; and deriving a downsampling filter based on the frequency response and the cosine window function.

8. 8. The method of claim 7, wherein the cutoff frequency is equal to 0.9, the filter length is equal to 6, and the scaling ratio is equal to 1.

5.

9. 8. The method of claim 7, wherein the cutoff frequency is equal to 0.9, the filter length is equal to 6, and the scaling ratio is equal to 2.

10. 1. A video encoding device, comprising: one or more processors; and a non-transitory computer-readable storage medium having stored thereon instructions executable by said one or more processors, said one or more processors performing the steps of the method according to any one of claims 1 to 9. The video encoding device.

11. A non-transitory computer-readable storage medium having stored thereon a plurality of programs for execution by a computing device having one or more processors, comprising: The plurality of programs, when executed by the one or more processors, cause the computing device to perform the method according to any one of claims 1 to 9. The non-transitory computer-readable storage medium.

12. A computer program stored on a computer-readable storage medium, comprising: comprising instructions which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 9, The computer program.

13. A method for storing a bitstream, comprising the steps of: The bitstream is generated by a video encoding method, The video encoding method includes: determining a reference picture associated with a video block in the video signal; obtaining a reference sample for the video block from the reference picture; determining a luma interpolation filter for the video block to be encoded in an affine motion mode based on a scaling factor derived from resolutions of the reference picture and the current picture; and obtaining luma inter predicted samples of the video block by applying the luma interpolation filter to the reference samples. A method for storing a bitstream.