Addressing Bidirectional Optical Flow (BIO) Coding Tools for Reference Picture Resampling in Video Coding
Patent Information
- Application Number
- JP2023191422
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-05-15
- Filing Date
- 2023-11-09
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2040-05-14
Smart Images

Figure 0007635341000012 
Figure 0007635341000013 
Figure 0007635341000014
Abstract
Description
[Technical field]
[0001] This patent application claims the benefit of U.S. Provisional Patent Application No. 62 / 848,409, entitled “Handling of Bi-Directional Optical Flow (BIO) Coding Tool for Reference Picture Resampling in Video Coding,” filed May 15, 2019 by Jianle Chen et al., which is incorporated herein by reference.
[0002] Generally, this disclosure describes techniques for supporting bi-direction optical flow (BDOF) in video coding. More specifically, this disclosure enables BDOF for reference picture resampling, but allows BDOF to be disabled for a block or sample when the spatial resolutions of the current picture and the reference picture differ. [Background technology]
[0003] The amount of video data required to render even a relatively short video can be substantial, which can pose challenges when streaming or otherwise communicating the data over communication networks with limited bandwidth capacity. Thus, video data is typically compressed before being communicated over today's telecommunications networks. The size of the video can also be an issue when the video is stored in a storage device, since memory resources may be limited. Video compression devices often use software and / or hardware to code the video data at the source prior to 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 decompressor, which decodes the video data. With limited network resources and ever-increasing demands for higher video quality, improved compression and decompression techniques that improve compression ratios with little or no sacrifice in image quality are desirable. Summary of the Invention
[0004] A first aspect relates to a method for decoding a coded video bitstream implemented by a video decoder, the method including: determining, by the video decoder, 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, by the video decoder, bidirectional optical flow (BDOF) for a current block of the current picture when 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, BDOF for the current block of the current picture when it is determined that the resolution of the current picture is different from a resolution of any of the reference pictures; and refining, by the video decoder, a motion vector corresponding to the current block using BDOF when BDOF is enabled for the current block.
[0005] Instead of having to disable BDOF for the entire CVS when reference picture resampling (RPR) is enabled, the method provides a technique that allows BDOF 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 BDOF in this way, coding efficiency can be improved. Thus, the use of processor, memory, and / or network resources can be reduced at both the encoder and the decoder. Thus, the coder / decoder (also known as a "codec") in video coding is improved relative to current codecs. In practical terms, the improved video coding process provides a better user experience to the user when the video is transmitted, received, and / or viewed.
[0006] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that enabling BDOF includes setting a BDOF flag to a first value and disabling BDOF includes setting the BDOF flag to a second value.
[0007] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides generating a reference picture for the current picture based on the reference picture list according to a bidirectional inter prediction mode.
[0008] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides for selectively enabling and disabling BDOF 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 aforementioned aspects, another implementation of the aspect provides for enabling reference picture resampling (RPR) for the entire coded video sequence (CVS) including the current picture when BDOF is disabled.
[0010] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that 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 aforementioned aspects, another implementation of the aspect provides for displaying the image generated using the current block on a display of the electronics device.
[0012] A second aspect relates to a method for encoding a video bitstream, implemented by a video encoder, including: determining, by the video encoder, whether a resolution of a current picture being 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, bidirectional optical flow (BDOF) for a current block of the current picture when 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 encoder, BDOF for the current block of the current picture when it is determined that the resolution of the current picture is 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 BDOF when BDOF is enabled for the current block.
[0013] Instead of having to disable BDOF for the entire CVS when reference picture resampling (RPR) is enabled, the method provides a technique that allows BDOF 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 BDOF in this way, coding efficiency can be improved. Thus, the use of processor, memory, and / or network resources can be reduced at both the encoder and the decoder. Thus, the coder / decoder (also known as a "codec") in video coding is improved relative to current codecs. In practical terms, the improved video coding process provides a better user experience to the user when the video is transmitted, received, and / or viewed.
[0014] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides for determining, by a video encoder, a motion vector for a 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 aforementioned aspects, another implementation of the aspect provides that enabling BDOF includes setting a BDOF flag to a first value and disabling BDOF includes setting the BDOF flag to a second value.
[0016] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides generating a reference picture for the current picture based on the reference picture list according to a bidirectional inter prediction mode.
[0017] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides for selectively enabling and disabling BDOF 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 aforementioned aspects, another implementation of the aspect provides for enabling reference picture resampling (RPR) for the entire coded video sequence (CVS) including the current picture, even when BDOF is disabled.
[0019] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides transmitting the 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 the instructions to cause the decoding device to determine 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 a current block, to enable bidirectional optical flow (BDOF) for a current block of the current picture when it is determined that the resolution of the current picture is the same as a resolution of each of the reference pictures, to disable BDOF for the current block of the current picture when it is determined that the resolution of the current picture is different from a resolution of any of the reference pictures, and to refine a motion vector corresponding to the current block when BDOF is enabled for the current block.
[0021] Instead of having to disable BDOF for the entire CVS when reference picture resampling (RPR) is enabled, the decoder provides a technique that allows BDOF 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 BDOF in this way, coding efficiency may be improved. Thus, the use of processor, memory, and / or network resources may be reduced in both the encoder and the decoder. Thus, the coder / decoder (also known as a "codec") in video coding is improved relative to current codecs. In practical terms, the improved video coding process provides a better user experience to the user when video is transmitted, received, and / or viewed.
[0022] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that when BDOF 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 aforementioned aspects, another implementation of the aspect provides a display configured to display the image generated based on the current block.
[0024] A fourth aspect relates to an encoding device, the encoding device including: a memory storing instructions; a processor coupled to the memory, the processor configured to implement the instructions to cause the encoding device to determine whether a resolution of a current picture being encoded is the same as a resolution of a reference picture identified by a reference picture list associated with the current picture, to enable bidirectional optical flow (BDOF) for a current block of the current picture when it is determined that the resolution of the current picture is the same as a resolution of each of the reference pictures, to disable BDOF for the current block of the current picture when it is determined that the resolution of the current picture differs from a resolution of any of the reference pictures, and to refine a motion vector corresponding to the current block when BDOF is enabled for the current block; and a transmitter coupled to the processor, the transmitter configured to transmit a video bitstream including the current block to a video decoder.
[0025] Instead of having to disable BDOF for the entire CVS when reference picture resampling (RPR) is enabled, the encoding device provides a technique that allows BDOF 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 BDOF in this way, 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 known as a "codec") in video coding is improved relative to current codecs. In practical terms, the improved video coding process provides a better user experience to the user when video is transmitted, received, and / or viewed.
[0026] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that reference picture resampling (RPR) is enabled for the entire coded video sequence (CVS) including the current picture, even when BDOF is disabled.
[0027] Optionally, in any of the aforementioned aspects, another implementation of the aspect provides that the memory stores the video bitstream prior to the transmitter transmitting the bitstream to the video decoder.
[0028] A fifth aspect relates to a coding device including a receiver configured to receive pictures to encode or to receive a bitstream to decode, a transmitter coupled to the receiver and configured to transmit the bitstream to a decoder or to transmit the decoded images to a display, a memory coupled to at least one of the receiver or the transmitter and configured to store instructions, and a processor coupled to the memory and configured to execute the instructions stored in the memory to perform any of the methods disclosed herein.
[0029] Instead of having to disable BDOF for the entire CVS when reference picture resampling (RPR) is enabled, the coding apparatus provides a technique that allows BDOF 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 BDOF in this way, 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 known as a "codec") in video coding is improved relative to current codecs. In practical terms, the improved video coding process provides a better user experience to the user when the video is transmitted, received, and / or viewed.
[0030] A sixth aspect relates to a system including an encoder and a decoder in communication with the encoder, the encoder or decoder including a decoding device, an encoding device, or a coding device as disclosed herein.
[0031] Instead of having to disable BDOF for the entire CVS when reference picture resampling (RPR) is enabled, the system provides a technique that allows BDOF to be selectively disabled when the spatial resolution of the current picture differs from the spatial resolution of the reference picture. Thus, by having the ability to selectively disable BDOF, coding efficiency may be improved. Thus, the use of processor, memory, and / or network resources may be reduced at both the encoder and the decoder. Thus, the coder / decoder (also known as a "codec") in video coding is improved relative to current codecs. In practical terms, the improved video coding process provides a better user experience to the user when video is transmitted, received, and / or viewed. [Brief description of the drawings]
[0032] For a more complete understanding of this disclosure, reference is now made to the following brief description taken in conjunction with the accompanying drawings and detailed description, in which like reference characters represent like parts. [Figure 1] 1 is a block diagram illustrating an example of a coding system that may utilize video coding techniques. [Diagram 2] 1 is a block diagram illustrating an example of a video encoder that may implement video coding techniques. [Diagram 3] 1 is a block diagram illustrating an example of a video decoder that may implement video coding techniques. [Figure 4] 1 illustrates the relationship of IRAP pictures to leading and trailing pictures in decoding and presentation order. [Diagram 5] 1 shows an example of multi-layer coding for spatial scalability. [Figure 6] FIG. 1 is a schematic diagram showing an example of unidirectional inter prediction. [Figure 7] FIG. 1 is a schematic diagram illustrating an example of bidirectional inter prediction. [Figure 8] 1 shows a video bitstream. [Figure 9] 1 illustrates a partitioning technique for a picture. [Figure 10] 1 is an embodiment of a method for decoding a coded video bitstream. [Figure 11] 1 is an embodiment of a method for encoding a coded video bitstream. [Figure 12] FIG. 1 is a schematic diagram of a video coding device. [Figure 13] FIG. 2 is a schematic diagram of an embodiment of a means for coding. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0033] It should be understood at the outset that, although exemplary implementations of one or more embodiments are presented below, the disclosed systems and / or methods may be implemented using any number of technologies, whether currently known or in existence, and that this disclosure should in no way be limited to the exemplary implementations, diagrams and technologies illustrated below, including the exemplary designs and implementations shown and described herein, but which may be modified within the scope of the appended claims and their full equivalents.
[0034] As used herein, resolution describes 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. BDOF is a process, algorithm, or coding tool used to refine the motion or motion vector for a prediction block. BDOF allows for finding a motion vector for a sub-coding unit based on the gradient of the difference between two reference pictures. The RPR feature is the ability to change the spatial resolution of a coded picture in the middle of a bitstream without the need for intra-coding of the picture at the location where the resolution changes.
[0035] FIG. 1 is a block diagram illustrating an example of a coding system 10 that may utilize the video coding techniques described herein. As shown in FIG. 1, coding system 10 includes a source device 12 that provides encoded video data to be later 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 comprise any of a wide range of devices, including desktop computers, notebook (e.g., laptop) computers, tablet computers, set-top boxes, telephones such as so-called "smart" phones, so-called "smart" pads, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, or the like. In some examples, source device 12 and destination device 14 may be equipped for wireless communication.
[0036] The destination device 14 may receive the encoded video data to be decoded via a computer-readable medium 16. The computer-readable medium 16 may comprise 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 may comprise 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 may be modulated and transmitted to the destination device 14 according to a communication standard, such as, for example, a wireless communication protocol. The communication medium may comprise any wireless or wired communication medium, such as, for example, a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as, for example, a local area network, a wide area network, or a global network, such as, for example, the Internet. The communication medium may include routers, switches, base stations, or any other equipment useful for facilitating communication from the source device 12 to the destination device 14.
[0037] 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 the storage device by the 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 video disc (DVD), a compact disc read-only memory (CD-ROM), a flash memory, a volatile or non-volatile memory, or any other digital storage medium suitable for storing encoded video data. In a further example, the storage device may represent a file server or other intermediate storage device that may store the encoded video generated by the source device 12. The destination device 14 may access the stored video data from the storage device via streaming or download. 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. Example file servers include a web server (e.g., for 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), a cable modem, etc.), or a combination of both suitable for accessing encoded video data stored on a 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.
[0038] The techniques of this disclosure are not necessarily limited to wireless applications or settings, but may be applied to video coding in support of 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 broadcast, and / or video telephony.
[0039] In the example of FIG. 1, source device 12 includes a video source 18, a video encoder 20, and an output interface 22. Destination device 14 includes an input interface 28, a video decoder 30, and a display device 32. In accordance with this disclosure, the video encoder 20 of source device 12 and / or the video decoder 30 of destination device 14 may be configured to apply techniques for video coding. In other examples, the source and destination devices may include other components or configurations. 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.
[0040] The illustrated coding system 10 of 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." Additionally, the techniques of this disclosure may also be performed by a video pre-processor. The video encoder and / or decoder may be a graphics processing unit (GPU) or similar device.
[0041] Source device 12 and destination device 14 are merely examples of such coding devices, where source device 12 generates coded 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 each of source device and destination device 12, 14 includes video encoding and decoding components. Thus, coding system 10 may support one-way or two-way video transmission between video devices 12, 14, e.g., for video streaming, video playback, video broadcasting, or video telephony.
[0042] 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 that receives 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, archival video, and computer-generated video.
[0043] In some cases, when video source 18 is a video camera, source device 12 and destination device 14 may form a so-called cameraphone or videophone. However, as noted above, the techniques described in this disclosure are applicable to video coding in general and may be applied in wireless and / or wired applications. In each case, 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.
[0044] Computer-readable medium 16 may include a transitory medium, such as, for example, a wireless broadcast or wired network transmission, or a storage medium (i.e., a non-transitory storage medium), such as, for example, a hard disk, a flash drive, a compact disc, a digital video disc, a Blu-ray disc, 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 facility, such as, for example, a disc stamping facility, may receive the encoded video data from source device 12 and produce discs 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.
[0045] An input interface 28 of the destination device 14 receives information from the computer-readable medium 16. The information on the computer-readable medium 16 may include syntax information defined by the video encoder 20 that is also used by the video decoder 30, including syntax elements that describe characteristics and / or processing of blocks and / or other coding units, such as, for example, groups of pictures (GOPs). The display device 32 displays the decoded video data to a user and may include any of a variety of display devices, such as, for example, 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.
[0046] 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 Standardization Sector (ITU-T) H.264 standard, also known 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 each be integrated with an audio encoder and decoder and may include a multiplexer-demultiplexer (MUX-DEMUX) unit, or other hardware and software, suitable for handling the encoding of both audio and video in a common or separate data stream. If applicable, the MUX-DEMUX unit may conform to the ITU H.223 multiplexer protocol, or other protocols, such as, for example, the User Datagram Protocol (UDP).
[0047] The video encoder 20 and the video decoder 30 may each be implemented as any of a variety of suitable encoder circuits, such as, for example, 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, a device may perform the techniques of this disclosure by storing instructions of the software on a suitable non-transitory computer-readable medium and executing the instructions in hardware using one or more processors. The video encoder 20 and the video decoder 30 may each be included in one or more encoders or decoders, any of which may be integrated as part of a combined encoder / decoder (CODEC) in the respective device. The devices including the video encoder 20 and / or the video decoder 30 may include integrated circuits, microprocessors, and / or wireless communication devices, such as, for example, mobile phones.
[0048] 2 is a block diagram illustrating an example of a video encoder 20 that may implement video coding techniques. Video encoder 20 may perform intra-coding 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 uni-directional (also known as uni prediction) prediction (P-mode) or bi-prediction (also known as bi prediction) (B-mode), may refer to any of several temporal-based coding modes.
[0049] 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. In turn, mode selection unit 40 includes a motion compensation unit 44, a motion estimation unit 42, an intra-prediction (also known as 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 blocky artifacts from the reconstructed image. If desired, the deblocking filter typically filters the output of adder 62. In addition to the deblocking filter, additional filters (in-loop or post-loop) may also be used. Such a filter is not shown for simplicity, but may filter the output of summer 50 (as an in-loop filter) if desired.
[0050] In 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. Alternatively, intra-prediction unit 46 may 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.
[0051] 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 of the LCUs into sub-coding units based on a rate-distortion analysis (e.g., rate-distortion optimization). Mode selection unit 40 may further create a quadtree data structure that indicates 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).
[0052] 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 their subblocks in H.264 / AVC). A CU includes a coding node, a PU, and a TU 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 may range from 8x8 pixels to a maximum of 64x64 pixels or more, up to the size of a treeblock. Each CU may include one or more PUs and one or more TUs. Syntax data associated with a CU may describe, for example, a partitioning of the CU into one or more PUs. The partitioning mode may differ depending on whether the CU is coded in skip or direct mode, intra-prediction mode, or inter-prediction (also known as inter prediction) mode. A PU may be partitioned into a non-square shape. Syntax data associated with a CU may also describe a partitioning of a CU into one or more TUs, for example according to a quadtree. The TUs can be square or non-square (eg, rectangular) in shape.
[0053] Mode select unit 40 may select one of the coding modes, intra or inter, e.g., based on the error result, and may provide the resulting intra- or inter-coded block to summer 50, which generates residual block data, and summer 62, which reconstructs the coded block for use as a reference frame. Mode select unit 40 also provides syntax elements, e.g., motion vectors, intra-mode indicators, partition information, and other such syntax information, to entropy coding unit 56.
[0054] Motion estimation unit 42 and motion compensation unit 44 may be highly integrated, but are illustrated separately for conceptual purposes. Motion estimation performed by motion estimation unit 42 is a process of generating motion vectors that estimate motion for a video block. 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 (or other coded unit) in a reference frame relative to a current block (or other coded unit) being coded in a current frame. A predictive block is a block that is found to be a close match to a block being coded in terms of pixel differences, which may be determined by sum of absolute differences (SAD), sum of squared differences (SSD), or other difference metric. In some examples, video encoder 20 may calculate values of sub-integer pixel locations of a reference picture stored in reference frame memory 64. For example, video encoder 20 may interpolate values of 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 and fractional-pixel locations, and output motion vectors with fractional-pixel accuracy.
[0055] 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 pictures may be selected from a first reference picture list (List0) or a second reference picture list (List1), 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.
[0056] 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. Again, 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 within 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 component for both the chroma and luma components. Mode selection unit 40 may also generate syntax elements related to video blocks and video slices for use by video decoder 30 in decoding video blocks of video slices.
[0057] 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.
[0058] For example, intra prediction unit 46 may calculate rate-distortion values for various tested intra prediction modes using a rate-distortion analysis and select the intra prediction mode with the best 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, and the bit rate (i.e., number of bits) used to generate the coded block. Intra prediction unit 46 calculates ratios from the distortions and rates for the various coded blocks to determine which intra prediction mode exhibits the best rate-distortion value for the block.
[0059] In addition, intra prediction unit 46 may be configured to code the depth blocks of the depth map using a depth modeling mode (DMM). Mode selection unit 40 may determine whether an available DMM mode produces 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 reference frame memory 64. Motion estimation unit 42 and motion compensation unit 44 may also be configured to inter predict the depth blocks of the depth map.
[0060] After selecting an intra-prediction mode for a block (e.g., one of a conventional intra-prediction mode or a DMM mode), 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 configuration data in the transmitted bitstream, which may include multiple intra-prediction mode index tables and multiple modified intra-prediction mode index tables (also referred to as codeword mapping tables), definitions of coding contexts for various blocks, and the most likely intra-prediction mode, intra-prediction mode index table, and modified intra-prediction mode index table to be used for each of the contexts.
[0061] 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 one or more components that perform this subtraction operation.
[0062] Transform processing unit 52 applies a transform, such as a discrete cosine transform (DCT) or a conceptually similar transform, to the residual block to produce an image block having residual transform coefficient values. Transform processing unit 52 may also perform other transforms that are conceptually similar to the DCT. Wavelet transforms, integer transforms, subband transforms, or other types of transforms may also be used.
[0063] Transform processing unit 52 applies a transform to the residual block to generate a block of residual transform coefficients. The transform may convert the residual information from the 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 varied 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.
[0064] Following 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. In the case of 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.
[0065] 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 used for 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 that is stored 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.
[0066] 3 is a block diagram illustrating an example of a video decoder 30 that may implement a video coding technique. 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 generally inverse decoding pass to 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, and the intra prediction unit 74 may generate prediction data based on the intra prediction mode indicator received from the entropy decoding unit 70.
[0067] During the decoding process, video decoder 30 receives an encoded video bitstream representing video blocks and associated syntax elements of encoded video slices from video encoder 20. Entropy decoding unit 70 of video decoder 30 entropy decodes the bitstream to generate 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.
[0068] 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 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 reference frame lists List0 and List1 using a default construction technique based on reference pictures stored in reference frame memory 82.
[0069] Motion compensation unit 72 determines prediction information for the video blocks of the current video slice by parsing the motion vectors and other syntax elements, and uses the prediction information to generate a prediction block for the current video block being decoded. For example, motion compensation unit 72 uses some of the received syntax elements to determine the prediction mode (e.g., intra prediction or inter prediction) used to code the video blocks of the video slice, the inter prediction slice type (e.g., B slice, P slice, or GPB slice), construction information for one or more of the reference picture lists for the slice, the motion vectors for each inter-coded video block of the slice, the inter prediction status for each inter-coded video block of the slice, and other information for decoding video blocks in the current video slice.
[0070] Motion compensation unit 72 may also perform interpolation based on an interpolation filter. Motion compensation unit 72 may use an interpolation filter used by video encoder 20 in encoding the video block to calculate interpolated values for sub-integer pixels of the reference block. In this case, motion compensation unit 72 may determine from the received syntax element the interpolation filter used by video encoder 20 and generate the predictive block using the interpolation filter.
[0071] Data for texture images that correspond 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.
[0072] In one embodiment, the video decoder 30 includes a user interface (UI) 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 can manage or change settings for the video decoder 30. For example, the user can input or otherwise provide values for parameters (e.g., flags) to control the configuration and / or operation of the video decoder 30 according to user preferences. The user interface 84 may be a graphical user interface (GUI) that allows the user to interact with the video decoder 30 via, for example, graphical icons, drop-down menus, checkboxes, 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 one embodiment, the user can access the user interface 84 via a smartphone, tablet device, personal computer, and the like that are remote from the video decoder 30. As used herein, the user interface 84 may also be referred to as an external input or external means.
[0073] 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. In block-based video coding, a video slice (i.e., a video picture or a portion of a video picture) may be partitioned into multiple video blocks, which may also 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 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.
[0074] Spatial or temporal prediction results in a predictive block for the block to be coded. The residual data represents pixel differences 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 indicates the differences between the block to be coded 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 may be transformed from the pixel domain to a transform domain, resulting in residual transform coefficients, which may then be quantized. The quantized transform coefficients, initially arranged in a two-dimensional array, are scanned to generate a one-dimensional vector of transform coefficients, and entropy coding may be applied to achieve even further compression.
[0075] Image and video compression has undergone rapid growth, leading to a variety of coding standards, including 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).
[0076] There is also an emerging video coding standard named Versatile Video Coding (VVC) being developed by the ITU-T and ISO / IEC Joint Video Experts Team (JVET). The VVC standard has several working drafts, but in particular one Working Draft (WD) of VVC is incorporated herein by reference in its entirety: B. Bross, J. Chen, and S. Liu, “Versatile Video Coding (Draft 5),” JVET-N1001-v3, 13th JVET Meeting, March 27, 2019 (VVC Draft 5).
[0077] The description of the techniques disclosed herein is based on Versatile Video Coding (VVC), a video coding standard under development by the ITU-T and ISO / IEC Joint Video Experts Team (JVET), although the techniques also apply to other video codec specifications.
[0078] FIG. 4 illustrates a relationship 400 of an intra random access point (IRAP) picture 402 to a leading picture 404 and a trailing picture 406 in decoding order 408 and presentation order 410. In one embodiment, the 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 one embodiment, Broken Link Access (BLA) pictures and Gradual Decoder Refresh (GDR) pictures may also be considered to be IRAP pictures. The decoding process of a coded video sequence always begins with an IRAP.
[0079] As shown in Figure 4, leading pictures 404 (e.g., pictures 2 and 3) are after the IRAP picture 402 in decoding order 408, but precede the IRAP picture 402 in presentation order 410. A trailing picture 406 is after the IRAP picture 402 in both decoding order 408 and presentation order 410. Although Figure 4 shows two leading pictures 404 and one trailing picture 406, those skilled in the art will understand that in actual applications, there may be more or fewer leading pictures 404 and / or trailing pictures 406 in the decoding order 408 and presentation order 410.
[0080] The leading pictures 404 in FIG. 4 are divided into two types, which are random access skipped leading (RASL) and RADL. When the decoding starts with an IRAP picture 402 (e.g., picture 1), the RADL picture (e.g., picture 3) can be properly decoded, but the RASL picture (e.g., picture 2) cannot be properly decoded. Thus, the RASL picture is discarded. In light of the distinction between RADL and RASL pictures, for efficient and proper coding, the type of the leading picture 404 associated with the IRAP picture 402 should be specified as either RADL or RASL. In HEVC, when a RASL picture and a RADL picture exist, there is a constraint that for the RASL picture and the RADL picture associated with the same IRAP picture 402, the RASL picture shall precede the RADL picture in the presentation order 410.
[0081] The IRAP picture 402 provides two important features / benefits: First, the presence of the IRAP picture 402 indicates that the decoding process can start from that picture. This feature allows random accessibility in that the decoding process starts at that position in the bitstream, not necessarily at the beginning of the bitstream, as long as the IRAP picture 402 is present at that position. Second, the presence of the IRAP picture 402 refreshes the decoding process such that pictures coded starting at the IRAP picture 402 are coded without any reference to previous pictures, except for RASL pictures. The presence of the IRAP picture 402 in the bitstream therefore stops errors that may occur during the decoding of pictures coded prior to the IRAP picture 402 from propagating to the IRAP picture 402 and pictures that follow the IRAP picture 402 in the decoding order 408.
[0082] While the IRAP picture 402 provides important functionality, it comes with a penalty to compression efficiency. The presence of the IRAP picture 402 causes a bitrate surge. This penalty to 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 compared to other pictures that are inter-predicted pictures (e.g., the leading picture 404, the trailing picture 406). Second, since the presence of the IRAP picture 402 breaks the temporal prediction (because the decoder will refresh the decoding process, one of the operations of which is to remove the previous reference pictures in the decoded picture buffer (DPB)), the IRAP picture 402 makes the coding of pictures that are after the IRAP picture 402 in the decoding order 408 less efficient (i.e., require more bits to represent) because they have fewer reference pictures for their inter-predictive coding.
[0083] Among the picture types considered as IRAP pictures 402, IDR pictures in HEVC have different signaling and derivation compared to other picture types. Some of the differences are as follows:
[0084] In 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.
[0085] Regarding signaling information required for reference picture management, the slice header of an IDR picture does not include information that needs to be signaled to assist reference picture management. For other picture types (i.e., CRA, trailing, temporal sub-layer access (TSA), etc.), information such as a reference picture set (RPS) or other forms of similar information (e.g., reference picture list) described below is required for the reference picture marking process (i.e., the process of determining the status of a reference picture in the decoded picture buffer (DPB) as either used for reference or unused for reference). However, for an IDR picture, such information does not need to be signaled, because the presence of an IDR indicates that the decoding process will simply mark all reference pictures in the DPB as unused for reference.
[0086] 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 given different 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 having to understand too many details of syntax elements in the coded bitstream, particularly to identify the IRAP picture 402 from a non-IRAP picture and to identify the leading picture 404 from the trailing picture 406, including determining the RASL and RADL pictures. The trailing picture 406 is a picture associated with the IRAP picture 402 and following the IRAP picture 402 in presentation order 410. A picture may be after a particular IRAP picture 402 in decoding order 408 and may precede any other IRAP picture 402 in decoding order 408. However, giving the IRAP pictures 402 and leading pictures 404 their own NAL unit type facilitates such applications.
[0087] In HEVC, NAL unit types for IRAP pictures include: BLA with Leading Picture (BLA_W_LP): A NAL unit of a Broken Link Access (BLA) picture 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 that 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 in decoding order by a leading picture; 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 of an IDR picture that is not followed in decoding order by a leading picture; CRA: A NAL unit of a clean random access (CRA) picture that may be followed by a leading picture (i.e., either a RASL picture or a RADL picture, or both); RADL: NAL unit of RADL picture; RASL: NAL unit of RASL picture.
[0088] 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 of an IDR picture that is not followed in decoding order by a leading picture; CRA: A NAL unit of a clean random access (CRA) picture that may be followed by a leading picture (i.e., either a RASL picture or a RADL picture, or both); RADL: NAL unit of RADL picture; RASL: NAL unit of RASL picture.
[0089] The reference picture resampling (RPR) function is the ability to change the spatial resolution of a coded picture midway through the bitstream without the need for intra-coding of the picture at the resolution change location. To enable this, a picture needs to be able to refer to one or more reference pictures whose spatial resolution is different from that of the current picture for inter-prediction purposes. 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 function is sometimes called adaptive resolution change (ARC) or other names. There are use cases or application scenarios that benefit from the RPR function, including:
[0090] Rate adaptation in video telephony and conferencing, to adapt the coded video to changing network conditions: when network conditions deteriorate and less bandwidth is available, the encoder can adapt by encoding lower resolution pictures.
[0091] 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 wider than the video size for the remaining conference participants. When the active speaker changes, the picture resolution for each participant may also need to be adjusted. The need to have ARC functionality becomes even more important when active speaker changes occur frequently.
[0092] 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 lower resolution allows the application to have enough pictures in the buffer to start displaying sooner.
[0093] Adaptive Stream Switching in Streaming. The Dynamic Adaptive Streaming over HTTP (DASH) specification 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. When two different representations of the same video have different bitrates but the same spatial resolution and they have the same value of @mediaStreamStructureId, switching between the two representations can be done at a CRA picture with associated RASL picture, and the RASL picture associated with the CRA picture at the switch position can be decoded with acceptable quality, thus allowing seamless switching. Using ARC, the @mediaStreamStructureId feature can also be used to switch between DASH representations with different spatial resolutions.
[0094] Various methods support the underlying technique to support RPR / ARC, e.g. signaling a list of picture resolutions, some constraints on the resampling of reference pictures in the DPB, etc. Also, at the 14th JVET meeting in Geneva, there were several contributions proposing constraints that should be applied to VVC to support RPR. The proposed constraints include:
[0095] When a current picture refers to a reference picture with a different resolution than the current picture, some tools shall be disabled for the coding of blocks in the current picture. These tools include:
[0096] Temporal motion vector prediction (TMVP) and advanced TMVP (ATMVP), which were proposed by JVET-N0118.
[0097] Decoder side motion vector refinement (DMVR), which was proposed by JVET-N0279.
[0098] Bi-directional optical flow (BIO) This was proposed by JVET-N0279.
[0099] Bi-prediction of blocks from reference pictures with a different resolution than the current picture is not allowed, as proposed by JVET-N0118.
[0100] For motion compensation, sample filtering should be applied only once, i.e., when resampling and interpolation are needed to reach finer pel resolution (e.g., 1 / 4 pel resolution), these two filters should be combined and applied only once, as proposed by JVET-N0118.
[0101] 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, multi-view scalability, etc. When a multi-layer coding technique is used, a picture or a portion thereof may be coded (1) without using a reference picture, i.e., using intra prediction, (2) by referencing a reference picture in the same layer, i.e., using inter prediction, or (3) by referencing a reference picture in (one or more) other layers, i.e., using inter-layer prediction. A reference picture used for inter-layer prediction of a current picture is called an inter-layer reference picture (ILRP).
[0102] 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 one embodiment, layer N is considered to be a base layer and layer N+1 is considered to be an enhancement layer as described above. 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).
[0103] In the context of RPR, a reference picture can be resampled either by selecting a reference picture from a lower layer or by using inter-layer prediction to generate a reference picture of a higher layer based on a reference picture of a lower layer.
[0104] Previous H.26x video coding families have provided scalability support in profile(s) other than the profile(s) 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 indicate whether the EL MB is predicted using a co-located block from the lower layer. Predictions from the co-located block may include texture, motion vectors and / or coding mode. SVC implementations cannot simply reuse H.264 / AVC implementations without modification in their design. The SVC EL macroblock syntax and decoding process are different from the H.264 / AVC syntax and decoding process.
[0105] Scalable HEVC (SHVC) is an extension of the HEVC / H.265 standard that provides support for spatial and quality scalability, Multiview HEVC (MV-HEVC) is an extension of HEVC / H.265 that provides support for multiview scalability, and 3D HEVC (3D-HEVC) is an extension of HEVC / H.264 that provides support for more advanced and efficient three-dimensional (3D) video coding than MV-HEVC. Note that temporal scalability is included as an inseparable part of the single-layer HEVC codec. The design of the multi-layer extension of HEVC adopts the idea that decoded pictures used for inter-layer prediction are treated as long-term reference pictures (LTRPs) coming only from the same access unit (AU), and are assigned a reference index in the reference picture list(s) together with other temporal reference pictures in the current layer. Inter-layer prediction (ILP) is achieved at the prediction unit (PU) level by setting the value of the reference index to refer to the inter-layer reference picture(s) in the reference picture list(s).
[0106] In particular, both the reference picture resampling function and the spatial scalability function require resampling of a reference picture or a part thereof. Reference picture resampling can be realized either at the picture level or at the coding block level. However, when referring to RPR as a coding function, it is a function for single-layer coding. Nevertheless, it is possible and even preferable from a codec design point of view to use the same resampling filter for both the RPR function of single-layer coding and the spatial scalability function for multi-layer coding.
[0107] JVET-N0279 proposed to disable BIO for RPR. More precisely, it proposed to disable the use of BIO (also known as BDOF) for the entire coded video sequence (CVS) when RPR is enabled. It turns out that even when the RPR function is enabled, the current picture often does not refer to a reference picture with a different resolution. Therefore, disabling BIO for the entire CVS may unnecessarily restrict and impair coding efficiency.
[0108] Disclosed herein is a technique that allows BDOF 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 BDOF for the entire CVS when RPR is enabled. Thus, by having the ability to selectively disable BDOF, coding efficiency may be improved. Thus, the use of processor, memory, and / or network resources may be reduced at both the encoder and the decoder. Thus, the coder / decoder (also known as a "codec") in video coding is improved relative to current codecs. In practical terms, the improved video coding process provides a better user experience to the user when video is transmitted, received, and / or viewed.
[0109] 6 is a schematic diagram illustrating an example of unidirectional inter prediction 600. The unidirectional inter prediction 600 can be used to determine motion vectors for coding and / or decoding blocks produced when partitioning a picture.
[0110] 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 in time after the current frame 610 (e.g., as a subsequent reference frame) as shown, but in some examples, it may also be located in time before the current frame 610 (e.g., as a preceding reference frame). The current frame 610 is an example of a frame / picture being coded / decoded at a particular point in time. The current frame 610 includes an object in the current block 611 that matches an object in the reference block 631 of the reference frame 630. The reference frame 630 is a frame used as a reference for coding 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.
[0111] The current block 611 is any coding unit being coded / decoded at a particular point in time in the coding process. The current block 611 may be an entire partitioned block or a sub-block when using an affine inter prediction mode. The current frame 610 is separated from the reference frame 630 by some 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. The 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 these frames. Over the time 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 movement over time. A motion vector 635 describes the direction and magnitude of the object's movement along the motion trajectory 613 through 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.
[0112] 7 is a schematic diagram illustrating an example of bi-directional inter prediction 700. Bi-directional inter prediction 700 can be used to determine motion vectors for encoding and / or decoding blocks produced when partitioning a picture.
[0113] 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, current frame 710 and current block 711 are substantially similar to current frame 610 and current block 611, respectively. Current frame 710 is located in time between a previous 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. Previous reference frame 720 and subsequent reference frame 730 are otherwise substantially similar to reference frame 630.
[0114] 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 at the previous reference block 721 along a motion trajectory 713, through the current block 711, to a position at the subsequent reference block 731 over the course of a video sequence. The current frame 710 is separated from the previous reference frame 720 by some previous time distance (TD0) 723 and from the subsequent reference frame 730 by some 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 along motion trajectory 713 from previous reference block 721 to current block 711 through the time period indicated by TD0 723. The object also moves along motion trajectory 713 from current block 711 to subsequent reference block 731 through the time period indicated by TD1 733. The prediction information for the current block 711 may reference previous reference frame 720 and / or previous reference block 721 and subsequent reference frame 730 and / or subsequent reference block 731 by a pair of reference indexes indicating the direction and time distance between these frames.
[0115] A previous motion vector (MV0) 725 describes the direction and magnitude of an object's movement along a motion trajectory 713 through 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 movement along a motion trajectory 713 through 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.
[0116] In one embodiment, inter prediction and / or bidirectional 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, for each sample in the current block 711, a motion vector may be determined that points to each sample in the previous reference block 721 and / or the subsequent reference block 731. 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.
[0117] In both merge and advanced motion vector prediction (AMVP) modes, a candidate list is generated by adding candidate motion 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 those blocks are encoded. 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 vector 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 was used when such neighboring blocks were encoded.
[0118] 8 illustrates a video bitstream 800. As used herein, the video bitstream 800 may also 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 (SPS) 802, a picture parameter set (PPS) 804, a slice header 806, and image data 808.
[0119] The SPS 802 contains data common to all pictures in a sequence of pictures (SOP). In contrast, the PPS 804 contains data common to the entire picture. The slice header 806 contains information about the current slice, such as the slice type and which of the reference pictures will be used. The SPS 802 and the PPS 804 may be generally referred to as parameter sets. The SPS 802, the PPS 804, and the slice header 806 are types of network abstraction layer (NAL) units. A NAL unit is a syntactic structure that contains an indication of the type of data that follows (e.g., coded video data). NAL units are classified into video coding layer (VCL) and non-VCL NAL units. VCL NAL units contain data that represent values of samples in a video picture, and non-VCL NAL units contain some additional relevant information, such as parameter sets (important header data that may apply to many VCL NAL units) and supplemental enhancement information (timing information and other supplemental data that is not necessary to decode the values of samples in a video picture but that may increase the usefulness of the decoded video signal). Those skilled in the art will understand that in practical applications, bitstream 800 may contain other parameters and information.
[0120] Image data 808 in Figure 8 comprises data relating to the image or video being encoded or decoded. Image data 808 may simply be referred to as the payload or data carried within bitstream 800. In one embodiment, image data 808 comprises a CVS 814 (or CLVS) that includes multiple pictures 810. CVS 814 is a coded layer video sequence (CLVS) for all coded layer video sequences (CLVS) in video bitstream 800. Notably, when video bitstream 800 contains a single layer, the CVS and CLVS are the same. The CVS and CLVS only differ when video bitstream 800 contains multiple layers.
[0121] 8, each slice of a 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.
[0122] FIG. 9 illustrates a partitioning technique 900 for a picture 910. The picture 910 may be similar to any of the pictures 810 of FIG. 8. As illustrated, the picture 910 may be partitioned into a number of slices 912. A slice is a spatially distinct region of a frame (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 an actual application. Each slice 912 may be partitioned into a number of 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 of 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 an actual application.
[0123] Each block 914 may be partitioned into multiple samples 916 (e.g., pixels). In one embodiment, the size of each block 914 is measured in luma samples. Although 16 samples 916 are shown in Figure 9, more or fewer samples may be used in practical applications.
[0124] 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 bitstream to be decoded is received directly or indirectly from a video encoder (e.g., video encoder 20). Method 1000 improves the decoding process by allowing BDOF 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 BDOF for the entire CVS when RPR is enabled. Thus, having the ability to selectively disable BDOF may improve coding efficiency. Thus, in practical terms, codec performance is improved, which translates into a better user experience.
[0125] At block 1002, a video decoder determines 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. In one embodiment, the video decoder receives a coded video bitstream (e.g., bitstream 800). The coded video bitstream includes a reference picture list, which indicates a resolution of the current picture and indicates a bidirectional inter prediction mode. In one embodiment, a reference picture list structure includes the reference picture list. In one embodiment, the reference picture list is used for bidirectional inter prediction. In one embodiment, the resolution of the current picture is located in a parameter set of the coded video bitstream. In one embodiment, the resolution of the reference picture is derived based on the current picture, estimated based on the resolution of the current picture, parsed from the bitstream, or otherwise obtained. In one embodiment, a reference picture for the current picture is generated based on the reference picture list according to the bidirectional inter prediction mode.
[0126] At block 1004, when it is determined that the resolution of the current picture is the same as the resolution of each of the reference pictures, the video decoder enables BDOF for the current block of the current picture. In one embodiment, the video decoder enables BDOF by setting a BDOF flag to a first value (e.g., true, 1, etc.). In one embodiment, even when BDOF is enabled, BDOF is an optional process. That is, even when BDOF is enabled, it is not necessary to perform BDOF.
[0127] At block 1006, when the resolution of the current picture differs from the resolution of any of the reference pictures, the video decoder disables BDOF for the current block of the current picture. In one embodiment, the video decoder disables BDOF by setting the BDOF flag to a second value (e.g., false, 0).
[0128] When the BDOF flag is set to the first value at block 1008, the video decoder refines the motion vector corresponding to the current block. In one embodiment, the method 1000 further includes selectively enabling and disabling BDOF for other blocks in the current picture depending on whether the resolution of the current picture is different or the same as the resolution of the reference picture.
[0129] In one embodiment, the method further comprises enabling reference picture resampling (RPR) for the entire coded video sequence (CVS) including the current picture, even when BDOF is disabled.
[0130] In one embodiment, the current block is taken from a slice of the current picture, hi one embodiment, the current picture has multiple slices and the current block is taken from a slice from the multiple slices.
[0131] In one embodiment, an image generated based on the current picture is displayed to a user of an electronic device (eg, a smart phone, tablet, laptop, personal computer, etc.).
[0132] 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 a picture (e.g., from a video) is encoded into a video bitstream and then transmitted toward a video decoder (e.g., video decoder 30). Method 1100 improves the encoding process by allowing BDOF 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 BDOF for the entire CVS when RPR is enabled. Thus, having the ability to selectively disable BDOF may improve coding efficiency. Thus, in practical terms, the performance of the codec is improved, which translates into a better user experience.
[0133] At block 1102, the video encoder determines whether a resolution of a current picture being encoded is the same as a resolution of a reference picture identified by the reference picture list. In one embodiment, the reference picture list structure includes the reference picture list. In one embodiment, the reference picture list is used for bidirectional inter prediction. In one embodiment, the resolution of the current picture is encoded in a parameter set of the video bitstream. In one embodiment, a reference picture for the current picture is generated based on the reference picture list according to a bidirectional inter prediction mode.
[0134] At block 1104, when it is determined that the resolution of the current picture is the same as the resolution of each of the reference pictures, the video encoder enables BDOF for the current block of the current picture. In one embodiment, the video encoder enables BDOF by setting a BDOF flag to a first value (e.g., true, 1, etc.). In one embodiment, even when BDOF is enabled, BDOF is an optional process. That is, even when BDOF is enabled, it is not necessary to perform BDOF.
[0135] In one 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).
[0136] At block 1106, when the resolution of the current picture differs from the resolution of any of the reference pictures, the video encoder disables BDOF for the current block of the current picture. In one embodiment, the video encoder disables BDOF by setting the BDOF flag to a second value (e.g., false, 0).
[0137] When the BDOF flag is set to the first value at block 1108, the video encoder refines the motion vector corresponding to the current block. In one embodiment, the method 1100 further includes selectively enabling and disabling BDOF for other blocks in the current picture depending on whether the resolution of the current picture is different or the same as the resolution of the reference picture.
[0138] In one embodiment, the method further comprises enabling reference picture resampling (RPR) for the entire coded video sequence (CVS) including the current picture, even when BDOF is disabled.
[0139] In one embodiment, the current block is taken from a slice of the current picture, hi one embodiment, the current picture has multiple slices and the current block is taken from a slice from the multiple slices.
[0140] In one embodiment, the video encoder generates a video bitstream that includes the current block and transmits the video bitstream to the video decoder. In one embodiment, the video encoder stores the video bitstream for transmission to the video decoder.
[0141] In one 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 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 can be used for inter prediction of a coding block in the slice.
[0142] The method includes parsing the parameter set to obtain resolution information of the current picture, obtaining two reference picture lists of the current slice in the current picture, determining a reference picture for decoding the current coding block in the current slice, determining a resolution of the reference picture, determining whether bidirectional optical flow (BIO) 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.
[0143] In one embodiment, the method includes that the BIO is not used or is disabled for decoding the current coding block when the resolutions of the current picture and the reference picture are different.
[0144] In one embodiment, a method for decoding a video bitstream is disclosed. The video bitstream comprises at least one picture. Each picture comprises a number of slices. Each slice of the number of slices is accompanied by a header including a number of syntax elements. Each slice of the number of slices comprises 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.
[0145] The method includes parsing a parameter set to obtain a flag that specifies whether a bidirectional optical flow (BIO) coding tool / technique may be used to decode a picture in a current coded video sequence; obtaining a current slice in the current picture; and, when a value of the flag that specifies whether a bidirectional optical flow (BIO) coding tool / technique may be used to decode a picture in a current coded video sequence specifies that BIO may be used, parsing a slice header associated with the current slice to obtain a flag that specifies whether a BIO coding tool may be used to decode a coding block in the current slice.
[0146] In one embodiment, when the value of a flag specifying whether a BIO coding tool may be used to decode a current coding block in a current slice specifies that the coding tool cannot be used to decode the current slice, the BIO coding tool is not used or is disabled for decoding the current coding block.
[0147] In one embodiment, when not present, the value of the flag specifying whether a BIO coding tool may be used to decode the current coding block in the current slice is presumed to be the value of the flag specifying whether a bidirectional optical flow (BIO) coding tool / technique may be used to decode the picture in the current coded video sequence.
[0148] In one embodiment, a method for encoding a video bitstream is disclosed. The video bitstream comprises at least one picture. Each picture comprises a number of slices. Each slice of the number of slices is accompanied by a header including a number of syntax elements. Each slice of the number of slices comprises 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.
[0149] The method includes determining whether a bidirectional optical flow (BIO) coding tool / technique may be used for encoding a picture in a current coded video sequence; parsing a parameter set to obtain resolution information of each picture bitstream; obtaining two reference picture lists of a current slice in the current picture; parsing the reference picture list of the current slice to obtain an active reference picture that may be used for decoding a coding block of the current slice; and constraining that a BIO 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: a condition that a BIO coding tool may not be used for encoding a picture in the current coded video sequence; and a condition that a resolution of the current picture and at least one of the reference pictures are different.
[0150] In one embodiment, a method for decoding a video bitstream is disclosed. The bitstream includes at least one picture. Each picture includes a number of slices. Each slice of the number of slices is accompanied by 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 a coding block in a current slice.
[0151] The method includes parsing a parameter set to obtain a flag that specifies whether a bidirectional optical flow (BIO) coding tool / technique may be used for decoding a picture in a current coded video sequence, and parsing the parameter set to obtain a flag that specifies whether a bidirectional optical flow (BIO) coding tool / technique may be used for decoding a picture that references the parameter set, which is a picture parameter set (PPS).
[0152] In one embodiment, when the value of the flag specifying whether a BIO coding tool / technique may be used for decoding a picture that references a PPS specifies that the coding tool cannot be used, the BIO coding tool is not used or is disabled for decoding the current coding block.
[0153] In one embodiment, a method for encoding a video bitstream is disclosed. The video bitstream comprises at least one picture. Each picture comprises a number of slices. Each slice of the number of slices is accompanied by a header including a number of syntax elements. Each slice of the number of slices comprises 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.
[0154] In one embodiment, the method includes determining whether a bidirectional optical flow (BIO) coding tool / technique may be used to encode a picture in a current coded video sequence, determining whether a bidirectional optical flow (BIO) coding tool / technique may be used to encode a picture that references a current PPS, and constraining that a BIO coding tool may not be used for encoding a picture that references a current PPS when a BIO coding tool may not be used to encode a picture in the current coded sequence.
[0155] To implement the embodiments disclosed herein, the following syntax and semantics may be used. The following explanation is compared to 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 as is. Text to be added to the base text is shown in bold, and text to be deleted is shown in italics.
[0156] The reference picture list construction process is updated as follows.
[0157] The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows: (outside 1) TIFF0007635341000001.tif195170
[0158] Derive a flag that determines whether BIO is used or not.
[0159] predSamplesL0 L , predSamplesL1 L , and predSamplesIntra L Let predSamplesL0 be a (cbWidth) × (cbHeight) array of predicted luma sample values, and Cb , predSamplesL1 Cb , predSamplesL0Cr , and predSamplesL1 Cr , predSamplesIntra Cb , and predSamplesIntra Cr Let be a (cbWidth / 2) by (cbHeight / 2) array of predicted chroma sample values. (outside 2) TIFF0007635341000002.tif91170
[0160] Sequence parameter set syntax and semantics. (Outside 3) TIFF0007635341000003.tif47170
[0161] sps_bdof_enabled_flag equal to 0 specifies that bidirectional optical flow inter prediction is disabled. sps_bdof_enabled_flag equal to 1 specifies that bidirectional optical flow inter prediction is enabled.
[0162] Slice header syntax and semantics. (outside 4) TIFF0007635341000004.tif55170
[0163] (outside 5) TIFF0007635341000005.tif24170
[0164] Derive a flag that determines whether BIO is used or not.
[0165] Let predSamplesL0L, predSamplesL1L, and predSamplesIntraL be (cbWidth) by (cbHeight) arrays of predicted luma sample values, and let predSamplesL0Cb, predSamplesL1Cb, predSamplesL0Cr, and predSamplesL1Cr, predSamplesIntraCb, and predSamplesIntraCr be (cbWidth / 2) by (cbHeight / 2) arrays of predicted chroma sample values. (outside 6) TIFF0007635341000006.tif85170
[0166] Sequence parameter set syntax and semantics. (outside 7) TIFF0007635341000007.tif45170
[0167] sps_bdof_enabled_flag equal to 0 specifies that bidirectional optical flow inter prediction is disabled. sps_bdof_enabled_flag equal to 1 specifies that bidirectional optical flow inter prediction is enabled.
[0168] Picture Parameter Set Syntax and Semantics. (outside 8) TIFF0007635341000008.tif46170
[0169] (outer 9) TIFF0007635341000009.tif26170
[0170] (Outside 10) TIFF0007635341000010.tif13170
[0171] Derive a flag that determines whether BIO is used or not.
[0172] predSamplesL0L , predSamplesL1 L , and predSamplesIntra L Let predSamplesL0 be a (cbWidth) × (cbHeight) array of predicted luma sample values, and Cb , predSamplesL1 Cb , predSamplesL0 Cr , and predSamplesL1 Cr , predSamplesIntra Cb , and predSamplesIntra Cr Let be a (cbWidth / 2) by (cbHeight / 2) array of predicted chroma sample values. (Outside 11) TIFF0007635341000011.tif85170
[0173] FIG. 12 is a schematic diagram of a video coding device 1200 (e.g., video encoder 20 or video decoder 30) according to one embodiment of the disclosure. The video coding device 1200 is suitable for implementing the disclosed embodiments 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. The video coding device 1200 may also include optical-to-electrical (OE) and electrical-to-optical (EO) components coupled to the ingress port 1210, the receiver unit 1220, the transmitter unit 1240, and the egress port 1250 for egress or ingress of optical or electrical signals.
[0174] The processor 1230 is implemented by hardware and software. The processor 1230 may be implemented as one or more of a CPU chip, a core (e.g., as a multi-core processor), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), and a digital signal processor (DSP). The processor 1230 is in communication 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 above-disclosed embodiments. For example, the coding module 1270 implements, processes, prepares, or provides various codec functions. The inclusion of the coding module 1270 thus provides a substantial improvement to the functionality of the video coding device 1200 and realizes the conversion of the video coding device 1200 to different states. Alternatively, the coding module 1270 is implemented as instructions stored in the memory 1260 and executed by the processor 1230 .
[0175] 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, speakers for outputting audio data, etc. 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.
[0176] Memory 1260 may include one or more disks, tape drives, and solid state drives, and may also be used as an overflow data storage device to store programs when such programs are selected for execution, as well as to store instructions and data retrieved during program execution. 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).
[0177] 13 is a schematic diagram of one embodiment of a means for coding 1300. In one 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 a picture to be encoded or to receive a bitstream to be decoded. 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 a decoded image to a display means (e.g., one of the I / O devices 1280).
[0178] 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.
[0179] 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 that the order of steps of such methods is 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.
[0180] Although several embodiments have been presented in this disclosure, it should be understood that the disclosed systems and methods may be embodied in numerous other specific forms without departing from the spirit or scope of the disclosure. The examples herein should be considered as illustrative rather than limiting, and the intention is not to be limited to the details given herein. For example, the various elements or components may be combined or integrated in other systems, or certain features may be omitted or not implemented.
[0181] Additionally, the techniques, systems, subsystems, and methods described and illustrated as separate or distinct 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 shown or described as being coupled or directly coupled or in communication with each other may also be indirectly coupled or in communication through some interface, device, or intermediate component, whether electrical, mechanical, or otherwise. Other examples of variations, substitutions, and alterations will be apparent to those skilled in the art and may be made without departing from the spirit and scope of the present disclosure.
Claims
1. 1. A method for decoding a video bitstream, implemented by a video decoder, comprising: receiving a bitstream having encoded data corresponding to a current picture to be decoded from the video bitstream; partitioning the current picture into a plurality of slices; Partitioning each slice into a number of blocks; decoding sps_bdof_enabled_flag from the video bitstream, where sps_bdof_enabled_flag equal to 0 specifies that bidirectional optical flow (BDOF) inter prediction is disabled and sps_bdof_enabled_flag equal to 1 specifies that the BDOF inter prediction is enabled; 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, and reference picture resampling (RPR) is enabled for the current picture; enabling the BDOF for a current block of the current picture when all of the following conditions are true: the resolution of the current picture is determined to be the same as the resolution of each of the reference pictures, and merge_subblock_flag is not present; when it is determined that the resolution of the current picture is different from the resolution of any of the reference pictures, disabling the BDOF for the current block of the current picture; decoding the current block from the video bitstream; The method according to claim 1,
2. The method of claim 1 , wherein enabling the BDOF comprises setting a BDOF flag to a first value, and disabling the BDOF comprises setting the BDOF flag to a second value.
3. The method according to claim 1 , further comprising generating the reference pictures for the current picture based on the reference picture list according to a bidirectional inter prediction mode.
4. 4. The method of claim 1, further comprising selectively enabling and disabling the BDOF for blocks in multiple pictures depending on whether the resolution of each picture is different from or the same as the resolution of a reference picture associated with the picture.
5. 5. The method of claim 1, further comprising: when the BDOF is disabled, enabling reference picture resampling (RPR) for an entire coded video sequence (CVS) including the current picture.
6. The method of claim 1 , wherein the resolution of the current picture is located in a parameter set of the video bitstream, and the current block is taken from a slice of the current picture.
7. The method of claim 1 , further comprising displaying the image generated using the current block on a display of an electronic device.
8. 1. A method for encoding a video bitstream, implemented by a video encoder, comprising: Obtaining a current picture to be encoded; partitioning the current picture into a plurality of slices; Partitioning each slice into a number of blocks; determining whether a resolution of a current picture being encoded is the same as a resolution of a reference picture identified in a reference picture list associated with the current picture, and reference picture resampling (RPR) is enabled for the current picture; enabling bidirectional optical flow (BDOF) for the current block of the current picture when all of the following conditions are true: the resolution of the current picture is determined to be the same as the resolution of each of the reference pictures, and merge_subblock_flag is not present; when it is determined that the resolution of the current picture is different from the resolution of any of the reference pictures, disabling the BDOF for the current block of the current picture; encoding sps_bdof_enabled_flag into the video bitstream, where sps_bdof_enabled_flag equal to 0 specifies that the BDOF is disabled and sps_bdof_enabled_flag equal to 1 specifies that the BDOF is enabled; encoding the current block into the video bitstream; The method according to claim 1,
9. The method further comprises: determining a motion vector for the current picture based on the reference picture; encoding the current picture based on the motion vector; 9. The method of claim 8, comprising:
10. 10. The method of claim 8, wherein enabling the BDOF comprises setting a BDOF flag to a first value, and disabling the BDOF comprises setting the BDOF flag to a second value.
11. The method according to any one of claims 8 to 10, further comprising generating the reference pictures for the current picture based on a reference picture list according to a bidirectional inter prediction mode.
12. 12. The method of claim 8, further comprising selectively enabling and disabling the BDOF for blocks in a plurality of pictures depending on whether the resolution of each picture is different from 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 when the BDOF is disabled.
14. 14. The method of claim 8, further comprising transmitting the video bitstream including the current block to a video decoder.
15. A decoding device, comprising: a receiver configured to receive a coded video bitstream; a memory coupled to the receiver, the memory storing instructions; a processor coupled to the memory for executing the instructions to cause the decoding device to: receiving a bitstream having encoded data corresponding to a current picture to be decoded from the video bitstream; partitioning the current picture into a plurality of slices; Partition each slice into multiple blocks, decoding sps_bdof_enabled_flag from the video bitstream, where sps_bdof_enabled_flag equal to 0 specifies that bidirectional optical flow (BDOF) inter prediction is disabled and sps_bdof_enabled_flag equal to 1 specifies that the BDOF inter prediction is enabled; 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, where reference picture resampling (RPR) is enabled for the current picture; enable the BDOF for a current block of the current picture when all of the following conditions are true: the resolution of the current picture is determined to be the same as the resolution of each of the reference pictures, and merge_subblock_flag is not present; when it is determined that the resolution of the current picture is different from the resolution of any of the reference pictures, invalidating the BDOF for the current block of the current picture; decoding the current block from the video bitstream; a processor configured to A decoding device having the above configuration.
16. The decoding apparatus of claim 15 , wherein when the BDOF is disabled, reference picture resampling (RPR) is enabled for an entire coded video sequence (CVS) including the current picture.
17. 17. A decoding device according to any one of claims 15 to 16, further comprising a display arranged to display an image generated based on the current block.
18. 1. An encoding device, comprising: A memory storing instructions; a processor coupled to the memory and configured to implement the instructions to cause the encoding device to: Obtaining the current picture to be encoded; partitioning the current picture into a plurality of slices; Partition each slice into multiple blocks, determining whether a resolution of a current picture being encoded is the same as a resolution of a reference picture identified by a reference picture list associated with the current picture, where reference picture resampling (RPR) is enabled for the current picture; enable bidirectional optical flow (BDOF) for a current block of the current picture when all of the following conditions are true: the resolution of the current picture is determined to be the same as the resolution of each of the reference pictures, and merge_subblock_flag is not present; when it is determined that the resolution of the current picture is different from the resolution of any of the reference pictures, invalidating the BDOF for the current block of the current picture; encoding sps_bdof_enabled_flag into the video bitstream, where sps_bdof_enabled_flag equal to 0 specifies that the BDOF is disabled and sps_bdof_enabled_flag equal to 1 specifies that the BDOF is enabled; encoding the current block into the video bitstream; a processor configured to a transmitter coupled to the processor, the transmitter configured to transmit a video bitstream including the current block to a video decoder; An encoding device having the following construction.
19. The encoding apparatus of claim 18 , wherein reference picture resampling (RPR) is enabled for an entire coded video sequence (CVS) including the current picture even when the BDOF is disabled.
20. 20. The encoding device of claim 18, wherein the memory stores the video bitstream prior to the transmitter transmitting the video bitstream to the video decoder.
21. A receiver configured to receive a bitstream to be decoded; a transmitter coupled to the receiver and configured to transmit the decoded image to a display; a memory coupled to at least one of the receiver or the transmitter, the memory configured to store instructions; a processor coupled to said memory and configured to execute the instructions stored in said memory to perform the method of any one of claims 1 to 7; A coding device having the following construction.
22. 22. The coding device of claim 21, further comprising a display configured to display the image.
23. A receiver configured to receive a picture for encoding into a bitstream; a transmitter coupled to the receiver, the transmitter configured to transmit the bitstream to a decoder; a memory coupled to at least one of the receiver or the transmitter, the memory configured to store instructions; a processor coupled to said memory and configured to execute the instructions stored in said memory to perform the method of any one of claims 8 to 14; A coding device having the following construction.
24. An encoder; a decoder in communication with the encoder; wherein the encoder comprises an encoding device according to any one of claims 18 to 20 and the decoder comprises a decoding device according to any one of claims 15 to 17. system.
25. A method for decoding a bitstream comprising: receiving means configured to receive a bitstream to be decoded; a transmitting means coupled to said receiving means, said transmitting means configured to transmit the decoded image to a display means; a storage means coupled to at least one of said receiving means or said transmitting means, said storage means configured to store instructions; - a processing means coupled to said storage means, said processing means being configured to execute said instructions stored on said storage means to perform the method of any one of claims 1 to 7; The coding means includes:
26. A receiving means configured to receive a picture for encoding into a bitstream; a transmitting means coupled to said receiving means, said transmitting means configured to transmit said bitstream to a decoding means; a storage means coupled to at least one of said receiving means or said transmitting means, said storage means configured to store instructions; - a processing means coupled to said storage means, said processing means being configured to execute said instructions stored on said storage means to perform the method of any one of claims 8 to 14; The coding means includes:
27. A coder comprising processing circuitry for carrying out the method of any one of claims 1 to 14.
28. A computer-readable storage medium storing a computer program executable by a processor, wherein when the computer program is executed by the processor, the processor performs a method according to any one of claims 1 to 14.
29. 1. A processor-implemented method for storing a video bitstream, comprising: determining whether a resolution of a current picture being encoded is the same as a resolution of a reference picture identified in a reference picture list associated with the current picture, and reference picture resampling (RPR) is enabled for the current picture; enabling bidirectional optical flow (BDOF) for the current block of the current picture when all of the following conditions are true: the resolution of the current picture is determined to be the same as the resolution of each of the reference pictures, and merge_subblock_flag is not present; when it is determined that the resolution of the current picture is different from the resolution of any of the reference pictures, disabling the BDOF for the current block of the current picture; encoding sps_bdof_enabled_flag into the video bitstream, where sps_bdof_enabled_flag equal to 0 specifies that the BDOF is disabled and sps_bdof_enabled_flag equal to 1 specifies that the BDOF is enabled; encoding the current block into the video bitstream; storing the video bitstream on a storage medium; The method according to claim 1,
30. A program having a program code for performing the method according to any one of claims 1 to 14, when the program is run on a computer or processor.
Citation Information
Patent Citations
Improved bidirectional optical flow for video coding
JP2018536320A
Selective use of coding tools in video processing
JP2022531965A
Interplay between reference picture resampling and video coding tools
US20220264086A1