Encoder, decoder, and corresponding method
By dynamically managing the enablement and disabling of DMVR based on the resolution of the current and reference images in the video decoder, the problem of degradation of encoding efficiency in the prior art is solved, and more efficient resource utilization and coding performance improvement is achieved.
Patent Information
- Application Number
- JP2024228431
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2019-05-15
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2040-05-14
AI Technical Summary
Existing video encoding technologies are difficult to effectively enable or disable decoder-side motion vector refinement (DMVR) when processing current and reference images at different resolutions, resulting in a decrease in encoding efficiency.
DMVR is enabled or disabled dynamically by determining whether the resolutions of the current image and the reference image are the same in the video decoder. Specifically, DMVR is enabled when the resolution is the same, and DMVR is disabled when the resolution is different.
The flexible selection of DMVR is realized, avoiding the situation where DMVR is forcibly disabled in the entire video sequence when reference image sampling (RPR) is enabled, thereby improving encoding efficiency and reducing the use of processor, memory and network resources.
Smart Images

Figure 2025063073000001_ABST
Abstract
Description
[Technical field]
[0001] Generally, this disclosure describes techniques for supporting decoder-side motion vector refinement (DMVR) in video coding.
[0002] More specifically, this disclosure enables DMVR for reference picture resampling, but allows DMVR to be disabled for a block or sample when the spatial resolutions of the current and reference pictures differ. [Background technology]
[0003] The amount of video data required to render even a relatively short video can be substantial, which can create difficulties when the data is streamed or otherwise communicated over communication networks with limited bandwidth capacity. Thus, video data is typically compressed before being communicated over modern telecommunications networks. The size of the video can also be an issue when the video is stored on a storage device, since memory resources can be limited. Video compression devices often use software and / or hardware at the source to code the video data before transmission or storage, thereby reducing the amount of data required to represent a digital video image. The compressed data is then received at the destination by a video decompression device, which decodes the video data. With limited network resources and an ever-increasing demand for higher video quality, improved compression and decompression techniques that improve compression ratios with little sacrifice in image quality are desirable. Summary of the Invention
[0004] A first aspect relates to a method of decoding a coded video bitstream performed by a video decoder, the method including the steps of: determining, by the video decoder, whether a resolution of a current picture to be decoded is the same as a resolution of a reference picture identified by a reference picture list associated with the current picture; enabling, by the video decoder, decoder-side motion vector refinement (DMVR) for a current block of the current picture if it is determined that the resolution of the current picture is the same as a resolution of each of the reference pictures; disabling, by the video decoder, DMVR for the current block of the current picture if it is determined that the resolution of the current picture is different from the resolution of any of the reference pictures; and refining, by the video decoder, a motion vector corresponding to the current block using the DMVR if DMVR is enabled for the current block.
[0005] The method provides a technique that allows the DMVR to be selectively disabled when the spatial resolution of the current picture differs from the spatial resolution of the reference picture, instead of having to disable the DMVR for the entire CVS when reference picture resampling (RPR) is enabled. By having the ability to selectively disable the DMVR in this manner, coding efficiency can be improved. Thus, the use of processor, memory, and / or network resources can be reduced in both the encoder and the decoder. Thus, the coder / decoder (also referred to as a "codec") in video coding is improved compared to current codecs. In practical terms, the improved video coding process provides a user with a better user experience when the video is transmitted, received, and / or viewed.
[0006] Optionally, in any of the above aspects, another implementation aspect provides: the step of enabling the DMVR includes a step of setting a DMVR flag to a first value, and the step of disabling the DMVR includes a step of setting the DMVR flag to a second value.
[0007] Optionally, in any of the above aspects, another implementation aspect provides a step of generating a reference picture for the current picture based on the reference picture list according to a bi-directional inter prediction mode.
[0008] Optionally, in any of the above aspects, another implementation aspect provides a step of selectively both enabling and disabling DMVR for blocks in multiple pictures depending on whether the resolution of each picture is different or the same as the resolution of a reference picture associated with the picture.
[0009] Optionally, in any of the above aspects, another implementation aspect provides a step of enabling reference picture resampling (RPR) for the entire coded video sequence (CVS) including the current picture when DMVR is disabled.
[0010] Optionally, in any of the above aspects, another implementation aspect provides the following: the resolution of the current picture is located in a parameter set of the coded video bitstream, and the current block is obtained from a slice of the current picture.
[0011] Optionally, in any of the above aspects, another implementation aspect provides a step of displaying an image generated using the current block on a display of the electronic device.
[0012] A second aspect relates to a method of encoding a video bitstream performed by a video encoder, the method including the steps of: determining, by the video encoder, whether a resolution of a current picture to be encoded is the same as a resolution of a reference picture identified in a reference picture list associated with the current picture; enabling, by the video encoder, a decoder-side motion vector refinement (DMVR) for a current block of the current picture if the resolution of the current picture is determined to be the same as a resolution of each of the reference pictures; disabling, by the video encoder, the DMVR for the current block of the current picture if the resolution of the current picture is determined to be different from a resolution of any of the reference pictures; and refining, by the video encoder, a motion vector corresponding to the current block using the DMVR if DMVR is enabled for the current block.
[0013] The method provides a technique that allows the DMVR to be selectively disabled when the spatial resolution of the current picture differs from the spatial resolution of the reference picture, instead of having to disable the DMVR for the entire CVS when reference picture resampling (RPR) is enabled. By having the ability to selectively disable the DMVR in this manner, coding efficiency can be improved. Thus, the use of processor, memory, and / or network resources can be reduced in both the encoder and the decoder. Thus, the coder / decoder (also referred to as a "codec") in video coding is improved compared to current codecs. In practical terms, the improved video coding process provides a user with a better user experience when the video is transmitted, received, and / or viewed.
[0014] Optionally, in any of the above aspects, another implementation aspect provides a step of determining, by a video encoder, a motion vector for the current picture based on the reference picture; encoding, by the video encoder, the current picture based on the motion vector; and decoding, by the video encoder, the current picture using a hypothetical reference decoder.
[0015] Optionally, in any of the above aspects, another implementation aspect provides: the step of enabling the DMVR includes a step of setting a DMVR flag to a first value, and the step of disabling the DMVR includes a step of setting the DMVR flag to a second value.
[0016] Optionally, in any of the above aspects, another implementation aspect provides a step of generating a reference picture for the current picture based on the reference picture list according to a bi-directional inter prediction mode.
[0017] Optionally, in any of the above aspects, another implementation aspect provides a step of selectively both enabling and disabling DMVR for blocks in multiple pictures depending on whether the resolution of each picture is different or the same as the resolution of a reference picture associated with the picture.
[0018] Optionally, in any of the above aspects, another implementation aspect provides a step of enabling reference picture resampling (RPR) for the entire coded video sequence (CVS) including the current picture, even when DMVR is disabled.
[0019] Optionally, in any of the above aspects, another implementation aspect provides a step of transmitting a video bitstream including the current block to a video decoder.
[0020] A third aspect relates to a decoding device, the decoding device including: a receiver configured to receive a coded video bitstream; a memory coupled to the receiver, the memory storing instructions; and a processor coupled to the memory, the processor configured to execute instructions that cause the decoding device to: determine whether a resolution of a current picture to be decoded is the same as a resolution of a reference picture identified by a reference picture list associated with the current picture; enable a decoder-side motion vector refinement (DMVR) for a current block of the current picture if it is determined that the resolution of the current picture is the same as a resolution of each of the reference pictures; disable the DMVR for the current block of the current picture if it is determined that the resolution of the current picture is different from a resolution of any of the reference pictures; and if the DMVR is enabled for the current block, refine a motion vector corresponding to the current block using the DMVR.
[0021] Instead of having to disable DMVR for the entire CVS when reference picture resampling (RPR) is enabled, the decoding device provides a technique that allows DMVR to be selectively disabled when the spatial resolution of the current picture differs from the spatial resolution of the reference picture. By having the ability to selectively disable DMVR in this manner, coding efficiency can be improved. Thus, the use of processor, memory, and / or network resources can be reduced in both the encoder and the decoder. Thus, the coder / decoder (also referred to as "codec") in video coding is improved compared to current codecs. In practical terms, the improved video coding process provides a user with a better user experience when video is transmitted, received, and / or viewed.
[0022] Optionally, in any of the above aspects, another implementation aspect provides the following: when DMVR is disabled, reference picture resampling (RPR) is enabled for the entire coded video sequence (CVS) including the current picture.
[0023] Optionally, in any of the above aspects, another implementation aspect provides a display configured to display the image as generated based on the current block.
[0024] A fourth aspect relates to an encoding device, the encoding device including: a memory including instructions; a processor coupled to the memory, the processor configured to execute instructions that cause the encoding device to: determine whether a resolution of a current picture to be encoded is the same as a resolution of a reference picture identified in a reference picture list associated with the current picture; enable decoder-side motion vector refinement (DMVR) for a current block of the current picture if the resolution of the current picture is determined to be the same as a resolution of each of the reference pictures; disable DMVR for the current block of the current picture if the resolution of the current picture is determined to be different from a resolution of any of the reference pictures; refine a motion vector corresponding to the current block using the DMVR if DMVR is enabled for the current block; and, the encoding device including a transmitter coupled to the processor, the transmitter configured to transmit a video bitstream including the current video block to a video decoder.
[0025] Instead of having to disable DMVR for the entire CVS when reference picture resampling (RPR) is enabled, the encoding device provides a technique that allows DMVR to be selectively disabled when the spatial resolution of the current picture differs from the spatial resolution of the reference picture. By having the ability to selectively disable DMVR in this manner, coding efficiency can be improved. Thus, the use of processor, memory, and / or network resources can be reduced in both the encoder and the decoder. Thus, the coder / decoder (also referred to as "codec") in video coding is improved compared to current codecs. In practical terms, the improved video coding process provides a better user experience when video is transmitted, received, and / or viewed by the user.
[0026] Optionally, in any of the above aspects, another implementation aspect provides the following: Reference Picture Re-Sampling (RPR) is enabled for the entire Coded Video Sequence (CVS) including the current picture, even when DMVR is disabled.
[0027] Optionally, in any of the above aspects, another implementation aspect provides the following: the memory stores the video bitstream before the transmitter transmits the bitstream to the video decoder.
[0028] A fifth aspect relates to a coding apparatus, the coding apparatus including: a receiver configured to receive pictures to encode or to receive a bitstream to decode; a transmitter coupled to the receiver, configured to transmit the bitstream to a decoder or to transmit decoded images to a display; a memory coupled to at least one of the receiver or the transmitter, configured to store instructions; and a processor coupled to the memory, configured to execute the instructions stored in the memory to perform any of the methods disclosed herein.
[0029] Instead of having to disable the DMVR for the entire CVS when reference picture resampling (RPR) is enabled when the spatial resolution of the current picture differs from the spatial resolution of the reference picture, the coding apparatus provides a technique that allows the DMVR to be selectively disabled. By having the ability to selectively disable the DMVR in this manner, coding efficiency can be improved. Thus, the use of processor, memory, and / or network resources can be reduced in both the encoder and the decoder. Thus, the coder / decoder (also referred to as a "codec") in video coding is improved compared to current codecs. In practical terms, the improved video coding process provides a user with a better user experience when the video is transmitted, received, and / or viewed.
[0030] A sixth aspect relates to a system, the system including an encoder and a decoder in communication with the encoder, the encoder or decoder including a decoding device, encoding device, or coding apparatus as disclosed herein.
[0031] The system provides a technique that allows the DMVR to be selectively disabled when the spatial resolution of the current picture differs from the spatial resolution of the reference picture, instead of having to disable the DMVR for the entire CVS when reference picture resampling (RPR) is enabled. By having the ability to selectively disable the DMVR in this manner, coding efficiency can be improved. Thus, the use of processor, memory, and / or network resources can be reduced in both the encoder and the decoder. Thus, the coder / decoder (also referred to as a "codec") in video coding is improved compared to current codecs. In practical terms, the improved video coding process provides a better user experience when the video is transmitted, received, and / or viewed by the user. [Brief description of the drawings]
[0032] For a more complete understanding of the present disclosure, reference is now made to the following brief description taken in conjunction with the accompanying drawings and detailed description, in which like reference numerals represent like parts, and in which:
[0033] [Figure 1] FIG. 1 is a block diagram illustrating an example coding system capable of utilizing video coding techniques.
[0034] [Diagram 2] 1 is a block diagram illustrating an example video encoder capable of implementing video coding techniques.
[0035] [Diagram 3] 1 is a block diagram illustrating an example of a video decoder capable of implementing video coding techniques.
[0036] [Figure 4]The relationship between IRAP pictures and trailing pictures to a leading picture in both decoding order and presentation order.
[0037] [Diagram 5] We present an example of multi-layer coding for spatial scalability.
[0038] [Figure 6] FIG. 1 is a schematic diagram illustrating an example of unidirectional inter prediction.
[0039] [Figure 7] FIG. 1 is a schematic diagram illustrating an example of bidirectional inter prediction.
[0040] [Figure 8] Indicates the video bitstream.
[0041] [Figure 9] 1 illustrates a picture partitioning technique.
[0042] [Figure 10] 1 is an embodiment of a method for decoding a coded video bitstream.
[0043] [Figure 11] 1 is an embodiment of a method for encoding a coded video bitstream.
[0044] [Figure 12] 1 is a schematic diagram of a video coding device.
[0045] [Figure 13] FIG. 2 is a schematic diagram of an embodiment of a coding means; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0046] Although exemplary embodiments of one or more embodiments are provided below, it should be understood at the outset that the disclosed systems and / or methods may be implemented using any number of technologies, whether currently known or in existence. The present disclosure is in no way limited to the exemplary implementations, drawings, and technologies shown below, including the exemplary designs and implementations shown and described herein, but can be modified within the scope of the appended claims, along with their full scope of equivalents.
[0047] As used herein, resolution refers to the number of pixels in a video file. That is, resolution is the width and height of a projected image measured in pixels. For example, a video may have a resolution of 1280 (horizontal pixels) by 720 (vertical pixels). This is usually written simply as 1280x720 or abbreviated as 720p. DMVR is a process, algorithm, or coding tool used to refine the motion or motion vectors for a predicted block. DMVR allows a motion vector to be found based on two motion vectors found for bi-prediction using a bilateral template matching process. In DMVR, it is possible to find a weighted combination of the predictive coding units generated with each of the two motion vectors, and the two motion vectors can be refined by replacing them with a new motion vector that optimally points to the combined predictive coding unit. The RPR feature is the ability to change the spatial resolution of a coded picture midway through the bitstream without requiring intra-coding of the picture at the resolution change location.
[0048] FIG. 1 is a block diagram illustrating an example coding system 10 capable of utilizing video coding techniques as described herein. As shown in FIG. 1, coding system 10 includes a source device 12 that provides encoded video data to be subsequently decoded by a destination device 14. In particular, source device 12 may provide the video data to destination device 14 via a computer-readable medium 16. Source device 12 and destination device 14 may include any of a wide range of devices, including desktop computers, notebook (e.g., laptop) computers, tablet computers, set-top boxes, telephone handsets such as "smart" phones, so-called "smart" pads, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, and the like. In some cases, source device 12 and destination device 14 may be equipped for wireless communication.
[0049] The destination device 14 can receive the encoded video data to be decoded via a computer-readable medium 16. The computer-readable medium 16 can include any type of medium or device capable of moving the encoded video data from the source device 12 to the destination device 14. In one example, the computer-readable medium 16 can include a communication medium that allows the source device 12 to transmit the encoded video data directly to the destination device 14 in real time. The encoded video data can be modulated according to a communication standard, such as a wireless communication protocol, and transmitted to the destination device 14. The communication medium can include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium can form part 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 can include routers, switches, base stations, or any other equipment that can be useful in facilitating communication from the source device 12 to the destination device 14.
[0050] In some examples, the encoded data may be output from the output interface 22 to a storage device. Similarly, the encoded data may be accessed from a storage device via an input interface. The storage device may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, a Blu-ray disc, a digital versatile disc (DVD), a compact disc read-only memory (CD-ROM), a flash memory, a volatile or non-volatile memory, or any other suitable digital storage medium for storing the encoded video data. In another example, the storage device may correspond to a file server or another intermediate storage device capable of storing the encoded video generated by the source device 12. The destination device 14 may access the stored video data from the storage device by streaming or downloading. The file server may be any type of server capable of storing the encoded video data and transmitting the encoded video data to the destination device 14. Examples of file servers include a web server (e.g., a website), a file transfer protocol (FTP) server, a network attached storage (NAS) device, or a local disk drive. The destination device 14 may access the encoded video data over 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 digital subscriber line (DSL), cable modem, etc.), or a combination of both, suitable for accessing the encoded video data stored in the file server. The transmission of the encoded video data from the storage device may be a streaming transmission, a download transmission, or a combination thereof.
[0051] The techniques of this disclosure are not necessarily limited to wireless applications or settings. The techniques can be applied to video coding in supporting any of a variety of multimedia applications, such as over-the-air television broadcast, cable television transmission, satellite television transmission, Internet streaming video transmission such as Dynamic Adaptive Streaming over HTTP (DASH), digital video encoded on a data storage medium, decoding of digital video stored on a data storage medium, or other applications. In some examples, coding system 10 may be configured to support one-way or two-way video transmission to support applications such as video streaming, video playback, video broadcasting, and / or video telephony.
[0052] In the example of FIG. 1, source device 12 includes video source 18, video encoder 20, and output interface 22. Destination device 14 includes input interface 28, video decoder 30, and display device 32. According to this disclosure, video encoder 20 of source device 12 and / or video decoder 30 of destination device 14 may be configured to apply techniques for video coding. In other examples, the source device and destination device may include other components or arrangements. For example, source device 12 may receive video data from an external video source, such as an external camera. Similarly, destination device 14 may interface with an external display device rather than including an integrated display device.
[0053] The coding system 10 shown in FIG. 1 is merely an example. The techniques for video coding may be performed by any digital video encoding and / or decoding device. Although the techniques of this disclosure are generally performed by a video coding device, the techniques may also be performed by a video encoder / decoder, typically referred to as a "CODEC." Furthermore, the techniques of this disclosure may also be performed by a video processor. The video encoder and / or decoder may be a graphics processing unit (GPU) or similar device.
[0054] Source device 12 and destination device 14 are merely examples of coding devices, such that source device 12 generates encoded video data for transmission to destination device 14. In some examples, source device 12 and destination device 14 may operate in a substantially symmetric manner, such that source device 12 and destination device 14 each include video encoding and decoding components. Thus, coding system 10 may support unidirectional or bidirectional video transmission between video devices 12, 14, e.g., for video streaming, video playback, video broadcasting, or video telephony.
[0055] Video source 18 of source device 12 may include a video capture device such as a video camera, a video archive containing previously captured video, and / or a video feed interface for receiving video from a video content provider. As a further alternative, video source 18 may generate computer graphics-based data as the source video, or a combination of live video, archived video, and computer-generated video.
[0056] In some cases, where video source 18 is a video camera, source device 12 and destination device 14 may form a so-called camera phone or video phone. However, as noted above, the techniques described in this disclosure are applicable to video coding generally and may be applicable to wireless and / or wired applications. In each case, the captured, pre-captured, or computer-generated video may be encoded by video encoder 20. The encoded video information may then be output by output interface 22 to computer-readable medium 16.
[0057] Computer-readable medium 16 may include a transitory medium, such as a wireless broadcast or wired network transmission, or a storage medium (i.e., a non-transitory storage medium), such as a hard disk, a flash drive, a compact disk, a digital video disk, a Blu-ray disk, or other computer-readable medium. In some examples, a network server (not shown) may receive the encoded video data from source device 12 and provide the encoded video data to destination device 14, for example, via a network transmission. Similarly, a computing device of a media production apparatus, such as a disk stamping apparatus, may receive the encoded video data from source device 12 and generate a disk including the encoded video data. Thus, computer-readable medium 16 may be understood to include one or more computer-readable media of various forms in various examples.
[0058] An input interface 28 of destination device 14 receives information from computer-readable medium 16. The information on computer-readable medium 16 may include syntax information defined by video encoder 20 and also used by video decoder 30, which may include syntax elements that describe the characteristics and / or processing of blocks and / or other coded units, such as groups of pictures (GOPs). Display device 32 displays the decoded video data to a user and may include 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 other types of display devices.
[0059] Video encoder 20 and video decoder 30 may operate according to a video coding standard, such as the High Efficiency Video Coding (HEVC) standard currently under development and may conform to the HEVC Test Model (HM). Alternatively, video encoder 20 and video decoder 30 may operate according to other proprietary or industry standards, such as the International Telecommunications Union Telecommunications Standardization Sector (ITU-T) H.264 standard, alternatively referred to as Moving Picture Experts Group (MPEG)-4, Part 10, Advanced Video Coding (AVC), H.265 / HEVC, or extensions of such standards. However, the techniques of this disclosure are not limited to any particular coding standard. Other examples of video coding standards include MPEG-2 and ITU-T H.263. 1, in some aspects, video encoder 20 and video decoder 30 may be integrated with audio encoders and decoders, respectively, and may include appropriate multiplexer-demultiplexer (MUX-DEMUX) units or other hardware and software to handle the encoding of both audio and video in a common data stream or separate data streams. If applicable, the MUX-DEMUX units may conform to the ITU H.223 multiplexer protocol or other protocols, such as User Datagram Protocol (UDP).
[0060] Each of the video encoder 20 and the video decoder 30 may be implemented as any of a variety of suitable encoder 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. If the techniques are implemented in part in software, the device may store instructions for the software on a suitable non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to perform the techniques of this disclosure. Each of the video encoder 20 and the video decoder 30 may be included in one or more encoders or decoders, any of which may be integrated as part of a combined encoder / decoder (CODEC) within the respective device. The device including the video encoder 20 and / or the video decoder 30 may include an integrated circuit, a microprocessor, and / or a wireless communication device, such as a cellular telephone.
[0061] FIG. 2 is a block diagram illustrating an example of a video encoder 20 capable of implementing video coding techniques. The video encoder 20 may perform intra- and inter-coding of video blocks within a video slice. Intra-coding relies on spatial prediction to reduce or remove spatial redundancy in video within a given video frame or picture. Inter-coding relies on temporal prediction to reduce or remove temporal redundancy in video within adjacent frames or pictures of a video sequence. Intra-mode (I-mode) may refer to any of several spatial-based coding modes. Inter-modes, such as unidirectional prediction (also known as uni-prediction) (P mode) or bidirectional (also known as bi-prediction) (B mode), may refer to any of several temporal-based coding modes.
[0062] As shown in FIG. 2, video encoder 20 receives a current video block in a video frame to be encoded. In the example of FIG. 2, video encoder 20 includes a mode selection unit 40, a reference frame memory 64, an adder 50, a transform processing unit 52, a quantization unit 54, and an entropy coding unit 56. Mode selection unit 40 in turn includes a motion compensation unit 44, a motion estimation unit 42, an intra prediction unit 46, and a partition unit 48. For video block reconstruction, video encoder 20 also includes an inverse quantization unit 58, an inverse transform unit 60, and an adder 62. A deblocking filter (not shown in FIG. 2) may also be included to filter block boundaries to remove blockiness artifacts from the reconstructed video. If desired, the deblocking filter typically filters the output of adder 62. Additional filters (in-loop or post-loop) may also be used in addition to the deblocking filter. Such a filter is not shown for simplicity, but if desired, the output of summer 50 can be filtered (as an in-loop filter).
[0063] During the encoding process, video encoder 20 receives a video frame or slice to be coded. The frame or slice may be divided into multiple video blocks. Motion estimation unit 42 and motion compensation unit 44 perform inter-predictive coding of the received video block relative to one or more blocks in one or more reference frames to provide temporal prediction. Intra prediction unit 46 may also alternatively perform intra-predictive coding of the received video block relative to one or more neighboring blocks in the same frame or slice as the block to be coded to provide spatial prediction. Video encoder 20 may perform multiple coding passes, e.g., to select an appropriate coding mode for each block of video data.
[0064] Further, partition unit 48 may partition blocks of video data into sub-blocks based on an evaluation of a previous partitioning scheme in a previous coding pass. For example, partition unit 48 may first partition a frame or slice into largest coding units (LCUs) and partition each LCU into sub-coding units based on a rate-distortion analysis (e.g., rate-distortion optimization). Mode selection unit 40 may further generate a quadtree data structure indicating the partitioning of the LCUs into sub-CUs. A leaf node CU of the quadtree may include one or more prediction units (PUs) and one or more transform units (TUs).
[0065] This disclosure uses the term "block" to refer to any of a CU, PU, or TU in the context of HEVC, or similar data structures in the context of other standards (e.g., macroblocks and sub-blocks thereof in H.264 / AVC). A CU includes a coding node, PUs, and TUs associated with the coding node. The size of a CU corresponds to the size of a coding node and is a square shape. The size of a CU can range from 8×8 pixels to a maximum treeblock size of 64×64 pixels or more. Each CU can include one or more PUs and one or more TUs. Syntax data associated with a CU can, for example, describe partitioning of a CU into one or more PUs. The partitioning mode can differ depending on whether a CU is skipped or direct mode coded, intra prediction mode coded, or inter prediction mode coded. A PU may be partitioned to be a non-square shape. Syntax data associated with a CU can also, for example, describe partitioning of a CU into one or more TUs according to a quadtree. The TUs can be square or non-square (eg, rectangular) in shape.
[0066] Mode selection unit 40 selects one of inter or intra coding modes based, for example, on an error result, and provides the resulting intra or inter coded block to adder 50 to generate residual block data, and to adder 62 which reconstructs the coded block for use as a reference frame. Mode selection unit 40 also provides syntax elements, such as motion vectors, intra mode indicator, partition information, and other such syntax information, to entropy coding unit 56.
[0067] Motion estimation unit 42 and motion compensation unit 44 may be highly integrated, but are shown separately for conceptual purposes. Motion estimation performed by motion estimation unit 42 is a process of generating motion vectors that estimate the motion of video blocks. A motion vector may indicate, for example, the displacement of a PU of a video block in a current video frame or picture relative to a predictive block in a reference frame relative to a current block (or other coded unit) being coded in the current frame. A predictive block is a block that is found to closely match a block to be coded in terms of pixel differences, which may be determined by sum of absolute differences (SAD), sum of squared differences (SSD), or other difference metrics. In some examples, video encoder 20 may calculate values for sub-integer pixel locations of a reference picture stored in reference frame memory 64. For example, video encoder 20 may interpolate values for quarter-pixel locations, eighth-pixel locations, or other fractional pixel locations of a reference picture. Thus, motion estimation unit 42 may perform motion searches for full pixel locations and fractional pixel locations and output fractional pixel precision motion vectors.
[0068] Motion estimation unit 42 calculates a motion vector for a PU of a video block in an inter-coded slice by comparing the position of the PU with the position of a predictive block of a reference picture. The reference picture may be selected from a first reference picture list (List 0) or a second reference picture list (List 1), each of which identifies one or more reference pictures stored in reference frame memory 64. Motion estimation unit 42 sends the calculated motion vector to entropy encoding unit 56 and motion compensation unit 44.
[0069] The motion compensation performed by motion compensation unit 44 may include fetching or generating a predictive block based on the motion vector determined by motion estimation unit 42. Also, in some examples, motion estimation unit 42 and motion compensation unit 44 may be functionally integrated. Upon receiving the motion vector for the PU of the current video block, motion compensation unit 44 may locate the predictive block to which the motion vector points in one of the reference picture lists. Adder 50 forms a residual video block by subtracting pixel values of the predictive block from pixel values of the current video block being coded to form pixel difference values, as described below. In general, motion estimation unit 42 performs motion estimation on the luma component, and motion compensation unit 44 uses the motion vector calculated based on the luma components for both the chroma and luma components. Mode selection unit 40 may also generate syntax elements related to the video blocks and video slices for use by video decoder 30 in decoding video blocks of the video slices.
[0070] Intra prediction unit 46 may intra predict the current block as an alternative to the inter prediction performed by motion estimation unit 42 and motion compensation unit 44 as described above. In particular, intra prediction unit 46 may determine an intra prediction mode to use to encode the current block. In some examples, intra prediction unit 46 may encode the current block using different intra prediction modes, e.g., during separate encoding passes, and intra prediction unit 46 (or, in some examples, mode selection unit 40) may select an appropriate intra prediction mode to use from the tested modes.
[0071] For example, intra prediction unit 46 may use a rate-distortion analysis to calculate rate-distortion values for various tested intra prediction modes and select an intra prediction mode with optimal rate-distortion characteristics among the tested modes. The rate-distortion analysis generally determines the amount of distortion (or error) between a coded block and the original uncoded block that was coded to generate the coded block, as well as the bit rate (i.e., number of bits) used to generate the coded block. Intra prediction unit 46 may calculate ratios from the distortions and rates for the various coded blocks and determine which intra prediction mode exhibits the best rate-distortion value for the block.
[0072] Furthermore, the intra prediction unit 46 may be configured to code the depth blocks of the depth map using a depth modeling mode (DMM). The mode selection unit 40 may determine whether an available DMM mode provides better coding results than the intra prediction mode and other DMM modes, for example using rate-distortion optimization (RDO). Data of the texture image corresponding to the depth map may be stored in the reference frame memory 64. The motion estimation unit 42 and the motion compensation unit 44 may also be configured to inter predict the depth blocks of the depth map.
[0073] After selecting an intra-prediction mode for the block (e.g., a conventional intra-prediction mode or one of a plurality of DMM modes), intra-prediction unit 46 may provide information indicating the selected intra-prediction mode for the block to entropy coding unit 56. Entropy coding unit 56 may encode the information indicating the selected intra-prediction mode. Video encoder 20 may include definitions of coding contexts for various blocks and an indication of the most probable intra-prediction mode, the intra-prediction mode index table, and the modified intra-prediction mode index table to use for each context in transmitted bitstream configuration data, which may include a plurality of intra-prediction mode index tables and a plurality of modified intra-prediction mode index tables (also referred to as codeword mapping tables).
[0074] Video encoder 20 forms a residual video block by subtracting the prediction data from mode select unit 40 from the original video block being coded. Summer 50 represents the component or components that perform this subtraction operation.
[0075] Transform processing unit 52 applies a transform, such as a discrete cosine transform (DCT) or a conceptually similar transform, to the residual block, producing a video block that includes residual transform coefficient values. Transform processing unit 52 may perform other transforms that are conceptually similar to a DCT. Wavelet transforms, integer transforms, sub-band transforms, or other types of transforms may also be used.
[0076] Transform processing unit 52 applies a transform to the residual block, generating a block of residual transform coefficients. The transform may convert the residual information from a pixel value domain to a transform domain, such as the frequency domain. Transform processing unit 52 may send the resulting transform coefficients to quantization unit 54. Quantization unit 54 quantizes the transform coefficients to further reduce the bit rate. The quantization process may reduce the bit depth associated with some or all of the coefficients. The degree of quantization may be modified by adjusting a quantization parameter. In some examples, quantization unit 54 may then perform a scan of a matrix including the quantized transform coefficients. Alternatively, entropy coding unit 56 may perform the scan.
[0077] After quantization, entropy coding unit 56 entropy codes the quantized transform coefficients. For example, entropy coding unit 56 may perform context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioning entropy (PIPE) coding, or other entropy coding techniques. For context-based entropy coding, the context may be based on neighboring blocks. Following entropy coding by entropy coding unit 56, the encoded bitstream may be transmitted to another device (e.g., video decoder 30) or archived for later transmission or retrieval.
[0078] Inverse quantization unit 58 and inverse transform unit 60 apply inverse quantization and inverse transformation, respectively, to reconstruct the residual block in the pixel domain, e.g., for later use as a reference block. Motion compensation unit 44 may calculate a reference block by adding the residual block to a predictive block of one of the frames in reference frame memory 64. Motion compensation unit 44 may also apply one or more interpolation filters to the reconstructed residual block to calculate sub-integer pixel values for use in motion estimation. Adder 62 adds the reconstructed residual block to the motion compensated predictive block generated by motion compensation unit 44 to generate a reconstructed video block for storage in reference frame memory 64. The reconstructed video block may be used by motion estimation unit 42 and motion compensation unit 44 as a reference block for inter-coding blocks in subsequent video frames.
[0079] 3 is a block diagram illustrating an example of a video decoder 30 capable of implementing video coding techniques. In the example of FIG. 3, the video decoder 30 includes an entropy decoding unit 70, a motion compensation unit 72, an intra prediction unit 74, an inverse quantization unit 76, an inverse transform unit 78, a reference frame memory 82, and an adder 80. The video decoder 30 may, in some examples, perform a decoding pass that is generally the inverse of the encoding pass described with respect to the video encoder 20 (FIG. 2). The motion compensation unit 72 may generate prediction data based on the motion vectors received from the entropy decoding unit 70, while the intra prediction unit 74 may generate prediction data based on the intra prediction mode indicator received from the entropy decoding unit 70.
[0080] During the decoding process, video decoder 30 receives an encoded video bitstream from video encoder 20, the bitstream representing video blocks of a decoded video slice and associated syntax elements. Entropy decoding unit 70 of video decoder 30 decodes the bitstream and generates quantized coefficients, motion vectors or intra-prediction mode indicators, and other syntax elements. Entropy decoding unit 70 forwards the motion vectors and other syntax elements to motion compensation unit 72. Video decoder 30 may receive syntax elements at the video slice level and / or the video block level.
[0081] When a video slice is coded as an intra-coded (I) slice, intra prediction unit 74 may generate prediction data for video blocks of the current video slice based on the signaled intra prediction mode and data from previously decoded blocks of the current frame or picture. When a video frame is coded as an inter-coded (e.g., B, P, or GPB) slice, motion compensation unit 72 generates prediction blocks for video blocks of the current video slice based on the motion vectors and other syntax elements received from entropy decoding unit 70. The prediction blocks may be generated from one of the reference pictures in one of the reference picture lists. Video decoder 30 may construct the reference frame lists, List 0 and List 1, using a default construction technique based on reference pictures stored in reference frame memory 82.
[0082] Motion compensation unit 72 determines prediction information for video blocks of the current video slice by parsing the motion vectors and other syntax elements, and uses the prediction information to generate predictive blocks for the current video block to be decoded. For example, motion compensation unit 72 uses some of the received syntax elements to determine a prediction mode used to code video blocks of the video slice, an inter-prediction slice type (e.g., a B slice, a P slice, or a GPB slice), configuration information for one or more of the reference picture lists of the slice, a motion vector for each inter-coded video block of the slice, an inter-prediction status for each inter-coded video block of the slice, and other information for decoding video blocks in the current video slice.
[0083] Motion compensation unit 72 may also perform the interpolation based on an interpolation filter. Motion compensation unit 72 may use an interpolation filter as used by video encoder 20 during encoding of the video block to calculate interpolated values for sub-integer pixels of the reference block. In this case, motion compensation unit 72 may determine the interpolation filter used by video encoder 20 from the received syntax element and use the interpolation filter to generate the prediction block.
[0084] Data for texture images corresponding to the depth maps may be stored in reference frame memory 82. Motion compensation unit 72 may also be configured to inter-predict depth blocks of the depth maps.
[0085] In an embodiment, the video decoder 30 includes a user interface 84. The user interface 84 is configured to receive input from a user (e.g., a network administrator) of the video decoder 30. Through the user interface 84, the user may manage or change settings in the video decoder 30. For example, the user may enter or otherwise provide values for parameters (e.g., flags) to control the configuration and / or operation of the video decoder 30 according to the user's preferences. The user interface 84 may be a graphical user interface (GUI) that allows the user to interact with the video decoder 30, for example, via graphical icons, drop-down menus, check boxes, and the like. In some cases, the user interface 84 may receive information from the user via a keyboard, mouse, or other peripheral device. In an embodiment, the user may access the user interface 84 via a smart phone, tablet device, personal computer that is remote from the video decoder 30, and the like. As used herein, the user interface 84 may be referred to as an external input or external means.
[0086] With the above in mind, video compression techniques perform 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 (i.e., a video picture or a portion of a video picture) may be partitioned into video blocks, which may be referred to as tree blocks, coding tree blocks (CTBs), 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 with respect 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 with respect to reference samples in neighboring blocks in the same picture or may use temporal prediction with respect to reference samples in other reference pictures. A picture may be referred to as a frame, and a reference picture may be referred to as a reference frame.
[0087] The spatial or temporal prediction results in a predictive block for the block to be coded. The residual data represents the pixel difference between the original block to be coded and the predictive block. Inter-coded blocks are coded according to a motion vector that points to a block of reference samples that form the predictive block, and the residual data represents the difference between the coded block and the predictive block. Intra-coded blocks are coded according to an intra-coding mode and the residual data. For further compression, the residual data is transformed from the pixel domain to a transform domain, resulting in residual transform coefficients that can then be quantized. The quantized transform coefficients are initially arranged in a two-dimensional array and can be scanned to generate a one-dimensional vector of transform coefficients, and entropy coding can be applied to achieve even more compression.
[0088] Image and video compression is rapidly evolving and moving towards a variety of coding standards. Such video coding standards include Advanced Video Coding (AVC), also known as ITU-T H.261, International Organization for Standardization / International Electrotechnical Commission (ISO / IEC) MPEG-1 Part 2, ITU-T H.262 or ISO / IEC MPEG-2 Part 2, ITU-T H.263, ISO / IEC MPEG-4 Part 2, ITU-T H.264 or ISO / IEC MPEG-4 Part 10, and High Efficiency Video Coding (HEVC), also known as ITU-T H.265 or MPEG-H Part 2. AVC includes extensions such as Scalable Video Coding (SVC), Multiview Video Coding (MVC) and Multiview Video Coding plus Depth (MVC+D), and 3D AVC (3D-AVC). HEVC includes extensions such as Scalable HEVC (SHVC), Multiview HEVC (MV-HEVC), and 3D HEVC (3D-HEVC).
[0089] There is also a new video coding standard named Versatile Video Coding (VVC) developed by the ITU-T and ISO / IEC Joint Video Experts Team (JVET). The VVC standard includes several working drafts, but one working draft of VVC in particular, B. Bross, J. Chen, and S. Liu, “Versatile Video Coding (Draft 5),” JVET-N1001-v3, 13th JVET Meeting, March 27, 2019 (VVC Draft 5), is incorporated herein by reference in its entirety.
[0090] The description of the technology disclosed in this patent is based on the video coding standard Versatile Video Coding (VVC), which is under development by the ITU-T and ISO / IEC Joint Video Experts Team (JVET), however the technology also applies to other video codec standards.
[0091] FIG. 4 illustrates a representation 400 of the relationship between an Intra Random Access Point (IRAP) picture 402 and a trailing picture 406 with respect to a leading picture 404 in decoding order 408 and presentation order 410. In an embodiment, an IRAP picture 402 is referred to as a Clean Random Access (CRA) picture or an Instantaneous Decoder Refresh (IDR) picture with a Random Access Decodable (RADL) picture. In HEVC, IDR pictures, CRA pictures, and Broken Link Access (BLA) pictures are all considered as IRAP pictures 402. In VVC, it was agreed at the 12th JVET meeting in October 2018 to have both IDR and CRA pictures as IRAP pictures. In an embodiment, Broken Link Access (BLA) and Gradual Decoder Refresh (GDR) pictures can also be considered as IRAP pictures. The decoding process of a coded video sequence always starts with IRAP.
[0092] As shown in Figure 4, leading pictures 404 (e.g., pictures 2 and 3) follow the IRAP picture 402 in decoding order 408, but precede the IRAP picture 402 in presentation order 410. A trailing picture 406 follows the IRAP picture 402 in both decoding order 408 and presentation order 410. Although two leading pictures 404 and one trailing picture 406 are shown in Figure 4, one skilled in the art will recognize that more or fewer leading pictures 404 and / or trailing pictures 406 may be present in the decoding order 408 or the trailing order 410 in a practical application.
[0093] The leading pictures 404 in FIG. 4 are divided into two types: Random Access Skip Leading (RASL) and RADL. If the decoding starts with an IRAP picture 402 (e.g., picture 1), the RADL picture (e.g., picture 3) can be properly decoded; however, the RASL picture (e.g., picture 2) cannot be properly decoded. Thus, the RASL picture is discarded. According to the distinction between RADL and RASL pictures, the type of the leading picture 404 associated with an IRAP picture 402 should be identified as either RADL or RASL for efficient and proper coding. In HEVC, there is a constraint that, for the RASL and RADL pictures associated with the same IRAP picture 402, if there are RASL and RADL pictures, the RASL picture shall precede the RADL picture in the presentation order 410.
[0094] The IRAP picture 402 provides two important features / advantages: First, the presence of the IRAP picture 402 indicates that the decoding process can start from that picture. This feature enables a random access feature where the decoding process starts from that position in the bitstream as long as the IRAP picture 402 is present at that position, not necessarily at the beginning of the bitstream. Second, the presence of the IRAP picture 402 refreshes the decoding process, so that the coded pictures starting with the IRAP picture 402, except for the RASL picture, are coded without reference to any preceding pictures. The presence of the IRAP picture 402 in the bitstream will therefore stop any errors that may have occurred during the decoding of the coded pictures preceding the IRAP picture 402 from propagating to the IRAP picture 402 and the pictures following the IRAP picture 402 in the decoding order 408.
[0095] Although the IRAP picture 402 provides an important function, it incurs a penalty on compression efficiency. The presence of the IRAP picture 402 causes a sudden increase in bit rate. This penalty on compression efficiency is due to two reasons. First, since the IRAP picture 402 is an intra-predicted picture, the picture itself requires relatively more bits to represent when compared to other pictures that are inter-predicted (e.g., leading picture 404, trailing picture 406). Second, since the presence of the IRAP picture 402 interrupts temporal prediction (because the decoder refreshes the decoding process, one of the operations of which is to remove the preceding reference picture in the decoded picture buffer (DPB)), the IRAP picture 402 makes the coding of the pictures that follow the IRAP picture 402 in the decoding order 408 less efficient (i.e., require more bits to represent) because there are fewer reference pictures for their inter-predictive coding.
[0096] Among the picture types considered for IRAP pictures 402, IDR pictures in HEVC have different signaling and derivation when compared to other picture types. Some of the differences are:
[0097] For signaling and derivation of the Picture Order Count (POC) value for an IDR picture, the Most Significant Bit (MSB) portion of the POC is not derived from the preceding key picture, but is simply set equal to 0.
[0098] Regarding signaling information required for reference picture management, the slice header of an IDR picture does not contain any information that needs to be signaled to support reference picture management. For other picture types (i.e., CRA, Trailing, Temporal Sublayer Access (TSA), etc.), information such as the Reference Picture Set (RPS) described below or other forms of similar information (e.g., Reference Picture List) is required for the reference picture marking process (i.e., the process to determine the status of reference pictures in the Decoded Picture Buffer (DPB), either used for reference or not used for reference). However, in the case of an IDR picture, such information does not need to be signaled, because the presence of the IDR indicates that the decoding process shall simply mark all reference pictures in the DPB as not used for reference.
[0099] In HEVC and VVC, the IRAP picture 402 and the leading picture 404 may each be contained within a single network abstraction layer (NAL) unit. A set of NAL units may be referred to as an access unit. The IRAP picture 402 and the leading picture 404 are of different given NAL unit types so that they can be easily identified by system-level applications. For example, a video splicer needs to understand the coded picture type without needing to understand excessive details of syntax elements in the coded bitstream, and in particular needs to distinguish the IRAP picture 402 from non-IRAP pictures and the leading picture 404 from the trailing picture 406, which includes determining the RASL and RADL pictures. The trailing picture 406 is a picture associated with the IRAP picture 402 and follows the IRAP picture 402 in the presentation order 410. A picture may follow a particular IRAP picture 402 in decoding order 408 and may precede some other IRAP picture 402 in decoding order 408. For this reason, IRAP pictures 402 and leading pictures 404 below their own NAL unit type are useful for such applications.
[0100] In HEVC, NAL unit types for IRAP pictures include: BLA with Leading Pictures (BLA_W_LP): A Broken Link Access (BLA) NAL unit that may be followed in decoding order by one or more leading pictures. BLA with RADL (BLA_W_RADL): A NAL unit of a BLA picture, which may be followed in decoding order by one or more RADL pictures but not by a RASL picture. BLA without Leading Picture (BLA_N_LP): A NAL unit of a BLA picture that is not followed by a leading picture in decoding order. DLA with RADL (IDR_W_RADL): A NAL unit of an IDR picture that may be followed in decoding order by one or more RADL pictures but not by a RASL picture. IDR without Leading Picture (IDR_N_LP): A NAL unit that is an IDR picture that is not followed by a leading picture in decoding order. CRA: A NAL unit that is a clean random access (CRA) picture, which may be followed by a leading picture (i.e., a RASL picture, a RADL picture, or both). RADL: NAL unit of RADL picture. RASL: NAL unit of RASL picture.
[0101] In VVC, the NAL unit types for IRAP pictures 402 and leading pictures 404 are as follows: IDR with RADL (IDR_W_RADL): A NAL unit of an IDR picture that may be followed in decoding order by one or more RADL pictures but not by a RADL picture. IDR without Leading Picture (IDR_N_LP): A NAL unit that is an IDR picture that is not followed by a leading picture in decoding order. CRA: A NAL unit that is a clean random access (CRA) picture, which may be followed by a leading picture (i.e., a RASL picture, a RADL picture, or both). RADL: NAL unit of RADL picture. RASL: NAL unit of RASL picture.
[0102] The Reference Picture Resampling (RPR) feature is the ability to change the spatial resolution of a coded picture midway through the bitstream without requiring intra-coding of the picture at the resolution change location. To make this possible, a picture needs to be able to reference one or more reference pictures whose spatial resolution is different from that of the current picture for the purposes of inter prediction. Thus, resampling of such reference pictures or parts thereof is required for the encoding and decoding of the current picture. Hence the name RPR. This feature may also be referred to as Adaptive Resolution Change (ARC) or by other names. There are use cases or application scenarios that benefit from the RPR feature, including the following:
[0103] Rate adaptation in video telephony and conferencing, to adapt the coded video to changing network conditions: if network conditions deteriorate, resulting in less available bandwidth, the encoder can adapt by encoding pictures with a smaller resolution.
[0104] Active speaker change in multi-party video conferencing. In multi-party video conferencing, it is common for the video size for the active speaker to be larger or higher than the video size for the remaining conference participants. When the active speaker changes, it may require that the picture resolution of each participant be adjusted as well. The need to have ARC functionality becomes more important when active speaker changes occur frequently.
[0105] Fast start in streaming. In streaming applications, it is common for the application to buffer up to a certain length of decoded pictures before starting to display them. Starting the bitstream at a smaller resolution allows the application to have enough pictures in the buffer to start displaying them sooner.
[0106] Adaptive Stream Switching in Streaming. The Dynamic Adaptive Streaming over HTTP (DASH) standard includes a feature named @mediaStreamStructureId. This feature allows switching between different representations at open GOP random access points with non-decodable leading pictures, e.g. CRA pictures with associated RASL pictures in HEVC. If two different representations of the same video have different bitrates but the same spatial resolution, while they have the same value of @mediaStreamStructureId, it is possible to perform switching between the two representations at the CRA picture associated with the RASL picture, and the RASL picture associated with the switching at the CRA picture can be decoded with acceptable quality, thus allowing seamless switching. In ARC, the @mediaStreamStructureId feature can also be used for switching between DASH representations with different spatial resolutions.
[0107] Various methods have been proposed to promote basic techniques to support RPR / ARC, such as the list of picture resolutions, signaling some constraints on the resampling of reference pictures in the DPB. Furthermore, at the 14th JVET meeting in Geneva, there were several input contributions suggesting constraints that should be applied to VVC to support RPR. The proposed constraints include:
[0108] Some tools shall be disabled for the coding of a block in the current picture if it refers to a reference picture that has a different resolution than the current picture. These tools include:
[0109] Temporal Motion Vector Prediction (TMVP) and Advanced TMVP (ATMVP), which was proposed by JVET-N0118.
[0110] Decoder-side motion vector refinement (DMVR), which was proposed by JVET-N0279.
[0111] Bi-directional Optical Flow (BIO), which was proposed by JVET-N0279.
[0112] Bi-prediction of blocks from reference pictures with different resolution than the current picture is not allowed, as proposed by JVET-N0118.
[0113] In case of motion compensation, sample filtering shall be applied only once, i.e. if resampling and interpolation are required to obtain a finer pel resolution (e.g. 1 / 4 pel resolution), the two filters need to be combined and applied only once, as proposed by JVET-N0118.
[0114] Scalability in video coding is usually supported by using multi-layer coding techniques. A multi-layer bitstream includes a base layer (BL) and one or more enhancement layers (EL). Examples of scalability include spatial scalability, quality / signal-to-noise (SNR) scalability, multiview scalability, etc. When multi-layer coding techniques are used, a picture or a part of it can be coded (1) without using a reference picture, i.e., without using intra prediction, (2) by referencing a reference picture that is in the same layer, i.e., by using inter prediction, or (3) by referencing a reference picture that is in another layer, i.e., by using inter layer prediction. A reference picture used for inter layer prediction of the current picture is called an inter layer reference picture (ILRP).
[0115] 5 illustrates an example of multi-layer coding for spatial scalability 500. A picture 502 in layer N has a different resolution (e.g., lower resolution) than a picture 504 in layer N+1. In an embodiment, as described above, layer N is considered to be a base layer and layer N+1 is considered to be an enhancement layer. Picture 502 in layer N and picture 504 in layer N+1 may be coded using inter prediction (as indicated by the solid arrows). Picture 502 may also be coded using inter layer prediction (as indicated by the dashed arrow).
[0116] In the context of RPR, reference pictures are resampled by selecting reference pictures from lower layers or by using inter-layer prediction, where higher layer reference pictures can be generated based on lower layer reference pictures.
[0117] The previous H.26x video coding family provides support for scalability with separate profiles in the profile for single layer coding. Scalable Video Coding (SVC) is a scalable extension of AVC / H.264 that provides support for spatial, temporal and quality scalability. In SVC, a flag is signaled in each macroblock (MB) in an EL picture to specify whether the EL MB is predicted using collocated blocks from the lower layer. Predictions from collocated blocks may include texture, motion vectors and / or coding modes. SVC implementations cannot directly reuse unmodified H.264 / AVC implementations in their design. The SVC EL macroblock syntax and decoding process differ from the H.264 / AVC syntax and decoding process.
[0118] Scalable HEVC (SHVC) is an extension of the HEVC / H.265 standard that supports spatial and quality scalability, Multiview HEVC (MV-HEVC) is an extension of HEVC / H.265 that supports multiview scalability, and 3D HEVC (3D-HEVC) is an extension of HEVC / H.264 that supports three-dimensional (3D) video coding, which is more advanced and more efficient than MV-HEVC. It should be noted that temporal scalability is included as an integral part of the single-layer HEVC codec. The design of the multi-layer extension of HEVC uses the idea that decoded pictures used for inter-layer prediction come only from the same access unit (AU), are treated as long-term reference pictures (LTRPs), and are assigned a reference index in the reference picture list together with other temporal reference pictures of the current layer. Inter-layer prediction (ILP) is achieved at the prediction unit (PU) level by setting the value of a reference index to reference an inter-layer reference picture in a reference picture list.
[0119] In particular, both reference picture resampling and spatial scalability features require resampling of the reference picture or a part of it. Reference picture resampling can be realized either at the picture level or at the coding block level. However, when RPR is mentioned as a coding feature, it is the function for single layer coding. Even so, it is possible or desirable from a codec design point of view to use the same resampling filter for both the RPR feature of single layer coding and the spatial scalability feature of multi-layer coding.
[0120] JVET-N0279 proposed to disable DMVR for RPR. More precisely, it is proposed to disable the use of DMVR for the entire Coded Video Sequence (CVS) when RPR is enabled. It turns out that even when the RPR feature is enabled, the current picture does not refer to a reference picture with a different resolution in many cases. Therefore, disabling DMVR for the entire CVS is unnecessarily restrictive and may hurt coding efficiency.
[0121] Disclosed herein is a technique that allows the DMVR to be selectively disabled when the spatial resolution of the current picture is different from the spatial resolution of the reference picture, instead of having to disable the DMVR for the entire CVS when the RPR is enabled. By having the ability to selectively disable the DMVR in this manner, coding efficiency can be improved. Thus, the use of processor, memory, and / or network resources can be reduced in both the encoder and the decoder. Thus, the coder / decoder (also referred to as "codec") in video coding is improved compared to current codecs. In practical terms, the improved video coding process provides a better user experience when the video is transmitted, received, and / or viewed.
[0122] 6 is a schematic diagram illustrating an example of a unidirectional inter prediction 600. The unidirectional inter prediction 600 can be used to determine motion vectors of encoded and / or decoded blocks generated when partitioning a picture.
[0123] The unidirectional inter prediction 600 uses a reference frame 630 having a reference block 631 to predict a current block 611 in a current frame 610. The reference frame 630 may be located temporally after the current frame 610 as shown (e.g., as a subsequent reference frame), but in some instances may be located temporally before the current frame 610 (e.g., as a preceding reference frame). The current frame 610 is an exemplary frame / picture to be encoded / decoded at a particular time. The current frame 610 includes an object in a current block 611 that matches an object in a reference block 631 of the reference frame 630. The reference frame 630 is a frame used as a reference for encoding the current frame 610, and the reference block 631 is a block in the reference frame 630 that includes an object that is also included in the current block 611 of the current frame 610.
[0124] A current block 611 is any coding unit being coded / decoded at a particular point in the coding process. The current block 611 may be an entire partitioned block or a sub-block when using affine inter prediction mode. A current frame 610 is separated from a reference frame 630 by a certain temporal distance (TD) 633. The TD 633 indicates the amount of time between the current frame 610 and the reference frame 630 in the video sequence and may be measured in frames. Prediction information for the current block 611 may reference the reference frame 630 and / or the reference block 631 by a reference index that indicates the direction and temporal distance between the frames. Over the period represented by the TD 633, an object in the current block 611 moves from a position in the current frame 610 to another position in the reference frame 630 (e.g., the position of the reference block 631). For example, the object may move along a motion trajectory 613, which is the direction of the object's motion over time. The motion vector 635 describes the direction and magnitude of the object's motion along the motion trajectory 613 across the TD 633. Thus, the coded motion vector 635, the reference block 631, and the residual comprising the difference between the current block 611 and the reference block 631 provide sufficient information to reconstruct the current block 611 and to position the current block 611 within the current frame 610.
[0125] 7 is a schematic diagram illustrating an example of bidirectional inter prediction 700. The bidirectional inter prediction 700 can be used to determine motion vectors of encoded and / or decoded blocks generated when partitioning a picture.
[0126] Bidirectional inter prediction 700 is similar to unidirectional inter prediction 600, but uses a pair of reference frames to predict a current block 711 in a current frame 710. Thus, the current frame 710 and the current block 711 are substantially similar to the current frame 610 and the current block 611, respectively. The current frame 710 is located in time between a preceding reference frame 720, which appears before the current frame 710 in the video sequence, and a subsequent reference frame 730, which appears after the current frame 710 in the video sequence. The preceding reference frame 720 and the subsequent reference frame 730 are substantially similar to the reference frame 630 in other respects as well.
[0127] A current block 711 matches a previous reference block 721 in a previous reference frame 720 and a subsequent reference block 731 in a subsequent reference frame 730. Such a match indicates that an object moves from a position in the previous reference block 721 along a motion trajectory 713 through the current block 711 to a position in the subsequent reference block 731 during the course of the video sequence. The current frame 710 is separated from the previous reference frame 720 by a previous time distance (TD0) 7233 and from the subsequent reference frame 730 by a subsequent time distance (TD1) 733. TD0 723 indicates the amount of time in frames between the previous reference frame 720 and the current frame 710 in the video sequence. TD1 733 indicates the amount of time in frames between the current frame 710 and the subsequent reference frame 730 in the video sequence. Thus, the object moves from the previous reference block 721 to the current block 711 along the motion trajectory 713 over a period indicated by TD0 723. Also, the object moves from the current block 711 to the subsequent reference block 731 along the motion trajectory 713 over a period indicated by TD1 733. The prediction information of the current block 711 can refer to the previous reference frame 720 and / or previous reference block 721, and the subsequent reference frame 730 and / or subsequent reference block 731 by a pair of reference indexes indicating the temporal distance and direction between the frames.
[0128] A previous motion vector (MV0) 725 describes the direction and magnitude of an object's motion along the motion trajectory 713 across TD0 723 (e.g., between a previous reference frame 720 and a current frame 710). A subsequent motion vector (MV1) 735 describes the direction and magnitude of an object's motion along the motion trajectory 713 across TD1 733 (e.g., between a current frame 710 and a subsequent reference frame 730). Thus, in bidirectional inter prediction 700, a current block 711 can be coded and reconstructed by using a previous reference block 721 and / or a subsequent reference block 731, MV0 725, and MV1 735.
[0129] In an embodiment, inter prediction and / or both inter prediction may be performed on a sample-by-sample (e.g., pixel-by-pixel) basis rather than on a block-by-block basis. That is, a motion vector pointing to each sample in the previous reference block 721 and / or the subsequent reference block 731 may be determined for each sample in the current block 711. In such an embodiment, the motion vector 725 and the motion vector 735 shown in FIG. 7 represent multiple motion vectors corresponding to multiple samples in the current block 711, the previous reference block 721, and the subsequent reference block 731.
[0130] In both merge and advanced motion vector prediction (AMVP) modes, the candidate list is generated by adding candidate vectors to the candidate list in an order defined by a candidate list determination pattern. Such candidate motion vectors may include motion vectors according to unidirectional inter prediction 600, bidirectional inter prediction 700, or a combination thereof. Specifically, motion vectors are generated for neighboring blocks when such blocks are coded. Such motion vectors are added to a candidate list for a current block, and a motion vector for the current block is selected from the candidate list. The motion vectors can then be signaled as an index of the selected motion vector in the candidate list. The decoder can build the candidate list using the same process as the encoder and can determine the selected motion vector from the candidate list based on the signaled index. Thus, the candidate motion vectors include motion vectors generated according to unidirectional inter prediction 600 and / or bidirectional inter prediction 700, depending on which approach is used when such neighboring blocks are coded.
[0131] 8 illustrates a video bitstream 800. As used herein, the video bitstream 800 may be referred to as a coded video bitstream, a bitstream, or variations thereof. As shown in FIG. 8, the bitstream 800 includes a sequence parameter set 802, a picture parameter set 804, a slice header 806, and picture data 808.
[0132] The SPS 802 contains data common to all pictures in a sequence of pictures (SOP). In contrast, the PPS 804 contains data common to an entire picture. The slice header 806 contains information about the current slice, such as the slice type, which reference pictures are used, etc. The SPS 802 and PPS 804 may be commonly referred to as parameter sets. The SPS 802, PPS 804, and slice header 806 are types of Network Abstraction Layer (NAL) units. A NAL unit is a syntax structure that contains an indication of the type of data (e.g., coded video data) that follows it. NAL units are classified into Video Coding Layer (VCL) and non-VCL NAL units. VCL NAL units contain data that represent the values of samples in a video picture, and non-VCL NAL units contain some associated additional information, such as parameter sets (important header data that may apply to multiple VCL NAL units) and supplemental enhancement information (timing information and other supplemental data that may enhance the usability of the decoded video signal, but that is not required to decode the values of samples in a video picture). Those skilled in the art will appreciate that bitstream 800 may contain other parameters and information in practical applications.
[0133] Image data 808 in FIG. 8 includes data related to an image or video to be encoded or decoded. Image data 808 may simply be referred to as the payload or data carried within bitstream 800. In an embodiment, image data 808 includes a CVS 814 (or CLVS) that includes multiple pictures 810. CVS 814 is a coded video sequence for the entire coded layer video sequence (CLVS) within video bitstream 800. Of note, if video bitstream 800 includes a single layer, then the CVS and CLVS are the same. CVS and CLVS only differ if video bitstream 800 includes multiple layers.
[0134] Each slice of picture 810 may be contained within its own VCL NAL unit 812. A set of VCL NAL units 812 within a CVS 814 may be referred to as an access unit.
[0135] FIG. 9 illustrates a partitioning technique 900 for a picture 910. The picture 910 may be similar to any picture 810 in FIG. 8. As illustrated, the picture 910 may be partitioned into multiple slices 912. A slice is a spatially distinct frame region (e.g., a picture) that is coded separately from any other region within the same frame. Although three slices 912 are shown in FIG. 9, more or fewer slices may be used in a real application. Each slice 912 may be partitioned into multiple blocks 914. The blocks 914 in FIG. 9 may be similar to the current block 711, the previous reference block 721, and the subsequent reference block 731 in FIG. 7. The blocks 914 may represent a CU. Although four blocks 914 are shown in FIG. 9, more or fewer blocks may be used in a real application.
[0136] Each block 914 may be partitioned into multiple samples (e.g., pixels) 916. In an embodiment, the size of each block 914 is measured in luma samples. Although 16 samples 916 are shown in FIG. 9, more or fewer samples may be used in an actual application.
[0137] FIG. 10 is an embodiment of a method 1000 for decoding a coded video bitstream implemented by a video decoder (e.g., video decoder 30). Method 1000 may be performed after a decoded bitstream is received directly or indirectly from a video encoder (e.g., video encoder 20). Method 1000 improves the decoding process by allowing DMVR to be selectively disabled when the spatial resolution of the current picture differs from the spatial resolution of the reference picture, instead of having to disable DMVR for the entire CVS when RPR is enabled. Having the ability to selectively disable DMVR in this manner can improve coding efficiency. Thus, in practice, codec performance is improved, resulting in a better user experience.
[0138] In block 1002, the video decoder determines whether a resolution of a current picture to be decoded is the same as a resolution of a reference picture identified by a reference picture list. In an embodiment, the video decoder receives a coded video bitstream (e.g., bitstream 800). The coded video bitstream includes a reference picture list, indicates a resolution of the current picture, and indicates a bidirectional inter prediction mode. In an embodiment, the reference picture list structure includes a reference picture list. In an embodiment, the reference picture list is used for bidirectional inter prediction. In an embodiment, the resolution of the current picture is located in a parameter set of the coded video bitstream. In an embodiment, the resolution of the reference picture is derived based on the current picture, inferred based on the resolution of the current picture, parsed from the bitstream, or otherwise obtained. In an embodiment, a reference picture for the current picture is generated based on the reference picture list according to the bidirectional inter prediction mode.
[0139] In block 1004, the video decoder enables DMVR for the current block of the current picture if it is determined that the resolution of the current picture is the same as the resolution of each of the reference pictures. In an embodiment, the video decoder enables DMVR by setting a DMVR flag to a first value (e.g., true, 1, etc.). In an embodiment, DMVR is an optional process even when DMVR is enabled. That is, DMVR does not need to be performed even when DMVR is enabled.
[0140] In block 1006, the video decoder disables DMVR for the current block of the current picture if the resolution of the current picture differs from the resolution of any of the reference pictures. In an embodiment, the video decoder disables DMVR by setting a DMVR flag to a second value (e.g., false, zero).
[0141] At block 1008, the video decoder refines the motion vector corresponding to the current block if the DMVR flag is set to the first value. In an embodiment, the method 1000 further includes selectively enabling and disabling DMVR for other blocks in the current picture depending on whether a resolution of the current picture is different or the same as a resolution of the reference picture.
[0142] In an embodiment, the method further includes enabling reference picture resampling (RPR) for an entire coded video sequence (CVS) including the current picture if DMVR is disabled.
[0143] In an embodiment, the current block is obtained from a slice of the current picture. In an embodiment, the current picture includes a plurality of slices and the current block is obtained from a slice of the plurality of slices.
[0144] In an embodiment, an image generated based on the current picture is displayed to a user of an electronic device (e.g., a smart phone, a tablet, a laptop, a personal computer, etc.).
[0145] FIG. 11 is an embodiment of a method 1100 for encoding a video bitstream implemented by a video encoder (e.g., video encoder 20). Method 900 may be performed when pictures (e.g., from a video) are encoded into a video bitstream and transmitted to a video decoder (e.g., video decoder 30). Method 1100 improves the encoding process by allowing the DMVR to be selectively disabled when the spatial resolution of the current picture differs from the spatial resolution of the reference picture, instead of having to disable the DMVR for the entire CVS when RPR is enabled. Having the ability to selectively disable the DMVR in this manner can improve coding efficiency. Thus, in practice, the performance of the codec is improved, resulting in a better user experience.
[0146] In block 1102, the video encoder determines whether a resolution of a current picture to be encoded is the same as a resolution of a reference picture identified by the reference picture list. In an embodiment, the reference picture list structure includes a reference picture list. In an embodiment, the reference picture list is used for bidirectional inter prediction. In an embodiment, the resolution of the current picture is encoded in a parameter set of the video bitstream. In an embodiment, a reference picture for the current picture is generated based on the reference picture list according to a bidirectional inter prediction mode.
[0147] In block 1104, the video encoder enables DMVR for the current block of the current picture if the resolution of the current picture is determined to be the same as the resolution of each of the reference pictures. In an embodiment, the video encoder enables DMVR by setting a DMVR flag to a first value (e.g., true, 1, etc.). In an embodiment, DMVR is an optional process even when DMVR is enabled. That is, DMVR does not need to be performed even when DMVR is enabled.
[0148] In an embodiment, the method includes determining a motion vector for a current picture based on a reference picture, encoding the current picture based on the motion vector, and decoding the current picture using a hypothetical reference decoder (HRD).
[0149] In block 1106, the video encoder disables DMVR for the current block of the current picture if the resolution of the current picture differs from the resolution of any of the reference pictures. In an embodiment, the video encoder disables DMVR by setting a DMVR flag to a second value (e.g., false, zero).
[0150] In block 1108, the video encoder refines the motion vector corresponding to the current block if the DMVR flag is set to the first value. In an embodiment, the method 1100 further includes selectively enabling and disabling DMVR for other blocks in the current picture depending on whether a resolution of the current picture is different or the same as a resolution of the reference picture.
[0151] In an embodiment, the method further includes enabling reference picture resampling (RPR) for an entire coded video sequence (CVS) including the current picture, even if DMVR is disabled.
[0152] In an embodiment, the current block is obtained from a slice of the current picture. In an embodiment, the current picture includes a plurality of slices and the current block is obtained from a slice of the plurality of slices.
[0153] In an embodiment, the video encoder generates a video bitstream that includes the current block and transmits the video bitstream to the video decoder. In an embodiment, the video encoder stores the video bitstream for transmission to the video decoder.
[0154] In an embodiment, a method for decoding a video bitstream is disclosed, the video bitstream including at least one picture, each picture including a plurality of slices, each slice of the plurality of slices including a plurality of coding blocks and a plurality of reference picture lists, each reference picture list of the plurality of reference picture lists including a plurality of reference pictures that can be used for inter prediction of coding blocks in the slice.
[0155] The method includes the steps of parsing a parameter set to obtain resolution information of a current picture; obtaining two reference picture lists of a current slice of the current picture; determining a reference picture for decoding a current coding block of the current slice; determining a resolution of the reference picture; determining whether decoder-side motion vector refinement (DMVR) is used or enabled for decoding the current coding block based on the resolutions of the current picture and the reference picture; and decoding the current coding block.
[0156] In an embodiment, when the resolutions of the current picture and the reference picture are different, the DMVR is not used or is disabled for decoding the current child block.
[0157] In an embodiment, a method for decoding a video bitstream is disclosed. The video bitstream includes at least one picture. Each picture includes a number of slices. Each slice of the number of slices is associated with a header including a number of syntax elements. Each slice of the number of slices includes a number of coding blocks and a number of reference picture lists. Each reference picture list of the number of reference picture lists includes a number of reference pictures that may be used for inter prediction of coding blocks in a current slice.
[0158] The method includes the steps of: parsing the parameter set to obtain a flag that specifies whether a decoder-side motion vector refinement (DMVR) coding tool / technique may be used in decoding a picture in a current coded video sequence; obtaining a current slice in the current picture; and The method includes parsing a slice header associated with the current slice to obtain a flag specifying whether a decoder-side motion vector refinement (DMVR) coding tool / technique may be used in decoding of a coding block in the current slice, if a value of the flag specifying whether a DMVR coding tool / technique may be used in decoding of a picture in the current coded video sequence specifies that DMVR may be used.
[0159] In an embodiment, if the value of the flag specifying whether the DMVR coding tool may be used for decoding of a coding block in the current slice specifies that the coding tool may not be used for decoding of the current slice, then the DMVR coding tool is not used or is disabled for decoding of the current coding block.
[0160] In an embodiment, if not present, the value of the flag specifying whether DMVR coding tools may be used for decoding of coding blocks in the current slice is presumed to be the same as the value of the flag specifying whether decoder-side motion vector refinement (DMVR) coding tools / techniques may be used for decoding of pictures in the current coded video sequence.
[0161] In an embodiment, a method for encoding a video bitstream is disclosed. The video bitstream includes at least one picture. Each picture includes a number of slices. Each slice of the number of slices is associated with a header including a number of syntax elements. Each slice of the number of slices includes a number of coding blocks and a number of reference picture lists. Each reference picture list of the number of reference picture lists comprises a number of reference pictures that may be used for inter prediction of a current coding block.
[0162] The method includes the steps of determining whether a decoder-side motion vector refinement (DMVR) coding tool / technique may be used for encoding a picture in the current coded video sequence; analyzing a parameter set to obtain resolution information of each picture bitstream; obtaining two reference picture lists of a current slice in the current picture; analyzing the reference picture list of the current slice to obtain active reference pictures that may be used for decoding coding blocks of the current slice; and imposing a constraint that the DMVR coding tool may not be used for encoding a coding block in the current slice if at least one of the following conditions is satisfied: the DMVR coding tool may not be used for encoding a picture in the current coded video sequence; and the resolution of the current picture and at least one reference picture differs.
[0163] A method for decoding a video bitstream is disclosed. The video bitstream includes at least one picture. Each picture includes a number of slices. Each slice of the number of slices is associated with a header including a number of syntax elements. Each slice of the number of slices includes a number of coding blocks and a number of reference picture lists. Each reference picture list of the number of reference picture lists comprises a number of reference pictures that may be used for inter prediction of a coding block in a current slice.
[0164] The method includes the steps of parsing a parameter set to obtain a flag specifying whether a decoder-side motion vector refinement (DMVR) coding tool / technique may be used for decoding a picture in a current coded video sequence; and parsing a parameter set to obtain a flag specifying whether a decoder-side motion vector refinement (DMVR) coding tool / technique may be used for decoding a picture that references the parameter set, the parameter set being a picture parameter set (PPS).
[0165] In an embodiment, if the value of the flag specifying whether a DMVR coding tool may be used for decoding a picture that references a PPS specifies that the coding tool may not be used, then the DMVR coding tool is not used or is disabled for decoding the current coding block.
[0166] In an embodiment, a method for encoding a video bitstream is disclosed. The video bitstream includes at least one picture. Each picture includes a number of slices. Each slice of the number of slices is associated with a header including a number of syntax elements. Each slice of the number of slices includes a number of coding blocks and a number of reference picture lists. Each reference picture list of the number of reference picture lists is configured with a number of reference pictures that may be used for inter prediction of a coding block in a current slice.
[0167] The method includes the steps of determining whether a decoder-side motion vector refinement (DMVR) coding tool / technique may be used to encode a picture in a current coded video sequence; determining whether a decoder-side motion vector refinement (DMVR) coding tool / technique may be used to encode a picture when it references the current PPS; and imposing a constraint that if a DMVR coding tool may not be used to encode a picture in the current coded sequence, then a DMVR coding tool may not be used to encode a picture when it references the current PPS.
[0168] The following syntax and semantics may be used to implement the embodiments disclosed herein. The following explanation is for the base text, which is the latest VVC draft specification. In other words, only the differences are explained, and text in the base text that is not mentioned below applies accordingly. Text that is added to the base text is shown in bold, and text that is deleted is shown in italics.
[0169] The reference picture list creation process will be revised as follows:
[0170]
number
[0171] Derives a flag that determines whether DMVR is used.
[0172] The decoding process for a coding unit coded in inter prediction mode involves the following sequential steps:
[0173] 1. The variable dmvrFlag is set equal to 0.
[0174] 2. The motion vector components and reference index for the current coding unit are derived as follows:
[0175]
number
[0176]
number
[0177] dmvrFlag is set equal to 1 if all of the following conditions are true:
[0178]
number
[0179]
number
[0180]
number
[0181]
number
[0182]
number
[0183]
number
[0184]
number
[0185] cbWidth is 8 or greater.
[0186] cbHeight is 8 or greater.
[0187] cbHeight*cbWidth is 128 or greater.
[0188]
number
[0189]
number
[0190]
number
[0191]
number
[0192]
number
[0193]
number
[0194] Derives a flag that determines whether DMVR is used.
[0195] The decoding process for a coding unit coded in inter prediction mode involves the following sequential steps:
[0196] 1. The variable dmvrFlag is set equal to 0.
[0197] 2. The motion vector components and reference index for the current coding unit are derived as follows:
[0198]
number
[0199]
number
[0200] dmvrFlag is set equal to 1 if all of the following conditions are true:
[0201]
number
[0202]
number
[0203]
number
[0204]
number
[0205]
number
[0206]
number
[0207]
number
[0208]
number
[0209] cbWidth is 8 or greater.
[0210] cbHeight is 8 or greater.
[0211] cbHeight*cbWidth is 128 or greater.
[0212]
number
[0213]
number
[0214]
number
[0215]
number
[0216]
number
[0217] Derives a flag that determines whether DMVR is used.
[0218] The decoding process for a coding unit coded in inter prediction mode consists of the following sequential steps:
[0219] The variable dmvrFlag is set equal to 0.
[0220] The motion vector components and reference index for the current coding unit are derived as follows:
[0221]
number
[0222]
number
[0223] dmvrFlag is set equal to 1 if all of the following conditions are true:
[0224]
number
[0225]
number
[0226]
number
[0227]
number
[0228]
number
[0229]
number
[0230]
number
[0231]
number
[0232] cbWidth is 8 or greater.
[0233] cbHeight is 8 or greater.
[0234] cbHeight*cbWidth is 128 or greater.
[0235] FIG. 12 is a schematic diagram of a video coding device 1200 (e.g., video encoder 20 or video decoder 30) according to an embodiment of the present disclosure. The video coding device 1200 is suitable for implementing the disclosed embodiments as described herein. The video coding device 1200 includes an ingress port 1210 and a receiver unit (Rx) 1220 for receiving data, a processor, logic unit, or central processing unit (CPU) 1230 for processing data, a transmitter unit (Tx) 1240 and an egress port 1250 for transmitting data, and a memory 1260 for storing data. In addition, the video coding device 1200 may also include optical-electrical (OE) and electrical-optical (EO) components coupled to the ingress port 1210, the receiver unit 1220, the transmitter unit 1240, and the egress port 1250 for the egress and ingress of optical or electrical signals.
[0236] The processor 1230 is implemented by hardware and software. The processor 1230 may be implemented as one or more CPU chips, cores (e.g., multi-core processors), field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), and digital signal processors (DSPs). The processor 1230 communicates with the ingress port 1210, the receiver unit 1220, the transmitter unit 1240, the egress port 1250, and the memory 1260. The processor 1230 includes a coding module 1270. The coding module 1270 implements the disclosed embodiments described above. For example, the coding module 1270 implements, processes, prepares, or provides various codec functions. Thus, the inclusion of the coding module 1270 provides a significant improvement to the functionality of the video coding device 1200 and provides changes to various states of the video coding device 1200. Alternatively, the coding module 1270 may be implemented as instructions stored in the memory 1260 and executed by the processor 1230 .
[0237] Video coding device 1200 may also include input and / or output (I / O) devices 1280 for communicating data to and from a user. I / O devices 1280 may include output devices, such as a display for displaying video data, and speakers for outputting audio data. I / O devices 1280 may also include input devices, such as a keyboard, mouse, trackball, etc., and / or corresponding interfaces for interacting with such output devices.
[0238] Memory 1260 may include one or more disks, tape drives, and solid state drives, and may be used as overflow data storage devices, to store programs when such programs are selected for execution, and to store instructions and data loaded during the execution of the programs. Memory 1260 may be volatile and / or non-volatile, and may be read-only memory (ROM), random access memory (RAM), ternary content addressable memory (TCAM), and / or static random access memory (SRAM).
[0239] 13 is a schematic diagram of an embodiment of a means for coding 1300. In an embodiment, the means for coding 1300 is implemented in a video coding device 1302 (e.g., video encoder 20 or video decoder 30). The video coding device 1302 includes a means for receiving 1301. The means for receiving 1301 is configured to receive pictures to encode or to receive a bitstream to decode. The video coding device 1302 includes a means for transmitting 1307 coupled to the means for receiving 1301. The means for transmitting 1307 is configured to transmit the bitstream to a decoder or to transmit decoded pictures to a display means (e.g., one of the I / O devices 1280).
[0240] The video coding device 1302 includes a storage means 1303. The storage means 1303 is coupled to at least one of the receiving means 1301 or the transmitting means 1307. The storage means 1303 is configured to store instructions. The video coding device 1302 also includes a processing means 1305. The processing means 1305 is coupled to the storage means 1303. The processing means 1305 is configured to execute the instructions stored in the storage means 1303 to perform the methods disclosed herein.
[0241] It should also be understood that the steps of the exemplary methods described herein do not necessarily have to be performed in the order described, and the order of steps of such methods should be understood to be merely exemplary. Similarly, additional steps may be included in such methods, and certain steps may be omitted or combined in methods consistent with various embodiments of the present disclosure.
[0242] Although several embodiments are provided in the present disclosure, it should be understood that the disclosed systems and methods may be embodied in many other specific forms without departing from the spirit or scope of the present disclosure. The present examples are considered to be illustrative and non-limiting, and the intention is not to be limited to the details given herein. For example, various elements or components may be combined or integrated into another system, or certain features may be omitted or not implemented.
[0243] Additionally, the techniques, systems, subsystems, and methods described and illustrated individually or separately in various embodiments may be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the present disclosure. Other items illustrated or described as coupled or directly coupled or in communication with each other may indirectly be coupled or in communication through some interface, device, or intermediate component, whether electrical, mechanical, or otherwise. Other examples of modifications, substitutions, and alterations will be ascertainable by those skilled in the art and may be made without departing from the spirit and scope of the present disclosure.
Claims
1. 13. A method of decoding comprising: receiving a bitstream including the parameter set; analyzing the parameter set to obtain a resolution of a current picture being decoded; determining whether a resolution of the current picture being decoded is the same as a resolution of a reference picture identified by a reference picture list associated with the current picture; if it is determined that the resolution of the current picture is the same as the resolution of each of the reference pictures, enabling a decoder-side motion vector refinement (DMVR) for the current block of the current picture; disabling the DMVR for the current block of the current picture if it is determined that the resolution of the current picture is different from the resolution of any of the reference pictures; and refining a motion vector corresponding to the current block using the DMVR if the DMVR is enabled for the current block; The method includes:
2. 2. The method of claim 1, wherein enabling the DMVR comprises setting a DMVR flag to a first value, and disabling the DMVR comprises setting the DMVR flag to a second value.
3. The method of claim 1 or 2, further comprising: generating the reference picture for the current picture based on the reference picture list according to a bi-directional inter prediction mode.
4. 4. The method of claim 1, further comprising the step of selectively both enabling and disabling the DMVR for blocks in a plurality of pictures depending on whether the resolution of each picture is different or the same as the resolution of a reference picture associated with the picture.
5. 5. The method of claim 1, further comprising the step of enabling reference picture resampling (RPR) for an entire coded video sequence (CVS) including the current picture if the DMVR is disabled.
6. 6. The method of claim 1, wherein the resolution of the current picture is located in a parameter set of a coded video bitstream and the current block is obtained from a slice of the current picture.
7. The method according to claim 1 , further comprising the step of displaying an image generated using the current block on a display of an electronic device.
8. 13. A method of encoding comprising: determining whether a resolution of a current picture to be encoded is the same as a resolution of a reference picture identified in a reference picture list associated with said current picture; if the resolution of the current picture is determined to be the same as the resolution of each of the reference pictures, enabling a decoder-side motion vector refinement (DMVR) for the current block of the current picture; disabling the DMVR for the current block of the current picture if it is determined that the resolution of the current picture is different from the resolution of any of the reference pictures; refining a motion vector corresponding to the current block using the DMVR if the DMVR is enabled for the current block; and encoding a resolution of the current picture being encoded into a parameter set of a bitstream; The method includes:
9. The method comprises: determining, by a video encoder, the motion vector for the current picture based on the reference picture; encoding, by the video encoder, the current picture based on the motion vector; and decoding, by the video encoder, the current picture using a hypothetical reference decoder; The method of claim 8, further comprising:
10. 10. The method of claim 8 or 9, wherein the step of enabling the DMVR comprises setting a DMVR flag to a first value, and the step of disabling the DMVR comprises setting the DMVR flag to a second value.
11. The method according to any one of claims 8-10, further comprising: generating the reference picture for the current picture based on the reference picture list according to a bi-directional inter prediction mode.
12. 12. The method of claim 8, further comprising the step of selectively both enabling and disabling the DMVR for blocks in a plurality of pictures depending on whether the resolution of each picture is different or the same as the resolution of a reference picture associated with the picture.
13. 13. The method of claim 8, further comprising enabling reference picture resampling (RPR) for an entire coded video sequence (CVS) including the current picture, even if the DMVR is disabled.
14. 14. The method of claim 8, further comprising the step of transmitting a video bitstream including the current block to a video decoder.
15. 13. A decoding device comprising: a receiver configured to receive the coded video bitstream; a memory coupled to the receiver storing instructions; a processor coupled to the memory; 8. A decoding device comprising: a processor configured to cause the decoding device to perform a method according to any one of claims 1 to 7.
16. 13. A coding device comprising: a memory containing instructions; A processor coupled to the memory, the processor configured to cause the encoding device to perform a method according to any one of claims 8-14.
17. 1. A method for transmitting a bitstream, comprising: receiving a bitstream including a plurality of parameter sets, the plurality of parameter sets including resolution information and a first flag, the first flag indicating whether a decoder-side motion vector refinement (DMVR) based bidirectional inter prediction is enabled; the first flag equal to a first value indicating that the DMVR-based bidirectional inter prediction is enabled, and the first flag equal to a second value indicating that the DMVR-based bidirectional inter prediction is disabled; the resolution information is used to determine whether a resolution of a current picture to be encoded is the same as a resolution of a reference picture identified in a reference picture list associated with the current picture, and to determine whether to enable the DMVR for a current block of the current picture if the first flag is equal to the first value; The bitstream is decoded by a decoder to: determining whether a resolution of a current picture being decoded is the same as a resolution of a reference picture identified by a reference picture list associated with the current picture; enabling DMVR for a current block of the current picture when the resolution of the current picture is determined to be the same as the resolution of each of the reference pictures; disabling the DMVR for the current block of the current picture if the resolution of the current picture is determined to be different from the resolution of any of the reference pictures; receiving, if the DMVR is enabled for the current block, causing the DMVR to be used to refine a motion vector corresponding to the current block; storing the bitstream on a storage medium; and transmitting the bitstream stored on the storage medium; The method includes:
Citation Information
Patent Citations
Sub-block motion derivation and decoder-side motion vector refinement for merge mode
JP2021502038A
Selective use of coding tools in video processing
JP2022531965A
Sub-block motion derivation and decoder-side motion vector refinement for merge mode
US20210185338A1
Sub-block motion derivation and decoder-side motion vector refinement for merge mode
WO2019089933A1