Coding / decoding method and coding / decoding device for providing video data bit stream
By using parameterized algorithms and motion compensation vectors in video coding to process the global motion field caused by camera motion, the problem of low efficiency of spherical video coding in the existing technology is solved and more efficient motion vector compression is achieved.
Patent Information
- Application Number
- CN201980073962.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-09-14
- Filing Date
- 2019-09-13
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2039-09-13
AI Technical Summary
Existing video coding standards are difficult to efficiently handle the global motion field caused by camera motion, resulting in reduced coding efficiency for spherical videos. Especially in 360-degree videos, conventional inter-frame prediction schemes cannot effectively handle the global motion projected onto 2D video frames. Portion.
A parameterized algorithm is used for motion compensation, and the contribution of global motion to the motion vector prediction value is eliminated by determining the motion compensation vector, thereby improving coding efficiency. The method involves using camera parameters and projection models during encoding to model the global motion field and generate motion compensation maps to transmit motion compensation information in the encoder and decoder.
By eliminating the impact of global motion, the compression efficiency of motion vectors in video frames is significantly improved and the entropy value in the bitstream is reduced, thereby improving the overall efficiency of video encoding.
Smart Images

Figure CN112997499B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to video coding based on motion vector prediction values with global motion compensation, and in particular, but not exclusively, to a method and system for video coding based on motion vector prediction values with global motion compensation, a video decoder device and a video encoder device using such a method, and a computer program product for executing such a method. Background Art
[0002] The most advanced video coding standards use a hybrid block-based video coding scheme, in which a video frame is partitioned into video blocks, which are then encoded using a prediction block-based compression technique. Here, a video block (or simply a block) refers to the basic processing unit of a video standard, such as a coding tree unit (CTU) defined in HEVC, a macroblock defined in AVC, and a superblock defined in VP9 and AVC1. In some video coding standards such as HEVC, a block can be partitioned into smaller sub-blocks, such as coding units (CUs) and prediction units (PUs). Different prediction modes can be used to encode each block or sub-block. For example, blocks can be encoded using different intra-frame prediction modes based on prediction data within the same frame in order to exploit spatial redundancy within a video frame. In addition, blocks can be encoded using inter-frame prediction modes based on prediction data from another frame, so that temporal redundancy over a sequence of video frames can be exploited.
[0003] Inter-frame prediction uses motion estimation techniques to determine a motion vector (MV), where a motion vector identifies a block in an encoded reference video frame (past or future video frame) that is suitable for predicting a block in a video frame to be encoded, where the block to be encoded and its associated MV are usually referred to as a current block and a current MV, respectively. The difference between the predicted block and the current block can define a residual block, which can be encoded together with metadata such as the MV and transmitted to a video playback device, which includes a video decoder for decoding the encoded information using the metadata. In turn, the MV can be compressed by exploiting the correlation between the motion vector of the encoded block and the motion vector of the current block. Translationally moving objects in a video image usually contain multiple blocks with similar motion vectors in direction and length. Video coding standards usually exploit this correlation.
[0004] For example, motion vector compression schemes such as the so-called Advanced Motion Vector Prediction (AMVP) algorithm used by HEVC or the Dynamic Reference Motion Vector Prediction (REFMV) used by AV1 aim to compress information about motion vectors in the bitstream by using already calculated motion vectors as references for predicting the current MV. Such motion vectors may be referred to as motion vector predictors (MVPs). In this scheme, the MVP of the MV of the current block may be generated by determining candidate MVs of coded blocks of the current video frame or candidate MVs of blocks at the same position of a coded reference video frame, and selecting a candidate MV as the best predictor of the current block, i.e., the MVP, based on an optimization scheme such as the well-known rate-distortion optimization (RDO) scheme. The difference between the MVP and the MV and information about the selected motion vector predictor are entropy encoded into the bitstream. The decoder uses the information of the difference between the selected MVP and the MV to reconstruct the motion vector of the current block that needs to be decoded. Motion vector compression schemes for video standards are all based on the fact that due to the spatial correlation of pixels in blocks of consecutive frames, blocks close to the current block (e.g., neighboring blocks in the same video frame or co-located blocks in a reference frame) will generally have the same or similar motion vector values.
[0005] A problem associated with the inter-frame prediction algorithms used by most coding standards is that these algorithms assume that the motion is related to translational movement of objects in the video. This movement of objects in the image is sometimes called local motion. However, the motion vectors determined by motion estimation techniques provide an estimate of all motion in a video block of a video frame, i.e., local motion associated with moving objects and global motion associated with the moving background caused by a moving camera. Conventional inter-frame prediction schemes are optimized for local motion but are not designed to handle the effects of global motion.
[0006] Video coding schemes that can handle both local and global motion are known. For example, the Advanced Simple Profile (ASP) of the MPEG-4 standard includes an inter-frame prediction scheme that includes local motion estimation (LME) and global motion estimation (GME) for each block in a video frame. The encoder can select the best prediction for each block, i.e., a prediction based on the LME mode or a prediction based on the GME mode. If the GME mode is selected for one or more blocks in a video frame, a set of global motion parameters for the video frame is encoded and sent to a decoder device in a bitstream. The motion vector of the block for which the LME mode is selected is determined. Due to the increased complexity and computational load on the encoder and decoder sides, the proposed Advanced Simple Profile scheme is not well suited for hardware implementation. In addition, in conventionally generated (2D) videos, the global motion effects caused by camera motion (e.g., zoom or pan) are relatively short and difficult to predict, so the gain that can be achieved by the GME process is relatively small.
[0007] Currently, more and more professional and consumer cameras are capable of producing 360-degree video content. This type of video content (also called omnidirectional content) can be considered as pixels arranged on a spherical surface (sometimes also called a pixel sphere or a sphere of pixels), hereinafter referred to as spherical content. Compared to conventional video, the delivery of spherical content generally requires a higher bandwidth. Spherical content represents a wider field of view than conventional video (which can be based on straight or curved projections) and therefore contains more information than conventional (2D) video. In addition, in order to provide an "immersive" video experience, spherical video content generally contains relatively long scenes that are captured using a panning camera (e.g., a camera mounted on a drone, car, bicycle, or a camera carried by a photographer moving at a specific speed in a specific direction).
[0008] A typical video processing pipeline for spherical video may include: capturing panoramic images using a panoramic or 360-degree image capture system, stitching the images together in an image stitching operation to form spherical video data, and then projecting the spherical video data onto a 2D rectangular surface of a video frame using a suitable projection model. The resulting video frame may be referred to as a projected video frame. Different projection models (such as equirectangular projection (ERP), cubic or pyramidal projection models) may be used to generate projected video frames, and these projected video frames may be encoded using existing video coding standards (such as H.264 / AVC, H.265 / HEVC, VP9, and AV1). The encoded spherical video data may be stored on a storage medium or provided to (e.g., transmitted to) a media playback device. A decoder device may decode the encoded video frame, and a rendering engine may render spherical content on a suitable display device (e.g., a head mounted device (HMD), etc.). In spherical video, the impact of global motion is particularly evident, where the video data in the video frame is the result of the projection of a 3D world scene on the imaging plane of a physically moving 360 camera. In this case, the global motion field in the projected video frame due to camera movement cannot be efficiently handled by known inter-frame prediction schemes, which greatly reduces the coding efficiency.
[0009] In the article “Rotational motion model for temporal prediction in 360 video coding” by Vishwanath et al., it is explained that projecting 360 video onto the 2D imaging plane of the camera produces nonlinear motion in the video frames, which needs to be handled by state-of-the-art video coding systems. Nonlinear motion reduces compression efficiency, and the authors propose to address this problem by using a spherical model, where the motion in the video image is described as angular motion on a sphere of pixels. This model is used in the motion estimation process of the HEVC encoder. Although describing the motion in 360 video in spherical coordinates can lead to more accurate determination of motion vectors for video blocks in the video frame, it does not address the problem of the global motion field in the video frame due to camera motion and the difficulty of compressing motion vectors that include global motion. State-of-the-art inter-frame prediction schemes cannot efficiently handle motion vectors that include a global motion component projected onto a 2D video frame because the correlation of the motion vectors in this case violates the assumption described previously, i.e., strong spatial correlation of the motion vector direction and magnitude, which can lead to severe compression inefficiencies.
[0010] Therefore, from the above it can be concluded that there is a need in the art for an improved method and system for encoding video data comprising a global motion field caused by motion, in particular camera motion. Summary of the invention
[0011] As will be appreciated by those skilled in the art, aspects of the present invention may be implemented as a system, method, or computer program product. Thus, aspects of the present invention may take the form of a complete hardware embodiment, a complete software embodiment (including firmware, resident software, microcode, etc.), or a combination of software and hardware aspects that may be generally referred to herein as a "circuit," "module," or "system." The functions described in this disclosure may be implemented as algorithms executed by a microprocessor of a computer. In addition, aspects of the present invention may take the form of a computer program product implemented in one or more computer-readable media having, for example, a stored computer-readable program code implemented thereon.
[0012] Any combination of one or more computer-readable media can be utilized. Computer-readable media can be a computer-readable signal medium or a computer-readable storage medium. Computer-readable storage media can be, for example, but not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media will include the following: an electrical connection device with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the context of this document, a computer-readable storage medium can be any tangible medium that can contain or store a program used by an instruction execution system, a device or an equipment or used in combination with an instruction execution system, a device or an equipment.
[0013] A computer-readable signal medium may include a propagated data signal having a computer-readable program code implemented therein (e.g., in baseband or as part of a carrier wave). Such a propagated signal may take any of a variety of forms, including, but not limited to, electromagnetic, optical, or any suitable combination thereof. A computer-readable signal medium may be any computer-readable medium that is not a computer-readable storage medium and that can communicate, propagate, or transmit a program (for use by or in conjunction with an instruction execution system, device, or apparatus).
[0014] The program code implemented on the computer-readable medium can be transmitted using any suitable medium, and this medium includes but is not limited to wireless, wired, optical fiber, cable, RF, etc., or any suitable combination mentioned above. The computer program code for performing the operation of various aspects of the present invention can be written in any combination of one or more programming languages, and these one or more programming languages include object-oriented programming languages such as Java (TM), Smalltalk, C++ and conventional process programming languages such as "C" programming language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer by any type of network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider, through the Internet).
[0015] Aspects of the present invention will be described below with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to an embodiment of the present invention. It will be understood that each frame of the flowchart and / or block diagram and the combination of frames in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, specifically a microprocessor or a central processing unit (CPU) to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device or other equipment create a device for implementing the function / action specified in one or more frames of the flowchart and / or block diagram.
[0016] These computer program instructions may also be stored in a computer-readable medium, which can instruct a computer, other programmable data processing device, or other equipment to function in a particular manner, so that the instructions stored in the computer-readable medium produce a manufactured article including instructions, which implement the functions / actions specified in one or more boxes of the flowchart and / or block diagram.
[0017] The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable apparatus provide a process for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. In addition, the instructions may be executed by any type of processor, including but not limited to 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 circuit systems.
[0018] The flowcharts and block diagrams in the accompanying drawings show the architecture, functions and operations of possible implementations of the systems, methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram may represent a module, fragment or part of a code including one or more executable instructions for implementing (multiple) specific logical functions. It should also be noted that in some alternative embodiments, the functions indicated in the box may not occur in the order marked in the figure. For example, depending on the functions involved, the two boxes shown in succession may actually be executed substantially simultaneously, or the boxes may sometimes be executed in the opposite order. It will also be noted that each box of the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can be implemented by a combination of a dedicated hardware-based system or dedicated hardware and computer instructions that perform specific functions or actions.
[0019] Embodiments in this application are directed to improving the coding efficiency of videos, in particular 360 videos and any other type of video with global motion due to movement of the camera position of the camera capturing the video (which may be a virtual (computer-generated world) camera or a real camera). Here, the movement may be associated with physical movement of the camera (e.g., due to pan or tilt operations), or with virtual movement of the camera (e.g., due to zoom actions). The improvement includes compensating for global motion in the video during the video encoding process in order to eliminate the effects that inhibit coding efficiency associated with global motion.
[0020] The inventors recognize that the global motion field in a video frame caused by the translational movement of the camera has a unique pattern, which may depend on the type of video data in the video frame. In the case of spherical video, global motion is particularly obvious, where the characteristic pattern of global motion may depend on the projection used to project the spherical video onto the rectangular 2D plane of the video frame. For example, in an equirectangular (ERP) projection video frame, camera motion may cause characteristic patterns in the video to include expansion points and compression points in the video frame. Pixels in the area around the expansion point may have motion vectors starting at the same point (expansion point) and pointing in opposite directions, and pixels in the area around the compression point may have motion vectors pointing to the same point (compression point), resulting in complex but accurately predictable motion patterns in these two types of regions. This pattern can be predicted using a simple parameterized algorithm that models the movement of the camera in the 3D scene (thereby causing global motion in the captured video). It should be noted that global motion may also exist in conventional (e.g., non-spherical) videos captured when the camera position moves, and the global motion may become more obvious with the speed of movement and the angle of view. Also in conventional video, global motion patterns (e.g., components of motion vectors) as a result of global motion may be suitable for modeling based on a parameterized algorithm (parameterized function), or simply determined by analyzing the video using a suitable image processing algorithm, and used to generate a motion compensation map including motion compensation vectors.
[0021] In one aspect, the present invention may relate to a method for providing a bitstream comprising video data encoded by an encoder device. In an embodiment, the method may include: preferably determining, by a processor of the encoder device, a motion vector of a current block of a current video frame in a sequence of video frames comprising video data captured by at least one video capture device, the motion vector defining an offset of the current block relative to a prediction block of a first reference video frame encoded and stored in a memory of the encoder device, wherein at least a portion of the offset defined by the motion vector is associated with a global motion in the video data when the video capture device is moving relative to a scene; the difference between the current block and the prediction block defines a residual block. Here, when the motion vector uses sub-pixel accuracy, the prediction block may be interpolated from samples of a reference frame. In addition, motion models more complex than translation (e.g., with rotation and / or scaling) may also require interpolating the values of the prediction block based on samples of the reference frame. Preferably, one video capture device is used to capture the video data, but technically it may be two or more separate capture devices, each capturing a portion of the video data. The video data is preferably spherical video data captured by one or more capture devices, which has been projected onto a rectangular video frame based on a projection model.
[0022] Additionally, a prediction block may define any set of samples from a reference frame, including a rectangular set of samples, that may be used to compute a sample prediction for a block of a video frame.
[0023] The method may also include determining, preferably by the processor, a motion vector prediction value candidate for predicting the motion vector, the motion vector prediction value candidate being determined by the processor based on one or more motion vectors of one or more encoded blocks of the current video frame, and / or based on one or more reference video frames stored in a memory of the encoder device, preferably one or more motion vectors of one or more encoded blocks of the first reference video frame.
[0024] Further, the method may include: preferably determining or receiving, by the processor, a motion compensation vector for each motion vector predictor candidate, the motion compensation vector providing an estimate of a portion of the motion vector predictor candidate associated with global motion; preferably determining, by the processor, globally motion compensated motion vector predictor candidates, each compensated motion vector predictor candidate being determined based on a difference between the motion vector predictor candidate and an associated motion compensation vector; preferably selecting, by the processor, a compensated motion vector predictor from these globally motion compensated motion vector predictor candidates; and preferably determining, by the processor, a motion vector difference based on the compensated motion vector predictor and the motion vector.
[0025] In addition, the method may include: preferably encoding the following information into a bitstream by the processor using an entropy coding algorithm: the residual block; the motion vector difference; an indication, preferably a binary flag, of the motion vector difference based on the difference between the motion vector and the compensated motion vector prediction value; an indication of the selected compensated motion vector prediction value; and conversion information for converting the motion vector prediction value into the compensated motion vector prediction value.
[0026] Therefore, motion vector prediction values of blocks of a video frame are compensated for global motion using motion compensation vectors, wherein each motion compensation vector provides an estimate of the global motion of the pixels of the block. If global motion is present in the video data to be encoded, compensating for global motion during the video encoding process enables efficient compression of motion vectors based on motion vector prediction values.
[0027] In an embodiment, the candidate list may be an index list, and wherein the indication of the compensated motion vector predictor selected by the encoder device comprises the index of the motion vector predictor in the candidate list. By using an index list, only the index of the selected motion vector needs to be transmitted in the bitstream.
[0028] In an embodiment, the conversion information may include an indication of an algorithm used by the encoder device to determine the motion compensation vector and / or one or more parameters of the algorithm used to determine the motion compensation vector stored in the decoder. The information may signal to the decoder device which algorithm the encoder device used to determine the motion compensation vector.
[0029] In an embodiment, at least a portion of the one or more parameters may be associated with movement of the video capture device relative to the scene.
[0030] In an embodiment, at least a portion of the one or more parameters may include: a speed of the video capture device relative to the scene, a height of the video capture device relative to a reference point, or a direction in which the video capture device is moving relative to the scene. The decoder device may use these parameters to calculate the motion compensation vector based on a parameterized algorithm stored in a memory of the decoder device.
[0031] In an embodiment, the motion compensation vector may be part of a motion compensation map comprising motion compensation vectors for blocks of the current video frame and / or the reference video frame.
[0032] In an embodiment, the conversion information may include the motion compensation vector or a motion compensation map including the motion compensation vector for the block of the current video frame and the motion compensation vector for the block of one or more video frames of the video frame sequence.
[0033] In an embodiment, determining the motion vector difference may include at least one of the following steps: determining a first motion vector difference candidate based on the compensated motion vector predictor and the motion vector; and determining a second motion vector difference candidate based on the motion vector predictor and the motion vector; and, based on an optimization process, preferably a rate-distortion optimization (RDO) process, selecting the motion vector difference from the first motion vector difference candidate and the second motion vector difference candidate. Therefore, an optimization method such as an RDO scheme may be used to determine whether the use of a motion vector predictor with global motion compensation will result in an increase in compression efficiency. If the RDO cost associated with the compensated motion vector predictor is higher than the RDO cost associated with the uncompensated motion vector predictor, the encoder device may determine to encode the block using a conventional motion vector predictor.
[0034] In an embodiment, the motion compensation vector may be determined based on a parameterized algorithm, wherein the algorithm may be configured to generate an estimate of the global motion of the current block of the video frame. In an embodiment, the algorithm may represent a parameterized world model, for example a (two-plane) world model comprising a top plane and a bottom plane. Thus, the motion compensation vector may be determined using a parameterized algorithm known to the encoder and decoder that represents a simple model of global motion in a sequence of video frames due to camera movement.
[0035] In an embodiment, the parameterized algorithm depends on a projection model for projecting video data onto a frame. In another embodiment, the parameterized algorithm depends on one or more camera parameters. For example, the camera's translation (or rotation) speed, camera height, zoom speed, etc.
[0036] In an embodiment of the invention, the parameterized algorithm depends on both the projection model and one or more camera parameters.
[0037] In an embodiment, the motion compensation vectors may be determined based on an image processing algorithm. In an embodiment, the algorithm may be configured to determine a motion field in the current video frame, i.e., a motion field comprising motion vectors associated with pixels or pixel blocks of the current video frame. In an embodiment, the algorithm may be configured to classify the motion vectors of the motion field into motion vectors representing local motion in the current video frame and motion vectors representing global motion in the current video frame. Thus, if the motion compensation vectors are transmitted in the bitstream, any algorithm may be used to determine the motion compensation vectors that provide a global motion estimate in the video frame.
[0038] In an embodiment, the video capture device may be adapted to capture spherical video data, and wherein the video frames in the sequence of video frames comprise spherical video data, which preferably have been projected onto rectangular video frames based on a projection model. In an embodiment, the projection model may be an equirectangular or cubic projection model or any other suitable projection model. The invention is particularly suitable for spherical videos where the effects of global motion due to camera movement (particularly translational camera movement) are particularly pronounced.
[0039] In an embodiment, at least a portion of the conversion information may be included in the bitstream. In an embodiment, at least a portion of the conversion information may be contained in one or more SEI messages; and / or one or more network abstraction layers NAL. In an embodiment, at least one of the one or more NAL units may be a non-VCL NAL unit, such as a picture parameter set PPS.
[0040] In an embodiment, the determination and encoding of the motion vector and the motion vector prediction value may be based on a coding standard. In an embodiment, the coding standard includes at least one of the AVC, HEVC, VP9, AV1 coding standards, or coding standards based on the AVC, HEVC, VP9, AV1 coding standards.
[0041] In one aspect, the present invention may also relate to a method for reconstructing a block of a video frame from a bitstream encoded by an encoder device. In an embodiment, the method may include one or more of the following steps: preferably receiving a bitstream by a processor of a decoder device, the bitstream comprising a current block of a current video frame, the current block to be reconstructed by the decoder device based on a decoded prediction block of a first reference video frame stored in a memory of the decoder device and based on a motion vector representing an offset of the current block relative to the prediction block, the difference between the prediction block and the current block defining a residual block; preferably decoding the bitstream by the processor using an entropy coding process into: a residual block; a motion vector difference; an indication, preferably a binary flag, of the difference between the motion vector and a compensated motion vector predictor value; an indication of a selected compensated motion vector predictor value; and conversion information for converting the motion vector predictor value into a compensated motion vector predictor value; preferably determining by the processor a motion vector predictor candidate for predicting the motion vector of the current block, the motion vector predictor candidate defining a motion vector of a decoded block of the current video frame or a reference video frame stored in a memory of the decoder device. , preferably a motion vector of a decoded block of a first reference video frame; the processor using the transformation information to determine a motion compensation vector for each motion vector predictor candidate, the motion compensation vector providing an estimate of a portion of the motion vector predictor candidate associated with a global motion caused by movement of the video capture device relative to the scene; preferably determining globally motion compensated motion vector predictor candidates by the processor, each compensated motion vector predictor candidate being determined based on a difference between the motion vector predictor candidate and an associated motion compensation vector; selecting a compensated motion vector predictor from among the compensated motion vector predictor candidates based on an indication of the selected compensated motion vector predictor; and preferably determining a motion vector for the current block based on the compensated motion vector predictor and the motion vector difference; and preferably reconstructing the current block based on the prediction block and the residual block by the processor, the reconstruction comprising using the motion vector to identify a prediction block of the reference video frame stored in a memory of the decoder device.
[0042] In another aspect, the present invention may relate to a coding device comprising: a computer-readable storage medium having at least a portion of a program embodied therein; and a computer-readable storage medium having a computer-readable program code embodied therein; and a processor, preferably a microprocessor, coupled to the computer-readable storage medium, wherein, in response to executing the computer-readable program code, the processor is configured to perform executable operations. In an embodiment, these executable operations may include one or more of the following steps, including: determining a motion vector for a current block of a current video frame in a sequence of video frames including video data captured by a video capture device, the motion vector defining an offset of the current block relative to a prediction block of an encoded first reference video frame stored in a memory of the encoder device, wherein at least a portion of the offset is associated with global motion in the video data when the video capture device is moving relative to a scene; the difference between the current block and the prediction block defines a residual block; determining or receiving a motion compensation vector for each motion vector predictor candidate, the motion compensation vector providing an estimate of a portion of the motion vector predictor candidate associated with global motion; determining or receiving a motion compensation vector for each motion vector predictor candidate, the motion compensation vector representing an offset from an encoded block of the current video frame or one or more reference video frames. An estimation of global motion of pixels of an encoded block of pixels, the global motion being due to movement of the video capture device relative to the scene; determining globally motion compensated motion vector predictor candidates, each compensated motion vector predictor candidate being determined based on a difference between the motion vector predictor candidate and an associated motion compensation vector; selecting a compensated motion vector predictor from the globally motion compensated motion vector predictor candidates; and determining a motion vector difference based on the compensated motion vector predictor and the motion vector; encoding the following information into a bitstream using an entropy coding algorithm: the residual block; the motion vector difference; an indication, preferably a binary flag, that the motion vector difference is based on a difference between the motion vector and the compensated motion vector predictor; an indication of the selected compensated motion vector predictor; and conversion information for converting the motion vector predictor into a compensated motion vector predictor.
[0043] In another embodiment, the present invention may relate to an encoding device configured to perform any encoding process defined in this application.
[0044] In one aspect, the present invention may also relate to a decoding device, comprising: a computer-readable storage medium having at least a portion of a program embodied therein; and a computer-readable storage medium having a computer-readable program code embodied therein; and a processor, preferably a microprocessor, coupled to the computer-readable storage medium, wherein, in response to executing the computer-readable program code, the processor is configured to perform executable operations including the following. In an embodiment, the executable operations may include one or more of the following steps: receiving a bitstream, the bitstream including a current block of a current video frame, the current block to be reconstructed by the decoder device based on a decoded prediction block of a first reference video frame stored in a memory of the decoder device and based on a motion vector representing an offset of the current block relative to the prediction block, the difference between the prediction block and the current block defining a residual block; decoding the bitstream using an entropy coding process into: a residual block; a motion vector difference; an indication, preferably a binary flag, of the motion vector difference based on a difference between a motion vector and a compensated motion vector prediction value; an indication of a selected compensated motion vector prediction value; and conversion information for converting the motion vector prediction value into a compensated motion vector prediction value; determining a motion vector prediction value candidate for predicting the motion vector of the current block, the motion vector prediction value candidate defining a motion vector of a decoded block of the current video frame or a reference video frame stored in a memory of the decoder device. The method further comprises: determining a motion vector of a decoded block of a video frame, preferably a first reference video frame, using the transformation information to determine a motion compensation vector for each motion vector predictor candidate, the motion compensation vector providing an estimate of a portion of the motion vector predictor candidate associated with a global motion caused by movement of the video capture device relative to the scene; determining globally motion compensated motion vector predictor candidates, each compensated motion vector predictor candidate being determined based on a difference between the motion vector predictor candidate and an associated motion compensation vector; selecting a compensated motion vector predictor from the compensated motion vector predictor candidates based on an indication of the selected compensated motion vector predictor; and determining a motion vector for the current block based on the compensated motion vector predictor and the motion vector difference; and reconstructing the current block based on the prediction block and the residual block, the reconstruction comprising using the motion vector to identify a prediction block of the reference video frame stored in a memory of the decoder device.
[0045] In another embodiment, the present invention may relate to a decoding device configured to perform any decoding process defined in this application.
[0046] The present invention may also relate to a computer program product comprising software code portions configured to perform the method steps according to any one of the above process steps when run in the memory of a computer. In this application, the following abbreviations and terms are used:
[0047] AMVP Advanced Motion Vector Prediction
[0048] ERP Equirectangular Projection
[0049] RDO Rate-Distortion Optimization
[0050] 360 video is a video representation of a scene from a single location in 3D space that contains visual content for a full or partial spherical view of the scene.
[0051] MV A two-dimensional vector used for inter-frame prediction that defines the offset (Dx, Dy) of the current block relative to a predicted block in an encoded reference video frame (past or future) stored in the memory of the encoder or decoder. A motion vector represents an estimate of the motion (magnitude and direction) of the pixels of the current block.
[0052] MV fieldA 2D space constrained by the frame size in which the motion vectors are located. The position of a motion vector is given by the position of the coding block associated with that motion vectorMotion compensation mapA set of motion compensation vectors for blocks in a video frame, where each motion compensation vector provides an estimated contribution of global motion to the motion of pixels of the block defined by the motion vector MV. The estimated contribution can be defined in terms of a two-dimensional vector (dx, dy) called a motion compensation vector having an x-component dx and a y-component dy in the x, y plane of the video frame
[0053] The MVP motion vector predictor is an MV belonging to another coded or decoded block (of the current frame or a reference frame) that can be used as a predictor for the current MV to reduce the cost of encoding the MV (in terms of its x and y components).
[0054] The invention will be further explained with reference to the accompanying drawings, which will schematically show embodiments according to the invention. It will be understood that the invention is not limited in any way to these specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 Depicts a flow chart for processing spherical video data.
[0056] Figure 2 Depicts an example of an equirectangular projection of spherical video data.
[0057] FIG. 3A to FIG. 3B Depicted are different projections and mappings of spherical video data.
[0058] 4A to 4F The concept of motion fields in projected spherical video data is presented.
[0059] Figure 5A and Figure 5B Depicted is an example of a temporally averaged motion vector field for a 360 video frame.
[0060] Fig. 6A and Figure 6B Depicted is an example of a temporally averaged motion vector field for a 2D video frame.
[0061] Fig. 7A and FIG. 7B show a motion compensation process for video encoding according to an embodiment of the present invention.
[0062] Figure 8 A motion compensation process using a motion vector compensation function according to an embodiment of the present invention is shown.
[0063] Fig. 9 An encoder apparatus including a motion compensation module according to an embodiment of the present invention is presented.
[0064] Fig.10 A decoder device including a motion compensation module according to an embodiment of the present invention is shown.
[0065] Fig.11 A motion compensation process for video encoding according to an embodiment of the present invention is shown.
[0066] Fig.12 The use of motion compensation vectors in a video encoding process according to an embodiment of the present invention is demonstrated.
[0067] Fig.13 The use of motion compensation vectors in a video encoding process according to another embodiment of the present invention is demonstrated.
[0068] Fig.14 Depicted is a block diagram illustrating an exemplary data processing system that may be used with the embodiments described in this disclosure. DETAILED DESCRIPTION
[0069] Figure 1A high-level flow chart of a method for processing spherical content is depicted. The process may include capturing multiple images (step 102) using a panoramic or 360-degree image capture system, which typically includes multiple (i.e., two or more) image sensors. Images of overlapping fields of view generated by different image sensors may be stitched together (step 104) into a panoramic or high-resolution image. Stitching multiple images into one image is a well-known image processing technique that typically includes alignment and panoramic synthesis. In the alignment process, feature descriptors may be extracted from the images so that corresponding image features may be found in different images forming a panoramic synthesis. Alignment is used to estimate the image camera pose or orientation of each different image. The panoramic synthesis process then uses this information to combine the different images into one panoramic image. Image blending may be used to seamlessly stitch the combined images together. The stitching of images may be performed in 2D or 3D space. For example, images may be stitched onto each other on a sphere to form spherical video data. It should be emphasized that while the claimed invention is particularly well suited for 360 video (eg, omnidirectional), it is equally applicable to any type of video, including conventional video, where there is global motion that can be modeled.
[0070] Thereafter, the panorama synthesized spherical video data can be transformed and formatted into 2D rectangular video frames by projection and mapping operations (step 106), which are encoded by a state-of-the-art video encoder (step 108). The encoded video data can be packaged in a transport container so that the video data can be transmitted to a playback device including a video decoder, which is configured to decode the video data (step 110) into 2D rectangular frames. In order to present content to the user, the playback device renders a 3D (polyhedral) object and textures it with the video data of the decoded video frame (step 114). Depending on the projection used, the decoded video frame is transformed back to omnidirectional video data (step 112) by reversing the packing, mapping and projection operations. The encoding process 108 can be implemented in a video encoder device, and steps 110 to 114 can be implemented in a media playback device connected to or integrated in, for example, a head-mounted display device (HMD).
[0071] refer to Figure 2 FIG. 4 describes in more detail the conversion of spherical video data into a 2D rectangular video frame through projection and mapping operations. Figure 2An example of an equirectangular projection operation 204 of spherical video data 202 represented as pixels on a spherical surface (e.g., a sphere or a squashed sphere) onto a rectangular 2D video frame 206 is depicted. The projection operation can be used to transform pixels associated with spherical coordinates φ, θ directly into pixels associated with planar 2D pixels having Cartesian coordinates (X, Y). In this manner, spherical video data can be transformed into a conventional video frame that can be processed by a conventional video encoding system.
[0072] Figure 3A and Figure 3B A projection model for generating projected video frames is depicted. Figure 3A Describe the use of a cubic projection model to project spherical video data 302 onto a rectangular video frame, wherein the spherical video data is projected onto a face 304 of a cube. These faces may be referred to as projection faces. The orientation of a sphere and a cube may be described using a 3D coordinate system so that different orientations of a sphere, a cube, and a sphere relative to a cube may be defined. For example, in this coordinate system, the projection face may be labeled as the front (F), top (U), bottom (D), left (L), right (R), and back (B). After the pixels are projected onto the projection face, the face of the cube may be expanded to form a planar 2D rectangular video frame 306, wherein the face including the projected pixels is arranged in the 2D plane. Here, the pixels belonging to the projection face may be referred to as a pixel region or simply as a region. For example, the pixels associated with the front projection face L 308 of the cube form a pixel region L in a rectangular video frame 306. Projection onto the face of the cube and the expansion process of the cube may be referred to as mapping, and the result of the mapping may be referred to as a projection video frame. The projection video frame includes the arrangement of pixel regions, wherein the edges of the pixel regions may form region boundaries. Artificial region boundaries are a direct result of the mapping operation, and the shape of the pixel region is a direct result of the projection model used (in this case, the cubic projection model).
[0073] Depending on the projection model, after mapping, the projected video frame may include some areas 307 that do not include any video data. To improve compression efficiency, the pixel areas in the projected video frame may be rearranged and resized to remove areas that do not include any video data. This process may be referred to as packing. The packing process produces a packed projected video frame 310 that includes rearranged pixel areas 312 and horizontally and vertically arranged area boundaries 314, 316. Similarly, Figure 3BA pyramid projection model 314 is depicted that produces a projected video frame 318 including pixel regions 304, 310, 318, 320 and associated region boundaries 306, 312, 313, 322. Depending on the projection type, the region boundaries may have different orientations in the video frame. Many different projection types may be used, including but not limited to cylinders, polyhedrons (e.g., octahedrons or icosahedrons), truncated pyramids, segmented spheres, etc. Mapping the spherical video data into the projected video frame and optionally packing it will produce a video frame including multiple pixel regions.
[0074] In the case of 360 videos, it is very likely that the video content is not captured or computer-generated using a camera that rotates around one of its axes. This is because the video motion caused by the rotational camera displacement may cause motion sickness in the viewer. However, translational motion, especially slow translational motion, is acceptable to most users. Therefore, the camera motion in 360 videos is mainly the translational motion of the camera. If camera translation is possible, the scene in the video content usually allows the camera to move in a given direction for a long enough time, for example, a scene captured by a moving drone. In this way, an "immersive" video experience can be provided to the viewer. This means that the scene world that changes over time is not a small closed 3D geometry like a cube (which may be the case when a static 360 camera is used). Instead, the scene world can include at least two vertical planes ("walls") on the left and right sides parallel to the camera motion, and two horizontal planes on the top and bottom, "sky" and "ground", respectively. In some cases, such as large indoor warehouses, the world scene may be further simplified and can be represented by only two planes, the top and the bottom. In yet another case, such as an outdoor shot, the top plane (the sky) may be considered to be infinitely far from the camera and may therefore be omitted.
[0075] As is well known, in the case of a translational motion of a camera, the image captured by the camera will have a corresponding change. If the camera moves at a certain speed, a vector can be assigned to a point of the 3D scene world imaged on the image plane of the camera, which indicates the magnitude and direction of the movement of the point on the image plane caused by the camera movement. A set of motion vectors for each point in a video frame (e.g., a pixel or a set of pixels, such as a video block) can form a motion vector field associated with the video frame. Therefore, the motion vector field forms a representation of 3D motion when projected onto the camera image, wherein the 3D motion causes (relative) movement between (parts of) the real world scene and the camera. The motion vector field can be represented as a function that maps image coordinates to 2-dimensional vectors. The motion field in the projected spherical video caused by the translational movement of the 360 camera will exhibit a motion field with a unique pattern, depending on the type of projection used to project the spherical video onto a rectangular 2D plane. 4A to 4F The concept of motion fields in projected spherical video data is presented in more detail.
[0076] Figure 4A Depicted is a side view of a planar world scene model of a linearly moving 360 camera (i.e., a camera with an imaginary spherical capture surface). Figure 4B Describes a top view of a planar world scene model. Figure 4A As shown, the spherical surface 402 of the 360 camera capturing the scene is schematically depicted as a sphere of radius r. The translational movement of the camera is typically caused by the displacement of the camera support (e.g., a car, a person, a drone, etc.). In this case, the scene can be modeled as two planes, namely, a ground plane 404 ("ground") and a top plane 406 ("sky"). Here, the terms "sky" and "ground" determine the top plane and the bottom plane (but do not necessarily represent the real-world "sky" or the real-world "ground"). For example, the sky may represent the ceiling in an indoor 360 video. The scene can be further characterized by one or more distances, for example, a ground distance d 底 Distance from the sky 顶 , which respectively define the distance between the camera center O and the ground plane (bottom plane) and the distance between the camera center and the sky plane (top plane). If point P represents a point on the top plane, the velocity P of the point is given by:
[0077]
[0078] In addition, the trigonometric relationship in triangle OPH yields:
[0079]
[0080]
[0081] as well as
[0082]
[0083] Here, by definition, for all points in the top plane, since d 顶 ≠0, so the angle θ is in the range [0; π]. The visible motion on the sphere is given by the angular velocity of the point P′ where the sphere intersects the line segment OP. In the camera's reference frame, point P, i.e., point P is associated with a non-zero motion vector. To determine the displacement of point P′ on the circle when point P moves by δl, the tangent equation (which provides a relationship between the position of point P and the angle θ) can be evaluated:
[0084]
[0085] By deriving equations for time, we can derive the following expression for the motion field of a planar world scene (d 顶 remains constant with respect to time):
[0086]
[0087]
[0088]
[0089]
[0090]
[0091] These equations are and It is valid when P is in the same plane OXZ (i.e., P is in the plane OXZ). When P is not in this plane, it can be Define point P in spherical coordinates, where is the azimuth angle, and θ is the polar angle in the spherical coordinate system, and O is its origin. Figure 4B Depicts the angle Further, It can be defined in Cartesian coordinates as:
[0092]
[0093] In the case where P does not lie in the plane OXZ, the previous equations can be obtained by projecting onto the line (HP) (Therefore, and If aligned, it will fall back) Substitute into v P To generalize, it is:
[0094]
[0095] This expression provides the horizontal component (x component) of the motion field of the EPR projection due to the camera motion (see also Figure 4D ):
[0096]
[0097] In a similar manner, the vertical y component of the motion field can be determined. These expressions show that the motion field generated by translational motion in a planar world model is characterized by a specific set of properties that can be analytically modeled using a simple parameterized function as described above. For the purposes of describing the present invention, the terms "parameterized function" and "parameterized algorithm" are used interchangeably throughout the application. As will be shown in the figures, the motion field is zero in global terms, or is characterized by an expansion focus (expansion point) and a contraction focus (contraction point) that are 180 degrees apart. In addition, any flow that exists is parallel to the geodesic connecting the expansion focus to the contraction focus.
[0098] Figure 4C Represents a rectangular frame 408 that matches the dimensions of a video frame that includes spherical video data (pixels on a sphere) that is projected onto the rectangular frame using an equirectangular (ERP) projection. The projection introduces distortion (warping) around the poles (i.e., pixels at the upper and lower edges of the video frame) due to the stretching that occurs at the poles to fit the surface of the projected sphere to the rectangular frame. Therefore, in the projection (in this case, the ERP projection), points on the sphere that are close to the poles of the sphere are assigned more pixels than points on the equatorial region of the sphere. When a scene is captured by a 360 camera that generates an ERP projected video frame, the patterns introduced by the projection may introduce motion fields with unique motion patterns around the poles in the video.
[0099] For example, Figure 4C The motion field depicted in the video frame shown can be associated with a camera moving towards an object in the center of the rectangular video frame. The motion field is caused by the nature of the 360 video capture and the projection (ERP projection in this case) that is performed later. If the 360 video is captured outdoors, the top part of the video will usually contain the sky. In this case, the motion field is mainly visible in the bottom part of the video. At the equator, the motion field is zero due to the linear translation of the camera parallel to the sky and the ground. The center point 410 in the image represents the point of expansion, that is, the motion field 414 1,2 Points pointing in opposite directions. Dilation points are points toward which the camera moves. Points on the equator at the edge of the frame 412 1,2 It is called the compression point, that is, the motion field 416 1,2 Points that converge on a single point. In the example where the camera is moving forward, this part is behind the camera.
[0100] Figure 4D Provides the x-component of the EPR projected motion field due to camera motion These values are based on the above The concept of motion field is closely related to the concept of motion vectors for video frames, which are determined by a motion estimation process used in an inter-frame prediction scheme of a video coding system. As will be described in more detail below, in an inter-frame prediction scheme, a motion vector represents the position of a video block in a video frame based on the position of the same or similar video block in another video frame (reference video frame). Motion in a video will cause the pixels of a video block in a video frame to shift from a first position in a first (projected) video frame to a second position in another second (projected) video frame. Therefore, when a known motion estimation scheme is applied to an EPR projected video frame, the motion vectors of the video blocks of the projected video frame (as determined by the motion estimation scheme) will exhibit significant changes (in size and / or angle) in areas where the motion field is strong. For example, black area 4191 and white area 4192 represent areas where the x component of the motion field is relatively large.
[0101] The motion vector associated with a video block in a video frame represents the pixel (block) displacement due to motion in the video (including motion caused by camera motion). Therefore, the motion field in the projected video frame at the video block location (which can be accurately modeled) provides an effective measure of the contribution of camera motion to the motion vector. Figure 4C As shown, the contribution of the motion field to the motion vector can be divided into a contribution to the first motion vector component (x component 4201 of the motion vector) and a contribution to the second motion vector component (y component 4202 of the motion vector).
[0102] Therefore, in Figure 4D In the white and black regions of the video block, the contribution of camera motion to the motion vector of the video block will be huge. Figure 4D Gray areas of identify areas in the video frame where the motion field is small, so that the contribution of camera motion to the motion vectors can be expected to be small or negligible. In this way, the motion field in the projected video frame is used to determine which motion vectors of the video blocks are affected by the camera motion and to what extent. Since the motion field has a predictable characteristic pattern for a specific projection type, the motion field can be used to improve video compression.
[0103] Although the effects of translational movement of the camera are explained above with reference to the ERP projection, the described effects (i.e., the unique pattern of the motion field) will also appear in other projections (e.g., the cube map). This is because each of these projections introduces characteristic patterns in the video. Figure 4E and Figure 4F Depicted are a projected video frame 422 and an associated packed projected video frame 430. Arrows show different pixel regions, including pixel regions 428 associated with the front and back faces of a (virtual) cube. 1,2) in the direction of the motion field in the (virtual) cube. The pixel regions associated with the front side may include expansion points, i.e., points where the motion fields point in opposite directions, while the pixel regions associated with the back side may include compression points, i.e., points where the motion fields converge on a single point. The pixel regions may further include pixel regions 426 associated with the left and right sides of the (virtual) cube. 1,2 and pixel regions 424 associated with the top and bottom of the (virtual) cube 1,2 When packing the projected video frames, you can do Figure 4D The depicted rearranged pixel regions include pixel regions 432 associated with the upper and lower sides of a (virtual) cube used as a projection model. 1,2 , pixel areas 434 associated with the left and right 1,2 , and pixel areas 436 associated with the front and back surfaces 1,2 .like Figure 4E and Figure 4F As shown, motion can cause complex but unique motion fields in video frames, depending on how pixel regions are arranged in the video frames. Therefore, a specific arrangement of pixel regions in a projected video frame is associated with a specific unique (complex) motion field in the video.
[0104] Projected video frames that include motion fields due to a moving camera need to be encoded by state-of-the-art video coding systems (e.g., HEVC, AV1, VP10, etc.). These video coding systems rely on inter-frame prediction techniques to improve coding efficiency. These techniques rely on the temporal correlation between video blocks in different video frames, where the correlation between these blocks can be represented based on motion vectors. Such a motion vector provides an offset of a video block in a decoded image relative to the same video block in a reference image (an earlier video frame or a future video frame). For each video block in a video frame, a motion vector can be determined. The motion vectors of all video blocks of a video frame can form a motion vector field. When examining the motion vector field of a projected video frame (e.g., a video frame including ERP or cube projection video), the motion field for a certain video block position provides a measure of pixel motion of the block, where the motion includes information such as the reference 4A to 4F Described is the global motion due to the translational movement of the camera.
[0105] Figure 5A and Figure 5B Experimental data on the motion vector field of decoded video frames are depicted in . Specifically, Figure 5A depicts a statistical analysis of the x-component of the motion vector field of a video frame of a video captured using a 360 camera, and Figure 5B Statistical analysis of the y-component of the motion vector field of a video frame is depicted. The analysis was performed on a sequence of video frames with motion vectors including ERP projected spherical videos. Figure 5AThe horizontal component (X direction) of the average motion vector value, calculated by averaging over 180 frames for each of the 60×120 blocks, is plotted. The purpose of the analysis is to verify whether similar 360 video frames (camera at the center moving forward) exhibit the same typical characteristics that can be used to improve the coding efficiency of a set of videos.
[0106] like Figure 5A As shown in Figure 1, the average MV values in the X direction show linear symmetry mainly in the bottom part of the graph. When the 360 camera located in the center moves forward, Figure 5B The motion vector 506 in φ points from the center of the image (the point of dilation) downward to the bottom edge. Figure 5A It shows that the motion vectors at the bottom part of the image are symmetrically directed away from the center to the left and right edges, while Figure 5B The motion vectors at the left and right edges are shown pointing upward from the bottom edge to the compression point. The relatively high average MV values in regions 502 and 504 in the lower left and right halves of the X component indicate that the MV values in these regions are similar to those in FIG. Figure 4B In the lower left half of the X component 502, the average is positive because the motion vectors are mainly towards the left, while in the lower right half 504, the motion vectors are mainly pointing to the right, resulting in a negative average value of the MV.
[0107] Figure 5B The average MV value in the vertical Y direction obtained by averaging the motion vectors of the video frame for each of the 60×120 blocks is shown in FIG. Figure 4B The vertical (y-axis) components of the motion field are highly correlated, including a vertical MV component 506 pointing toward the bottom in the center of the figure and vertical MV components 508 and 510 pointing upward at the corners of the bottom.
[0108] The effects of camera motion that lead to unique patterns of motion vector fields in the video and affect the direction and / or magnitude of the motion vectors determined by the motion estimation module of the video coding system occur not only in spherical video but also in (conventional) 2D video. Fig. 6A and Figure 6B Depicted is a statistical analysis of the X component of the motion vector field and the Y component of the motion vector field for a 2D video frame including a zoom action (which can be considered a type of camera motion). Fig. 6A As shown, the dominant influence of the motion field is visible in the horizontal MV values on the left side of the graph (the horizontal MV values pointing to the left), and the dominant influence of the motion field is visible in the horizontal MV values on the right side of the graph (the horizontal MV values pointing to the right). There may also be a unique MV pattern when the camera moves (e.g., a car moves forward).
[0109] Therefore, from Figure 5A , Figure 5B , Fig. 6A and Figure 6B Statistical analysis of the depicted motion vector field can reveal that camera motion affects the magnitude and / or direction of motion vectors of video blocks in a video frame and introduces unique global motion patterns that can be accurately modeled and predicted using parameterized functions as explained above. The unique global motion patterns introduced in the motion vector field due to camera movement will depend on the type of video (2D (conventional video) or spherical (such as omnidirectional video)), and in the case of spherical video, also on the type of projection used to project the spherical video data into a rectangular video frame and the world scene view (e.g., room, warehouse, outdoors, etc.).
[0110] State-of-the-art video coding systems such as HEVC, VP9, and AV1 use inter-frame prediction techniques to reduce temporal redundancy in video image sequences in order to achieve efficient data compression. Inter-frame prediction uses motion estimation techniques to determine a motion vector (MV), where the motion vector identifies a video block in a reference video frame that is suitable for predicting a video block in a current video frame that needs to be encoded. The difference between the predicted video block and the current video block can define a residual video block, which can be encoded together with metadata such as the MV and transmitted to a video playback device that includes a video decoder for decoding the encoded information using the metadata. The MV can be further compressed by exploiting the correlation between the motion vectors. Translationally moving objects in a video image typically contain multiple blocks with similar motion vectors in direction and length. Video coding standards typically exploit this redundancy.
[0111] For example, HEVC uses the so-called Advanced Motion Vector Prediction (AMVP) algorithm, which aims to improve compression by using already calculated motion vectors as references for predicting the current motion vector. In this scheme, a motion vector predictor (MVP) for a block can be generated by determining candidate motion vectors for an encoded block of the current video frame or candidate motion vectors for a block at the same position of a decoded reference video frame, and selecting a candidate motion vector as the best predictor for the current block based on an optimization scheme such as the well-known rate-distortion optimization (RDO) scheme. The motion vector difference MVD between the motion vector predictor and the motion vector and information about the selected motion vector predictor are entropy encoded into the bitstream. The decoder uses the information of the difference between the selected motion vector predictor and the motion vector to reconstruct the motion vector of the block to be decoded.
[0112] A problem associated with the inter-frame prediction algorithms used by most coding standards is that these inter-frame prediction algorithms are based on the assumption that motion is related to translational movement of objects in the video, which is sometimes called local motion compensation. However, motion vectors provide an estimate of all motion in a video block of a video frame, including local motion associated with moving objects and global motion associated with a moving background caused by a moving camera. Conventional inter-frame prediction schemes optimize for local motion when the spatial correlation between motion vectors is an identity function (i.e., adjacent motion vectors tend to have the same magnitude and direction), but these schemes are not designed to handle the global motion effects of non-uniform motion fields, especially when global motion effects dominate, such as when 360 video is captured by a moving camera. The embodiments in the present application aim to solve this problem by compensating for the effects of global motion during the encoding process. The present invention relies on the fact that the global motion effects caused by camera movement introduce unique patterns in video frames that can be accurately modeled using parameterized functions (parameterized algorithms).
[0113] Fig. 7A The general concept of the present invention is schematically depicted in FIG. 7 and FIG. 7B . Fig. 7A The first graphs 702 and 710 of FIG. 7B depict the average values of the respective X and Y components of the average motion vector field of a sequence of video frames (as discussed with reference to FIG. 5 ). The motion vector components exhibit distinctive patterns that result from an equirectangular projection of spherical video data onto a rectangular region (of a video frame), where the spherical video data was captured by a moving camera. As discussed with reference to FIG. Figure 4A and Figure 4B As described, these unique patterns are strongly correlated with the motion field of a simple planar world model. Thus, these figures show that experimentally determined motion vector fields for specific video types (e.g., 2D or 360 video) and projection types (e.g., ERP or cubic projection) exhibit unique patterns in the MV field that cannot be efficiently processed by conventional inter-frame prediction schemes, which are based on the assumption that spatially adjacent video blocks in a video frame that includes motion have motion vectors of approximately the same size and direction. When global motion is introduced into the video, this assumption is no longer valid, resulting in a significant reduction in the compression efficiency of known video coding standards.
[0114] To address the problem of global motion, a simple parameterized function (parameterized algorithm) is used that provides an accurate estimate of the global motion of video blocks in a video frame. The parameterized function may depend on the projection model and camera parameters, such as the camera's translation speed, camera height, etc., and produces motion compensation information that may be used to remove the global motion from the motion vectors or motion vector predictions used by the inter-frame prediction scheme to compress the video. For each block, the parameterized function may determine a motion compensation vector, where the x-component provides an estimate of the global motion in the x-direction and the y-component provides an estimate of the global motion in the y-direction. The motion compensation vectors (one for each video block or group of video blocks in a video frame) may be organized into a rectangular grid, which may be referred to as a motion compensation map. Using a reference Figure 4A and Figure 4B A parameterized function of the type described can easily approximate a motion compensation vector. A motion compensation map may include two sub-maps, which may include, for example, one of the spatial components (eg, the X component or the Y component). For example, Fig. 7A As shown, the first motion compensation sub-image 704 ( Fig. 7A 7B ) may include values for compensating for global motion in blocks of the video frame in a first direction (e.g., in the X direction), and the second motion compensation subgraph 712 (second graph of FIG. 7B ) may include values for compensating for the global motion field in a second direction (e.g., in the Y direction).
[0115] Thus, when the x component of the first motion compensated sub-picture is applied to (eg, added to and / or subtracted from) the x component of the MV ( Fig. 7A ), the compensation value of the MV field 706 in the x direction can be achieved ( Fig. 7A 706). Fig. 7A As shown, the value of the MV field in the x-direction includes two regions that are strongly affected by the global motion, namely, a first region 7071 of the video block where the x-component has a relatively large negative value (symbolically shown by a large arrow pointing to the left) and a second region 7072 of the video block where the x-component has a relatively large positive value (symbolically shown by a large arrow pointing to the right). In order to counteract the effect of the global motion, for each block of the video frame, an estimate of the global motion (in terms of the x-component and the y-component) can be calculated by a parameterized function that models the global motion in the video captured by the moving camera. The calculated motion compensation map including the x-component of the global motion includes two regions 708 1,2 , the two regions are related to the first region and the second region 707 of the x component of the measured MV field 1,2The calculated x component of the global motion field can be used to remove the x component of the global motion in the x component of the MV, thereby generating the x component of the MV from which the global motion is removed 706. In a similar manner, the y component of the MV can be compensated. The compensated MV field no longer includes the global motion, so that the compensated MV can be efficiently processed by the motion compensation technology of the ordinary video coding scheme.
[0116] Figure 8 802 of the MV associated with a video block of a video frame may include an area 804 1,2 ,806 1,2 , where the MV is affected by the motion field in the spherical video caused by, for example, a moving camera. Conventional inter-frame prediction schemes will not be able to efficiently handle such motion vector correlations, resulting in a significant reduction in motion vector coding efficiency. Based on the camera parameters, the parameterized function provides a simple model for determining a relatively accurate estimate of the global motion field, such as reference Figure 4A and Figure 4B The camera parameters that can be used to estimate global motion may include: camera height, sky height, camera direction, and camera velocity.
[0117] Based on the planar world model, a motion compensation vector 810 can be constructed. 1,2 ,812 1,2 The motion compensation map 808, these motion compensation vectors, when applied to the motion vectors of the MV field, produce a compensated MV field 814, where in the region 816 1,2 ,818 1,2 The global motion in is removed or at least significantly reduced.
[0118] It can be experimentally demonstrated that the entropy of the compensated MV field is lower than the entropy of the original uncompensated MV field. The reduction in entropy will lead to improved motion vector compression. The entropy estimate of the MV field can be based on the variance of the motion vector components, which can be calculated as follows:
[0119]
[0120]
[0121] where μ is the average value of the motion vector components of the video blocks in the video frame. ij represents the motion vector value in the X direction of video block i, j, and p i represents the weight associated with the motion value of video block i, j. In this case, the weight of a video block in a video frame is simply 1 / N, where N is the number of video blocks in a video frame. The variance can be calculated using μ, x ijand p i Therefore, a reduction in the variance value of the MV component of the MV field after applying the MV compensation map may indicate that the video frame may be compressed more efficiently.
[0122] Fig. 7A , Figure 7B and Figure 8 The main insight of the solution depicted in is that motion vectors associated with video frames of a video (e.g., 2D video or 360 video) that includes global motion (e.g., because it is captured by a moving camera) induce unique characteristic patterns in the MV field. This pattern (spatial correlation) may depend on the type of video (2D or spherical), the projection model used to project the spherical video data onto a rectangular 2D video frame, and the camera parameters. For example, in the case of ERP projected video, the MVs (particularly the x and / or y components of the MVs) tend to be much larger and have opposite directions at the compression and expansion points in the video frame. The spatial correlation between these non-uniform MVs in these areas cannot be efficiently compressed using state-of-the-art video coding systems. The embodiments in the present application use motion compensation vectors for each block to compensate for the effects of the global motion field. These motion compensation vectors can be generated using parameterized functions. In this way, the x component of the motion compensation vector can be used to compensate for global motion in the x component of the motion vector, and the y component of the motion vector compensation vector can be used to compensate for global motion in the y component of the motion vector. The motion compensation values are configured to eliminate heterogeneity in the MV field caused by global motion. The compensated MV field thus generated includes motion vectors associated with local motion that exhibit correlations that can be handled by state-of-the-art video coding standards. In this way, fewer bits are required to encode the MV, resulting in higher compression efficiency for video frames that include global motion.
[0123] Fig. 9 is a block diagram illustrating a video encoder 900 including a motion compensation unit according to an embodiment of the present invention. The video encoder 900 can perform intra-frame coding and inter-frame coding on video blocks within a video frame or a portion thereof (e.g., a video slice). Intra-frame coding relies on spatial prediction to reduce or remove spatial redundancy in video within a given image. Inter-frame coding relies on temporal prediction to reduce or remove temporal redundancy in video within images of adjacent images or video sequences. Intra-frame mode (I-mode) can refer to any of several spatial-based compression modes. Inter-frame mode (such as unidirectional prediction (P-mode) or bidirectional prediction (B-mode)) can refer to any of several temporal-based compression modes.
[0124] The video encoder receives video data to be encoded 902. Fig. 9In the example of , the video encoder 900 may include a segmentation unit 903, a mode selection unit 904, a summer 906, a transform unit 908, a quantization unit 910, an entropy coding unit 912, and a reference image memory 914. The mode selection unit 904 may in turn include a motion estimation unit 916, an inter-frame prediction unit 920, and an intra-frame prediction unit 920. The inter-frame prediction unit may include a motion vector prediction unit 922 and a motion compensation unit 924. For video block reconstruction, the video encoder 900 also includes an inverse quantization and transform unit 915 and a summer 928. Filters such as a deblocking filter 918 may also be included to filter out artifacts from the reconstructed video frame. In addition to the deblocking filter, additional loop filters (in-loop or post-loop) may also be used.
[0125] The mode selection unit 904 may select a coding mode (e.g., select an intra-frame prediction mode or an inter-frame prediction mode based on an error result of an optimization function such as a rate-distortion optimization function), and provide the resulting intra-frame coded block or inter-frame coded block to the summer 906 to generate a block of residual video data (residual block), and provide the resulting intra-frame coded block or inter-frame coded block to the summer 928 to reconstruct the coded block for use as a reference image. During the encoding process, the video encoder 900 receives an image or slice to be encoded. The image or slice may be divided into a plurality of video blocks. The inter-frame prediction unit 920 in the mode selection unit 904 may perform inter-frame prediction coding on the received video block relative to one or more blocks in one or more reference images to provide temporal compression. Alternatively, the intra-frame prediction unit 918 in the mode selection unit may perform intra-frame prediction coding on the received video block relative to one or more neighboring blocks in the same image or slice as the block to be encoded to provide spatial compression. The video encoder may perform multiple encoding processes, for example, to select an appropriate coding mode for each block of video data.
[0126] The segmentation unit 903 may further segment the video block into sub-blocks based on an evaluation of a previous segmentation scheme in a previous encoding process. For example, the segmentation unit may initially segment an image or slice into LCUs based on rate-distortion analysis (e.g., rate-distortion optimization), and segment each of the LCUs into sub-CUs. The segmentation unit may further generate a quadtree data structure indicating the segmentation of the LCU into sub-CUs. The leaf node CU of the quadtree may include one or more PUs and one or more TUs.
[0127] The motion vector estimation unit 916 performs the process of determining the motion vector of the video block. The motion vector may, for example, indicate the displacement Dx, Dy of a prediction block (prediction unit or PU) of a video block within a reference image (or other coding unit) relative to the current block encoded within the current image (or other coding unit). The motion estimation unit calculates the motion vector by comparing the position of the video block with the position of the prediction block of the reference image that approximates the pixel value of the video block. Therefore, in general, the data of the motion vector may include a reference image list (i.e., a list of decoded images (frames) stored in the memory of the encoder device), an index to the reference image list, a horizontal (x) vector and a vertical (y) component of the motion vector. The reference image may be selected from one or more reference image lists (e.g., a first reference image list, a second reference image list, or a combined reference image list), each of which identifies one or more reference images stored in the reference image memory 914.
[0128] The MV motion estimation unit 916 may generate a motion vector that identifies the prediction block of the reference picture and send the motion vector to the entropy coding unit 912 and the inter prediction unit 920. That is, the motion estimation unit 916 may generate and send motion vector data that identifies: a reference picture list containing the prediction block, an index to the reference picture list that identifies the prediction block, and a horizontal component and a vertical component for locating the prediction block within the identified picture.
[0129] Instead of sending the actual motion vector, the motion vector prediction unit 922 can predict the motion vector to further reduce the amount of data required to transmit the motion vector. In this case, instead of encoding and transmitting the motion vector itself, the motion vector prediction unit 922 can generate a motion vector difference (MVD) relative to a known (or knowable) motion vector. The known motion vector that can be used with the MVD to define the current motion vector can be defined by a so-called motion vector predictor (MVP). In general, to be a valid MVP, the motion vector used for prediction points to the same reference image as the motion vector currently being encoded. Otherwise, further processing (component clipping, interpolation, etc.) of the motion vector is required to make it a valid MVP.
[0130] The motion vector prediction unit 922 can establish an MVP candidate list, which includes several neighboring blocks in the spatial direction and / or the temporal direction as candidates for the MVP. When multiple MVP candidates are available (from multiple candidate blocks), the MV prediction unit 922 can determine the MVP of the current block according to a predetermined selection criterion. For example, the MV prediction unit 922 can select the most accurate prediction value from the candidate list based on an analysis of the coding rate and distortion (e.g., using a rate-distortion cost analysis or other coding efficiency analysis). Other methods for selecting motion vector prediction values are also possible. After selecting the MVP, the MV prediction unit can determine the MVP index, which can be used to inform the decoder device to locate the MVP in the reference image list including the MVP candidate block. The MV prediction unit 922 can also determine the MVD between the current block and the selected MVP. The MVP index and MVD can be used to reconstruct the motion vector of the current block. Typically, the segmentation unit and the mode selection unit (including the intra-frame prediction unit and the inter-frame prediction unit), the motion vector estimation unit, and the motion compensation unit can be highly integrated. These units are shown separately in the figure for conceptual purposes.
[0131] The inter-frame prediction unit 920 may include a global motion compensation unit 924, which includes a global motion compensation function f configured to generate motion compensation information, which is used to remove global motion from the x and y components of the motion vector predictor. For example, the x and y components of the motion vector predictor MVP=(D'x, D'y) associated with a block in a video frame describe the motion associated with the pixels in the block. The motion may include local motion, global motion, or both local and global motion. The function may be configured to determine an accurate estimate of the global motion in a block of a video frame. In an embodiment, such an estimate may take the form of a motion compensation vector MCV=(dx, dy), which may be used to remove the global motion component from a motion vector or motion vector predictor before the encoder determines the best motion vector difference MVD based on an optimization scheme (e.g., a rate-distortion optimization (RDO) scheme described in more detail below).
[0132] In an embodiment, global motion can be removed by subtracting the x and y components of the global motion vector from the x and y components of the motion vector predictor. The resulting motion vector predictor may be referred to as a compensated motion vector predictor, CMVP = (D'x-dx, D'y-dy). The encoder may then use CMVP to determine the best motion vector difference. In this way, the negative impact of compression on motion vectors caused by global motion may be significantly reduced.
[0133] In an embodiment, the motion vector predictor MVP may be compensated based on a motion compensation vector, and the resulting global motion compensated motion vector predictor CMVP may be used to determine a motion vector difference MVD. To this end, the encoder may use a motion compensation vector generated by a global motion compensation function f to compensate the motion vector predictor candidates defined in the candidate list MVP[i] generated by the MV prediction unit 922. In this way, a candidate list CMVP[i] of compensated motion vector predictor candidates may be determined, f: MVP[i]->CMVP[i]. A rate-distortion optimization process may be used to select the best candidate from the candidate list CMVP[i] of compensated motion vector predictor candidates. The selection may be signaled as an index to the candidate list, e.g., if the RDO process selects CMVP[0], i=0. The MV prediction unit thereafter determines the MVD as CMVP[0]-MV, and subsequently encodes the MVD and the index into the bitstream. In an embodiment, during the RDO process, one or more uncompensated motion vector predictors from the candidate list MPV[i] of (uncompensated) motion vector predictors may also be considered. In this way, compensation for global motion is only used if it can improve the RD cost.
[0134] The following will refer to Figures 11 to 13 The process performed by the motion compensation unit of the encoder is described in more detail.
[0135] The predicted video block (identified by the motion vector) received from the mode selection unit 904 may be subtracted from the original video block being encoded by the adder 906 to form a residual video block. The transform processing unit 909 may be used to apply a transform such as a discrete cosine transform (DCT) or a conceptually similar transform to the residual video block to form a block with residual transform coefficient values. Conceptually similar transforms to DCT may include, for example, wavelet transforms, integer transforms, subband transforms, etc. The transform processing unit 909 may apply a transform to the residual block, thereby generating a block with residual transform coefficients. The transform may convert the residual information from a pixel value domain to a transform domain (such as a frequency domain). The transform processing unit 909 may send the generated transform coefficients to a quantization unit 910, which quantizes the transform coefficients to further reduce the bit rate.
[0136] The controller 910 may provide syntax elements (metadata) such as an inter-mode indicator, an intra-mode indicator, partition information, and syntax information to the entropy encoding unit 914 .
[0137] Here, the syntax elements may include information for signaling (selected) motion vector predictors, motion vector differences, and metadata associated with the motion compensation process as described in the embodiments of the present application. The metadata may include an indication that the motion vector difference is based on the difference between the motion vector and the motion vector predictor compensated for global motion. Such an indication may be implemented as a (binary) flag, etc. The metadata may further include information for converting the motion vector predictor into a compensated motion vector predictor, for example, parameters for a parameterized algorithm (parameterized function) in a video decoder, motion compensation vectors, or information for establishing a motion compensation map, the motion compensation map including motion compensation vectors for compensating video blocks of a video frame.
[0138] Then, the entropy coding unit 912 performs entropy coding on the quantized transform coefficients and syntax elements. For example, the entropy coding unit can perform context adaptive variable length coding (CAVLC), context adaptive binary arithmetic coding (CABAC), syntax-based context adaptive binary arithmetic coding (SBAC), probability interval segmentation entropy (PIPE) coding, or another entropy coding technique. In the case of context-based entropy coding, the context can be based on adjacent blocks. After entropy coding by the entropy coding unit, the encoded bit stream can be transmitted to another device (e.g., a video decoder), or the encoded bit stream can be stored for later transmission or retrieval.
[0139] The inverse quantization and inverse transform unit 915 applies inverse quantization and inverse transform, respectively, to reconstruct the residual block in the pixel domain, for example, for later use as a reference block. The inter-frame prediction unit 920 can calculate the reference block by adding the residual block to the prediction block of one of the images in the reference image memory 914. The inter-frame prediction unit 920 can also apply one or more interpolation filters to the reconstructed residual block to calculate segmented integer pixel values for motion estimation. The reconstructed residual block is added to the motion prediction block generated by the inter-frame prediction unit 920 to generate a reconstructed video block for storage in the reference image memory 914. The motion vector estimation unit 916 and the inter-frame prediction unit 920 can use the reconstructed video block as a reference block to inter-frame encode a block in a subsequent image.
[0140] The encoder may perform a known rate-distortion optimization (RDO) process to find optimal coding parameters for a coding block in an image. Here, optimal coding parameters (including mode decision (intra-frame prediction; inter-frame prediction without motion compensation or inter-frame prediction with motion compensation); intra-frame prediction mode estimation; motion estimation; and quantization) refer to a set of parameters that provides the best trade-off between the number of bits used to encode the block and the distortion introduced by encoding using those number of bits.
[0141] The term rate-distortion optimization is sometimes also referred to as RD optimization or simply "RDO". RDO schemes applicable to AVC and HEVC type coding standards are known per se, see, for example, Sze et al., "High efficiency video coding (HEVC)", Integrated Circuit and Systems, Algorithms and Architectures, Springer (2014): 1-375; Section: 9.2.7 RD optimization. RDO can be implemented in many ways. In one well-known embodiment, the RDO problem can be expressed as minimizing a Lagrangian cost function J with respect to Lagrangian multipliers:
[0142]
[0143] Here, the parameter R represents the rate (i.e., the number of bits required for encoding), and the parameter D represents the distortion of the video signal associated with a certain rate R. The distortion D can be considered as a measure of the quality of the video. Known metrics for objectively determining quality (objective in the sense that the metric is independent of the content) include mean square error (MSE), peak signal-to-noise ratio (PSNR), and sum of absolute differences (SAD).
[0144] In the case of HEVC, the rate-distortion cost may require the video encoder to use each or at least a portion of the available prediction modes (i.e., one or more intra-frame prediction modes and / or one or more inter-frame prediction modes) to calculate the predicted video block. The video encoder then determines a difference video signal between each predicted block and the current block (here, the difference signal may include a residual video block), and transforms each of the determined residual video blocks from the spatial domain to the frequency domain to obtain a transformed residual block. Next, the video encoder may quantize each transformed residual block to generate a corresponding encoded video block. The video encoder may decode the encoded video block and compare each decoded video block with the current block to determine a distortion metric D. In addition, the rate-distortion analysis involves calculating a rate R for each encoded video block associated with one of the prediction modes, wherein the rate R includes an amount of bits used to signal the encoded video block. The RD cost, distortion D and rate R of the coded blocks so determined for each prediction mode are then used to select the coded video block that provides the best compromise between the number of bits used to encode the block and the distortion introduced by encoding using these number of bits.
[0145] In an embodiment, the present invention provides a coding optimization scheme for video data based on the RD optimization scheme. The optimization scheme takes into account:
[0146] 1. The motion in the video blocks in the video frames may include a global motion component caused by the camera motion (e.g., a global motion field in spherical video data due to the translational movement of a 360 camera, i.e., video data projected onto a 2D plane using a predetermined projection model (e.g., an equirectangular or cubic projection model));
[0147] 2. The motion field represented by the MV of a video block in a video frame includes a global motion component that can be approximated (modeled) by a function or algorithm and one or more parameters associated with a moving camera (e.g., camera speed, camera direction, camera height, etc.).
[0148] The function can use the initial global motion parameter set to determine the initial motion vector compensation values of the video blocks of the video frame. The motion vector compensation values of all video blocks of the video frame can be referred to as a motion vector compensation map. The initial global motion parameter set can be used to provide a first approximation (first candidate map) of motion compensation values for each of at least a portion of the video blocks in the video frame. Then, multiple derived global motion parameter sets can be generated by introducing one or more small deviations in the global motion parameters of the initial global motion parameter set. These different global motion parameter sets can be used to determine different motion compensation maps (one or more additional candidate motion compensation maps). Each of these candidate motion compensation maps can be used to compensate (minimize) the contribution of the global motion field to the motion vector component of the video frame to be encoded.
[0149] The candidate motion compensation map that provides the most accurate model of the motion field in the video frame sequence can be used to remove or at least significantly reduce the global motion field from the motion vector or motion vector prediction value. In this way, an improved RD cost can be achieved when compared to the RD cost of the original video frame, in which the motion vector is not compensated for the global motion field. In this way, the RD optimization scheme can be used to determine a set of global motion parameters including motion vector compensation that provides the best coding efficiency.
[0150] Therefore, the coding optimization scheme according to the present invention includes generating several candidate motion compensation graphs. Each candidate graph can be used to determine a compensated motion vector or a compensated motion vector prediction value associated with a video block of a video frame. Here, the compensated motion vector (prediction value) represents a motion vector (prediction value) in which the contribution of the global motion field is eliminated or at least significantly reduced. Each candidate graph can be used in an RD optimization process (e.g., a known RD optimization process), in which conventional coding parameters (intra-frame prediction, inter-frame prediction, and motion compensation) are optimized for each coding block using minimization of a cost function. The encoded candidate video frame that exhibits the lowest RD cost is used to form an output bitstream generated by an encoder device.
[0151] Fig.101 is a block diagram illustrating an example video decoder 1000 including a motion compensation unit according to an embodiment of the present invention. Fig.10 In the example of , the video decoder 1000 includes an entropy decoding unit 1004, a parser 1006, a prediction unit 1018, an inverse quantization and inverse transform unit 1008, a summer 1009 and a reference image memory 1016. Here, the prediction unit 1018 may include an inter-frame prediction unit 1022 and an intra-frame prediction unit 1020. Further, the inter-frame prediction unit may include a motion vector prediction unit 1024 and a global motion compensation unit 1026 including a motion compensation function. The motion compensation function may be a parameterized algorithm (parameterized function) for generating motion compensation information (e.g., motion compensation vector) based on a model of a moving camera and one or more parameters associated with the model. Alternatively, the motion compensation function may be (or rely on) an image processing function that is configured to determine an estimate of global motion based on blocks of a video frame sequence.
[0152] During the decoding process, the video decoder 1000 receives an encoded video bitstream 1002 including encoded video blocks and associated syntax elements from the video encoder. The entropy decoding unit 1004 decodes the bitstream to generate quantization coefficients associated with the residual block, motion vector differences, and syntax elements (metadata) for enabling the video decoder to decode the bitstream. The parser unit 1006 forwards the motion vector differences and associated syntax elements to the prediction unit 1018.
[0153] Syntax elements may be received at the video slice level and / or the video block level. For example, as background, the video decoder 1000 may receive compressed video data that has been compressed for transmission via a network into a so-called network abstraction layer (NAL) unit. Each NAL unit may include a header that identifies the type of data stored in the NAL unit. There are two types of data stored in common to the NAL unit. The first type of data stored in the NAL unit is video coding layer (VCL) data, which includes compressed video data. The second type of data stored in the NAL unit is called non-VCL data, which includes other information, such as parameter sets that define header data common to a large number of NAL units and supplemental enhancement information (SEI).
[0154] When the video block of the video frame is intra-coded (I), the intra-prediction unit 1022 of the prediction unit 1018 may generate prediction data for the video block of the current video slice based on the signaled intra-prediction mode and data from a previously decoded block of the current image. When the video block of the video frame is inter-coded (e.g., B or P), the inter-prediction unit 1020 of the prediction unit 1018 generates a prediction block for the video block of the current video slice based on motion vector differences and other syntax elements received from the entropy decoding unit 1004. The prediction block may be generated based on one or more reference images in one or more reference image lists stored in a memory of the video decoder. The video decoder may construct a reference image list using a default construction technique based on the reference images stored in the reference image memory 1016.
[0155] The inter-frame prediction unit 1020 can determine prediction information for the video block of the current video slice by parsing the motion vector difference and other syntax elements, and use the prediction information to generate a prediction block of the current video block being decoded. For example, the inter-frame prediction unit 1020 uses some of the received syntax elements to determine the prediction mode (e.g., intra-frame prediction or inter-frame prediction) used to encode the video block of the video slice, the inter-frame prediction slice type (e.g., B slice or P slice), the construction information of one or more reference image lists in the reference image list of the slice, the motion vector prediction value of each inter-frame coded video block of the slice, the inter-frame prediction state of each inter-frame coded video block of the slice, and other information for decoding the video block in the current video slice. In some examples, the inter-frame prediction unit 1020 can receive certain motion information from the motion vector prediction unit 1022.
[0156] The inter prediction unit 1020 may include a global motion compensation unit 1024, which includes a motion compensation function for converting the compensated motion vector to a motion vector. In an embodiment, the motion conversion function may be a parameterized algorithm (parameterized function) for determining the motion compensation vector using one or more parameters in the bitstream.
[0157] The decoder may retrieve a motion vector difference MVD of a current block to be decoded. The decoder may further determine a candidate list MVP[i] of motion vector predictor candidates associated with the current block. The video decoder may establish the list based on the position of the current block, wherein the motion vector predictor candidates are associated with blocks having predetermined positions (usually adjacent) relative to the position of the current block. These relative positions are known to the encoder device and the decoder device.
[0158] The decoder may then use a motion compensation function to generate motion compensation information to convert the motion vector predictor into a compensated motion vector predictor. For example, in one embodiment, the motion compensation function may be a parameterized algorithm configured to generate motion compensation information based on one or more parameters in the bitstream. The motion compensation information may include a motion compensation vector used by the encoder to compensate the motion vector predictor. In another embodiment, where a motion compensation vector or (a portion of) a motion compensation map is encoded into a bitstream, the motion compensation function may use the motion compensation vector in the bitstream to convert the MVP into a CMVP.
[0159] The decoder may further use the motion compensation vector to determine a candidate list CMVP[i] of compensated motion vector predictors. The decoder may use a decoded index (i.e., i=0) associated with a motion vector difference MVD to select the compensated motion vector predictor CMVP[0] selected by the encoder and used to determine the MVD. The decoder then calculates the MV based on CMVP[0] and MVD: MV=CMVP[0]-MVD. The MV thus reconstructed is then used to determine a prediction block in a reference frame stored in a reference picture memory of the video decoder.
[0160] The following will refer to Figures 11 to 13 The process performed by the motion compensation unit of the decoder is described in more detail.
[0161] Therefore, after determining the motion information of the current block, the motion vector prediction unit 1022 may generate a prediction block of the current block.
[0162] The inverse quantization and inverse transform unit 1008 inversely quantizes, i.e., dequantizes, the quantized transform coefficients provided in the bitstream and decoded by the entropy decoding unit. The inverse quantization process may include using a quantization parameter calculated by the video encoder for each video block in the video slice to determine the degree of quantization, and likewise determine the degree of inverse quantization that should be applied. The inverse quantization and inverse transform unit may further apply an inverse transform (e.g., an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process) to the transform coefficients to produce a residual block in the pixel domain.
[0163] After the inter-frame prediction unit 1020 generates the prediction block for the current video block, the video decoder forms a decoded video block by summing the residual block determined by the inverse transform process with the corresponding prediction block generated by the inter-frame prediction unit 1020. Adder 1009 represents one or more components that perform this summing operation. If necessary, a deblocking filter may also be applied to filter the decoded block to remove blocking artifacts. Other loop filters (in the encoding loop or after the encoding loop) may also be used to smooth pixel transitions or otherwise improve video quality. The decoded video blocks in a given image are then stored in a reference image memory 1016, which stores reference images for subsequent motion compensation. Reference image memory 1016 also stores decoded video for later presentation on a display device.
[0164] Fig.11 A flowchart of a video encoding process according to another embodiment of the present invention is depicted. The process may be implemented by an encoder device (eg, reference Fig. 9 1100, and by a decoder device (e.g., Fig.10 The decoding process 1102 is performed by a decoder device described in the embodiment of the present invention.
[0165] In a first step 1104, the encoder may determine a motion vector (MV) for a current video block that needs to be encoded. The motion vectors may be determined using a well-known motion vector estimation process, wherein each motion vector may indicate a displacement (offset) of a video block within the current image relative to a video block within a decoded reference image stored in a memory of the encoder device (e.g., a decoded video frame before or after the current video frame). The video block pointed to by the motion vector in the reference frame may be referred to as a prediction block. A residual video block may then be determined based on the difference between the current block and the prediction block (step 1106). The residual block may be determined based on the difference between video samples (e.g., pixel values) in the video block in the current frame and video samples in the video block in the reference frame identified by the motion vector. In an embodiment, the video frame may be a projected video frame, i.e., a video frame obtained by using, for example, a combination of Figure 2 3 and the projection model described in Figure 3. The projected video frame may include an arrangement of pixel regions that is a direct result of the projection model used, wherein during projection, the image may be distorted (warped) due to the projection.
[0166] In another step 1110, at least one list of motion vector predictor candidates may be determined by the encoder device. The MVP list may be an indexed list of MVP candidates. The candidate list may be generated using any suitable MV prediction process, such as the AMVP scheme known from the HEVC standard, or the dynamic reference motion vector prediction (REFMV) used by AV1. The process of generating the candidate list is known to both the encoder device and the decoder device. Typically, the motion vector predictor candidates include motion vectors of decoded blocks in a reference frame (typically blocks co-located with the current block) or motion vectors of decoded blocks in the current frame (typically blocks adjacent to the current block). An optimization process (e.g., a rate-distortion optimization process) may be used to select the best motion vector predictor from the candidate list.
[0167] In step 1110, the encoder may use a function to determine an estimate of the contribution of the global motion field to the motion vectors of the video frame. These motion contributions are related to the camera motion (e.g., reference FIG. 4A to FIG. 4C ), and if the spherical video data is projected onto a 2D plane, a warping effect may occur due to the projection. The function may generate compensation information, which may be in the form of a motion compensation vector, wherein the x component of the motion compensation vector may be used to remove global motion from the x component of the motion vector predictor, and the y component of the motion compensation vector may be used to remove global motion from the y component of the motion vector predictor. The motion compensation vector may provide an accurate estimate of global motion in a video frame. A compensated motion vector predictor may be generated by adding the motion compensation vector to (subtracting the motion compensation vector from) the motion vector predictor. Such vector calculations (step 1108) may be performed simply by adding and / or subtracting components of the motion vector predictor (e.g., the x and y components of the motion vector) and the motion compensation vector.
[0168] In an embodiment, the function may be one or more parameterized functions also known to the decoder device. For a particular sequence of video frames, the encoder device may select a parameterized function based on a plurality of parameters, such as: video type (e.g., spherical video) and projection model (e.g., ERP or cube). Further, one or more parameters such as camera speed, camera height, camera direction, etc. may be used to allow the parameterized function to determine a motion compensation vector that provides an accurate estimate of global motion in the sequence of video frames. In this case, the function type and parameters are transmitted to the decoder device, which may use these parameters to reproduce the motion compensation vector.
[0169] In another embodiment, the function may be an image processing function configured to determine motion vectors of blocks in a video frame of a sequence of video frames and to classify the motion vectors into motion vectors associated with local motion (i.e., moving objects) and global motion (i.e., scene motion caused by a moving camera). The motion vector representing the global motion may be used as a motion compensation vector, which may be transmitted to a decoder device in a bitstream. Thus, in this case, the decoder device may use the motion compensation vector directly and no parameterization function is required.
[0170] The motion compensation information generated by the function may include motion compensation vectors for the MVPs of the MVP candidate list. These motion compensation vectors may be applied to the MVPs of the MVP candidate list to form a list of compensated MVP candidates, preferably an indexed list. An optimization process such as a rate-distortion optimization process may be used to select the best compensated MVP from the indexed list of compensated MVP candidates (end of step 1110).
[0171] The index of the selected compensated MVP may be referred to as the compensated MVP index. In step 1112, the MVD may be determined based on the selected compensated MVP and the MV of the current block. The residual block, the MVD (based on the compensated MVP) and the compensated MVP index, as well as all other information (metadata) required for a decoder device to reconstruct the block are encoded in the bitstream using entropy coding (step 1114).
[0172] A decoder device receiving a bitstream may perform a process to decode the bitstream and construct a video frame based on the decoded information in the bitstream and the decoded reference video frame stored in the reference image memory of the decoder device. To this end, the decoder device may first decode the bitstream into residual video blocks, MVDs, and metadata including compensated MVP indexes using an entropy encoding process (step 1116). Further, the decoder device may determine a MVP candidate list and motion compensation vectors of the MVP candidates (step 1118).
[0173] In an embodiment, the decoder device may determine the motion compensation vector based on a parameterized function also used by the encoder device. In this case, the metadata may include one or more parameters of the parameterized function, wherein the parameters allow the function to provide an accurate estimate of the global motion of a sequence of video frames including the current video frame. Alternatively, the encoder device may transmit the motion compensation vector as metadata in a bitstream to the decoder device. In this case, the decoder device does not need to calculate the motion compensation vector, but can directly use the motion compensation vector in the bitstream.
[0174] The motion compensation vector may be used to determine a list of compensated MVP candidates, and the compensated MVP index may be used to select a compensated MVP from the candidate list (step 1120). In an embodiment, instead of determining a compensated MVP for all candidates in the candidate list, the compensated motion vector index may be used to determine a motion compensation vector for the MVP candidate as identified by the compensated MVP index, and the motion compensation vector may be applied to the MVP candidate to form a compensated MVP.
[0175] The MV of the current block may be determined based on the compensated MVP and the decoded MVD (step 1122). Further, the decoder device may use the MV to determine a prediction block in a reference frame stored in a memory of the decoder device (step 1124), and reconstruct the current block based on the prediction block and the decoded residual block (step 1126).
[0176] Therefore, if Fig.11 As shown in the process of , motion compensation information is used to eliminate or at least significantly reduce global motion from the motion vector predictor. After removing the global motion from the motion vector predictor, a state-of-the-art motion vector prediction scheme can be used to efficiently generate a motion vector difference that has lower entropy than the original uncompensated motion vector difference. In this way, efficient compression of high-resolution video including global motion can be achieved.
[0177] Fig.12 The use of motion compensation vectors in a video encoding process according to an embodiment of the present invention is demonstrated. Fig.12 A portion of a video frame 1202 including a current video block 1210 that needs to be encoded is depicted. As shown in the figure, global motion due to, for example, camera movement may cause the MV of the current video block 1210 to be different from that of the neighboring video block 1212. 1,2 There are significant differences in the size and / or orientation of the MVs. Fig.12 As shown, global motion in blocks of a video frame may result in a motion vector 1210 of a current video block being different from its decoded neighboring blocks 1212. 1,2 The motion vector prediction value 1212 for compensation can be generated based on the parameterized encoder function. 1,2 Motion compensation vector 1208 for global motion in 1,2 When the motion compensation vector 1208 1,2 Apply (eg, add to) motion vector 1212 1,2 When the current video block 1214 is adjacent to the video block 1214 (see video frame 1206), the generated compensated motion vector 1216 1,2The size and orientation of can be similar to the motion vector of the current video block 1214. In this way, the motion vectors of the blocks adjacent to the current block become suitable motion vector predictor candidates for the motion vector of the current block. The encoder device can use an optimization process to select the best MVP from the MVP candidates. The process can be repeated for all video blocks in the video frame or at least the video blocks in the video frame that are affected by global motion. The compensated motion vector predictor can be used to obtain a small motion vector difference, thereby minimizing or at least reducing the entropy in the signal that needs to be entropy encoded into the bitstream.
[0178] Fig.13 The use of motion compensation vectors in a video encoding process according to another embodiment is shown. Fig.13 The process depicted in Fig.12 The process described in the above is different in that, in this process, the block 1312 adjacent to the current block 1310 1,2 Both the compensated motion vector and the uncompensated motion vector (as depicted by 13062) can be considered as motion vector predictor candidates by the encoder device. The encoder device can use an optimization process to select the best MVP from the MVP candidates. Fig.12 and Fig.13 It is shown that the motion compensation vector is used to compensate the motion vector predictor of the motion vector of the current block based on the motion vector of the coded block in the current video frame (i.e., compensation of the spatial motion vector predictor), but the motion compensation vector can be used to compensate the motion vector predictor of the motion vector of the current block based on the motion vector of the coded block of the reference frame (i.e., compensation of the temporal motion vector predictor),
[0179] Thus, as shown in the embodiments described in this application, a motion vector compensation function can be used to improve the compression efficiency of video (particularly spherical video) that is affected by global motion caused by the movement of the camera used to capture the video.
[0180] The parameterized function can be used to model (estimate) the global motion in the video frame. Specifically, the parameterized function can be used to provide an estimate of the global motion of the block in the video frame. To this end, the parameterized function can be configured to determine the motion compensation information of the block in the video frame. The motion compensation information can be in the form of a motion compensation vector, wherein the x component of the motion compensation vector provides an estimate of the global motion of the block in the x direction, and the y component of the motion compensation vector provides an estimate of the global motion of the block in the y direction. The motion vector compensation value can be determined by the function based on parameters such as the camera direction and camera height in 3D space. Therefore, when a video frame is encoded using a predetermined motion vector compensation function, metadata can be inserted into the bitstream to enable a decoder device to reverse the motion compensation process used by the encoder device. Table 2 below provides exemplary model parameters that can be used by a parameterized function that can be used in an embodiment of the present application:
[0181]
[0182] Table 2: Model parameters of the motion compensation function.
[0183] As reference FIG. 4A to FIG. 4D As described, the parameterized function may use a (simple) model including a top plane and a bottom plane, wherein the camera moves parallel to these planes to determine the motion vector compensation values. For example, using the parameter syntax defined in Table 2, the following exemplary model parameters may be used to represent the model for a particular video frame sequence:
[0184] Parameter name Example Value Camera speed 80 Camera height 10 Top plane height 50 Camera Direction 0 .
[0185] Since the model is used on both the encoder side and the decoder side, it is desirable to signal this data as part of the bitstream payload. In an embodiment, both the encoder and the decoder may be provided with a parameterized function (e.g., pre-programmed in their memory), and the parameters used by the encoder's parameterized function to determine motion compensation information for one or more video frames may be signaled to the decoder by simply transmitting these parameters or information determining these parameters in the bitstream to the decoder. In another embodiment, the motion compensation vectors may be sent to the decoder in the bitstream. In this case, the decoder device does not need to have a parameterized function for calculating the motion compensation vectors. This approach may be advantageous if the motion compensation vectors can be used for a relatively large number of subsequent video frames, such as a relatively long scene captured using a moving 360 video. In this case, when a long scene including global motion begins, the motion compensation map may be transmitted to the decoder device in the bitstream, and minor changes in the motion compensation map due to changes in, for example, camera speed and / or camera direction may be updated by transmitting only the motion compensation vector differences to the decoder device.
[0186] In an embodiment, metadata associated with the motion compensation scheme described in this application may be transmitted to a decoder device in, for example, VCL NAL units known from the AVC and HEVC standards. When this information is not available, for example due to transmission errors or data loss after transcoding, signaling these parameters in some metadata packets may carry the risk of decoding failures.
[0187] To this end, in one embodiment, metadata including model parameters may be inserted into the VCL NAL unit, preferably a PPS (Picture Parameter Set) as known from the AVC and HEVC standards. Table 3 provides an exemplary embodiment of a PPS including model parameters for a parameterized function in a decoder device:
[0188]
[0189] Table 3: Example of PPS including model parameters.
[0190] The syntax of the PPS may be adapted according to the HEVC standard, where the descriptor ue(v) specifies "unsigned integer 0-order exponential-Golomb-coded syntax element, left bit first". In this way, each value is not limited to a certain fixed number of bits, e.g., 4, 8, etc. However, implementations may restrict the values to such a range.
[0191] In another embodiment, metadata including model parameters of the parameterized function for the decoder device may be signaled in an SEI message. This embodiment provides a possible syntax for a new SEI message, as known from the AVC or HEVC standard. Such an SEI message is required for decoding, so that the introduction of such a message will create a new HEVC version. Table 4 shows the syntax of the SEI payload, which includes a new number payloadType for the SEI message:
[0192]
[0193] Table 4: Syntax of SEI payload including model parameters.
[0194] In another embodiment, the motion compensation map can be sent with the bitstream. In this case, the map may not be obtained from a physical model of the scene, but may be obtained by any other means, as long as the result of using the map is to compress the video sequence more efficiently. A suitable use case for generating the map directly from an image processing algorithm without using a parameterized function (parameterized algorithm) may be a video in which there is a lot of local motion caused by a large number of objects moving in the scene, or a certain area of the video scene does not follow the global motion pattern (for example, a static area at the bottom of the video when the camera is mounted on a moving vehicle). In an embodiment, the image processing algorithm can be configured to determine the motion field in the current video frame, that is, a motion vector field including motion vectors associated with pixels or pixel blocks of the current video frame. In the field of computer vision, this motion vector field is called optical flow, as defined by James Gibson around 1940. There are several image processing algorithms to estimate optical flow, such as phase correlation, block-based matching (the operation performed by the encoder for block-based motion compensation), differential methods, or discrete optimization methods, etc. Once the optical flow is estimated, the motion compensation map can be based on the estimated optical flow and transmitted in the bitstream. In addition, therefore, conventional image processing algorithms can be used to analyze video frames, determine motion fields associated with video data of video frames, and classify motion vectors into positional motion vectors and global motion vectors. The classified global motion vectors can be used as motion compensation vectors for compensating global motion contributions in motion vectors during video encoding. In an embodiment, the encoder's determination of the motion compensation map can be performed via a rate-distortion loop so that the obtained motion compensation map can ensure a gain in compression efficiency. When the map is explicitly transmitted in the bitstream, it is important that the syntax allows the map to be fully compressed, otherwise the compression gain obtained by using the map may be offset by the bits required to transmit the map. In order to efficiently transmit the motion compensation map, it can be observed that the map is symmetrical with respect to the vertical axis and / or the horizontal axis. If both of these symmetries exist at the same time, only a quarter of the map needs to be transmitted, and the rest can be derived from these values based on the symmetry characteristics. Therefore, in an embodiment, if the motion compensation map exhibits symmetric characteristics, for example, one or more symmetries relative to the coordinate system defining the vector, only a portion of the motion compensation map can be transmitted to the decoder device, where the algorithm in the decoder device can expand the map based on the symmetry characteristics of the map. Additionally, motion compensated maps may contain similar values that can be efficiently encoded using known coding algorithms such as run-length coding. An example syntax for transmitting a map in a bitstream is provided in Table 5 below:
[0195]
[0196] Table 5: Syntax of motion compensation pictures in the bitstream.
[0197] Where ue(v) is an unsigned integer 0-order exponential Golomb coded syntax element as defined in the HEVC standard, with the left bit first, and se(v) is a signed integer 0-order exponential Golomb coded syntax element as defined in the HEVC standard. As described above, the graph can be further compressed by transmitting only a portion of the graph (e.g., one or two quadrants of the graph), with the remainder derived by symmetry. An example syntax for transmitting only one quadrant of a graph in the bitstream is provided in Table 6 below:
[0198]
[0199] Table 6: Syntax for one quadrant of a symmetric motion compensation map in the bitstream.
[0200] In practice, this means:
[0201] -Always transfer the upper left quadrant
[0202] - If vertical symmetry exists, the upper right quadrant is not transmitted
[0203] - If there is horizontal symmetry, the lower left quadrant is not transmitted
[0204] - If vertical or horizontal is present, the lower right quadrant is not transmitted
[0205] In an embodiment, the motion compensation map or a portion thereof may be transmitted as a SEI message in a non-VCL NAL unit (such as a picture parameter set) of HEVC or related video coding standards, or a similar data unit in other video coding standards.
[0206] When using state-of-the-art video codecs (e.g., HEVC or other coding systems), problems associated with global motion discussed in this application may arise, where the encoded motion vector cannot be efficiently used for the current block of the video frame due to global motion. Therefore, the embodiments in this application can be used in a similar manner for other video coding standards such as VP9 or AV1, as these video coding standards rely on compressing motion vectors based on motion vector prediction values associated with the encoded blocks. Therefore, in an embodiment, model parameters of the parameterized algorithm (parameterized function) used in the decoder device can be signaled in a message having a syntax that conforms to the VP9 coding standard. Table 7 provides an example of such a message syntax:
[0207]
[0208] Table 7: Syntax of VP9 message including model parameters.
[0209] According to the AV1 specification, the AV1 encoding system uses the well-known motion compensation technique, in which motion vectors are signaled to reduce redundancy between pixel blocks moving from one frame to another. In addition, AV1 can also use the reduction in motion vector signaling by predicting the motion vector and then only signaling the Δ (difference) compared to the actual motion vector. The draft specification further teaches that the prediction relies on motion vectors associated with blocks that are close to the block for which the motion vector needs to be predicted. Therefore, the embodiments described in this application can also be used in the AV1 standard or any other codec standard that uses the well-known concepts of motion vectors and motion vector predictors.
[0210] In another embodiment, the signaled model parameters or explicit MV compensation map and its applicability to each frame can be disabled by a flag in the metadata associated with each frame. For example, a flag in the slice header of the HEVC bitstream can signal whether the MV compensation map signaled for a given frame is explicit or implicit. In this way, the encoder can choose to use the technique for a few frames and then not use the technique for a few frames without removing the signaled model parameters or explicit MV compensation map from the bitstream. The syntax of the flag in the slice header is provided in Table 8:
[0211] Table 8: Syntax of flags in slice header.
[0212] Fig.14 A schematic diagram of a video encoding and decoding system 1400 is depicted that may use the techniques described in this application. Fig.14 As shown, the system 1400 may include a first video processing device 1402 (e.g., a video capture device, etc.) configured to generate encoded video data that can be decoded by a second video processing device 1404 (e.g., a video playback device). The first video processing device and the second video processing device may include any of a variety of devices, including a desktop computer, a notebook computer (i.e., a laptop computer), a tablet computer, a set-top box, a telephone handset (such as a so-called "smart" phone), a so-called "smart" pad, a television, a camera, a display device, a digital media player, a video game console, a video streaming device, etc. In some cases, the video processing device may be equipped for wireless communication.
[0213] The second video processing device can receive the coded video data to be decoded through the transmission channel 1406 or any type of medium or device that can move the coded video data from the first video processing device to the second video processing device. In one example, the transmission channel may include a communication medium that enables the first video processing device to directly transmit the coded video data to the second video processing device in real time. The coded video data can be transmitted to the second video processing device based on communication standards such as wireless communication protocols. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form a part of a packet-based network such as a local area network, a wide area network, or a global network (such as the Internet). The communication medium may include a router, a switch, a base station, a server, or any other device that can help facilitate the communication between the first video processing device and the second video processing device.
[0214] Alternatively, the encoded data can be sent to a storage device 1410 via an I / O interface 1408 of a first video processing device. The encoded data can be accessed by inputting an I / O interface 1412 of a second video processing device. The storage device 1410 can include any of a variety of distributed or locally accessed data storage media, such as a hard drive, a Blu-ray disc, a DVD, a CD-ROM, a flash memory, a volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data. In another example, the storage device can correspond to a file server or another intermediate storage device that can save the encoded video generated by the first video processing device. The second video processing device can access the stored video data from the storage device via streaming or downloading. The file server can be any type of server capable of storing encoded video data and transmitting the encoded video data to the second video processing device. Example file servers include web servers (e.g., for websites), FTP servers, network attached storage (NAS) devices, or local disk drives. The second video processing device can access the encoded video data via any standard data connection (including an Internet connection). Such a connection may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, etc.), or a combination of the two suitable for accessing encoded video data stored on a file server. The transmission of the encoded video data from storage device 36 may be a streaming transmission, a download transmission, or a combination of the two.
[0215] The technology of the present disclosure content need not be limited to wireless applications or settings. These technologies can be applied to video coding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, streaming video transmission (e.g., via the Internet), encoding of digital video for storage on a data storage medium, decoding of digital video stored on a data storage medium, or other applications. In some examples, system 1400 can be configured to support one-way or two-way video transmission to support applications such as video streaming, video playback, video broadcasting, and / or video telephony.
[0216] exist Figure 1 In the example of , the first video processing device may further include a video source 1414 and a video encoder 1416. In some cases, the I / O interface 1408 may include a modulator / demodulator (modem) and / or a transmitter. The video source may include any type of source, such as a video capture device (e.g., a camera), a video archive containing previously captured videos, a video feed interface for receiving videos from a video content provider, and / or a computer graphics system or a combination of such sources for generating computer graphics data as a source video. If the video source 1414 is a camera, the first video processing device and the second video processing device may form a so-called camera phone or video phone. However, the technology described in the present disclosure may be generally applied to video encoding, and may be applied to wireless applications and / or wired applications.
[0217] The captured, pre-captured, or computer-generated video may be encoded by the video encoder 1416. The encoded video data may be transmitted directly to the second video processing device via the I / O interface 1408. The encoded video data may also (or alternatively) be stored on the storage device 1410 for later access by the second video processing device or other devices for decoding and / or playback.
[0218] The second video processing device may further include a video decoder 1418 and a display device 1420. In some cases, the I / O interface 1412 may include a receiver and / or a modem. The I / O interface 1412 of the second video processing device may receive encoded video data. The encoded video data transmitted through the communication channel or provided on the storage device 1410 may include various syntax elements generated by the video encoder 1416 for use by a video decoder (such as video decoder 1418) when decoding the video data. Such syntax elements may be included in the encoded video data transmitted on the communication medium, stored on the storage medium, or stored on the file server.
[0219] Display device 1420 can be integrated with the second video processing device or outside the second video processing device. In some examples, the second video processing device can include an integrated display device, and is also configured to be connected with an external display device interface. In other examples, the second video processing device can be a display device. Generally speaking, the display device will display the decoded video data to the user, and can include any one of various display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display or another type of display device.
[0220] The video encoder 1416 and the video decoder 1418 may operate according to a video compression standard such as High Efficiency Video Coding (HEVC), VP9, or AV1. Alternatively, the video encoder 1416 and the video decoder 1418 may operate according to other proprietary standards or industry standards, such as the ITU-T H.264 standard (alternatively referred to as MPEG-4 Part 10 Advanced Video Coding (AVC)), or an extension of such a standard. However, the techniques of the present disclosure are not limited to any particular coding standard.
[0221] Although not in Figure 1 1416, but in some aspects, the video encoder 1416 and the video decoder 1418 can each be integrated with an audio encoder and an audio decoder and can include appropriate MUX-DEMUX units or other hardware and software to handle the encoding of both audio and video in a common data stream or in separate data streams. If applicable, in some examples, the MUX-DEMUX units can conform to the ITU H.223 multiplexer protocol or other protocols, such as the User Datagram Protocol (UDP).
[0222] The video encoder 1416 and the video decoder 1418 can each be implemented as any of a variety of suitable encoder circuit systems, 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. When these techniques are partially implemented in software, the device can store instructions for the software in a suitable non-transitory computer-readable medium and use one or more processors to execute the instructions in hardware to perform the techniques of the present disclosure. Each of the video encoder 1416 and the video decoder 1418 can be included in one or more encoders or decoders, any of which can be integrated in the corresponding device as part of a combined encoder / decoder (CODEC).
[0223] The present disclosure may generally involve a video encoder "signaling" certain information to another device (such as a video decoder). The term "signaling" may generally refer to the transmission of syntax elements and / or other data (metadata) used to decode the compressed video data. Such transmission may occur in real time or near real time. Alternatively, such transmission may occur over a certain time span, such as may occur when the syntax elements are stored in the form of an encoded bitstream to a computer-readable storage medium at encoding time, and then these syntax elements can be retrieved by a decoding device at any time after being stored in this medium.
[0224] The techniques of the present disclosure may be implemented in a variety of devices or apparatuses including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in the present disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily need to be implemented by different hardware units. Rather, as described above, the various units may be combined in a codec hardware unit, or provided by a collection of interoperable hardware units (including one or more processors as described above) in combination with appropriate software and / or firmware.
[0225] The terms used herein are used only to describe specific embodiments and are not intended to limit the present invention. As used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that when the terms "comprises" and / or "comprising", when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts, and / or groups thereof.
[0226] The corresponding structures, materials, actions and equivalents of all means or steps plus functional elements in the claims are intended to include any structure, material or action for performing functions in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for the purpose of illustration and description, but the description is not intended to be exhaustive of the present invention or to limit the present invention to the disclosed form. Many modifications and variations will be obvious to those of ordinary skill in the art without departing from the scope and spirit of the present invention. The selection and description of the embodiments are intended to best explain the principles and practical applications of the present invention, and when suitable for the specific purpose contemplated, enable other persons of ordinary skill in the art to understand the present invention for various embodiments with various modifications.
Claims
1. A method of providing a bitstream comprising video data encoded by an encoder device, the method comprising: The processor of the encoder apparatus determines a motion vector for a current block of a current video frame in a sequence of video frames including video data captured by a video capture device, the motion vector defining an offset of the current block relative to a prediction block of an encoded first reference video frame stored in a memory of the encoder apparatus, wherein at least a portion of the offset defined by the motion vector is associated with global motion in the video data when the video capture device is moving relative to a scene; a difference between the current block and the prediction block defines a residual block; The processor determines a motion vector predictor candidate for predicting the motion vector, the motion vector predictor candidate being determined by the processor based on one or more motion vectors of one or more encoded blocks of the current video frame and / or based on one or more motion vectors of one or more encoded blocks of one or more reference video frames stored in a memory of the encoder device; The processor determines or receives a motion compensation vector for each motion vector predictor candidate, the motion compensation vector providing an estimate of a portion of the motion vector predictor candidate associated with global motion; The processor determines global motion compensated motion vector predictor candidates, each global motion compensated motion vector predictor candidate being determined based on a difference between the motion vector predictor candidate and an associated motion compensation vector; selects a global motion compensated motion vector predictor from the global motion compensated motion vector predictor candidates; and determines a motion vector difference based on the global motion compensated motion vector predictor and the motion vector; The processor encodes the following information into a bitstream using an entropy coding algorithm: the residual block; the motion vector difference; an indication of the motion vector difference based on the difference between the motion vector and a globally motion compensated motion vector prediction value; an indication of the selected globally motion compensated motion vector prediction value; and conversion information for converting the motion vector prediction value to a globally motion compensated motion vector prediction value.
2. The method of claim 1, wherein the indication of the motion vector difference based on the difference between the motion vector and the global motion compensated motion vector prediction value is a binary flag.
3. The method according to claim 1, wherein: The list of motion vector predictor candidates is an indexed list, and wherein the indication of the global motion compensated motion vector predictor selected by the encoder device comprises an index of the motion vector predictor in the list of motion vector predictor candidates.
4. The method according to any one of claims 1 to 3, wherein: The conversion information includes an indication of an algorithm used by the encoder device to determine the motion compensation vector; and / or one or more parameters of the algorithm used to determine the motion compensation vector stored in the decoder, at least a portion of the one or more parameters being associated with movement of the video capture device relative to the scene.
5. The method according to any one of claims 1 to 3, wherein: The motion compensation vector is part of a motion compensation map, which includes motion compensation vectors for blocks of the current video frame and / or the reference video frame.
6. The method according to any one of claims 1 to 3, wherein: The conversion information includes the motion compensation vectors or a motion compensation map including motion compensation vectors for blocks of the current video frame, motion compensation vectors for blocks of a sequence of video frames including the current video frame and / or the reference video frame.
7. The method according to any one of claims 1 to 3, wherein: Determining the motion vector difference includes: determining a first motion vector difference candidate based on the global motion compensated motion vector predictor and the motion vector; and determining a second motion vector difference candidate based on the motion vector predictor and the motion vector; The motion vector difference is selected from the first motion vector difference candidate and the second motion vector difference candidate based on an optimization process.
8. The method according to claim 7, wherein the optimization process is a rate-distortion optimization (RDO) process.
9. The method according to any one of claims 1 to 3, wherein: The motion compensation vector is determined based on a parameterized algorithm configured to generate an estimate of global motion of a current block of the video frame.
10. The method according to any one of claims 1 to 3, wherein: The motion compensation vector is determined based on an image processing algorithm, which is configured to determine a motion field in the current video frame, the motion field including motion vectors associated with pixels or pixel blocks of the current video frame, and the algorithm is configured to classify the motion vectors of the motion field into motion vectors representing local motion in the current video frame and motion vectors representing global motion in the current video frame.
11. The method according to any one of claims 1 to 3, wherein: The video capture device is adapted to capture spherical video data, and wherein the video frames in the sequence of video frames comprise spherical video data projected onto a rectangular video frame based on a projection model, the projection model being an equirectangular or cubic projection model.
12. The method according to any one of claims 1 to 3, wherein: At least a portion of the conversion information is included in the bitstream as one or more SEI messages; and / or included in one or more network abstraction layer NAL units. The method of claim 12 , wherein the NAL units are non-VCL NAL units. The method of claim 13 , wherein the non-VCL NAL unit is a picture parameter set (PPS).
15. The method according to any one of claims 1 to 3, wherein: The determination of the motion vector and the motion vector prediction value and the encoding are based on the AVC, HEVC, VP9, AV1 encoding standards or encoding standards based on the AVC, HEVC, VP9, AV1 encoding standards.
16. A method for reconstructing blocks of a video frame from a bitstream encoded by an encoder device, the method comprising: A processor of a decoder device receives a bitstream, the bitstream comprising a current block of a current video frame, the current block to be reconstructed by the decoder device based on a decoded prediction block of a first reference video frame stored in a memory of the decoder device and based on a motion vector representing an offset of the current block relative to the prediction block, the difference between the prediction block and the current block defining a residual block; The processor decodes the bitstream using an entropy encoding process into: a residual block; a motion vector difference; an indication that the motion vector difference is based on a difference between a motion vector and a global motion compensated motion vector predictor; an indication of a selected global motion compensated motion vector predictor; and conversion information for converting the motion vector predictor to a global motion compensated motion vector predictor; The processor determines a motion vector predictor candidate for predicting a motion vector for the current block, the motion vector predictor candidate defining a motion vector of a decoded block of the current video frame or a motion vector of a decoded block of a reference video frame stored in a memory of the encoder device; the processor using the transformation information to determine a motion compensation vector for each motion vector predictor candidate, the motion compensation vector providing an estimate of a portion of the motion vector predictor candidate associated with global motion caused by movement of the video capture device relative to the scene; The processor determines global motion compensated motion vector predictor candidates, each global motion compensated motion vector predictor candidate being determined based on a difference between the motion vector predictor candidate and an associated motion compensation vector; selects a global motion compensated motion vector predictor from the global motion compensated motion vector predictor candidates based on an indication of the selected global motion compensated motion vector predictor; and determines a motion vector for the current block based on the global motion compensated motion vector predictor and the motion vector difference; as well as, The processor reconstructs the current block based on the prediction block and the residual block, the reconstruction comprising using the motion vector to identify a prediction block of a reference video frame stored in a memory of the decoder device.
17. The method of claim 16, wherein the indication of the motion vector difference based on the difference between the motion vector and the global motion compensated motion vector prediction value is a binary flag.
18. An encoding device, comprising: a computer-readable storage medium having at least a portion of a program embodied therein; and a computer-readable storage medium having a computer-readable program code embodied therein; and A processor coupled to the computer-readable storage medium, wherein, in response to executing the computer-readable program code, the processor is configured to perform executable operations, the executable operations comprising: determining a motion vector for a current block of a current video frame in a sequence of video frames including video data captured by a video capture device, the motion vector defining an offset of the current block relative to a prediction block of an encoded first reference video frame stored in a memory of the encoder apparatus, wherein at least a portion of the offset is associated with global motion in the video data when the video capture device is moving relative to a scene; a difference between the current block and the prediction block defining a residual block; determining or receiving a motion compensation vector for each motion vector predictor candidate, the motion compensation vector providing an estimate of a portion of the motion vector predictor candidate associated with global motion; determining or receiving a motion compensation vector for each motion vector predictor candidate, the motion compensation vector representing an estimate of global motion of pixels of an encoded block of the current video frame or an encoded block of one of one or more reference video frames, the global motion being due to movement of the video capture device relative to the scene; determining global motion compensated motion vector predictor candidates, each global motion compensated motion vector predictor candidate being determined based on a difference between the motion vector predictor candidate and an associated motion compensation vector; selecting a global motion compensated motion vector predictor from the global motion compensated motion vector predictor candidates; and determining a motion vector difference based on the global motion compensated motion vector predictor and the motion vector; The following information is encoded into a bitstream using an entropy coding algorithm: the residual block; the motion vector difference; an indication of the motion vector difference based on the difference between the motion vector and a globally motion compensated motion vector prediction value; an indication of a selected globally motion compensated motion vector prediction value; and conversion information for converting the motion vector prediction value into a globally motion compensated motion vector prediction value.
19. The encoding apparatus of claim 18, wherein the indication of the motion vector difference based on the difference between the motion vector and the global motion compensated motion vector prediction value is a binary flag.
20. A decoding device, comprising: a computer-readable storage medium having at least a portion of a program embodied therein; as well as, A computer readable storage medium having a computer readable program code embodied therein; and a processor coupled to the computer readable storage medium, wherein in response to executing the computer readable program code, the processor is configured to perform executable operations, the executable operations comprising: receiving a bitstream comprising a current block of a current video frame to be reconstructed by the decoder device based on a decoded prediction block of a first reference video frame stored in a memory of the decoder device and based on a motion vector representing an offset of the current block relative to the prediction block, the difference between the prediction block and the current block defining a residual block; decoding the bitstream using an entropy coding process into: a residual block; a motion vector difference; an indication that the motion vector difference is based on a difference between a motion vector and a global motion compensated motion vector predictor; an indication of a selected global motion compensated motion vector predictor; and conversion information for converting the motion vector predictor to a global motion compensated motion vector predictor; determining a motion vector predictor candidate for predicting a motion vector for the current block, the motion vector predictor candidate defining a motion vector of a decoded block of the current video frame or a motion vector of a decoded block of a reference video frame stored in a memory of the decoder device; determining a motion compensation vector for each motion vector predictor candidate using the transformation information, the motion compensation vector providing an estimate of a portion of the motion vector predictor candidate associated with global motion caused by movement of the video capture device relative to the scene; determining globally motion compensated motion vector predictor candidates, each globally motion compensated motion vector predictor candidate being determined based on a difference between the motion vector predictor candidate and an associated motion compensation vector; selecting a globally motion compensated motion vector predictor from the globally motion compensated motion vector predictor candidates based on an indication of the selected globally motion compensated motion vector predictor; and determining a motion vector for the current block based on the globally motion compensated motion vector predictor and the motion vector difference; and, Reconstructing a current block based on the prediction block and the residual block includes using the motion vector to identify a prediction block of a reference video frame stored in a memory of the decoder device.
21. The encoding apparatus of claim 20, wherein the indication of the motion vector difference based on the difference between the motion vector and the global motion compensated motion vector prediction value is a binary flag.
22. A computer-readable storage medium storing a computer program, the computer program comprising software code portions configured to perform the method steps according to any one of claims 1 to 17 when executed in a memory of a computer.
