Multi-scale optical flow for learned video compression
Multi-scale optical flow technology solves the problem of traditional motion estimation being inaccurate in uncertain scenes through the combination of optical flow and weighted maps, improves the efficiency and accuracy of video coding, and generates video data that is more efficiently stored and transmitted.
Patent Information
- Application Number
- CN202280020968.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-03-19
- Filing Date
- 2022-02-18
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-02-18
AI Technical Summary
Traditional motion estimation technology is inaccurate in uncertain scenes, resulting in low video coding efficiency. Especially in scenes with occlusions or fine detail movement, complex motion estimation and residuals need to be stored, increasing storage and transmission. cost.
Multi-scale optical flow technology is used to dynamically adjust the distortion scale of the reference frame by generating optical flow and weighted maps to more accurately estimate scene movement and generate more effective video compression data.
The accuracy and efficiency of video encoding are improved, the complexity of storage and transmission is reduced, the generated video data is less storage-intensive, and the complexity is reduced when using residuals to correct details.
Smart Images

Figure CN116982311B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to data processing. More specifically, the present application relates to techniques and technologies using multi-scale optical flow for video compression for learning. Background Art
[0002] Data compression is the process of encoding data information using fewer bits than the original representation of the data. Lossless data compression, for example, compresses data by removing redundant information without losing any information from the original data file during the compression process. Lossy data compression techniques can sometimes compress more data than lossless data compression techniques, but lossy data compression techniques lose some information from the original data file. A device that performs data compression is called an encoder. A device that reverses the data compression process (decompression) to recreate the data as closely as possible from the original data file is called a decoder.
[0003] Video compression can compress video based on intra-frame coding, inter-frame coding, or both. Intra-frame coding uses still image compression techniques to compress a single video frame. Inter-frame coding compresses video based on which areas in a video frame change relative to the previous video frame and which areas remain unchanged. Motion estimation is an inter-frame coding technique that can reduce redundancy in the stored portion of video data that appears in multiple frames, but the location of the redundancy varies from frame to frame. Motion estimation can determine the direction and / or distance that a part of a scene moves from one video frame to the next. However, traditional motion estimation techniques may be inaccurate in scenes with uncertainty in motion estimation, such as scenes with occlusions or scenes in which fine details move (e.g., surging smoke). Encoding videos of such scenes typically involves storing both complex motion estimates and complex residuals because the motion estimates are ultimately inaccurate. The storage cost of this complexity is high. Therefore, traditional motion estimation techniques are inefficient in compressing videos of scenes with uncertainty in motion estimates. Summary of the invention
[0004] Systems and techniques for data encoding and / or decoding based on multiscale optical flow are described herein. For example, in multiscale optical flow, an encoding device may apply distortions to a reference frame at a variable scale depending on the uncertainty in the optical flow estimate. In some examples, an encoding device may receive video data including an input frame and a reference frame. For example, the input frame describes a scene at a first time, and the reference frame describes a scene at a second time. The encoding device may generate an optical flow based on the input frame and the reference frame. The optical flow may identify how different areas of the scene move between the reference frame and the input frame. In some aspects, the encoding device may generate the optical flow using a trained neural network. The encoding device may generate a weighted graph based on the input frame and the reference frame. The weighted graph may determine a fine or coarse scale of a reference image, and distort the reference image at the fine or coarse scale to estimate the input image. In some aspects, the encoding device may generate the optical flow using a trained neural network. The encoding device may generate the encoded video data by encoding the video data at least based on the optical flow and the weighted graph. A decoding device may receive the encoded video. The decoding device may generate a reconstructed optical flow based on the encoded video. The reconstructed optical flow may be a reconstructed version of the optical flow generated by the encoding device. The decoding device may generate a reconstructed weighted map from the encoded video. The reconstructed weighted map may be a reconstructed version of the weighted map generated by the encoding device. The decoding device may generate a predicted frame, for example, by warping a reference frame (or a reconstruction of a reference frame) based on the reconstructed optical flow and the reconstructed weighted map. The decoding device may generate a reconstructed input frame based on the predicted frame, and in some examples may also generate a reconstructed input frame based on the reconstructed residual. The reconstructed input frame may be a reconstructed version of the input frame received by the encoding device.
[0005] In one example, an apparatus for data encoding is provided. The apparatus includes a memory and one or more processors (e.g., implemented in a circuit) coupled to the memory. The one or more processors are configured to be capable of: receiving video data, the video data including an input frame describing a scene at a first time and a reference frame describing the scene at a second time; generating an optical flow based on the input frame and the reference frame, the optical flow identifying one or more movements in one or more regions of the scene between the reference frame and the input frame; generating a weighted map based on the reference frame and the input frame; and generating encoded video data at least in part by encoding the video data based on the optical flow and the weighted map.
[0006] In another example, a method of encoding data is provided. The method includes receiving video data, the video data including an input frame describing a scene at a first time and a reference frame describing the scene at a second time. The method includes generating an optical flow based on the input frame and the reference frame, the optical flow identifying one or more movements in one or more regions of the scene between the reference frame and the input frame. The method includes generating a weighted graph based on the reference frame and the input frame. The method includes generating encoded video data at least in part by encoding the video data based on the optical flow and the weighted graph.
[0007] In another example, a non-transitory computer-readable medium is provided having instructions stored thereon that, when executed by one or more processors, cause the one or more processors to: receive video data comprising an input frame describing a scene at a first time and a reference frame describing the scene at a second time; generate an optical flow based on the input frame and the reference frame, the optical flow identifying one or more movements in one or more regions of the scene between the reference frame and the input frame; generate a weighted map based on the reference frame and the input frame; and generate encoded video data by at least in part encoding the video data based on the optical flow and the weighted map.
[0008] In another example, an apparatus for data encoding is provided. The apparatus includes components for receiving video data, the video data including an input frame describing a scene at a first time and a reference frame describing the scene at a second time. The apparatus includes components for generating an optical flow based on the input frame and the reference frame, the optical flow identifying one or more movements in one or more regions of the scene between the reference frame and the input frame. The apparatus includes components for generating a weighted graph based on the reference frame and the input frame. The apparatus includes components for generating encoded video data at least in part by encoding the video data based on the optical flow and the weighted graph.
[0009] In one example, a device for data decoding is provided. The device includes a memory and one or more processors coupled to the memory (e.g., implemented in a circuit). The one or more processors are configured to be able to: receive encoded video data; generate a reconstructed optical flow based on the encoded video data, the reconstructed optical flow identifying one or more movements in one or more regions of a scene between a reference frame and an input frame, the reference frame and the input frame describing scenes at different times; generate a reconstructed weighted map from the encoded video data; generate a predicted frame at least in part by warping the reference frame based on the reconstructed optical flow and the reconstructed weighted map; and generate a reconstructed input frame based on the input frame based on the predicted frame.
[0010] In another example, a method of data decoding is provided. The method includes receiving encoded video data. The method includes generating a reconstructed optical flow from the decoded video data, the reconstructed optical flow identifying one or more movements in one or more areas of a scene between a reference frame and an input frame, the reference frame and the input frame describing the scene at different times. The method includes generating a reconstructed weighted map from the encoded video data. The method includes generating a predicted frame by warping a reference frame at least in part based on the reconstructed optical flow and the reconstructed weighted map. The method includes generating a reconstructed input frame based on the input frame based on the predicted frame.
[0011] In another example, a non-transitory computer-readable medium is provided having instructions stored thereon that, when executed by one or more processors, cause the one or more processors to: receive encoded video data; generate a reconstructed optical flow from the encoded video data, the reconstructed optical flow identifying one or more movements in one or more regions of a scene between a reference frame and an input frame, the reference frame and the input frame describing the scene at different times; generate a reconstructed weighted map from the encoded video data; generate a predicted frame at least in part by warping the reference frame based on the reconstructed optical flow and the reconstructed weighted map; and generate a reconstructed input frame based on the input frame based on the predicted frame.
[0012] In another example, an apparatus for data decoding is provided. The apparatus includes a component for generating a reconstructed optical flow from encoded video data, the reconstructed optical flow identifying one or more movements in one or more regions of a scene between a reference frame and an input frame, the reference frame and the input frame describing scenes at different times. The apparatus includes a component for generating a reconstructed weighted map from the encoded video data. The apparatus includes a component for generating a predicted frame by warping a reference frame at least in part based on the reconstructed optical flow and the reconstructed weighted map. The apparatus includes a component for generating a reconstructed input frame based on the input frame based on the predicted frame.
[0013] In some aspects, the first time is subsequent to the second time. In some aspects, the reference frame is encoded as an intra-coded frame in the encoded video data, wherein the input frame is encoded as an inter-coded frame in the encoded video data.
[0014] In some aspects, the above methods, apparatus, and computer-readable media further include: generating a predicted frame at least in part by warping a reference frame based on optical flow and a weighted map; and generating a residual based on a difference between an input frame and a predicted frame, wherein encoding video data based on the optical flow and the weighted map includes encoding video data based on the residual. In some aspects, warping the reference frame based on the optical flow and the weighted map includes: warping the reference frame based on the optical flow and the weighted map using one or more trained neural networks. In some aspects, warping the reference frame based on the optical flow and the weighted map includes: generating at least a first differential index weighted map and a second differential index weighted map based on the weighted map; generating a first warped frame at least in part by warping the reference frame based on the optical flow; generating a second warped frame at least in part by warping a reduced-scale variant of the reference frame based on a reduced-scale variant of the optical flow; determining a first product of the first warped frame and the first differential index weighted map; determining a second product of the second warped frame and the second differential index weighted map; and determining a sum of the first product and the enlarged-scale variant of the second product.
[0015] In some aspects, the above methods, apparatus, and computer-readable media further include: generating a reconstructed optical flow based on the optical flow; generating a reconstructed weighted map based on the weighted map; generating a predicted frame at least in part by warping a reference frame based on the reconstructed optical flow and the reconstructed weighted map; and generating a residual based on the difference between the input frame and the predicted frame, wherein encoding video data based on the optical flow and the weighted map includes: encoding video data based on the residual. In some aspects, generating a reconstructed optical flow based on the optical flow includes generating a reconstructed optical flow based on the optical flow using an autoencoder. In some aspects, warping a reference frame based on the reconstructed optical flow and the reconstructed weighted map includes: warping the reference frame based on the reconstructed optical flow and the reconstructed weighted map using one or more trained neural networks. In some aspects, warping a reference frame based on a reconstructed optical flow and a reconstructed weighted map includes: generating at least a first differentially indexed weighted map and a second differentially indexed weighted map based on the reconstructed weighted map; generating a first warped frame at least in part by warping the reference frame based on the optical flow; generating a second warped frame at least in part by warping the reference frame based on a scale-reduced variation of the reconstructed optical flow and a scale-reduced variation of the warped reference frame; determining a first product of the first warped frame and the first differentially indexed weighted map; determining a second product of the second warped frame and the second differentially indexed weighted map; and determining a sum of the first product and a size-enlarged variation of the second product.
[0016] In some aspects, the weighted map includes values greater than a threshold for a first region of a reference frame, wherein the weighted map includes values less than the threshold for a second region of the reference frame, wherein the encoded video data includes data corresponding to the first region encoded at a fine level of detail, and wherein the encoded video data includes data corresponding to the second region encoded at a coarse level of detail.
[0017] In some aspects, the optical flow is a two-dimensional optical flow, and the one or more movements are performed along a plane having two perpendicular dimensions. In some aspects, the optical flow identifies a direction of movement and a magnitude of movement for each pixel of an input frame. In some aspects, the optical flow is identified using an optical flow image, wherein the direction of movement is identified based on hue in the optical flow image, and wherein the magnitude of movement is identified based on saturation in the optical flow image.
[0018] In some aspects, generating an optical flow based on the input frame and the reference frame includes: generating the optical flow based on the input frame and the reference frame using one or more trained neural networks. In some aspects, generating a weighted graph based on the reference frame and the input frame includes: generating a weighted graph based on the reference frame and the input frame using one or more trained neural networks.
[0019] In some aspects, the encoded video data may be decoded using a decoder that complies with one or more video decoder standards. In some aspects, encoding the video data based on the optical flow and the weighted map includes compressing the video data based on the optical flow and the weighted map.
[0020] In some aspects, the apparatus described above includes a camera, and the video data is captured by the camera.
[0021] In some aspects, the above methods, apparatus, and computer-readable media further include: generating a reconstructed residual based on the residual from the encoded video data, wherein generating the reconstructed input frame includes: generating the reconstructed input frame based on the predicted frame and the reconstructed residual. In some aspects, the residual is based on the difference between the input frame and the predicted frame. In some aspects, the residual is based on the difference between the input frame and a second predicted frame, wherein the second predicted frame is a variation of a reference frame that is distorted based on an optical flow and a weighted map that has been generated based on the reference frame and the input frame.
[0022] In some aspects, warping a reference frame based on a reconstructed optical flow and a reconstructed weighted map includes: generating at least a first difference-indexed weighted map and a second difference-indexed weighted map based on the reconstructed weighted map; generating a first warped frame at least in part by warping the reference frame based on the reconstructed optical flow; generating a second warped frame at least in part by warping a scale-reduced variant of the reference frame based on a scale-reduced variant of the reconstructed optical flow; determining a first product of the first warped frame and the first difference-indexed weighted map; determining a second product of the second warped frame and the second difference-indexed weighted map; and determining a sum of the first product and the scale-up variant of the second product.
[0023] In some aspects, warping the reference frame based on the reconstructed optical flow and the reconstructed weighted map comprises: warping the reference frame based on the reconstructed optical flow and the reconstructed weighted map using one or more trained neural networks. In some aspects, generating the reconstructed optical flow from the encoded video data comprises: generating the reconstructed optical flow from the encoded video data using one or more trained neural networks. In some aspects, generating the reconstructed weighted map from the encoded video data comprises: generating the reconstructed weighted map from the encoded video data using one or more trained neural networks.
[0024] In some aspects, the device includes a camera, a mobile device, a mobile phone, a smart phone, a mobile phone, a portable gaming device, a wireless communication device, a smart watch, a wearable device, a head-mounted display (HMD), an extended reality device (e.g., a virtual reality (VR) device, an augmented reality (AR) device, or a mixed reality (MR) device), a personal computer, a laptop, a server computer, or other device. In some aspects, one or more processors include an image signal processor (ISP). In some aspects, the device includes a camera or multiple cameras for capturing one or more images. In some aspects, the device includes an image sensor for capturing images. In some aspects, the device also includes a display for displaying an image, one or more notifications (e.g., notifications associated with image processing), and / or other displayable data. In some aspects, the display displays the image after the one or more processors process the image.
[0025] This summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used alone to determine the scope of the claimed subject matter. The subject matter should be understood by reference to appropriate portions of the entire specification of this patent, any or all drawings, and each claim.
[0026] The foregoing and other features and embodiments will become more apparent upon reference to the following description, claims and accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] An illustrative embodiment of the present application is described in detail below with reference to the following figure:
[0028] Figure 1 is a block diagram illustrating an example of a system including an encoding device and a decoding device;
[0029] Figure 2 is a conceptual diagram illustrating encoding and decoding of intra-coded frames of video data;
[0030] Figure 3A is a conceptual diagram illustrating encoding and decoding of inter-coded frames of video data using two-dimensional (2D) optical flow and 2D warping;
[0031] Figure 3B is a conceptual diagram illustrating encoding and decoding of inter-coded frames of video data using two-dimensional (2D) optical flow and 2D warping;
[0032] Figure 4A is a conceptual diagram illustrating encoding and decoding of inter-coded frames of video data using multi-scale (MS) optical flow and MS warping;
[0033] Figure 4B is a conceptual diagram illustrating encoding and decoding of inter-coded frames of video data using multi-scale (MS) optical flow and MS warping;
[0034] Figure 5 is a conceptual diagram illustrating generation of a prediction frame using a scale-reduced variant of a reference frame, optical flow, and a difference-indexed weighted map;
[0035] Figure 6 is a conceptual diagram illustrating differential indexing of a weighted graph;
[0036] Fig. 7A illustrates a scale weight distribution graph for differential indexing of a weighted graph according to some examples;
[0037] Figure 7B illustrates a scale weight distribution graph for differential indexing of a weighted graph according to some examples;
[0038] Figure 8 is a block diagram illustrating an example neural network according to some examples;
[0039] Fig. 9 is a block diagram illustrating an example of a convolutional neural network (CNN) according to some examples;
[0040] Fig. 10A is a conceptual diagram illustrating a multi-scale warping engine that warps a reference frame in a feature domain using one or more autoencoders based on one or more trained neural networks;
[0041] Fig. 10B is a conceptual diagram illustrating a multi-scale warping engine that warps a reference frame in a feature domain and performs residual compensation in the feature domain using one or more autoencoders based on one or more trained neural networks;
[0042] Fig.11A is a flow chart illustrating an example of a data encoding process according to some examples;
[0043] Fig. 11B is a flow chart illustrating an example of a data decoding process according to some examples; and
[0044] Fig.12is a diagram illustrating an example of a system for implementing certain aspects of the present technology. DETAILED DESCRIPTION
[0045] Provided below are specific aspects and embodiments of the present disclosure. Some of these aspects and embodiments may be used independently, and some of these aspects and embodiments may be used in combination, which is apparent to those skilled in the art. In the following description, for ease of explanation, specific details are listed to provide a thorough understanding of the embodiments of this application. However, it is apparent that various embodiments may be implemented without these specific details. These figures and descriptions are not intended to be limiting.
[0046] The following description provides only exemplary embodiments and is not intended to limit the scope, applicability or configuration of the present disclosure. On the contrary, the following description of the exemplary embodiments will provide a favorable illustration of implementing the exemplary embodiments for those skilled in the art. It should be understood that various changes may be made to the functions and arrangements of the elements without departing from the subject matter and scope of the present application as set forth in the appended claims.
[0047] An image capture device (e.g., a camera) is a device that uses an image sensor to receive light and capture image frames (such as still images or video frames). Here, the terms "image", "image frame" and "frame" can be used interchangeably. An image capture device typically includes at least one lens for receiving light from a scene and directing the light to the image sensor of the image capture device. The light received by the lens passes through an aperture controlled by one or more control mechanisms and is received by the image sensor. The one or more control mechanisms can control exposure, focus and / or zoom based on information from the image sensor and / or information from an image processor (e.g., a host or application processing and / or an image signal processor). In some examples, the one or more control mechanisms include a motor or other control mechanism that moves the lens of the image capture device to a target lens position. Video refers to a sequence of continuous images, which can be referred to as a "video frame". Displaying a video refers to displaying video frames of the video in sequence. A video can describe one or more moving objects.
[0048] Data compression is the process of encoding data information using fewer bits than the original representation of the data. Lossless data compression compresses data, for example, by removing redundant information without losing any information from the original data file during the compression process. Lossy data compression techniques can sometimes compress more data than lossless data compression techniques. However, lossy data compression techniques lose some information from the original data file, such as information that the data compression algorithm deems less necessary or important. A device that performs data compression is called an encoder. A device that reverses the data compression process (decompression) to recreate the data as closely as possible from the original data file is called a decoder.
[0049] Video compression can compress video based on intra-frame coding, inter-frame coding, or both. Intra-frame coding, also known as spatial compression, refers to the use of still image compression techniques to compress a single video frame of a video. Inter-frame coding, also known as temporal compression, refers to compressing a video based on image data from multiple video frames in the video. For example, inter-frame coding can be used to identify which areas of a video frame have changed relative to a reference video frame (e.g., the previous video frame) and which areas have remained unchanged.
[0050] Motion estimation is an inter-frame coding technique that reduces redundant storage of image data that matches between video frames but also moves between video frames. Motion estimation can determine a motion vector with a direction and / or distance that a specific part of a scene moves from a first video frame to a second video frame. Optical flow is a form of motion estimation that can provide a motion vector (with direction and / or distance) that describes how a specific pixel moves from a first video frame to a second video frame. Traditional optical flow techniques are called two-dimensional (2D) optical flow because these motion vectors provide directions and / or distances along a 2D planar surface corresponding to the surface of the first video frame and the second video frame. Dense optical flow provides motion vectors for each pixel of a video frame. Sparse optical flow provides motion vectors for a subset of pixels of a video frame, such as pixels representing visual features in a scene (e.g., corners, edges, ridges, and / or blobs). The encoder and / or decoder can predict the second frame based on warping the first frame into a predicted frame using the optical flow between the two frames. The residual can identify the difference or error between the predicted frame and the second frame.
[0051] However, conventional optical flow techniques may be inaccurate in scenes where uncertainty is generated in the optical flow estimate. For example, the optical flow estimate may be inaccurate for scenes that describe an occluder that blocks part of a scene in motion and / or scenes in which fine details move (e.g., smoke, explosions, flames, fireworks, liquids, confetti, dust, rain, bubbles, blur effects, particle effects, or combinations thereof). Encoding a video of a scene with uncertainty in the optical flow estimate may involve generating and storing a complex optical flow. Such a complex optical flow may be computationally expensive to generate, storage intensive when stored, may ultimately be inaccurate, may also be expensive to transmit (e.g., bandwidth costs are high), or a combination of the above factors. Due to the inaccuracy of the optical flow, encoding a video of a scene with uncertainty in the optical flow may also involve the generation and storage of complex residuals. The storage and transmission of complex residuals are also storage intensive. Therefore, the encoded video data may ultimately include both storage intensive complex optical flows and storage intensive complex residuals. Therefore, traditional optical flow techniques may be inefficient in compressing videos of scenes with uncertainty in motion estimation.
[0052] Systems and techniques for performing data encoding based on multiscale optical flow are described herein. In multiscale optical flow, an encoding device receives an input frame and a reference frame and generates an optical flow and a weighted map based on the input frame and the reference frame. Like 2D optical flow, multiscale optical flow can identify motion vectors (with direction and / or distance) that describe how a particular pixel moves from a reference video frame to an input video frame. The encoding device can warp the reference frame based on the optical flow and the weighted map to generate a predicted frame that predicts the input image.
[0053] The weighted map may identify a scale of certainty to uncertainty in the optical flow estimate. Different pixels in the reference image may correspond to different weight values within a predetermined range (e.g., from 0 to 1) in the weighted map. In some examples, lower weight values in the weighted map may correspond to a higher degree of certainty in the optical flow estimate, while higher weight values in the weighted map may correspond to a lower degree of certainty in the optical flow estimate. An exemplary weighted map is shown in FIG. Figure 5 and Figure 6 As shown, black corresponds to a weight value of 0, white corresponds to a weight value of 1, and gray shades between black and white correspond to weight values between 0 and 1.
[0054] The weight map may also identify a fine or coarse scale at which the reference image will be warped to generate a predicted frame that predicts the input image. In some examples, smaller numbers in the weight map correspond to warping the reference image at a finer level of detail (e.g., weighted to a larger scale), while larger numbers in the weight map correspond to warping the reference image using a coarser level of detail (e.g., weighted to a smaller scale). At a finer level of detail, the encoding device may warp the reference frame at its original size or a slightly scaled-down version of the reference frame (e.g., half the original size). At a coarser level of detail, the encoding device may warp a more significantly scaled-down version of the reference frame (e.g., one-quarter of the original size, one-eighth of the original size, one-sixteenth of the original size, one-thirty-second of the original size, one-sixteenth of the original size, one-thirty-fourth of the original size, one-twenty-eighth of the original size, one-twenty-sixteenth of the original size, one-thirty-second of the original size, one-sixty-fourth of the original size, one-twenty-eighth of the original size, one-twenty-sixth of the original size, one-fifth of the original size, one-fifth of the original size, or a size between any two of the foregoing sizes). The warped frame may be upscaled back to the original size of the reference frame and combined with it according to the weights corresponding to the weighted map.
[0055] A prediction frame is generated by warping a reference frame using both an optical flow and a weighted map, which provides a better video compression effect than using only the optical flow without the weighted map. The encoding device warps a first area of the reference frame at a fine detail level, wherein the encoding device has estimated the movement of the first area with a higher degree of certainty. The encoding device warps a second area of the reference frame at a coarse detail level, wherein the encoding device has estimated the movement of the first area with a lower degree of certainty. The encoding device can generate a combined optical flow by combining optical flows of different scales based on a weighted map. The combined optical flow is smoother and less complex than the original optical flow, especially in areas with high uncertainty in the optical flow estimation. Therefore, the combined optical flow is less storage-intensive than the original optical flow when stored. Details can be corrected using residuals. The complexity of the residuals using multi-scale optical flow is similar to that of the residuals using 2D optical flow. As previously described, 2D optical flow can cause inaccuracies in areas with high uncertainty in the optical flow estimation, which requires complex residuals to modify. In some cases, using the residual of multi-scale optical flow can even have reduced complexity compared to using the residual of 2D optical flow. For example, an inaccurate fine estimate may end up causing a distortion error covering a larger area in the image and thus be more complex to modify than a coarser estimate.
[0056] The encoding device may generate encoded video data corresponding to an input frame based on the optical flow and the weighted graph. In some aspects, the encoding device generates optical flow using one or more artificial intelligence (AI) algorithms, one or more trained machine learning (ML) models, one or more trained neural networks (NNs), or a combination thereof. In some aspects, the encoding device generates a weighted graph using one or more artificial intelligence algorithms, one or more trained ML models, one or more trained NNs, or a combination thereof. In some aspects, the encoding device generates a predicted frame based on an optical flow and weighted graph warped reference frame using one or more artificial intelligence algorithms, one or more trained ML models, one or more trained NNs, or a combination thereof.
[0057] The techniques described herein can be applied to existing video codecs (e.g., High Efficiency Video Coding (HEVC), Advanced Video Coding (AVC), or other suitable existing video codecs), and / or can be used as an effective coding tool for any developing video coding standard and / or future video coding standard, such as Versatile Video Coding (VVC), Joint Development Model (JEM), and / or other video coding standards being developed or to be developed.
[0058] Figure 11 is a block diagram illustrating an example of a system 100, which includes an encoding device 104 and a decoding device 112. The encoding device 104 may be part of a source device, and the decoding device 112 may be part of a receiving device. The source device and / or the receiving device may include an electronic device, such as a mobile or fixed telephone handset (e.g., a smart phone, a cellular phone, or a similar device), a desktop computer, a laptop or notebook computer, a tablet computer, a set-top box, a television, a camera, a display device, a digital media player, a video game console, a video streaming device, an Internet Protocol (IP) camera, or any other suitable electronic device. In some examples, the source device and the receiving device include one or more wireless transceivers for wireless communication. The encoding techniques described herein can be applied to video encoding in various multimedia applications, including streaming video transmission (e.g., via the Internet), television broadcasting or transmission, encoding of digital videos stored on data storage media, decoding of digital videos stored on data storage media, or other applications. In some examples, the system 100 may support one-way or two-way video transmission to support applications such as video conferencing, video streaming, video playback, video broadcasting, gaming, and / or video telephony.
[0059] The encoding device 104 (or encoder) can be used to encode video data using a video coding standard or protocol to generate an encoded video bitstream. Examples of video coding standards include ITU-T H.261, ISO / IEC MPEG-1 Visual, ITU-T H.262 or ISO / IEC MPEG-2 Visual, ITU-T H.263, ISO / IEC MPEG-4 Visual, ITU-T H.264 (also known as ISO / IEC MPEG-4 AVC), including its scalable video coding (SVC) and multi-view video coding (MVC) extensions, and high-efficiency video coding (HEVC) or ITU-T H.265. Various extensions of HEVC involve multi-layer video coding, including range and screen content coding extensions, three-dimensional video coding (3D-HEVC) and multi-view extensions (MV-HEVC) and scalable extensions (SHVC). HEVC and its extensions were developed by the Joint Collaboration Team on Video Coding (JCT-VC) and the Joint Collaboration Team on 3D Video Coding Extensions (JCT-3V) of the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Moving Picture Experts Group (MPEG). MPEG and the ITU-T Video Coding Experts Group (VCEG) also formed a Joint Video Development Team (JVET) to develop new coding tools for the next generation of video coding standards. The reference software is called JEM (Joint Development Model). The new video coding standard developed by JVET is called Versatile Video Coding (VVC). VVC may be referred to as H.266, MPEG-I Part 3, or Future Video Coding.
[0060] HEVC was finalized in 2013 by the Joint Collaborative Team on Video Coding (JCT-VC) of the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Moving Picture Experts Group (MPEG). The Joint Video Experts Group (JVET), a collaboration between MPEG and VCEG of ITU-T Study Group 16, finalized the new VVC video coding standard in 2020. VVC offers significant improvements in compression performance over the existing HEVC standard, facilitating the deployment of higher quality video services and emerging applications (e.g., such as 365° immersive multimedia, high dynamic range (HDR) video, among others).
[0061] Many of the embodiments described herein provide examples using the JEM model, VVC, HEVC standards, and / or their extensions. However, as described above, the techniques and systems described herein may also be applicable to other coding standards, such as AVC, MPEG, JPEG (or other still image coding standards), their extensions, or other suitable coding standards that are already available or not yet available or developed. Therefore, although the techniques and systems described herein may refer to a specific video coding standard, those skilled in the art will appreciate that the description should not be interpreted as being applicable only to that specific standard. Similarly, although the specific techniques and systems described herein may be described with reference to video and image encoding and decoding, those skilled in the art will appreciate that the description may also be applicable to data encoding and data decoding of other types of data other than video data and / or image data, such as audio data, text data, or multimedia data.
[0062] refer to Figure 1 , video source 102 may provide video data to encoding device 104. Video source 102 may be part of a source device or may be part of a device other than a source device. Video source 102 may include a video capture device (e.g., a video camera, a camera phone, a video phone, or the like), a video archive including stored video, a video server or content provider providing video data, a video feed interface receiving video from a video server or content provider, a computer graphics system for generating computer graphics video data, a combination of such sources, or any other suitable video source.
[0063] The video data from the video source 102 may include one or more input pictures or frames. A picture or frame is a still image, which in some cases is part of a video. In some examples, the data from the video source 102 may be a still image that is not part of a video. The encoder engine 106 (or encoder) of the encoding device 104 encodes the video data to generate a coded video bitstream. In some examples, the coded video bitstream (or referred to as a "video bitstream" or "bitstream") is a series of one or more coded video sequences. The coded video sequence (CVS) includes a series of access units (AUs), starting from an AU with a random access point picture in the base layer and having specific attributes, until but not including the next AU with a random access point image in the base layer and having specific attributes. For example, the specific attributes of the random access point picture that starts the CVS include a RASL flag equal to 1 (e.g., NoRaslOutputFlag). Otherwise, the random access point picture (RASL flag equal to 0) does not start the CVS. The access unit (AU) includes one or more coded pictures and control information corresponding to the coded pictures that share the same output time. The coded slices of the picture are encapsulated into data units at the bitstream layer, which are called network abstraction layer (NAL) units. For example, the HEVC video bitstream includes one or more CVSs including NAL units. Each NAL unit has a NAL unit header. In one example, the header of H.264 / AVC (except for multi-layer extensions) is one byte, while the header of HEVC is two bytes. The syntax elements in the NAL unit header occupy specified bits and are therefore visible to various systems and transport layers, such as transport streams, real-time transport (RTP) protocols, file formats, etc.
[0064] There are two types of NAL units in the HEVC standard, including video coding layer (VCL) NAL units and non-VCL NAL units. VCL NAL units include a slice or slice segment of coded picture data (described below), while non-VCL NAL units include control information related to one or more coded pictures. In some cases, NAL units can be referred to as packets. HEVC AUs include VCL NAL units containing coded picture data and non-VCL NAL units corresponding to the coded picture data (if any).
[0065] The NAL unit may contain a sequence of bits (e.g., a coded video bitstream, a CVS of a bitstream, etc.) that constitutes a coded representation of video data, such as a coded representation of a picture in a video. The encoder engine 106 generates a coded representation of a picture by dividing each picture into multiple slices. Slices are independent of other slices, so the information in the coded slice does not need to rely on the data of other slices in the same picture. A slice includes one or more slice segments, including independent slice segments and one or more dependent slice segments (if any), and the dependent slice segments depend on the previous slice segments. Then, these slices are divided into coding tree blocks (CTBs) of luminance samples and chrominance samples. The CTB of luminance samples and one or more chrominance samples, and the syntax of the samples are called coding tree units (CTUs). CTU is the basic processing unit of HEVC encoding. CTU can be divided into multiple coding units (CUs) of different sizes. CU contains arrays of luminance and chrominance samples, which are called coding blocks (CBs).
[0066] Luma and chroma CBs can be further divided into prediction blocks (PBs). A PB is a block of samples of a luminance component or a chroma component that uses the same motion parameters for inter-frame prediction or intra-block copy prediction (when available or enabled). A luminance PB and one or more chroma PBs, together with associated syntax, constitute a prediction unit (PU). For inter-frame prediction, a set of motion parameters (e.g., one or more motion vectors, reference indices, or similar parameters) are signaled in the bitstream of each PU and are used for inter-frame prediction of the luminance PB and one or more chroma PBs. Motion parameters may also be referred to as motion information. A CB may also be partitioned into one or more transform blocks (TBs). A TB represents a square block of samples of a color component, on which the same two-dimensional transform is applied to encode the prediction residual signal. A transform unit (TU) represents a TB of luminance and chroma samples and corresponding syntax elements.
[0067] The size of the CU corresponds to the size of the coding mode, and it can be square. For example, the size of the CU can be 8x8 samples, 16x16 samples, 32x32 samples, 64x64 samples, or any other appropriate size until (reaching) the size of the corresponding CTU. The phrase "NxN" used here refers to the pixel dimensions of the video block, in terms of vertical and horizontal dimensions (e.g., 8 pixels x8 pixels). The pixels in the block can be arranged in rows and columns. In some embodiments, the number of pixels in the horizontal direction of the block may have a different number of pixels from the vertical direction. The syntax data associated with the CU can describe, for example, the case where the CU is divided into one or more PUs. The partition mode may differ depending on whether the CU is encoded in an intra-frame prediction mode or in an inter-frame prediction mode. The PU can be divided into a non-square shape. The syntax data associated with the CU can also describe, for example, the CU is divided into one or more TUs according to the CTU. The shape of the TU can be square or non-square.
[0068] According to the HEVC standard, a transform unit (TU) may be used to perform the transform. TUs may be different for different CUs. Based on the size of the PU within a given CU, the size of the TU may be determined. The TU may be the same size or smaller than the PU. In some examples, a quadtree structure called a residual quadtree (RQT) may be used to subdivide the residual samples corresponding to the CU into smaller units. The leaf nodes of the RQT may correspond to the TUs. The pixel difference values associated with the TUs may be transformed to generate transform coefficients. The encoder engine 106 may then quantize the transform coefficients.
[0069] Once the picture of the video data is partitioned into CUs, the encoder engine 106 predicts each PU using a prediction mode. The prediction unit or prediction block is then subtracted from the original video data to obtain a residual (as described below). For each CU, the prediction mode is signaled inside the bitstream using syntax data. The prediction mode may include intra-frame prediction (or intra-picture prediction) or inter-frame prediction (or inter-picture prediction). Intra-frame prediction uses the correlation between spatially adjacent samples in the picture. For example, when intra-frame prediction is used, each PU is predicted from adjacent image data in the same picture, for example, using DC prediction to find an average for the PU, using plane prediction to fit a plane surface for the PU, using directional prediction to extrapolate from adjacent data, or using any other suitable prediction type. Intra-frame prediction uses the temporal correlation between pictures to derive motion compensated predictions for blocks of image samples. For example, when inter-frame prediction is used, each PU is predicted using motion compensated predictions from image data in one or more reference pictures (output order before or after the current picture). For example, it can be decided at the CU level whether to use inter-frame prediction or intra-frame prediction to encode a picture area.
[0070] In some examples, one or more slices of a picture are assigned a slice type. Slice types include I slices, P slices, and B slices. An I slice (intra, independently decodable) is a slice of a picture that is encoded only by intra prediction and is therefore independently decodable because an I slice requires only intra data to predict any prediction unit or prediction block in the slice. A P slice (unidirectionally predicted frame) is a slice of a picture that can be encoded by intra prediction and unidirectional inter prediction. Each prediction unit or prediction block in a P slice can be encoded using intra prediction or inter prediction. When inter prediction is applied, the prediction unit or prediction block is predicted by only one reference picture, so the reference samples come from only one reference region of one frame. A B slice (bidirectionally predicted frame) is a slice of a picture that can be encoded by intra prediction and inter prediction (e.g., bidirectional prediction or unidirectional prediction). The prediction unit or prediction block of a B slice can be bidirectionally predicted from two reference pictures, where each picture contributes to a reference region, and the sample sets of the two reference regions are weighted (e.g., equal weight or different weights) to generate a prediction signal for a bidirectionally predicted block. As described above, the slices of a picture are encoded independently. In some cases, a picture may be encoded as only one slice. A picture encoded as an I slice may be referred to as an I frame. A picture including an I slice may be referred to as an I frame. A picture encoded as a P slice may be referred to as a P frame. A picture including a P slice may be referred to as a P frame. A picture encoded as a B slice may be referred to as a B frame. A picture including a B slice may be referred to as a B frame.
[0071] As described above, intra-picture prediction uses the correlation between spatially adjacent samples in a picture. Inter-picture prediction uses the temporal correlation between images to derive motion compensated predictions of image sample blocks. Using the translational motion model, the block position in the previous decoded picture (reference picture) is indicated by a motion vector (Δx, Δy), where Δx specifies the horizontal distance of the reference block relative to the current block position and Δy specifies the vertical distance of the reference block relative to the current block position. In some cases, the motion vector (Δx, Δy) may be integer sample precision (also referred to as integer precision), in which case the motion vector points to an integer pixel grid (or integer pixel sample grid) of the reference frame. In some cases, the motion vector (Δx, Δy) may be fractional sample precision (also referred to as fractional pixel precision or non-integer precision) to more accurately capture the movement of the underlying object without being limited to the integer pixel grid of the reference frame. The precision of the motion vector may be represented by the quantization level of the motion vector. For example, the quantization level may be integer precision (e.g., 1 pixel) or fractional pixel precision (e.g., 1 / 4 pixel, 1 / 2 pixel, or other sub-pixel value). When the corresponding motion vector has fractional sample precision, interpolation can be applied to the reference picture to derive the prediction signal. For example, the samples available at integer positions can be filtered (e.g., using one or more interpolation filters) to estimate the values at fractional positions. The previously decoded reference picture is indicated by a reference index (refIdx) of the reference picture list. The motion vector and the reference index may be referred to as motion parameters. Two types of inter-picture prediction may be performed, including unidirectional prediction and bidirectional prediction.
[0072] When using bidirectional prediction for inter-frame prediction, two sets of motion parameters (Δx0, y0, refIdx0 and Δx1, y1, refIdx1) are used to generate two motion compensated predictions (from the same reference picture or possibly from different reference pictures). For example, when using bidirectional prediction, two motion compensated prediction signals are used for each prediction block, and B prediction units are generated. The two motion compensated prediction signals are then combined to obtain the final motion compensated prediction signal. For example, the two motion compensated prediction signals can be combined by averaging. In another example, weighted prediction can be used, in which case different weights can be applied to each motion compensated prediction. The reference pictures that can be used for bidirectional prediction are stored in two separate lists, denoted as List 0 and List 1. The motion parameters can be derived using a motion estimation process at the encoder.
[0073] When using inter prediction with unidirectional prediction, a set of motion parameters (Δx0, y0, refIdx0) is used to generate motion compensated prediction from the reference picture. For example, when using unidirectional prediction, each prediction block uses at most one motion compensated prediction signal and generates P prediction units.
[0074] The PU may include data related to the prediction process (e.g., motion parameters or other suitable data). For example, when the PU is encoded using intra prediction, the PU may include data describing the intra prediction mode of the PU. For another example, when the PU is encoded using inter prediction, the PU may include data defining the motion vector of the PU. For example, the data defining the motion vector of the PU may describe the horizontal component of the motion vector (Δx), the vertical component of the motion vector (Δy), the resolution of the motion vector (e.g., integer precision, quarter-pixel precision, or eighth-pixel precision), the reference picture pointed to by the motion vector, the reference index, the reference picture list of the motion vector (e.g., List 0, List 1, or List C), or any combination thereof.
[0075] The encoding device 104 may then perform a transform and quantization. For example, after prediction, the encoder engine 106 may calculate a residual value corresponding to the PU. The residual value may include a pixel difference between the current pixel block being encoded (the PU) and a prediction block used to predict the current block (e.g., a predicted version of the current block). For example, after generating a prediction block (e.g., using inter-frame prediction or intra-frame prediction), the encoder engine 106 may generate a residual block by subtracting the prediction block generated by the prediction unit from the current block. The residual block includes a set of pixel difference values for quantizing the difference between the pixel values of the current block and the pixel values of the prediction block. In some examples, the residual block may be represented in a two-dimensional block format (e.g., a two-dimensional matrix or array of pixel values). In these examples, the residual block is a two-dimensional representation of pixel values.
[0076] Any residual data that may remain after performing the prediction is transformed using a block transform, which may be based on a discrete cosine transform, a discrete sine transform, an integer transform, a wavelet transform, other suitable transform functions, or any combination thereof. In some cases, one or more block transforms (e.g., 32x32, 16x16, 8x8, 4x4, or other suitable sizes) may be applied to the residual data in each CU. In some embodiments, a TU may be used for a transform and quantization process implemented by the encoder engine 106. A given CU with one or more PUs may also include one or more TUs. As will be described in further detail below, the residual values may be transformed into transform coefficients using a block transform, which may then be quantized and scanned using a TU to generate serialized transform coefficients for entropy coding.
[0077] In some embodiments, after intra-frame prediction or inter-frame prediction coding using the PU of the CU, the encoder engine 106 can calculate the residual data of the TU of the CU. The PU may include pixel data in the spatial domain (or pixel domain). The TU may include coefficients in the transform domain after applying the block transform. As described above, the residual data may correspond to the pixel difference between the pixel of the uncoded picture and the predicted value corresponding to the PU. The encoder engine 106 may form a TU including the residual data of the CU, and then transform the TU to generate the transform coefficients of the CU.
[0078] The encoder engine 106 may perform quantization on the transform coefficients. Quantization provides further compression by quantizing the transform coefficients to reduce the amount of data used to represent the coefficients. For example, quantization may reduce the bit depth associated with some or all of the coefficients. In one example, a coefficient having an n-bit value may be rounded to an m-bit value during quantization, where n is greater than m.
[0079] Once quantization is performed, the encoded video bitstream includes quantized transform coefficients, prediction information (e.g., prediction mode, motion vector, block vector or similar information), segmentation information and any other suitable data, such as other syntax data. The encoder engine 106 can then entropy encode different elements of the encoded video bitstream. In some examples, the encoder engine 106 can scan the quantized transform coefficients using a predefined scan order to generate a serialized vector that can be entropy encoded. In some examples, the encoder engine 106 can perform adaptive scanning. After scanning the quantized transform coefficients to form a vector (e.g., a one-dimensional vector), the encoder engine 106 can entropy encode the vector. For example, the encoder engine 106 can use context-adaptive variable length coding, context-adaptive binary arithmetic coding, grammar-based context-adaptive binary arithmetic coding, probability interval segmentation entropy coding, or other suitable entropy coding techniques.
[0080] The output 110 of the encoding device 104 may send the NAL units constituting the encoded video bitstream data to the decoding device 112 of the receiving device via a communication link 120. The input 114 of the decoding device 112 may receive the NAL units. The communication link 120 may include a channel provided by a wireless network, a wired network, or a combination of wired and wireless networks. The wireless network may include any wireless interface or combination of wireless interfaces and may include any suitable wireless network (e.g., the Internet or other wide area network, a packet-based network, a WiFi, or a wireless network). TM , Radio Frequency (RF), UWB, Direct Wi-Fi, Cellular, Long Term Evolution (LTE), WiMax TMor similar networks). The wired network may include any wired interface (e.g., optical fiber, Ethernet, wire Ethernet, coaxial cable Ethernet, digital signal line (DSL) or similar interfaces). Wired and / or wireless networks may be implemented using various devices, such as base stations, routers, access points, bridges, gateways, switches or similar devices. The encoded video bitstream data may be modulated according to a communication standard (such as a wireless communication protocol) and transmitted to a receiving device.
[0081] In some examples, encoding device 104 may store the encoded video bitstream data in memory 108. Output 110 may retrieve the encoded video bitstream data from encoder engine 106 or memory 108. Memory 108 may include any of a variety of distributed or locally accessed data storage media. For example, memory 108 may include a hard drive, a storage optical disk, flash memory, volatile or non-volatile memory, or any other digital storage medium suitable for storing encoded video data.
[0082] The input 114 of the decoding device 112 receives the encoded video bitstream data, and the video bitstream data can be provided to the decoding engine 116, or to the storage 118, for subsequent use by the decoding engine 116. The decoder engine 116 can decode the encoded video bitstream data by entropy decoding (e.g., using an entropy decoder) and extract the elements of one or more encoded video sequences that constitute the encoded video data. The decoder engine 116 can then rescale the encoded video bitstream data and perform an inverse transform. The residual data is then transmitted to the prediction stage of the decoder engine 116. The decoder engine 116 then predicts the pixel block (e.g., PU). In some examples, the prediction is added to the output of the inverse transform (residual data).
[0083] The decoding device 112 may output the decoded video to a video destination device 122, which may include a display or other output device for displaying the decoded video data to a content consumer. In some aspects, the video destination device 122 may be part of a receiving device that includes the decoding device 112. In some aspects, the video destination device 122 may be part of a separate device from the receiving device.
[0084] In some embodiments, the video encoding device 104 and / or the video decoding device 112 can be integrated with the audio encoding device and the audio decoding device, respectively. The video encoding device 104 and / or the video decoding device 112 may also include other hardware or software required to implement the above-mentioned coding technology, such as one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. The video encoding device 104 and the video decoding device 112 can be integrated into the corresponding device as part of a combined encoder / decoder (codec). In some cases, the encoding device 104 can perform the functions discussed herein performed by the decoding device 112, and vice versa.
[0085] Figure 1 The example system shown is an illustrative example that can be used for encoding and / or decoding data. The technology of processing video data using the technology described herein can be performed by any digital video encoding and / or decoding device. Although the technology of the present disclosure is usually performed by a video encoding device or a video decoding device, these technologies can also be performed by a combined video encoder-decoder (commonly referred to as "CODEC"). In addition, the technology of the present disclosure can also be performed by a video preprocessor. The source device and the receiving device are only examples of such encoding devices, wherein the source device generates encoded video data for transmission to the receiving device. In some examples, the source device and the receiving device can operate in a substantially symmetrical manner so that each device includes a video encoding and decoding component. Therefore, the example system can support one-way or two-way video transmission between video devices, for example, for video streaming, video playback, video broadcasting or video telephony.
[0086] In some cases, data may be encoded and / or decoded using a machine learning based system (e.g., using one or more neural networks). Figure 2 2 is a conceptual diagram 200 illustrating encoding and decoding of intra-coded frames (also referred to as I-frames) of video data. A codec system 295 having an auto-encoder 260 is shown. The auto-encoder 260 receives an input frame 220 (v). The auto-encoder 260 includes an encoder 250 and a decoder 255. The encoder 250 may encode the input frame 220 (v) to generate encoded frame data 285 (v). e The decoder 255 may decode the encoded frame data 285 (v e ) is decoded to generate the reconstructed input frame Reconstructed input frame is a reconstructed and / or decoded version of the input frame 220 ( v ).
[0087] Figure 2 The encoded frame data 285 (v e ) is an intra-frame coded frame of video data, which may also be referred to as an I frame or an intra-frame coded frame. e ) is used herein to refer to encoded data that has been encoded by an encoder, such as encoder 250. Intra-frame coding, also known as spatial compression, refers to the use of still image compression techniques to compress individual video frames in a video. As an I-frame, the encoded frame data 285 (v e ) stores frame data, through which the decoder 255 can reconstruct the entire input frame 220 (v) into a reconstructed input frame The encoder 250 may use intra-frame coding to generate the encoded frame data 285 (v e In some examples, encoder 250 may use one or more artificial intelligence algorithms, one or more trained ML models, and / or one or more trained NNs to encode encoded frame data 285 (v) based on input frame 220 (v). e ) is encoded. In some examples, the encoded frame data 285 (v e ) may be a latent space representation of the input frame 220 (v). In some examples, the decoder 255 may use one or more artificial intelligence algorithms, one or more trained ML models, and / or one or more trained NNs to decode the encoded frame data 285 (v) based on the encoded frame data 285 (v). e ) Reconstruct the reconstructed input frame
[0088] In some examples, encoder 250 generates encoded frame data 285 (v e ). The encoder 250 generates the encoded frame data 285 (v e ), the reconstructed input frame The encoder 250 may be the same as the input frame 220 (v). In some examples, the encoder 250 generates the encoded frame data 285 (v) using lossy compression. e ). The encoder 250 uses lossy compression to generate the encoded frame data 285 (v e ), the reconstructed input frame The encoder 250 generates the encoded frame data 285 (v) using lossy compression. e ), the reconstructed input frame Some differences compared to the input frame 220(v) may be included. Here, the upper cusps on the letters (such as the reconstructed input frame To refer to reconstructed data that has been decoded and / or reconstructed with the help of a decoder (such as decoder 255).
[0089] In some examples, the encoder 250 includes a transform encoder that performs transform coding on the input frame 220 (v) and / or on blocks thereof. In some examples, the transform coding may include a discrete cosine transform (DCT), a modified discrete cosine transform (MDCT), a discrete sine transform (DST), a fast Fourier transform (FFT), a wavelet transform, or a combination thereof. In some examples, the encoder 250 includes a quantizer that performs quantization on the input frame 220 (v) and / or on blocks thereof, in some cases, after transform coding. The degree of quantization performed by the quantizer of the encoder 250 during the quantization process can be based on a quantization parameter (QP) and can be modified by adjusting the QP. The QP can indicate the quantization step size of the input frame 220 (v) during quantization and can control how much spatial detail is retained from the captured image after quantization. In some examples, the encoder 250 includes an entropy encoder that performs entropy coding after transform coding and / or quantization in some cases. Entropy coding may include, for example, context-adaptive binary arithmetic coding (CABAC), arithmetic coding, Golomb coding, Huffman coding, range coding, Shannon coding, Shannon-Fano coding, Shannon-Fano-Elias coding, Tunstall coding, unary coding, universal coding, or a combination thereof.
[0090] In some examples, decoder 255 includes processing of encoded frame data 285 (v e ) and / or its block performs inverse quantization. In some examples, the decoder 255 includes an inverse transform encoder that performs inverse quantization on the encoded frame data 285 (v e ) and / or perform an inverse transform on a block thereof, in some cases performing an inverse transform after inverse quantization.
[0091] Figure 3A 3 is a conceptual diagram 300 showing encoding and decoding of inter-coded frames of video data using two-dimensional (2D) optical flow and 2D warping. The diagram shows a codec system 395A having a Warp2D engine 310A, an OptFlow2D engine 325, and an auto encoder 360. The auto encoder 360 includes an encoder 350 and a decoder 355. The codec system 395A receives a reference frame and input frame 320(v). The codec system 395A may generate and / or output encoded frame data 385(v) encoding data corresponding to the input frame 320(v). e ). Figure 3A The encoded frame data 385 (v e) is an inter-coded frame. Inter-coding, also known as temporal compression, refers to compressing frames in a video by referencing redundancy from one or more other frames in the video. Inter-coded frames may be referred to as P frames, predicted frames, B frames, bidirectionally predicted frames, or combinations thereof. In the coded frame data 385 (v e ), by referring to at least one of the reference frames in the input frame 320(v) The codec system 395A may encode and / or compress the input frame 320(v) based on the redundancy of the reference frame. The data in the coded frame data 385 (v e ) to decode the encoded frame data 385 (v e ) to generate the reconstructed input frame
[0092] In some examples, the reference frame The reference frame 320(v) describes a scene at a first time, while the input frame 320(v) describes the same scene at a second time. The first time may be before the second time, in which case the reference frame is arranged before the input frame 320(v) in the video. The first time may be after the second time, in which case the reference frame is arranged after the input frame 320(v) in the video. It can be an intra-coded frame. As shown by the arrow symbol above, the reference frame It may be a reconstructed frame such as Figure 2 The reconstructed input frame in
[0093] The OptFlow2D engine 325 receives the reference frame and input frame 320(v). The OptFlow2D engine 325 is based on the reference frame and input frame 320(v), generating 2D optical flow 330(f 2D The OptFlow2D engine 325 may include, and / or may use, one or more artificial intelligence algorithms, one or more trained ML models, one or more trained NNs, or a combination thereof, to generate the 2D optical flow 330 (f 2D ). The OptFlow2D engine 325 can use Figure 8 NN 800 neural network (NN), such as Fig. 9The convolutional neural network (CNN) of the CNN 900, a deep CNN, a NN with a fully connected layer, a CNN with a fully connected layer, a deep CNN with a fully connected layer, other types of NNs or a combination thereof. The OptFlow2D engine 325 can use FlowNet 1.0, FlowNet 2.0, FlowNetSimple, FlowNetCorr, FlowNetS, FlowNetLite, other optical flow estimation methods or a combination thereof.
[0094] The OptFlow2D engine 325 references the frame The OptFlow2D engine 325 can identify the reference frame The OptFlow2D engine 325 can identify moving regions that have not changed between the reference frame 320(v). and input frame 320(v), but in reference frame Move between input frame 320(v).
[0095] In one illustrative example, the reference frame and input frame 320(v) may describe a scene of a person walking in front of a fixed and unchanging background. In this illustrative example, the OptFlow2D engine 325 may identify the reference frame and the description of the fixed and unchanging background in the input frame 320 (v) represent the unchanging area. In this example, the OptFlow2D engine 325 can identify the reference frame And the character description in the input frame 320(v) represents the moving area.
[0096] The 2D optical flow 330 (f 2D ) can identify the reference frame In some examples, 2D optical flow 330 (f 2D ) can be a reference frame Each pixel in the reference frame identifies a motion vector. Each motion vector can determine the element described by the pixel in the reference frame. The direction and / or distance of movement between the input frame 320(v). The direction can be along the reference frame The distance can be along the reference frame The distance of the 2D image plane can be a linear distance, a Euclidean distance, or a combination thereof. The 2D image plane can have two vertical dimensions. In some examples, the two vertical dimensions are referred to as the horizontal dimension (x) and the vertical dimension (y). The distance can be referred to as the magnitude of the motion vector. In the unchanged area, the 2D optical flow 330 (f 2D ) can identify distance or amplitude as zero.
[0097] Dense optical flow provides motion vectors for each pixel in a video frame. 2D optical flow 330 (f 2D ) may be dense optical flow. Sparse optical flow provides motion vectors for a subset of pixels in a video frame, such as pixels representing visual features in a scene (e.g., corners, edges, ridges, and / or spheres). 2D optical flow 330 (f 2D ) can be sparse optical flow.
[0098] In some examples, 2D optical flow 330 (f 2D ) is generated as an optical flow image by the OptFlow2D engine 325. In some examples, the optical flow image identifies the reference frame based on the hue of the corresponding pixels in the optical flow image. In some examples, the optical flow image identifies the reference frame based on the saturation or chromaticity of the corresponding pixel in the optical flow image. In one illustrative example, cyan represents the left direction, blue represents the diagonal upper left direction, purple represents the upper direction, magenta represents the diagonal upper right direction, red represents the right direction, orange represents the diagonal lower right direction, yellow represents the lower direction, green represents the diagonal lower left direction, and any color between any two of the listed colors represents the direction between the two directions corresponding to the two colors. In one illustrative example, white represents a motion vector magnitude of zero, and higher saturation or chroma values represent larger motion vector magnitudes. An example of an optical flow image using this hue and saturation encoding scheme is illustrated as Figure 5 2D stream 515 in.
[0099] The encoder 350 of the autoencoder 360 of the codec system 395A may generate the 2D optical flow 330 (f 2D ) is encoded to generate the encoded 2D optical flow (f 2D_e ), the 2D optical flow may be the encoded frame data 385 (v e ). The decoder 355 of the autoencoder 360 of the codec system 395A may decode the encoded 2D optical flow (f 2D_e ) is decoded or reconstructed to generate a reconstructed 2D optical flow The decoder 355 can convert the reconstructed 2D optical flow Passed to the Warp2D engine 310A of the codec system 395A.
[0100] The Warp2D engine 310A of the codec system 395A may receive a reference frame and the reconstructed 2D optical flow The Warp2D engine 310A of the codec system 395A can generate a 2D optical flow image based on the reconstructed 2D optical flow. The motion vector in the reference frame Warp and generate prediction frame Predicted Frame Represents the reconstructed 2D optical flow Prediction of the input frame 320(v). For example, the reconstructed 2D optical flow The unchanged areas (e.g., areas with zero amplitude) in the predicted frame In the reference frame Based on the reconstructed 2D optical flow The direction and magnitude of the corresponding motion vector in the reconstructed 2D optical flow The moving regions in the reference frame (i.e., regions with non-zero amplitude) are separated from their The positions in the predicted frame are moved to their The new position in the prediction frame is ) refers to the prediction data generated by the Warp engine (such as the Warp2D engine 310A) by warping the reference data according to the optical flow. The Warp2D engine 310A can Passed to subtractor 365 of codec system 395A and / or adder 375 of codec system 395A.
[0101] The subtractor 365 of the codec system 395A may receive the predicted frame and input frame 320(v). The subtractor 365 of the codec system 395A may be configured to subtract the predicted frame from the input frame 320(v). to generate a residual 340(r), and vice versa. The residual can identify the difference or error between the two frames. Thus, the residual 340(r) can identify the difference between the input frame 320(v) and the predicted frame The encoder 350 of the autoencoder 360 of the codec system 395A may encode the residual 340(r) generated by the subtractor 365 to generate an encoded residual (re e ), the residual may be the coded frame data 385 (v e). The decoder 355 of the autoencoder 360 of the codec system 395A may process the encoded residual (r e ) is decoded or reconstructed to generate a reconstructed residual The decoder 355 can convert the reconstructed residual Passed to adder 375 of codec system 395A.
[0102] The adder 375 of the codec system 395A may receive the predicted frame and the reconstructed residual The adder 375 of the codec system 395A can be configured to generate the reconstructed residual With predicted frame Add to generate the reconstructed input frame The reconstructed input frame is the coded frame data 385 (v e ) that attempts to reconstruct the input frame 320(v) as closely as possible.
[0103] In some examples, encoder 350 uses lossless compression to generate encoded frame data 385 (v e ). The encoder 350 generates encoded frame data 385 (v e ), the reconstructed input frame It can include all video data of the input frame 320 (v), the reconstructed 2D optical flow It may include 2D optical flow 330 (f 2D ) and / or the reconstructed residual All residual data of the residual 340 (r) may be included. The encoder 350 generates the encoded frame data 385 (v) using lossy compression. e ), the reconstructed input frame May include video data similar to input frame 320(v), reconstructed 2D optical flow may include 2D optical flow 330 (f 2D ) similar optical flow data, and / or reconstructed residuals Residual data similar to residual 340(r) may be included. At encoder 350, encoded frame data 385(v) is generated using lossy compression. e ), the reconstructed input frame may include one or more video data differences compared to the video data of the input frame 320(v), the reconstructed 2D optical flow may include 2D optical flow 330 (f 2D) compared with one or more optical flow data differences, and / or the reconstructed residual One or more residual data differences may be included to which the residual 340(r) is compared.
[0104] In some examples, the encoder 350 includes a transform encoder that performs transform coding on the input frame 320 (v) and / or its blocks. In some examples, the transform coding can be based on the residual 340 (r) in addition to the input frame 320 (v). In some examples, the transform coding can include a discrete cosine transform (DCT), a modified discrete cosine transform (MDCT), a discrete sine transform (DST), a fast Fourier transform (FFT), a wavelet transform, or a combination thereof. In some examples, the encoder 350 includes a quantizer that quantizes the input frame 320 (v) and / or its blocks, in some cases after transform coding. The degree of quantization performed by the quantizer of the encoder 350 during the quantization process can be based on a quantization parameter (QP) and can be modified by adjusting the QP. The QP can indicate the quantization step size of the input frame 320 (v) during quantization and can control how much spatial detail is retained from the captured image after quantization. In some examples, the encoder 350 includes an entropy encoder, in some cases after transform coding and / or quantization. Entropy coding may include, for example, context adaptive binary arithmetic coding (CABAC), arithmetic coding, Golomb coding, Huffman coding, range coding, Shannon coding, Shannon-Fano coding, Shannon-Fano-Elias coding, Tunstall coding, unit coding, universal coding, or a combination thereof.
[0105] In some examples, decoder 355 includes an inverse quantizer that performs an inverse quantization on the encoded frame data 385 (v e ) and / or its blocks. In some examples, the decoder 355 includes a decoder 355 for the encoded frame data 385 (v e ) and / or an inverse transform encoder that performs an inverse transform on its blocks, which in some cases performs an inverse transform after inverse quantization.
[0106] In some examples, the autoencoder 360 of the codec system 395A can be divided into two or more autoencoders. In one illustrative example, the autoencoder 360 of the codec system 395A can include a first autoencoder and a second autoencoder. The first autoencoder receives the 2D optical flow 330 (f 2D ), and output the reconstructed 2D optical flow The encoder of the first autoencoder may output encoded frame data 385 (v e ). The second autoencoder receives the residual 340(r) and outputs a reconstructed residual The encoder of the second autoencoder may output the encoded frame data 385 (v e )
[0107] Figure 3B 390 is a conceptual diagram illustrating encoding and decoding of inter-coded frames of video data using two-dimensional (2D) optical flow and 2D warping. A codec system 395B having a Warp2D engine 310B, a Warp2D engine 310C, an OptFlow2D engine 325, and an autoencoder 360 is shown. Figure 3B The codec system 395B is similar to Figure 3A The codec system 395A includes the Warp2D engine 310B and the Warp2D engine 310C instead of Figure 3A The Warp2D engine 310A of the codec system 395A.
[0108] The Warp2D engine 310C of the codec system 395B may receive a reference frame and 2D optical flow 330(f 2D ). The Warp2D engine 310C of the codec system 395B can be based on the optical flow 330 (f 2D ) in the motion vector, distorting the reference frame To generate the predicted frame Predicted Frame Represents the optical flow 330(f 2D ) for the prediction of the input frame 320(v). Figure 3B The predicted frame Possibly Figure 3A The predicted frame Different because Figure 3B The predicted frame is to use optical flow 330(f 2D ) is generated, and Figure 3A The predicted frame is to use the reconstructed 2D optical flow The Warp2D engine 310C can generate the predicted frame The subtractor 365 of the codec system 395B may receive the predicted frame. and input frame 320(v). The subtractor 365 of the codec system 395B may be configured to subtract the predicted frame from the input frame 320(v). to generate the residual 340(r), and vice versa. Figure 3B The predicted frame May be different from Figure 3A The predicted frame therefore Figure 3BThe residual 340(r) may also be different from Figure 3A The residual is 340(r).
[0109] The Warp2D engine 310B of the codec system 395B may receive a reference frame and the reconstructed 2D optical flow It is more similar to the Warp2D engine 310A of the codec system 395A. The Warp2D engine 310B of the codec system 395B can be based on the reconstructed 2D optical flow The motion vectors in the distorted reference frame To generate the predicted frame Predicted Frame Represents the reconstructed 2D optical flow The prediction of the input frame 320 (v). Can be different from the predicted frame Because the predicted frame is to use the reconstructed 2D optical flow Generated, while the predicted frame is to use optical flow 330(f 2D ) generated. The Warp2D engine 310B can generate the predicted frame Passed to the adder 375 of the codec system 395B. The adder 375 of the codec system 395B can receive the predicted frame and the reconstructed residual The adder 375 of the codec system 395B can be configured to generate the reconstructed residual With predicted frame Add together to generate the reconstructed input frame The reconstructed input frame is the coded frame data 385 (v e ), which attempts to reconstruct the input frame 320(v) as closely as possible. In some examples, Warp2D engine 410C may be used instead of Warp2D engine 410B, thereby converting the predicted frame (Based on 2D optical flow 330f 2D ) is sent to adder 475 instead of the predicted frame (Based on the reconstructed 2D optical flow ) is sent to adder 475.
[0110] In some examples, the autoencoder 360 of the codec system 395B can be divided into two or more autoencoders. In an illustrative example, the autoencoder 360 of the codec system 395A can include a first autoencoder and a second autoencoder. The first autoencoder receives the 2D optical flow 330 (f2D ), and output the reconstructed 2D optical flow The encoder of the first autoencoder may output encoded frame data 385 (v e ). The second autoencoder receives the residual 340(r) and outputs a reconstructed residual The encoder of the second autoencoder may output the encoded frame data 385 (v e )
[0111] Figure 4A 4 is a conceptual diagram 400 illustrating encoding and decoding of inter-coded frames of video data using multi-scale (MS) optical flow and MS warping. A codec system 495A is shown having a WarpMS engine 410A, an OptFlowMS engine 425, and an auto-encoder 460. The auto-encoder 460 includes an encoder 450 and a decoder 455. Figure 4A The codec system 495A includes Figure 3A The codec system 395A has a similar structure, but the Warp2D engine 310A is replaced by the WarpMS engine 410A, and the OptFlow2D engine 325 is replaced by the OptFlowMS engine 425.
[0112] Codec system 495A receives reference frame and input frame 420(v). Like input frame 320(v), reference frame and input frame 420(v) may describe the same scene at different times. Can be an intra-coded frame.
[0113] The OptFlowMS engine 425 receives the reference frame and input frame 420(v). The OptFlowMS engine 425 is based on the reference frame and the input frame 420(v) to generate the MS optical flow 430(f MS The OptFlowMS engine 425 may include and / or may use one or more artificial intelligence algorithms, one or more trained ML models, one or more trained NNs, or a combination thereof to generate the MS optical flow 430 (f MS ). The OptFlowMS engine 425 may use, for example, Figure 8 NN 800 neural network (NN), such as Fig. 9 The CNN 900 may include a convolutional neural network (CNN), a deep CNN, a NN with fully connected layers, a CNN with fully connected layers, a deep CNN with fully connected layers, other types of NNs, or a combination thereof.
[0114] To generate the MS optical flow 430 (f MS ), the OptFlowMS engine 425 can generate 2D optical flow (such as for 2D optical flow 330f MS The 2D optical flow components (f MS ) can be called the optical flow associated with the x and y dimensions, which can be written as f xy MS optical flow 430(f MS ) can be called the optical flow associated with the z dimension, which can be written as f z To generate the MS optical flow 430 (f MS )’s 2D optical flow component (f xy ), the OptFlowMS engine 425 may use the 2D optical flow 330 (f 2D ) and modified to generate multi-scale flows. For example, the OptFlowMS engine 425 may use a modified version of FlowNet 1.0, FlowNet 2.0, FlowNet Simple, FlowNet Corr, FlowNet S, FlowNet Lite, etc. (modified for multi-scale flows), other optical flow estimation methods, or a combination thereof. The MS optical flow 430 (f MS )’s weighted graph component (f z ) can include reference frames The weight value corresponding to each pixel and / or the MS optical flow 430 (f MS )’s 2D optical flow component (f xy ) corresponds to the weight value of each pixel.
[0115] MS optical flow 430(f MS )’s weighted graph component (f z ) can identify the MS optical flow 430(f MS )’s 2D optical flow component (f xy ) is a measure of certainty and uncertainty in the optical flow estimate. In some cases, certainty can be referred to as confidence. Different pixels in the weight map may correspond to different weight values within a predetermined range (eg, from 0 to 1) in the weight map. MS An example diagram of the weighted graph components of ) is shown in Figure 5 The weighted graph 530(f z )and Figure 6 The weighted graph 630 (f z ).exist Figure 5 An exemplary weighted graph 530 (f z )and Figure 6 An exemplary weighted graph 630 (f z ), the weight value corresponding to black is 0, the weight value corresponding to white is 1, and the weight value corresponding to the gray shade between black and white is between 0 and 1. In some examples, lower weight values in the weighted map (e.g., below a predetermined weight threshold) correspond to a higher degree of certainty in the optical flow estimate (e.g., above a predetermined degree of certainty threshold) and / or a lower degree of uncertainty in the optical flow estimate (e.g., below a predetermined degree of uncertainty threshold). In some examples, higher weight values in the weighted map (e.g., above a predetermined weight threshold) correspond to a lower degree of certainty in the optical flow estimate (e.g., below a predetermined degree of certainty threshold) and / or a higher degree of uncertainty in the optical flow estimate (e.g., above a predetermined degree of uncertainty threshold). In some examples, the relationship between the weight values used by the weighted map and the certainty values and / or uncertainty values may be opposite. In some examples, the weighted map uses an opposite relationship between weight values and gray shades, with a weight value corresponding to white being 1 and a weight value corresponding to black being 0.
[0116] The encoder 450 of the auto encoder 460 of the codec system 495A may generate the MS optical flow 430 (f MS ) is encoded to generate the encoded MS optical flow (f MS_e ), which may be the encoded frame data 485 (v e ). The decoder 455 of the auto-encoder 460 of the codec system 495A may process the encoded MS optical flow (f MS_e ) is decoded or reconstructed to generate the reconstructed MS optical flow The decoder 455 can convert the reconstructed MS optical flow into Passed to the WarpMS Engine 410A of the Codec System 495A.
[0117] The WarpMS engine 410A of the codec system 495A may receive a reference frame and the reconstructed MS optical flow The WarpMS engine 410A of the codec system 495A can generate a signal based on the reconstructed MS optical flow. The reconstructed two-dimensional optical flow component and based on the reconstructed MS optical flow The reconstructed weighted graph components of The weight value in distorts the reference frame To generate the predicted frame Predicted Frame Represents the reconstructed MS optical flow The WarpMS engine 410A can predict the input frame 420 (v). Passed to subtractor 465 of codec system 495A and / or adder 475 of codec system 495A.
[0118] MS optical flow 430(f MS )’s weighted graph component (f z ) can identify the reference frame will be distorted to generate the predicted frame In some examples, lower weight values (e.g., below a predetermined weight threshold) in the weighted graph correspond to a reference frame with a finer level of detail. In some examples, higher weight values in the weighted map (e.g., above a predetermined weight threshold) correspond to using a coarser level of detail to distort the reference frame. In some examples, the weight values may have an inverse relationship to the fine and / or coarseness of the warp. At a finer level of detail, the WarpMS engine 410A of the codec system 495A may warp the corresponding portion of the reference frame. The original size (e.g., dimensions and / or resolution) or reference frame A slightly smaller variant (e.g. half the original size) of the reference frame At a coarser level of detail, the WarpMS engine 410A of the codec system 495A may warp the reference frame with a more drastic scaling variation. The distortion is performed (e.g., one-quarter the original size, one-eighth the original size, one-sixteenth the original size, one-thirty-second the original size, one-sixty-fourth the original size, one-hundred-and-twenty-eighth the original size, one-two-hundred-and-fifty-sixth the original size, one-five-hundred-twelfth the original size, a smaller size, or a size between any two of the sizes listed previously). The distorted region can be zoomed back into the reference frame and are combined with them based on the weights corresponding to the weighted graph. Figure 5 The WarpMS engine 410A of the codec system 495A is shown as an example based on the reconstructed MS optical flow Reference frame Warp to generate a predicted frame
[0119] The subtractor 465 of the codec system 495A may receive the predicted frame and input frame 420(v). The subtractor 465 of the codec system 495A may be configured to subtract the predicted frame from the input frame 420(v). To generate the residual 440(r), and vice versa. Therefore, the residual 440(r) can identify the input frame 420(v) and the predicted frame One or more differences between Figure 4A The predicted frame May be different from Figure 3A The predicted frame therefore Figure 4A The residual 440(r) is also different from Figure 3A The residual is 340(r).
[0120] The encoder 450 of the autoencoder 460 of the codec system 495A may encode the residual 440(r) generated by the subtractor 465 to generate an encoded residual (r e ), the residual may be the coded frame data 485 (v e ). The decoder 455 of the autoencoder 460 of the codec system 495A can decode or reconstruct the encoded residual (r e ), to generate the reconstructed residual The decoder 455 can convert the reconstructed residual Passed to adder 475 of codec system 495A.
[0121] The adder 475 of the codec system 495A may receive the predicted frame and the reconstructed residual The adder 475 of the codec system 495A can be configured to generate the reconstructed residual With predicted frame Add to generate the reconstructed input frame The reconstructed input frame is the coded frame data 485 (v e ), attempting to reconstruct the input frame 420(v) as closely as possible.
[0122] The codec system 495A may generate and / or output encoded frame data 485 (v e ), which encodes data corresponding to input frame 420(v). Figure 4A The encoded frame data 485 (v e ) is an inter-coded frame, such as a P frame and / or a B frame. For example, the coded frame data 485 (v e ) may include the coded residual (r e ) and / or the encoded MS optical flow (f MS_e).
[0123] In some examples, encoder 450 generates encoded frame data 485 (v e ). The encoder 450 generates encoded frame data 485 (v e ), the reconstructed input frame It can include all video data of the input frame 420 (v), the reconstructed MS optical flow The MS optical flow 430 (f MS ) and / or the reconstructed residual All residual data of the residual 440 (r) may be included. The encoder 450 generates the encoded frame data 485 (v) using lossy compression. e ), the reconstructed input frame may include video data similar to the input frame 420(v), the reconstructed MS optical flow may include the MS optical flow 430(f MS ) similar optical flow data, and / or reconstructed residuals Residual data similar to residual 440(r) may be included. Lossy compression is used at encoder 450 to generate encoded frame data 485(v e ), the reconstructed input frame The reconstructed MS optical flow may include one or more differences compared to the video data of the input frame 420 (v). may include the MS optical flow 430(f MS ) and / or the reconstructed residual One or more differences compared to the residual data of the residual 440 ( r ) may be included.
[0124] In some examples, the encoder 450 includes a transform encoder that performs transform coding on the input frame 420 (v) and / or its blocks. In some examples, the transform coding can be based on the residual 440 (r) in addition to the input frame 420 (v). In some examples, the transform coding can include a discrete cosine transform (DCT), a modified discrete cosine transform (MDCT), a discrete sine transform (DST), a fast Fourier transform (FFT), a wavelet transform, or a combination thereof. In some examples, the encoder 450 includes a quantizer that quantizes the input frame 420 () and / or its blocks, which in some cases is quantized after transform coding. The degree of quantization performed by the quantizer of the encoder 450 during the quantization process can be based on a quantization parameter (QP) and can be modified by adjusting the QP. The QP can indicate the quantization step size of the input frame 420 (v) during quantization and can control how much spatial detail is retained from the captured image after quantization. In some examples, the encoder 450 includes an entropy encoder, which in some cases performs entropy coding after transform coding and / or quantization. Entropy coding includes, for example, context-adaptive binary arithmetic coding (CABAC), arithmetic coding, Golomb coding, Huffman coding, range coding, Shannon coding, Shannon-Fano coding, Shannon-Fano-Elias coding, Tunstall coding, unary coding, universal coding, or a combination thereof.
[0125] In some examples, decoder 455 includes processing of encoded frame data 485 (v e ) and / or its blocks. In some examples, the decoder 455 includes an inverse transform encoder that performs inverse quantization on the encoded frame data 485 (v e ) and / or its blocks perform inverse transform, which in some cases performs inverse transform after inverse quantization.
[0126] In some examples, the autoencoder 460 of the codec system 495A may be divided into two or more autoencoders. In one example, the autoencoder 460 of the codec system 495A may include a first autoencoder and a second autoencoder. The first autoencoder receives the MS optical stream 430 (f MS ), and output the reconstructed MS optical flow The encoder of the first autoencoder may output encoded frame data 485 (v e ). The second autoencoder receives the residual 440(r) and outputs a reconstructed residual The encoder of the second autoencoder may output encoded frame data 485 (v e )
[0127] Figure 4B490 is a conceptual diagram illustrating encoding and decoding of inter-coded frames of video data using multi-scale (MS) MS optical flow and MS warping. The codec system 495B shown in the figure has WarpMS engine 410B, WarpMS engine 410C, OptFlowMS engine 425 and auto encoder 460. Figure 4B The codec system 495B is similar to Figure 4A The codec system 495A includes the WarpMS engine 410B and the WarpMS engine 410C instead of Figure 4A The WarpMS engine 410A of the codec system 495A.
[0128] The WarpMS engine 410C of the codec system 495B may receive the reference frame and MS optical flow 430(f MS ). The WarpMS engine 410C of the codec system 495B can be configured to generate a signal according to the optical flow 430 (f MS ) in the motion vector distorted reference frame To generate the predicted frame Predicted Frame ) represents the optical flow 430(f MS ) predicts the input frame 420(v). Figure 4B The predicted frame Possibly Figure 4A The predicted frame Different because Figure 4B The predicted frame is to use optical flow 430(f MS ) is generated, and Figure 4A The predicted frame in is to use the reconstructed MS optical flow The WarpMS engine 410C can generate the predicted frame The subtractor 465 of the codec system 495B may receive the predicted frame. and input frame 420(v). The subtractor 465 of the codec system 495B may be configured to subtract the predicted frame from the input frame 420(v). to generate the residual 440(r), and vice versa. Figure 4B The predicted frame May be different from Figure 4A The predicted frame therefore Figure 4B The residual 440(r) may also be different from Figure 4A The residual is 440(r). Figure 5The WarpMS engine 410C of the codec system 495B is illustrated as follows: MS ) for the reference frame Warp to generate prediction frame
[0129] The WarpMS engine 410B of the codec system 495B may receive the reference frame and the reconstructed MS optical flow This is more similar to the WarpMS engine 410A of the codec system 495A. The WarpMS engine 410B of the codec system 495B can be based on the reconstructed MS optical flow The motion vectors in the distorted reference frame To generate the predicted frame Predicted Frame Represents the reconstructed MS optical flow Prediction of input frame 420(v). Prediction frame May be different from the predicted frame Because the predicted frame is to use the reconstructed MS optical flow Generated, while the predicted frame is to use optical flow 430(f MS ) generated. The WarpMS engine 410B can generate the prediction frame Passed to the adder 475 of the codec system 495B. The adder 475 of the codec system 495B can receive the predicted frame and the reconstructed residual The adder 475 of the codec system 495B can be configured to generate the reconstructed residual Add to prediction frame To generate the reconstructed input frame The reconstructed input frame is the coded frame data 485 (v e ) that attempts to reconstruct the input frame 420(v) as closely as possible. Figure 5 The WarpMS engine 410B of the codec system 495B is illustrated as follows: Reference frame Warp to generate prediction frame In some examples, WarpMS engine 410C may be used instead of WarpMS engine 410B to convert the predicted frame (Based on MS Optical Flow 430f MS ) is sent to adder 475 instead of the predicted frame (Based on the reconstructed MS optical flow ).
[0130] In some examples, the autoencoder 460 of the codec system 495B may be divided into two or more autoencoders. In one example, the autoencoder 460 of the codec system 495B may include a first autoencoder and a second autoencoder. The first autoencoder receives the MS optical stream 430 (f MS ), and output the reconstructed MS optical flow The encoder of the first autoencoder may output encoded frame data 485 (v e ). The second autoencoder receives the residual 440(r) and outputs a reconstructed residual The encoder of the second autoencoder may output encoded frame data 485 (v e )
[0131] Figure 5 is a conceptual diagram 500 illustrating generation of a predicted frame 565 using a reference frame 505 , an optical flow 515 , and a downsized variation of a differential index weighted map 530 . Figure 5 The operations shown in the figure may be performed by a WarpMS engine of a codec device, such as WarpMS engine 410A of codec system 495A, WarpMS engine 410B of codec system 495B, and / or WarpMS engine 410C of codec system 495B. The WarpMS engine of the codec device receives a reference frame The left side of the conceptual diagram 500 shows the reference frame It can be Figure 4A and Figure 4B Reference frame .
[0132] The WarpMS engine of the codec device can be used to reference frames One or more downsizing 510 operations are performed. In some examples, each downsizing 510 operation can include downsizing, downsampling, subsampling, Gaussian averaging, Gaussian blurring, Gaussian filtering, or a combination thereof. The downsizing 510 operations can be performed repeatedly to generate an image pyramid, a Gaussian pyramid, a Laplacian pyramid, a steerable pyramid, or a combination thereof. An example of an image pyramid is shown under the downsizing 510 label. The image pyramid includes a reference frame itself (or a copy of it), which is marked as the 0th scale of the reference frame The 0th scale of the reference frame The size of the reference frame The original size of the image pyramid includes the reference frame A copy of , which is downsized using downscaling 510, is marked as the first scale of the reference frame The image pyramid includes the first scale of the reference frame A copy of , which is downsized using downscaling 510, is marked as the second scale of the reference frame The image pyramid includes the second scale of the reference frame A copy of , which is downsized using downscaling 510, is marked as the third scale of the reference frame In one illustrative example, each downscaling 510 halves the size of the frame. Thus, the first scale of the reference frame is the reference frame Half the original size, the second scale of the reference frame is the reference frame One quarter of the original size, reference frame 3rd scale The size of the reference frame Each subsequent scale of the reference frame has a coarser level of detail than the previous scale, at least because each subsequent downscaling 510 reduces the frame resolution (by reducing the size of the frame). In some cases, each subsequent scale of the reference frame has a coarser level of detail than the previous scale because each downscaling 510 also smooths the details using Gaussian averaging, Gaussian blurring, and / or Gaussian filtering.
[0133] The WarpMS engine of the codec device receives the MS optical flow (f MS ) and / or the reconstructed MS optical flow As input. MS optical flow (f MS ) and / or the reconstructed MS optical flow Either or both of these can be called Figure 5 MS optical flow in (f MS ).therefore, Figure 5 The MS optical flow (f MS ) can be Figure 4A and / or Figure 4B MS optical flow 430(f MS ) and / or the reconstructed MS optical flow . Figure 5 The MS optical flow (f MS ) includes 2D optical flow components in the x and y dimensions, referred to as 2D optical flow 515 (f xy ). Figure 5 2D optical flow 515(f xy ) can be Figure 4A and / or Figure 4B MS optical flow 430(f MS )’s 2D optical flow component (fxy ) and / or the reconstructed MS optical flow The reconstructed 2D optical flow component of . Figure 5 The MS optical flow (f MS ) includes a weighted graph component in the z dimension, which is referred to as a weighted graph 530 (f z ). Figure 5 The weighted graph 530(f z ) can be Figure 4A and / or Figure 4B MS optical flow 430(f MS )’s weighted graph component (f z ) and / or the reconstructed MS optical flow The reconstructed weighted graph components of .
[0134] Reference Frame A horse race is shown, and four jockeys can be seen, each riding a horse. The horses and jockeys are in the foreground, and the background is behind them. The background includes plants, buildings, fences, metal poles, and the sky. 2D optical flow 515 (f xy ) corresponds to the sky (part of the background) is white, which means that the magnitude and / or movement direction of the motion vector corresponding to the sky (part of the background) is zero. xy ) is marked with the word “white”. 2D optical flow 515 (f xy ) includes specific cyan and red regions with different saturation and / or chroma levels. 2D optical flow 515 (f xy ) are marked with "cyan" text. 2D optical flow 515 (f xy ) are labeled with the word "red". The purpose of using these color labels is to Figure 5 Displayed in monochrome, but still capable of expressing color. Different levels of saturation and / or hue are represented as different levels of darkness, making Figure 5 Can be expressed in monochrome, Figure 5 The darker area in the figure corresponds to the 2D optical flow 515 (f xy ) with higher saturation and / or hue levels, Figure 5 The brighter area in the figure corresponds to the 2D optical flow 515 (f xy ) in a lower saturation and / or hue level.
[0135] For example, 2D optical flow 515 (f xy ) and the reference frame The area corresponding to the leftmost horse and jockey is generally cyan, and different parts have different saturation and / or chromaticity levels. 2D optical flow 515 (f xy) indicates that the motion vector direction of the pixels in the cyan area points to the left. The position of the leftmost horse and jockey in the reference frame The leftmost horse and jockey in the subsequent frame are moving to the left. The 2D optical flow 515 (f xy ) area is generally red, and different parts have different saturation and / or chromaticity levels. 2D optical flow 515 (f xy ) indicates that the motion vector direction of the pixels in the cyan area points to the right. The position of the rightmost horse and jockey in the reference frame The rightmost horse and jockey in the subsequent frame are moving to the right. Essentially, the reference frame The leftmost horse and jockey are positioned further forward, while the reference frame The horse and jockey on the far right are further back. 2D optical flow 515 (f xy ) and the reference frame The parts corresponding to the plants, fences, buildings, and sentries in the reference frame are mostly cyan with red spots, and the saturation and / or chromaticity levels of different parts are different. Therefore, these parts relative to the background are not as bright as those in the reference frame. The position in the reference frame In subsequent frames, these parts of the background are likely to move mostly to the left. The red patches may indicate that certain parts of the background are located in the reference frame. In subsequent frames, the image moves to the right.
[0136] The WarpMS engine of the codec device can perform 2D optical flow 515 (f xy ) performs one or more downsizing 520 operations. The downsizing 520 operations may include downsizing, downsampling, subsampling, Gaussian averaging, Gaussian blurring, Gaussian filtering, or a combination thereof. As with the downsizing 510 operations, the downsizing 520 operations may be performed repeatedly to generate an image pyramid, a Gaussian pyramid, a Laplacian pyramid, a steerable pyramid, or a combination thereof. An example of an image pyramid is shown under the downsizing 520 label. The image pyramid includes a 2D optical flow 515 (f xy ) itself (or its copy), is labeled as the 0th scale f of the 2D optical flow xy_0 The 0th scale f of the 2D optical flow xy_0 The size of 2D optical flow is 515 (f xy ) of the original size. The image pyramid includes 2D optical flow 515 (f xy), which is downsized using the size reduction 520 and is labeled as the first scale f of the 2D optical flow. xy_1 The image pyramid includes the first scale f of the 2D optical flow xy_1 A copy of , which is downsized using the size reduction 520, is labeled as the second scale f of the 2D optical flow xy_2 The image pyramid includes the 2D optical flow second scale f xy_2 A copy of , which is downsized using a size reduction of 520, is labeled as the third scale f of the 2D optical flow xy_3 In one illustrative example, each downscaling 520 halves the size of the optical flow. Thus, the first scale f of the 2D optical flow xy_1 The size of 2D optical flow is 515 (f xy ) half of the original size, the second scale f of the 2D optical flow xy_2 The size of 2D optical flow is 515 (f xy ) One quarter of the original size, the third scale f of the 2D optical flow xy_3 The size of 2D optical flow is 515 (f xy ) is one eighth of the original size. Each subsequent scale of the 2D optical flow has a coarser level of detail than the previous scale, at least because each subsequent downscaling 520 reduces the frame resolution (by reducing the size of the frame). In some cases, each subsequent scale of the reference frame has a coarser level of detail than the previous scale, also because each downscaling 520 also smoothes the details using Gaussian averaging, Gaussian blurring, and / or Gaussian filtering.
[0137] The WarpMS engine of the codec device can also perform 2D optical flow 515 (f xy ) performs one or more magnitude adjustment 525 operations. The magnitude adjustment 525 operation can reduce the magnitude of the motion vectors in the 2D optical flow at the same scale as the scale of the 2D optical flow reduced by the corresponding downscaling 520 operation. The magnitude adjustment 525 can be performed by reducing the saturation and / or chroma of each downscaled 2D optical flow at the same scale as the scale of the 2D optical flow reduced by the corresponding downscaling 520 operation. In the illustrative example, if the first scale f of the 2D optical flow is xy_1 is 2D optical flow 515(f xy ) half of its original size, then with 2D optical flow 515 (f xy ), the amplitude adjustment 525 can adjust the first scale f of the 2D optical flow by comparing the saturation and / or chroma of the 2D optical flow to the value of xy_1 The saturation and / or chroma of all pixels in the Figure 5 are shown as darker image areas, while lower saturation and / or chroma are shown as darker image areas. Figure 5is shown as a brighter image region in the image, so the first scale f of the 2D optical flow xy_1 Overall, it is shown to be smaller than the 0th scale f of the 2D optical flow xy_0 For example, if the 2D optical flow 515(f xy ) includes pixels with high color saturation, indicating that the motion vector amplitude is 4 pixels, then the first scale f of the 2D optical flow xy_1 The saturation of the corresponding pixel in will be reduced by half, which indicates that the motion vector magnitude is 2 pixels. In addition, if the second scale f of the 2D optical flow xy_2 is the first scale f of the 2D optical flow xy_1 half of the first scale f of the 2D optical flow xy_1 The amplitude adjustment 525 can adjust the second scale f of the 2D optical flow by comparing the saturation and / or chroma of the 2D optical flow. xy_2 The saturation and / or hue of all pixels in the image are reduced by half. Figure 5 In the 2D optical flow, the second scale f xy_2 Overall, it is better than the first scale f of 2D optical flow xy_1 Brighter. If the third scale f of the 2D optical flow xy_3 is the second scale f of the 2D optical flow xy_2 half of the 2D optical flow, then the second scale f xy_2 The amplitude adjustment 525 can adjust the third scale f of the 2D optical flow by comparing the saturation and / or chroma of the 2D optical flow. xy_3 The saturation and / or hue of all pixels in the image are reduced by half. Figure 5 In the 2D optical flow, the third scale f xy_3 is shown as the second scale f of the 2D optical flow xy_2 Through the amplitude adjustment 525 operation, the downscaled reference frame can be warped according to the downscaled 2D optical flow, and both the downscaled reference frame and the downscaled 2D optical flow have appropriate motion vector amplitudes.
[0138] Weighted graph 530(f z ) Identify 2D optical flow 515 (f xy ) in the optical flow estimate. and / or 2D optical flow 515 (f xy ) may correspond to different pixels in the weighted map 530 (f z ) in a predetermined range of different weight values (e.g., including values from zero to one). Figure 5 The weighted graph 530(f z ), the weight value corresponding to black is 0, the weight value corresponding to white is 1, and the weight value corresponding to the gray shade between black and white is between 0 and 1. Figure 5, lower weight values in the weighted map (e.g., below a predetermined weight threshold) correspond to a higher degree of certainty in the optical flow estimate (e.g., above a predetermined degree of certainty threshold) and / or a lower degree of uncertainty in the optical flow estimate (e.g., below a predetermined degree of uncertainty threshold). Figure 5 , higher weight values in the weighted graph (e.g., above a predetermined weight threshold) correspond to a lower degree of certainty in the optical flow estimate (e.g., below a predetermined degree of certainty threshold) and / or a higher degree of uncertainty in the optical flow estimate (e.g., above a predetermined degree of uncertainty threshold). Figure 5 The weighted graph 530(f z ) and the reference frame The area corresponding to the horse and jockey in the game is generally smaller than Figure 5 The weighted graph 530(f z ) and the reference frame The areas corresponding to the background in the image are darker, indicating that the movement of the horse and jockey is generally more certain than the movement of the background. In some examples, the relationship between the weight values and the certainty values and / or uncertainty values may be opposite. In some examples, the weighted graph may use an opposite relationship between the weight values and the gray shades, i.e., a weight value of 1 corresponds to white and a weight value of 0 corresponds to black.
[0139] The WarpMS engine of the codec device may perform weighted map 530 (f z ) performs differential indexing 535 to generate a weighted graph of multiple differential indices. The weighted graph of multiple differential indices can be based on the weighted graph 530 (f z ) within different value ranges. The differential index 535 operation can be used to weight the weighted graph 530 (f z ) is mapped to a range of zero to one in the corresponding differential index weighted map. For example, the differential index 535 operation can map the weighted map 530 (f z ) with weight values between 0 and 0.25 are mapped to the corresponding difference index weighted map f z_0 The differential index 535 operation can be used to convert the weighted graph 530 (f z ) with weight values between 0.25 and 0.50 are mapped to the corresponding difference index weighted map f z_1 The differential index 535 operation can be used to convert the weighted graph 530 (f z ) with weight values between 0.50 and 0.75 are mapped to the corresponding difference index weighted map f z_2 The differential index 535 operation can be used to convert the weighted graph 530 (f z ) with weight values between 0.75 and 1.00 are mapped to the corresponding difference index weighted map fz_3 An example of a differential index 535 is Figure 6 The differential index 535 can be generated with reference frame The scale and / or 2D optical flow 515 (f xy ) is reduced in size by 520 to the same number of differential index weighted graphs as the scales in the image pyramid. For example, Figure 5 In the reference frame Size reduction 510 image pyramid and 2D optical flow 515 (f xy ) has four scales in the down-scaling 520 image pyramid. Therefore, the differential index 535 is based on the weighted map 530 (f z ) generates four weighted graphs with four differential indices for four different ranges of weight values.
[0140] The WarpMS engine of the codec device may perform one or more downsizing 540 operations on at least a subset of the differentially indexed weighted maps. The downsizing 540 operations may downsize a particular differentially indexed weighted map to the size of one of the downsized reference frames and / or the size of one of the downsized 2D optical flows. For example, in Figure 5 In the reduced-size 510 image pyramid, the reference frame There are three downscaling variants. In the downscaling 520 image pyramid, the 2D optical flow 515 (f xy ) has three downscaling variants. Thus, during downscaling 540, the weighted graphs of the three differential indices are downsized to match the reference frame Three respectively downsized variants and 2D optical flow 515 (f xy The downsizing 540 operation may include downsizing, downsampling, subsampling, Gaussian averaging, Gaussian blurring, Gaussian filtering, or a combination thereof.
[0141] The WarpMS engine of the codec device targets reference frames 2D optical flow 515(f xy ) and weighted graph 530(f z ) performs a warping operation 550 at each scale i. The WarpMS engine performs a warping operation 550 at each scale i according to the formula A warping operation 550 is performed for each scale i. In this formula, warp2D() represents a 2D warping operation based on optical flow. For example, according to the formula Warp at the 0th scale to generate a warped frame at the 0th scale. Based on the formula Warp at the first scale to generate a distorted frame at the first scale. According to the formula Warp at the second scale to generate a distorted frame at the second scale. According to the formula Warping is performed at the third scale to generate a warped frame at the third scale.
[0142] The WarpMS engine of the codec device performs a size upscaling 555 operation on all warped frames above the 0th scale to make them reach the size of the warped frame at the 0th scale (eg, reach the reference frame 505). The size enlargement 555 operation may be referred to as an inverse pyramid.
[0143] The WarpMS engine of the codec device performs a summing 560 operation on all upscaled frames generated during the upscaling operation 550 after upscaling during the upscaling 555 operation (for a scale greater than 0). The summing 560 operation generates a predicted frame Figure 5 The predicted frame Can be Figure 4A The predicted frame and / or Figure 4B The predicted frame .
[0144] Due to the multiplicative effect of the differential index weighted graph, a 2D warp operation with high certainty (and therefore low weight values in the weighted graph 530) is more efficient at finer scales (e.g. Figure 5 0th and 1st in ), while at coarser scales (e.g. Figure 5 On the other hand, with low certainty (hence in weighted graph 530f z ) at a coarser scale (e.g. Figure 5 ) are given high multipliers, while at finer scales (e.g. Figure 5 The 0th and 1st in are given low multipliers.
[0145] Figure 6 is a conceptual diagram 600 illustrating a differential index 640 of a weighted graph 630 . Figure 6 The weighted graph 630 (f z ) can be Figure 5 The weighted graph 530(f z ). Weighted graph 630 (f z ) is generated as an image consisting of values between 0 and 1 (the range can be either inclusive or exclusive), with each value in Figure 6 is shown as a selected shade of gray in a gray range from white to black (including white and / or black in some examples). Figure 6An exemplary weighted graph 630 (f z ), the weight value corresponding to black is 0, the weight value corresponding to white is 1, and the weight value corresponding to the gray shade between black and white is between 0 and 1. In some examples, the weighted graph can use the opposite relationship between the weight value and the gray shade, that is, the weight value corresponding to white is 1 and the weight value corresponding to black is 0.
[0146] Based on the weighted graph 630 (f z ), using the differential index 640 to generate four differential index weighted graphs 650A-650D. Weighted graph 630 (f z ) are mapped to the most precise (0th) scale weighted map 650A (f z_0 ) in the range of 0 to 1. Weighted graph 630 (f z ) are mapped to the most accurate (first) scale weighted graph 650B (f z_1 ) is in the range of 0 to 1. Weighted graph 630 (f z ) are mapped to the coarse (second) scale weight map 650C (f z_2 ) is in the range of 0 to 1. Weighted graph 630 (f z ) are mapped to the coarsest (third) scale weighted graph 650D (f z_3 ) is in the range of 0 to 1. Figure 6 In the differential index weighted graphs 650A-650D, the differential index weight value corresponding to black is 0, the differential index weight value corresponding to white is 1, and the differential index weight value corresponding to the gray shade between black and white is between 0 and 1. In some examples, the differential index weighted graphs 650A-650D can use an inverse relationship between the differential index weight value and the gray shade, with the differential index weight value corresponding to white being 1 and the differential index weight value corresponding to black being 0.
[0147] In some examples, a weighted graph 630 (f ) that is smaller than the range corresponding to a particular weighted graph in the differential index weighted graphs 650A-650D may be used. z ) are given a value of zero for that weighted graph in differential index weighted graphs 650A-650D. For example, in differential index weighted graph 650B, values below 0.25 may be given a value of zero. In some examples, weighted graphs 630(f) that are greater than a range corresponding to a particular weighted graph in differential index weighted graphs 650A-650D may be given a value of zero. z) are given a value of zero for that weighted graph in differential index weighted graphs 650A-650D. For example, in differential index weighted graph 650B, values below 0.50 may be given a value of zero. In some examples, weighted graphs 630(f) that are greater than a range corresponding to a particular weighted graph in differential index weighted graphs 650A-650D may be given a value of zero. z ) is given a value of one for that weighted map in the differential index weighted maps 650A-650D. For example, in the differential index weighted map 650B, values below 0.50 may be given a value of one. In some examples, the sum of the differential index weight values for a particular pixel location in all four differential index weighted maps 650A-650D is one. For example, for a particular pixel location, the value of the differential index weight in the weighted map 650A (f ) at the finest (0th) scale may be one. z_0 ) in the pixel position, the weighted map 650B (f z_1 ) in the weighted map 650C (f z_2 ) and the weighted map 650D (f z_3 ) is 1.
[0148] It should be understood that Figure 6 Any less than or equal to operator ("≤") in a range may be replaced by a less than operator ("<"). It should be understood that Figure 6 Any less than operator ("<") in a range can be replaced by a less than or equal to operator ("≤"). For example, the weighted graph 650A (f z_0 ) is in the range Figure 6 px<0.25, but according to some examples, it can be 0≤px≤0.25, 0<px≤0.25, or 0<px<0.25. Weighted graph 650B (f z_1 ) is in the range Figure 6 px<0.50, but according to some examples, it can be 0.25≤px≤0.50, 0.25<px≤0.50, or 0.25<px<0.50. The weighted map 650C (f z_2 ) is in the range Figure 6 In is written as 0.50≤px<0.75, but according to some examples, it can be 0.50≤px≤0.75, 0.50<px≤0.75 or 0.50<px<0.75. Figure 6 The coarsest (third) scale weighted graph 650D (f z_3) is written as 0.75≤px<1.00, but according to some examples, it can be 0.75≤px≤1.00, 0.75<px≤1.00, or 0.75<px<1.00. In some examples, the differential index 640 can generate less than four differential index weighted maps (e.g., 2 or 3 differential index weighted maps). In some examples, the differential index 640 can generate more than four differential index weighted maps (e.g., 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, or more than 15 differential index weighted maps).
[0149] Fig. 7A FIG. 700A shows a scaled weight distribution graph 700 of a differential index 640 for a weighted graph 630 according to some embodiments. The scaled weight distribution graph 700A includes a representation of the original weighted graph 630 (f z ) in a horizontal axis ranging from 0 to 1. The scale weight distribution graph 700 includes a vertical axis representing pixel values 735 in four differential index weighted graphs 650A-650D. The first curve 710 represents the weighted graph 650A (f 0) of the most refined (0th) scale. z_0 The second curve 715 represents the weighted graph 650B (f z_1 The third curve 720 represents the weighted graph 650C (f z_2 The fourth curve 725 represents the coarsest (third level) scale weighted graph 650D (f z_3 According to some examples, scale weight distribution graph 700 identifies original weighted graph 630 (f z ) are mapped to weighted graphs 650A-650D of the four differential indices.
[0150] Figure 7B FIG. 700B shows a scaled weight distribution graph 700 of a differential index 640 of a weighted graph 630 according to some examples. As with scaled weight distribution graph 700A, scaled weight distribution graph 700B includes a differential index 640 representing the original weighted graph 630 (f z ) and the vertical axis represents the pixel values 735 in the four differential index weighted maps 650A-650D. The first curve 710 represents the weighted map 650A (f z_0 The second curve 715 represents the weighted graph 650B (f z_1 The third curve 720 represents the weighted graph 650C (f z_2 The fourth curve 725 represents the coarsest (third level) scale weighted graph 650D (f z_3 According to some examples, the scale weight distribution graph 700 can identify the original weighted graph 630 (fz ) are mapped to weighted graphs 650A-650D of the four differential indices.
[0151] Figure 8 800 is a block diagram showing an example of a neural network 800 according to some examples. As described above, various aspects of the present disclosure can be performed using an intelligence engine. The intelligence engine can include, for example, one or more artificial intelligence algorithms, one or more machine learning models trained using training data input into one or more machine learning algorithms, one or more neural networks, or a combination thereof. Figure 8 The neural network 800 in the embodiment can be used to implement the encoding device 104, the decoding device 112, the codec system 295, the autoencoder 260, the encoder 250, the decoder 255, the codec system 395A, the codec system 395B, the autoencoder 360, the encoder 350, the decoder 355, the OptFlow2D engine 325, the Warp2D engine 310A, the Warp2D engine 310B, the Warp2D engine 310C, the codec system 495A, the codec system 495B, the autoencoder 460, the encoder 450, the decoder 455, the OptFlowMS engine 425, the WarpMS engine 410A, the WarpMS engine 410B, the WarpMS engine 410C, the convolutional neural network (CNN) 900, the multi-scale warp engine 1000A, the multi-scale warp engine 1000B, Fig.11A The codec device, Fig. 11B The codec device, computing system 1200 or a combination thereof. Figure 8 The neural network 800 can be used to implement any operation described herein and performed by any of the above devices, such as generating 2D optical flow, generating MS optical flow, generating weighted graphs, 2D warping, MS warping, encoding, decoding, generating predicted frames, or a combination thereof.
[0152] The input layer 820 includes input data. In an illustrative example, the input layer 820 may include data representing pixels of an input image captured by one of the one or more cameras 210. The image may be a video frame. The neural network 800 includes a plurality of hidden layers 822a, 822b to 822n. The hidden layers 822a, 822b to 822n include "n" hidden layers, where "n" is an integer greater than or equal to 1. The number of hidden layers may be determined as needed for a given application. The neural network 800 also includes an output layer 824 that provides outputs generated by the processing performed by the hidden layers 822a, 822b to 822n. In an illustrative example, the output layer 824 may provide optical flow and / or weighted maps for objects in the input video frame. In an illustrative example, the output layer 824 may provide an encoded version of the input video frame.
[0153] Neural network 800 is a multi-layer neural network composed of interconnected nodes. Each node can represent a piece of information. Information associated with a node is shared between different layers, and each layer retains the information as it is processed. In some cases, neural network 800 may include a feedforward network, in which case there are no feedback connections, so that the output of the network is fed back to itself. In some cases, neural network 800 may include a recursive neural network, which has loops that allow information to be carried through nodes while being read in the input.
[0154] Information can be exchanged between nodes through the interconnection of nodes to nodes between each layer. The nodes of input layer 820 can activate a group of nodes in the first hidden layer 822a. For example, as shown in the figure, each input node of input layer 820 is connected to each node of the first hidden layer 822a. The nodes of the first hidden layer 822a can transform the information of each input node by applying an activation function to the input node information. Then, the information obtained by the transformation can be passed to the nodes of the next hidden layer 822b, and activate these nodes, which can perform the function specified by themselves. Example functions include convolution, upsampling, data transformation and / or any other suitable function. Then, the output of hidden layer 822b can activate the nodes of the next hidden layer, and so on. The output of the last hidden layer 822n can activate one or more nodes of output layer 824 and provide output. In some cases, although the nodes (e.g., node 826) in neural network 800 are shown as having multiple output lines, the nodes have only a single output, and all the lines shown as outputs from the nodes represent the same output value.
[0155] In some cases, each node or interconnection between nodes can have a weight, which is a set of parameters derived from the training of the neural network 800. Once the neural network 800 is trained, it can be referred to as a trained neural network, and the neural network can be used to generate 2D optical flow, generate MS optical flow, generate weighted graphs, 2D warped frames based on 2D optical flow, MS warped frames based on MS optical flow, encode data, decode data, generate predicted frames, or a combination thereof. For example, the interconnections between nodes can represent information learned about the interconnected nodes. The interconnections can have adjustable digital weights (e.g., based on a training data set) so that the neural network 800 can adapt to the input and learn as it processes more and more data.
[0156] The neural network 800 is pre-trained to process features from the data in the input layer 820 using different hidden layers 822a, 822b to 822n to provide an output through the output layer 824. In an example where the neural network 800 is used to recognize objects in an image, the neural network 800 can be trained using both training data including images and labels. For example, training images can be input to the network, where each training image has a label indicating the category of one or more objects in each image (essentially, indicating to the network what the object is and what features they have). In one illustrative example, the training images can include an image of the number 2, in which case the label of the image can be [0 0 1 0 0 0 0 0 00].
[0157] In some cases, the neural network 800 can use a training process called back propagation to adjust the weights of the nodes. Back propagation can include a forward pass, a loss function, a backward pass, and a weight update. The forward pass, the loss function, the backward pass, and the parameter update perform one training iteration. This process can be repeated for a certain number of iterations for each set of training images until the neural network 800 is trained well enough so that the weights of each layer can be accurately adjusted.
[0158] For the example of recognizing an object in an image, a forward pass may include passing a training image through the neural network 800. Prior to training the neural network 800, the weights are initially random. For example, an image may include an array of numbers representing pixels of the image. Each number in the array may include a value from 0 to 255 that describes the intensity of the pixel at that position in the array. In one example, the array may include a 28x28x3 array of numbers with 28 rows and 28 columns of pixels and 3 color components (such as red, green, blue, or brightness and two chrominance components, or similar components).
[0159] For the first training iteration of the neural network 800, since the weights are randomly selected at initialization, the output is likely to include values that are not biased towards any particular class. For example, if the output is a vector with probabilities that an object includes different classes, the probability values for each different class may be equal or at least very similar (e.g., for ten possible classes, the probability value for each class may be 0.1). With the initial weights, the neural network 800 is unable to determine low-level features and therefore is unable to make accurate decisions (e.g., optical flow or weight maps for a particular region of a frame). A loss function may be used to analyze the errors in the output. Any suitable loss function definition may be used. An example of a loss function includes the mean squared error (MSE). The MSE is defined as It calculates half of the actual answer minus the sum of the squares of the predicted (output) answers. This loss can be set equal to E total The value of .
[0160] The loss (or error) for the first batch of training images will be high because the actual values are very different from the predicted output values. The goal of training is to minimize the amount of loss so that the predicted output is the same as the training labels. The neural network 800 can perform a backward pass by determining which inputs (weights) have the greatest impact on the network's loss, and adjust the weights so that the loss decreases and is ultimately minimized.
[0161] The derivative of the loss with respect to the weights (expressed as dL / dW, where W is the weight of a particular layer) can be calculated to determine the weights that have the greatest impact on the network loss. After calculating the derivative, a weight update can be performed by updating all the weights of the filter. For example, the weights can be updated so that they change in the opposite direction of the gradient. The weight update can be expressed as Where w represents the weight, w i represents the initial weights, and η represents the learning rate. The learning rate can be set to any suitable value, where a high learning rate includes larger weight updates, while a low value indicates smaller weight updates.
[0162] The neural network 800 may include any suitable deep network. An example includes a convolutional neural network (CNN), which includes an input layer and an output layer with multiple hidden layers between the input layer and the output layer. The hidden layers of the CNN include a series of convolutional layers, non-linear layers, pooling layers (for downsampling), and fully connected layers. The neural network 800 may include any other deep network other than a CNN, such as an autoencoder, a deep belief network (DBN), a recursive neural network (RNN), etc.
[0163] Fig. 9 is a block diagram illustrating an example of a convolutional neural network (CNN) 900 according to some examples. An input layer 920 of the CNN 900 includes data representing an image, such as an image captured by one of the one or more cameras 210. For example, the data may include an array of numbers representing pixels of the image, where each number in the array includes a value from 0 to 255 that describes the intensity of the pixel at that position in the array. Using the example above, the array may include a 28x28x3 digital array with 28 rows and 28 columns of pixels and 3 color components (e.g., red, green, and blue, or luminance and two chrominance components, or the like). The image may be passed through a convolutional hidden layer 922a, an optional non-linear activation layer, a pooling hidden layer 922b, and a fully connected hidden layer 922c to obtain an output at an output layer 924. Although Fig. 9Only one of each hidden layer is shown, but those skilled in the art will appreciate that multiple convolutional hidden layers, nonlinear layers, pooling hidden layers, and / or fully connected layers may be included in CNN 900. As previously described, the output may generate 2D optical flow, generate MS optical flow, generate weighted graphs, perform 2D warping on frames based on 2D optical flow, perform MS warping on frames based on MS optical flow, encode data, decode data, generate predicted frames, or a combination thereof.
[0164] The first layer of CNN 900 is a convolutional hidden layer 922a. The convolutional hidden layer 922a analyzes the image data of the input layer 920. Each node of the convolutional hidden layer 922a is connected to a node (pixel) region of the input image, which is called a receptive field. The convolutional hidden layer 922a can be viewed as one or more filters (each filter corresponds to a different activation or feature map), where each convolution iteration of the filter is a node or neuron of the convolutional hidden layer 922a. For example, the input image region covered by the filter in each convolution iteration is the receptive field of the filter. In an illustrative example, if the input image includes a 28×28 array and each filter (and corresponding receptive field) is a 5×5 array, then there will be 24×24 nodes in the convolutional hidden layer 922a. Each connection between a node and the receptive field of the node learns a weight, and in some cases an overall bias, so that each node learns to analyze a specific local receptive field in the input image. Each node of the hidden layer 922a has the same weights and biases (which are called shared weights and shared biases). For example, a filter has an array of weights (numbers) and its depth is the same as the input. For the video frame example, the filter will have a depth of 3 (according to the three color components of the input image). An illustrative example size of the filter array is 5x5x3, corresponding to the size of the node receptive field.
[0165] The convolutional nature of the convolutional hidden layer 922a is due to the fact that each node of the convolutional layer is applied to its corresponding receptive field. For example, the filter of the convolutional hidden layer 922a can be convolved around the input image starting from the upper left corner of the input image array. As described above, each convolution iteration of the filter can be regarded as a node or neuron of the convolutional hidden layer 922a. In each convolution iteration, the value of the filter is multiplied by the original pixel value of the corresponding number of images (for example, the 5x5 filter array is multiplied by the 5x5 input pixel value array in the upper left corner of the input image array). The products of each convolution iteration can be added to obtain the sum of the iteration or node. Next, according to the receptive field of the next node in the convolutional hidden layer 922a, this process is continued at the next position of the input image. For example, the filter can be moved to the next receptive field by a step size (referred to as a step size). The step size can be set to 1 or other suitable amounts. For example, if the step size is set to 1, the filter will move 1 pixel to the right at each convolution iteration. As the filter is processed at each unique location in the input volume, a number is generated that represents the result of the filter at that location, thereby determining an overall summed value for each node in the convolutional hidden layer 922a.
[0166] The mapping from the input layer to the convolutional hidden layer 922a is called an activation map (or feature map). The activation map includes the value of each node, which represents the filtering result of the input volume at each position. The activation map may include an array that includes various summed values generated by each iteration of the filter on the input volume. For example, if a 5x5 filter is applied to each pixel of a 28x28 input image (with a step size of 1), the activation map will include a 24x24 array. The convolutional hidden layer 922a may include multiple activation maps to identify multiple features in the image. Fig. 9 The example shown in includes three activation maps. Using the three activation maps, the convolutional hidden layer 922a can detect three different features, each of which can be detected in the entire image.
[0167] In some examples, a nonlinear hidden layer can be applied after the convolutional hidden layer 922a. A nonlinear layer can be used to introduce nonlinearity to a system that has been computing linear operations. An example of a nonlinear layer is a rectified linear unit (ReLU) layer. The ReLU layer can apply the function f(x)=max(0,x) to all values in the input volume, thereby turning all negative activations to 0. ReLU can therefore increase the nonlinear properties of the CNN 900 without affecting the receptive field of the convolutional hidden layer 922a.
[0168] The pooling hidden layer 922b can be applied after the convolution hidden layer 922a (if a non-linear hidden layer is used, it is applied after the non-linear hidden layer). The pooling hidden layer 922b is used to simplify the information from the output of the convolution hidden layer 922a. For example, the pooling hidden layer 922b can obtain each activation map output by the convolution hidden layer 922a and generate a compressed activation map (or feature map) using a pooling function. Maximum pooling is an example of a function performed by the pooling hidden layer. The pooling hidden layer 922a can also use other forms of pooling functions, such as average pooling, L2-norm pooling, or other suitable pooling functions. The pooling function (e.g., a maximum pooling filter, an L2-norm filter, or other suitable pooling filter) is applied to each activation map included in the convolution hidden layer 922a. In Fig. 9 In the example shown, three pooling filters are used on the three activation maps in the convolutional hidden layer 922a.
[0169] In some examples, max pooling can be used by applying a max pooling filter (e.g., of size 2x2) with a stride (e.g., equal to the dimension of the filter, such as a stride of 2) to the activation map output by the convolutional hidden layer 922a. The output of the max pooling filter includes the maximum number in each sub-region of the filter convolution. Taking a 2×2 filter as an example, each unit in the pooling layer can summarize a region of 2×2 nodes in the previous layer (where each node is a value in the activation map). For example, four values (nodes) in the activation map will be analyzed by a 2×2 max pooling filter at each iteration, where the maximum of the four values will be output as the "maximum" value. If such a max pooling filter is applied to the activation filter from the convolutional hidden layer 922a, and it has a dimension of 24x24 nodes, the output of the pooling hidden layer 922b will be an array of 12x12 nodes.
[0170] In some examples, an L2-norm pooling filter may also be used. The L2-norm pooling filter involves calculating the square root of the sum of the squares of the values in a 2×2 region (or other suitable region) of the activation map (rather than calculating the maximum value as in max pooling), and using the calculated value as output.
[0171] Intuitively, the pooling function (e.g., max pooling, L2-norm pooling, or other pooling functions) determines whether a given feature is found anywhere in the image region and ignores the exact location information. Doing so does not affect the result of feature detection, because once a feature is found, the exact location of the feature is not important, what matters is its approximate location relative to other features. The benefit of max pooling (and other pooling methods) is that the number of pooled features is reduced a lot, thereby reducing the number of parameters required for the last few layers of CNN 900.
[0172] The last connected layer in the network is a fully connected layer that connects each node from the pooling hidden layer 922b to each output node in the output layer 924. Using the above example, the input layer includes 28x28 nodes that encode the pixel intensities of the input image; the convolutional hidden layer 922a includes 3×24×24 hidden feature nodes based on applying a 5×5 local receptive field (for filters) to the three activation maps; and the pooling hidden layer 922b includes 3×12×12 hidden feature nodes based on applying a max pooling filter to a 2×2 region of each of the three feature maps. Extending this example, the output layer 924 can include 10 output nodes. In this example, each node of the 3x12x12 pooling hidden layer 922b is connected to each node of the output layer 924.
[0173] The fully connected layer 922c can obtain the output of the previous pooled hidden layer 922b (which should be represented as an activation map of high-level features) and determine the features that are most relevant to a particular category. For example, the fully connected layer 922c layer can determine the high-level features that are most relevant to a particular category and can include weights (nodes) for the high-level features. The product of the weights of the fully connected layer 922c and the weights of the pooled hidden layer 922b can be calculated to obtain the probabilities of different categories. For example, if CNN 900 is used to generate optical flow, high values will appear in the activation map, which represent high-level features of the movement of visual elements from one frame to another.
[0174] In some examples, the output of the output layer 924 may include an M-dimensional vector (in the previous example, M=10), where M may include data corresponding to possible motion vector directions in the optical flow, possible motion vector magnitudes in the optical flow, possible weight values in the weighted map, etc. In an illustrative example, if the 9-dimensional output vector representing ten different possible values is [00 0.05 0.8 0 0.15 0 0 0 0], the vector indicates that the probability of the third value is 5%, the probability of the fourth value is 80%, and the probability of the sixth value is 15%. The probability of a possible value can be regarded as the degree of confidence or certainty of the value (e.g., the motion vector direction, the motion vector magnitude, the weight value, etc.).
[0175] Fig. 10A 100A, which uses one or more autoencoders to warp a reference frame 1005 in a feature domain based on one or more trained neural networks. t ) of the input frame 1010 and time t-1(v t12 ) is input to an autoencoder 1015 consisting of an encoder 1020 and a decoder 1025. t) and reference frame 1005(v t-1 ) The corresponding data may include the MS optical flow (f) indicating the movement from time t-1 to time t t ) (not shown) and the corresponding residual (r t ) (not shown). The autoencoder 1015 can output the reconstructed optical flow and the reconstructed residual
[0176] Reference frame 1005 (v t-1 ) passes through the first autoencoder (represented by a series of blocks, where each block represents a set of layers in CNN900). The reconstructed optical flow The first autoencoder may include a warp block, where the warp is performed in the feature space. The reconstructed optical flow transformed into the feature space using the second autoencoder can be used to transform the reference frame 1005 (v t-1 ) performs the warping. The first autoencoder can generate a prediction frame at time t It can be for input frame 1010 (v t ) prediction. Prediction frame and the reconstructed residual can be added by adder 1050 to generate a reconstructed input frame Reconstructed input frame It can be input frame 1010 (v t ) is a reconstructed version of the predicted frame. It is also possible to obtain the input frame 1010 (v t ) is subtracted to generate the residual (r t ).
[0177] Fig. 10B 1 is a conceptual diagram showing a multi-scale warping engine 1000B that warps a reference frame 1005 in a feature domain and performs residual compensation in the feature domain using one or more autoencoders based on one or more trained neural networks. The multi-scale warping engine 1000B is similar to the multi-scale warping engine 1000A, but includes a reconstructed residual The warping block of the first autoencoder receives the reconstructed residual The first autoencoder is therefore able to generate a reconstructed residual in the feature space
[0178] The Multiscale Warp Engine 1000A can be Figure 4A Codec System 495A and / or Figure 4B An example of a codec system 495B. The multi-scale warp engine 1000B is Figure 4A Codec System 495A and / or Figure 4B Example of codec system 495B.
[0179] Fig.11A is a flow chart illustrating an example of a data encoding process 1100A according to some examples. Fig.11A The process 1100A shown in the flowchart of can be performed by a codec device. The codec device can be or can include the encoding device 104, the decoding device 112, the video source 102, the video destination device 122, the codec system 295, the automatic encoder 260, the encoder 250, the decoder 255, the codec system 395A, the codec system 395B, the automatic encoder 360, the encoder 350, the decoder 355, the OptFlow2D engine 325, the Warp2D engine 310A, the Warp2D engine 310B, the Warp2D engine 310C, the codec system 495A, the codec system 495B, the automatic encoder 460, the encoder 450, the decoder 4 ... owMS engine 425, WarpMS engine 410A, WarpMS engine 410B, WarpMS engine 410C, neural network (NN) 800, convolutional neural network (CNN) 900, multi-scale warping engine 1000A, multi-scale warping engine 1000B, image capture device, video capture device, image processing device, video processing device, image capture and processing device, video capture and processing device, camera, mobile phone, wearable device, head-mounted display (HMD) device, vehicle, one or more network servers of a cloud service, computing system 1200, other types of systems or devices discussed herein, or specific combinations thereof.
[0180] At operation 1105, the codec device receives video data including an input frame describing a scene at a first time and a reference frame describing a scene at a second time. For example, the codec device may receive video data from a video source 102, such as a camera, an image capture device, an image processing device, or a combination thereof. Examples of input frames for operation 1105 include input frame 220(v), input frame 320(v), input frame 420(v), input frame 1010(v at time t, and input frame 1020(v at time t). t ), other input frames described herein, or a combination thereof. Examples of the reference frame of operation 1105 include reference frames Reference Frame Reference Frame The reference frame 1005 (v t-1), other reference frames described herein, or combinations thereof.
[0181] In some examples, the first time is after the second time. For example, time t in 10A-10B is an example of the first time. Figures 10A-10B The time t-1 in is an example of a second time. In some examples, the first time is before the second time. In some examples, the first time is simultaneous with the second time (e.g., if the input frame and the reference frame are captured using different cameras and / or different image sensors).
[0182] In some examples, the reference frame is encoded as an intra-coded frame in the encoded video data. In some examples, the input frame is encoded as an intra-coded frame in the encoded video data. For example, in Figure 2 In some examples, the input frame is encoded as an intra-coded frame in the encoded video data. For example, in Figure 3A-3B , Figures 4A-4B and Figures 10A-10B In , the input frames are encoded as inter-coded frames.
[0183] In operation 1110, the codec device generates an optical flow based on the input frame and the reference frame. The optical flow identifies one or more movements in one or more regions of the scene between the reference frame and the input frame. Examples of the optical flow of operation 1110 include 2D optical flow 330 (f 2D ), reconstructed 2D optical flow The 2D optical flow component (f MS ), the 2D optical flow component of the reconstructed MS optical flow 435 2D optical flow 515(f xy ), the reconstructed optical flow (and / or its 2D optical flow component), other types of optical flow discussed herein, or combinations thereof. The codec device may downsize the optical flow, such as using downsizing 520. The codec device may adjust the amplitude in the optical flow, such as using amplitude adjustment 525.
[0184] In some examples, the codec device generates an optical flow based on an input frame and a reference frame using one or more trained neural networks. For example, the codec device may generate an optical flow using one or more trained NNs of the encoding device 104, one or more trained NNs of the decoding device 112, one or more trained NNs of the autoencoder 260, one or more trained NNs of the encoder 250, one or more trained NNs of the decoder 255, one or more trained NNs of the OptFlow2D engine 325, one or more trained NNs of the autoencoder 360, one or more trained NNs of the encoder 350, one or more trained NNs of the decoder 355, one or more trained NNs of the OptFlowMS engine 425, one or more trained NNs of the autoencoder 460, one or more trained NNs of the encoder 450, one or more trained NNs of the decoder 455, one or more of the NNs 800, one or more of the CNNs 900, one or more NNs of the multiscale warp engine 1000A, one or more NNs of the multiscale warp engine 1000B, other NNs discussed herein, or one or more of a combination thereof.
[0185] In some examples, the optical flow of operation 1110 is a 2D optical flow, such as 2D optical flow 330 (f 2D ), reconstructed 2D optical flow The 2D optical flow component (f MS ), the 2D optical flow component of the reconstructed MS optical flow 435 2D optical flow 515(f xy ), the reconstructed optical flow (and / or its 2D optical flow component), other types of optical flow discussed herein, or combinations thereof. The one or more movements identified by the optical flow can be movements along a plane having two vertical dimensions. The two vertical dimensions can be a vertical dimension (y) and a horizontal dimension (x). In some aspects, the optical flow can identify the direction of movement and the magnitude of movement of each pixel in the input frame. In some aspects, the optical flow is identified and / or stored using an optical flow image. The direction of movement can be identified based on the hue in the optical flow image. The magnitude of movement can be determined based on the saturation in the optical flow image. Figure 5 2D optical flow in 515(f xy ) is shown as an optical flow image, where darker areas represent areas with higher saturation, and the hue of the darker areas is identified by text superimposed on the darker areas.
[0186] In operation 1115, the codec device generates a weighted map based on the reference frame and the input frame. An example of the weighted map of operation 1115 includes the MS optical flow 430 (f MS)’s weighted graph component (f z ), reconstructed MS optical flow The reconstructed weighted graph components of Weighted graph 530(f z ), using the differential index 535 to perform differential indexing on the weighted graph 530 (f z ), Figure 5 The difference index weighted graph f z_0 , Figure 5 The difference index weighted graph f z_1 , Figure 5 The difference index weighted graph f z_2 , Figure 5 The difference index weighted graph f z_3 , weighted graph 630(f z ), using the differential index 640 to perform differential indexing on the weighted graph 630 (f z ), the weighted graph 650A of the most precise (0th) scale (f z_0 ), the weighted graph 650B of the fine (first) scale (f z_1 ), coarse (second) scale weighted graph 650C (f z_2 ), the coarsest (third) scale weighted graph 650D (f z_3 ), the reconstructed optical flow The reconstructed weighted graph components of Other weighted graphs discussed herein or combinations thereof. The codec device may downsize the weighted graph, for example using downsizing 540. In some examples, the weighted graph may be identified and / or stored using a weighted graph image, where images with higher weights appear darker in the weighted graph image and images with lower weights appear lighter in the weighted graph image (or vice versa). An example weighted graph image is provided in weighted graph 530 (f z ), Figure 5 The difference index weighted graph f in z_0 , Figure 5 The difference index weighted graph f in z_1 , Figure 5 The difference index weighted graph f in z_2 , weighted graph 630(f z ), the weighted graph 650A of the most precise (0th) scale (f z_0 ), the weighted graph 650B of the fine (first) scale (f z_1 ), coarse (second) scale weighted graph 650C (f z_2 ) and the coarsest (third) scale weighted graph 650D (f z_3 ) in the diagram.
[0187] In some examples, the codec device generates a weighted graph based on the input frame and the reference frame using one or more trained neural networks. For example, the codec device may generate a weighted graph using one or more trained NNs of the encoding device 104, one or more trained NNs of the decoding device 112, one or more trained NNs of the autoencoder 260, one or more trained NNs of the encoder 250, one or more trained NNs of the decoder 255, one or more trained NNs of the OptFlow2D engine 325, one or more trained NNs of the autoencoder 360, one or more trained NNs of the encoder 350, one or more trained NNs of the decoder 355, one or more trained NNs of the OptFlowMS engine 425, one or more trained NNs of the autoencoder 460, one or more trained NNs of the encoder 450, one or more trained NNs of the decoder 455, one or more of the NNs 800, one or more of the CNNs 900, one or more of the multiscale warp engine 1000A, one or more of the multiscale warp engine 1000B, one or more of the other NNs discussed herein, or one or more of a combination thereof.
[0188] In operation 1120, the codec device generates encoded video data by encoding the video data at least in part based on the optical flow and the weighted map. In some examples, the encoded video data can be decoded using a decoder that conforms to one or more video coding standards. In some examples, the codec device can act as the encoding device 104 and can send the encoded video data to the decoding device 112 via the communication link 120. In some examples, the codec device can send the encoded video data to the video destination device 122. Examples of the encoded video data of operation 1120 include the encoded frame data 285 (video e ), the encoded frame data 385 (v e ), the encoded frame data 485 (v e ), other encoded frame data discussed herein, other encoded video data discussed herein, or a combination thereof. The encoder portion of a codec device can perform encoded video data to generate encoded video data. Examples of encoders include encoding devices 104, encoders 250, encoders 350, encoders 450, encoder portions of multiscale warp engines 1000A, encoder portions of multiscale warp engines 1000B, other encoders discussed herein, or a combination thereof. In some aspects, video data encoding based on optical flow and weighted graphs includes video data compression based on optical flow and weighted graphs. Video data compression based on optical flow and weighted graphs can be performed using any compression scheme.
[0189] In some examples, the codec device can generate the predicted frame at least in part by warping the reference frame based on the optical flow and the weighted map. For example, the codec system 495B generates the predicted frame based on the MS optical flow 430 (f MS )’s 2D optical flow component (f xy ) and MS optical flow 430(f MS )’s weighted graph component (f z ) for the reference frame Warp to generate a predicted frame Examples of predicted frames may include predicted frames Predicted Frame Predicted Frame Predicted Frame Predicted Frame Predicted Frame Predicted Frame Predicted Frame Other predicted frames described herein or combinations thereof. The codec device may generate a residual based on the difference between the input frame and the predicted frame. For example, the codec system 495B may generate a residual based on the difference between the input frame 420 (v) and the predicted frame The difference between (calculated by subtractor 465) generates a residual 440 (r). Examples of residuals include residual 340 (r), reconstructed residual Residual 440(r), reconstructed residual Fig. 10A The residual (r) (not shown), Fig. 10B The residual (r) (not shown), the reconstructed residual Other residuals described herein or combinations thereof. In operation 1120, encoding the video data based on optical flow and weighted maps may include encoding the video data based on residuals.
[0190] The codec device may use one or more trained neural networks to warp the reference frame based on the optical flow and the weighted map. For example, the codec device may use one or more trained NNs of the encoding device 104, one or more trained NNs of the decoding device 112, one or more trained NNs of the autoencoder 260, one or more trained NNs of the encoder 250 to warp the reference frame based on the optical flow and the weighted map, one or more trained NNs of the decoder 255, one or more trained NNs of the OptFlow2D engine 325, one or more trained NNs of the Warp2D engine 310A, one or more trained NNs of the Warp2D engine 310B, one or more trained NNs of the Warp2D engine 310C, the autoencoder 360, and one or more trained NNs of the decoder 255. 0, one or more trained NNs of encoder 350, one or more trained NNs of decoder 355, one or more trained NNs of OptFlowMS engine 425, one or more trained NNs of WarpMS engine 410A, one or more trained NNs of WarpMS engine 410B, one or more trained NNs of WarpMS engine 410C, one or more trained NNs of autoencoder 460, one or more trained NNs of encoder 450, one or more trained NNs of decoder 455, one or more trained NNs of warp engine 550, one or more of NN 800, one or more of CNN 900, one or more NNs of multi-scale warp engine 1000A, one or more NNs of multi-scale warp engine 1000B, other NNs discussed herein, or combinations thereof, to warp the reference frame.
[0191] In some examples, a codec device that warps a reference frame based on an optical flow and a weighted map itself includes multiple operations. For example, the codec device can generate at least a first differential index weighted map and a second differential index weighted map based on the weighted map. Examples of the first differential index weighted map and / or the second differential index weighted map include Figure 5 The difference index weighted graph f in z_0 , Figure 5 The difference index weighted graph f in z_1 , Figure 5 The difference index weighted graph f in z_2 , Figure 5 The difference index weighted graph f in z_3 , the weighted graph 650A (f z_0 ), the weighted graph 650B of the fine (first) scale (f z_1 ), coarse (second) scale weighted graph 650C (f z_2) and the coarsest (third) scale weighted graph 650D (f z_3 ). The codec device may generate a first differential index weighted map and / or a second differential index weighted map using differential index 535, differential index 640, or a combination thereof. The codec device may generate a first warped frame at least in part by warping a reference frame based on an optical flow. The codec device may generate a second warped frame at least in part by warping a downsized variant of the reference frame based on an optical flow. Figure 5 The codec device may generate the first warped frame and / or the second warped frame using the following partial formulas: Due to the different i values used in the formula, the first warped frame and the second warped frame may be different. For example, for the first warped frame, i may be zero, while for the second warped frame, i may be a positive integer greater than zero (e.g., 1, 2, 3).
[0192] The codec device may downsize the downsized variant of the reference frame using downsizing 510. The codec device may downsize the downsized variant of the optical flow using downsizing 520. In some aspects, the codec device may also adjust a magnitude 525 of the downsized variant of the optical flow before or after downsizing using downsizing 520. The codec device may determine a first product of the first warped frame and the first differential index weighted map. The codec device may determine a second product of the second warped frame and the second differential index weighted map. Figure 5 The codec device may use the formula Generate a first product and / or a second product. The first product and the second product may be different due to different i values used in the formula. For example, for the first product, i may be zero, and for the second product, i may be a positive integer greater than zero (e.g., 1, 2, 3). The codec device may determine a sum of the size-enlarged variants of the first product and the second product. The codec device may perform size enlargement on the size-enlarged variant of the second product using size enlargement 555. The codec device may determine the sum using summation 560. The sum may generate a predicted frame. For example, reference Figure 5 , sum 560 to generate a predicted frame
[0193] In some examples, the codec device can generate a reconstructed optical flow based on the optical flow. For example, the codec system 495A generates a reconstructed optical flow based on the MS optical flow 430 (f MS ) Generate the reconstructed MS optical flow Codec system 495A is based on MS optical flow 430 (f MS )’s 2D optical flow component (f xy), generating the reconstructed MS optical flow The reconstructed 2D optical flow component The codec device may generate a reconstructed weighted graph based on the weighted graph. For example, the codec system 495A may generate a reconstructed weighted graph based on the MS optical flow 430 (f MS ) Generate the reconstructed MS optical flow Codec system 495A is based on MS optical flow 430 (f MS )’s weighted graph component (f z ), generating the reconstructed MS optical flow The reconstructed weighted graph components of The codec device generates the predicted frame at least in part by warping the reference frame based on the reconstructed optical flow and the reconstructed weighted map. For example, the codec system 495A generates the predicted frame by using the WarpMS engine 410A based on the reconstructed MS optical flow. Reference frame Warp and generate prediction frame The codec system 495A uses the WarpMS engine 410A to generate the reconstructed MS optical flow. The reconstructed 2D optical flow component of and the reconstructed MS optical flow The reconstructed weighted graph components of Reference frame Warp to generate prediction frame 415A Examples of predicted frames may include predicted frames Predicted Frame Predicted Frame Predicted Frame Predicted Frame Predicted Frame Predicted Frame Predicted Frame Other predicted frames described herein or combinations thereof. The codec device may generate a residual based on the difference between the input frame and the predicted frame. For example, the codec system 495A generates a residual based on the difference between the input frame 420 (r) and the predicted frame The difference between (calculated by subtractor 465) generates a residual 440 (r). Examples of residuals include residual 340 (r), reconstructed residual Residual 440(r), reconstructed residual 445 Fig. 10A The residual (r) (not shown), Fig. 10B The residual (r) (not shown), the reconstructed residual 1035 Other residuals described herein or combinations thereof. In operation 1120, encoding the video data based on optical flow and weighted maps may include encoding the video data based on residuals.
[0194] As described in operation 1120, encoding the video data based on the optical flow and the weighted map may include encoding the video data using an autoencoder. Examples of autoencoders include system 100, autoencoder 260, autoencoder 360, autoencoder 460, one or more autoencoders of multi-scale warp engine 1000A, one or more autoencoders of multi-scale warp engine 1000B, other autoencoders discussed herein, other encoders discussed herein, other decoders discussed herein, or combinations thereof.
[0195] The codec device may use one or more trained neural networks to warp the reference frame based on the reconstructed optical flow and the reconstructed weighted map. For example, the codec device may use one or more trained NNs of the encoding device 104, one or more trained NNs of the decoding device 112, one or more trained NNs of the autoencoder 260, one or more trained NNs of the encoder 250, one or more trained NNs of the decoder 255, one or more trained NNs of the OptFlow2D engine 325, one or more trained NNs of the Warp2D engine 310A, one or more trained NNs of the Warp2D engine 310B, one or more trained NNs of the Warp2D engine 310C, one or more trained NNs of the autoencoder 360, and one or more trained NNs of the decoder 255. A trained NN, one or more trained NNs of the encoder 350, one or more trained NNs of the decoder 355, one or more trained NNs of the OptFlowMS engine 425, one or more trained NNs of the WarpMS engine 410A, one or more trained NNs of the WarpMS engine 410B, one or more trained NNs of the WarpMS engine 410C, one or more trained NNs of the autoencoder 460, one or more trained NNs of the encoder 450, one or more trained NNs of the decoder 455, one or more trained NNs of the warp engine 550, one or more of the NNs 800, one or more of the CNNs 900, one or more NNs of the multi-scale warp engine 1000A, one or more NNs of the multi-scale warp engine 1000B, other NNs discussed herein, or combinations thereof, warp a reference frame based on optical flow and a weighted graph.
[0196] In some examples, a codec device that warps a reference frame based on a reconstructed optical flow and a reconstructed weighted map itself includes multiple operations. For example, the codec device can generate at least a first differential index weighted map and a second differential index weighted map based on the reconstructed weighted map. Examples of the first differential index weighted map and the second differential index weighted map include Figure 5 The difference index weighted graph f in z_0 , Figure 5The difference index weighted graph f in z_1 , Figure 5 The difference index weighted graph f in z_2 , Figure 5 The difference index weighted graph f in z_3 , the weighted graph 650A (f z_0 ), the weighted graph 650B of the fine (first) scale (f z_1 ), coarse (second) scale weighted graph 650C (f z_2 ) and the coarsest (third) scale weighted graph 650D (f z_3 ). The codec device may generate a first differential index weighted map and / or a second differential index weighted map using differential index 535, differential index 640, or a combination thereof. The codec device may generate a first warped frame by warping the reference frame based at least in part on the reconstructed optical flow. The codec device may generate a second warped frame by warping a reduced-size variant of the reference frame based at least in part on the reconstructed optical flow. Figure 5 The codec device may generate the first warped frame and / or the second warped frame using the following partial formulas: Due to the different i values used in the formula, the first warped frame and the second warped frame may be different. For example, for the first warped frame, i may be zero, while for the second warped frame, i may be a positive integer greater than zero (e.g., 1, 2, 3).
[0197] The codec device may downsize the downsized variant of the reference frame using downsizing 510. The codec device may downsize the downsized variant of the reconstructed optical flow using downsizing 520. In some aspects, the codec device may also adjust the magnitude 525 of the downsized variant of the reconstructed optical flow before or after downsizing using downsizing 520. The codec device may determine a first product of the first warped frame and the first differential index weighted map. The codec device may determine a second product of the second warped frame and the second differential index weighted map. Figure 5 The codec device may use the formula Generate a first product and / or a second product. The first product and the second product may be different due to different i values used in the formula. For example, for the first product, i may be zero, and for the second product, i may be a positive integer greater than zero (e.g., 1, 2, 3). The codec device may determine the sum of the size-enlarged variants of the first product and the second product. The codec device may perform size enlargement on the size-enlarged variant of the second product using size enlargement 555. The codec device may determine the sum using summation 560. The sum may generate a predicted frame. For example, reference Figure 5 , sum 560 to generate a predicted frame
[0198] In some examples, the weighted map (and / or a reconstructed variant thereof) generated in operation 1115 includes a value greater than a threshold for a first region of the reference frame and includes a value less than a threshold for a second region of the reference frame. The encoded video data generated in operation 1120 may include data corresponding to the first region encoded at a fine level of detail and may also include data corresponding to the second region encoded at a coarse level of detail. For example, reference Figure 6 , the threshold value may be 0.25, 0.50 or 0.75, because these values are used for differential indexing 640, thereby differentially indexing the weighted graph 630 to different scaled weighted graphs 650A-650D with different fine and coarse levels. The threshold value may be an inflection point, a crossover point, a maximum value, a minimum value, or a Figure 7A-7B 710, 715, 720, or 725. For example, the threshold value may be 0.1, 0.2, 0.25, 0.3, 0.4, 0.5, 0.6, 0.7, 0.75, 0.8, 0.9, a value less than 0.1, a value greater than 0.9, or a value between any two of the values listed above.
[0199] In some examples, the encoded video data can be decoded using a decoder. The decoder can comply with one or more video decoder standards. Examples of decoders include decoding device 112, decoder 255, decoder 355, decoder 455, a decoder portion of multi-scale warping engine 1000A, a decoder portion of multi-scale warping engine 1000B, a codec device performing operation 1100A, a codec device performing operation 1100B, other decoders discussed herein, or combinations thereof.
[0200] Fig. 11B is a flow chart illustrating an example of a data decoding process 1100B based on some examples. Fig. 11BThe process 1100B shown in the flowchart of can be performed by a codec device. The codec device can be or can include an encoding device 104, a decoding device 112, a video source 102, a video destination device 122, a codec system 295, an automatic encoder 260, an encoder 250, a decoder 255, a codec system 395A, a codec system 395B, an automatic encoder 360, an encoder 350, a decoder 355, an OptFlow2D engine 325, a Warp2D engine 310A, a Warp2D engine 310B, a Warp2D engine 310C, a codec system 495A, a codec system 495B, an automatic encoder 460, an encoder 450, a decoder 4 ... FlowMS engine 425, WarpMS engine 410A, WarpMS engine 410B, WarpMS engine 410C, neural network (NN) 800, convolutional neural network (CNN) 900, multi-scale warping engine 1000A, multi-scale warping engine 1000B, image capture device, video capture device, image processing device, video processing device, image capture and processing device, video capture and processing device, camera, mobile phone, wearable device, head mounted display (HMD) device, vehicle, one or more network servers of cloud service, computing system 1200, other systems or devices discussed herein, or some combination thereof. In some examples, execution Fig. 11B The codec device of process 1100B may be executed Fig.11A In some examples, executing Fig. 11B The codec device of process 1100B may be executed with Fig.11A The codec device of process 1100a differs from codec device to codec device.
[0201] At operation 1130, the codec device receives the encoded data. In some examples, Fig. 11B The encoded data received at operation 1130 of process 1100B may be in Fig.11A In some examples, the encoded data generated in operation 1120 of process 1100A is executed. Fig. 11B The process 1100B of the codec device and the execution Fig.11A Similar to the codec device of process 1100A of the embodiment, the codec device receiving the encoded data at operation 1130 includes the codec device receiving the encoded data from the encoder component of the codec device. In some examples, performing Fig. 11B The process 1100B of the codec device and the execution Fig.11A Unlike the codec device of process 1100A, the codec device receiving the encoded data at operation 1130 includes executing Fig. 11B The codec device of process 1100B performs Fig.11A The codec device of process 1100A receives the encoded data, or receives the encoded data from the intermediate device, which performs Fig.11A In process 1100A, a codec device receives encoded data.
[0202] In some examples, the encoded video data is encoded using an encoder. In some examples, the encoder may comply with one or more video encoder standards. Examples of encoders include encoding device 104, encoder 250, encoder 350, encoder 450, an encoder portion of multi-scale warp engine 1000A, an encoder portion of multi-scale warp engine 1000B, a codec device performing operation 1100A, a codec device performing operation 1100B, other decoders discussed herein, or combinations thereof.
[0203] At operation 1135, the codec device generates a reconstructed optical flow from the encoded video data. The reconstructed optical flow identifies one or more movements in one or more regions of the scene between the reference frame and the input frame. The reference frame and the input frame can describe scenes at different times. In some examples, the reconstructed optical flow of operation 1135 can be based on the optical flow generated in operation 1110. For example, the reconstructed optical flow of operation 1135 can be a reconstruction of the optical flow of operation 1110, which is reconstructed and / or decoded from the encoded video data. The reconstructed optical flow of operation 1135 may include the difference between it and the optical flow reconstructed by the reconstructed optical flow. For example, if the encoded video data is compressed using lossy compression, and the reconstructed optical flow is generated by decompressing at least a portion of the encoded video data during the reconstruction process, this difference may be caused by the reconstruction process.
[0204] In some examples, the reference frame and input frame of operation 1135 may be the reference frame and input frame of operation 1105. Examples of the input frame of operation 1135 include input frame 220(v), input frame 320(v), input frame 420(v), input frame 1010(v) at time t, and input frame 1010(v) at time t. t ), other input frames described herein, or a combination thereof. Examples of reference frames of operation 1135 include reference frames Reference Frame Reference Frame The reference frame 1005 (v t-1 ), other reference frames described herein, or combinations thereof.
[0205] Examples of the reconstructed optical flow of operation 1135 include the reconstructed 2D optical flow 2D optical flow component of the reconstructed MS optical flow 435 2D optical flow 515(f xy )(It can be about Figure 5 The reconstructed optical flow discussed), the reconstructed optical flow (and / or its 2D optical flow components), other types of reconstructed optical flows discussed herein, or combinations thereof. The codec device may downsize the reconstructed optical flow, for example using downsizing 520. The codec device may adjust the amplitude in the reconstructed optical flow, for example using amplitude adjustment 525.
[0206] In some examples, the codec device generates a reconstructed optical flow from the encoded video data using one or more trained neural networks. For example, the codec device may generate an optical flow using one or more trained NNs of the encoding device 104, one or more trained NNs of the decoding device 112, one or more trained NNs of the autoencoder 260, one or more trained NNs of the encoder 250, one or more trained NNs of the decoder 255, one or more trained NNs of the OptFlow2D engine 325, one or more trained NNs of the autoencoder 360, one or more trained NNs of the encoder 350, one or more trained NNs of the decoder 355, one or more trained NNs of the OptFlowMS engine 425, one or more trained NNs of the autoencoder 460, one or more trained NNs of the encoder 450, one or more trained NNs of the decoder 455, one or more of the NNs 800, one or more of the CNNs 900, one or more NNs of the multiscale warp engine 1000A, one or more NNs of the multiscale warp engine 1000B, other NNs discussed herein, or one or more of a combination thereof.
[0207] In some examples, the reconstructed optical flow of operation 1135 is a 2D optical flow, such as the reconstructed 2D optical flow 2D optical flow component of the reconstructed MS optical flow 435 2D optical flow 515(f xy ), the reconstructed optical flow (and / or its 2D optical flow components), other reconstructed optical flows discussed herein, or combinations thereof. The one or more movements identified by the reconstructed optical flow can be movements along a plane having two vertical dimensions. The two vertical dimensions can be a vertical dimension (y) and a horizontal dimension (x). In some aspects, the optical flow can identify the direction of movement and the magnitude of movement of each pixel in the input frame. In some aspects, the reconstructed optical flow is identified and / or stored using an optical flow image. The direction of movement can be identified based on the hue in the optical flow image. The magnitude of movement can be determined based on the saturation in the optical flow image. Figure 5 2D optical flow in 515(fxy ) is shown as an optical flow image, where darker areas represent areas with higher saturation, and the hue of the darker areas is identified by text superimposed on the darker areas.
[0208] At operation 1140, the codec device generates a reconstructed weighted graph from the encoded video data. In some examples, the reconstructed weighted graph of operation 1140 may be based on the weighted graph generated in operation 1115. For example, the reconstructed weighted graph of operation 1140 may be a reconstruction of the weighted graph reconstructed and / or decoded from the encoded video data in operation 1115. The reconstructed weighted graph of operation 1140 may include a difference from the reconstructed weighted graph. Such a difference may be caused by a reconstruction process, for example, if the encoded video data is compressed using lossy compression, and the reconstruction process generates a reconstructed weighted graph by decompressing at least a portion of the encoded video data.
[0209] The reconstructed weighted graph of operation 1140 may include the reconstructed MS optical flow The reconstructed weighted graph components of Weighted graph 530(f z ), using the differential index 535 to perform differential indexing on the weighted graph 530 (f z ), Figure 5 The difference index weighted graph f z_0 , Figure 5 The difference index weighted graph f z_1 , Figure 5 The difference index weighted graph f z_2 , Figure 5 The difference index weighted graph f z_3 , weighted graph 630(f z ), using the differential index 640 to perform differential indexing on the weighted graph 630 (f z ), the weighted graph 650A of the most precise (0th) scale (f z_0 ), the weighted graph 650B of the fine (first) scale (f z_1 ), coarse (second) scale weighted graph 650C (f z_2 ), the coarsest (third) scale weighted graph 650D (f z_3 ), the reconstructed optical flow The reconstructed weighted graph components of Other weighted graphs discussed herein or combinations thereof. The codec device may downsize the reconstructed weighted graph, for example using downsizing 540. In some examples, the reconstructed weighted graph may be identified and / or stored using a weighted graph image, where images with higher weights are darker in the weighted graph image and images with lower weights are lighter in the weighted graph image (or vice versa). An example of a weighted graph image provided in the illustration is weighted graph 530 (f z ), using the differential index 535 to perform differential indexing on the weighted graph 530 (f z ), Figure 5 The difference index weighted graph f z_0 , Figure 5 The difference index weighted graph f z_1 , Figure 5 The difference index weighted graph f z_2 , Figure 5 The difference index weighted graph f z_3 , weighted graph 630(f z ), using the differential index 640 to perform differential indexing on the weighted graph 630 (f z ), the weighted graph 650A of the most precise (0th) scale (f z_0 ), the weighted graph 650B of the fine (first) scale (f z_1 ), coarse (second) scale weighted graph 650C (f z_2 ), the coarsest (third) scale weighted graph 650D (f z_3 ).
[0210] In some examples, the codec device generates a reconstructed weighted graph based on the input frame and the reference frame using one or more trained neural networks. For example, the codec device may generate a reconstructed weighted graph using one or more trained NNs of the encoding device 104, one or more trained NNs of the decoding device 112, one or more trained NNs of the autoencoder 260, one or more trained NNs of the encoder 250, one or more trained NNs of the decoder 255, one or more trained NNs of the OptFlow2D engine 325, one or more trained NNs of the autoencoder 360, one or more trained NNs of the encoder 350, one or more trained NNs of the decoder 355, one or more trained NNs of the OptFlowMS engine 425, one or more trained NNs of the autoencoder 460, one or more trained NNs of the encoder 450, one or more trained NNs of the decoder 455, one or more NNs 800, one or more CNNs 900, one or more NNs of the multi-scale warp engine 1000A, one or more NNs of the multi-scale warp engine 1000B, one or more other NNs discussed herein, or one or more of a combination thereof.
[0211] At operation 1145, the codec device generates a prediction frame by warping the reference frame at least in part based on the reconstructed optical flow and the reconstructed weighted map. Examples of the prediction frame of operation 1145 include the prediction frame Predicted Frame Predicted Frame Predicted Frame Predicted Frame Predicted Frame Predicted Frame Predicted Frame Other prediction frames or combinations thereof described herein. In operations 1135 and 1145, the reference frame may be a reconstructed reference frame. For example, before process 1100B, the reference frame may have been reconstructed using process 1100B to replace the input frame with the reference frame and replace the reference frame with a second reference frame.
[0212] The codec device may warp the reference frame using one or more trained neural networks based on the reconstructed optical flow of operation 1135 and the reconstructed weighted map of operation 1140. For example, the codec device may warp the reference frame using one or more trained NNs of the encoding device 104, one or more trained NNs of the decoding device 112, one or more trained NNs of the autoencoder 260, one or more trained NNs of the encoder 250, one or more trained NNs of the decoder 255, one or more trained NNs of the OptFlow2D engine 325, one or more trained NNs of the Warp2D engine 310A, one or more trained NNs of the Warp2D engine 310B, one or more trained NNs of the Warp2D engine 310C, based on the reconstructed optical flow of operation 1135 and the reconstructed weighted map of operation 1140. N, one or more trained NNs of the autoencoder 360, one or more trained NNs of the encoder 350, one or more trained NNs of the decoder 355, one or more trained NNs of the OptFlowMS engine 425, one or more trained NNs of the WarpMS engine 410A, one or more trained NNs of the WarpMS engine 410B, one or more trained NNs of the WarpMS engine 410C, one or more trained NNs of the autoencoder 460, one or more trained NNs of the encoder 450, one or more trained NNs of the decoder 455, one or more trained NNs of the warp engine 550, one or more NNs of the NN 800, one or more NNs of the CNN 900, one or more NNs of the multi-scale warp engine 1000A, one or more NNs of the multi-scale warp engine 1000B, other NNs discussed herein, or combinations thereof, warp the reference frame.
[0213] In some examples, the codec device warping the reference frame based on the reconstructed optical flow of operation 1135 and the reconstructed weighted map of operation 1140 itself includes multiple operations. For example, the codec device generates at least a first differential index weighted map and a second differential index weighted map based on the reconstructed weighted map of operation 1140. Examples of the first differential index weighted map and the second differential index weighted map include Figure 5 The difference index weighted graph f in z_0 , Figure 5 The difference index weighted graph f in z_1 , Figure 5 The difference index weighted graph f in z_2 , Figure 5 The difference index weighted graph f in z_3 , the weighted graph 650A (f z_0), the weighted graph 650B of the fine (first) scale (f z_1 ), coarse (second) scale weighted graph 650C (f z_2 ) and the coarsest (third) scale weighted graph 650D (f z_3 ). The codec device may generate a first differential index weighted map and / or a second differential index weighted map using differential index 535, differential index 640, or a combination thereof. The codec device may generate a first warped frame by warping the reference frame based at least in part on the reconstructed optical flow. The codec device may generate a second warped frame by warping a reduced-size variant of the reference frame based at least in part on the reconstructed optical flow. Figure 5 The codec device may generate the first warped frame and / or the second warped frame using the following partial formulas: Due to the different i values used in the formula, the first warped frame and the second warped frame may be different. For example, for the first warped frame, i may be zero, while for the second warped frame, i may be a positive integer greater than zero (e.g., 1, 2, 3).
[0214] The codec device may downsize the downsized variant of the reference frame using downsizing 510. The codec device may downsize the downsized variant of the reconstructed optical flow using downsizing 520. In some aspects, the codec device may also adjust the magnitude 525 of the downsized variant of the reconstructed optical flow before or after downsizing using downsizing 520. The codec device may determine a first product of the first warped frame and the first differential index weighted map. The codec device may determine a second product of the second warped frame and the second differential index weighted map. Figure 5 The codec device may use the formula Generate a first product and / or a second product. The first product and the second product may be different due to different i values used in the formula. For example, for the first product, i may be zero, and for the second product, i may be a positive integer greater than zero (e.g., 1, 2, 3). The codec device may determine the sum of the size-enlarged variants of the first product and the second product. The codec device may perform size enlargement on the size-enlarged variant of the second product using size enlargement 555. The codec device may determine the sum using summation 560. The sum may generate a predicted frame of operation 1145. For example, with reference to Figure 5 , and 560 generates a prediction frame
[0215] In some examples, the reconstructed weighted map generated in operation 1140 includes a value greater than a threshold for a first region of the reference frame and includes a value less than a threshold for a second region of the reference frame. The encoded video data generated in operation 1120 may include data corresponding to the first region encoded at a fine level of detail and may also include data corresponding to the second region encoded at a coarse level of detail. For example, referring to Figure 6 , the threshold value may be 0.25, 0.50 or 0.75, because these values are used for differential indexing 640, thereby differentially indexing the weighted graph 630 to different scaled weighted graphs 650A-650D with different fine and coarse levels. The threshold value may be an inflection point, a crossover point, a maximum value, a minimum value, or a Figure 7A-7B 710, 715, 720, or 725. For example, the threshold value may be 0.1, 0.2, 0.25, 0.3, 0.4, 0.5, 0.6, 0.7, 0.75, 0.8, 0.9, a value less than 0.1, a value greater than 0.9, or a value between any two of the values listed above.
[0216] In operation 1150, the codec device generates an input frame based on the reconstruction of the input frame based on the prediction frame. The input frame based on the reconstruction of the input frame may include a reconstructed input frame as a reconstruction of the input frame. In some examples, the reconstructed input frame of operation 1150 may be based on the input frame of operation 1105. For example, the reconstructed input frame of operation 1140 may be a reconstruction of the input frame of operation 1105 reconstructed based on the prediction frame (and in some examples, the reconstructed residual). The reconstructed input frame of operation 1150 may include a difference from the reconstructed input frame that the reconstructed input frame is reconstructed. This difference may be caused by the reconstruction process, for example, if lossy compression is used to compress the encoded video data, and the reconstructed input frame is generated using a prediction frame based on the reconstructed data decompressed from at least a portion of the encoded video data.
[0217] In some examples, the codec device generates a reconstructed residual based on the residual from the encoded video data. In order to generate a reconstructed input frame in operation 1150, one or more processors can be configured to, and can generate a reconstructed input frame based on the predicted frame (operation 1145) and the reconstructed residual. The reconstructed residual based on the residual can include a reconstructed residual, which is a reconstruction of the residual reconstructed by the codec device from at least a portion of the encoded video data. The reconstructed residual can include a difference with the residual, that is, the reconstructed residual is a reconstruction of the residual. This difference may be caused by a reconstruction process, for example, if the encoded video data is compressed using lossy compression, and the reconstruction process generates a reconstructed residual by decompressing at least a portion of the encoded video data.
[0218] Examples of reconstructed residuals include reconstructed residuals Reconstructed residual Reconstructed residual Other reconstructed residuals or combinations thereof described herein. Examples of residuals include residual 340(r), residual 440(r), Fig. 10A The residual (r) (not shown), Fig. 10B The residual (r) (not shown), other residuals described herein, or a combination thereof.
[0219] In some examples, the residual is based on the difference between the input frame and the predicted frame. Examples of such residuals include Figure 3A The residual 340(r) and Figure 4A The residual is 440(r).
[0220] In some examples, the residual is based on the difference between the input frame and the second predicted frame. The second predicted frame is a warped variation of the reference frame based on optical flow and a weighted map. The optical flow and weighted map can be generated based on the reference frame and the input frame. Examples of such residuals include Figure 3B 340(r) and Figure 4B The residual is 440(r). Figure 3B In the context of is an example of the second predicted frame, and the predicted frame is an example of a predicted frame of operation 1145. Figure 3B In the context of A variation of , and based on the optical flow 330 (f 2D ) and / or weighted graphs ( Figure 3B It is distorted by the Figure 4B In the context of A variation of the multi-scale flow 430 (f MS )’s optical flow component and weighted map component to distort it.
[0221] In some examples, as Fig. 11B As part of process 1100B, perform Fig. 11B The codec device of process 1100B may perform the present invention as Fig.11A In some examples, as part of process 1100A, Fig.11A As part of process 1100BA, perform Fig.11A The codec device of process 1100A may perform the process described herein as Fig. 11B One or more operations described as part of process 1100B.
[0222] In some cases, Figures 11A-11BAt least a subset of the process 1100A shown in the flowchart and Figure 1 , 2 , 3A, 3B, 4A, 4B, 5, 6, 8, 9, 10A, and 10B can be performed remotely by one or more network servers of a cloud service. In some examples, the processes described herein (e.g., Figure 1 , 2 , 3A, 3B, 4A, 4B, 5, 6, 8, 9, 10A, and 10B, and / or other processes described herein) can be performed by a computing system or device. In some examples, Figure 1 , 2 , 3A, 3B, 4A, 4B, 5, 6, 8, 9, 10A, and 10B, the processes 1100A, 1100B, and / or techniques shown in the conceptual diagrams may be performed by one or more of the encoding device 104, the decoding device 112, the video source 102, the video destination device 122, the codec system 295, the autoencoder 260, the video source 102, the video destination device 122, the autoencoder 260, the encoder 250, the decoder 255, the codec system 395A, the codec system 395B, the autoencoder 360, the encoder 350, the decoder 355, the OptFlow2D engine 325, the Warp2D engine 310A, the Warp2D engine 310B, the Warp2D engine 310C, the codec system 495A , codec system 495B, autoencoder 460, encoder 450, decoder 455, OptFlow3D engine 425, WarpMS engine 410A, WarpMS engine 410B, WarpMS engine 410C, neural network (NN) 800, convolutional neural network (CNN) 900, multi-scale warping engine 1000A, multi-scale warping engine 1000B, image capture device, video capture device, image processing device, video processing device, image capture and processing device, video capture and processing device, camera, mobile phone, wearable device, head-mounted display (HMD) device, vehicle, one or more network servers of a cloud service, computing system 1200, another system or device discussed herein, or some combination thereof. Figure 1 , 2 , 3A, 3B, 4A, 4B, 5, 6, 8, 9, 10A and 10B, the processes 1100A, 1100B and / or techniques shown in the conceptual diagrams may be performed by a person having Fig.12The computing system 1200 architecture shown is implemented by a computing system. The computing system may include any suitable device, such as a mobile device (e.g., a mobile phone), a desktop computing system, a tablet computing system, a wearable device (e.g., a VR headset, an AR headset), a VR headset, an AR headset, an AR glasses, a watch or smart watch connected to a network or other wearable device), a camera device, a server computer, a vehicle or a computing system of a vehicle, an unmanned vehicle or a computing system of an unmanned vehicle, a robotic device, a television, and / or any other computing system having resource capabilities to execute the processes described herein, including Figure 1 , 2 , 3A, 3B, 4A, 4B, 5, 6, 8, 9, 10A, and 10B conceptual diagrams, processes 1100A, 1100B, and / or techniques. In some cases, a computing system or device may include various components, such as one or more input devices, one or more output devices, one or more processors, one or more microprocessors, one or more microcomputers, one or more cameras, one or more sensors, and / or other components that are configured to perform the steps of the processes described herein. In some examples, a computing system may include a display, a network interface configured to communicate and / or receive data, any combination thereof, and / or other components. The network interface may be configured to communicate and / or receive data based on an Internet Protocol (IP) or other types of data.
[0223] The components of the computing system may be implemented by circuits. For example, the components may include and / or may be implemented using electronic circuits or other electronic hardware, which may include one or more programmable electronic circuits (e.g., microprocessors, graphics processing units (GPUs), digital signal processors (DSPs), central processing units (CPUs), and / or other suitable electronic circuits), and / or may include and / or may be implemented using computer software, firmware, or any combination thereof to perform the various operations described herein.
[0224] Figure 1 , 2 , 3A, 3B, 4A, 4B, 5, 6, 8, 9, 10A and 10B, and Figures 11A-11BThe process illustrated in the flowchart is organized as a logical flow chart, and its operations represent a sequence of operations that can be implemented by hardware, computer instructions, or a combination thereof. In terms of computer instructions, the operations represent computer-executable instructions stored on one or more computer-readable storage media, which, when executed by one or more processors, perform the operations. In general, computer-executable instructions include routines, programs, objects, components, data structures, etc. that perform specific functions or implement specific data types. The order of the operations described is not intended to be limiting, and any number of the operations described may be combined in any order and / or in parallel to implement the process.
[0225] also, Figure 1 , 2 , 3A, 3B, 4A, 4B, 5, 6, 8, 9, 10A and 10B concept drawings, Figures 11A-11B The flowcharts and / or other processes described herein may be executed under the control of one or more computer systems configured with executable instructions, and may be implemented by hardware or a combination thereof as code (e.g., executable instructions, one or more computer programs, or one or more applications) that collectively runs on one or more processors. As described above, the code may be stored on a computer-readable or machine-readable storage medium, for example, in the form of a computer program that contains a plurality of instructions that may be executed by one or more processors. The computer-readable or machine-readable storage medium may be non-transitory.
[0226] Fig.12 is a schematic diagram illustrating an example of a system for implementing certain aspects of the present technology. In particular, Fig.12 An example of a computing system 1200 is shown, which may be, for example, any computing device constituting an internal computing system, a remote computing system, a camera, or any component thereof, wherein the components of the system communicate with each other using connection 1205. Connection 1205 may be a physical connection using a bus, or a direct connection to processor 1210, such as in a chipset architecture. Connection 1205 may also be a virtual connection, a network connection, or a logical connection.
[0227] In some embodiments, computing system 1200 is a distributed system, wherein the functionality described in the present disclosure may be distributed across a data center, multiple data centers, a peer-to-peer network, etc. In some embodiments, the one or more system components described represent a plurality of such components, each of which performs some or all of the functionality of the described component. In some embodiments, the component may be a physical device or a virtual device.
[0228] The example system 1200 includes at least one processing unit (CPU or processor) 1210 and connections 1205 connecting various system components including system memory 1215, such as read-only memory (ROM) 1220 and random access memory (RAM) 1225 to the processor 1210. The computing system 1200 may include a high-speed memory cache 1212 directly connected to the processor 1210, close to the processor 1210, or integrated as part of the processor 1210.
[0229] Processor 1210 may include any general purpose processor and hardware or software services, such as services 1232, 1234, and 1236 stored in storage device 1230, configured to control processor 1210 and a dedicated processor that integrates software instructions into the actual processor design. Processor 1210 is essentially a completely independent computing system that includes multiple cores or processors, buses, memory controllers, caches, etc. Multi-core processors can be symmetric or asymmetric.
[0230] To implement user interaction, the computing system 1200 includes input devices 1245, which can represent any number of input mechanisms, such as a microphone for voice, a touch-sensitive screen for gesture or graphical input, a keyboard, a mouse, motion input, voice, etc. The computing system 1200 can also include output devices 1235, which can be one or more of a variety of output mechanisms. In some cases, a multimodal system enables a user to provide multiple types of input / output to communicate with the computing system 1200. The computing system 1200 may include a communication interface 1240, which can generally manage user input and system output. The communication interface can use a wired and / or wireless transceiver to perform or facilitate the reception and / or transmission of wired or wireless communications, including the use of an audio jack / plug, a microphone jack / plug, a universal serial bus (USB) port / plug, Ports / plugs, Ethernet ports / plugs, Fiber optic ports / plugs, Proprietary wired ports / plugs, Wireless signal transmission, Low energy (BLE) wireless signal transmission, Wireless signal transmission, radio frequency identification (RFID) wireless signal transmission, near field communication (NFC) wireless signal transmission, dedicated short range communication (DSRC) wireless signal transmission, 802.11 Wi-Fi wireless signal transmission, wireless local area network (WLAN) signal transmission, visible light communication (VLC), Worldwide Interoperability for Microwave Access (WiMAX), infrared (IR) communication wireless signal transmission, public switched telephone network (PSTN) signal transmission, integrated services digital network (ISDN) signal transmission, 3G / 4G / 5G / LTE cellular data network wireless signal transmission, special network signal transmission, radio wave signal transmission, microwave signal transmission, infrared signal transmission, visible light signal transmission, ultraviolet signal transmission, wireless signal transmission along the electromagnetic spectrum, or a specific combination thereof. The communication interface 1240 may also include one or more global navigation satellite system (GNSS) receivers or transceivers for determining the location of the computing system 1200 based on receiving one or more signals from one or more satellites associated with one or more GNSS systems. Global Navigation Satellite Systems include, but are not limited to, the United States-based Global Positioning System (GPS), the Russian-based Global Navigation Satellite System (GLONASS), the Chinese-based BeiDou Navigation Satellite System (BDS), and the European-based Galileo Global Navigation Satellite System. There is no restriction to run on any specific hardware configuration, so the basic functionality here can be easily replaced as hardware or firmware configurations improve.
[0231] The storage device 1230 may be a non-volatile and / or non-temporary and / or computer-readable storage device, and may be a hard disk or other type of computer-readable medium that can store computer-accessible data, such as a magnetic tape, a flash memory card, a solid-state storage device, a digital versatile disk, a cassette, a floppy disk, a flexible disk, a hard disk, a magnetic tape, a magnetic stripe, any other magnetic storage medium, a flash memory, a memristive memory, any other solid-state memory, a compact disk-read-only memory (CD-ROM) optical disk, a rewritable compact disk (CD) optical disk, a digital video disk (DVD) optical disk, a Blu-ray disc (BDD) optical disk, a holographic optical disk, other optical media, a secure digital (SD) card, a micro secure digital (microSD) card, Card, smart card chip, EMV chip, subscriber identity module (SIM) card, mini / micro / nano / pico SIM card, other integrated circuit (IC) chip / card, random access memory (RAM), static RAM (SRAM), dynamic RAM (DRAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash EPROM (FLASHEPROM), cache memory (L1 / L2 / L3 / L4 / L5 / L#), resistive random access memory (RRAM / ReRAM), phase change memory (PCM), spin transfer torque RAM (STT-RAM), other memory chips or storage boxes and / or combinations thereof.
[0232] Storage device 1230 may include software services, servers, services, etc., which, when the code defining such software is executed by processor 1210, causes the system to perform a certain function. In some embodiments, hardware services that perform a particular function may include software components stored in a computer-readable medium that interface with the necessary hardware components (such as processor 1210, connection 1205, output device 1235, etc.) to perform the function.
[0233] As used herein, the term "computer-readable medium" includes, but is not limited to, portable or non-portable storage devices, optical storage devices, and various other media capable of storing, including or carrying instructions and / or data. Computer-readable media include non-temporary media that can store data, which do not include carrier waves and / or temporary electronic signals that are propagated wirelessly or through wired connections. Examples of non-temporary media include, but are not limited to, optical storage media such as disks or tapes, compact disks (CDs) or digital versatile disks (DVDs), flash memory, memory, or storage devices. Computer-readable media can store code and / or machine-executable instructions that can represent any combination of processes, functions, subroutines, programs, routines, subroutines, modules, software encapsulation, classes, or instructions, data structures, or program statements. Code segments can be coupled to other code segments or hardware circuits by passing and / or receiving information, data, independent variables, parameters, or storage content. Information, independent variables, parameters, data, etc. can be passed, forwarded, or transmitted in any suitable manner, including memory sharing, message passing, token passing, network transmission, etc.
[0234] In some embodiments, computer-readable storage devices, media, and memories may include wired or wireless signals containing bit streams, etc. However, when referred to, non-transitory computer-readable storage media explicitly exclude media such as energy, carrier signals, electromagnetic waves, and signals themselves.
[0235] Specific details are provided in the above description to provide a thorough understanding of the embodiments and examples provided herein. However, it will be appreciated by those skilled in the art that the present embodiment can be implemented without these specific details. For ease of explanation, in some cases, the present technology may be represented as including a single functional block, including a functional block consisting of a combination of a step or routine in a method embodied by a device, a device component, software, or a combination of hardware and software. In addition to the components shown in the figure and / or the components described herein, other components may also be used. For example, circuits, systems, networks, processing, and other components may be displayed in the form of a block diagram to avoid obscuring the embodiments of the present invention in unnecessary details. In other cases, well-known circuits, processing, algorithms, structures, and techniques may not display unnecessary details to avoid obscuring embodiments of the present invention.
[0236] A single embodiment may be described above as a process or method, which is described as a flow chart, flowchart, data flow diagram, structure diagram, or block diagram. Although a flow chart may describe operations as a sequential process, many operations may be performed in parallel or concurrently. In addition, the order of operations may be rearranged. A process terminates after its operations are completed, but there may be other steps not included in the figure. A process may correspond to a method, function, procedure, subroutine, subprogram, etc. When a process corresponds to a function, its termination may correspond to the function returning to the calling function or main function.
[0237] The processes and methods according to the above examples can be implemented using computer executable instructions, which can be stored or otherwise provided from a computer readable medium. For example, such instructions may include instructions and data that cause or otherwise configure a general-purpose computer, a special-purpose computer, or a processing device to perform a specific function or group of functions. Some of the computer resources used may be accessed through a network. Computer executable instructions can be binary files, intermediate format instructions (such as assembly language), firmware, source code, etc. Examples of computer readable media include disks or optical disks, flash memory, USB devices with non-volatile memory, network storage devices, etc.
[0238] Devices implementing processes and methods according to these disclosures may include hardware, software, firmware, middleware, microcode, hardware description language, or any combination thereof, and may use any of a variety of form factors. When implemented with software, firmware, middleware, or microcode, program code or code segments (e.g., computer program products) that perform necessary tasks may be stored in a computer-readable or machine-readable medium. The processor may perform the necessary tasks. Typical form factor examples include notebook computers, smart phones, mobile phones, tablet devices or other small personal computers, personal digital assistants, rack-mounted devices, stand-alone devices, etc. The functions described herein may also be embodied in peripherals or add-on cards. By further illustration, these functions may also be implemented in different chips on a circuit board or in different processes executed in a single device.
[0239] Instructions, media for delivering these instructions, computing resources for executing these instructions, and other structures for supporting these computing resources are example means for providing the functions described in this disclosure.
[0240] In the above description, various aspects of the application are described with reference to its embodiments, but those skilled in the art will recognize that the application is not limited thereto. Therefore, although exemplary embodiments of the present application have been described in detail herein, it should be understood that the concepts of the present invention may be embodied and used in various other ways, and the appended claims are intended to be interpreted as including these changes unless limited by the prior art. The various features and aspects of the above-mentioned application may be used alone or in combination. In addition, without departing from the broader spirit and scope of this specification, the present embodiment may also be used in any environment and application other than that described herein. Therefore, this specification and the accompanying drawings should be regarded as illustrative rather than restrictive. For illustration purposes, the method is described in a specific order. It should be understood that in other embodiments, the method may be performed in an order different from the described order.
[0241] Those skilled in the art will understand that the less than ("<") and greater than (">") symbols or terms used herein may be replaced by less than or equal to ("≤") and greater than or equal to ("≥") symbols, respectively, without departing from the scope of the present description.
[0242] When a component is described as being "configured to" perform a particular operation, such configuration may be accomplished by, for example, designing electronic circuits or other hardware to perform the operation, by programming programmable electronic circuits (e.g., a microprocessor or other suitable electronic circuitry) to perform the operation, or any combination thereof.
[0243] The phrase "coupled to" refers to any component that is physically connected directly or indirectly to another component, and / or any component that communicates directly or indirectly with another component (e.g., connected to another component via a wired or wireless connection and / or other suitable communication interface).
[0244] Claim language or other language reciting "at least one" and / or "one or more" of a group means that one member of the group or multiple members of the group (in any combination) satisfy the claim. For example, "at least one of A and B" means A, B, or A and B. In another example, "at least one of A, B, and C" means A, B, C, or A and B, or A and C, or B and C, or A and B and C. For example, the claim recitation "at least one of A and B" may mean A, B, or A and B, and may also include items not listed in the A and B set.
[0245] Various illustrative logic blocks, modules, circuits and algorithm steps related to the embodiments disclosed herein can be implemented as electronic hardware, computer software, firmware or a combination thereof. In order to clearly illustrate this interchangeability of hardware and software, various illustrative components, modules, circuits and steps have been generally described above from a functional perspective. As for whether these functions are implemented in the form of hardware or software, it depends on specific applications and design restrictions to the entire system. Those skilled in the art can implement the functions in different ways for each specific application, but the decision of this implementation should not be interpreted as departing from the scope of the application.
[0246] The techniques described herein may also be implemented by electronic hardware, computer software, firmware, or any combination thereof. These techniques may be implemented in any of a variety of devices, such as general-purpose computers, wireless communication device mobile phones, or integrated circuit devices with multiple uses, including applications in wireless communication device mobile phones and other devices. Any functions described as modules or components may be implemented together in an integrated logic device, or may be implemented separately as discrete but interoperable logic devices. If implemented with software, these techniques may be implemented at least in part by a computer-readable data storage medium, which includes a program code, including instructions, and when these instructions are run, one or more of the above methods may be executed. A computer-readable data storage medium may constitute a part of a computer program product, which may include packaging materials. A computer-readable medium may include a memory or data storage medium, such as a random access memory (RAM) such as a synchronous dynamic random access memory (SDRAM), a read-only memory (ROM), a non-volatile random access memory (NVRAM), an electrically erasable programmable read-only memory (EEPROM), a flash memory (FLASH), a magnetic or optical data storage medium, etc. Additionally or alternatively, these techniques may also be implemented at least in part by a computer-readable communication medium that carries or communicates program code in the form of instructions or data structures and can be accessed, read and / or executed by a computer, such as a propagated signal or wave.
[0247] The program code can be run by a processor, which includes one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Such a processor can be configured to perform any of the techniques described in this disclosure. A general-purpose processor can be a microprocessor, but it can also be any conventional processor, controller, microcontroller, or state machine. The processor can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, a combination of one or more microprocessors and a DSP core, or any other such configuration. Therefore, the term "processor" used herein can refer to any of the above structures, a combination of any of the above structures, or any other structure or device suitable for implementing the technology described herein. In addition, in some aspects, the functions described herein can be provided in a dedicated software module or a hardware module configured for encoding and decoding, or integrated in a combined video encoder-decoder (CODEC).
[0248] Illustrative aspects of the disclosure include:
[0249] Aspect 1: A device for data encoding, the device comprising: a memory; and one or more processors coupled to the memory, the one or more processors being configured to: receive video data comprising an input frame describing a scene at a first time and a reference frame describing the scene at a second time; generate an optical flow based on the input frame and the reference frame, the optical flow identifying one or more movements in one or more regions of the scene between the reference frame and the input frame; generate a weighted map based on the reference frame and the input frame; and generate encoded video data at least in part by encoding the video data based on the optical flow and the weighted map.
[0250] Aspect 2: The apparatus according to aspect 1, wherein the first time is after the second time.
[0251] Aspect 3: The apparatus according to any one of aspects 1 to 2, wherein the reference frame is encoded as an intra-coded frame in the encoded video data, and wherein the input frame is encoded as an inter-coded frame in the encoded video data.
[0252] Aspect 4: An apparatus according to any one of Aspects 1 to 3, wherein the one or more processors are configured to: generate a predicted frame at least in part by warping a reference frame based on an optical flow and a weighted map; and generate a residual based on a difference between an input frame and a predicted frame, wherein in order to encode video data based on the optical flow and the weighted map, the one or more processors are configured to encode the video data based on the residual.
[0253] Aspect 5: The apparatus according to any one of aspects 1 to 4, wherein, in order to warp the reference frame based on the optical flow and the weighted map, the one or more processors are configured to use one or more trained neural networks.
[0254] Aspect 6: An apparatus according to any one of Aspects 1 to 5, wherein, in order to warp a reference frame based on an optical flow and a weighted map, one or more processors are configured to generate at least a first differential index weighted map and a second differential index weighted map based on the weighted map; generate a first warped frame at least partially by warping the reference frame based on the optical flow; generate a second warped frame at least partially by warping a resized variant of the reference frame based on a resized variant of the optical flow; determine a first product of the first warped frame and the first differential index weighted map; determine a second product of the second warped frame and the second differential index weighted map; and determine the sum of the first product and the resized variant of the second product.
[0255] Aspect 7: An apparatus according to any one of Aspects 1 to 6, wherein one or more processors are configured to: generate a reconstructed optical flow based on the optical flow; generate a reconstructed weighted map based on the weighted map; generate a predicted frame at least in part by warping a reference frame based on the reconstructed optical flow and the reconstructed weighted map; and generate a residual based on the difference between the input frame and the predicted frame, wherein, in order to encode video data based on the optical flow and the weighted map, one or more processors are configured to encode the video data based on the residual.
[0256] Aspect 8: The apparatus according to any one of aspects 1 to 7, wherein, to generate the reconstructed optical flow based on the optical flow, the one or more processors are configured to use an autoencoder.
[0257] Aspect 9: The apparatus according to any one of aspects 1 to 8, wherein, to warp the reference frame based on the reconstructed optical flow and the reconstructed weighted map, the one or more processors are configured to use one or more trained neural networks.
[0258] Aspect 10: An apparatus according to any one of Aspects 1 to 9, wherein, in order to warp a reference frame based on a reconstructed optical flow and a reconstructed weighted map, one or more processors are configured to: generate at least a first differential index weighted map and a second differential index weighted map based on the reconstructed weighted map; generate a first warped frame at least partially by warping the reference frame based on the reconstructed optical flow; generate a second warped frame by warping a size-reduced variant of the reference frame at least partially based on a size-reduced variant of the reconstructed optical flow; determine a first product of the first warped frame and the first differential index weighted map; determine a second product of the second warped frame and the second differential index weighted map; and determine the sum of the size-enlarged variants of the first product and the second product.
[0259] Aspect 11: An apparatus according to any one of Aspects 1 to 10, wherein the weighted map includes a value greater than a threshold for a first region of a reference frame, wherein the weighted map includes a value less than a threshold for a second region of a reference frame, wherein the encoded video data includes data corresponding to the first region encoded at a fine detail level, and wherein the encoded video data includes data corresponding to the second region encoded at a coarse detail level.
[0260] Aspect 12: The apparatus according to any one of aspects 1 to 11, wherein the optical flow is a two-dimensional optical flow, and the one or more movements are performed along a plane having two perpendicular dimensions.
[0261] Aspect 13: The apparatus according to any one of aspects 1 to 12, wherein the optical flow identifies a movement direction and a movement magnitude of each pixel of the input frame.
[0262] Aspect 14: The apparatus according to any one of aspects 1 to 13, wherein the optical flow is identified using an optical flow image, wherein the movement direction is identified based on the hue in the optical flow image, and the movement amplitude is identified based on the saturation in the optical flow image.
[0263] Aspect 15: The apparatus according to any one of aspects 1 to 14, wherein, to generate the optical flow, the one or more processors are configured to use one or more trained neural networks.
[0264] Aspect 16: The apparatus according to any one of aspects 1 to 15, wherein, to generate the weighted graph, the one or more processors are configured to use one or more trained neural networks.
[0265] Aspect 17: The apparatus according to any one of aspects 1 to 16, wherein the encoded video data is decodable using a decoder that complies with one or more video decoder standards.
[0266] Aspect 18: The apparatus according to any one of aspects 1 to 17, wherein, in order to encode the video data based on the optical flow and the weighted map, the one or more processors are configured to compress the video data based on the optical flow and the weighted map.
[0267] Aspect 19: The device according to any one of aspects 1 to 18, wherein the device is one of a mobile device, a wireless communication device, and a camera device.
[0268] Aspect 20: The apparatus according to any one of aspects 1 to 19, wherein the apparatus comprises a camera, wherein the video data is captured by a camera.
[0269] Aspect 21: A data encoding method, the method comprising: receiving video data including an input frame describing a scene at a first time and a reference frame describing the scene at a second time; generating an optical flow based on the input frame and the reference frame, wherein the optical flow identifies one or more movements in one or more areas of the scene between the reference frame and the input frame; generating a weighted map based on the reference frame and the input frame; and generating encoded video data at least in part by encoding the video data based on the optical flow and the weighted map.
[0270] Aspect 22: The method according to Aspect 21, wherein the first time is after the second time.
[0271] Aspect 23: The method according to any one of aspects 21 to 22, wherein the reference frame is encoded as an intra-frame coded frame in the encoded video data, and wherein the input frame is encoded as an inter-frame coded frame in the encoded video data.
[0272] Aspect 24: The method according to any one of Aspects 21 to 23 further includes: generating a predicted frame at least in part by warping a reference frame based on an optical flow and a weighted map; and generating a residual based on a difference between an input frame and a predicted frame, wherein encoding video data based on the optical flow and the weighted map includes encoding video data based on the residual.
[0273] Aspect 25: The method according to any one of aspects 21 to 24, wherein warping the reference frame based on the optical flow and the weighted map comprises warping the reference frame based on the optical flow and the weighted map using one or more trained neural networks.
[0274] Aspect 26: A method according to any one of Aspects 21 to 25, wherein warping a reference frame based on optical flow and a weighted map comprises generating at least a first differential index weighted map and a second differential index weighted map based on the weighted map; generating a first warped frame at least partially by warping the reference frame based on the optical flow; generating a second warped frame at least partially by warping a resized variant of the reference frame based on a resized variant of the optical flow; determining a first product of the first warped frame and the first differential index weighted map; determining a second product of the second warped frame and the second differential index weighted map; and determining the sum of the first product and the resized variant of the second product.
[0275] Aspect 27: The method according to any one of Aspects 21 to 26 further includes: generating a reconstructed optical flow based on the optical flow; generating a reconstructed weighted map based on the weighted map; generating a predicted frame at least in part by warping a reference frame based on the reconstructed optical flow and the reconstructed weighted map; and generating a residual based on the difference between the input frame and the predicted frame, wherein encoding the video data based on the optical flow and the weighted map includes encoding the video data based on the residual.
[0276] Aspect 28: The method according to any one of aspects 21 to 27, wherein warping the reference frame based on the optical flow and the weighted map comprises warping the reference frame using an autoencoder based on the optical flow and the weighted map.
[0277] Aspect 29: The method according to any one of aspects 21 to 24, wherein warping the reference frame based on the optical flow and the weighted map comprises warping the reference frame based on the optical flow and the weighted map using one or more trained neural networks.
[0278] Aspect 30: A method according to any one of Aspects 21 to 29, wherein warping a reference frame based on a reconstructed optical flow and a reconstructed weighted map includes generating at least a first differential index weighted map and a second differential index weighted map based on the reconstructed weighted map; generating a first warped frame at least partially by warping the reference frame based on the reconstructed optical flow; generating a second warped frame at least partially by warping a resized variant of the reference frame based on a resized variant of the reconstructed optical flow; determining a first product of the first warped frame and the first differential index weighted map; determining a second product of the second warped frame and the second differential index weighted map; and determining the sum of the first product and the resized variant of the second product.
[0279] Aspect 31: A method according to any one of Aspects 21 to 30, wherein the weighted map includes a value greater than a threshold for a first region of a reference frame, wherein the weighted map includes a value less than a threshold for a second region of the reference frame, wherein the encoded video data includes data corresponding to the first region encoded at a fine detail level, and wherein the encoded video data includes data corresponding to the second region encoded at a coarse detail level.
[0280] Aspect 32: The method according to any one of aspects 21 to 31, wherein the optical flow is a two-dimensional optical flow, and the one or more movements are performed along a plane having two perpendicular dimensions.
[0281] Aspect 33: The method according to any one of aspects 21 to 32, wherein the optical flow identifies the movement direction and movement magnitude of each pixel of the input frame.
[0282] Aspect 34: The method according to any one of aspects 21 to 33, wherein the optical flow is identified using an optical flow image, wherein the movement direction is identified based on the hue in the optical flow image, and the movement amplitude is identified based on the saturation in the optical flow image.
[0283] Aspect 35: The method according to any one of aspects 21 to 34, wherein generating the optical flow based on the input frame and the reference frame comprises generating the optical flow based on the input frame and the reference frame using one or more trained neural networks.
[0284] Aspect 36: The method according to any one of aspects 21 to 35, wherein generating the weighted graph based on the reference frame and the input frame comprises generating the weighted graph based on the reference frame and the input frame using one or more trained neural networks.
[0285] Aspect 37: The method according to any one of aspects 21 to 36, wherein the encoded video data is decodable using a decoder that complies with one or more video decoder standards.
[0286] Clause 38: The method according to any one of Clauses 21 to 37, wherein encoding the video data based on the optical flow and the weighted map comprises compressing the video data based on the optical flow and the weighted map.
[0287] Aspect 39: A device for data decoding, the device comprising: a memory; and one or more processors coupled to the memory, the one or more processors being configured to: receive encoded video data; generate a reconstructed optical flow from the encoded video data, identify one or more movements in one or more areas of a scene between a reference frame and an input frame, the reference frame and the input frame describing the scene at different times; generate a reconstructed weighted map from the encoded video data; generate a predicted frame by warping the reference frame at least in part based on the reconstructed optical flow and the reconstructed weighted map; and generate a reconstructed input frame based on the input frame based on the predicted frame.
[0288] Aspect 40: An apparatus according to Aspect 39, wherein one or more processors are configured to: generate a reconstructed residual based on the residual from the encoded video data, wherein, in order to generate a reconstructed input frame, one or more processors are configured to generate a reconstructed input frame based on the predicted frame and the reconstructed residual.
[0289] Clause 41: The apparatus of clause 40, wherein the residual is based on a difference between an input frame and a predicted frame.
[0290] Aspect 42: An apparatus according to Aspect 40, wherein the residual is based on a difference between the input frame and a second predicted frame, wherein the second predicted frame is a variation of the reference frame warped based on an optical flow and a weighted map generated based on the reference frame and the input frame.
[0291] Aspect 43: An apparatus according to any one of Aspects 39 to 42, wherein, in order to warp a reference frame based on a reconstructed optical flow and a reconstructed weighted map, one or more processors are configured to: generate at least a first differential index weighted map and a second differential index weighted map based on the reconstructed weighted map; warp the reference frame at least partially based on the reconstructed optical flow to generate a first warped frame; warp a reduced-size variant of the reference frame at least partially based on a reduced-size variant of the reconstructed optical flow to generate a second warped frame; determine a first product of the first warped frame and the first differential index weighted map; determine a second product of the second warped frame and the second differential index weighted map; and determine the sum of the first product and the enlarged-size variant of the second product.
[0292] Aspect 44: The apparatus according to any one of Aspects 39 to 43, wherein, in order to warp the reference frame based on the reconstructed optical flow and the reconstructed weighted map, the one or more processors are configured to use one or more trained neural networks.
[0293] Clause 45: The apparatus according to any one of Clauses 39 to 44, wherein, to generate the reconstructed optical flow from the encoded video data, the one or more processors are configured to use one or more trained neural networks.
[0294] Aspect 46: The apparatus according to any one of aspects 39 to 45, wherein, to generate the reconstructed weighted graph from the encoded video data, the one or more processors are configured to use one or more trained neural networks.
[0295] Aspect 47: A data decoding method, the method comprising: receiving encoded video data; generating a reconstructed optical flow from the encoded video data, the optical flow identifying one or more movements in one or more areas of a scene between a reference frame and an input frame, the reference frame and the input frame describing the scene at different times; generating a reconstructed weighted map based on the encoded video data; generating a predicted frame by warping the reference frame at least in part based on the reconstructed optical flow and the reconstructed weighted map; and generating a reconstructed input frame based on the input frame based on the predicted frame.
[0296] Aspect 48: The method according to aspect 47 further includes: generating a reconstructed residual based on the residual from the encoded video data, wherein generating the reconstructed input frame includes generating the reconstructed input frame based on the predicted frame and the reconstructed residual.
[0297] Clause 49: The method according to clause 48, wherein the residual is based on the difference between the input frame and the predicted frame.
[0298] Aspect 50: A method according to aspect 48, wherein the residual is based on the difference between the input frame and a second predicted frame, wherein the second predicted frame is a variation of the reference frame warped based on an optical flow and a weighted map generated based on the reference frame and the input frame.
[0299] Aspect 51: A method according to any one of Aspects 47 to 50, wherein warping a reference frame based on a reconstructed optical flow and a reconstructed weighted map comprises: generating at least a first differential index weighted map and a second differential index weighted map based on the reconstructed weighted map; generating a first warped frame at least partially by warping the reference frame based on the reconstructed optical flow; generating a second warped frame at least partially by warping a resized variant of the reference frame based on a resized variant of the reconstructed optical flow; determining a first product of the first warped frame and the first differential index weighted map; determining a second product of the second warped frame and the second differential index weighted map; and determining the sum of the resized variants of the first product and the second product.
[0300] Aspect 52: A method according to any one of Aspects 47 to 51, wherein warping the reference frame based on the reconstructed optical flow and the reconstructed weighted map includes warping the reference frame based on the reconstructed optical flow and the reconstructed weighted map using one or more trained neural networks.
[0301] Aspect 53: The method according to any one of aspects 47 to 52, wherein generating the reconstructed optical flow from the encoded video data comprises generating the reconstructed optical flow from the encoded video data using one or more trained neural networks.
[0302] Aspect 54: The apparatus according to any one of aspects 47 to 53, wherein generating the reconstructed weighted graph from the encoded video data comprises generating the reconstructed weighted graph from the encoded video data using one or more trained neural networks.
[0303] Aspect 55: An apparatus for digital imaging, the apparatus comprising means for performing the operations according to any one of aspects 21 to 38 and / or aspects 47 to 54.
[0304] Aspect 56: A computer-readable storage medium storing instructions, which, when the instructions stored therein are executed, causes one or more processors to perform the operations described in any of Aspects 21 to 38 and / or any of Aspects 47 to 54.
Claims
1. A device for data encoding, the device comprising: Memory; as well as One or more processors coupled to the memory, the one or more processors configured to: receiving video data comprising an input frame describing a scene at a first time and a reference frame describing the scene at a second time; generating an optical flow based on the input frame and the reference frame, the optical flow identifying one or more movements in one or more regions of the scene between the reference frame and the input frame; generating a weighted map based on the reference frame and the input frame, the weighted map identifying a degree of certainty in the optical flow and comprising a first set of values corresponding to a first region of the reference frame, and a second set of values corresponding to a second region of the reference frame, the first set of values of the weighted map comprising values greater than a threshold for the first region of the reference frame, the second set of values of the weighted map comprising values less than the threshold for the second region of the reference frame, the second set of values being different from the first set of values; as well as generating encoded video data at least in part by encoding the video data based on the optical flow and the weighted map, the encoded video data comprising: a first set of data corresponding to the first region of the reference frame and encoded at a fine level of detail based on the first set of values from the weight map; as well as A second set of data corresponding to the second region of the reference frame and encoded at a coarse-detail level based on the second set of values from the weighted map. The device according to claim 1 , wherein the first time is after the second time.
3. The apparatus of claim 1, wherein the reference frame is encoded as an intra-coded frame in the encoded video data and the input frame is encoded as an inter-coded frame in the encoded video data.
4. The apparatus of claim 1 , wherein the one or more processors are configured to: generating a predicted frame at least in part by warping the reference frame based on the optical flow and the weighted map; and A residual is generated based on a difference between the input frame and the predicted frame, wherein to encode the video data based on the optical flow and the weighted map, the one or more processors are configured to encode the video data based on the residual.
5. The device according to claim 4, wherein: To warp the reference frame based on the optical flow and the weighted map, the one or more processors are configured to use one or more trained neural networks.
6. The device according to claim 4, wherein: To warp the reference frame based on the optical flow and the weighted map, the one or more processors are configured to: generating at least a first differential index weighted graph and a second differential index weighted graph based on the weighted graph; generating a first warped frame at least in part by warping the reference frame based on the optical flow; generating a second warped frame at least in part by warping a downsized version of the reference frame based on the downsized version of the optical flow; determining a first product of the first warped frame and the first difference index weighted map; determining a second product of the second warped frame and the second difference index weighted map; as well as A sum of the size-enlarged variations of the first product and the second product is determined.
7. The apparatus of claim 1, wherein the one or more processors are configured to: Based on the optical flow, generating a reconstructed optical flow; Based on the weighted graph, generating a reconstructed weighted graph; generating a predicted frame at least in part by warping the reference frame based on the reconstructed optical flow and the reconstructed weighted map; as well as Based on a difference between the input frame and the predicted frame, a residual is generated, wherein, in order to encode the video data based on the optical flow and the weighted map, the one or more processors are configured to encode the video data based on the residual.
8. The device according to claim 7, wherein: To generate a reconstructed optical flow based on the optical flow, the one or more processors are configured to use an autoencoder.
9. The device according to claim 7, wherein: To warp a reference frame based on the reconstructed optical flow and the reconstructed weighted map, the one or more processors are configured to: Based on the reconstructed weighted graph, generating at least a first differential index weighted graph and a second differential index weighted graph; generating a first warped frame at least in part by warping the reference frame based on the reconstructed optical flow; generating a second warped frame at least in part by warping a downsized version of the reference frame based on the downsized version of the reconstructed optical flow; determining a first product of the first warped frame and the first difference index weighted map; determining a second product of the second warped frame and the second difference index weighted map; as well as A sum of the size-enlarged variations of the first product and the second product is determined.
10. The apparatus of claim 1, wherein the optical flow is a two-dimensional optical flow and the one or more movements are performed along a plane having two perpendicular dimensions.
11. The apparatus of claim 1, wherein the optical flow identifies a movement direction and a movement magnitude of each pixel of the input frame.
12. The device according to claim 1, wherein: To generate the optical flow, the one or more processors are configured to use one or more trained neural networks.
13. The device according to claim 1, wherein: To generate the weighted graph, the one or more processors are configured to use one or more trained neural networks.
14. A device for data decoding, the device comprising: Memory; as well as One or more processors coupled to the memory, the one or more processors configured to: receiving encoded video data, the encoded video data comprising a first set of data corresponding to a first region of a reference frame and encoded at a fine level of detail based on a first set of values from a weighted map, and a second set of data corresponding to a second region of the reference frame and encoded at a coarse level of detail based on a second set of values from a weighted map, the first set of values of the weighted map comprising values greater than a threshold for the first region of the reference frame, the second set of values of the weighted map comprising values less than the threshold for the second region of the reference frame, wherein the weighted map identifies a degree of certainty in an optical flow associated with the encoded video data; generating a reconstructed optical flow from the encoded video data, the optical flow identifying one or more movements in one or more regions of a scene between a reference frame and an input frame, the reference frame and the input frame describing the scene at different times; generating a reconstructed weighted map from the encoded video data; generating a predicted frame at least in part by warping the reference frame based on the reconstructed optical flow and the reconstructed weighted map; as well as Based on the predicted frame, a reconstructed input frame based on the input frame is generated.
15. The apparatus of claim 14, wherein the one or more processors are configured to: A residual-based reconstructed residual is generated from the encoded video data, wherein To generate the reconstructed input frame, the one or more processors are configured to generate the reconstructed input frame based on the predicted frame and the reconstructed residual.
16. The apparatus of claim 15, wherein the residual is based on a difference between the input frame and the predicted frame.
17. An apparatus according to claim 15, wherein the residual is based on a difference between the input frame and a second predicted frame, wherein the second predicted frame is a variation of the reference frame warped based on the optical flow and the weighted map, and the optical flow and the weighted map have been generated based on the reference frame and the input frame.
18. The device according to claim 14, wherein: To warp the reference frame based on the reconstructed optical flow and the reconstructed weighted map, the one or more processors are configured to: Based on the reconstructed weighted graph, generating at least a first differential index weighted graph and a second differential index weighted graph; generating a first warped frame at least in part by warping the reference frame based on the reconstructed optical flow; generating a second warped frame at least in part by warping a downsized version of the reference frame based on the downsized version of the reconstructed optical flow; determining a first product of the first warped frame and the first difference index weighted map; determining a second product of the second warped frame and the second difference index weighted map; as well as A sum of the size-enlarged variations of the first product and the second product is determined.
19. The device according to claim 14, wherein: To warp the reference frame based on the reconstructed optical flow and the reconstructed weighted map, the one or more processors are configured to use one or more trained neural networks.
20. The device according to claim 14, wherein: To generate the reconstructed optical flow from the encoded video data, the one or more processors are configured to use one or more trained neural networks.
21. The device according to claim 14, wherein: To generate the reconstructed weighted graph from the encoded video data, the one or more processors are configured to use one or more trained neural networks.
22. A method for data decoding, the method comprising: receiving encoded video data, the encoded video data comprising a first set of data corresponding to a first region of a reference frame and encoded at a fine level of detail based on a first set of values from a weighted map, and a second set of data corresponding to a second region of the reference frame and encoded at a coarse level of detail based on a second set of values from a weighted map, the first set of values of the weighted map comprising values greater than a threshold for the first region of the reference frame, the second set of values of the weighted map comprising values less than the threshold for the second region of the reference frame, wherein the weighted map identifies a degree of certainty in an optical flow associated with the encoded video data; generating a reconstructed optical flow from the encoded video data, the optical flow identifying one or more movements in one or more regions of a scene between a reference frame and an input frame, the reference frame and the input frame describing the scene at different times; generating a reconstructed weighted map from the encoded video data; generating a predicted frame at least in part by warping the reference frame based on the reconstructed optical flow and the reconstructed weighted map; as well as Based on the predicted frame, a reconstructed input frame based on the input frame is generated.
23. The method according to claim 22, further comprising: A reconstructed residual based on the residual is generated from the encoded video data, wherein generating the reconstructed input frame includes generating the reconstructed input frame based on the predicted frame and the reconstructed residual.
24. The method of claim 23, wherein the residual is based on a difference between the input frame and the predicted frame.
25. The method of claim 23, wherein the residual is based on a difference between the input frame and a second predicted frame, wherein the second predicted frame is a variation of the reference frame warped based on optical flow and a weighted map, the optical flow and the weighted map having been generated based on the reference frame and the input frame.
26. The method of claim 22, wherein warping the reference frame based on the reconstructed optical flow and the reconstructed weighted map comprises: Based on the reconstructed weighted graph, generating at least a first differential index weighted graph and a second differential index weighted graph; generating a first warped frame at least in part by warping the reference frame based on the reconstructed optical flow; generating a second warped frame at least in part by warping a downsized version of the reference frame based on the downsized version of the reconstructed optical flow; determining a first product of the first warped frame and the first difference index weighted map; determining a second product of the second warped frame and the second difference-indexed weighted map; as well as A sum of the size-enlarged variations of the first product and the second product is determined.
27. The method of claim 22, wherein warping the reference frame based on the reconstructed optical flow and the reconstructed weighted map comprises: The reference frame is warped using one or more trained neural networks based on the reconstructed optical flow and the reconstructed weighted map.
28. The method of claim 22, wherein generating the reconstructed optical flow from the encoded video data comprises: The reconstructed optical flow is generated from the encoded video data using one or more trained neural networks.
29. The method of claim 22, wherein generating the reconstructed weighted graph from the encoded video data comprises: The reconstructed weighted graph is generated from the encoded video data using one or more trained neural networks.
30. A method for data encoding, the method comprising: receiving video data comprising an input frame describing a scene at a first time and a reference frame describing the scene at a second time; generating an optical flow based on the input frame and the reference frame, the optical flow identifying one or more movements in one or more regions of the scene between the reference frame and the input frame; generating a weighted map based on the reference frame and the input frame, the weighted map identifying a degree of certainty in the optical flow and comprising a first set of values corresponding to a first region of the reference frame, and a second set of values corresponding to a second region of the reference frame, the first set of values of the weighted map comprising values greater than a threshold for the first region of the reference frame, the second set of values of the weighted map comprising values less than the threshold for the second region of the reference frame, the second set of values being different from the first set of values; as well as generating encoded video data at least in part by encoding the video data based on the optical flow and the weighted map, the encoded video data comprising: a first set of data corresponding to the first region of the reference frame and encoded at a fine level of detail based on the first set of values from the weight map; as well as A second set of data corresponding to the second region of the reference frame and encoded at a coarse-detail level based on the second set of values from the weighted map.
31. A non-transitory computer readable medium having stored thereon one or more computer executable instructions, which, when executed by one or more processors, cause the one or more processors to perform the method according to any one of claims 22-29.
32. A non-transitory computer readable medium having stored thereon one or more computer executable instructions which, when executed by one or more processors, cause the one or more processors to perform the method of claim 30.
