Frame-level non-linear motion offset in video coding
Patent Information
- Authority / Receiving Office
- EP · EP
- Patent Type
- Applications
- Current Assignee / Owner
- GOOGLE LLC
- Filing Date
- 2024-07-09
- Publication Date
- 2026-04-15
AI Technical Summary
Conventional video coding techniques assume linear motion between frames, which can fail to accurately represent non-linear motion, leading to inefficiencies in data compression and increased computational and signaling costs.
The implementation of a frame-level non-linear motion offset during video coding, where a single non-linear motion offset is determined and applied to motion vectors for all or some blocks of a frame, to more accurately represent non-linear motion while minimizing additional computational and signaling expenses.
This approach effectively represents non-linear motion with reduced computational and signaling overhead, improving compression efficiency and maintaining video quality by using a single offset value across multiple blocks.
Smart Images

Figure US2024037168_23012025_PF_FP_ABST
Abstract
Description
FRAME-LEVEL NON-LINEAR MOTION OFFSET IN VIDEO CODINGBACKGROUND
[0001] Digital video streams may represent video using a sequence of frames or still images. Digital video can be used for various applications including, for example, video conferencing, high definition video entertainment, video advertisements, or sharing of usergenerated videos. A digital video stream can contain a large amount of data and consume a significant amount of computing or communication resources of a computing device for processing, transmission, or storage of the video data. Various approaches have been proposed to reduce the amount of data in video streams, including encoding or decoding techniques.SUMMARY
[0002] Disclosed herein are, inter alia, systems and techniques for frame-level non-linear motion offset in video coding.
[0003] According to an implementation of this disclosure, a method for decoding an encoded video frame using a frame-level non-linear motion offset comprises: decoding, from a bitstream to which the encoded video frame is encoded, a frame-level non-linear motion offset for the encoded video frame; performing motion compensation against blocks of the encoded video frame including applying the frame-level non-linear motion offset to one or more motion vectors determined for the blocks; reconstructing the encoded video frame into a reconstructed frame based on output of the motion compensation; and outputting the reconstructed frame within an output video stream.
[0004] In some implementations of the method, the frame-level non-linear motion offset is determined during an encoding of a current frame as the encoded video frame.
[0005] In some implementations of the method, the frame-level non-linear motion offset is determined based on a linear motion estimated between the current frame and each of a backward reference frame of the current frame and a forward reference frame of the current frame.
[0006] In some implementations of the method, the linear motion is represented by a single motion vector predicted for the current frame and the frame-level non-linear motionoffset is determined based on a difference between a non-linear motion of the encoded video frame and the single motion vector.
[0007] In some implementations of the method, the non-linear motion of the encoded video frame is determined based on a location of an object associated with the non-linear motion within the current frame.
[0008] In some implementations of the method, the frame-level non-linear motion offset is determined based on block-level offsets determined for multiple blocks of the current frame.
[0009] In some implementations of the method, the frame-level non-linear motion offset is one of a simple average, a weighted average, or a mode of the block-level offsets.
[0010] In some implementations of the method, decoding the frame-level non-linear motion offset for the encoded video frame comprises: decoding the frame-level non-linear motion offset from a frame header associated with the encoded video frame within the bitstream.
[0011] In some implementations of the method, performing the motion compensation against the blocks of the encoded video frame including applying the frame-level non-linear motion offset to the one or more motion vectors determined for the blocks comprises: adding the frame-level non-linear motion offset to a single motion vector predicted for all of the encoded video frame.
[0012] In some implementations of the method, performing the motion compensation against the blocks of the encoded video frame including applying the frame-level non-linear motion offset to the one or more motion vectors determined for the blocks comprises: adding, for each block of the blocks, the frame-level non-linear motion offset to a block-level motion vector determined for the block.
[0013] In some implementations of the method, performing the motion compensation against the blocks of the encoded video frame including applying the frame-level non-linear motion offset to the one or more motion vectors determined for the blocks comprises: determining an updated motion field for the encoded video frame by applying the frame-level non-linear motion offset against an initial motion field; determining a temporally interpolated picture reference frame based on the updated motion field; and predicting the encoded video frame using the temporally interpolated picture reference frame.
[0014] According to an implementation of this disclosure, a non-transitory computer readable medium has stored thereon an encoded bitstream, wherein the encoded bitstream is configured for decoding by operations comprising: performing motion compensation againstblocks of an encoded video frame by applying a frame-level non-linear motion offset to one or more motion vectors determined for blocks of the encoded video frame; and outputting, for storage or display, a reconstructed frame produced based on output of the motion compensation.
[0015] In some implementations of the non-transitory computer readable medium, the frame-level non-linear motion offset is determined during an encoding of a current frame as the encoded video frame and signaled within the encoded bitstream in a frame header associated with the encoded video frame.
[0016] In some implementations of the non-transitory computer readable medium, the frame-level non-linear motion offset is determined based on a linear motion estimated for the current frame or block-level offsets determined for blocks of the current frame.
[0017] In some implementations of the non-transitory computer readable medium, the frame-level non-linear motion offset is added to a single motion vector predicted for the encoded video frame to perform the motion compensation.
[0018] In some implementations of the non-transitory computer readable medium, the frame-level non-linear motion offset is added, for each block of the blocks, to a block-level motion vector determined for the block.
[0019] According to an implementation of this disclosure, a system for decoding an encoded video frame using a frame-level non-linear motion offset comprises: one or more memories; and one or more processors configured to execute instructions stored in the one or more memories to: determine a frame-level non-linear motion offset for the encoded video frame; apply the frame-level non-linear motion offset to one or more motion vectors determined for blocks of the encoded video frame to predict the blocks; reconstruct the encoded video frame into a reconstructed frame based on the prediction of the blocks; and output the reconstructed frame.
[0020] In some implementations of the system, the frame-level non-linear motion offset is determined during an encoding of a current frame as the encoded video frame based on a linear motion estimated for the current frame or block-level offsets determined for blocks of the current frame.
[0021] In some implementations of the system, to apply the frame-level non-linear motion offset to the one or more motion vectors determined for the blocks of the encoded video frame to predict the blocks, the one or more processors are configured to execute the instructions to: add the frame-level non-linear motion offset to a single motion vector predicted for the encoded video frame.
[0022] In some implementations of the system, to apply the frame-level non-linear motion offset to the one or more motion vectors determined for the blocks of the encoded video frame to predict the blocks, the one or more processors are configured to execute the instructions to: add, for each block of the blocks, the frame-level non-linear motion offset to a block-level motion vector determined for the block.
[0023] These and other aspects of this disclosure are disclosed in the following detailed description of the implementations, the appended claims and the accompanying figures.BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The description herein makes reference to the accompanying drawings described below, wherein like reference numerals refer to like parts throughout the several views.
[0025] FIG. l is a schematic of an example of a video encoding and decoding system.
[0026] FIG. 2 is a block diagram of an example of a computing device that can implement a transmitting station or a receiving station.
[0027] FIG. 3 is a diagram of an example of a video stream to be encoded and decoded.
[0028] FIG. 4 is a block diagram of an example of an encoder.
[0029] FIG. 5 is a block diagram of an example of a decoder.
[0030] FIG. 6 is an illustration of examples of portions of a video frame.
[0031] FIG. 7 is an illustration of a linear motion estimated for a bidirectional interprediction of a current frame and a frame-level non-linear motion offset determined for the current frame.
[0032] FIG. 8 is a flowchart diagram of an example of a technique for encoding a frame using a frame-level non-linear motion offset.
[0033] FIG. 9 is a flowchart diagram of an example of a technique for decoding an encoded frame using a frame-level non-linear motion offset.DETAILED DESCRIPTION
[0034] Video compression schemes may include breaking respective images, or frames, of a video stream into smaller portions, such as blocks, and generating an encoded bitstream by using encoding techniques to limit the information included for respective blocks thereof. The bitstream can be decoded to re-create the source frames from the limited information. A video stream can be compressed (i.e., encoded) by a variety of techniques to reduce bandwidth required to transmit or store the video stream. Similarly, a variety of techniques can be used to decompress (i.e., decode) a compressed video stream from a bitstream, toprepare the video stream for viewing or further processing. Compression of the video stream often exploits spatial and temporal correlation of video signals through spatial and / or motion- compensated prediction. Motion-compensated prediction may also be referred to as interprediction. Inter-prediction uses one or more motion vectors to generate a block (also called a prediction block) that resembles a current block to be encoded using previously encoded and decoded pixels. By encoding the motion vector(s), and the difference between the two blocks (i.e., a residual), a decoder receiving the encoded signal can reconstruct the current block by generating the prediction block and adding pixels of the prediction block to the decoded residual block.
[0035] Each motion vector used to generate a prediction block in the inter-prediction process refers to at least one reference frame (i.e., a frame other than a current frame which includes the block that is under prediction). Reference frames can be located before or after the current frame in the sequence of the video stream and may be frames that are reconstructed before being used as a reference frame. In particular, a reference frame may be a forward reference frame (i.e., a frame used for forward prediction relative to the sequence) or a backward reference frame (i.e., a frame used for backward prediction relative to the sequence). One or more forward and / or backward reference frames can be used to encode or decode a block. In particular, because many conventional video compression and decompression schemes use a pyramid coding structure to achieve high compression efficiencies, many frames are encoded and decoded using bi-directional prediction, such as using a forward reference frame and a backward reference frame. Bi-directional prediction using forward and backward reference frames has been shown to substantially improve the quality of prediction and thus the overall compression performance for the subject video stream.
[0036] With bi-directional prediction, conventional video coding approaches assume that the motion represented by a subject motion vector is linear through the backward reference frame, current frame, and forward reference frame, meaning that the motion of a given object is represented as having constant speed and direction across those frames. However, because the motion is sometimes non-linear, such conventional approaches may fail to accurately represent the motion. To address this, different approaches have recently been proposed in which a block-level motion offset is used to more accurately represent block-level motion. These recent approaches involve determining and applying an offset to a linear motion vector for each individual block within which non-linear motion is determined. While use of such a block-level motion vector offset may more accurately represent the motion of a given block,it also requires that additional data be determined and transmitted within a bitstream for each and every applicable block. Thus, such block-level approaches come with increased computational and signaling costs that may non-trivially increase the size of a bitstream. Moreover, in many cases, the motion offset will be stationary across the subject frame, meaning that the same motion offset is applicable to some or even all blocks of that frame. Implementations of this disclosure address problems such as these by using a frame-level non-linear motion offset for bi-directional prediction during encoding or decoding. In particular, the implementations of this disclosure describe approaches for determining a single non-linear motion offset which can be applied to the motion vectors determined for some or all blocks of a current frame under encoding or decoding, thereby more accurately representing the non-linear motion therein while limiting the additional computational and signaling expense to a single offset value.
[0037] While reference is made herein by example to blocks and the like, as are commonly used in video codecs such as VP9, AVI, and the currently in-development AV2, the implementations of this disclosure may be used with other video coding structures. In one particular but non-limiting example, the implementations of this disclosure may be used with CTUs, CUs, PUs, and the like, as are commonly used in video codecs such as H.265, referred to as High-Efficiency Video Coding, and H.266, referred to as Versatile Video Coding. Accordingly, references herein to particular video coding structures such as blocks and the like shall be regarded as expressions of non-limiting example video coding structures with which the implementations of this disclosure may be used.
[0038] Further details of techniques for encoding or decoding using a frame-level nonlinear motion offset are described herein with initial reference to a system in which such techniques can be implemented. FIG. l is a schematic of an example of a video encoding and decoding system 100. A transmitting station 102 can be, for example, a computer having an internal configuration of hardware such as that described in FIG. 2. However, other implementations of the transmitting station 102 are possible. For example, the processing of the transmitting station 102 can be distributed among multiple devices.
[0039] A network 104 can connect the transmitting station 102 and a receiving station 106 for encoding and decoding of the video stream. Specifically, the video stream can be encoded in the transmitting station 102, and the encoded video stream can be decoded in the receiving station 106. The network 104 can be, for example, the Internet. The network 104 can also be a local area network (LAN), wide area network (WAN), virtual private network (VPN), cellular telephone network, or any other means of transferring the video stream fromthe transmitting station 102 to, in this example, the receiving station 106.
[0040] The receiving station 106, in one example, can be a computer having an internal configuration of hardware such as that described in FIG. 2. However, other suitable implementations of the receiving station 106 are possible. For example, the processing of the receiving station 106 can be distributed among multiple devices.
[0041] Other implementations of the video encoding and decoding system 100 are possible. For example, an implementation can omit the network 104. In another implementation, a video stream can be encoded and then stored for transmission at a later time to the receiving station 106 or any other device having memory. In one implementation, the receiving station 106 receives (e.g., via the network 104, a computer bus, and / or some communication pathway) the encoded video stream and stores the video stream for later decoding. In an example implementation, a real-time transport protocol (RTP) is used for transmission of the encoded video over the network 104. In another implementation, a transport protocol other than RTP may be used (e.g., a Hypertext Transfer Protocol-based (HTTP -based) video streaming protocol).
[0042] When used in a video conferencing system, for example, the transmitting station 102 and / or the receiving station 106 may include the ability to both encode and decode a video stream as described below. For example, the receiving station 106 could be a video conference participant who receives an encoded video bitstream from a video conference server (e.g., the transmitting station 102) to decode and view and further encodes and transmits his or her own video bitstream to the video conference server for decoding and viewing by other participants.
[0043] In some implementations, the video encoding and decoding system 100 may instead be used to encode and decode data other than video data. For example, the video encoding and decoding system 100 can be used to process image data. The image data may include a block of data from an image. In such an implementation, the transmitting station 102 may be used to encode the image data and the receiving station 106 may be used to decode the image data.
[0044] Alternatively, the receiving station 106 can represent a computing device that stores the encoded image data for later use, such as after receiving the encoded or preencoded image data from the transmitting station 102. As a further alternative, the transmitting station 102 can represent a computing device that decodes the image data, such as prior to transmitting the decoded image data to the receiving station 106 for display.
[0045] FIG. 2 is a block diagram of an example of a computing device 200 that canimplement a transmitting station or a receiving station. For example, the computing device 200 can implement one or both of the transmitting station 102 and the receiving station 106 of FIG. 1. The computing device 200 can be in the form of a computing system including multiple computing devices, or in the form of one computing device, for example, a mobile phone, a tablet computer, a laptop computer, a notebook computer, a desktop computer, and the like.
[0046] A processor 202 in the computing device 200 can be a conventional central processing unit. Alternatively, the processor 202 can be another type of device, or multiple devices, capable of manipulating or processing information now existing or hereafter developed. For example, although the disclosed implementations can be practiced with one processor as shown (e.g., the processor 202), advantages in speed and efficiency can be achieved by using more than one processor.
[0047] A memory 204 in computing device 200 can be a read only memory (ROM) device or a random access memory (RAM) device in an implementation. However, other suitable types of storage device can be used as the memory 204. The memory 204 can include code and data 206 that is accessed by the processor 202 using a bus 212. The memory 204 can further include an operating system 208 and application programs 210, the application programs 210 including at least one program that permits the processor 202 to perform the techniques described herein. For example, the application programs 210 can include applications 1 through N, which further include encoding and / or decoding software that performs, amongst other things, encoding or decoding using a frame-level non-linear motion offset as described herein.
[0048] The computing device 200 can also include a secondary storage 214, which can, for example, be a memory card used with a mobile computing device. Because the video communication sessions may contain a significant amount of information, they can be stored in whole or in part in the secondary storage 214 and loaded into the memory 204 as needed for processing.
[0049] The computing device 200 can also include one or more output devices, such as a display 218. The display 218 may be, in one example, a touch sensitive display that combines a display with a touch sensitive element that is operable to sense touch inputs. The display 218 can be coupled to the processor 202 via the bus 212. Other output devices that permit a user to program or otherwise use the computing device 200 can be provided in addition to or as an alternative to the display 218. When the output device is or includes a display, the display can be implemented in various ways, including by a liquid crystal display (LCD), acathode-ray tube (CRT) display, or a light emitting diode (LED) display, such as an organic LED (OLED) display.
[0050] The computing device 200 can also include or be in communication with an image-sensing device 220, for example, a camera, or any other image-sensing device 220 now existing or hereafter developed that can sense an image such as the image of a user operating the computing device 200. The image-sensing device 220 can be positioned such that it is directed toward the user operating the computing device 200. In an example, the position and optical axis of the image-sensing device 220 can be configured such that the field of vision includes an area that is directly adjacent to the display 218 and from which the display 218 is visible.
[0051] The computing device 200 can also include or be in communication with a soundsensing device 222, for example, a microphone, or any other sound-sensing device now existing or hereafter developed that can sense sounds near the computing device 200. The sound-sensing device 222 can be positioned such that it is directed toward the user operating the computing device 200 and can be configured to receive sounds, for example, speech or other utterances, made by the user while the user operates the computing device 200.
[0052] Although FIG. 2 depicts the processor 202 and the memory 204 of the computing device 200 as being integrated into one unit, other configurations can be utilized. The operations of the processor 202 can be distributed across multiple machines (wherein individual machines can have one or more processors) that can be coupled directly or across a local area or other network. The memory 204 can be distributed across multiple machines such as a network-based memory or memory in multiple machines performing the operations of the computing device 200.
[0053] Although depicted here as one bus, the bus 212 of the computing device 200 can be composed of multiple buses. Further, the secondary storage 214 can be directly coupled to the other components of the computing device 200 or can be accessed via a network and can comprise an integrated unit such as a memory card or multiple units such as multiple memory cards. The computing device 200 can thus be implemented in a wide variety of configurations.
[0054] FIG. 3 is a diagram of an example of a video stream 300 to be encoded and decoded. The video stream 300 includes a video sequence 302. At the next level, the video sequence 302 includes a number of adjacent video frames 304. While three frames are depicted as the adjacent frames 304, the video sequence 302 can include any number of adjacent frames 304. The adjacent frames 304 can then be further subdivided into individualvideo frames, for example, a frame 306.
[0055] At the next level, the frame 306 can be divided into a series of planes or segments 308. The segments 308 can be subsets of frames that permit parallel processing, for example. The segments 308 can also be subsets of frames that can separate the video data into separate colors. For example, a frame 306 of color video data can include a luminance plane and two chrominance planes. The segments 308 may be sampled at different resolutions.
[0056] Whether or not the frame 306 is divided into segments 308, the frame 306 may be further subdivided into blocks 310, which can contain data corresponding to, for example, NxM pixels in the frame 306, in which N and M may refer to the same integer value or to different integer values. The blocks 310 can also be arranged to include data from one or more segments 308 of pixel data. The blocks 310 can be of any suitable size, such as 4x4 pixels, 8x8 pixels, 16x8 pixels, 8x16 pixels, 16x16 pixels, or larger up to a maximum block size, which may be 128x128 pixels or another NxM pixels size.
[0057] FIG. 4 is a block diagram of an example of an encoder 400. The encoder 400 can be implemented, as described above, in the transmitting station 102, such as by providing a computer software program stored in memory, for example, the memory 204. The computer software program can include machine instructions that, when executed by a processor such as the processor 202, cause the transmitting station 102 to encode video data in the manner described in FIG. 4. The encoder 400 can also be implemented as specialized hardware included in, for example, the transmitting station 102. In some implementations, the encoder 400 is a hardware encoder.
[0058] The encoder 400 has the following stages to perform the various functions in a forward path (shown by the solid connection lines) to produce an encoded or compressed bitstream 420 using the video stream 300 as input: an intra / inter prediction stage 402, a transform stage 404, a quantization stage 406, and an entropy encoding stage 408. The encoder 400 may also include a reconstruction path (shown by the dotted connection lines) to reconstruct a frame for encoding of future blocks. In FIG. 4, the encoder 400 has the following stages to perform the various functions in the reconstruction path: a dequantization stage 410, an inverse transform stage 412, a reconstruction stage 414, and a loop filtering stage 416. Other structural variations of the encoder 400 can be used to encode the video stream 300.
[0059] In some cases, the functions performed by the encoder 400 may occur after a filtering of the video stream 300. That is, the video stream 300 may undergo pre-processing according to one or more implementations of this disclosure prior to the encoder 400receiving the video stream 300. Alternatively, the encoder 400 may itself perform such preprocessing against the video stream 300 prior to proceeding to perform the functions described with respect to FIG. 4, such as prior to the processing of the video stream 300 at the intra / inter prediction stage 402.
[0060] When the video stream 300 is presented for encoding after the pre-processing is performed, respective adjacent frames 304, such as the frame 306, can be processed in units of blocks. At the intra / inter prediction stage 402, respective blocks can be encoded using intra-frame prediction (also called intra-prediction) or inter-frame prediction (also called inter-prediction). In any case, a prediction block can be formed. In the case of intraprediction, a prediction block may be formed from samples in the current frame that have been previously encoded and reconstructed. In the case of inter-prediction, a prediction block may be formed from samples in one or more previously constructed reference frames.
[0061] Next, the prediction block can be subtracted from the current block at the intra / inter prediction stage 402 to produce a residual block (also called a residual). The transform stage 404 transforms the residual into transform coefficients in, for example, the frequency domain using block-based transforms. The quantization stage 406 converts the transform coefficients into discrete quantum values, which are referred to as quantized transform coefficients, using a quantizer value or a quantization level. For example, the transform coefficients may be divided by the quantizer value and truncated.
[0062] The quantized transform coefficients are then entropy encoded by the entropy encoding stage 408. The entropy-encoded coefficients, together with other information used to decode the block (which may include, for example, syntax elements such as used to indicate the type of prediction used, transform type, motion vectors, a quantizer value, or the like), are then output to the compressed bitstream 420. The compressed bitstream 420 can be formatted using various techniques, such as variable length coding or arithmetic coding. The compressed bitstream 420 can also be referred to as an encoded video stream or encoded video bitstream, and the terms will be used interchangeably herein.
[0063] The reconstruction path (shown by the dotted connection lines) can be used to ensure that the encoder 400 and a decoder 500 (described below with respect to FIG. 5) use the same reference frames to decode the compressed bitstream 420. The reconstruction path performs functions that are similar to functions that take place during the decoding process (described below with respect to FIG. 5), including dequantizing the quantized transform coefficients at the dequantization stage 410 and inverse transforming the dequantized transform coefficients at the inverse transform stage 412 to produce a derivative residualblock (also called a derivative residual).
[0064] At the reconstruction stage 414, the prediction block that was predicted at the intra / inter prediction stage 402 can be added to the derivative residual to create a reconstructed block. The loop filtering stage 416 can apply an in-loop filter or other filter to the reconstructed block to reduce distortion such as blocking artifacts. Examples of filters which may be applied at the loop filtering stage 416 include, without limitation, a deblocking filter, a directional enhancement filter, and a loop restoration filter.
[0065] Other variations of the encoder 400 can be used to encode the compressed bitstream 420. In some implementations, a non-transform based encoder can quantize the residual signal directly without the transform stage 404 for certain blocks or frames. In some implementations, an encoder can have the quantization stage 406 and the dequantization stage 410 combined in a common stage.
[0066] FIG. 5 is a block diagram of an example of a decoder 500. The decoder 500 can be implemented in the receiving station 106, for example, by providing a computer software program stored in the memory 204. The computer software program can include machine instructions that, when executed by a processor such as the processor 202, cause the receiving station 106 to decode video data in the manner described in FIG. 5. The decoder 500 can also be implemented in hardware included in, for example, the transmitting station 102 or the receiving station 106. In some implementations, the decoder 500 is a hardware decoder.
[0067] The decoder 500, similar to the reconstruction path of the encoder 400 discussed above, includes in one example the following stages to perform various functions to produce an output video stream 516 from the compressed bitstream 420: an entropy decoding stage 502, a dequantization stage 504, an inverse transform stage 506, an intra / inter prediction stage 508, a reconstruction stage 510, a loop filtering stage 512, and a post filter stage 514. Other structural variations of the decoder 500 can be used to decode the compressed bitstream 420.
[0068] When the compressed bitstream 420 is presented for decoding, the data elements within the compressed bitstream 420 can be decoded by the entropy decoding stage 502 to produce a set of quantized transform coefficients. The dequantization stage 504 dequantizes the quantized transform coefficients (e.g., by multiplying the quantized transform coefficients by the quantizer value), and the inverse transform stage 506 inverse transforms the dequantized transform coefficients to produce a derivative residual that can be identical to that created by the inverse transform stage 412 in the encoder 400. Using header information decoded from the compressed bitstream 420, the decoder 500 can use the intra / interprediction stage 508 to create the same prediction block as was created in the encoder 400 (e.g., at the intra / inter prediction stage 402).
[0069] At the reconstruction stage 510, the prediction block can be added to the derivative residual to create a reconstructed block. The loop filtering stage 512 can be applied to the reconstructed block to reduce blocking artifacts. Examples of filters which may be applied at the loop filtering stage 512 include, without limitation, a deblocking filter, a directional enhancement filter, and a loop restoration filter. Other filtering can be applied to the reconstructed block. In this example, the post filter stage 514 is applied to the reconstructed block to reduce blocking distortion, and the result is output as the output video stream 516. The output video stream 516 can also be referred to as a decoded video stream, and the terms will be used interchangeably herein.
[0070] Other variations of the decoder 500 can be used to decode the compressed bitstream 420. In some implementations, the decoder 500 can produce the output video stream 516 without the post filter stage 514 or otherwise omit the post filter stage 514.
[0071] FIG. 6 is an illustration of examples of portions of a video frame 600, which may, for example, be the frame 306 shown in FIG. 3. The video frame 600 includes a number of 64x64 blocks 610, such as four 64x64 blocks 610 in two rows and two columns in a matrix or Cartesian plane, as shown. Each 64x64 block 610 may include up to four 32x32 blocks 620. Each 32x32 block 620 may include up to four 16x 16 blocks 630. Each 16x 16 block 630 may include up to four 8x8 blocks 640. Each 8x8 block 640 may include up to four 4x4 blocks 950. Each 4x4 block 950 may include 16 pixels, which may be represented in four rows and four columns in each respective block in the Cartesian plane or matrix. In some implementations, the video frame 600 may include blocks larger than 64x64 and / or smaller than 4x4. Subject to features within the video frame 600 and / or other criteria, the video frame 600 may be partitioned into various block arrangements.
[0072] The pixels may include information representing an image captured in the video frame 600, such as luminance information, color information, and location information. In some implementations, a block, such as a 16x 16 pixel block as shown, may include a luminance block 660, which may include luminance pixels 662; and two chrominance blocks 670, 680, such as a U or Cb chrominance block 670, and a V or Cr chrominance block 680. The chrominance blocks 670, 680 may include chrominance pixels 690. For example, the luminance block 660 may include 16x 16 luminance pixels 662 and each chrominance block 670, 680 may include 8x8 chrominance pixels 690 as shown. Although one arrangement of blocks is shown, any arrangement may be used. Although FIG. 6 shows NxN blocks, in someimplementations, N*M blocks may be used, wherein N and M are different numbers. For example, 32x64 blocks, 64x32 blocks, 16x32 blocks, 32x 16 blocks, or any other size blocks may be used. In some implementations, Nx2N blocks, 2NxN blocks, or a combination thereof, may be used.
[0073] In some implementations, coding the video frame 600 may include ordered blocklevel coding. Ordered block-level coding may include coding blocks of the video frame 600 in an order, such as raster-scan order, wherein blocks may be identified and processed starting with a block in the upper left corner of the video frame 600, or portion of the video frame 600, and proceeding along rows from left to right and from the top row to the bottom row, identifying each block in turn for processing. For example, the 64x64 block in the top row and left column of the video frame 600 may be the first block coded and the 64x64 block immediately to the right of the first block may be the second block coded. The second row from the top may be the second row coded, such that the 64x64 block in the left column of the second row may be coded after the 64x64 block in the rightmost column of the first row.
[0074] In some implementations, coding a block of the video frame 600 may include using quad-tree coding, which may include coding smaller block units within a block in raster-scan order. For example, the 64x64 block shown in the bottom left corner of the portion of the video frame 600 may be coded using quad-tree coding wherein the top left 32x32 block may be coded, then the top right 32x32 block may be coded, then the bottom left 32x32 block may be coded, and then the bottom right 32x32 block may be coded. Each 32x32 block may be coded using quad-tree coding wherein the top left 16x 16 block may be coded, then the top right 16x 16 block may be coded, then the bottom left 16x 16 block may be coded, and then the bottom right 16x 16 block may be coded. Each 16x 16 block may be coded using quad-tree coding wherein the top left 8x8 block may be coded, then the top right 8x8 block may be coded, then the bottom left 8x8 block may be coded, and then the bottom right 8x8 block may be coded. Each 8x8 block may be coded using quad-tree coding wherein the top left 4x4 block may be coded, then the top right 4x4 block may be coded, then the bottom left 4x4 block may be coded, and then the bottom right 4x4 block may be coded. In some implementations, 8x8 blocks may be omitted for a 16x 16 block, and the 16x 16 block may be coded using quad-tree coding wherein the top left 4x4 block may be coded, then the other 4x4 blocks in the 16x 16 block may be coded in raster-scan order.
[0075] In some implementations, coding the video frame 600 may include encoding the information included in the original version of the image or video frame by, for example, omitting some of the information from that original version of the image or video frame froma corresponding encoded image or encoded video frame. For example, the coding may include reducing spectral redundancy, reducing spatial redundancy, or a combination thereof. Reducing spectral redundancy may include using a color model based on a luminance component (Y) and two chrominance components (U and V or Cb and Cr), which may be referred to as the YUV or YCbCr color model, or color space. Using the YUV color model may include using a relatively large amount of information to represent the luminance component of a portion of the video frame 600, and using a relatively small amount of information to represent each corresponding chrominance component for the portion of the video frame 600. For example, a portion of the video frame 600 may be represented by a high-resolution luminance component, which may include a 16x 16 block of pixels, and by two lower resolution chrominance components, each of which represents the portion of the image as an 8x8 block of pixels. A pixel may indicate a value, for example, a value in the range from 0 to 255, and may be stored or transmitted using, for example, eight bits. Although this disclosure is described in reference to the YUV color model, another color model may be used. Reducing spatial redundancy may include transforming a block into the frequency domain using, for example, a discrete cosine transform. For example, a unit of an encoder may perform a discrete cosine transform using transform coefficient values based on spatial frequency.
[0076] Although described herein with reference to matrix or Cartesian representation of the video frame 600 for clarity, the video frame 600 may be stored, transmitted, processed, or a combination thereof, in a data structure such that pixel values may be efficiently represented for the video frame 600. For example, the video frame 600 may be stored, transmitted, processed, or any combination thereof, in a two-dimensional data structure such as a matrix as shown, or in a one-dimensional data structure, such as a vector array. Furthermore, although described herein as showing a chrominance subsampled image where U and V have half the resolution of Y, the video frame 600 may have different configurations for the color channels thereof. For example, referring still to the YUV color space, full resolution may be used for all color channels of the video frame 600. In another example, a color space other than the YUV color space may be used to represent the resolution of color channels of the video frame 600.
[0077] FIG. 7 is an illustration of a linear motion estimated for a bidirectional interprediction of a current frame 700 and a frame-level non-linear motion offset determined for the current frame 700. The current frame 700 is under prediction during encoding (e.g., at the intra / inter prediction stage 402) or decoding (e.g., at the intra / inter prediction stage 510). Inparticular, one or more blocks of the current frame 700 are being inter-predicted using a backward reference frame 702 and a forward reference frame 704. An estimated linear motion 706 shown in dashed lines represents the linear motion of an object (shown by the black circles) which has been estimated from the backward reference frame 702, through the current frame 700, to the forward reference frame 704. For example, the estimated linear motion 706 may be determined by projecting an existing motion vector to estimate the motion field of blocks in the current frame 700. In another example, the estimated linear motion 706 may correspond to a linear motion vector predictor 708 determined based on a motion search performed with respect to the current frame 700 (e.g., using reconstructed motion vectors of the backward reference frame 702 and the forward reference frame 704). The estimated linear motion 706 is stationary across the current frame 700.
[0078] During motion compensation performed as part of encoding or decoding the current frame 700, the encoder or decoder, as applicable, determines an actual motion 710 of the object, represented as a curved line from the backward reference frame 702, through the current frame 700, to the forward reference frame 704. The encoder or decoder thus determines, via that motion compensation process, that the actual motion 710 is non-linear. As a result, the estimated position of the object within the current frame 700 according to the estimated linear motion 706 is inaccurate; rather, the actual position of the object within the current frame 700 is shown at the black circle depicted along the actual motion 710. The difference between the position of the object according to the estimated linear motion 706 and the position of the object along the actual motion 710 is processed as a motion vector offset 712, which expresses a distance measurement to apply for predicting the motion of the object within the current frame 700. In particular, the motion vector offset 712 is a framelevel non-linear motion offset used for some or all blocks of the current frame 700. As such, rather than determining and using (e.g., by adding to an existing block-level motion vector) individual block-level motion vector offsets for different blocks of the current frame 700, the inter-prediction of the current frame 700 involves the same motion vector offset 712 being applied to some or all of the blocks thereof.
[0079] Further details of techniques for encoding or decoding using a frame-level nonlinear motion offset are now described. FIG. 8 is a flowchart diagram of an example of a technique 800 for encoding a frame using a frame-level non-linear motion offset. FIG. 9 is a flowchart diagram of an example of a technique 900 for decoding an encoded frame using a frame-level non-linear motion offset. The technique 800 may, for example, be wholly or partially performed at a prediction stage of an encoder used to encode a video stream (e.g.,the intra / inter prediction stage 402), while the technique 900 may, for example, be wholly or partially performed at a prediction stage of a decoder used to decode a bitstream (e.g., the intra / inter prediction stage 508).
[0080] The technique 800 and / or the technique 900 can be implemented, for example, as a software program that may be executed by computing devices such as the transmitting station 102 or the receiving station 106. For example, the software program can include machine-readable instructions that may be stored in a memory such as the memory 204 or the secondary storage 214, and that, when executed by a processor, such as the processor 202, may cause the computing device to perform the technique 800 and / or the technique 900. The technique 800 and / or the technique 900 can be implemented using specialized hardware or firmware. For example, a hardware component, such as a hardware coder, may be configured to perform the technique 800 and / or the technique 900. As explained above, some computing devices may have multiple memories or processors, and the operations described in the technique 800 and / or the technique 900 can be distributed using multiple processors, memories, or both. For simplicity of explanation, the technique 800 and the technique 900 are each depicted and described herein as a series of steps or operations. However, the steps or operations in accordance with this disclosure can occur in various orders and / or concurrently. Additionally, other steps or operations not presented and described herein may be used. Furthermore, not all illustrated steps or operations may be required to implement a technique in accordance with the disclosed subject matter.
[0081] Referring first to FIG. 8, the technique 800 for encoding a frame using a framelevel non-linear motion offset is shown. At 802, motion compensation is performed against blocks of a video frame, which may, for example, be the current frame 700, to determine a frame-level non-linear motion offset for the video frame. The frame-level non-linear motion offset, which may, for example, be the motion vector offset 712, is based on a linear motion estimated between the video frame and each of a backward reference frame and a forward reference frame, for example, the estimated linear motion 706.
[0082] Determining the frame-level non-linear motion offset can include determining a non-linear motion of the video frame based on a location of an object associated with the non-linear motion within the video frame. For example, determining the non-linear motion can include performing a frame-level motion search against the entire video frame to identify a single motion vector predicted (i.e., a predicted motion vector) for the entire video frame. The frame-level non-linear motion offset may then be determined based on a difference between an actual motion of the video frame, determined based on the motion compensation,and the predicted motion vector. In another example, determining the non-linear motion can include performing a block-level motion search against individual blocks of the video frame to identify block-level offsets. The block-level offsets may then be processed to determine the frame-level non-linear motion offset. For example, a simple average, weighted average, or mode of the block-level offsets may be computed and used as the frame-level non-linear motion offset. In some such cases, the simple average, weighted average, or mode may consider only those blocks within which a subject object is located.
[0083] At 804, the blocks of the video frame are predicted by applying the frame-level non-linear motion offset to motion vectors determined for the blocks. The motion vectors determined for the blocks are determined as output from the motion compensation performed against the video frame. Applying the frame-level non-linear motion offset to the motion vectors includes adding the frame-level non-linear motion offset, as a motion vector offset value, to each such motion vector. Prediction residuals may then be determined according to the offset-adjusted motion vectors for the blocks of the video frame.
[0084] In some implementations, predicting the blocks of the video frame by applying the frame-level non-linear motion offset to the motion vectors can instead include determining a temporally interpolated picture (TIP) reference frame. A TIP reference frame is a reference frame generated by interpolating reference blocks from the forward reference frame and the backward reference frame. The TIP reference frame may be generated based on a motion field determined according to the frame-level non-linear motion offset, for example, by applying the frame-level non-linear motion offset against an initial motion field determined for the video frame. The updated motion field resulting from that process may then be used to generate the TIP reference frame, which may then be used as a spatially and temporally colocated reference frame to the video frame for predicting the video frame during interprediction.
[0085] At 806, the frame-level non-linear motion offset is encoded to a bitstream. For example, the frame-level non-linear motion offset may be encoded to a frame header of the video frame within the bitstream. In some implementations, an offset-adjusted motion vector for the video frame, resulting from applying the frame-level non-linear motion offset to a predicted motion vector for the video frame, may be signaled within the bitstream in place of the frame-level non-linear motion offset. This would enable use of that offset-adjusted motion vector by a decoder without further decoder-side calculation.
[0086] Referring next to FIG. 9, the technique 900 for decoding an encoded frame using a frame-level non-linear motion offset is shown. At 902, a frame-level non-linear motion offsetfor an encoded video frame, which may, for example, be the current frame 700, is decoded from a bitstream to which the encoded video frame is encoded. For example, the frame-level non-linear motion offset may be decoded from a frame header of the encoded frame within the bitstream.
[0087] At 904, motion compensation is performed against blocks of the encoded video frame. Performing motion compensation against the blocks of the encoded video frame includes applying the frame-level non-linear motion offset to motion vectors determined for the blocks. Applying the frame-level non-linear motion offset to the motion vectors includes adding the frame-level non-linear motion offset, as a motion vector offset value, to a motion vector predicted for the entire encoded frame or to each individual motion vector determined for blocks of the encoded frame. For example, the motion vector(s) may be decoded from the bitstream or computed at the decoder performing the motion compensation. Prediction blocks may then be determined according to the offset-adjusted motion vectors for the blocks of the video frame.
[0088] In some implementations, as with the technique 800, predicting the blocks of the video frame by applying the frame-level non-linear motion offset to the motion vectors can instead include determining a TIP reference frame. The TIP reference frame may be generated based on a motion field determined according to the frame-level non-linear motion offset, for example, by applying the frame-level non-linear motion offset against an initial motion field determined for the video frame. The updated motion field resulting from that process may then be used to generate the TIP reference frame, which may then be used as a spatially and temporally co-located reference frame to the video frame for predicting the video frame during inter-prediction.
[0089] At 906, the encoded video frame is reconstructed into a reconstructed frame based on output of the motion compensation. For example, residual data corresponding to individual blocks of the encoded frame may be reconstructed according to the output of the motion compensation to determine reconstructed blocks, and those reconstructed blocks may then be combined to produce the reconstructed frame.
[0090] At 908, the reconstructed frame is output within an output video stream. For example, the reconstructed frame may be combined with other reconstructed frames produced based on other frame-level non-linear motion offsets and / or independent of same as the output video stream to represent a decoded version of an initial video stream which was encoded into the bitstream. The output video stream may, for example, be output for storage or display.
[0091] The aspects of encoding and decoding described above illustrate some examples of encoding and decoding techniques. However, it is to be understood that encoding and decoding, as those terms are used in the claims, could mean compression, decompression, transformation, or any other processing or change of data.
[0092] The word “example” is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “example” is not necessarily to be construed as being preferred or advantageous over other aspects or designs. Rather, use of the word “example” is intended to present concepts in a concrete fashion. As used in this application, the term “or” is intended to mean an inclusive “or” rather than an exclusive “or.” That is, unless specified otherwise or clearly indicated otherwise by the context, the statement “X includes A or B” is intended to mean any of the natural inclusive permutations thereof. That is, if X includes A; X includes B; or X includes both A and B, then “X includes A or B” is satisfied under any of the foregoing instances. In addition, the articles “a” and “an” as used in this application and the appended claims should generally be construed to mean “one or more,” unless specified otherwise or clearly indicated by the context to be directed to a singular form. Moreover, use of the term “an implementation” or the term “one implementation” throughout this disclosure is not intended to mean the same implementation unless described as such.
[0093] Implementations of the transmitting station 102 and / or the receiving station 106 (and the algorithms, methods, instructions, etc., stored thereon and / or executed thereby, including by the encoder 400 and the decoder 500, or another encoder or decoder as disclosed herein) can be realized in hardware, software, or any combination thereof. The hardware can include, for example, computers, intellectual property (IP) cores, application-specific integrated circuits (ASICs), programmable logic arrays, optical processors, programmable logic controllers, microcode, microcontrollers, servers, microprocessors, digital signal processors, or any other suitable circuit. In the claims, the term “processor” should be understood as encompassing any of the foregoing hardware, either singly or in combination. The terms “signal” and “data” are used interchangeably. Further, portions of the transmitting station 102 and the receiving station 106 do not necessarily have to be implemented in the same manner.
[0094] Further, in one aspect, for example, the transmitting station 102 or the receiving station 106 can be implemented using a general purpose computer or general purpose processor with a computer program that, when executed, carries out any of the respective methods, algorithms, and / or instructions described herein. In addition, or alternatively, forexample, a special purpose computer / processor can be utilized which can contain other hardware for carrying out any of the methods, algorithms, or instructions described herein.
[0095] The transmitting station 102 and the receiving station 106 can, for example, be implemented on computers in a video conferencing system. Alternatively, the transmitting station 102 can be implemented on a server, and the receiving station 106 can be implemented on a device separate from the server, such as a handheld communications device. In this instance, the transmitting station 102 can encode content into an encoded video signal and transmit the encoded video signal to the communications device. In turn, the communications device can then decode the encoded video signal. Alternatively, the communications device can decode content stored locally on the communications device, for example, content that was not transmitted by the transmitting station 102. Other suitable transmitting and receiving implementation schemes are available. For example, the receiving station 106 can be a generally stationary personal computer rather than a portable communications device.
[0096] Further, all or a portion of implementations of this disclosure can take the form of a computer program product accessible from, for example, a computer-usable or computer- readable medium. A computer-usable or computer-readable medium can be any device that can, for example, tangibly contain, store, communicate, or transport the program for use by or in connection with any processor. The medium can be, for example, an electronic, magnetic, optical, electromagnetic, or semiconductor device. Other suitable mediums are also available.
[0097] The above-described implementations and other aspects have been described in order to facilitate easy understanding of this disclosure and do not limit this disclosure. On the contrary, this disclosure is intended to cover various modifications and equivalent arrangements included within the scope of the appended claims, which scope is to be accorded the broadest interpretation as is permitted under the law so as to encompass all such modifications and equivalent arrangements.
Claims
What is claimed is:
1. A method for decoding an encoded video frame using a frame-level non-linear motion offset, the method comprising: decoding, from a bitstream to which the encoded video frame is encoded, a framelevel non-linear motion offset for the encoded video frame; performing motion compensation against blocks of the encoded video frame including applying the frame-level non-linear motion offset to one or more motion vectors determined for the blocks; reconstructing the encoded video frame into a reconstructed frame based on output of the motion compensation; and outputting the reconstructed frame within an output video stream.
2. The method of claim 1, wherein the frame-level non-linear motion offset is determined during an encoding of a current frame as the encoded video frame.
3. The method of claim 2, wherein the frame-level non-linear motion offset is determined based on a linear motion estimated between the current frame and each of a backward reference frame of the current frame and a forward reference frame of the current frame.
4. The method of claim 3, wherein the linear motion is represented by a single motion vector predicted for the current frame and the frame-level non-linear motion offset is determined based on a difference between a non-linear motion of the encoded video frame and the single motion vector.
5. The method of claim 4, wherein the non-linear motion of the encoded video frame is determined based on a location of an object associated with the non-linear motion within the current frame.
6. The method of claim 2, wherein the frame-level non-linear motion offset is determined based on block-level offsets determined for multiple blocks of the current frame.
7. The method of claim 6, wherein the frame-level non-linear motion offset isone of a simple average, a weighted average, or a mode of the block-level offsets.
8. The method of claim 2, wherein decoding the frame-level non-linear motion offset for the encoded video frame comprises: decoding the frame-level non-linear motion offset from a frame header associated with the encoded video frame within the bitstream.
9. The method of any one of claims 1 to 8, wherein performing the motion compensation against the blocks of the encoded video frame including applying the framelevel non-linear motion offset to the one or more motion vectors determined for the blocks comprises: adding the frame-level non-linear motion offset to a single motion vector predicted for all of the encoded video frame.
10. The method of any one of claims 1 to 8, wherein performing the motion compensation against the blocks of the encoded video frame including applying the framelevel non-linear motion offset to the one or more motion vectors determined for the blocks comprises: adding, for each block of the blocks, the frame-level non-linear motion offset to a block-level motion vector determined for the block.
11. The method of any one of claims 1 to 8, wherein performing the motion compensation against the blocks of the encoded video frame including applying the framelevel non-linear motion offset to the one or more motion vectors determined for the blocks comprises: determining an updated motion field for the encoded video frame by applying the frame-level non-linear motion offset against an initial motion field; determining a temporally interpolated picture reference frame based on the updated motion field; and predicting the encoded video frame using the temporally interpolated picture reference frame.
12. A non-transitory computer readable medium having stored thereon an encoded bitstream, wherein the encoded bitstream is configured for decoding by operationscomprising: performing motion compensation against blocks of an encoded video frame by applying a frame-level non-linear motion offset to one or more motion vectors determined for blocks of the encoded video frame; and outputting, for storage or display, a reconstructed frame produced based on output of the motion compensation.
13. The non-transitory computer readable medium of claim 12, wherein the framelevel non-linear motion offset is determined during an encoding of a current frame as the encoded video frame and signaled within the encoded bitstream in a frame header associated with the encoded video frame.
14. The non-transitory computer readable medium of claim 13, wherein the framelevel non-linear motion offset is determined based on a linear motion estimated for the current frame or block-level offsets determined for blocks of the current frame.
15. The non-transitory computer readable medium of any one of claims 12 to 14, wherein the frame-level non-linear motion offset is added to a single motion vector predicted for the encoded video frame to perform the motion compensation.
16. The non-transitory computer readable medium of any one of claims 12 to 14, wherein the frame-level non-linear motion offset is added, for each block of the blocks, to a block-level motion vector determined for the block.
17. A system for decoding an encoded video frame using a frame-level non-linear motion offset, the system comprising: one or more memories; and one or more processors configured to execute instructions stored in the one or more memories to: determine a frame-level non-linear motion offset for the encoded video frame; apply the frame-level non-linear motion offset to one or more motion vectors determined for blocks of the encoded video frame to predict the blocks; reconstruct the encoded video frame into a reconstructed frame based on the prediction of the blocks; andoutput the reconstructed frame.
18. The system of claim 17, wherein the frame-level non-linear motion offset is determined during an encoding of a current frame as the encoded video frame based on a linear motion estimated for the current frame or block-level offsets determined for blocks of the current frame.
19. The system of any one of claims 17 to 18, wherein, to apply the frame-level non-linear motion offset to the one or more motion vectors determined for the blocks of the encoded video frame to predict the blocks, the one or more processors are configured to execute the instructions to: add the frame-level non-linear motion offset to a single motion vector predicted for the encoded video frame.
20. The system of any one of claims 17 to 18, wherein, to apply the frame-level non-linear motion offset to the one or more motion vectors determined for the blocks of the encoded video frame to predict the blocks, the one or more processors are configured to execute the instructions to: add, for each block of the blocks, the frame-level non-linear motion offset to a blocklevel motion vector determined for the block.