The present aspects relate to video compression and video encoding and decoding.
In the HEVC (High Efficiency Video Coding, ISO/IEC 23008-2, ITU-T H.265) video compression standard, motion compensated temporal prediction is employed to exploit the redundancy that exists between successive pictures of a video.
To do so, a motion vector is associated to each prediction unit (PU). Each CTU is represented by a Coding Tree in the compressed domain. This is a quad-tree division of the CTU, where each leaf is called a Coding Unit (CU), as shown in
Each CU is then given some Intra or Inter prediction parameters (Prediction Info). To do so, it is spatially partitioned into one or more Prediction Units (PUs), each PU being assigned some prediction information. The Intra or Inter coding mode is assigned on the CU level, as shown in
A Motion Vector is assigned to each PU in HEVC. This motion vector is used for motion compensated temporal prediction of the considered PU. Therefore, in HEVC, the motion model that links a predicted block and its reference block includes a translation.
In the Joint Exploration Model (JEM) developed by the JVET (Joint Video Exploration Team) group, some motion models are supported to improve temporal prediction. To do so, a PU can be spatially divided into sub-PU and a model can be used to assign each sub-PU a dedicated motion vector.
In other versions of the JEM, a CU is no longer divided into PUs or Tus (Transform Units), and some motion data is directly assigned to each CU. In this new codec design, a CU can be divided into sub-CU and a motion vector can be computed for each sub-CU.
For inter frame motion compensation, a set of new tools which use decoder side parameter estimation was developed in JEM, including, for example, FRUC merge, FRUC bilateral, and IC.
Drawbacks and disadvantages of the prior art may be addressed by one or more of the embodiments described herein, including embodiments for reducing data dependency in encoding and decoding.
According to a first aspect, there is provided a method. The method comprises steps for obtaining information for a current video block from a neighboring video block before the information is refined for use in the neighboring video block; refining the information for use with the current video block; and, encoding the current video block using the refined information. According to another aspect, there is provided a second method. The method comprises steps for obtaining information for a current video block from a reconstructed neighboring video block before the information is refined for use in the neighboring video block; refining the information for use with the current video block; and, decoding the current video block using the refined information.
According to another aspect, there is provided an apparatus. The apparatus comprises a memory and a processor. The processor can be configured to encode a block of a video or decode a bitstream by executing the either of the aforementioned methods.
According to another general aspect of at least one embodiment, there is provided a device comprising an apparatus according to any of the decoding embodiments; and at least one of (i) an antenna configured to receive a signal over the air, the signal including the video block, (ii) a band limiter configured to limit the received signal to a band of frequencies that includes the video block, or (iii) a display configured to display an output.
According to another general aspect of at least one embodiment, there is provided a non-transitory computer readable medium containing data content generated according to any of the described encoding embodiments or variants.
According to another general aspect of at least one embodiment, there is provided a signal comprising video data generated according to any of the described encoding embodiments or variants.
According to another general aspect of at least one embodiment, a bitstream is formatted to include data content generated according to any of the described encoding embodiments or variants.
According to another general aspect of at least one embodiment, there is provided a computer program product comprising instructions which, when the program is executed by a computer, cause the computer to carry out any of the described decoding embodiments or variants.
These and other aspects, features and advantages of the general aspects will become apparent from the following detailed description of exemplary embodiments, which is to be read in connection with the accompanying drawings.
The described embodiments are generally in the field of video compression. One or more embodiments aim at improving compression efficiency compared to existing video compression systems.
In the HEVC (High Efficiency Video Coding, ISO/IEC 23008-2, ITU-T H.265) video compression standard, motion compensated temporal prediction is employed to exploit the redundancy that exists between successive pictures of a video.
To do so, a motion vector is associated to each prediction unit (PU). Each CTU is represented by a Coding Tree in the compressed domain. This is a quad-tree division of the CTU, where each leaf is called a Coding Unit (CU), as shown in
Each CU is then given some Intra or Inter prediction parameters (Prediction Info). To do so, it is spatially partitioned into one or more Prediction Units (PUs), each PU being assigned some prediction information. The Intra or Inter coding mode is assigned on the CU level, as shown in
A Motion Vector is assigned to each PU in HEVC. This motion vector is used for motion compensated temporal prediction of the considered PU. Therefore, in HEVC, the motion model that links a predicted block and its reference block includes a translation.
In the Joint Exploration Model (JEM) developed by the JVET (Joint Video Exploration Team) group, some motion models are supported to improve temporal prediction. To do so, a PU can be spatially divided into sub-PU and a model can be used to assign each sub-PU a dedicated motion vector.
In other versions of the JEM, a CU is no longer divided into PUs or Tus (Transform Units), and some motion data is directly assigned to each CU. In this new codec design, a CU can be divided into sub-CU and a motion vector can be computed for each sub-CU.
For inter frame motion compensation, a set of new tools which use decoder side parameter estimation was developed in JEM, including, for example, FRUC merge, FRUC bilateral, and IC.
The FRUC (Frame Rate Up Conversion) tool is described as follows.
FRUC allows deriving motion information of a CU at decoder side without signaling.
This mode is signaled at the CU level with a FRUC flag and an additional FRUC mode flag to indicate which matching cost function (bilateral or template) is to be used to derive motion information for the CU.
At an encoder side, the decision on whether to use FRUC merge mode for a CU is based on RD (rate distortion) cost selection. The two matching modes (bilateral and template) are both checked for a CU. The one leading to the minimal RD cost is further compared to other coding modes. If the FRUC mode is the most efficient in the RD sense, the FRUC flag is set to true for the CU and the related matching mode is used.
The motion derivation process in FRUC merge mode has two steps. A CU-level motion search is first performed, then followed by a sub-CU level motion refinement. At a CU level, an initial motion vector is derived from a list of MV (motion vector) candidates for the whole CU based on bilateral or template matching. The candidate leading to a minimum matching cost is selected as the starting point for further CU level refinement. Then a local search based on bilateral or template matching around the starting point is performed and the MV resulting in the minimum matching cost is taken as the MV for the whole CU. Subsequently, the motion information is further refined at sub-CU level with the derived CU motion vectors as the starting point.
As shown in the
As shown in
Note that this FRUC mode using the template matching cost function can also be applied to AMVP (Advanced Motion Vector Prediction) mode in an embodiment. In this case, AMVP has two candidates. A new candidate is derived using the FRUC tool with the template matching. If this FRUC candidate is different from the first existing AMVP candidates, it is inserted at the very beginning of the AMVP candidate list and then the list size is set to two (meaning remove the second existing AMVP candidate). When applied to AMVP mode, only a CU level search is applied.
In Inter mode, IC allows correction of block prediction samples obtained via Motion Compensation (MC) by considering the spatial or temporal local illumination variation. The IC parameters are estimated by comparing the set S of reconstructed neighboring samples (L-shape-cur) with the neighboring samples (L-shape-ref-i) of the reference-i block (i=0 or 1) as depicted in
The IC parameters minimize the difference (least squares method) between the samples in the L-shape-cur and the samples of the L-shape-ref-i corrected with IC parameters. Typically, the IC model is linear: IC(x)=a*x+b, where x is the value of the sample to compensate.
The parameters a and b are derived by resolving a least square minimization on the L-shapes at the encoder (and at the decoder):
Finally, ai is transformed into integer weight (ai) and shift (shi) and the MC block is corrected by IC:
Predi=(ai*xi>>shi)+bi (3)
One problem solved by at least one of the described embodiments is how to relax the data dependency created by tools such as FRUC.
One issue arising with the tools such as FRUC when considering this kind of pipeline is that it introduces a dependency between the parameter decoding module and the compensation module because the final motion vector of the CU0 depends on the result of the motion compensation and CU1 should wait for this value before starting to decode the parameters.
Another issue is that some data that is used to perform the motion compensation (for example for FRUC mode or IC parameters computation) might not be available depending on the availability of sample data from each neighboring CU.
At least one of the embodiments described here uses methods to avoid this dependency and allows a highly parallel pipeline at a decoder.
FRUC and IC are new modes in the JEM and so pipeline stalling is a relatively new problem.
The basic idea of at least one of the proposed embodiments is to break the dependency between the decoding and motion compensation module.
At least one of the proposed embodiments involves normative modifications of the codec: encoding and decoding processes are completely symmetric. The impacted codec modules of one or more embodiments are the motion compensation 170 and motion estimation 175 of
In a default FRUC template process, the motion vector of a particular block is refined using samples from top and left templates of neighboring blocks. After refinement, the final value of the motion vector is known and can be used to decode a motion vector of later blocks in the frame (see
Instead of using the final motion vector (after the FRUC process is finished) as a predictor for neighboring blocks, the predictor itself of the neighboring block is used as a predictor for the current block (see
The motion compensation process still has some dependencies with the neighboring blocks values (typically the samples used in the templates at top and left are used to start the motion refinement process). In order to break this dependency, the FRUC mode can be constrained to a CU inside the CTU (or, in an alternate embodiment, a region of a given size).
In
In another embodiment, the restriction only applies to a CTU on the left side, then CU3 is allowed to have a FRUC template mode.
This allows the parallelization of several CTUs in the motion compensation module.
Note this method applies for both FRUC and IC computation.
In another embodiment, the above restriction applies only on the update of the motion vector predictor: when the neighboring CU uses a predictor outside the CTU, only the motion vector predictor of this neighboring CU can be used, as opposed to the final motion vector value, but when the CU uses a motion vector predictor from a CU inside the CTU, then the final motion vector is used as a predictor for the current CU.
This allows the parallelization of several CTUs in the decoding module, allowing more parallelization on further modules.
An associated syntax, such as one or more flags, selections from lists, other indicators, for example, on the limitation of FRUC or IC can be signaled at, for example, one or more of the slice, PPS (Picture Parameter Set), or SPS (Sequence Parameter Set) levels. Other levels, high-level syntax or otherwise, are used in other embodiments. Associated syntax that is used for this signaling includes, for example, one or more flags, selections from lists, other indicators.
In order to make the motion vector decoding to be not stalling, or not waiting, for the final results of the motion compensation, another method is to make the derivation process of the motion vector independent of the motion vector value itself. In this case, the motion vector derivation uses a modified process.
In the default process, each new candidate vector is compared to a vector already in the list before adding it to the list. Comparison here can refer to motion vector equality, equal reference pictures and optionally IC usage equality.
The new method comprises replacing the vector equality check in the module “Check if in list” by an alternate check: check on the predictor (instead of the final motion vector value), or bypass the check (see
Various embodiments include one or more of the following:
This document describes a variety of aspects, including tools, features, embodiments, models, approaches, etc. Many of these aspects are described with specificity and, at least to show the individual characteristics, are often described in a manner that may sound limiting. However, this is for purposes of clarity in description, and does not limit the application or scope of those aspects. Indeed, all of the different aspects can be combined and interchanged to provide further aspects. Moreover, the aspects can be combined and interchanged with aspects described in earlier filings as well.
The aspects described and contemplated in this document can be implemented in many different forms.
In the present application, the terms “reconstructed” and “decoded” may be used interchangeably, the terms “pixel” and “sample” may be used interchangeably, the terms “image,” “picture” and “frame” may be used interchangeably. Usually, but not necessarily, the term “reconstructed” is used at the encoder side while “decoded” is used at the decoder side.
Various methods are described above, and each of the methods comprises one or more steps or actions for achieving the described method. Unless a specific order of steps or actions is required for proper operation of the method, the order and/or use of specific steps and/or actions may be modified or combined.
Various methods and other aspects described in this document can be used to modify modules, such as, for example, the motion compensation 170 and motion estimation 175 of
Various numeric values may be shown in the present document. The specific values are for exemplary purposes and the aspects described are not limited to these specific values.
Before being encoded, the video sequence may go through pre-encoding processing (101), for example, applying a color transform to the input color picture (e.g., conversion from RGB 4:4:4 to YCbCr 4:2:0), or performing a remapping of the input picture components in order to get a signal distribution more resilient to compression (for instance using a histogram equalization of one of the color components). Metadata can be associated with the pre-processing, and attached to the bitstream.
In the exemplary encoder 100, a picture is encoded by the encoder elements as described below. The picture to be encoded is partitioned (102) and processed in units of, for example, CUs. Each unit is encoded using, for example, either an intra or inter mode. When a unit is encoded in an intra mode, it performs intra prediction (160). In an inter mode, motion estimation (175) and compensation (170) are performed. The encoder decides (105) which one of the intra mode or inter mode to use for encoding the unit, and indicates the intra/inter decision by, for example, a prediction mode flag. Prediction residuals are calculated, for example, by subtracting (110) the predicted block from the original image block.
The prediction residuals are then transformed (125) and quantized (130). The quantized transform coefficients, as well as motion vectors and other syntax elements, are entropy coded (145) to output a bitstream. The encoder can skip the transform and apply quantization directly to the non-transformed residual signal. The encoder can bypass both transform and quantization, i.e., the residual is coded directly without the application of the transform or quantization processes.
The encoder decodes an encoded block to provide a reference for further predictions. The quantized transform coefficients are de-quantized (140) and inverse transformed (150) to decode prediction residuals, Combining (155) the decoded prediction residuals and the predicted block, an image block is reconstructed. In-loop filters (165) are applied to the reconstructed picture to perform, for example, deblocking/SAO (Sample Adaptive Offset) filtering to reduce encoding artifacts. The filtered image is stored at a reference picture buffer (180).
In particular, the input of the decoder includes a video bitstream, which can be generated by video encoder 100. The bitstream is first entropy decoded (230) to obtain transform coefficients, motion vectors, and other coded information. The picture partition information indicates how the picture is partitioned. The decoder may therefore divide (235) the picture according to the decoded picture partitioning information. The transform coefficients are de-quantized (240) and inverse transformed (250) to decode the prediction residuals. Combining (255) the decoded prediction residuals and the predicted block, an image block is reconstructed. The predicted block can be obtained (270) from intra prediction (260) or motion-compensated prediction (i.e., inter prediction) (275). In-loop filters (265) are applied to the reconstructed image. The filtered image is stored at a reference picture buffer (280).
The decoded picture can further go through post-decoding processing (285), for example, an inverse color transform (e.g. conversion from YCbCr 4:2:0 to RGB 4:4:4) or an inverse remapping performing the inverse of the remapping process performed in the pre-encoding processing (101). The post-decoding processing can use metadata derived in the pre-encoding processing and signaled in the bitstream.
The system 1000 includes at least one processor 1010 configured to execute instructions loaded therein for implementing, for example, the various aspects described in this document. Processor 1010 can include embedded memory, input output interface, and various other circuitries as known in the art. The system 1000 includes at least one memory 1020 (e.g., a volatile memory device, and/or a non-volatile memory device). System 1000 includes a storage device 1040, which can include non-volatile memory and/or volatile memory, including, but not limited to, EEPROM, ROM, PROM, RAM, DRAM, SRAM, flash, magnetic disk drive, and/or optical disk drive. The storage device 1040 can include an internal storage device, an attached storage device, and/or a network accessible storage device, as non-limiting examples.
System 1000 includes an encoder/decoder module 1030 configured, for example, to process data to provide an encoded video or decoded video, and the encoder/decoder module 1030 can include its own processor and memory. The encoder/decoder module 1030 represents module(s) that can be included in a device to perform the encoding and/or decoding functions. As is known, a device can include one or both of the encoding and decoding modules. Additionally, encoder/decoder module 1030 can be implemented as a separate element of system 1000 or can be incorporated within processor 1010 as a combination of hardware and software as known to those skilled in the art.
Program code to be loaded onto processor 1010 or encoder/decoder 1030 to perform the various aspects described in this document can be stored in storage device 1040 and subsequently loaded onto memory 1020 for execution by processor 1010. In accordance with various embodiments, one or more of processor 1010, memory 1020, storage device 1040, and encoder/decoder module 1030 can store one or more of various items during the performance of the processes described in this document. Such stored items can include, but are not limited to, the input video, the decoded video or portions of the decoded video, the bitstream, matrices, variables, and intermediate or final results from the processing of equations, formulas, operations, and operational logic.
In several embodiments, memory inside of the processor 1010 and/or the encoder/decoder module 1030 is used to store instructions and to provide working memory for processing that is needed during encoding or decoding. In other embodiments, however, a memory external to the processing device (for example, the processing device can be either the processor 1010 or the encoder/decoder module 1030) is used for one or more of these functions. The external memory can be the memory 1020 and/or the storage device 1040, for example, a dynamic volatile memory and/or a non-volatile flash memory. In several embodiments, an external non-volatile flash memory is used to store the operating system of a television. In at least one embodiment, a fast external dynamic volatile memory such as a RAM is used as working memory for video coding and decoding operations, such as for MPEG-2, HEVC, or VVC (Versatile Video Coding).
The input to the elements of system 1000 can be provided through various input devices as indicated in block 1130. Such input devices include, but are not limited to, (i) an RF portion that receives an RF signal transmitted, for example, over the air by a broadcaster, (ii) a Composite input terminal, (iii) a USB input terminal, and/or (iv) an HEMI input terminal.
In various embodiments, the input devices of block 1130 have associated respective input processing elements as known in the art. For example, the RF portion can be associated with elements suitable for (i) selecting a desired frequency (also referred to as selecting a signal, or band-limiting a signal to a band of frequencies), (ii) downconverting the selected signal, (iii) band-limiting again to a narrower band of frequencies to select (for example) a signal frequency band which can be referred to as a channel in certain embodiments, (iv) demodulating the downconverted and band-limited signal, (v) performing error correction, and (vi) demultiplexing to select the desired stream of data packets. The RF portion of various embodiments includes one or more elements to perform these functions, for example, frequency selectors, signal selectors, band-limiters, channel selectors, filters, downconverters, demodulators, error correctors, and demultiplexers. The RF portion can include a tuner that performs various of these functions, including, for example, downconverting the received signal to a lower frequency (for example, an intermediate frequency or a near-baseband frequency) or to baseband. In one set-top box embodiment, the RF portion and its associated input processing element receives an RF signal transmitted over a wired (for example, cable) medium, and performs frequency selection by filtering, downconverting, and filtering again to a desired frequency band. Various embodiments rearrange the order of the above-described (and other) elements, remove some of these elements, and/or add other elements performing similar or different functions. Adding elements can include inserting elements in between existing elements, for example, inserting amplifiers and an analog-to-digital converter. In various embodiments, the RF portion includes an antenna.
Additionally, the USB and/or HDMI terminals can include respective interface processors for connecting system 1000 to other electronic devices across USB and/or HDMI connections. It is to be understood that various aspects of input processing, for example, Reed-Solomon error correction, can be implemented, for example, within a separate input processing IC or within processor 1010. Similarly, aspects of USB or HDMI interface processing can be implemented within separate interface ICs or within processor 1010. The demodulated, error corrected, and demultiplexed stream is provided to various processing elements, including, for example, processor 1010, and encoder/decoder 1030 operating in combination with the memory and storage elements to process the datastream for presentation on an output device.
Various elements of system 1000 can be provided within an integrated housing, Within the integrated housing, the various elements can be interconnected and transmit data therebetween using suitable connection arrangement 1140, for example, an internal bus as known in the art, including the I2C bus, wiring, and printed circuit boards.
The system 1000 includes communication interface 1050 that enables communication with other devices via communication channel 1060. The communication interface 1050 can include, but is not limited to, a transceiver configured to transmit and to receive data over communication channel 1060. The communication interface 1050 can include, but is not limited to, a modem or network card and the communication channel 1060 can be implemented, for example, within a wired and/or a wireless medium.
Data is streamed to the system 1000, in various embodiments, using a wireless network such as IEEE 802.11. The wireless signal of these embodiments is received over the communications channel 1060 and the communications interface 1050 which are adapted for wireless communications, such as Wi-Fi communications. The communications channel 1060 of these embodiments is typically connected to an access point or router that provides access to outside networks including the Internet for allowing streaming applications and other over-the-top communications. Other embodiments provide streamed data to the system 1000 using a set-top box that delivers the data over the HDMI connection of the input block 1130. Still other embodiments provide streamed data to the system 1000 using the RF connection of the input block 1130.
The system 1000 can provide an output signal to various output devices, including a display 1100, speakers 1110, and other peripheral devices 1120. The other peripheral devices 1120 include, in various examples of embodiments, one or more of a stand-alone DVR, a disk player, a stereo system, a lighting system, and other devices that provide a function based on the output of the system 1000. In various embodiments, control signals are communicated between the system 1000 and the display 1100, speakers 1110, or other peripheral devices 1120 using signaling such as AV.Link, CEC, or other communications protocols that enable device-to-device control with or without user intervention. The output devices can be communicatively coupled to system 1000 via dedicated connections through respective interfaces 1070, 1080, and 1090. Alternatively, the output devices can be connected to system 1000 using the communications channel 1060 via the communications interface 1050. The display 1100 and speakers 1110 can be integrated in a single unit with the other components of system 1000 in an electronic device, for example, a television. In various embodiments, the display interface 1070 includes a display driver, for example, a timing controller (T Con) chip.
The display 1100 and speaker 1110 can alternatively be separate from one or more of the other components, for example, if the RF portion of input 1130 is part of a separate set-top box. In various embodiments in which the display 1100 and speakers 1110 are external components, the output signal can be provided via dedicated output connections, including, for example, HDMI ports, USB ports, or COMP outputs.
The exemplary embodiments can be carried out by computer software implemented by the processor 1010 or by hardware, or by a combination of hardware and software. As a non-limiting example, the exemplary embodiments can be implemented by one or more integrated circuits. The memory 1020 can be of any type appropriate to the technical environment and can be implemented using any appropriate data storage technology, such as optical memory devices, magnetic memory devices, semiconductor-based memory devices, fixed memory, and removable memory, as non-limiting examples. The processor 1010 can be of any type appropriate to the technical environment, and can encompass one or more of microprocessors, general purpose computers, special purpose computers, and processors based on a multi-core architecture, as non-limiting examples.
The implementations and aspects described herein can be implemented in, for example, a method or a process, an apparatus, a software program, a data stream, or a signal. Even if only discussed in the context of a single form of implementation (for example, discussed only as a method), the implementation of features discussed can also be implemented in other forms (for example, an apparatus or program). An apparatus can be implemented in, for example, appropriate hardware, software, and firmware. The methods can be implemented in, for example, an apparatus such as, for example, a processor, which refers to processing devices in general, including, for example, a computer, a microprocessor, an integrated circuit, or a programmable logic device. Processors also include communication devices, such as, for example, computers, cell phones, portable/personal digital assistants (“PDAs”), and other devices that facilitate communication of information between end-users.
Reference to “one embodiment” or “an embodiment” or “one implementation” or “an implementation”, as well as other variations thereof, mean that a particular feature, structure, characteristic, and so forth described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of the phrase “in one embodiment” or “in an embodiment” or “in one implementation” or “in an implementation”, as well any other variations, appearing in various places throughout this document are not necessarily all referring to the same embodiment.
Additionally, this document may refer to “determining” various pieces of information. Determining the information can include one or more of, for example, estimating the information, calculating the information, predicting the information, or retrieving the information from memory.
Further, this document may refer to “accessing” various pieces of information. Accessing the information can include one or more of, for example, receiving the information, retrieving the information (for example, from memory), storing the information, processing the information, transmitting the information, moving the information, copying the information, erasing the information, calculating the information, determining the information, predicting the information, or estimating the information.
Additionally, this document may refer to “receiving” various pieces of information. Receiving is, as with “accessing”, intended to be a broad term. Receiving the information can include one or more of, for example, accessing the information, or retrieving the information (for example, from memory). Further, “receiving” is typically involved, in one way or another, during operations such as, for example, storing the information, processing the information, transmitting the information, moving the information, copying the information, erasing the information, calculating the information, determining the information, predicting the information, or estimating the information.
As will be evident to one of ordinary skill in the art, implementations can produce a variety of signals formatted to carry information that can be, for example, stored or transmitted. The information can include, for example, instructions for performing a method, or data produced by one of the described implementations. For example, a signal can be formatted to carry the bitstream of a described embodiment. Such a signal can be formatted, for example, as an electromagnetic wave (for example, using a radio frequency portion of spectrum) or as a baseband signal. The formatting can include, for example, encoding a data stream and modulating a carrier with the encoded data stream. The information that the signal carries can be, for example, analog or digital information. The signal can be transmitted over a variety of different wired or wireless links, as is known. The signal can be stored on a processor-readable medium.
The preceding description has described a number of embodiments. These embodiments include the following optional features alone or in any combination, across various different claim categories and types:
Number | Date | Country | Kind |
---|---|---|---|
18305567.2 | May 2018 | EP | regional |
18305852.8 | Jul 2018 | EP | regional |
Number | Date | Country | |
---|---|---|---|
Parent | 17053100 | Nov 2020 | US |
Child | 18077342 | US |