Reference picture resampling and inter-frame decoding tools for video decoding

By selectively enabling the inter-frame decoding tool in the video encoder and decoder, and managing the use of the tool block by block based on the picture size comparison, the problem of limited use of the inter-frame decoding tool in the existing technology is solved, and video decoding is improved. efficiency and quality.

CN113812148BActive Publication Date: 2024-08-30QUALCOMM INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202080034651.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-15
Publication Date
2024-08-30
Estimated Expiration
2040-05-15

AI Technical Summary

Technical Problem

During the video encoding and decoding process, the existing technology limits the use of inter-frame decoding tools when the size of the reference picture and the current picture are different, resulting in a decrease in video decoding efficiency and a waste of computing resources.

Method used

By selectively enabling inter-frame decoding tools in the video encoder and decoder, enabling or disabling specific inter-frame decoding tools based on the resolution comparison between the reference picture and the current picture, and managing the use of tools block by block to improve video decoding. code efficiency.

Benefits of technology

It improves video decoding efficiency, reduces the waste of computing resources and memory bandwidth consumption, and improves video quality and processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113812148B_ABST
    Figure CN113812148B_ABST
Patent Text Reader

Abstract

An example device for decoding video data determines a first reference block in a first reference picture for a first block of a current picture. Based on the first reference picture being different in size from the current picture, the device decodes the first block using a first inter-coding tool in a first set of inter-coding tools, wherein a first specific tool in a plurality of inter-coding tools is disabled. The device determines a second reference block in a second reference picture for a second block of the current picture. Based on the second reference picture being the same size as the current picture, the device decodes the second block using a second inter-coding tool in a second set of inter-coding tools, wherein the first specific tool is enabled.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the benefit of priority to U.S. Patent Application No. 16 / 874,091, filed on May 14, 2020, which claims the benefit of U.S. Provisional Patent Application No. 62 / 849,754, filed on May 17, 2019, and the entire contents of each of the above applications are hereby incorporated by reference. Technical Field

[0002] The present disclosure relates to video encoding and video decoding. Background Art

[0003] Digital video capabilities may be incorporated into a wide variety of devices, including digital televisions, digital live broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, wireless phones (e.g., cellular or satellite radio phones or so-called "smart phones"), video teleconferencing devices, video streaming devices, etc. Digital video devices implement video coding techniques (such as those described in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-TH.264 / MPEG-4 (Part 10, Advanced Video Coding (AVC)), ITU-T H.265 / High Efficiency Video Coding (HEVC), and extensions of such standards). By implementing such video coding techniques, video devices may more efficiently send, receive, encode, decode, and / or store digital video information.

[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. For block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction relative to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction relative to reference samples in neighboring blocks in the same picture or temporal prediction relative to reference samples in other reference pictures. Pictures may be referred to as frames, and reference pictures may be referred to as reference frames. Summary of the invention

[0005] In summary, this disclosure describes techniques for utilizing inter-coding tools to code (e.g., encode or decode) a current block. Example techniques may be applicable to video coding situations where the sizes (e.g., resolution, size, etc.) of a current picture and a reference picture are not the same. As an example, example techniques may be applicable to situations where reference picture resampling (RPR) is enabled but the techniques should not be considered limited to situations where RPR is enabled.

[0006] When the current picture and the reference picture have different sizes, there may be limitations on which inter-coding tools are available. However, there is no need to disable various inter-coding tools that may have been disabled when the reference picture and the current picture have different sizes. The present disclosure describes example ways in which inter-coding tools can be used even when blocks of the current picture have reference pictures of different sizes than the current picture. In this way, a video coder (e.g., a video encoder or a video decoder) can take advantage of coding efficiency gains available from various inter-coding tools even when blocks of the current picture have reference pictures of different sizes than the current picture.

[0007] In one example, a method includes: determining a first reference block in a first reference picture for a first block of a current picture; determining whether the first reference picture is the same size as the current picture; based on the first reference picture being different in size from the current picture, decoding the first block using a first inter-coding tool in a first inter-coding tool set, wherein a first specific tool in a plurality of inter-coding tools is disabled; determining a second reference block in a second reference picture for a second block of the current picture; determining whether the second reference picture is the same size as the current picture; and based on the second reference picture being the same size as the current picture, decoding the second block using a second inter-coding tool in a second inter-coding tool set, wherein the first specific tool is enabled.

[0008] In one example, a device includes: a memory configured to store video data; and one or more processors implemented in a circuit and coupled to the memory, the one or more processors configured to: determine a first reference block in a first reference picture for a first block of a current picture; determine whether the first reference picture is the same size as the current picture; based on the first reference picture being different in size from the current picture, decode the first block using a first inter-coding tool in a first inter-coding tool set, wherein a first specific tool among multiple inter-coding tools is disabled; determine a second reference block in a second reference picture for a second block of the current picture; determine whether the second reference picture is the same size as the current picture; and based on the second reference picture being the same size as the current picture, decode the second block using a second inter-coding tool in a second inter-coding tool set, wherein the first specific tool is enabled.

[0009] In one example, a device includes: a unit for determining a first reference block in a first reference picture for a first block of a current picture; a unit for determining whether the first reference picture is the same size as the current picture; a unit for decoding the first block using a first inter-coding tool in a first inter-coding tool set based on the first reference picture being different in size from the current picture, wherein a first specific tool among multiple inter-coding tools is disabled; a unit for determining a second reference block in a second reference picture for a second block of the current picture; a unit for determining whether the second reference picture is the same size as the current picture; and a unit for decoding the second block using a second inter-coding tool in a second inter-coding tool set based on the second reference picture being the same size as the current picture, wherein the first specific tool is enabled.

[0010] In one example, a non-transitory computer-readable storage medium stores instructions that, when executed, cause one or more processors to perform the following operations: determine a first reference block in a first reference picture for a first block of a current picture; determine whether the first reference picture is the same size as the current picture; based on the first reference picture being different in size from the current picture, decode the first block using a first inter-coding tool in a first inter-coding tool set, wherein a first specific tool among multiple inter-coding tools is disabled; determine a second reference block in a second reference picture for a second block of the current picture; determine whether the second reference picture is the same size as the current picture; and based on the second reference picture being the same size as the current picture, decode the second block using a second inter-coding tool in a second inter-coding tool set, wherein the first specific tool is enabled.

[0011] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.

[0013] Figure 2A and Figure 2B is a conceptual diagram illustrating an example quadtree binary tree (QTBT) structure and a corresponding coding tree unit (CTU).

[0014] Figure 3 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.

[0015] Figure 4 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.

[0016] Figure 5 is a flow diagram illustrating an example of selectively enabling use of a transcoding tool in accordance with techniques of this disclosure.

[0017] Figure 6 is a flow diagram illustrating another example of selectively enabling use of a transcoding tool in accordance with techniques of this disclosure.

[0018] Figure 7 is a flow diagram illustrating another example of selectively enabling use of a transcoding tool in accordance with techniques of this disclosure.

[0019] Figure 8 is a flow chart illustrating an example of encoding video data.

[0020] Fig. 9 is a flow chart illustrating an example of decoding video data. DETAILED DESCRIPTION

[0021] When the reference picture has a different size than the current picture, reference picture resampling (RPR) can be used. In RPR, motion vector scaling and interpolation can be used when performing inter-frame prediction. In some cases, decoder-side tools use pixel information around the reference block. If the size of the reference picture is different from the size of the current picture, this may cause problems, such as an increase in the memory required to extract samples outside the reference block.

[0022] Some technologies do not allow certain decoding tools when using RPR. Those technologies do not allow certain decoding tools when using RPR, because keeping these decoding tools available may lead to poor video quality on the decoder side, and therefore, waste computing resources to implement decoder side tools with different resolutions. If these decoding tools are working, then because the video encoder extracts more information from the reference picture, an increase in memory bandwidth may also be required. However, by disabling these decoding tools, the video encoder or video decoder may not utilize them when such decoding tools may be beneficial (e.g., providing better quality decoded video, using less bandwidth, using less processing power, etc.).

[0023] Using the techniques of the present disclosure, decoder-side tools are selectively enabled when reference picture resampling is used. For example, decoder-side tools are enabled based on a comparison of the resolution (e.g., height and width (size)) of the reference picture and the current picture. In this way, the video decoder does not waste computational cycles or execute decoding tools that result in poor quality blocks. In addition, memory bandwidth can be saved by not implementing decoder-side tools that require additional information from reference pictures. Another advantage of selectively enabling these tools on a block-by-block basis is that the block that will benefit from the tool can have the tool enabled, while the block that will not benefit from the tool can have the tool disabled, rather than disabling the tool for all blocks of the current picture.

[0024] Figure 1 1 is a block diagram illustrating an example video encoding and decoding system 100 that may perform techniques of the present disclosure. In general, techniques of the present disclosure are directed to decoding (encoding and / or decoding) video data. Generally, video data includes any data used to process video. Thus, video data may include original, unencoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata (e.g., signaling data).

[0025] like Figure 1 As shown in , in this example, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116. Specifically, source device 102 provides the video data to destination device 116 via computer-readable medium 110. Source device 102 and destination device 116 may include any of a wide variety of devices, including desktop computers, notebook computers (i.e., laptop computers), tablet computers, set-top boxes, telephone handsets (such as smart phones), televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, etc. In some cases, source device 102 and destination device 116 may be equipped for wireless communication and, therefore, may be referred to as wireless communication devices.

[0026] exist Figure 1 In the example of , the source device 102 includes a video source 104, a memory 106, a video encoder 200, and an output interface 108. The destination device 116 includes an input interface 122, a video decoder 300, a memory 120, and a display device 118. According to the present disclosure, the video encoder 200 of the source device 102 and the video decoder 300 of the destination device 116 can be configured to apply a technique for decoding (e.g., encoding or decoding) a current block using an inter-coding tool (such as when a block of a current picture has a reference picture of a different size (e.g., resolution, size, etc.) from the current picture). Therefore, the source device 102 represents an example of a video encoding device, and the destination device 116 represents an example of a video decoding device. In other examples, the source device and the destination device may include other components or arrangements. For example, the source device 102 may receive video data from an external video source such as an external camera. Similarly, the destination device 116 may be interfaced with an external display device instead of including an integrated display device.

[0027] like Figure 1 The system 100 shown in is only one example. In general, any digital video encoding and / or decoding device can perform techniques for utilizing inter-coding tools to decode (e.g., encode or decode) a current block (such as when a block of a current picture has a reference picture of a different size (e.g., resolution, size, etc.) than the current picture). The source device 102 and the destination device 116 are only examples of such decoding devices, wherein the source device 102 generates decoded video data for transmission to the destination device 116. The present disclosure refers to a "decoding" device as a device that performs decoding (encoding and / or decoding) of data. Therefore, the video encoder 200 and the video decoder 300 represent examples of decoding devices (specifically, a video encoder and a video decoder, respectively). In some examples, the source device 102 and the destination device 116 can operate in a substantially symmetrical manner, such that each of the source device 102 and the destination device 116 includes video encoding and decoding components. Thus, system 100 may support one-way or two-way video transmission between source device 102 and destination device 116, for example, for video streaming, video playback, video broadcasting, or video telephony.

[0028] Typically, video source 104 represents a source of video data (i.e., original, unencoded video data), and provides a sequential series of pictures (also referred to as "frames") of video data to video encoder 200, which encodes the data for the pictures. Video source 104 of source device 102 may include a video capture device, such as a camera, a video archive containing previously captured original video, and / or a video feed interface for receiving video from a video content provider. As another alternative, video source 104 may generate computer graphics-based data as source video, or a combination of real-time video, archived video, and computer-generated video. In each case, video encoder 200 may encode captured, pre-captured, or computer-generated video data. Video encoder 200 may rearrange pictures from the received order (sometimes referred to as "display order") to a decoding order for decoding. Video encoder 200 may generate a bitstream comprising encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 to be received and / or retrieved by, for example, input interface 122 of destination device 116 .

[0029] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general purpose memories. In some examples, the memories 106, 120 can store original video data, for example, original video from the video source 104 and original decoded video data from the video decoder 300. In addition or alternatively, the memories 106, 120 can store software instructions executable by, for example, the video encoder 200 and the video decoder 300, respectively. Although shown separately from the video encoder 200 and the video decoder 300 in this example, it should be understood that the video encoder 200 and the video decoder 300 can also include internal memories for functionally similar or equivalent purposes. In addition, the memories 106, 120 can store, for example, encoded video data output from the video encoder 200 and input to the video decoder 300. In some examples, portions of the memories 106, 120 can be allocated as one or more video buffers, for example, to store original decoded and / or encoded video data.

[0030] The computer-readable medium 110 may represent any type of medium or device capable of delivering the encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium that enables the source device 102 to directly send the encoded video data to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. According to a communication standard such as a wireless communication protocol, the output interface 108 may modulate the transmission signal including the encoded video data, and the input interface 122 may modulate the received transmission information. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form a portion of a packet-based network such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include a router, a switch, a base station, or any other device that may be useful for facilitating communication from the source device 102 to the destination device 116.

[0031] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, destination device 116 may access the encoded data from storage device 112 via input interface 122. Storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, Blu-ray disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.

[0032] In some examples, the source device 102 may output the encoded video data to a file server 114 or another intermediate storage device that may store the encoded video generated by the source device 102. The destination device 116 may access the stored video data from the file server 114 via streaming or downloading. The file server 114 may be any type of server device capable of storing the encoded video data and sending the encoded video data to the destination device 116. The file server 114 may represent a web server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. The destination device 116 may access the encoded video data from the file server 114 via any standard data connection (including an Internet connection). This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a DSL, a cable modem, etc.), or a combination of the two that is suitable for accessing the encoded video data stored on the file server 114. The file server 114 and the input interface 122 may be configured to operate according to the following: a streaming transmission protocol, a download transmission protocol, or a combination thereof.

[0033] Output interface 108 and input interface 122 may represent wireless transmitters / receivers, modems, wired networking components (e.g., Ethernet cards), wireless communication components that operate according to any of the various IEEE 802.11 standards, or other physical components. In examples where output interface 108 and input interface 122 include wireless components, output interface 108 and input interface 122 may be configured to transmit data (such as encoded video data) according to a cellular communication standard (such as 4G, 4G-LTE (Long Term Evolution), Advanced LTE, 5G, etc.). In some examples where output interface 108 includes a wireless transmitter, output interface 108 and input interface 122 may be configured to transmit data (such as encoded video data) according to other wireless standards (such as IEEE 802.11 specifications, IEEE 802.15 specifications (e.g., ZigBee TM ), Bluetooth TM Standards, etc.) to transmit data (such as encoded video data). In some examples, source device 102 and / or destination device 116 may include corresponding system-on-chip (SoC) devices. For example, source device 102 may include a SoC device for performing the functions assigned to video encoder 200 and / or output interface 108, and destination device 116 may include a SoC device for performing the functions assigned to video decoder 300 and / or input interface 122.

[0034] The techniques of the present disclosure may be applied to video decoding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet streaming video transmission (such as Dynamic Adaptive Streaming over HTTP (DASH)), digital video encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications.

[0035] The input interface 122 of the destination device 116 receives the encoded video bitstream from the computer-readable medium 110 (e.g., the storage device 112, the file server 114, etc.). The encoded video bitstream computer-readable medium 110 may include signaling information such as the following syntax elements defined by the video encoder 200 (which is also used by the video decoder 300): the syntax elements have values ​​that describe the characteristics and / or processing of video blocks or other decoding units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays the decoded pictures of the decoded video data to the user. The display device 118 may represent any of a variety of display devices, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.

[0036] Despite Figure 1 2. Although not shown in the drawings, in some examples, the video encoder 200 and the video decoder 300 may each be integrated with an audio encoder and / or an audio decoder, and may include appropriate MUX-DEMUX units or other hardware and / or software to process multiplexed streams including both audio and video in a common data stream. If applicable, the MUX-DEMUX units may conform to the ITU H.223 multiplexer protocol or other protocols such as the User Datagram Protocol (UDP).

[0037] The video encoder 200 and the video decoder 300 can each be implemented as any of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When the technology is partially implemented in software, the device can store instructions for the software in a suitable non-transitory computer-readable medium, and use one or more processors to execute the instructions in hardware to perform the technology of the present disclosure. Each of the video encoder 200 and the video decoder 300 can be included in one or more encoders or decoders, and any of the encoders or decoders can be integrated as part of a combined encoder / decoder (CODEC) in the corresponding device. The device including the video encoder 200 and / or the video decoder 300 can include an integrated circuit, a microprocessor, and / or a wireless communication device (such as a cellular phone).

[0038] The video encoder 200 and the video decoder 300 may operate according to a video coding standard such as ITU-T H.265 (also known as High Efficiency Video Coding (HEVC)) or an extension thereof such as a multi-view and / or scalable video coding extension. Alternatively, the video encoder 200 and the video decoder 300 may operate according to other proprietary or industry standards such as ITU-T H.266, also known as Versatile Video Coding (VVC). A draft of the VVC standard is described in Bross et al., “Versatile Video Coding (Draft 5)”, Joint Video Experts Group (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC1 / SC29 / WG 11, 14th Meeting: Geneva, Switzerland, March 19-27, 2019, JVET-N1001-v5 (hereinafter “VVC Draft 5”). The latest draft is described in Bross et al., "Versatile Video Coding (Draft 9)", Joint Video Experts Group (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 18th Meeting: Conducted by Teleconference, April 15-24, 2020, JVET-R2001-v3. However, the techniques of the present disclosure are not limited to any particular coding standard.

[0039] Typically, the video encoder 200 and the video decoder 300 can perform block-based decoding of the picture. The term "block" generally refers to a structure that includes data to be processed (e.g., encoded, decoded, or otherwise used in the encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. Typically, the video encoder 200 and the video decoder 300 can decode video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, the video encoder 200 and the video decoder 300 can decode luminance and chrominance components instead of decoding red, green, and blue (RGB) data for samples of the picture, wherein the chrominance components may include both red hue and blue hue chrominance components. In some examples, the video encoder 200 converts the received RGB formatted data to a YUV representation before encoding, and the video decoder 300 converts the YUV representation to an RGB format. Alternatively, a pre-processing and post-processing unit (not shown) may perform these conversions.

[0040] In general, the present disclosure may relate to the decoding (e.g., encoding and decoding) of a picture to include the process of encoding or decoding data for the picture. Similarly, the present disclosure may relate to the decoding of a block of a picture to include the process of encoding or decoding data for the block (e.g., prediction and / or residual decoding). The encoded video bitstream typically includes a series of values ​​for syntax elements that represent decoding decisions (e.g., decoding modes) and partitioning of the picture into blocks. Therefore, references to decoding a picture or a block should generally be understood as decoding the values ​​of the syntax elements used to form the picture or the block.

[0041] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video decoder (such as the video encoder 200) partitions a coding tree unit (CTU) into CUs according to a quadtree structure. That is, the video decoder partitions the CTU and CU into four equal, non-overlapping squares, and each node of the quadtree has zero or four child nodes. A node without child nodes may be referred to as a "leaf node", and the CU of such a leaf node may include one or more PUs and / or one or more TUs. The video decoder may further partition the PU and TU. For example, in HEVC, a residual quadtree (RQT) represents the partitioning of a TU. In HEVC, a PU represents inter-frame prediction data, and a TU represents residual data. An intra-predicted CU includes intra-frame prediction information, such as an intra-frame mode indication.

[0042] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to VVC. According to VVC, a video decoder (such as the video encoder 200) partitions a picture into a plurality of coding tree units (CTUs). The video encoder 200 may partition the CTU according to a tree structure (such as a quadtree binary tree (QTBT) structure or a multi-type tree (MTT) structure). The QTBT structure removes the concept of multiple partition types, such as the separation between CU, PU, ​​and TU of HEVC. The QTBT structure includes two levels: a first level partitioned according to quadtree partitioning and a second level partitioned according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to the coding units (CUs).

[0043] In the MTT segmentation structure, blocks can be segmented using quadtree (QT) segmentation, binary tree (BT) segmentation, and one or more types of ternary tree (TT) segmentation. A ternary tree segmentation is a segmentation in which a block is split into three sub-blocks. In some examples, the ternary tree segmentation divides the block into three sub-blocks without dividing the original block through the center. The segmentation types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.

[0044] In some examples, the video encoder 200 and the video decoder 300 may use a single QTBT or MTT structure to represent each of the luma component and the chroma components, while in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luma component and another QTBT / MTT structure for the two chroma components (or two QTBT / MTT structures for the respective chroma components).

[0045] The video encoder 200 and the video decoder 300 may be configured to use quadtree segmentation, QTBT segmentation, MTT segmentation, or other segmentation structures in accordance with HEVC. For purposes of explanation, a description of the techniques of the present disclosure is given with respect to QTBT segmentation. However, it should be understood that the techniques of the present disclosure may also be applied to video decoders configured to use quadtree segmentation or also use other types of segmentation.

[0046] The present disclosure may use "NxN" and "N by N" interchangeably to refer to the sample size of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, for example, 16x16 samples or 16 by 16 samples. Typically, a 16x16 CU will have 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Likewise, an NxN CU typically has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. The samples in a CU may be arranged in rows and columns. Furthermore, a CU does not necessarily need to have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may include NxM samples, where M is not necessarily equal to N.

[0047] The video encoder 200 encodes video data representing prediction and / or residual information and other information for a CU. The prediction information indicates how the CU will be predicted in order to form a prediction block for the CU. The residual information typically represents the sample-by-sample difference between the samples of the CU before encoding and the prediction block.

[0048] In order to predict a CU, the video encoder 200 may typically form a prediction block for the CU by inter-frame prediction or intra-frame prediction. Inter-frame prediction generally refers to predicting a CU based on data of a previously decoded picture, while intra-frame prediction generally refers to predicting a CU based on previously decoded data of the same picture. In order to perform inter-frame prediction, the video encoder 200 may use one or more motion vectors to generate a prediction block. The video encoder 200 may typically perform a motion search to identify a reference block that closely matches the CU, for example, in terms of the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), or other such difference calculations to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may use unidirectional prediction or bidirectional prediction to predict the current CU.

[0049] Some examples of VVC also provide an affine motion compensation mode, which can be considered an inter-frame prediction mode. In the affine motion compensation mode, the video encoder 200 can determine two or more motion vectors representing non-translational motion (such as zooming in or out, rotation, perspective motion, or other irregular motion types).

[0050] To perform intra prediction, the video encoder 200 can select an intra prediction mode to generate a prediction block. Some examples of VVC provide sixty-seven intra prediction modes, including various directional modes, as well as planar modes and DC modes. Typically, the video encoder 200 selects an intra prediction mode that describes the neighboring samples of the current block according to which the samples of the current block (e.g., a block of a CU) are to be predicted. Assuming that the video encoder 200 decodes the CTU and CU in raster scan order (from left to right, from top to bottom), such samples can typically be above, above left, or to the left of the current block in the same picture as the current block.

[0051] The video encoder 200 encodes data representing a prediction mode for the current block. For example, for an inter-frame prediction mode, the video encoder 200 may encode data representing which of the various available inter-frame prediction modes is used and motion information for the corresponding mode. For unidirectional or bidirectional inter-frame prediction, for example, the video encoder 200 may encode motion vectors using advanced motion vector prediction (AMVP) or merge mode. The video encoder 200 may use a similar mode to encode motion vectors for affine motion compensation mode.

[0052] After a prediction such as intra prediction or inter prediction of a block, the video encoder 200 may calculate residual data for the block. The residual data (such as a residual block) represents the sample-by-sample difference between the block and a prediction block for the block, which is formed using a corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to produce transformed data in a transform domain rather than a sample domain. For example, the video encoder 200 may apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. In addition, the video encoder 200 may apply a secondary transform after the first transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc. The video encoder 200 generates transform coefficients after applying one or more transforms.

[0053] As mentioned above, after any transforms used to produce transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 may reduce the bit depth associated with some or all coefficients. For example, the video encoder 200 may round down an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bitwise right shift of the value to be quantized.

[0054] After quantization, the video encoder 200 can scan the transform coefficients to generate a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan can be designed to place coefficients of higher energy (and therefore lower frequency) in front of the vector and transform coefficients of lower energy (and therefore higher frequency) in the back of the vector. In some examples, the video encoder 200 can scan the quantized transform coefficients using a predefined scan order to generate a serialized vector, and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 can perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 can entropy encode the one-dimensional vector, for example, according to context adaptive binary arithmetic coding (CABAC). The video encoder 200 can also entropy encode the values ​​of the syntax elements used to describe the metadata associated with the encoded video data for use by the video decoder 300 when decoding the video data.

[0055] To perform CABAC, the video encoder 200 may assign context within a context model to a symbol to be transmitted. The context may relate to, for example, whether neighboring values ​​of the symbol are zero values. The probability determination may be based on the context assigned to the symbol.

[0056] The video encoder 200 may also generate syntax data (such as block-based syntax data, picture-based syntax data, and sequence-based syntax data) for the video decoder 300, for example, in a picture header, a block header, a slice header, or other syntax data (such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS). Likewise, the video decoder 300 may decode such syntax data to determine how to decode the corresponding video data.

[0057] In this way, the video encoder 200 can generate a bitstream, which includes the encoded video data, for example, a syntax element describing the partitioning of a picture into blocks (e.g., CUs) and prediction and / or residual information for the blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.

[0058] In general, the video decoder 300 performs a process that is the reverse of the process performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may use CABAC to decode the values ​​of syntax elements for the bitstream in a manner substantially similar to, but reverse to, the CABAC encoding process of the video encoder 200. The syntax elements may define partitioning information of a picture into CTUs, and partitioning each CTU according to a corresponding partitioning structure (such as a QTBT structure) to define CUs of the CTU. The syntax elements may also define prediction and residual information for a block (e.g., CU) of video data.

[0059] The residual information may be represented by, for example, quantized transform coefficients. The video decoder 300 may inverse quantize and inverse transform the quantized transform coefficients of the block to reproduce a residual block for the block. The video decoder 300 uses the signaled prediction mode (intra-frame prediction or inter-frame prediction) and related prediction information (e.g., motion information for inter-frame prediction) to form a prediction block for the block. The video decoder 300 may then combine the prediction block and the residual block (on a sample-by-sample basis) to reproduce the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along the boundaries of the blocks.

[0060] In some cases, the size (e.g., resolution, actual size, etc.) of the reference picture and the current picture may be different. For example, reference picture resampling (RPR) is proposed in Chen et al., "AHG 19: AdaptiveResolution Change," Joint Video Experts Group (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 14th Meeting: Geneva, Switzerland, March 19-27, 2019, JVET-N0279 (hereinafter "JVET-N0279"). In JVET-N0279, the current picture and the reference picture may have different resolutions (e.g., height and width, or size), so during motion compensation, the video encoder 200 or the video decoder 300 may account for the difference in resolution during interpolation filtering by adjusting the interpolation filter phase.

[0061] There may be some inter-coding tools that use reference pictures, especially inter-coding tools with derivation operations on the decoder (e.g., video decoder 300) side. In JVET-N0279, examples of such tools are temporal motion vector prediction (TMVP), decoder-side motion vector refinement (DMVR), and bidirectional optical flow (BDOF). That is, TMVP, DMVR, and BDOF are examples of inter-coding tools from multiple inter-coding tools that rely on the use of reference pictures. If reference picture resampling (RPR) is allowed, JVET-N0279 proposes to disable these tools at least at the sequence level. The sequence level generally refers to parameters applied to a decoded video sequence (i.e., multiple pictures), and allows information to be signaled once for the entire picture sequence (e.g., sequence parameter set (SPS)), rather than on a picture-by-picture basis. JVET-N0279 describes disabling TMVP, DMVR, and BDOR coding tools at the sequence level for multiple pictures in a sequence (to name a few examples). As an example, when RPR is allowed, JVET-N0279 may allow disabling of these instances of multiple inter-coding tools at the sequence level.

[0062] According to the techniques of the present disclosure, the video encoder 200 and the video decoder 300 can be configured to utilize one or more of a plurality of inter-coding tools, even in the case where a block of a current picture has a reference picture of a different size than the current picture (e.g., where RPR is allowed). Thus, the example techniques described in the present disclosure can improve video decoding efficiency by allowing various inter-coding tools to be enabled for certain blocks of the current picture, even in the presence of blocks of the current picture having a reference picture of a different size than the current picture. In some examples, such as in the case of DMVR, the video decoder 300 may enable tools that are otherwise disabled without additional signaling from the video encoder 200. Thus, the decoded video quality can be improved without additional signaling.

[0063] In general, the present disclosure may involve "signaling" certain information (such as syntax elements). The term "signaling" may generally refer to the transmission of values ​​for syntax elements and / or other data used to decode the encoded video data. That is, the video encoder 200 may signal values ​​for syntax elements in a bitstream. Generally, signaling refers to generating values ​​in a bitstream. As mentioned above, the source device 102 may transmit the bitstream to the destination device 116 in substantially real time or not in real time (such as may occur when storing syntax elements to the storage device 112 for later retrieval by the destination device 116).

[0064] Figure 2A and 2B1 is a conceptual diagram showing an example quadtree binary tree (QTBT) structure 130 and a corresponding coding tree unit (CTU) 132. Solid lines represent quadtree splits, while dashed lines indicate binary tree splits. In each split (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which split type (i.e., horizontal or vertical) is used, where, in this example, 0 indicates horizontal splitting and 1 indicates vertical splitting. For quadtree splitting, since the quadtree node splits the block horizontally and vertically into 4 sub-blocks of equal size, there is no need to indicate the split type. Therefore, the video encoder 200 can encode the following, and the video decoder 300 can decode the following: syntax elements (such as split information) for the regional tree level (i.e., solid line) of the QTBT structure 130, and syntax elements (such as split information) for the prediction tree level (i.e., dashed line) of the QTBT structure 130. The video encoder 200 may encode video data (such as prediction and transform data) for a CU represented by a terminal leaf node of the QTBT structure 130 , and the video decoder 300 may decode the video data.

[0065] generally, Figure 2B The CTU 132 may be associated with parameters defining the size of blocks corresponding to nodes at the first and second levels of the QTBT structure 130. These parameters may include a CTU size (indicating the size of the CTU 132 in samples), a minimum quadtree size (MinQTSize, which indicates the minimum allowed quadtree leaf node size), a maximum binary tree size (MaxBTSize, which indicates the maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, which indicates the maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, which indicates the minimum allowed binary tree leaf node size).

[0066] The root node of the QTBT structure corresponding to the CTU may have four child nodes at the first level of the QTBT structure, each of which may be segmented according to a quadtree segmentation. That is, the node of the first level is a leaf node (without child nodes) or has four child nodes. The example of the QTBT structure 130 represents such a node as including a parent node and a child node with a solid line branch. If the nodes of the first level are not larger than the maximum allowed binary tree root node size (MaxBTSize), they may be further segmented by the corresponding binary tree. The binary tree splitting of a node may be iterated until the node generated from the split reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example of the QTBT structure 130 represents such a node as having a dotted line branch. The binary tree leaf node is called a coding unit (CU), which is used for prediction (e.g., intra-picture or inter-picture prediction) and transformation without any further segmentation. As discussed above, a CU may also be referred to as a "video block" or "block".

[0067] In one example of a QTBT partitioning structure, the CTU size is set to 128x128 (luminance sample and two corresponding 64x64 chroma samples), MinQTSize is set to 16x16, MaxBTSize is set to 64x64, MinBTSize (for both width and height) is set to 4, and MaxBTDepth is set to 4. Quadtree partitioning is first applied to the CTU to generate a quadtree leaf node. The quadtree leaf node can have a size from 16x16 (i.e., MinQTSize) to 128x128 (i.e., CTU size). If the leaf quadtree node is 128x128, since the size exceeds MaxBTSize (i.e., 64x64 in this example), the leaf quadtree node will not be further split by the binary tree. Otherwise, the leaf quadtree node will be further split by the binary tree. Therefore, the quadtree leaf node is also the root node for the binary tree and has a binary tree depth of 0. When the binary tree depth reaches MaxBTDepth (4 in this example), no further splitting is allowed. When a binary tree node has a width equal to MinBTSize (4 in this example), this means that no further horizontal splitting is allowed. Similarly, a binary tree node with a height equal to MinBTSize means that no further vertical splitting is allowed for the binary tree node. As mentioned above, the leaf nodes of the binary tree are called CUs and are further processed according to prediction and transformation without further segmentation.

[0068] In previous video standards, before the draft VVC standard, the size (e.g., dimension or resolution) of the reference picture was always the same as the current picture. VVC introduces the concept of allowing reference pictures to have different sizes from the current picture. Reference picture resampling (RPR) is a technique used, for example, by the video decoder 300 to resample reference pictures of different sizes from the current picture stored in the decoded picture buffer. As described above, certain inter-coding tools have been disabled when the reference picture and the current picture have different resolutions. When the reference picture has a different size or resolution from the current picture, enabling certain inter-frame tools may result in additional implementation complexity, such as increased bandwidth. However, when RPR is allowed, this does not mean that all blocks will use reference pictures of a size different from that of the current picture.

[0069] For example, the current picture may contain several blocks. Each of those blocks may have a corresponding reference block in a reference picture, but the reference picture used for each block of the current picture may be different. Thus, there may be many reference pictures, some of which may have a different size than the current picture, and some of which have the same size as the current picture. However, when a block of the current picture has a reference block in a reference picture of a different size than the current picture, one or more of the inter-coding tools described above (e.g., inter-tools) are disabled for all cases.

[0070] The present disclosure describes one or more example technical solutions to example technical problems. In this way, the example technology provides a practical application for improving the operation of a video decoding process. For example, the present disclosure describes an example of decoding (e.g., encoding or decoding) one or more blocks of a current picture in which one or more of a plurality of inter-frame decoding tools are selectively enabled based on a reference picture having the same size as the current picture for a block of the current picture. The example technology described in the present disclosure can improve video decoding efficiency by allowing various inter-frame decoding tools to be enabled for certain blocks, even in the presence of a block of the current picture having a reference picture of a different size than the current picture. In some examples, such as in the case of DMVR, the video decoder 300 may enable tools that are otherwise disabled without additional signaling from the video encoder 200. Therefore, the decoded video quality can be improved without additional signaling.

[0071] As an example, in one or more examples described in the present disclosure, when the current block uses a reference picture having a different size than the current picture, TMVP, DMVR, BDOF tools, and similar decoding tools are disabled only for the current block, and if the current block uses a reference picture having the same size as the current picture, the tool use is allowed. The reference picture to be used for inter-frame prediction is identified by a reference index associated with the inter-frame decoded block. In this case, some blocks in the current picture may have tool use disabled, but some blocks in the same current picture may use the tool. For example, the video encoder 200 or the video decoder 300 can identify whether the tool can be used for a given block by comparing the reference picture size of a given block of the current picture with the current picture size. In some examples, the video encoder 200 can utilize the techniques of the present disclosure in a reconstruction loop, for example, when decoding the encoded video data.

[0072] For example, for inter-frame prediction, the DMVR tool can be selectively enabled for blocks of the current picture that have a reference picture size that is the same as the current picture size, and the DMVR tool can be disabled for blocks of the current picture that use a reference picture size that is different from the current picture size.

[0073] Thus, in one example, to decode one or more blocks, a video decoder (e.g., video encoder 200 and video decoder 300) may determine a first reference block in a first reference picture for a first block of a current picture. The video decoder may determine whether the first reference picture is the same size as the current picture. Based on the first reference picture being different in size from the current picture, the video decoder may decode (e.g., encode or decode) the first block using a first inter-coding tool in a first inter-coding tool set, wherein a first specific tool in a plurality of inter-coding tools is disabled. The video decoder may also determine a second reference block in a second reference picture for a second block of the current picture. The video decoder may determine whether the second reference picture is the same size as the current picture. Based on the second reference picture being the same size as the current picture, the video decoder may decode (e.g., encode or decode) the second block using a second inter-coding tool in a second inter-coding tool set, wherein the first specific tool is enabled.

[0074] In some examples, the first specific tool includes one of TMVP, DMVR, and BDOF. In some examples, the technology of the present disclosure is performed based on a determination about enabling RPR. In some examples, the size of the reference picture or the size of the current picture refers to the resolution (e.g., height and width) of the reference picture or the resolution (e.g., height and width) of the current picture.

[0075] In the case of using several reference pictures (such as for bi-prediction), one reference picture may have the same size as the current picture, and another reference picture may have a different size. In this example, inter-coding tools may be disabled only for reference blocks of reference pictures of different sizes from the current picture. Inter-coding tools may be enabled for reference blocks of reference pictures of the same size as the current picture. For example, a video decoder (e.g., video encoder 200 or video decoder 300) may determine a third reference block in a third reference picture for a third block of the current picture. The video decoder may determine a fourth reference block in a fourth reference picture for a third block of the current picture. The video decoder may determine whether the third reference picture is the same size as the current picture. Based on the different size of the third reference picture and the current picture, the video decoder may utilize a third inter-coding tool in a third inter-coding tool set to decode (e.g., encode or decode) the third block, wherein a second specific tool in a plurality of inter-coding tools is disabled for the third reference block. The video decoder may also determine whether the fourth reference picture is the same size as the current picture. Based on the fourth reference picture being the same size as the current picture, the video decoder may use a fourth inter-coding tool in a fourth inter-coding tool set to code (eg, encode or decode) the third block, wherein the second specific tool is enabled for the fourth reference block.

[0076] In yet another example, when bi-prediction is used, two reference pictures (e.g., one reference picture in list0 and another reference picture in list1) may have the same size, but a size different from the current picture size. In this case, depending on the tool, the tool may be enabled. If some parameters are derived based on the reference picture, and those derived parameters are applied to prediction blocks that may have different resolutions, parameter derivation may not cause problems because the two reference pictures have the same resolution. For example, a video decoder (e.g., video encoder 200 or video decoder 300) may determine a third reference block in a third reference picture for a third block. The video decoder may also determine a fourth reference block in a fourth reference picture for the third block. The video decoder may determine whether the third reference picture is the same size as the fourth reference picture. Based on the fact that the third reference picture is the same size as the fourth reference picture, the video decoder may use a third inter-frame decoding tool in a third inter-frame decoding tool set to decode the third block, wherein the first specific tool is enabled.

[0077] Some tools (such as BDOF) may not use reference pictures directly, but only use the results of interpolation, which already have the same resolution as the blocks in the current picture. In this case, there is no reason to disable such tools, and according to the technology of the present disclosure, tools that do not directly use reference pictures are enabled when RPR is allowed.

[0078] Therefore, in one example, in order to decode one or more blocks, the video decoder (e.g., the video encoder 200 or the video decoder 300) can determine whether the disabled first specific tool uses the result of the interpolation of the first reference block and does not directly use the first reference block. Based on the disabled first specific tool using the result of the interpolation of the first reference block and not directly using the first reference block, the video decoder can enable the disabled first specific tool, select the first specific tool as the first inter-coding tool, and use the first specific tool to decode (e.g., encode or decode) the first block.

[0079] In the above examples, which may be performed individually or in any combination, one or more inter-coding tools include TMVP, DMVR, and BDOF. In addition, any one or combination of the example techniques may be performed based on a determination about enabling RPR. The size of the reference picture or the size of the current picture may refer to the resolution of the reference picture or the resolution of the current picture.

[0080] In one or more examples, the decision to apply a tool on a block-by-block basis can be based on the following conditions alone or in any combination: 1) whether any reference picture size is different from the current picture size; 2) whether a reference picture in a plurality of reference pictures has a size different from the current picture size, but other reference pictures have the same size as the current picture; 3) whether the reference pictures have the same size, but their size is different from the current picture size; and 4) as an example, whether the tool does not directly use the reference picture, where the tool can operate on a derived prediction signal. Thus, the example techniques described in the present disclosure can improve video decoding efficiency by allowing various inter-frame decoding tools to be enabled for certain blocks of the current picture, even in the presence of blocks of the current picture with reference pictures of different sizes than the current picture. In some examples, such as in the case of DMVR, the video decoder 300 may enable tools that are otherwise disabled without additional signaling from the video encoder 200. Thus, the decoded video quality can be improved without additional signaling.

[0081] Figure 3 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 3 The present disclosure generally illustrates the video encoder 200 in the context of video coding standards such as the HEVC video coding standard and the developing H.266 video coding standard. However, the techniques of the present disclosure are not limited to these video coding standards and are generally applicable to video encoding and decoding.

[0082] exist Figure 3 In the example of , the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any one or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 may be implemented in one or more processors or in processing circuits. In addition, the video encoder 200 may include additional or alternative processors or processing circuits to perform these and other functions.

[0083] The video data memory 230 may store video data to be encoded by the components of the video encoder 200. The video encoder 200 may receive video data from, for example, the video source 104 ( Figure 1 ) receives video data stored in video data memory 230. DPB 218 can act as a reference picture memory, which stores reference video data for use when subsequent video data is predicted by video encoder 200. Video data memory 230 and DPB 218 can be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM) (including synchronous DRAM (SDRAM)), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. Video data memory 230 and DPB 218 can be provided by the same memory device or a separate memory device. In various examples, video data memory 230 can be on-chip with other components of video encoder 200 (as shown), or off-chip relative to those components.

[0084] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to memory internal to the video encoder 200 (unless specifically described as such), or to memory external to the video encoder 200 (unless specifically described as such). Rather, references to the video data memory 230 should be understood as a reference memory that stores video data received by the video encoder 200 for encoding (e.g., video data for a current block to be encoded). Figure 1 The memory 106 may also provide temporary storage for outputs from the various units of the video encoder 200 .

[0085] Shows Figure 3The various units of the video encoder 200 are provided to help understand the operations performed by the video encoder 200. These units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide specific functions and are pre-set with respect to the operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functions with the operations that can be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits may execute software instructions (e.g., to receive parameters or output parameters), but the types of operations performed by fixed-function circuits are generally immutable. In some examples, one or more of these units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more units may be integrated circuits.

[0086] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example in which the operation of the video encoder 200 is performed using software executed by a programmable circuit, the memory 106 ( Figure 1 ) may store object code for software received and executed by the video encoder 200, or another memory (not shown) within the video encoder 200 may store such instructions.

[0087] The video data memory 230 is configured to store the received video data. The video encoder 200 may retrieve the picture of the video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be the original video data to be encoded.

[0088] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units that perform video prediction according to other prediction modes. As an example, the mode selection unit 202 may include a palette unit, an intra-block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.

[0089] The mode selection unit 202 typically coordinates multiple encoding passes to test combinations of encoding parameters and the resulting rate-distortion values ​​for such combinations. The encoding parameters may include partitioning of a CTU into CUs, a prediction mode for a CU, a transform type for residual data of a CU, a quantization parameter for residual data of a CU, etc. The mode selection unit 202 may ultimately select a combination of encoding parameters that has a better rate-distortion value than other tested combinations. In this way, the mode selection unit 202 may select a beneficial mode (e.g., providing better quality decoded video, using less bandwidth, using less processing power, etc.).

[0090] The video encoder 200 may partition the picture retrieved from the video data memory 230 into a series of CTUs, and encapsulate one or more CTUs in a slice. The mode selection unit 202 may partition the CTUs of the picture according to a tree structure (such as the QTBT structure described above or the quadtree structure of HEVC). As described above, the video encoder 200 may form one or more CUs by partitioning the CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks".

[0091] Typically, the mode selection unit 202 also controls its components (e.g., the motion estimation unit 222, the motion compensation unit 224, and the intra prediction unit 226) to generate a prediction block for the current block (e.g., the current CU, or the overlapping portion of the PU and TU in HEVC). For inter prediction of the current block, the motion estimation unit 222 can perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously decoded pictures stored in the DPB 218). Specifically, the motion estimation unit 222 can calculate a value representing the degree of similarity of the potential reference block to the current block, for example, based on the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), etc. The motion estimation unit 222 can generally perform these calculations using the sample-by-sample difference between the current block and the reference block being considered. The motion estimation unit 222 can identify the reference block with the lowest value obtained from these calculations, which indicates the reference block that most closely matches the current block.

[0092] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of the reference block in the reference picture relative to the position of the current block in the current picture. The motion estimation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, for unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, while for bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then use the motion vectors to generate a prediction block.

[0093] In some examples, the motion compensation unit may include a size unit (SU) 223. The size unit 223 may compare the size of the reference picture pointed to by the motion vector for the current block with the size of the current picture to determine whether the size of the reference picture for the current block is the same as the size of the current picture. In some examples, such as in the case of a bi-prediction block, the size unit 223 may compare the sizes of two reference pictures for the bi-prediction block to determine whether the sizes of the two reference pictures are the same size. In some examples, the size unit 223 may be part of the motion estimation unit 222, or split between the motion estimation unit 222 and the motion compensation unit 224.

[0094] The motion compensation unit 224 may use the motion vector to retrieve data for the reference block. As another example, if the motion vector has fractional sample precision, the motion compensation unit 224 may interpolate the values ​​for the prediction block according to one or more interpolation filters. In addition, for bidirectional inter-frame prediction, the motion compensation unit 224 may retrieve data for two reference blocks identified by the corresponding motion vectors and combine the retrieved data, for example, by sample-by-sample averaging or weighted averaging.

[0095] As another example, for intra prediction or intra prediction decoding, the intra prediction unit 226 can generate a prediction block based on samples adjacent to the current block. For example, for directional mode, the intra prediction unit 226 can generally mathematically combine the values ​​of adjacent samples and fill these calculated values ​​across the current block in a defined direction to produce a prediction block. As another example, for DC mode, the intra prediction unit 226 can calculate the average of adjacent samples of the current block and generate a prediction block to include the resulting average for each sample of the prediction block.

[0096] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the original uncoded version of the current block from the video data memory 230 and receives the prediction block from the mode selection unit 202. The residual generation unit 204 calculates the sample-by-sample difference between the current block and the prediction block. The resulting sample-by-sample difference defines a residual block for the current block. In some examples, the residual generation unit 204 may also determine the difference between the sample values ​​in the residual block to generate the residual block using residual differential pulse code modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.

[0097] In an example where the mode selection unit 202 partitions the CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs of various sizes. As noted above, the size of the CU may refer to the size of the luma coding block of the CU, and the size of the PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2Nx2N, the video encoder 200 may support PU sizes of 2Nx2N or NxN for intra-prediction, and support 2Nx2N, 2NxN, Nx2N, NxN, or similar symmetrical PU sizes for inter-prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning of PU sizes of 2NxnU, 2NxnD, nLx2N, and nRx2N for inter-prediction.

[0098] In an example where the mode selection unit does not further split the CU into PUs, each CU may be associated with a luma coding block and a corresponding chroma coding block. As above, the size of a CU may refer to the size of the luma coding block of the CU. The video encoder 200 and the video decoder 300 may support a CU size of 2Nx2N, 2NxN, or Nx2N.

[0099] For other video coding techniques (such as intra-block copy mode coding, affine mode coding, and linear model (LM) mode coding, to name a few examples), the mode selection unit 202 generates a prediction block for the current block being encoded via a corresponding unit associated with the coding technique. In some examples (such as palette mode coding), the mode selection unit 202 may not generate a prediction block, but instead generate syntax elements indicating how to reconstruct the block based on the selected palette. In such a mode, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 to be encoded.

[0100] As described above, the residual generation unit 204 receives video data for a current block and a corresponding prediction block. The residual generation unit 204 then generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates the sample-by-sample difference between the prediction block and the current block.

[0101] The transform processing unit 206 applies one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). The transform processing unit 206 can apply various transforms to the residual block to form a transform coefficient block. For example, the transform processing unit 206 can apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to the residual block. In some examples, the transform processing unit 206 can perform a variety of transforms on the residual block, for example, a primary transform and a secondary transform (such as a rotation transform). In some examples, the transform processing unit 206 does not apply a transform to the residual block.

[0102] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode selection unit 202) may adjust the degree of quantization applied to the coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may cause a loss of information, and therefore, the quantized transform coefficients may have a lower precision than the original transform coefficients produced by the transform processing unit 206.

[0103] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform, respectively, to the quantized transform coefficient block to reconstruct a residual block from the transform coefficient block. The reconstruction unit 214 may generate a reconstructed block corresponding to the current block (although potentially with some degree of distortion) based on the reconstructed residual block and the prediction block generated by the mode selection unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the prediction block generated by the mode selection unit 202 to generate a reconstructed block.

[0104] Filter unit 216 may perform one or more filter operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edge of the CU. In some examples, the operations of filter unit 216 may be skipped.

[0105] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in an example where the operation of the filter unit 216 is not required, the reconstruction unit 214 can store the reconstructed blocks in the DPB 218. In an example where the operation of the filter unit 216 is required, the filter unit 216 can store the filtered reconstructed blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 can retrieve the reference picture formed by the reconstructed (and potentially filtered) blocks from the DPB 218 to perform inter-frame prediction on the blocks of the subsequent encoded pictures. In addition, the intra-frame prediction unit 226 can use the reconstructed blocks of the current picture in the DPB 218 to perform intra-frame prediction on other blocks in the current picture.

[0106] In general, the entropy coding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy coding unit 220 may entropy encode a quantized transform coefficient block from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode a prediction syntax element (e.g., motion information for inter-frame prediction or intra-frame mode information for intra-frame prediction) from the mode selection unit 202. The entropy coding unit 220 may perform one or more entropy coding operations on syntax elements as another example of video data to generate entropy-encoded data. For example, the entropy coding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable-to-variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioning entropy (PIPE) coding operation, an exponential Golomb coding operation, or another type of entropy coding operation on the data. In some examples, the entropy coding unit 220 may operate in a bypass mode in which the syntax elements are not entropy encoded.

[0107] The video encoder 200 may output a bitstream including entropy-encoded syntax elements required for reconstructing a block of a slice or picture. Specifically, the entropy encoding unit 220 may output a bitstream.

[0108] The above operations are described with respect to blocks. Such descriptions should be understood as operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding blocks and chroma coding blocks are the luma components and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are the luma components and chroma components of a PU.

[0109] In some examples, operations performed with respect to luma coding blocks need not be repeated for chroma coding blocks. As an example, operations for identifying motion vectors (MVs) and reference pictures for luma coding blocks need not be repeated for identifying MVs and reference pictures for chroma blocks. Specifically, the MVs for luma coding blocks may be scaled to determine MVs for chroma blocks, and the reference pictures may be the same. As another example, the intra prediction process may be the same for luma coding blocks and chroma coding blocks.

[0110] Video encoder 200 represents an example of a device configured to encode video data, the device comprising: a memory configured to store video data; and one or more processing units implemented in a circuit and configured to: determine a first reference block in a first reference picture for a first block of a current picture; determine whether the first reference picture is the same size as the current picture; based on the first reference picture being different in size from the current picture, decode the first block using a first inter-frame decoding tool in a first inter-frame decoding tool set, wherein a first specific tool among multiple inter-frame decoding tools is disabled; determine a second reference block in a second reference picture for a second block of the current picture; determine whether the second reference picture is the same size as the current picture; and based on the second reference picture being the same size as the current picture, decode the second block using a second inter-frame decoding tool in a second inter-frame decoding tool set, wherein the first specific tool is enabled.

[0111] Figure 4 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Figure 4 It is provided for the purpose of explanation and does not limit the techniques generally illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes the video decoder 300 according to the techniques of VVC and HEVC. However, the techniques of this disclosure can be performed by a video decoding device configured for other video decoding standards.

[0112] exist Figure 4 In the example of , the video decoder 300 includes a coded picture buffer (CPB) memory 320, an entropy decoding unit 302, a prediction processing unit 304, an inverse quantization unit 306, an inverse transform processing unit 308, a reconstruction unit 310, a filter unit 312, and a decoded picture buffer (DPB) 134. Any or all of the CPB memory 320, the entropy decoding unit 302, the prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, the filter unit 312, and the DPB 134 may be implemented in one or more processors or in processing circuitry. Furthermore, the video decoder 300 may include additional or alternative processors or processing circuitry to perform these and other functions.

[0113] The prediction processing unit 304 includes a motion compensation unit 316 and an intra prediction unit 318. The prediction processing unit 304 may include an addition unit that performs predictions according to other prediction modes. As an example, the prediction processing unit 304 may include a palette unit, an intra-block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, the video decoder 300 may include more, fewer, or different functional components.

[0114] CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of video decoder 300. For example, the video bitstream may be obtained from computer readable medium 110 ( Figure 1 ) obtains video data stored in CPB memory 320. CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from an encoded video bitstream. In addition, CPB memory 320 may store video data other than syntax elements of decoded pictures, such as temporary data representing outputs from various units of video decoder 300. DPB 314 typically stores decoded pictures, and video decoder 300 may output decoded pictures and / or use decoded pictures as reference video data when decoding subsequent data or pictures of the encoded video bitstream. CPB memory 320 and DPB 314 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. CPB memory 320 and DPB 314 may be provided by the same memory device or separate memory devices. In various examples, CPB memory 320 can be on-chip with other components of video decoder 300 , or off-chip relative to those components.

[0115] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1 ) to retrieve the decoded video data. That is, memory 120 may utilize CPB memory 320 to store data as discussed above. Likewise, when some or all of the functions of video decoder 300 are implemented in software to be executed by processing circuitry of video decoder 300, memory 120 may store instructions to be executed by video decoder 300.

[0116] Shows Figure 4 The various units shown in FIG. 3 are used to help understand the operations performed by the video decoder 300. These units may be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 3 , fixed-function circuits refer to circuits that provide specific functions and are pre-set with respect to the operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functions with respect to the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., to receive parameters or output parameters), but the types of operations performed by the fixed-function circuits are generally immutable. In some examples, one or more of these units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more units may be integrated circuits.

[0117] The video decoder 300 may include an ALU, an EFU, a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video decoder 300 is performed by software executed on the programmable circuit, an on-chip or off-chip memory may store instructions (e.g., object code) of the software received and executed by the video decoder 300.

[0118] The entropy decoding unit 302 may receive the encoded video data from the CPB and entropy decode the video data to reproduce the syntax elements. The prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, and the filter unit 312 may generate decoded video data based on the syntax elements extracted from the bitstream.

[0119] Typically, the video decoder 300 reconstructs a picture on a block-by-block basis. The video decoder 300 may perform a reconstruction operation on each block individually (wherein a block currently being reconstructed (ie, decoded) may be referred to as a "current block").

[0120] The entropy decoding unit 302 may entropy decode syntax elements defining the quantized transform coefficients of the quantized transform coefficient block and transform information such as a quantization parameter (QP) and / or a transform mode indication. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a degree of quantization and, likewise, determine a degree of inverse quantization for the inverse quantization unit 306 to apply. The inverse quantization unit 306 may, for example, perform a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.

[0121] After the inverse quantization unit 306 forms the transform coefficient block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the coefficient block.

[0122] In addition, prediction processing unit 304 generates a prediction block based on the prediction information syntax elements entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax elements indicate that the current block is inter-predicted, motion compensation unit 316 can generate a prediction block. In this case, the prediction information syntax elements can indicate a reference picture in DPB 314 from which to retrieve the reference block, and a motion vector that identifies the position of the reference block in the reference picture relative to the position of the current block in the current picture. Motion compensation unit 316 can generally generate a prediction block in the same manner as described for motion compensation unit 224 ( Figure 3 )The inter-frame prediction process is performed in a manner substantially similar to that described in detail above.

[0123] For example, the motion compensation unit 316 may include a size unit (SU) 315. The size unit 315 may compare the size of the reference picture pointed to by the motion vector for the current block with the size of the current picture to determine whether the size of the reference picture for the current block is the same as the size of the current picture. In some examples, such as in the case of a bi-prediction block, the size unit 315 may compare the sizes of two reference pictures for the bi-prediction block to determine whether the sizes of the two reference pictures are the same size.

[0124] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, the intra-prediction unit 318 may generate a prediction block according to the intra-prediction mode indicated by the prediction information syntax element. Again, the intra-prediction unit 318 may generally generate a prediction block in the same manner as described with respect to the intra-prediction unit 226 ( Figure 3 The intra prediction process is performed in a substantially similar manner as described in the foregoing description. The intra prediction unit 318 may retrieve data of neighboring samples of the current block from the DPB 314.

[0125] The reconstruction unit 310 may reconstruct the current block using the prediction block and the residual block. For example, the reconstruction unit 310 may reconstruct the current block by adding samples of the residual block to corresponding samples of the prediction block.

[0126] The filter unit 312 may perform one or more filter operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blocking artifacts along the edges of the reconstructed block. The operations of the filter unit 312 may not necessarily be performed in all examples.

[0127] The video decoder 300 may store the reconstructed blocks in the DPB 314. As discussed above, the DPB 314 may provide reference information (such as samples of the current picture for intra prediction and previously decoded pictures for subsequent motion compensation) to the prediction processing unit 304. In addition, the video decoder 300 may output decoded pictures from the DPB 314 for use in, for example, Figure 1 Subsequent presentation on a display device such as display device 118.

[0128] In this way, the video decoder 300 represents an example of a video decoding device, which includes: a memory configured to store video data; and one or more processing units implemented in a circuit and configured to: determine a first reference block in a first reference picture for a first block of a current picture; determine whether the first reference picture is the same size as the current picture; based on the first reference picture being different in size from the current picture, decode the first block using a first inter-coding tool in a first inter-coding tool set, wherein a first specific tool among multiple inter-coding tools is disabled; determine a second reference block in a second reference picture for a second block of the current picture; determine whether the second reference picture is the same size as the current picture; and based on the second reference picture being the same size as the current picture, decode the second block using a second inter-coding tool in a second inter-coding tool set, wherein the first specific tool is enabled.

[0129] Figure 5 is a flow chart illustrating an example of selectively enabling the use of a transcoding tool in accordance with techniques of this disclosure. Figure 5 In the example of FIG. 1 , motion estimation unit 222 of video encoder 200 or motion compensation unit 316 of video decoder 300 may determine a first reference block in a first reference picture for a first block of a current picture (322). For example, motion estimation unit 222 may perform a motion search to identify one or more reference blocks in one or more reference pictures stored in DPB 218 that closely match the first block, such as with respect to FIG. Figure 3 The motion compensation unit 316 may receive prediction information syntax elements indicating reference pictures in the DPB 314, such as Figure 4 discussed.

[0130] The size unit 223 of the video encoder 200 or the size unit 315 of the video decoder 300 may determine whether the first reference picture is the same size as the current picture (324). For example, the size unit 223 or the size unit 315 may compare the size (e.g., height, width) or resolution of the first reference picture with the current picture. Based on the first reference picture being different in size from the current picture, the video encoder 200 or the video decoder 300 may decode the first block using a first inter-coding tool in a first set of inter-coding tools, wherein a first specific tool in a plurality of inter-coding tools is disabled (326). For example, the video encoder 200 or the video decoder 300 may not use the first specific tool to decode the first block because the first specific tool is disabled. In some examples, the video encoder 200 (e.g., the motion estimation unit 222) or the video decoder 300 (e.g., the motion compensation unit 316) may disable the first specific tool in a plurality of inter-coding tools based on the first reference picture being different in size from the current picture.

[0131] Motion estimation unit 222 of video encoder 200 or motion compensation unit 316 of video decoder 300 may also determine a second reference block in a second reference picture for a second block of the current picture (328). For example, motion estimation unit 222 may perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures stored in DPB 218, such as with respect to Figure 3 The motion compensation unit 316 may receive prediction information syntax elements indicating reference pictures in the DPB 314, such as Figure 4 discussed.

[0132] The size unit 223 of the video encoder 200 or the size unit 315 of the video decoder 300 may determine whether the second reference picture is the same size as the current picture (330). For example, the size unit 223 or the size unit 315 may compare the size (e.g., height, width) or resolution of the first reference picture with the current picture. Based on the second reference picture being the same size as the current picture, the video encoder 200 or the video decoder 300 may decode the second block using a second inter-coding tool in a second set of inter-coding tools, wherein the first specific tool is enabled (332). For example, the video encoder 200 or the video decoder 300 may decode the second block using the first specific tool because the first specific tool is enabled. In some examples, the video encoder 200 (e.g., the motion estimation unit 222) or the video decoder 300 (e.g., the motion compensation unit 316) may enable a first specific tool in a plurality of inter-coding tools based on the second reference picture being the same size as the current picture.

[0133] In some examples, the video encoder 200 can determine whether application of the first specific tool will benefit the second block (e.g., provide higher quality decoded video, use less bandwidth, use less processing power, etc.). Based on the application of the first specific tool benefiting the second block, the video encoder 200 can select the first specific tool as the second inter-coding tool, and thus use the first specific tool to decode the second block.

[0134] In some examples, the first inter-frame decoding tool set is the same as the second inter-frame decoding tool set. In some examples, the first inter-frame decoding tool set is different from the second inter-frame decoding tool set. In some examples, the first inter-frame decoding tool set does not include the first specific tool. In some examples, the second inter-frame decoding tool set includes the first specific tool. In some examples, the first inter-frame decoding tool is the same as the second inter-frame decoding tool. In some examples, the first inter-frame decoding tool is different from the second inter-frame decoding tool.

[0135] Figure 6 is a flow chart illustrating another example of selectively enabling the use of a decoding tool according to the techniques of the present disclosure. For example, Figure 6 The technology can be used with Figure 5 The techniques are used together for bi-prediction blocks. Figure 6 In the example of , motion estimation unit 222 of video encoder 200 or motion compensation unit 316 of video decoder 300 may determine a third reference block in a third reference picture for the third block (334). For example, motion estimation unit 222 may perform a motion search to identify one or more reference blocks in one or more reference pictures stored in DPB 218 that closely match the third block, such as Figure 3 The motion compensation unit 316 may receive prediction information syntax elements indicating reference pictures in the DPB 314, such as Figure 4 Motion estimation unit 222 of video encoder 200 or motion compensation unit 316 of video decoder 300 may also determine a fourth reference block in a fourth reference picture for the third block (336).

[0136] The size unit 223 of the video encoder 200 or the size unit 317 of the video decoder 300 may determine whether the third reference picture is the same size as the fourth reference picture (338). For example, the size unit 223 or the size unit 317 may compare the size (e.g., height, width) or resolution of the third reference picture with the fourth reference picture.

[0137] Based on the third reference picture being the same size as the fourth reference picture, video encoder 200 or video decoder 300 may decode the third block using a third inter-coding tool in a third inter-coding tool set, wherein the first specific tool is enabled (340). In some examples, video encoder 200 or video decoder 300 may decode the third block using the first specific tool because the first specific tool is enabled. In some examples, video encoder 200 (e.g., motion estimation unit 222) or video decoder 300 (e.g., motion compensation unit 316) may enable a first specific tool in a plurality of inter-coding tools based on the third reference picture being the same size as the fourth reference picture.

[0138] In some examples, the video encoder 200 can determine whether application of the first specific tool will benefit the third block (e.g., provide higher quality decoded video, use less bandwidth, use less processing power, etc.). Based on the application of the first specific tool benefiting the third block, the video encoder 200 can select the first specific tool as the third inter-coding tool, and thus use the first specific tool to decode the third block.

[0139] Figure 7 is a flow chart illustrating another example of selectively enabling the use of a decoding tool according to the techniques of the present disclosure. For example, Figure 7 The technique can be used with bi-predicted blocks and can be used with Figure 5 and 6 Any of the techniques can be used together or alone. Figure 7 In the example of , the motion estimation unit 222 of the video encoder 200 or the motion compensation unit 316 of the video decoder 300 can determine a third reference block in a third reference picture for the third block of the current picture (382). For example, the motion estimation unit 222 can perform a motion search to identify one or more reference blocks in one or more reference pictures stored in the DPB 218 that closely match the third block, such as Figure 3 The motion compensation unit 316 may receive prediction information syntax elements indicating reference pictures in the DPB 314, such as Figure 4 Motion estimation unit 222 of video encoder 200 or motion compensation unit 316 of video decoder 300 may also determine a fourth reference block in a fourth reference picture for the third block of the current picture (384).

[0140] The size unit 223 of the video encoder 200 or the size unit 317 of the video decoder 300 may determine whether the third reference picture is the same size as the current picture (386). For example, the size unit 223 or the size unit 317 may compare the size (e.g., height, width) or resolution of the third reference picture with the current picture.

[0141] Based on the third reference picture being different in size from the current picture, video encoder 200 or video decoder 300 may utilize a third inter-coding tool from a third set of inter-coding tools to decode the third block, wherein a second specific tool from among the plurality of inter-coding tools is disabled for the third reference block (388). For example, video encoder 200 or video decoder 300 may not utilize the second specific tool to decode the third block using the third reference block because the second specific tool is disabled. In some examples, video encoder 200 (e.g., motion estimation unit 222) or video decoder 300 (e.g., motion compensation unit 316) may disable the second specific tool from among the plurality of inter-coding tools based on the third reference picture being different in size from the current picture.

[0142] The size unit 223 of the video encoder 200 or the size unit 317 of the video decoder 300 may also determine whether the fourth reference picture is the same size as the current picture (390). For example, the size unit 223 or the size unit 317 may compare the size (e.g., height, width) or resolution of the fourth reference picture with the current picture.

[0143] Based on the fourth reference picture being the same size as the current picture, the video encoder 200 or the video decoder 300 may utilize a fourth inter-coding tool in a fourth inter-coding tool set to decode the third block, wherein the second specific tool is enabled for the fourth reference block (392). For example, the video encoder 200 or the video decoder 300 may utilize the second specific tool to decode the third block using the fourth reference block because the first specific tool is enabled. In some examples, the video encoder 200 (e.g., the motion estimation unit 222) or the video decoder 300 (e.g., the motion compensation unit 316) may enable the second specific tool in the plurality of inter-coding tools based on the fourth reference picture being the same size as the current picture.

[0144] In some examples, the video encoder 200 can determine whether application of the second specific tool will benefit the third block (e.g., provide higher quality decoded video, use less bandwidth, use less processing power, etc.). Based on the application of the second specific tool benefiting the third block, the video encoder 200 can select the second specific tool as the fourth inter-coding tool, and thus use the second specific tool to decode the third block.

[0145] In some examples, the third inter-frame decoding tool set is the same as the fourth inter-frame decoding tool set. In some examples, the third inter-frame decoding tool set is different from the fourth inter-frame decoding tool set. In some examples, the third inter-frame decoding tool set does not include the second specific tool. In some examples, the fourth inter-frame decoding tool set includes the second specific tool. In some examples, the third inter-frame decoding tool is the same as the fourth inter-frame decoding tool. In some examples, the third inter-frame decoding tool is different from the fourth inter-frame decoding tool. It should also be understood that Figure 7 The inter-frame decoding tool set, inter-frame decoding tools and special decoding tools can be used with Figure 5-6 The tools are the same or different.

[0146] Figure 8 2 is a flowchart illustrating an example method for encoding a current block. The current block may include a current CU. Although with respect to the video encoder 200 ( Figure 1 and 3 ), but it should be understood that other devices may be configured to perform the same Figure 8 A similar approach to the one used in this paper.

[0147] In this example, video encoder 200 initially predicts a current block (350). For example, video encoder 200 may form a prediction block for the current block. While and / or after forming the prediction block for the current block, video encoder 200 may perform Figure 5-7 . The video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, the video encoder 200 may calculate the difference between the original, unencoded block and the predicted block for the current block. The video encoder 200 may then transform and quantize the coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or after the scan, the video encoder 200 may entropy encode the coefficients (358). For example, the video encoder 200 may encode the coefficients using CAVLC or CABAC. The video encoder 200 may then output the entropy encoded data of the block (360).

[0148] Fig. 9 is a flowchart illustrating an example method for decoding a current block of video data. The current block may include a current CU. Although with respect to the video decoder 300 ( Figure 1 and 4 ), but it should be understood that other devices may be configured to perform the same Fig. 9 A similar approach to the one used in this paper.

[0149] The video decoder 300 may receive entropy coded data for a current block (such as entropy coded prediction information and entropy coded data for coefficients of a residual block corresponding to the current block) (370). The video decoder 300 may entropy decode the entropy coded data to determine the prediction information for the current block and reproduce the coefficients of the residual block (372). The video decoder 300 may predict the current block (374), for example, using an intra-frame or inter-frame prediction mode as indicated by the prediction information for the current block to calculate a prediction block for the current block. During determination of the prediction information, during and / or after prediction of the current block, the video decoder 300 may perform Figure 5-7 The video decoder 300 may then inverse scan (376) the reproduced coefficients to create a block of quantized transform coefficients. The video decoder 300 may then inverse quantize and inverse transform the coefficients to produce a residual block (378). Finally, the video decoder 300 may decode the current block by combining the prediction block and the residual block (380).

[0150] This disclosure includes the following examples.

[0151] Example 1. A method for decoding video data, the method comprising: decoding one or more blocks of a current picture while selectively enabling one or more inter-frame decoding tools among a plurality of inter-frame decoding tools based on the current picture and a reference picture having different sizes.

[0152] Example 2. A method according to Example 1, wherein decoding the one or more blocks includes: determining a first reference block in a first reference picture for a first block of a current picture; decoding the first block while disabling a specific tool in one or more inter-coding tools among a plurality of inter-coding tools based on a size of the first reference picture being different from a size of the current picture; determining a second reference block in a second reference picture for a second block of the same current picture; and decoding the second block while enabling the specific tool in the one or more inter-coding tools among the plurality of inter-coding tools based on a size of the second reference picture being the same as a size of the current picture.

[0153] Example 3. A method according to Example 1, wherein decoding the one or more blocks includes: determining a first reference block in a first reference picture for a current block of a current picture; determining a second reference block in a second reference picture for the current block; and decoding the current block while disabling a specific tool in one or more of a plurality of inter-frame decoding tools for the first reference block and enabling the specific tool in the one or more of the plurality of inter-frame decoding tools for the second reference block based on the fact that a size of the first reference picture is different from a size of the current picture and a size of the second reference picture is the same as a size of the current picture.

[0154] Example 4. A method according to Example 1, wherein decoding the one or more blocks includes: determining a first reference block in a first reference picture for a current block of a current picture; determining a second reference block in a second reference picture for the current block; and based on the fact that the sizes of the first reference picture and the second reference picture are the same as each other and different from the size of the current picture, decoding the current block when a specific tool among one or more inter-frame decoding tools among a plurality of inter-frame decoding tools is enabled, wherein if the first reference picture and the second reference picture have different sizes, the specific tool will be disabled.

[0155] Example 5. A method according to Example 1, wherein decoding the one or more blocks includes: determining that a reference picture has a size different from that of a current picture; and based on a result of interpolation of a reference block of the reference picture by an inter-coding tool and not directly using the reference picture, decoding the current block of the current picture when the inter-coding tool is enabled.

[0156] Example 6. A method according to any one of Examples 1-5, wherein the specific tool includes one of temporal motion vector prediction (TMVP), decoding-side motion vector refinement (DMVR), and bidirectional optical flow (BDOF).

[0157] Example 7. A method according to any one of Examples 1-6, wherein the method is performed based on a determination that reference picture resampling (RPR) is enabled.

[0158] Example 8. A method according to any one of Examples 1-7, wherein the size of the reference picture or the size of the current picture refers to the resolution of the reference picture or the resolution of the current picture.

[0159] Example 9. A method comprising any one or a combination of Examples 1-8.

[0160] Example 10. The method of Example 9, wherein the decoding comprises decoding.

[0161] Example 11. The method of Example 9, wherein decoding includes encoding.

[0162] Example 12. A device for decoding video data, the device comprising: a memory configured to store video data; and a video decoder comprising at least one of a programmable circuit or a fixed-function circuit, wherein the video decoder is configured to perform the method described in any one or combination of Examples 1-9.

[0163] Example 13. The apparatus of Example 12, wherein the video decoder comprises a video decoder.

[0164] Example 14. The apparatus of Example 12, wherein the video decoder comprises a video encoder.

[0165] Example 15. A device according to any of Examples 12-14, wherein the device further comprises one or more of a display for displaying the tile and a camera for capturing a picture including the tile.

[0166] Example 16. A device according to any of Examples 12-15, wherein the device includes one or more of a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0167] Example 17. A computer-readable storage medium having instructions stored thereon, which, when executed, cause one or more processors to perform a method according to any one of Examples 1-11.

[0168] Example 18. An apparatus for decoding video data, the apparatus comprising means for performing the method according to any one of Examples 1-11.

[0169] It is to be appreciated that, according to examples, certain actions or events of any of the techniques described herein may be performed in a different order, may be added, combined, or omitted entirely (e.g., not all described actions or events are necessary for implementation of the techniques). In addition, in some examples, actions or events may be performed concurrently rather than sequentially, such as through multithreading, interrupt handling, or multiple processors.

[0170] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted through a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium such as a data storage medium or a communication medium, the communication medium including, for example, any medium that facilitates the transfer of a computer program from one place to another according to a communication protocol. In this manner, a computer-readable medium may generally correspond to (1) a non-temporary tangible computer-readable storage medium, or (2) a communication medium such as a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described in the present disclosure. A computer program product may include a computer-readable medium.

[0171] By way of example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and can be accessed by a computer. In addition, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit instructions from a website, server or other remote source, then the coaxial cable, optical fiber cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave) is included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals or other temporary media, but are instead directed to non-temporary tangible storage media. As used herein, disks and optical disks include compact disks (CDs), laser optical disks, optical disks, digital versatile disks (DVDs), floppy disks and blue-ray disks, wherein disks usually copy data magnetically, while optical disks use lasers to optically copy data. Combinations of the above should also be included within the scope of computer-readable media.

[0172] Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Therefore, the terms "processor" and "processing circuitry" as used herein may refer to any of the aforementioned structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functionality described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. In addition, the techniques may be implemented entirely in one or more circuits or logic elements.

[0173] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in the present disclosure to emphasize the functional aspects of a device configured to perform the disclosed techniques, but do not necessarily need to be implemented by different hardware units. Specifically, as described above, the various units may be combined in a codec hardware unit, or provided by a collection of interoperable hardware units (including one or more processors as described above) in combination with appropriate software and / or firmware.

[0174] Various examples have been described. These and other examples are within the scope of the following claims.

Claims

1. A method for decoding video data, the method comprising: determining a first reference block in a first reference picture for a first block of a current picture; Determining whether the first reference picture is the same size as the current picture; decoding the first block based on that the first reference picture is different in size from the current picture, wherein a first specific inter-coding tool is disabled for the first block; determining a second reference block in a second reference picture for a second block of the current picture; Determining whether the second reference picture is the same size as the current picture; Decoding the second block based on that the second reference picture is the same size as the current picture, wherein the first specific inter-coding tool is enabled for the second block; Determining a third reference block in a third reference picture for a third block of the current picture, wherein the third block is a bi-predicted block; Determining whether the third reference picture has the same size as the current picture; and The third block is bi-predictively decoded based on the third reference picture having a different size from the current picture, wherein a second specific inter-coding tool is disabled for the third reference block.

2. The method according to claim 1, further comprising: determining whether a disabled first specific inter-coding tool uses a result of interpolation of the first reference block and does not directly use the first reference block; Based on the result of interpolation of the disabled first specific inter-frame decoding tool using the first reference block and not directly using the first reference block, enabling the disabled first specific inter-frame decoding tool for the first block; as well as The first block is coded using the first specific inter-coding tool.

3. The method according to claim 1, wherein: The first specific inter-frame decoding tool includes one of temporal motion vector prediction (TMVP), decoding-side motion vector refinement (DMVR) or bidirectional optical flow (BDOF), and wherein the second specific inter-frame decoding tool includes one of TMVP, DMVR or BDOF.

4. The method according to claim 1, wherein: The method is performed based on a determination that reference picture resampling (RPR) is enabled.

5. The method according to claim 3, wherein: Size includes resolution.

6. The method according to claim 3, wherein: The same size includes the same height and the same width.

7. A device for decoding video data, the device comprising: a memory configured to store video data; as well as one or more processors implemented in circuitry and coupled to the memory, the one or more processors being configured to: determining a first reference block in a first reference picture for a first block of a current picture; Determining whether the first reference picture is the same size as the current picture; decoding the first block based on that the first reference picture is different in size from the current picture, wherein a first specific inter-coding tool is disabled for the first block; determining a second reference block in a second reference picture for a second block of the current picture; Determining whether the second reference picture is the same size as the current picture; Decoding the second block based on that the second reference picture is the same size as the current picture, wherein the first specific inter-coding tool is enabled for the second block; Determining a third reference block in a third reference picture for a third block of the current picture, wherein the third block is a bi-predicted block; Determining whether the third reference picture has the same size as the current picture; and The third block is bi-predictively decoded based on the third reference picture having a different size from the current picture, wherein a second specific inter-coding tool is disabled for the third reference block.

8. The device according to claim 7, wherein: The one or more processors are further configured to: determining whether a disabled first specific inter-coding tool uses a result of interpolation of the first reference block and does not directly use the first reference block; Based on the result of interpolation of the disabled first specific inter-frame decoding tool using the first reference block and not directly using the first reference block, enabling the disabled first specific inter-frame decoding tool for the first block; as well as The first block is coded using the first specific inter-coding tool.

9. The device according to claim 7, wherein: The first specific inter-frame decoding tool includes one of temporal motion vector prediction (TMVP), decoding-side motion vector refinement (DMVR) or bidirectional optical flow (BDOF), and wherein the second specific inter-frame decoding tool includes one of TMVP, DMVR or BDOF.

10. The device according to claim 7, wherein: The one or more processors are further configured to determine that reference picture resampling (RPR) is enabled.

11. The device according to claim 7, wherein: Size includes resolution.

12. The device of claim 7 comprising a wireless telephone.

13. The apparatus according to claim 9, wherein: The same size includes the same height and the same width.

14. A non-transitory computer readable medium having stored thereon instructions that, when executed, cause one or more processors to: determining a first reference block in a first reference picture for a first block of a current picture; Determining whether the first reference picture is the same size as the current picture; The first block is decoded based on the difference in size between the first reference picture and the current picture, wherein: A first specific inter-coding tool is disabled for said first block; determining a second reference block in a second reference picture for a second block of the current picture; Determining whether the second reference picture is the same size as the current picture; Decoding the second block based on that the second reference picture is the same size as the current picture, wherein the first specific inter-coding tool is enabled for the second block; Determining a third reference block in a third reference picture for a third block of the current picture, wherein the third block is a bi-predicted block; Determining whether the third reference picture has the same size as the current picture; and The third block is bi-predictively decoded based on the third reference picture having a different size from the current picture, wherein a second specific inter-coding tool is disabled for the third reference block.

15. The non-transitory computer readable medium of claim 14, wherein: When executed, the instructions further cause the one or more processors to perform the following operations: determining whether a disabled first specific inter-coding tool uses a result of interpolation of the first reference block and does not directly use the first reference block; Based on the result of interpolation of the disabled first specific inter-frame decoding tool using the first reference block and not directly using the first reference block, enabling the disabled first specific inter-frame decoding tool for the first block; as well as The first block is coded using the first specific inter-coding tool.

16. The non-transitory computer readable medium of claim 14, wherein: The first specific inter-frame decoding tool includes one of temporal motion vector prediction (TMVP), decoding-side motion vector refinement (DMVR) or bidirectional optical flow (BDOF), and wherein the second specific inter-frame decoding tool includes one of TMVP, DMVR or BDOF.

17. The non-transitory computer readable medium of claim 14, wherein: The instructions, when executed, further cause the one or more processors to determine that reference picture resampling (RPR) is enabled.

18. The non-transitory computer readable medium of claim 14, wherein: Size includes resolution.

19. The non-transitory computer readable medium of claim 16, wherein: The same size includes the same height and the same width.

20. A device for decoding video data, the device comprising: means for determining a first reference block in a first reference picture for a first block of a current picture; A unit configured to determine whether the first reference picture has the same size as the current picture; means for decoding the first block based on the first reference picture being of a different size than the current picture, wherein a first specific inter-coding tool is disabled for the first block; means for determining a second reference block in a second reference picture for a second block of the current picture; a unit configured to determine whether the second reference picture has the same size as the current picture; means for decoding the second block based on the second reference picture being the same size as the current picture, wherein the first specific inter-coding tool is enabled for the second block; means for determining a third reference block in a third reference picture for a third block of the current picture, wherein the third block is a bi-predicted block; A unit configured to determine whether the third reference picture has the same size as the current picture; and Means for bi-predictively coding the third block based on the third reference picture being of a different size than the current picture, wherein a second specific inter-coding tool is disabled for the third reference block.

21. The apparatus of claim 20, further comprising: means for determining whether a disabled first specific inter-coding tool uses a result of interpolation of the first reference block and does not directly use the first reference block; a unit for enabling the disabled first specific inter-frame decoding tool based on a result of interpolation of the disabled first specific inter-frame decoding tool using the first reference block and without directly using the first reference block; as well as Means for utilizing the first specific inter-coding tool to code the first block.

22. The apparatus of claim 20, wherein: The first specific inter-frame decoding tool includes one of temporal motion vector prediction (TMVP), decoding-side motion vector refinement (DMVR) or bidirectional optical flow (BDOF), and wherein the second specific inter-frame decoding tool includes one of TMVP, DMVR or BDOF.

23. The apparatus of claim 20, further comprising: A unit used to determine whether reference picture resampling (RPR) is enabled.

24. The apparatus of claim 20, wherein: Size includes resolution.

25. The apparatus of claim 22, wherein: The same size includes the same height and the same width.

Citation Information

Patent Citations

  • Reference picture resampling and inter-coding tools for video coding

    US11233988B2

  • Reference picture resampling and inter-coding tools for video coding

    US62849754P0