Improved overlapped block motion compensation for inter prediction
By adaptively adjusting the mixing area and weight factor of OBMC and disabling OBMC under specific conditions, the problems of block artifacts and computational complexity in inter-frame prediction are solved, coding efficiency is improved and design is simplified, making it suitable for modern video editing. Implementation of decoding standards.
Patent Information
- Application Number
- CN202410775639.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2021-02-22
- Filing Date
- 2022-02-21
- Publication Date
- 2024-08-23
AI Technical Summary
Existing video coding and decoding standards have problems with block artifacts and computational complexity in inter-frame prediction, especially when dealing with complex motion and irregular motion. The coding efficiency and computational complexity of OBMC are not sufficient to meet the needs of modern video coding and decoding. Standard requirements.
An adaptive OBMC scheme is proposed to improve coding efficiency by adjusting the mixing area and weight factors, and disable OBMC under specific conditions to reduce computational complexity, adapting to the variable block partition structure of the VVC and AVS3 standards, only when necessary OBMC is applied on the boundary to reduce computational complexity and memory bandwidth consumption.
It improves the coding efficiency of OBMC, simplifies the design, reduces the computational complexity, makes it more suitable for hardware implementation, optimizes the correlation of predicted signals under different block sizes and coding modes, and enhances noise resistance.
Smart Images

Figure CN118540473A
Abstract
Description
[0001] This application is a divisional application of a patent application with a filing date of February 21, 2022, titled “Improved Overlapped Block Motion Compensation for Inter-Frame Prediction” and application number 202210165875.1.
[0002] CROSS-REFERENCE TO RELATED APPLICATIONS
[0003] This application claims priority to U.S. Provisional Application Serial No. 63 / 152,326, filed on February 22, 2021, entitled “Improved overlapped blockmotion compensation for inter prediction,” and the entire contents of which are expressly incorporated herein by reference. Technical Field
[0004] The present disclosure relates to video coding and compression. In particular, the present disclosure relates to methods and apparatus for improving coding efficiency and simplifying the complexity of overlapped block motion compensation (OBMC). Background Art
[0005] Video data can be compressed using various video codec techniques. Video coding is performed according to one or more video codec standards. For example, some well-known video codec standards now include Versatile Video Codec (VVC), High Efficiency Video Codec (HEVC, also known as H.265 or MPEG-H Part 2), and Advanced Video Codec (AVC, also known as H.264 or MPEG-4 Part 10) jointly developed by ISO / IEC MPEG and ITU-TVECG. The Alliance for Open Media (AOM) developed AOMedia Video 1 (AV1) as a successor to its previous standard VP9. Audio Video Codec (AVS), which refers to the digital audio and digital video compression standard, is another video compression standard series developed by the Chinese Audio Video Codec Standard Working Group. Most existing video codec standards are built on the well-known hybrid video codec framework, that is, block-based prediction methods (e.g., inter-frame prediction, intra-frame prediction) are used to reduce the redundancy present in video images or sequences, and transform coding is used to compress the energy of prediction errors. An important goal of video coding technology is to compress video data into a form that uses a lower bit rate while avoiding or minimizing the degradation of video quality. Summary of the invention
[0006] The systems, methods, and devices of the present disclosure all have aspects, but no single one of these aspects is solely responsible for its desired attributes. The claims set forth below do not limit the scope of protection of the present disclosure, and some features will now be briefly discussed. After carefully considering these discussions, especially after reading the section entitled "Detailed Description of the Invention," one will understand how the features of the present disclosure are advantageous.
[0007] In one aspect, a method for video encoding is provided, the method comprising: partitioning a frame of video data into a plurality of blocks; obtaining a current prediction of the current block using one or more motion vectors of a current block among the plurality of blocks; obtaining one or more co-located predictions of the current block using one or more motion vectors of one or more neighboring blocks of the current block in corresponding one or more mixed regions, wherein each of the one or more mixed regions is at least a portion of the current block and can be adjusted based at least on the partitioning; and obtaining a combined prediction of the current block by combining the current prediction and the one or more co-located predictions.
[0008] In another aspect, a method for video decoding is provided, the method comprising: receiving a current block from a bitstream, wherein the current block is one of a plurality of blocks segmented from a frame of encoded video data; obtaining a current prediction of the current block using one or more motion vectors of the current block; obtaining one or more co-located predictions of the current block using one or more motion vectors of one or more neighboring blocks of the current block in corresponding one or more mixed regions, wherein each of the one or more mixed regions is at least a portion of the current block and can be adjusted based at least on the segmentation; and obtaining a combined prediction of the current block by combining the current prediction and the one or more co-located predictions.
[0009] In another aspect, a device for encoding video data is provided, the device comprising a memory and at least one processor coupled to the memory, the at least one processor being configured to: partition a frame of the video data into a plurality of blocks; obtain a current prediction of the current block using one or more motion vectors of a current block among the plurality of blocks; obtain one or more co-located predictions of the current block using one or more motion vectors of one or more neighboring blocks of the current block in corresponding one or more mixed regions, wherein each of the one or more mixed regions is at least a portion of the current block and can be adjusted based at least on the partitioning; and obtain a combined prediction of the current block by combining the current prediction and the one or more co-located predictions.
[0010] In another aspect, a device for decoding video data is provided, the device comprising a memory and at least one processor coupled to the memory, the at least one processor being configured to: receive a current block from a bitstream, wherein the current block is one of a plurality of blocks segmented from a frame of encoded video data; obtain a current prediction of the current block using one or more motion vectors of the current block; obtain one or more co-located predictions of the current block using one or more motion vectors of one or more neighboring blocks of the current block in corresponding one or more mixed regions, wherein each of the one or more mixed regions is at least a portion of the current block and can be adjusted based at least on the segmentation; and obtain a combined prediction of the current block by combining the current prediction with the one or more co-located predictions.
[0011] In another aspect, a computer-readable medium storing computer code for encoding video data is provided, which, when executed by a processor, causes the processor to perform the following operations: partition a frame of video data into a plurality of blocks; obtain a current prediction of the current block using one or more motion vectors of a current block among the plurality of blocks; obtain one or more co-located predictions of the current block using one or more motion vectors of one or more neighboring blocks of the current block in corresponding one or more mixed regions, wherein each of the one or more mixed regions is at least a portion of the current block and can be adjusted based at least on the partitioning; and obtain a combined prediction of the current block by combining the current prediction with the one or more co-located predictions.
[0012] In another aspect, a computer-readable medium for storing computer code for decoding video data is provided, which, when executed by a processor, causes the processor to perform the following operations: receiving a current block from a bitstream, wherein the current block is one of a plurality of blocks segmented from a frame of encoded video data; obtaining a current prediction of the current block using one or more motion vectors of the current block; obtaining one or more co-located predictions of the current block using one or more motion vectors of one or more neighboring blocks of the current block in corresponding one or more mixed regions, wherein each of the one or more mixed regions is at least a portion of the current block and can be adjusted based at least on the segmentation; and obtaining a combined prediction of the current block by combining the current prediction with the one or more co-located predictions.
[0013] In another aspect, a computer-readable medium storing a bitstream is provided, the bitstream comprising encoded video data generated by: partitioning a frame of the video data into a plurality of blocks; obtaining a current prediction of the current block using one or more motion vectors of a current block among the plurality of blocks; obtaining one or more co-located predictions of the current block using one or more motion vectors of one or more neighboring blocks of the current block in corresponding one or more mixed regions, wherein each of the one or more mixed regions is at least a portion of the current block and can be adjusted based at least on the partitioning; and obtaining a combined prediction of the current block by combining the current prediction and the one or more co-located predictions.
[0014] Other aspects or variations of the present disclosure will become apparent by consideration of the following detailed description and accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to understand in detail the implementation of the above-described features of the present disclosure, the present application provides a more specific description with reference to some aspects for the above brief summary, some of which are illustrated in the accompanying drawings. However, it should be noted that since the description of the present invention allows for other equally effective aspects, these drawings only depict some typical aspects of the present disclosure, which should not be considered to limit the scope of protection of the present invention.
[0016] Figure 1 In accordance with one or more aspects of the present disclosure, a general block diagram of a block-based video encoder for Versatile Video Coding (VVC) is shown.
[0017] Figures 2A to 2E According to one or more aspects of the present disclosure, a schematic diagram of block partitioning in multiple types of tree structures is shown: quadruple partitioning, vertical binary partitioning, horizontal binary partitioning, vertical ternary partitioning, and horizontal ternary partitioning.
[0018] Figure 3 In accordance with one or more aspects of the present disclosure, a general block diagram of a video decoder for VVC is shown.
[0019] Figure 4 According to one or more aspects of the present disclosure, a schematic diagram of sub-block level motion derivation based on sub-block temporal motion vector prediction (SbTMVP) is shown.
[0020] Figure 5 According to one or more aspects of the present disclosure, a schematic diagram of a 4-parameter affine model is shown.
[0021] Figure 6 According to one or more aspects of the present disclosure, a schematic diagram of a 6-parameter affine model is shown.
[0022] Figures 7A to 7E According to one or more aspects of the present disclosure, a schematic diagram of motion vector angular prediction (MVAP) modes is shown: bottom left, left, top left, top, top right.
[0023] Figure 8 According to one or more aspects of the present disclosure, a schematic diagram of an OBMC process for an encoded CU without sub-block motion compensation is shown.
[0024] Fig. 9 According to one or more aspects of the present disclosure, a schematic diagram of an OBMC process for a CU encoded in sub-block mode is shown.
[0025] Fig.10 A schematic diagram illustrating allowed GPM partitioning according to one or more aspects of the present disclosure is shown.
[0026] Fig.11A and 11B According to one or more aspects of the present disclosure, a schematic diagram of an OBMC scheme using MVs of top and left neighbors is shown.
[0027] Fig.12 According to one or more aspects of the present disclosure, an exemplary flow chart of an OBMC process when OBMC is disabled for sub-block boundaries of SbTMVP and MVAP is shown.
[0028] Fig.13 According to one or more aspects of the present disclosure, an exemplary flow chart of a method for video encoding is shown.
[0029] Fig.14 According to one or more aspects of the present disclosure, an exemplary flow chart of a method for video decoding is shown. DETAILED DESCRIPTION
[0030] The first version of the HEVC standard was completed in October 2013, and it provides about 50% bitrate savings or equivalent perceptual quality compared to the previous generation video codec standard H.264 / MPEGAVC. Although the HEVC standard provides significant codec improvements over its predecessor, there is evidence that superior coding efficiency can be achieved using additional codec tools. On this basis, both VCEG and MPEG have begun exploring new codec technologies for future video codec standardization. ITU-T VECG and ISO / IEC MPEG established a Joint Video Exploration Team (JVET) in October 2015 to begin major research on advanced technologies that can significantly improve coding efficiency. JVET maintains a reference software called the Joint Exploration Model (JEM) by integrating several additional codec tools on top of the HEVC Test Model (HM).
[0031] In October 2017, ITU-T and ISO / IEC issued a joint call for proposals (CfP) on video compression with capabilities beyond HEVC. In April 2018, 23 CfP responses were received and evaluated at the 10th JVET meeting, indicating that the compression efficiency was improved by about 40% over HEVC. Based on such evaluation results, JVET launched a new project to develop a new generation of video codec standards, called Versatile Video Codec (VVC). In the same month, a reference software code base called VVC Test Model (VTM) was established to demonstrate the reference implementation of the VVC standard.
[0032] The first generation of AVS standards includes the Chinese national standards "Information Technology, Advanced Audio Video Codec Part 2: Video" (AVS1 for short) and "Information Technology, Advanced Audio Video Codec Part 16: Broadcasting Video" (AVS+ for short). Compared with the MPEG-2 standard, it can save about 50% of the bit rate at the same perceptual quality. The video part of the AVS1 standard was promulgated as a Chinese national standard in February 2006. The second generation of AVS standards includes the Chinese national standard "Information Technology, High Efficiency Multimedia Codec" series (AVS2 for short), which is mainly aimed at transmitting additional high-definition TV programs. The coding efficiency of AVS2 is twice that of AVS+. In May 2016, AVS2 was released as a Chinese national standard. At the same time, the Institute of Electrical and Electronics Engineers (IEEE) submitted the video part of the AVS2 standard as an international standard for application. The AVS3 standard is a new generation of video codec standards for ultra-high-definition video applications, which aims to surpass the coding efficiency of the latest international standard HEVC. In March 2019, at the 68th AVS meeting, the AVS3-P2 baseline was completed, which provides about 30% bitrate savings compared to the HEVC standard. Currently, there is a reference software called High Performance Model (HPM) maintained by the AVS group for demonstrating a reference implementation of the AVS3 standard.
[0033] Like their predecessors, VVC and AVS3 are built on a block-based hybrid video codec framework. Figure 1 A block diagram of a general block-based hybrid video coding system is given. The input video signal is processed block by block (called coding unit (CU)). A CU can be up to 128x128 pixels. However, unlike HEVC, which partitions blocks based only on quadtree, in VVC, a coding tree unit (CTU) is split into CUs to accommodate different local characteristics based on quadtree / binarytree / ternarytree. In addition, the concept of multi-partition unit types in HEVC is removed, that is, there is no separation of CU, prediction unit (PU), and transform unit (TU) in VVC; instead, each CU is always used as a basic unit for prediction and transformation without further partitioning. In the multi-type tree structure, a CTU is first divided by a quadtree structure. Then, the leaf nodes of each quadtree can be further divided by binary and ternary tree structures. As Figures 2A to 2E As shown in , there are five types of splits, namely, quadruple partitioning, horizontal binary partitioning, vertical binary partitioning, horizontal ternary partitioning, and vertical ternary partitioning. Figure 1In the video processing of the present invention, spatial prediction and / or temporal prediction can be performed (e.g., by motion compensation 101, motion estimation 102, intra / inter mode decision 103, intra prediction 104). Spatial prediction (or "intra prediction") uses pixels from samples of encoded neighboring blocks in the same video picture / slice (called reference samples) to predict the current video block. Spatial prediction reduces the spatial redundancy inherent in the video signal. Temporal prediction (also known as "inter prediction" or "motion compensated prediction") uses reconstructed pixels from an encoded video picture to predict the current video block. Temporal prediction reduces the temporal redundancy inherent in the video signal. The temporal prediction signal for a given CU is usually sent through one or more motion vectors (MVs), where the MV indicates the amount and direction of motion between the current CU and its temporal reference. In addition, if multiple reference pictures are supported, a reference picture index is additionally sent, which is used to identify which reference picture in the reference picture storage (e.g., memory 105, picture buffer 106) the temporal prediction signal comes from. After spatial and / or temporal prediction, a mode decision block in the encoder (e.g., intra / inter mode decision 103) selects the best prediction mode, for example based on a rate-distortion optimization method. The prediction block is then subtracted from the current video block; and the prediction residual is decorrelated using transformation and quantization (e.g., by transformation 108, quantization 109). The quantized residual coefficients are inversely quantized and inversely transformed to form a reconstructed residual (e.g., by inverse quantization 111, inverse transform 112), which is then added back to the prediction block to form the reconstructed signal of the CU. Further loop filtering (e.g., loop filter 107) (e.g., deblocking filter, sample adaptive offset (SAO), and adaptive loop filter (ALF)) may be applied to the reconstructed CU before it is placed in the reference picture storage and used to encode future video blocks. In order to form an output video bitstream, the coding mode (inter or intra), prediction mode information, motion information, and quantized residual coefficients are all sent to an entropy decoding unit (e.g., entropy encoding 110) for further compression and packaging to form a bitstream.
[0034] Figure 3A general block diagram of a block-based video decoder is given. First, in an entropy decoding unit, the video bitstream is entropy decoded (e.g., entropy decoding 301). The coding mode and prediction information are sent to a spatial prediction unit (if intra-frame coding) (e.g., intra-frame prediction 308) or a temporal prediction unit (if inter-frame coding) (e.g., motion compensation 307) to form a prediction block. The residual transform coefficients are sent to an inverse quantization unit (e.g., inverse quantization 302) and an inverse transform unit (e.g., inverse transform 303) to reconstruct the residual block. The prediction block and the residual block are then added together (e.g., by intra / inter mode selection 309 and / or stored in a memory 304). The reconstructed block may be further loop filtered before being stored in a reference picture storage (e.g., picture buffer 306). The reconstructed video in the reference picture storage is then sent out to drive a display device and used to predict future video blocks.
[0035] In general, the basic inter-frame prediction technology applied in VVC and AVS3 remains the same as HEVC, except that several modules are further extended and / or enhanced. For example, block matching-based motion compensation (MC) is still used as the backbone of the VVC inter-frame codec framework, where a coding block can only be associated with a single MV when the coding block is unidirectionally predicted, or a coding block is associated with two MVs when the coding block is bidirectionally predicted. Although block-based MC is efficient for processing uniform translational motion, it is still insufficient to capture the true correlation between time domain images due to the complex motion of the camera and the irregularity of the moving object. Accordingly, this inaccurate motion often leads to block artifacts in the reconstructed video signal. OBMC is a method that has been proven to be an efficient method that overcomes the shortcomings of traditional block-based MC. The basic idea of OBMC is to use the MVs of adjacent blocks to motion compensate the current block, and use adjacent MVs to combine multiple prediction signals to generate the final prediction signal of the current block. This can greatly reduce the prediction error and alleviate the block artifacts in the prediction stage. The focus of the present disclosure is to further improve the coding efficiency of the existing OBMC mode. In addition, some methods are proposed to reduce the computational complexity of OBMC to make it more friendly to actual hardware implementation. To facilitate the following description, the main technical aspects of some existing codec tools in the current VVC and AVS standards that are closely related to the technology proposed in this disclosure are briefly reviewed.
[0036] In HEVC and its predecessors, each coding block has at most one MV for one prediction direction. In contrast, both VVC and AVS3 adopt several sub-block level motion compensation techniques to improve motion compensation efficiency by increasing the granularity of MV derivation. Specifically, when any of these sub-block modes is applied, a coding block is further divided into multiple small sub-blocks, and the motion information (i.e., MV and associated reference picture) of each sub-block is derived separately. Then, in the motion compensation stage, the sub-block motion information is used to generate a prediction signal for each sub-block (and the final block). The following is an overview of some of the main sub-block inter-frame coding modes adopted in the VVC and AVS3 standards.
[0037] VVC supports the sub-block-based temporal motion vector prediction (SbTMVP) method. Similar to the temporal motion vector prediction (TMVP) in HEVC, SbTMVP uses the motion field in the same picture to improve the MV accuracy of the inter-frame CU in the current picture.
[0038] exist Figure 4 The sub-block level motion derivation of the SbTMVP mode is shown in Figure 1. Specifically, SbTMVP predicts the MV of the sub-blocks in the current CU in two steps. In the first step, the co-located blocks used to obtain the sub-block motion are first identified from the motion information of the spatial neighboring blocks of the current block. Specifically, in the current ATMVP design, the following are considered: Figure 4 spatial neighbor A1 in the co-located picture. If A1 has an MV (L0 or L1) that uses the co-located picture (signaled in the bitstream) as its reference picture, the corresponding MV of block A1 is selected to identify the co-located block in the co-located picture. The position of the co-located block in the co-located picture is determined by adding the MV of block A1 to the coordinates of the current block. In the second step, for each sub-block in the current block, its motion information comes from its corresponding small block in the co-located block. Specifically, after identifying the motion information of each small block in the co-located block (as shown by arrows 401 and 411), it is converted into motion information of the corresponding sub-block in the current block (as shown by arrows 402 and 412) in the same way as the existing temporal motion vector prediction (TMVP) in HEVC (wherein temporal motion vector scaling can be applied in HEVC).
[0039] In the AVS3 standard, a similar tool is also adopted, which is called Enhanced Temporal Motion Vector Prediction (ETMVP), which follows the same design spirit of SbTMVP, but has slight differences in some design details.
[0040] In traditional MC technology, only the translation motion model is applied in motion compensated prediction. In the real world, there are many kinds of motion, such as zooming in / out, rotation, perspective motion, and other irregular motions. In the VVC and AVS3 standards, affine motion compensated prediction is applied by signaling a flag for each inter CU to indicate whether the translation motion model or the affine motion model is applied to the inter prediction. In the current affine design, an affine coding block supports two affine modes, including a 4-parameter affine mode and a 6-parameter affine mode.
[0041] The 4-parameter affine model has the following parameters: two parameters for horizontal and vertical translation motion, one parameter for scaling motion, and one parameter for rotation motion in both directions. The horizontal scaling parameter is equivalent to the vertical scaling parameter. The horizontal rotation parameter is equivalent to the vertical rotation parameter. In order to better adapt the motion vector and affine parameters, these affine parameters are converted into two MVs (also called control point motion vectors (CPMVs)) located at the top left and top right corners of the current block. Figure 5 As shown in 0 , V 1 ) to describe the affine motion field of the block. Based on the motion of the control points, the motion field (v x , v y ) is described as:
[0042]
[0043] The 6-parameter affine mode has the following parameters: two parameters for horizontal and vertical translation, one parameter for horizontal scaling and one parameter for rotation, and one parameter for vertical scaling and one parameter for rotation. The 6-parameter affine motion model is encoded using three MVs on three CPMVs. Figure 6 As shown in , the three control points of a 6-parameter affine block are located at the top left, top right, and bottom left corners of the block. The motion of the top left control point is related to the translation motion, the motion of the top right control point is related to the horizontal rotation and scaling motion, and the motion of the bottom left control point is related to the vertical rotation and scaling motion. Compared with the 4-parameter affine motion model, the 6-parameter horizontal rotation and scaling motion may be different from the vertical motion. Assume (V 0 ,V 1 ,V 2 )yes Figure 6 The MVs of the upper left, upper right, and lower left corners of the current block in the MV, the three MVs of the control point are used to derive the motion vector (v x ,v y ):
[0044]
[0045] In order to simplify the computational complexity of affine prediction, sub-block-based MC is applied to derive prediction samples of affine mode. Specifically, given a selected CPMV of an affine CU, the center of the sub-block is used as the target coordinate (i.e., x and y in equations (1) and (2)), and the MV of each 4x4 sub-block in the CU is derived based on equations (1) and (2). It is assumed that all samples in the sub-block share the same MV; accordingly, the calculated MV will be used to generate the prediction samples of the sub-block using the existing motion compensated interpolation filtering (MC-IF) process.
[0046] In order to further improve the efficiency of inter-frame prediction, another sub-block motion prediction mode called motion vector angle prediction (MVAP) is applied in AVS3. Similar to SbTMVP and affine mode, MVAP performs motion compensation prediction at the sub-block level, where the MV of each sub-block is generated from the corresponding MV of the neighboring reconstructed blocks of the current CU. 7A to 7E As shown in , according to a specific projection direction, the MV of a sub-block in an MVAP CU is projected from the adjacent MVs on the upper and lower boundaries of the current CU. In the current MVAP design, there are a total of 5 different MV prediction directions, including lower left, left, upper left, upper and upper right. For each specific prediction direction, the corresponding MV of each sub-block is calculated as:
[0047] 1) Bottom left direction:
[0048] pMV[x][u]=refMV[-1][x+y+1] (3)
[0049] 2) Left direction:
[0050] pMV[x][y]=refMV[-1][y] (4)
[0051] 3) Upper left direction:
[0052]
[0053] 4) Upward direction
[0054] pMV[x][y]=refMV[x][-1] (6)
[0055] 5) Upper right direction:
[0056] pMV[x][y]=refMV[x+y+1][-1] (7)
[0057] Where refMV represents the MV of the adjacent block, pMV represents the MV of the sub-block inside the current CU; x and y represent the coordinates of a sub-block with the upper left corner of the current CU as the origin.
[0058] Furthermore, in the case where one neighboring MV is not available (eg, the neighboring subblock is invalid or encoded by intra mode), the corresponding MV is generated by repeating the available MV that is the nearest neighbor to the subblock.
[0059] OBMC is applied in JEM to remove blocking artifacts in the MC stage. As mentioned above, the basic idea of OBMC is to use MVs from neighboring blocks to motion compensate the current block and combine multiple prediction signals using neighboring MVs to generate the final prediction signal of the CU. In JEM, OBMC is performed on the upper and left boundaries of the current CU. In addition, when encoding a video block in a sub-block mode, OBMC is also performed on all inner boundaries (i.e., upper, left, lower, and right boundaries) of each sub-block. Figure 8 The OBMC process applied to a CU without sub-block level motion compensation is illustrated, where B1 to B7 are sub-blocks on the top and left boundaries of the current CU, and N1 to N8 are random neighboring sub-blocks above and to the left of the current CU. When OBMC is applied to a sub-block (e.g., Fig. 9 OBMC is applied to all sub-CU blocks (e.g., sub-CU block A) using MVs from all four neighboring blocks (e.g., shaded sub-CU blocks a, b, c, d), and the prediction signal is derived using the MVs of the right and bottom neighboring sub-blocks of the current sub-block in addition to the left and top neighbors of a sub-block; then, the four prediction blocks are averaged to generate the final prediction signal of the current sub-block.
[0060] In OBMC, weighted averaging is used to generate a prediction signal for a sub-block. The prediction signal using the motion vector of a neighboring sub-block is denoted as PN, and the prediction signal using the motion vector of the current sub-block is denoted as PC. When OBMC is applied, the samples in the first / last four rows / columns of PN are weighted averaged with the samples at the same position in PC. The samples to which the weighted average is applied are determined based on the position of the corresponding neighboring sub-block. Specifically, when the neighboring sub-block is a top neighbor (e.g., Fig. 9 b), adjust the samples in the first four rows of the current sub-block; when the adjacent sub-block is a bottom neighbor (for example, Fig. 9 d), adjust the samples in the last four rows of the current sub-block; when the adjacent sub-block is the left neighbor (for example, Fig. 9 sub-block a), adjust the samples in the first four columns of the current block; when the adjacent sub-block is the right neighbor (for example, Fig. 9c), adjust the samples in the last four columns of the current subblock. When the current block is not encoded in subblock mode, the first four rows / columns of PN use weight factors {1 / 4, 1 / 8, 1 / 16, 1 / 32}, and the first four rows / columns of PC use weight factors {3 / 4, 7 / 8, 15 / 16, 31 / 32}. When the current block is encoded in subblock mode, only the first two rows / columns of PN and PC are averaged. In this case, weight factors {1 / 4, 1 / 8} are used for PN and weight factors {3 / 4, 7 / 8} are used for PC.
[0061] In VVC, geometric partitioning mode is supported for inter prediction. Geometric partitioning mode is signaled as a special merge mode through a CU level flag. In the current GPM design, GPM mode supports a total of 64 partitions for each possible CU size, where both width and height are not less than 8 and not greater than 64, excluding 8x64 and 64x8.
[0062] When using this mode, Fig.10 As shown in , the CU is partitioned into two parts by a geometric positioning straight line, where the partition in each picture has the same partition direction. Mathematically, the position of the partition line is derived based on the angle and offset parameters of the specific partition. Each part of the geometric partition in the CU uses its own motion for inter-frame prediction; each partition is only allowed to perform unidirectional prediction, that is, each part has one motion vector and one reference index. Unidirectional prediction motion constraints are applied to ensure that only two motion compensated predictions are required for each CU, as with traditional bidirectional prediction. If the geometric partition mode is used for the current CU, the geometric partition index and two merge indexes (one for each partition) indicating the partition mode (angle and offset) of the geometric partition are further signaled. At the sequence level, the number of maximum GPM candidate sizes is explicitly signaled. In AVS3, this tool is also called angular weighted prediction (AWP), which follows a similar design to the GPM mode, but with some subtle differences (e.g., different partition directions and offsets, the way to generate unidirectional prediction MVs, etc.).
[0063] In order to further improve the prediction efficiency, the inter-frame prediction filter (InterPF) is applied in the AVS3 standard, which combines the intra-frame prediction of a CU and the inter-frame prediction based on the merge mode. Specifically, for each merged CU, an additional flag is signaled to indicate whether the InterPF mode is enabled for the current CU. When the flag is false, InterPF is disabled and conventional inter-frame prediction is applied to generate prediction samples for the current CU; when the first flag is true, InterPF is applied to the current CU, and another flag is signaled to further indicate which of the two InterPF modes is used. The two InterPF modes are described as follows: InterPF mode 1: The combined prediction sample is exported as a weighted average of the inter-frame prediction sample and the five adjacent reconstructed samples from the left, right, top, and bottom:
[0064] Pred(x,y)=(Pred_inter(x,y)*5+Pred_Q(x,y)*3)>>3
[0065] Pred_Q(x,y)=(Pred_V(x,y)+Pred_H(x,y)+1)>>2(8)
[0066] Pred_V(x,y)=((h-1-y)*Rec(x,-1)+(y+1)*Rec(-1,h)+(h>>1))>>log2(h)
[0067] Pred_H(x,y)=((w-1-x)*Rec(-1,y)+(x+1)*Rec(w,-1)+(w>>1))>>log2(w)
[0068] InterPF mode 2: The combined prediction sample is exported as the weighted average of the inter-frame prediction sample and the three adjacent reconstructed samples from the left and top:
[0069] P′(x,y)=f(x)·P(-1,y)+f(y)·P(x,-1)+(1-f(x)-f(y))·P(x,y) (9)
[0070] In equation (9), the weight parameters f(x) and f(y) are predefined as a lookup table (LUT), which is determined based on the size of the current CU and the intra prediction direction.
[0071] Although the existing OBMC can effectively reduce the blocking artifacts in the motion compensation stage, its performance still needs to be improved. In particular, in the current design, the overlapping area of applying the MV of the surrounding blocks to modify the prediction samples of the current CU is fixed. This design is not suitable for the advanced block partitioning structure of VVC / AVS3, where variable block sizes can be achieved through different QT / BT / TT combinations. On the other hand, the current OBMC design also brings great complexity to the design of encoders and decoders. In particular, when OBMC is applied on top of sub-block-based MC, this complexity problem may become serious because the same OBMC needs to be repeated multiple times (each time for a separate sub-block) to modify the prediction signals of all sub-blocks within a CU. This not only leads to a significant increase in computational complexity and memory bandwidth, but also may complicate the pipeline design and parallel processing of hardware encoders / decoders.
[0072] In the present disclosure, methods are proposed to improve the coding efficiency of OBMC and simplify the existing OBMC design to facilitate its implementation for hardware codecs. In particular, in order to maximize the coding gain of OBMC, special attention is paid to making OBMC better adapt to the current variable block partition structure of VVC and AVS3 standards. In general, the main aspects of the techniques proposed in the present disclosure can be summarized as follows.
[0073] In order to improve the coding efficiency, an adaptive OBMC scheme is proposed. Compared with the existing method where OBMC is fixedly applied to 4x4 cells, the proposed algorithm adaptively adjusts the area where OBMC is applied. In addition, in order to adapt to the changing correlation between adjacent MVs, the weights used to combine the motion compensated predictions of the current CU and its spatial neighbors can also be adaptively changed.
[0074] To reduce the worst-case complexity of OBMC, constraints are proposed to disable OBMC for coding modes that require multiple hypotheses to generate prediction samples for the current CU. First, a single-prediction based OBMC constraint is proposed, where OBMC is only allowed to be applied to inter blocks predicted from a single prediction direction (i.e., unidirectional prediction). Second, it is proposed to disable OBMC for GPM / AWP and CIIP / InterPF, where additional intra / hybrid operations are introduced to generate the final prediction samples.
[0075] To simplify the computational complexity of OBMC, it is proposed to enable OBMC only for prediction samples on the boundary (i.e., top and left) between a CU and its temporal neighbors. For a CU coded in any sub-block mode, OBMC on its internal sub-block boundary is always disabled.
[0076] As mentioned earlier, in existing OBMC designs, the overlapping area of a current CU's prediction samples mixed with its spatial neighbors' prediction samples remains unchanged regardless of the block size and coding mode. However, in modern video codec standards (e.g., VVC and AVS3), a partition structure with variable block sizes is applied to adapt to the local statistics / correlation of different videos. Accordingly, always using a fixed-size sample mix may not be optimal in terms of coding efficiency and encoding / decoding complexity of the OBMC scheme. First, the disadvantage of choosing a large mix size is that the prediction samples generated using neighboring MVs are often far away from the corresponding neighboring blocks. Therefore, the correlation between the prediction samples generated using the current MV and the neighboring MVs may be insufficient. In addition, considering that more prediction samples need to be generated during the OBMC process, a large mix area also leads to an increase in computational complexity. On the other hand, a large mix size may also be advantageous because it can produce a more reliable prediction signal in the presence of noise (i.e., video capture noise and noise caused by the encoding process). Therefore, it is very important to select the best mix area for different block sizes and coding modes, where the best mix area can maximize the correlation between multiple predictions generated by different MVs while providing sufficient coding noise resistance.
[0077] Based on the above considerations, an improved OBMC scheme is proposed in this section. Compared with the existing OBMC, the proposed algorithm has two main differences: 1) the OBMC blending area on each boundary of a CU / sub-block is adaptively adjusted based on the block size and coding mode of the current CU; 2) based on the correlation between the prediction samples, the optimal weight factor for combining multiple OBMC prediction samples is adaptively determined. In addition, in order to avoid complex two-dimensional (2-D) blending operations, similar to the existing design, the proposed OBMC is divided into multiple steps with 1D blending: in the first step, only the MVs of the neighboring blocks above the current CU / sub-block are used to combine with the prediction samples close to the upper boundary of the current CU / sub-block; in the second step, only the MVs of the neighboring blocks to the left of the current CU / sub-block are combined with the prediction samples near the left boundary of the current CU / sub-block; in addition, when the current CU is encoded by a sub-block partitioning mode (e.g., affine, SbTMVP, and MVAP), the third and fourth steps are applied to each sub-block, where the MVs of the neighboring sub-blocks below and to the right of the current sub-block are used to modify the prediction samples close to the bottom and right boundaries of the sub-block.
[0078] For the sake of convenience, the proposed algorithm is described below by taking conventional inter-frame prediction without sub-block division as an example. obmc (x, y) represents the mixed prediction sample at coordinate (x, y) after combining the prediction signal of the current CU with multiple prediction signals based on the MV of its spatial neighbors; P cur(x, y) indicates the prediction sample of the corresponding MV at the coordinate (x, y) of the current CU; top (x,y) and P left (x, y) represents the predicted samples at the same position of the current CU using the MVs of the left and right neighbors of the CU respectively.
[0079] Based on the above symbols, the MVs of the top and left causal neighbors of the current CU are used to gradually update the boundary prediction samples of the current CU. Fig.11A and 11B As shown, the top block A of the current block is checked first. If block A is an inter-frame block, its MV will be assigned to the current block to generate the prediction signal P at the same position of the current block. top (x,y). Then, P cur and P top The top edge of the current block in Fig.11A The number of rows under the shaded area in the figure is mixed to generate the corresponding OBMC prediction signal P obmc . According to a predefined function To calculate the weighting parameters for combining the two prediction signals, where K is the number of rows where the blending is applied, l = 0, 1, ..., K-1. Specifically, after applying OBMC, the updated prediction samples on the top boundary of the current block are calculated as:
[0080]
[0081] Next, by following the same process, the proposed scheme continues to update the prediction samples on the left boundary of the current block in the following way: 1) Use the MV of the left spatial neighbor to generate the co-located prediction sample P of the current block left (x, y) (i.e., blocks B and C); P left (x, y) is mixed with the existing prediction signal in equation (10) to generate the final OBMC prediction signal:
[0082]
[0083] In order to accommodate the different correlations between the prediction samples generated using the MVs of the current block and its neighboring blocks, different functions can be used. To generate the weighting factors for OBMC mixing. In one or more embodiments of the present disclosure, it is suggested to use the following cosine function to formulate the correlation function as:
[0084]
[0085] Among them, ω *is a control parameter used to control the overall range of weight values applied. For technicians in modern video codec technology, other formula functions (such as raised cosine / sine, exponential function, high-order polynomial function, etc.) can also be applied to generate weights. In practice, different ω values can be applied according to the specific characteristics of the encoded video. * value. In one or more embodiments, it is recommended to use a fixed weight value (e.g., 0.5); accordingly, with this approach, there is no need to send weight values from the encoder to the decoder. In another embodiment, it is recommended to determine a set of predefined weight values (e.g., 0.125 and 0.875) and allow it to change from time to time, and signal the selected weight value to the decoder. In another embodiment, it is proposed to give the encoder the freedom to dynamically derive arbitrary weight values and signal them in the bitstream. In this case, the allowed weight values can be selected with complete flexibility, i.e., the flexibility of the encoder is maximized. At the same time, when any of the above-mentioned signaling-based schemes is applied, the corresponding weight values can be signaled at various coding levels (e.g., sequence parameter set (SPS), picture parameter set (PPS), picture / slice level, and even CTU / CU level).
[0086] exist Fig.11A and Fig. 11B In the embodiment, when vertical / horizontal OBMC is applied, half of the total rows / columns of prediction samples are mixed. As described above, different mixing sizes lead to different coding performance / complexity trade-offs for actual codec implementations. In one or more embodiments, it is recommended to use a fixed mixing size for all inter blocks (e.g., 4 rows / columns along the top / left boundary of a CU / sub-block). In another embodiment, it is proposed to adaptively adjust the mixing area based on the specific size and partitioning method of the current CU. For example, for a regular CU (i.e., a CU without sub-block partitioning), it is recommended to determine the mixing area based on the size of the CU. Specifically, for enabling vertical OBMC (i.e., OBMC from the top neighbor), only the mixing is applied to the prediction samples of M% rows close to the top boundary of the CU; otherwise, when horizontal OBMC (i.e., OBMC from the left neighbor) is enabled, only the mixing is applied to the prediction samples of M% columns close to the left boundary of the CU. On the other hand, when the current CU is encoded by a sub-block partitioning mode (e.g., affine, SbTMVP, and MVAP), the corresponding mixing size (e.g., M% rows / columns) is determined based on the corresponding sub-block size instead of the CU size. In a specific example, it is recommended to set M to 50, that is, half of the rows / columns are suitable for OBMC (such as Fig.11A and 11B In another embodiment, it is proposed to let the encoder decide the blending size when applying OBMC and signal this value to the decoder.
[0087] As analyzed in the “Problem Statement” section, when OBMC is enabled for an inter CU, multiple motion compensations need to be performed to generate prediction samples along CU and sub-block boundaries. The added motion compensation not only increases the computational complexity due to the additional interpolation operations, but also introduces a non-negligible increase in memory bandwidth consumption. To address the above complexity issues, in this section, a constrained OBMC scheme is proposed, in which OBMC is only allowed to be applied to inter blocks predicted from a single prediction direction (i.e., unidirectional prediction). At the same time, when bidirectionally predicting a neighboring block used to generate OBMC prediction samples for the current block, only MVs from one direction are selected. Specifically, if a neighboring block is unidirectionally predicted, the corresponding MV will be directly applied to generate prediction samples for OBMC. Otherwise (i.e., the neighboring block is bidirectionally predicted), the inter prediction samples used by OBMC are generated based on unidirectional predictions from one prediction list (L0 or L1). To select the prediction list, different methods can be applied. In the first method, for any neighboring block predicted by two reference pictures, it is recommended to always select the first prediction (i.e., list L0). In the second method, for any neighboring block predicted by two reference pictures, it is proposed to always select the second prediction (i.e., list L1). In the third method, an adaptive method is applied, in which the prediction list associated with a reference picture with a smaller picture order count (POC) distance from the current picture is selected. If the POC distances of two reference pictures from the current picture are equal, the smaller picture with better quality is selected. In order to determine which reference picture has a better reconstruction quality, two methods can be applied. In the first method, the QP parameter applied to encode the corresponding reference picture / block can be used as a criterion, and the parameter with a smaller QP will be used for OBMC. In another method, the layer id can be used as another criterion, and the reference picture / block with a smaller layer id in the current prediction structure (e.g., hierarchical B structure) can be selected.
[0088] In addition, as mentioned previously, the GPM / AWP mode requires two separate motion compensations and a weighted average operation, and its computational complexity is already greater than conventional bidirectional prediction. Therefore, if OBMC is further applied to the GPM / AWP mode, it is likely to exceed the existing worst-case inter-frame prediction complexity. Based on such considerations, in one or more embodiments, it is recommended to disable OBMC for CUs encoded in the GPM / AWP mode.
[0089] Similar to GPM / AWP, CIIP / InterPF mode also introduces multiple prediction operations to generate the final prediction signal, including a motion compensation (which can be a bidirectional prediction when the current CU is bidirectionally predicted), an intra-frame prediction, and a weighted average. Therefore, in order to control the overall complexity of OBMC, as an embodiment of the present disclosure, it is proposed to disable OBMC when the current CU is encoded using CIIP / InterPF mode.
[0090] As mentioned above, the motion of OBMC between the internal boundaries of sub-blocks of a CU (which is encoded by a sub-block mode) is to reduce the blocking artifacts present at the sub-block boundaries. This is done by combining multiple prediction signals using neighboring MVs with the prediction signal of a sub-block. As mentioned above, this may cause serious complexity issues for practical hardware / software codec design due to the need to perform a large amount of motion compensation for OBMC. This not only leads to a significant increase in complexity, but also may complicate the pipeline design and parallel processing of encoders and decoders. On the other hand, the motion parameters of existing sub-block modes are derived from their spatial / temporal neighboring motions. For example, the motion field of SbTMVP is derived from temporal neighbors, and the motion field of affine mode is derived from key spatial neighboring motion based on linear mode. Therefore, this leads to relatively stable / consistent motion fields for most sub-block modes. This means that the additional performance improvement achieved by using the internal OBMC process for sub-block boundaries should be very limited. Based on such analysis, for CUs with sub-block partitioning applied (e.g., affine, SbTMVP, and MVAP), it is recommended to disable OBMC for all prediction samples along the boundaries between different sub-blocks, while OBMC along CU boundaries is still applicable. In some embodiments, it is recommended to enable OBMC for sub-block boundaries of affine mode, but disable it for sub-block boundaries of SbTMVP and MVAP modes. In other embodiments, it is recommended to disable OBMC for sub-block boundaries of affine mode, but enable it for sub-block boundaries of SbTMVP and MVAP modes. Fig.12 A flow chart is shown for illustrating the OBMC process when applying the above method. At block 1201, the method starts with a current CU. At block 1202, motion compensation may be performed on the current CU. At block 1203, OBMC may be performed along the top and / or left boundary of the current CU. At block 1204, a decision may be made to determine whether the current CU is encoded by affine mode. If so, the process may proceed to block 1205, where OBMC may be performed along sub-block boundaries. Otherwise, the process may proceed to end at block 1206.
[0091] Fig.13According to one or more aspects of the present disclosure, an exemplary flow chart of a method for video encoding is shown. At box 1301, a frame of video data can be partitioned into multiple blocks. At box 1302, one or more motion vectors of a current block in the multiple blocks can be used to obtain a current prediction of the current block. At box 1303, one or more motion vectors of one or more neighboring blocks of the current block can be used in corresponding one or more mixed regions to obtain one or more co-located predictions of the current block, wherein each of the one or more mixed regions is at least a portion of the current block and can be adjusted based on at least the partitioning. At box 1304, a combined prediction of the current block can be obtained by combining the current prediction and the one or more co-located predictions.
[0092] Fig.14 According to one or more aspects of the present disclosure, an exemplary flow chart of a method for video decoding is shown. At box 1401, a current block from a bitstream may be received, wherein the current block is one of a plurality of blocks segmented from a frame of encoded video data. At box 1402, one or more motion vectors of the current block may be used to obtain a current prediction of the current block. At box 1403, one or more co-location predictions of the current block may be obtained using one or more motion vectors of one or more neighboring blocks of the current block in corresponding one or more mixed regions, wherein each of the one or more mixed regions is at least a portion of the current block and can be adjusted based at least on the segmentation. At box 1404, a combined prediction of the current block may be obtained by combining the current prediction and the one or more co-location predictions.
[0093] The present disclosure describes a hardware implementation of an apparatus according to one or more aspects of the present disclosure. An apparatus for encoding video data or decoding video data may include a memory and at least one processor. The processor may be coupled to the memory and configured to perform the above reference Figures 4 to 12 The above processing described. The processor may be a general-purpose processor, or may be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, a combination of one or more microprocessors and a DSP core, or any other such structure. The memory may store input data, output data, data generated by the processor, and / or instructions executed by the processor.
[0094] The various operations, methods, and systems described in conjunction with the disclosure herein may be implemented using hardware, software executed by a processor, firmware, or any combination thereof. According to one or more aspects of the disclosure, a computer program product for encoding video data or decoding video data may include a computer program for executing the above reference Figures 4 to 12 The processor of the above-described processing may execute computer code. According to one or more aspects of the present disclosure, a computer readable medium may store computer code for encoding video data or decoding video data. When the computer code is executed by a processor, the processor may execute the above-described processing. Figures 4 to 12 The above processing described. Computer readable media include non-temporary computer storage media and communication media, wherein communication media include any media that facilitates the transfer of computer programs from one place to another. Any connection can be appropriately referred to as a computer readable medium. Other embodiments and implementations also fall within the scope of protection of the present disclosure.
[0095] To enable any person of ordinary skill in the art to implement or use various embodiments according to one or more aspects of the present disclosure, the above description is made around the present disclosure. It is obvious to those of ordinary skill in the art that various modifications to these embodiments are possible, and the general principles defined herein may also be applied to other embodiments without departing from the scope of protection of the various embodiments. Therefore, the present invention is not limited to the embodiments shown in the present application, but is consistent with the widest range of the principles and novel features disclosed in the appended claims and herein.
Claims
1. A method for video encoding, comprising: Splitting a frame of video data into a plurality of coding blocks; Using one or more motion vectors associated with a current coding block of the plurality of coding blocks to obtain a current prediction of the current coding block; In response to determining that the coding mode of the current coding block is a sub-block based prediction mode, using one or more motion vectors associated with neighboring blocks of the current coding block to obtain one or more co-located predictions of the current coding block; as well as Obtaining an overlapped block motion compensated OBMC prediction of the current coding block by performing a weighted average using a portion of the current prediction and the one or more co-located predictions, Each co-located prediction of the current coding block is obtained by using one or more motion vectors of neighboring blocks of the current coding block.
2. The method according to claim 1, wherein: Obtaining the OBMC prediction of the current coding block comprises: The OBMC prediction of the current coding block is obtained by using a weight, wherein the weight is adaptively determined based on a height or a width of each of the one or more co-located predictions.
3. The method according to claim 2, wherein: The weights are signaled at the sequence parameter set SPS or picture parameter set PPS level.
4. The method according to claim 1, wherein: A size of each of the one or more co-located predictions can be adjusted based on the partitioning.
5. The method according to claim 1, wherein: A size of each of the one or more co-located predictions is determined based on a size of the current coding block.
6. The method according to claim 1, wherein: A size of each of the one or more co-located predictions is signaled in a bitstream comprising the encoded video data.
7. The method according to claim 1, wherein: Each of the one or more co-located predictions is generated using a motion vector of a corresponding neighboring block of the one or more neighboring blocks of the current coding block.
8. The method according to claim 7, wherein: When the corresponding neighboring block is bidirectionally predicted, the one motion vector of the corresponding neighboring block is a motion vector associated with a forward prediction direction of the corresponding neighboring block.
9. The method according to claim 7, wherein: When the corresponding neighboring block is bidirectionally predicted, the one motion vector of the corresponding neighboring block is a motion vector associated with a backward prediction direction of the corresponding neighboring block.
10. The method according to claim 7, wherein: When the corresponding neighboring block is bidirectionally predicted, the one motion vector of the corresponding neighboring block is a motion vector associated with a reference picture having a smaller picture order count (POC) distance to the current picture.
11. A method for video decoding, comprising: Receiving a current coding block from a bitstream, wherein the current coding block is one of a plurality of coding blocks segmented from a frame of coded video data; Using one or more motion vectors associated with the current coding block to obtain a current prediction of the current coding block; In response to determining that the coding mode of the current coding block is a sub-block based prediction mode, using one or more motion vectors associated with neighboring blocks of the current coding block to obtain one or more co-located predictions of the current coding block; and Obtaining an overlapped block motion compensated OBMC prediction of the current coding block by performing a weighted average using a portion of the current prediction and the one or more co-located predictions, Each co-located prediction of the current coding block is obtained by using one or more motion vectors of neighboring blocks of the current coding block.
12. The method according to claim 11, wherein: Obtaining the OBMC prediction of the current coding block comprises: The OBMC prediction of the current coding block is obtained by using a weight, the weight being adaptively determined using a height or a width based on each of the one or more co-located predictions.
13. The method according to claim 12, wherein: The weights are derived at the sequence parameter set SPS or picture parameter set PPS level.
14. The method according to claim 11, wherein: A size of each of the one or more co-located predictions can be adjusted based on the partitioning.
15. The method according to claim 11, wherein: A size of each of the one or more co-located predictions is determined based on a size of the current coding block.
16. The method according to claim 11, wherein: A size of each of the one or more co-located predictions is received in a bitstream comprising the encoded video data.
17. The method according to claim 11, wherein: Each of the one or more co-located predictions is generated using a motion vector of a corresponding neighboring block of the one or more neighboring blocks of the current coding block.
18. The method according to claim 17, wherein: When the corresponding neighboring block is bidirectionally predicted, the one motion vector of the corresponding neighboring block is a motion vector associated with a forward prediction direction of the corresponding neighboring block.
19. The method according to claim 17, wherein: When the corresponding neighboring block is bidirectionally predicted, the one motion vector of the corresponding neighboring block is a motion vector associated with a backward prediction direction of the corresponding neighboring block.
20. The method according to claim 17, wherein: When the corresponding neighboring block is bidirectionally predicted, the one motion vector of the corresponding neighboring block is a motion vector associated with a reference picture having a smaller picture order count (POC) distance to the current picture.
21. An apparatus for encoding video data, comprising: Memory; as well as At least one processor coupled to the memory, configured to perform the method according to any one of claims 1-10.
22. An apparatus for decoding video data, comprising: Memory; as well as At least one processor coupled to the memory, configured to perform the method according to any one of claims 11-20.
23. A computer-readable medium storing a bit stream generated by the method according to any one of claims 1 to 10 or a bit stream to be decoded by the method according to any one of claims 11 to 20.
24. A computer-readable medium storing computer-executable instructions and a bit stream generated by the method according to any one of claims 1 to 10 or a bit stream to be decoded by the method according to any one of claims 11 to 20, wherein when the computer-executable instructions are executed by a computing device having a processor, the processor executes the method according to any one of claims 1 to 10 or the method according to any one of claims 11 to 20.
25. A method for storing a bit stream, comprising: A bit stream generated by the method according to any one of claims 1-10 or a bit stream to be decoded by the method according to any one of claims 11-20 is stored on a computer-readable medium.
