Inter prediction method and apparatus

The inter prediction method addresses complexity and accuracy issues in video coding by using time offset vectors from spatial and temporal neighborhood blocks to determine motion vectors, improving prediction accuracy and efficiency.

JP7547574B2Active Publication Date: 2024-09-09HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023117744
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-05-17
Filing Date
2023-07-19
Publication Date
2024-09-09
Estimated Expiration
2039-08-15

AI Technical Summary

Technical Problem

Existing video coding technologies face challenges in reducing implementation complexity while maintaining or improving the accuracy of motion information prediction for video blocks, particularly in inter prediction methods.

Method used

An inter prediction method and apparatus that determines the motion vector of a block based on co-located sub-blocks, using a time offset vector derived from spatial and temporal neighborhood blocks, with predefined motion vectors when co-located vectors are unavailable, to enhance prediction accuracy and reduce complexity.

Benefits of technology

This approach improves the accuracy of motion information prediction and reduces implementation complexity by dynamically obtaining motion vectors, even when co-located vectors are unavailable, thereby enhancing coding efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007547574000022
    Figure 0007547574000022
  • Figure 0007547574000016
    Figure 0007547574000016
  • Figure 0007547574000011
    Figure 0007547574000011
Patent Text Reader

Abstract

To provide an inter prediction method and device for improving prediction accuracy in coding and increasing coding efficiency.SOLUTION: An inter prediction method includes the steps of: determining a temporal offset vector of a to-be-processed block based on a spatially neighboring block of the to-be-processed block, the to-be-processed block including one or more subblocks, the temporal offset vector being used to determine a collocated subblock of the subblocks of the to-be-processed block; and determining a motion vector of the subblock of the to-be-processed block based on a motion vector of the collocated subblock, the motion vector of the subblock of the to-be-processed block being obtained based on a first preset motion vector when the motion vector of the collocated subblock is unavailable.SELECTED DRAWING: Figure 12
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application is incorporated herein by reference in its entirety. A Chinese patent filed with the State Intellectual Property Office of China on May 17, 2019 entitled "Patent Application No. 11014411 and Patent Application No. 11014411" Priority is claimed from application No. 201910414914.5.

[0002] The present invention relates to the field of video coding, in particular to an image coding method for video pictures. The present invention relates to a method and apparatus for predicting a target speed. [Background technology]

[0003] Digital video capabilities include digital television, digital live broadcast systems, systems, wireless broadcast systems, personal digital assistants (PDAs), laptops or Desktop computers, tablet computers, e-readers, digital cameras digital recording devices, digital media players, video game devices, video game consoles consoles, cellular or satellite radio telephones (so-called "smartphones"), videoconferencing equipment , video streaming devices, etc. The video equipment may use video compression techniques such as MPEG-2, MPEG-4, ITU-T H.263, and ITU-T H.264 / MPEG-4 Part10: Advanced Video Coding (AVC), video coding standard Defined by the H.265 / High Efficiency Video Coding (HEVC) standard, and extensions to such standards The video device implements the video compression techniques described in the standards applicable to such video signals. By implementing video compression techniques, digital video information can be transmitted and received more efficiently. The data may be encoded, decoded, and / or stored.

[0004] Perform spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to Video compression techniques are used to reduce or eliminate the redundancy inherent in video sequences. In block-based video coding, a video slice (i.e., a A single image frame or part of a video frame may be partitioned into picture blocks. A picture block can be a tree block, a coding unit (CU), and / or Sometimes called a coding node. A picture is intra-coded. (I) A picture block in a slice is a reference block in a neighboring block in the same picture. It is coded through sample-based spatial prediction. A picture block in a slice (P or B) to be processed is considered to be closer to neighboring blocks in the same picture. or , temporal prediction based on reference samples in another reference picture may be used. A picture may be referred to as a frame, and a reference picture may be referred to as a reference frame. Summary of the Invention [Means for solving the problem]

[0005] The embodiments of the present application provide an inter prediction method and apparatus for video pictures, as well as ,In order to reduce the implementation complexity while,improving the accuracy of predicting the motion,information of a picture block, , and corresponding encoders and decoders for the same.

[0006] According to a first aspect, an embodiment of the present application provides an inter-prediction method, The block includes one or more sub-blocks, and the method comprises: Determine the time offset vector of the block to be processed based on the nearest neighboring blocks Step 20. The time offset vector is calculated based on the sub-blocks of the block to be processed. a step used to determine the co-located sub-blocks of the Based on the motion vector of the block, the motion vectors of the sub-blocks of the block to be processed are calculated. determining the motion vectors of the sub-blocks of the block to be processed; However, when the motion vector of the co-located sub-block is unavailable, the first pre-determined motion vector is used. The motion vector is obtained based on the set motion vector.

[0007] In this implementation, the motion vectors are obtained on a sub-block basis. This improves the accuracy of vector prediction and increases coding efficiency. The motion vectors are all selected when the motion vectors of the co-located sub-blocks are not available. It is obtained based on the preset motion vector. Derive the default motion vector In comparison with the method for performing the above-mentioned operations, this implementation reduces the implementation complexity.

[0008] In one possible implementation, based on spatial neighboring blocks of the block to be processed, The step of determining the time offset vector of the block to be processed may be performed using a predefined The movement of the spatial neighboring blocks at a plurality of first preset positions in a predetermined order is performed. Checks whether a motion vector is available and whether it is in a predefined order. until the motion vector of the first spatial neighboring block that is available in The motion vector is preset as a step and a time offset vector. and using the motion vector of the first spatial neighboring block that is available in the order. nothing.

[0009] In this implementation, the time offset vector is calculated using multiple spatial neighboring blocks. In this way, the spatial correlation of the prediction object is fully utilized. will be done.

[0010] In one possible implementation, the spatial neighbors at the first plurality of preset locations are When all the motion vectors of the adjacent blocks are unavailable, the second preset The motion vector is used as the time offset vector.

[0011] In one possible implementation, the second predefined motion vector is a zero motion vector. It is a vector.

[0012] In this implementation, the movement of spatial neighboring blocks at multiple predefined positions When a vector is unavailable, a zero motion vector is used as an alternative solution. This reduces the implementation complexity.

[0013] In one possible implementation, based on spatial neighboring blocks of the block to be processed, The step of determining the time offset vector of the block to be processed is a second Obtain the motion vectors and reference frames of spatial neighboring blocks at the predefined positions. a step of detecting the movement of the spatial neighboring blocks at the second preset position; A vector is available at the step and a vacancy at the second preset position. and using the motion vector of the nearest neighboring block as the temporal offset vector. nothing.

[0014] In this implementation, the time offset vector is a set of vacancies at preset positions. This is obtained by using the nearest neighboring blocks. This skips a step, further reducing implementation complexity.

[0015] In one possible implementation, a spatial neighborhood block at a second preset location is When the block motion vector is unavailable, a third predefined motion vector is used. is used as the time offset vector.

[0016] In one possible implementation, the third predefined motion vector is a zero motion vector. It is a vector.

[0017] In this implementation, the motion vectors of spatial neighboring blocks at preset positions are calculated. When a motion vector is not available, a zero motion vector is used as an alternative solution. reduces the implementation complexity.

[0018] In one possible implementation, a spatial neighborhood block at a second preset location is The motion vectors of the block include a first directional motion vector based on a first reference frame list. , the reference frame of the spatial neighboring block at the second preset position is A first direction reference frame corresponding to the forward motion vector is included, and a time offset vector is using the motion vector of the spatial neighboring block at the second preset position This means that the image frame in which the subblock at the same position is located and the first direction reference frame are the same. When the first directional motion vector is the same as the second directional motion vector, the first directional motion vector is used as the time offset vector. include.

[0019] In one possible implementation, the image frame in which the co-located sub-block is located and the first When the directional reference frames are different, the method further comprises: The method includes using a previously set motion vector.

[0020] In one possible implementation, a spatial neighborhood block at a second preset location is When bidirectional prediction is used for the block, the vacancy at the second preset position is The motion vector of the intermediate neighboring block is further determined as a second direction motion vector based on the second reference frame list. a reference frame of the spatial neighboring block at the second preset position, The frame includes a second direction reference frame corresponding to the second direction motion vector, and the first direction reference frame corresponds to the second direction motion vector. The reference frame is the image frame in which the corresponding time block of the block to be processed is located. When the image frame is different from the image frame in which the co-located sub-block is located, the method When the directional reference frame is the same, the second directional motion vector is used as the time offset vector. or a step of comparing the image frame in which the co-located sub-block is located and the second When the directional reference frames are different, a third predefined vector is used as the time offset vector. using the determined motion vector.

[0021] In one possible implementation, bi-prediction is performed at a second preset position. When used for spatial neighborhood blocks, the vacant space at the second preset location The motion vector of the intermediate neighboring block is a first direction motion vector based on the first reference frame list. a second directional motion vector based on the second reference frame list and a second reference frame list; The reference frame of the spatial neighboring block at the preset position is determined by the first direction motion vector. A first directional reference frame corresponding to the first directional vector and a second directional reference frame corresponding to the second directional motion vector. A second preset position as a time offset vector, including a directional reference frame. Using the motion vectors of spatially neighboring blocks in When the image frame located at the same position is obtained from the second reference frame list, When the image frame in which the block is located and the second direction reference frame are the same, the time offset is Use the second directional motion vector as the offset vector, or The image frame in which the lock is located and the second direction reference frame are different, and the subblocks at the same position are When the image frame in which the block is located and the first direction reference frame are the same, the time offset Using the first direction motion vector as the subblock vector or When the image frame in which the lock is located is obtained from the first reference frame list, When the image frame in which the subblock is located is the same as the first direction reference frame, , the first direction motion vector is used as the time offset vector, or The image frame in which the subblock is located is different from the first direction reference frame, and When the image frame in which the sub-block is located and the second direction reference frame are the same, Using the second directional motion vector as the offset vector.

[0022] In one possible implementation, a second predefined time vector is used as the time offset vector. Using the motion vectors of spatially neighboring blocks at the selected location reduces the number of motion vectors of the same-located subblocks. The image frame in which the lock is located is taken from the second reference frame list and processed. All reference frames in the reference frame list of the block to be processed When the image frame in which the sub-block is located is displayed before the image frame in which the sub-block is located, When the image frame and the second directional reference frame are the same, the time offset vector is or by using a second direction motion vector for the image frame in which the co-located sub-block is located. The first and second directional reference frames are different, and the image frames in which the sub-blocks at the same position are located are different. When the frame and the first directional reference frame are the same, the first Using directional motion vectors or by using the image frame in which the co-located sub-blocks are located A frame is taken from the first reference frame list or the block to be processed. At least one reference frame in the reference frame list contains a block to be processed. When displayed after the image frame in which the co-located sub-block is located, When the frame is the same as the first directional reference frame, the first directional reference frame is used as the time offset vector. or the image frame in which the co-located sub-block is located. and an image frame in which the first direction reference frame is different and the sub-block at the same position is located. When the second directional reference frame is the same, the second directional motion is calculated as a time offset vector. This includes using vectors.

[0023] In one possible implementation, the image frame in which the co-located sub-blocks are located and the second The first and second image frames are different in the directional reference frame, and the sub-blocks at the same position are located in the same image frame. When the directional reference frames are different, a third predefined vector is used as the time offset vector. The motion vectors obtained are used.

[0024] The above implementations are different ways to obtain the time offset vector and have different The specific implementation form is determined based on the requirements of the implementation complexity. can be selected.

[0025] In one possible implementation, the co-located sub-blocks are located and should be processed. The index of the image frame in the reference frame list of the spatial neighboring block of the input block. The frames are obtained by parsing the bitstream.

[0026] In this implementation, a method for selecting an image frame in which the co-located sub-block is located is There are several possibilities. This improves coding performance.

[0027] In one possible implementation, the motion vectors of spatial neighboring blocks are not available. The conditions include one or a combination of the following: Intra prediction mode or intra block copy mode for spatial neighboring blocks the spatial neighbors and the processed The blocks to be separated are located in different coding regions.

[0028] In one possible implementation, a coding region may be a picture, a slice, a tile, or Contains a tile group or a tile.

[0029] In one possible implementation, the motion vectors of the sub-blocks of the block to be processed Before determining the predetermined interval of the co-located sub-blocks, the method further comprises: determining whether a motion vector corresponding to the love lock position is available; and correspondingly determining the motion vectors of the sub-blocks of the block to be processed. The step of performing the above-mentioned process uses a motion vector corresponding to a preset intra block position. When the motion vector corresponding to the predetermined intra block position is available, obtaining motion vectors of sub-blocks of the block to be processed based on Or, the motion vector corresponding to the predefined intra block position is unavailable. When possible, the first predefined motion vector should be processed. The method includes obtaining motion vectors of sub-blocks of the block.

[0030] In one possible implementation, the preset intra block position is the same position. The geometric center position of the sub-block in the position.

[0031] In this implementation, the geometric center position is set at a preset intra-block position. It is used as a sub-block position or in another intrablock such as the top left corner of a sub-block in the same position. The block position may be used as a preset intra block position.

[0032] In one possible implementation, a predefined intra block position is located For the prediction unit, an intra prediction mode or an intra block copy mode is used. When the motion vector is generated, the motion vector corresponding to the predefined intra block position is unavailable. Alternatively, a prediction unit in which a pre-defined intra block position is located may be used. When inter prediction is used for a frame, the predefined intra block position is used. A motion vector corresponding to is available.

[0033] In this implementation, whether the motion vectors of the co-located sub-blocks are available The prediction mode is used to determine, which further reduces the implementation complexity.

[0034] In one possible implementation, the motion vectors of the sub-blocks of the block to be processed is obtained based on the first preset motion vector. The first preset motion vector is used as the motion vector of the sub-block of the block to be processed. This includes using

[0035] In one possible implementation, the first predefined motion vector is a zero motion vector. It is a vector.

[0036] In this implementation, when the motion vector of the co-located sub-block is unavailable, As an alternative solution for the motion vectors of the sub-blocks of the block to be processed, a zero motion vector is used. A vector is used, which further reduces the implementation complexity.

[0037] In one possible implementation, the motion vector of the sub-block is calculated based on the first reference frame link. A first direction sub-block motion vector based on the list and / or a second reference frame list a second direction sub-block motion vector based on the predetermined intra-block motion vector; When a motion vector corresponding to a block position is unavailable, the block to be processed The motion vector of the sub-block is taken based on the first preset motion vector. It can be seen that unidirectional prediction based on the first direction sub-block motion vector is processed. The first pre-defined block is used for the sub-block of the block to be Based on the motion vector, a first direction subblock of the subblock of the block to be processed is selected. obtaining a second direction sub-block motion vector or obtaining a second direction sub-block motion vector based on the second direction sub-block motion vector; determining that unidirectional prediction based on the eigenvalue is to be used for the sub-blocks of the block to be processed; , based on the first preset motion vector, a sub-block of the block to be processed Obtaining a second direction sub-block motion vector for the block.

[0038] In one possible implementation, When motion vectors are not available, the motion vectors of the subblocks of the block to be processed are used. The vector is obtained based on the first preset motion vector. When the prediction type of the coding region in which the block to be extracted is located is B-type prediction, determining that bi-directional prediction is to be used for a sub-block of the block to be processed; Based on the predefined motion vector of 1, a subblock of the block to be processed is The first direction sub-block motion vector of the block and the sub-block motion vector of the block to be processed separately obtain the second direction sub-block motion vector of the block, or When the prediction type of the coding region in which the block is located is P-type prediction, determining that prediction is to be used for a sub-block of the block to be processed, Based on the previously set motion vector, the sub-blocks of the block to be processed are selected. Obtaining a first direction sub-block motion vector.

[0039] The prediction type of the coding region in which the block to be processed is a B-type prediction is It is understood that this means that the region in which the block to be isolated is located is a B-type region. For example, the blocks to be processed are B frames, B slices, B tiles, B tiles In this case, both bidirectional and unidirectional predictions should be processed. The prediction of the coding region in which the block to be processed is located is allowed for the block. The prediction type is P-type prediction because the region in which the block to be processed is located is P-type. For example, the block to be processed is a P frame, a P slice, In this case, only unidirectional prediction is processed. This is allowed for blocks that should be

[0040] The above implementations determine the motion vectors of the co-located sub-blocks to be processed. These are different ways to obtain subblocks of a given block, with different performance and implementation issues. The specific implementation may be selected based on implementation complexity requirements.

[0041] In one possible implementation, Based on the motion vector, obtain the motion vector of the sub-block of the block to be processed. To obtain a motion vector of a sub-block of a block to be processed, A preset interval is determined based on a ratio of the first time distance difference to the second time distance difference. The scaling process is performed on the motion vector corresponding to the intrablock position. The first time distance difference is a time distance difference between the image frame in which the block to be processed is located and the image frame to be processed. is the picture order count difference between the reference frame of the block to be The distance difference is calculated by dividing the image frame in which the co-located sub-block is located by the image frame in which the co-located sub-block is located. is the picture order count difference between the reference frame of

[0042] In one possible implementation, the processing in the reference frame list of the block to be processed The index of the reference frame of the block to be processed is obtained by parsing the bitstream. and is obtained by:

[0043] In this implementation, there are several possibilities for selecting the reference frame. Improves data capture performance.

[0044] In one possible implementation, the processing in the reference frame list of the block to be processed The reference frame index of the block to be processed is 0.

[0045] The index value is agreed upon by the encoder and decoder according to the protocol. When , the bit rate for transmitting the related information is reduced.

[0046] In one possible implementation, the method further comprises: To obtain the prediction of the block to be processed, the motion vectors and and based on the reference frame of the block to be processed, the subblocks of the block to be processed are The step of performing motion compensation on the lock.

[0047] This prediction mode is used as one of several possible inter prediction modes. may be used in constructing a candidate list of predictive vectors to be processed. To perform block reconstruction, merge mode or affine prediction The prediction mode may be combined with another prediction mode such as a prediction mode.

[0048] According to a second aspect, an embodiment of the present application provides an inter-prediction device, A block contains one or more sub-blocks, and the device determines the vacancy of the block to be processed. Determine the time offset vector of the block to be processed based on the nearest neighboring blocks. a time offset acquisition module configured to: It is used to determine the co-located sub-blocks of the block to be processed. The offset acquisition module obtains the motion vector of the sub-block at the same position. a motion vector determining means for determining motion vectors of sub-blocks of the block to be processed; a motion vector acquisition module for acquiring motion vectors of sub-blocks of a block to be processed; When the motion vector of the co-located sub-block is unavailable, the first and a motion vector acquisition module, which acquires the motion vector based on a previously set motion vector. nothing.

[0049] In one possible implementation, the offset acquisition module is specifically configured to In the order, the motion vectors of the spatial neighboring blocks at the first predetermined positions are calculated. The motion vectors are used in a predefined order to determine whether a new motion vector is available. The motion vector of the first possible spatial neighboring block is obtained, and the motion vector of the first possible spatial neighboring block is obtained. As offset vectors, the motion vectors are available in a predefined order. The motion vector of the first spatial neighboring block is configured to be used.

[0050] In one possible implementation, the offset acquisition module specifically includes: All motion vectors of spatial neighboring blocks at the predefined position are unavailable. When the second preset motion vector is used as the time offset vector, It is configured to:

[0051] In one possible implementation, the second predefined motion vector is a zero motion vector. It is a vector.

[0052] In one possible implementation, the offset acquisition module specifically includes a second pre-set obtain the motion vector and the reference frame of the spatial neighboring block at the specified position; The motion vectors of spatial neighboring blocks at two predefined positions are available. Then, the motion vector of the spatial neighboring block at the second preset position is calculated as a time vector. It is constructed for use as an offset vector.

[0053] In one possible implementation, the offset acquisition module specifically includes a second pre-set When the motion vector of the spatial neighboring block at the specified position is unavailable, the third Configure a predefined motion vector to be used as the time offset vector will be done.

[0054] In one possible implementation, the third predefined motion vector is a zero motion vector. It is a vector.

[0055] In one possible implementation, a spatial neighborhood block at a second preset location is The motion vectors of the block include a first directional motion vector based on a first reference frame list. , the reference frame of the spatial neighboring block at the second preset position is a first direction reference frame corresponding to a forward motion vector; and an offset acquisition module includes: In particular, the image frame in which the co-located sub-block is located and the first direction reference frame are the same. and using the first directional motion vector as the time offset vector when It is done.

[0056] In one possible implementation, the image frame in which the co-located sub-block is located and the first When the directional reference frames of the two are different, the offset acquisition module The motion vector is configured to use a third preset motion vector as a vector.

[0057] In one possible implementation, a spatial neighborhood block at a second preset location is When bidirectional prediction is used for the block, the vacancy at the second preset position is The motion vector of the intermediate neighboring block is further determined as a second direction motion vector based on the second reference frame list. a reference frame of the spatial neighboring block at the second preset position, The frame includes a second direction reference frame corresponding to the second direction motion vector, and the first direction reference frame corresponds to the second direction motion vector. The reference frame is the image frame in which the corresponding time block of the block to be processed is located. When the sub-blocks are different from each other, the offset acquisition module specifically determines the location of the sub-blocks at the same position. When the image frame and the second directional reference frame are the same, the time offset vector and and using a second direction motion vector for the image in which the sub-block at the same position is located. When the frame and the second directional reference frame are different, a third directional reference frame is used as the time offset vector. It is configured to use predefined motion vectors.

[0058] In one possible implementation, bi-prediction is performed at a second preset position. When used for spatial neighborhood blocks, the vacant space at the second preset location The motion vector of the intermediate neighboring block is a first direction motion vector based on the first reference frame list. a second directional motion vector based on the second reference frame list and a second reference frame list; The reference frame of the spatial neighboring block at the preset position is determined by the first direction motion vector. A first directional reference frame corresponding to the first directional vector and a second directional reference frame corresponding to the second directional motion vector. The offset acquisition module includes a directional reference frame, and the offset acquisition module specifically determines whether the co-located sub-blocks are aligned. When the image frame to be placed is obtained from the second reference frame list, the sub-blocks at the same position are When the image frame in which the lock is located and the second directional reference frame are the same, the time off Use the second directional motion vector as the set vector, or The image frame in which the sub-block is located and the second direction reference frame are different, and the sub-blocks at the same position are When the image frame in which the block is located and the first direction reference frame are the same, the time offset The first direction motion vector is used as the target vector, or the co-located sub-block is When the image frame located at the same position is obtained from the first reference frame list, When the image frame in which the block is located and the first direction reference frame are the same, the time offset is Use the first direction motion vector as the offset vector, or The image frame in which the lock is located is different from the first direction reference frame, and the subblocks in the same position are When the image frame in which the block is located and the second direction reference frame are the same, the time offset The second directional motion vector is configured to be used as the target vector.

[0059] In one possible implementation, the offset acquisition module specifically The image frame in which the block is located is obtained from the second reference frame list and processed. All reference frames in the block's reference frame list are included in the block to be processed. When the image frame in which the sub-block is located is displayed before the image frame in which the sub-block is located, When the frame and the second directional reference frame are the same, we use the time offset vector Using the second direction motion vector, or the image frame in which the co-located sub-block is located The image frame in which the first and second directional reference frames are different and the sub-blocks at the same position are located When the first directional reference frame is the same as the second directional reference frame, the first directional reference frame is used as the time offset vector. Alternatively, the image frame in which the co-located sub-blocks are located is The reference frame of the block to be processed is obtained from the first reference frame list. At least one reference frame in the frame list corresponds to the frame in which the block to be processed is located. When displayed after an image frame, the image frame in which the co-located sub-block is located When it is the same as the first directional reference frame, the first directional motion is used as a time offset vector. A vector is used, or the image frame in which the sub-block at the same position is located and the first The image frame in which the sub-blocks at the same position are located and the second reference frame are different. When the directional reference frames are the same, the second directional motion vector is used as the time offset vector. The device is configured to use the

[0060] In one possible implementation, the offset acquisition module specifically The image frame in which the sub-block is located and the second direction reference frame are different, and the sub-blocks at the same position are When the image frame in which the object is located and the first direction reference frame are different, the time offset vector The third predetermined motion vector is configured to be used as a tolerant.

[0061] In one possible implementation, the co-located sub-blocks are located and should be processed. The index of the image frame in the reference frame list of the spatial neighboring block of the input block. The frames are obtained by parsing the bitstream.

[0062] In one possible implementation, the motion vectors of spatial neighboring blocks are not available. The conditions include one or a combination of the following: Intra prediction mode or intra block copy mode for spatial neighboring blocks the spatial neighbors and the processed The blocks to be separated are located in different coding regions.

[0063] In one possible implementation, a coding region may be a picture, a slice, a tile, or Contains a tile group or a tile.

[0064] In one possible implementation, the device further comprises: Determine whether a motion vector corresponding to a specified intra block position is available. a motion vector acquisition module configured to: In particular, the motion vectors corresponding to the predefined intrablock positions are used. When possible, the motion vector corresponding to the predefined intra block position is used. Based on the obtained motion vector, a motion vector of a sub-block of the block to be processed is obtained, or If the motion vector corresponding to the predefined intra block position is not available, Then, based on the first preset motion vector, a sub-segment of the block to be processed is obtained. The motion vector of the subblock is obtained.

[0065] In one possible implementation, the preset intra block position is the same position. The geometric center position of the sub-block in the position.

[0066] In one possible implementation, a predefined intra block position is located For the prediction unit, an intra prediction mode or an intra block copy mode is used. When the motion vector is generated, the motion vector corresponding to the predefined intra block position is unavailable. Alternatively, a prediction unit in which a pre-defined intra block position is located may be used. When inter prediction is used for a frame, the predefined intra block position is used. A motion vector corresponding to is available.

[0067] In one possible implementation, the motion vector acquisition module specifically determines the block to be processed. The first preset motion vector is set as the motion vector of the sub-block of the block. It is configured to use

[0068] In one possible implementation, the first predefined motion vector is a zero motion vector. It is a vector.

[0069] In one possible implementation, the motion vector of the sub-block is calculated based on the first reference frame link. A first direction sub-block motion vector based on the list and / or a second reference frame list a second direction sub-block motion vector based on the predetermined intra-block motion vector; When the motion vector corresponding to the block position is not available, the motion vector acquisition module In particular, the method includes the steps of: The first preset motion is determined to be used for the sub-block of the block to be processed. Based on the vector, the first direction subblock of the subblock of the block to be processed is selected. or obtain a unidirectional sub-block motion vector based on the second direction sub-block motion vector; determining that prediction is to be used for a sub-block of the block to be processed, Based on the previously set motion vector, the sub-blocks of the block to be processed are selected. The second direction sub-block motion vector is configured to be obtained.

[0070] In one possible implementation, When the motion vector is unavailable, the motion vector acquisition module is specifically processed When the prediction type of the coding region in which the block is located is B-type prediction, determining that forward prediction is to be used for a sub-block of the block to be processed, A subblock of the block to be processed based on a predefined motion vector. of the first direction sub-block motion vector and the sub-block of the block to be processed Obtain the second direction sub-block motion vector separately, or When the prediction type of the coding region in which the marker is located is P-type prediction, unidirectional prediction is performed. The first predefined block is determined to be used for a sub-block of the block to be processed. A first direction of a sub-block of the block to be processed based on the determined motion vector. The motion vector generation unit is configured to obtain a sub-block motion vector.

[0071] In one possible implementation, the motion vector acquisition module specifically determines the block to be processed. to obtain a motion vector of the sub-block of the first block. Based on the ratio of the time distance difference between the configured to perform a scaling operation on the motion vectors, is the image frame in which the block to be processed is located and the reference frame of the block to be processed. The first is the picture order count difference between the first and second frames, and the second is the time distance difference between the first and second frames. The difference between the image frame in which the subblock is located and the reference frame of the co-located subblock is This is the difference in the kucha sequence count.

[0072] In one possible implementation, the processing in the reference frame list of the block to be processed The index of the reference frame of the block to be processed is obtained by parsing the bitstream. and is obtained by.

[0073] In one possible implementation, the processing in the reference frame list of the block to be processed The reference frame index of the block to be processed is 0.

[0074] In one possible implementation, the device further selects sub-blocks of the block to be processed. To obtain the prediction of the block to be processed, the motion vectors and and based on the reference frame of the block to be processed, the subblocks of the block to be processed are The motion compensation module is configured to perform motion compensation on the lock.

[0075] According to a third aspect, an embodiment of the present application provides a video encoder. The image reader is configured to encode the picture block, and the second aspect of the embodiment of the present application The inter prediction apparatus according to the present invention is characterized in that it estimates a current coding picture frame based on a target motion information candidate. and predicting the motion information of the current coding picture block based on the motion information of the current coding picture block. An interleaf filter configured to determine predicted pixel values ​​of the coded picture block. A prediction device; The index identifier of the candidate target motion information is configured to be encoded into the bitstream. an entropy coding module, the index identifier being a current coding peak; An entropy coding module that indicates the candidate target motion information to be used for the texture block. With The present coding method is configured to reconstruct a current coded picture block based on predicted pixel values. and a reconstruction module.

[0076] According to a fourth aspect, an embodiment of the present application provides a video decoder. is configured to decode a picture block from a bitstream, an entropy decoding module configured to decode the index identifier from the Therefore, the index identifier indicates the candidate target motion information of the current decoded picture block. The entropy decoding module according to the second aspect of the embodiment of the present application is used in A center prediction device, comprising: a center prediction device for predicting a center of motion based on a target motion information candidate indicated by an index identifier; 2. Predict the motion information of the current decoded picture block using the motion vector of the current decoded picture block. determining a predicted pixel value of the current decoded picture block based on the received information; and a current decoded picture based on the pixel values ​​to be predicted. and a reconstruction module configured to reconstruct the blocks.

[0077] According to a fifth aspect, an embodiment of the present application provides a non-volatile memory and The present invention provides an encoding device including a processor, the processor comprising: A program stored in the memory for performing some or all of the steps of the method. Call Ramcode.

[0078] According to a sixth aspect, an embodiment of the present application provides a non-volatile memory and and a processor, the processor comprising: A program stored in memory for performing some or all of the steps of the method. Call the code.

[0079] According to a seventh aspect, an embodiment of the present application provides a computer-readable storage medium. The computer readable storage medium stores program code, the program code comprising: It includes instructions used to carry out some or all of the steps of any method according to the present invention.

[0080] According to an eighth aspect, an embodiment of the present application provides a computer program product. When the computer program product is executed on a computer, the computer executes a first It may be possible to perform some or all of the steps of any method according to an aspect.

[0081] According to a ninth aspect, an embodiment of the present application provides an inter prediction method, The block to be processed includes one or more sub-blocks, and the method obtaining a spatial neighborhood block of the block; and determining a time offset based on the spatial neighborhood block. and obtaining a vector of the sub-blocks of the block to be processed. The time offset vector is used to determine the subblock of the location, and the spatial neighborhood The block has a first directional reference frame located in a first reference frame list, and the co-located subframe When the image frame in which the subblock is located is the same as the first direction reference frame, the time offset is The offset vector is a first direction motion vector of a spatial neighboring block, and the first direction motion vector The vector corresponds to the first directional reference frame.

[0082] In one possible implementation, the spatial neighboring blocks are located in the first reference frame list. When the image does not have a first direction reference frame, or when the image in which the co-located sub-block is located is not a first direction reference frame, When the image frame is different from the first orientation reference frame, the method further comprises: A second directional reference frame located in a second reference frame list and a co-located sub-frame. When the image frame in which the subblock is located is the same as the second direction reference frame, the time offset is The offset vector is a second direction motion vector of the spatial neighboring block, and the second direction motion vector The vector corresponds to a second directional reference frame.

[0083] In one possible implementation, a spatial neighborhood of the block to be processed is obtained. This involves checking whether spatial neighboring blocks are available and and obtaining spatial neighboring blocks when available.

[0084] In one possible implementation, the image frame in which the co-located sub-blocks are located is the first The directional reference frame is the same as the image frame in which the sub-block at the same position is located. The POC of the first directional reference frame is the same as the POC of the first directional reference frame.

[0085] In one possible implementation, the image frame in which the co-located sub-block is located is the second The directional reference frame is the same as the image frame in which the sub-block at the same position is located. The POC of the first directional reference frame is the same as the POC of the second directional reference frame.

[0086] In one possible implementation, the method further comprises: Parsing the bitstream to obtain frame index information. nothing.

[0087] In one possible implementation, the method further comprises: As a frame, an image frame having a predefined relationship with the blocks to be processed is The method includes the step of using a frame.

[0088] In one possible implementation, the predefined relationship is is located in the image frame in which the block to be processed is located in the decoding order. that the block to be processed is decoded earlier than the image frame in which it is located. Includes.

[0089] In one possible implementation, the predefined relationship is The image frame in which the is located is included in the first directional reference frame list of the block to be processed. or the reference frame whose reference frame index is 0 in the second direction reference frame list. This includes being a reference frame.

[0090] In one possible implementation, the spatial neighboring blocks are located in a second reference frame list. When the second directional reference frame is not available, or when the image in which the co-located sub-block is located is not available, When the image frame is different from the second orientation reference frame, the method further comprises: The method includes using a zero motion vector as the tolerant.

[0091] According to a tenth aspect, an embodiment of the present application provides a non-volatile memory and The present invention provides a video coding device including a processor, the processor comprising: Program code stored in memory for carrying out the method described in Call.

[0092] The technical solutions in the second to tenth aspects of the present application are the same as those in the first aspect. It should be understood that this is not inconsistent with the present solution. The beneficial effects achieved in the forms are similar and will not be described in detail again.

[0093] In order to more clearly describe the technical solutions in the embodiments or background of this application, the following Briefly, the following describes the accompanying drawings to illustrate embodiments of the present application or background. [Brief description of the drawings]

[0094] [Figure 1A] FIG. 1 is a block diagram of an example video encoding and decoding system 10 for implementing embodiments of the present invention. [Figure 1B] 1 is a block diagram of an example video coding system 40 for implementing embodiments of the present invention. [Diagram 2] 2 is a block diagram of an exemplary structure of an encoder 20 for implementing an embodiment of the present invention. [Diagram 3] 3 is a block diagram of an exemplary structure of a decoder 30 for implementing an embodiment of the present invention. [Figure 4] 4 is a block diagram of an example video coding device 400 for implementing embodiments of the present invention. [Diagram 5] FIG. 2 is a block diagram of another example of an encoding device or a decoding device for implementing an embodiment of the present invention. [Figure 6] 3 is a schematic diagram of example spatial neighborhood blocks and temporal reference blocks used to implement embodiments of the present invention; [Figure 7] 1 is a schematic diagram of an example of an AMVP prediction mode for implementing an embodiment of the present invention. [Figure 8] FIG. 2 is a schematic diagram of example sub-blocks for implementing an embodiment of the present invention. [Figure 9] 1 is a flow chart of an example inter-prediction method for implementing embodiments of the present invention. [Figure 10] 4 is a schematic diagram of an example of a motion vector scaling process for implementing an embodiment of the present invention; [Figure 11]FIG. 2 is a schematic diagram of an example of sub-blocks of a block to be processed and co-located sub-blocks of the sub-block used to implement an embodiment of the present invention; [Figure 12] 1 is a flowchart of another example inter-prediction method for implementing embodiments of the present invention. [Figure 13] 1 is a block diagram of an example inter-prediction device for implementing embodiments of the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0095] The following describes an embodiment of the present invention with reference to the accompanying drawings in the embodiment of the present invention. The following description forms part of the present disclosure and illustrates, by way of example, certain aspects and embodiments of the present invention. Reference is now made to the accompanying drawings, which show specific manners in which embodiments of the present invention may be practiced. The embodiments of the invention may be used in other ways, not shown in the accompanying drawings. It is to be understood that structural or logical changes may be made. The detailed description is not to be taken in a limiting sense, and the scope of the present invention is limited only by the appended claims. For example, the disclosure may be directed to a method. The present invention is also applicable to a corresponding device or system configured to execute It should be understood that the reverse is also true. For example, one or more particular method steps may Where described, the corresponding device performs one or more of the method steps described. functional units for performing one or more steps or multiple units, each of which performs one or more of the steps) one or more units, etc., as shown in the accompanying drawings, In addition, for example, When a particular apparatus is described in terms of one or more units, such as functional units, A corresponding method is used to perform one or more functions of one or more units. Steps to be performed (e.g., performing one or more functions of one or more units) A step or each of the steps may be one or more of the units (a plurality of steps used to perform one or more functions of a unit of One or more of such steps are not explicitly described or illustrated in the accompanying drawings. In addition, various exemplary embodiments described herein may include The features of the embodiments and / or aspects may be combined with each other unless otherwise specified. I want you to understand that.

[0096] The technical solution in the embodiment of the present invention is based on the existing video coding standards (e.g. For example, it applies not only to standards such as H.264 and HEVC, but also to future video coding standards. The present invention may also be applied to other video standards (e.g., the H.266 standard). The terminology is only intended to describe particular embodiments of the invention and is not intended to limit the scope of the invention. It is not intended to be limiting. In the following, first, the following is a description of the method used in the embodiment of the present invention. We will briefly explain some of the concepts that we will acquire.

[0097] Video coding typically refers to the processing of a sequence of pictures, where the pictures The sequence forms a video or a video sequence. In the field of video coding, The terms "picture," "frame," and "image" are used interchangeably. As used herein, video coding refers to video Video encoding is performed at the source and is usually more efficient. The amount of data for representing a video picture is reduced for efficient storage and / or transmission. This involves processing the original video picture (e.g., by compression) to reduce the Decoding is performed at the destination side and typically involves the generation of a digital signal to reconstruct the video picture. The “coding” of the video picture in the embodiment involves the reverse process compared to the encoder. "Encoding" or "decoding" a video sequence should be understood as "encoding" or "decoding" a video sequence. The combination of the encoding and decoding parts is also called coding (encoding and decoding).

[0098] A video sequence contains a series of pictures, which are further divided into slices. e) and slices are further divided into blocks. This is done by blocks. Some newer video coding standards use "blocks" The concept is expanded further. For example, the H.264 standard uses macroblocks. , MB), and the macroblocks are further divided into several blocks that can be used for predictive coding. The prediction block (partition) may be divided into a plurality of prediction blocks. In the HEVC standard, multiple block units are called coding units. It (CU), prediction unit (PU), and transform unit (T U) to classify based on features and use a new tree-based structure. For example, a CU may be divided into smaller CUs based on a quadtree. Often, the smaller CUs may be further divided to generate a quadtree structure. PU and TU are the basic units for dividing and encoding a streaming picture. It also has a tree structure. A PU may correspond to a prediction block, which is the basis for predictive coding. A CU is a unit of transformation. A CU is further divided into multiple PUs in the division mode. A TU is a transformation block. It may correspond to a block, which is the basic unit for transforming the prediction residual. In general, CU, PU, ​​and TU are all concepts of a block (or picture block).

[0099] For example, in HEVC, the CTU is a quadtree structure represented as a coding tree. By using inter-picture (temporal) prediction, the image is split into multiple CUs. By using the approximation function, the picture regions are coded or intra-picture (spatial) prediction is performed. The decision to use to code a picture region is made at the CU level. Each CU can be further split into 1, 2, or 4 PUs based on the PU split type. The same prediction process is applied in one PU, and the relevant information is sent to the decoder for each PU. Residual blocks are obtained by applying prediction processing based on the PU partition type. After being coded, the CU is stored in another quadtree structure that resembles the coding tree used for the CU. Based on the above, the image can be divided into transform units (TUs). In the development of the Quadtree plus Binary Tree (QTBT) partitioning frame, is used to partition the coding blocks. In the QTBT block structure, the CU is It may be square or rectangular.

[0100] In this specification, for ease of explanation and understanding, The picture block to be coded may be referred to as the current block. For example, In encoding, the current block is the block being encoded, and in decoding, the current A block is a block that is being decoded. It is used to predict the current block. A decoded picture block in a reference picture is called a reference block. Typically, a reference block is a block that provides a reference signal for a current block. The reference signal represents pixel values ​​in a picture block. A block that provides a prediction signal for a block may be called a prediction block. The code represents a pixel value, a sampling value, or a sampling signal in the prediction block. For example, after multiple reference blocks are scanned, the optimal reference block is found. The best reference block provides the prediction for the current block, and this block is the prediction block. It's called rock.

[0101] In lossless video coding, the original video picture can be reconstructed, i.e. That is, the reconstructed video picture has the same quality as the original video picture (storage and (Assuming no transmission or other data losses occur during transmission.) Lossy Video In the case of coding, reducing the amount of data required to represent a video picture To achieve this, further compression is performed, for example through quantization, to generate the video picture for the decoder. The video picture cannot be completely reconstructed by the side, i.e. the quality of the reconstructed video picture is Lower or worse quality than the original video picture.

[0102] Some H.261 video coding standards are called "lossy hybrid video codecs." (i.e., spatial and temporal prediction in the sample domain is used for the (Combined with 2D transform coding to apply quantization in the transform domain.) Each picture in a sequence is usually partitioned into a set of non-overlapping blocks, The coding is usually performed at the block level. In other words, on the encoder side, the video is Typically, it is processed, i.e., coded, at the block (video block) level. For example, The predicted block is predicted through spatial (intra-picture) prediction and temporal (inter-picture) prediction. The prediction block is generated by subtracting the current block (current processing block) from the current block to obtain the residual block. The residual block is then subtracted from the transform domain (the block being processed or to be processed) The signal is transformed in the decoded form and quantized to reduce the amount of data that needs to be transmitted (compressed). On the reader side, the inverse process of the encoder reconstructs the current block for representation. In order to achieve this, the encoder applies the The encoder and decoder then duplicate the processing loop of the previous block. For example, the same prediction (e.g., intra-prediction and and inter prediction) and / or reconstruction.

[0103] The following describes a system architecture to which the embodiment of the present invention is applied. FIG. 1 is a schematic block diagram of an example of a video encoding and decoding system 10 to which an embodiment of the present invention may be applied; As shown in FIG. 1A, a video encoding and decoding system 10 includes a source device, The source device 12 may include a destination device 14 and a source device 12 may receive the encoded video. Because source device 12 generates video data, it may be referred to as a video encoder. The generation device 14 receives the encoded video data generated by the source device 12. Destination device 14 may be referred to as a video decoder because it may be capable of decoding the video data. In various implementation solutions, the source device 12, the destination device 14, or Both the source device 12 and the destination device 14 may include one or more processors. The memory may include a processor and a memory coupled to the one or more processors. Although not shown, RAM, ROM, EEPROM, flash memory, or any other memory device as described herein may be used. The desired program is written in the form of instructions or data structures accessible by the computer. The source device may include any other medium that can be used to store program code. The destination device 12 and destination device 14 may be a desktop computer, a mobile computer, computing devices, notebook (e.g., laptop) computers, tablets Computers, set-top boxes, and telephone handsets, including so-called "smart" phones. PCs, televisions, cameras, display devices, digital media players, video games A variety of devices, including home consoles, vehicle computers, and wireless communication devices It may include.

[0104] FIG. 1A illustrates a source device 12 and a destination device 14 as separate devices. Although shown, alternative device embodiments may include a source device 12 and a destination device 13. The functions of both the source device 12 and the destination device 14, or both the source device 12 and the destination device 14, function, i.e., a source device 12 or a corresponding function and a destination device In such an embodiment, the source device 12 or the corresponding The corresponding function and the destination device 14 or the corresponding function are on the same hardware. software and / or separate hardware and / or software, or or any combination thereof.

[0105] The communication connection between the source device 12 and the destination device 14 is through a link 13. The destination device 14 may be implemented as a The link 13 may receive encoded video data from the device 12. It is possible to move the data from the source device 12 to the destination device 14. In one example, the link 13 may include one or more media or devices. The source 12 transmits the encoded video data directly to the destination device 14 in real time. In this example, the source may include one or more communication media that allow the source to transmit the The device 12 may transmit encoded The video data may be modulated, and the modulated video data may be transmitted to a destination device. The one or more communication media may include wireless communication media and / or wired communication media. A line communication medium, such as the radio frequency (RF) spectrum or one or more physical transmission cables. The one or more communication media may include a portion of a packet-based network. The packet-based network may be, for example, a local area network. Network, wide area network, or global network (for example, the Internet) One or more communication media may be routers, switches, base stations, source devices, The communication system may include another device that facilitates communication from the network 12 to the destination device 14.

[0106] The source device 12 includes an encoder 20. Optionally, the source device 12 further A picture source 16, a picture pre-processor 18, and a communication interface 22 may be included. In one particular implementation, the encoder 20, the picture source 16, the picture preprocessor 18, and communication interface 22 are hardware components in source device 12. The input may be a program or a software program in the source device 12. Good. The explanations are given separately as follows:

[0107] The picture source 16 is configured to capture pictures of the real world, for example. Any type of picture capture device and / or picture or Any type of device for generating comments (screen content coding For coding purposes, some text on the screen may be hidden by the picture or (also considered to be part of the image), e.g. computer animated pictures a computer graphics processing unit configured to generate a real-world Pictures of computer animation (e.g. screen captures) to acquire and / or provide content or virtual reality (VR) pictures Any type of device configured to For example, the images may include or be augmented reality (AR) pictures. Picture source 16 may be a camera configured to capture a picture, or or a memory configured to store a picture. The picture source 16 may further include , previously captured or generated pictures are stored and / or pictures are This may include any type of interface (internal or external) that is acquired or received. When the picture source 16 is a camera, the picture source 16 may be, for example, a local camera. The picture source 16 can be a camera integrated into a memory. At some point, the picture source 16 may be stored in local memory or, for example, in a source device. When the picture source 16 includes an interface, the interface The interface can be, for example, an external interface for receiving pictures from an external video source. The external video source may be, for example, a camera, an external memory, or an external External picture capture devices such as picture generation devices. The device may be, for example, an external computer graphics processing unit, a computer, or The interface may be any proprietary interface program or server. Any type of interface can be used according to a standard or standardized interface protocol. interface, e.g., a wired interface or a wireless interface It may be an optical interface.

[0108] A picture can be viewed as a two-dimensional array or matrix of pixels (picture elements). The pixels in the array may also be called samples. The horizontal and vertical dimensions of the picture of the array The amount of samples in a given direction (or axis) defines the size and / or resolution of the picture. For color representation, three color components are usually used. For example, a picture has three For example, the RGB sample array may be represented as or include: In a format or color space, a picture is a set of corresponding red, green, and blue samples. However, in video coding, each pixel is usually It is expressed in a chroma format or color space. For example, The Kucha consists of the luma component denoted by Y (or sometimes by L) and It contains two chroma components denoted by U and V. The luminance (luma) component Y represents the brightness or gray level. represents the intensity of the two levels (for example, in a grayscale picture, both are the same) The chroma components U and V represent the chroma or color information components. A picture in this format consists of a luma sample array of luma sample values ​​(Y) and two chroma values. The RGB format picture contains the chroma sample array (U and V). This process may be called color conversion or Also called color transformation. If the picture is monochrome, the picture is converted to a luma sample array. In this embodiment of the invention, the picture processor may include a picture source 16. The pictures transmitted thereby may also be referred to as raw picture data 17.

[0109] The picture pre-processor 18 receives the raw picture data 17 and processes the raw picture data 17. Perform preprocessing on the preprocessed picture 19 or preprocessed picture data For example, the picture preprocessor 18 is configured to obtain The pre-processing required is cropping, color format conversion (e.g. from RGB format to YUV format), color correction, or noise reduction.

[0110] The encoder 20 (also called the video encoder 20) receives the pre-processed picture data. 19 and provides encoded picture data 21, the associated prediction mode ( Processing pre-processed picture data 19 in a predictive mode (e.g., in the embodiment of the specification) (The structural details of the encoder 20 will be described below based on FIG. 2, FIG. 4, or FIG. 5.) In some embodiments, the encoder 20 may be implemented as described in the present invention. To implement the encoder-side application of the chroma block prediction method described below, The present invention may be configured to perform various embodiments.

[0111] A communications interface 22 receives the encoded picture data 21 and transmits it to a The encoded picture data 21 is transmitted to the destination via a link 13 for reconstruction of the picture. The application device 14 or any other device (e.g., memory). Any other device may be used for decoding or storage. The communication interface 22 may, for example, include a code for transmission over the link 13. encapsulating the encapsulated picture data 21 into a suitable format, e.g., data packets; The device may be configured to

[0112] The destination device 14 includes a decoder 30. Optionally, the destination The device 14 further includes a communication interface 28, a picture post-processor 32, and a digital The display device 34 may be included. The description is given separately as follows:

[0113] The communication interface 28 receives encoded data from the source device 12 or any other source. The picture data 21 may be arranged to be received from any other source, e.g. The storage device is, for example, a coded picture data store. The communication interface 28 communicates between the source device 12 and the destination device. through a link 13 between the mobile device 14 or through any type of network, The link 13 may be configured to transmit or receive encoded picture data 21. For example, a direct wired connection or a wireless connection. Any type of network , for example, a wired network or a wireless network, or any of these. combination or any type of private or public network The communication interface 28 may be, for example, In order to obtain the encoded picture data 21, the The data packet may be configured to decapsulate the received data packet.

[0114] Both communication interface 28 and communication interface 22 are unidirectional communication interfaces. It may be configured as a data base or bidirectional communication interface, e.g. and sending and receiving messages to communicate with the communication link and / or the encoded picture. Acknowledge and exchange any other information regarding the data transmission, such as the transmission of data It may be configured as follows.

[0115] The decoder 30 (or referred to as decoder 30) receives the encoded picture data 21. , configured to provide decoded picture data 31 or decoded pictures 31 (The structural details of the decoder 30 are further described below with reference to FIG. 3, FIG. 4, or FIG. 5. In some embodiments, the decoder 30 performs the chroma block decoding described in this invention. To implement the decoder-side application of the prediction method, various embodiments described below are implemented. The device may be configured to:

[0116] The picture post-processor 32 processes the decoded picture data 31 (reconstructed picture data) to obtain post-processed picture data 33 The post-processing performed by the picture post-processor 32 is - Format conversion (e.g. YUV to RGB), color correction This may include filtering, cropping, resampling, or any other processing. The processor 32 then transmits the post-processed picture data 33 to a display device 34. The device may be configured to:

[0117] A display device 34 receives the post-processed picture data 33 and displays the picture as The display device 34 is configured to display, for example, a user or viewer. Any type of display for presenting the reconstructed picture, e.g. may be or include an internal or external display or monitor For example, the display may be a liquid crystal display (LCD). ), organic light emitting diode (OLED) displays, plasma Displays, projectors, micro LED displays, liquid crystal on silicon Liquid crystal on silicon (LCoS), digital light processors The display may include a 3.5 mm display, a 1080P ...

[0118] FIG. 1A illustrates a source device 12 and a destination device 14 as separate devices. Although shown, alternative device embodiments may include a source device 12 and a destination device 13. The functions of both the source device 12 and the destination device 14, or both the source device 12 and the destination device 14, function, i.e., a source device 12 or a corresponding function and a destination device In such an embodiment, the source device 12 or the corresponding The corresponding function and the destination device 14 or the corresponding function are on the same hardware. software and / or separate hardware and / or software, or or any combination thereof.

[0119] Based on the description, those skilled in the art will understand the source device 12 and / or destination device 12 shown in FIG. The existence of the functions of the various units of the nation device 14 or the functions of those devices. We note that the location and (exact) division may vary depending on the actual device and application. The source device 12 and the destination device 14 , any type of handheld or stationary device, e.g., a notebook laptop computer, mobile phone, smartphone, tablet or Tablet computers, video cameras, desktop computers, set-top boxes Glasses, televisions, cameras, in-vehicle devices, display devices, digital media Players, video game consoles, video streaming devices (including content services) broadcast server or content distribution server), broadcast receiver device, or broadcast transmitter device The device may include any one of a wide range of devices, including any type of operating device. A routing system may or may not be used.

[0120] The encoder 20 and the decoder 30 may each include any suitable circuit, such as one or more Microprocessors, digital signal processors (DSPs) , application-specific integrated circuit (ASIC), field field-programmable gate array (FPGA), discrete Implemented in any one of a wide variety of logic circuits, hardware, or any combination thereof. If the technology is implemented in part using software, the device The software instructions may be stored in a suitable non-transitory computer-readable storage medium. Use hardware, such as one or more processors, to execute the techniques described herein. The above (including hardware, software, and Any one of the following (including any combination of hardware and software) may operate on one or more processors: It can be seen as a.

[0121] In some cases, the video encoding and decoding system 10 shown in FIG. 1A is merely an example. The technology of the application does not necessarily require any data communication between the encoding device and the decoding device. The present invention is applicable to video coding environments (e.g., video encoding or video decoding) that do not include In other examples, the data may be retrieved from local memory, over a network, The video encoding device may encode the data, stream it, etc. and storing the encoded data in memory and / or The device may retrieve the data from the memory and decrypt the data. The encoding and decoding do not communicate with each other, they simply encode data into memory, but and / or retrieve data from memory and decrypt the data. can be.

[0122] FIG. 1B illustrates an example of an encoder 20 of FIG. 2 and / or a decoder 20 of FIG. 3 according to an example embodiment. 3 shows a diagram of an example video coding system 40 including a decoder 30. 40 may implement a combination of various techniques in embodiments of the present invention. In an implementation, the video coding system 40 includes an imaging device 41, an encoder, 20, the decoder 30 (and / or the video encoder implemented by the logic circuitry 47 of the processing unit 46) a first encoder / decoder, an antenna, one or more processors, one or more memory The input / output device may include a memory 44, and / or a display device 45.

[0123] As shown in FIG. 1B, an imaging device 41, an antenna 42, a processing unit 46, logic The circuit 47, the encoder 20, the decoder 30, the processor 43, the memory 44, and / or the display As will be described, the video coding and ray devices 45 can communicate with each other. Although the video system 40 is shown with an encoder 20 and a decoder 30, in a different example, The encoding system 40 may include only the encoder 20 or may include only the decoder 30. It may or may not include

[0124] In some examples, the antenna 42 transmits an encoded bitstream of video data. In addition, in some examples, a display device may be configured to The logic circuitry 47 may be configured to present video data. , may be implemented by a processing unit 46. The processing unit 46 may be implemented by an application specific integrated circuit (ASIC). lication-specific integrated circuit (ASIC) logic, graphics processing unit, general purpose Video coding system 40 may alternatively include an optional processor. The optional processor 43 may also include an application specific integrated circuit (ASIC). ASIC (application-specific integrated circuit) logic, graphics processing units, general-purpose processors In some examples, logic circuitry 47 may include hardware, e.g., a video processor. This can be implemented by using dedicated hardware for decoding. Processor 43 uses general-purpose software, operating systems, etc. In addition, the memory 44 may be implemented as any type of memory, for example, a volatile memory ( For example, static random access memory (SRAM) , Dynamic Random Access Memory (DRAM), and The memory may be a non-volatile memory (e.g., flash memory). In a non-limiting example, the memory In some examples, logic circuitry 47 may be implemented by a cache memory. In another example, the logic may access the memory 44 (e.g., to implement a picture buffer). The logic circuit 47 and / or the processing unit 46 may include memory for implementing a picture buffer, etc. The storage device may include a storage device (e.g., a cache).

[0125] In some examples, the encoder 20 implemented by logic circuits may include a picture buffer ( This may be implemented, for example, by the processing unit 46 or the memory 44) and the graphics The graphics processing unit may include a graphics processing unit (which may be implemented, for example, by processing unit 46). The fix processing unit may be communicatively coupled to the picture buffer. The processing unit may be any other encoder system as shown in FIG. 2 and / or described herein. To implement the various modules described with reference to the system or subsystem, The encoder 20 may include a logic circuit 47 implemented by the logic circuitry described herein. The device may be configured to perform various operations as described herein.

[0126] In some examples, the decoder 30 may be the decoder 30 of FIG. 3 and / or the decoder 30 described herein. Various embodiments may be described with reference to any other decoder system or subsystem disclosed herein. A similar method may be used to implement the logic circuitry 47 to implement the modules. In this example, the decoder 30 implemented by logic circuits includes a picture buffer (which is unit 2820 or memory 44) and a graphics processing unit (which For example, the graphics processing unit 46 may include a graphics processing unit. The graphics processing unit may be communicatively coupled to a picture buffer. and / or any other decoder system or subsystem described herein. The various modules described with reference to the system are implemented by logic circuitry 47. The decoder 30 may be mounted on the

[0127] In some examples, the antenna 42 receives an encoded bitstream of video data. As will be explained, the encoded bitstream may be With respect to off-frame coding, the data, indicators, Index values, mode selection data, etc., e.g. data on coding categories ( For example, the transform coefficients or quantized transform coefficients, the optional indicators (described below), The video code may include a video coder, a video coder for a video source, and / or a video coder for a video source. The signaling system 40 is further coupled to an antenna 42 for transmitting the encoded bit stream. The display device 45 may include a decoder 30 configured to decode the video. The display device is configured to present a frame.

[0128] In this embodiment of the invention, the inverse of the example described with reference to encoder 20 is performed. It should be understood that the decoder 30 may be configured to include the signaling syntax requirements. For each element, the decoder 30 receives and parses the syntax elements and generates corresponding associated In some examples, the encoder 20 may be configured to decode video data that includes a sequence of The syntax elements may be entropy coded into an encoded video bitstream. In such an example, the decoder 30 parses the syntax elements and generates corresponding associated The video data may be decoded.

[0129] The motion vector prediction method described in the embodiment of the present disclosure is used in inter prediction processing. Note that this process is primarily used in The encoder 20 and the decoder 30 in the embodiment of the present invention are, for example, H. 263, H.264, HEVV, MPEG-2, MPEG-4, VP8, or VP9 video standard protocols, Or it may be an encoder / decoder that supports next-generation video standard protocols (such as H.266). .

[0130] FIG. 2 is a schematic / conceptual block diagram of an example encoder 20 for implementing an embodiment of the present invention. In the example of FIG. 2, the encoder 20 includes a residual calculation unit 204, a transform processing unit 206, a quantization unit 208, and a transform processing unit 209. a dequantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, The buffer 216, the loop filter unit 220, the decoded picture buffer fer, DPB) 230, a prediction processing unit 260, and an entropy coding unit 270. The prediction processing unit 260 includes the inter prediction unit 244, the intra prediction unit 254, and the motion vector prediction unit 260. The inter prediction unit 244 may include a motion estimation unit and a mode selection unit 262. The encoder 20 shown in FIG. Hybrid video encoder or video encoder based on hybrid video codec It can be called a reader.

[0131] For example, the residual calculation unit 204, the transform processing unit 206, the quantization unit 208, the prediction processing unit 209, The processing unit 260 and the entropy coding unit 270 are connected to the forward signal path of the encoder 20. On the other hand, for example, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit unit 214, buffer 216, loop filter 220, decoded picture buffer The DSP (Decoder Prediction Buffer, or DSP) 230 and the Prediction Processing Unit 260 form the backward signal path of the encoder. The reverse signal path of the encoder corresponds to the signal path of the decoder (decoder 30 in FIG. 3). Please refer to.

[0132] The encoder 20 receives, for example, a picture 201 or a picture of the picture 201 via an input 202. A channel block 203, for example a sequence of pictures forming a video or a video sequence. The picture block 203 also receives the picture in the current picture block. A picture 201 may also be called a block or a picture block to be coded. , may be called the current picture or the picture to be coded (particularly the video In coding, the current picture is compared with other pictures, e.g., pictures in the same video sequence. Previously coded and / or decoded pictures in the sequence, i.e. the current picture, (to distinguish from video sequences that include

[0133] In one embodiment, the encoder 20 divides the image into multiple blocks, such as picture block 203. 2. A partition unit (not shown in FIG. 2) configured to partition the picture 201. A picture 201 is typically partitioned into multiple non-overlapping blocks. The same block size for all pictures in a video sequence and the block size Use a corresponding grid to define the size of the image, or Vary the block size between sets or groups and sort each picture into the corresponding block. It may be configured to distinguish between:

[0134] In one example, the prediction processing unit 260 of the encoder 20 may use any of the partitioning techniques described above. The method may be configured to perform a combination of:

[0135] Like picture 201, picture block 203 is a two-dimensional array of samples with sample values. A picture block 203, which may also be or be considered as a ray or matrix The size of the picture block 203 is smaller than the size of the picture 201. In other words, the picture block 203 is For example, one sample array (e.g., luma array for monochrome picture 201) b), three sample arrays (for example, one luma array and two for a color picture) chroma array), or any other quantity and / or amount depending on the applied color format or type array. The amount of samples in one pixel (or axis) defines the size of the picture block 203 .

[0136] The encoder 20 shown in FIG. 2 encodes a picture 201 block by block, e.g. It is configured to perform encoding and prediction on the picture block 203.

[0137] The residual calculation unit 204 performs the following steps to obtain a residual block 205 in the sample domain: For example, a prediction block is generated from the sample values ​​of the picture block 203 for each sample (pixel). The picture block 203 and the prediction block 204 are obtained by subtracting the sample values ​​of the picture block 203 and the prediction block 204. 265 (other details about the prediction block 265 are given below) 205.

[0138] The transform processing unit 206 performs transforms, such as a discrete cosine transform. m, DCT or discrete sine transform (DST) to the residual block 205 The transform coefficients 207 are adapted to be applied to the filter values ​​to obtain transform coefficients 207 in the transform domain. The numbers 207, sometimes called the transformed residual coefficients, represent the residual block 205 in the transformed domain. vinegar.

[0139] The transform processing unit 206 performs integer approximation of DCT / DST, such as the transforms specified in HEVC / H.265. In comparison with the orthogonal DCT transform, such integer approximation is usually scaled by a factor of 1. Using forward and inverse transforms Apply an additional scale factor to preserve the norm of the residual block processed by The scale factor is usually chosen based on some constraints. For example, the scale factor is a power of two for shift operations and the binomial of the transform coefficients. The trade-off is between the bit depth and the accuracy and cost of implementation. The scale factors are then inverse transformed (e.g., by an inverse transform processing unit 212 at the decoder 30 side). and a corresponding inverse transformation by, for example, an inverse transformation processing unit 212 at the encoder 20 side. Conversion) and corresponding scale factors are specified on the side of the encoder 20. The input image may be designated for forward transformation by transform processing unit 206 in the

[0140] The quantization unit 208 may, for example, apply scalar quantization or vector quantization. and quantizing the transform coefficients 207 to obtain quantized transform coefficients 209. The quantized transform coefficients 209 may also be referred to as quantized residual coefficients 209. The process may reduce the bit depth for some or all of the transform coefficients 207. For example, A 1-bit transform coefficient may be truncated to an m-bit transform coefficient during quantization, where n is greater than m. The degree of quantization is controlled by adjusting the quantization parameter (QP). For example, in scalar quantization, the To achieve this, different scales can be applied. A smaller quantization step results in a A quantization step corresponds to a finer quantization, whereas a larger quantization step corresponds to a coarser quantization. The possible quantization steps are indicated by the quantization parameter (QP). For example, the quantization parameter may be a predetermined number of applicable quantization steps. For example, a smaller quantization parameter may be an index into a set of It may correspond to a finer quantization (or a smaller quantization step), and a larger quantization The parameters may correspond to a coarser quantization (larger quantization step), or Quantization may be performed, for example, by the inverse quantization unit 210. This may involve division by a step and a corresponding quantization or dequantization, or In some standards, such as HEVC, this may involve multiplication by a quantization step. , the quantization parameter may be used to determine the quantization step. The steps are based on the quantization parameter by using a fixed-point approximation of the equation involving division. For quantization and dequantization to recover the norm of the residual block, To do this, an additional scale factor may be introduced, and the norm of the residual block is The formula for the quantization parameters is modified by the scale used in the fixed-point approximation. In one example implementation, the scales of the inverse transform and dequantization are combined. Alternatively, customized quantization tables may be used, e.g. The quantization factor may be signaled from the encoder to the decoder in the bit stream. is a lossy operation, and the loss increases with increasing quantization step.

[0141] The inverse quantization unit 210 applies the inverse quantization of the quantization unit 208 to the quantized coefficients to quantize them. Obtain the released coefficients 211 and, for example, quantize them based on the same quantization step as the quantization unit 208. The quantization applied by the quantization unit 208 using or by The dequantized coefficients 211 are also configured to apply the inverse of the quantization scheme. The dequantized residual coefficients 211, which may correspond to the transform coefficients 207, are H.211 usually differs from the transform coefficients due to losses caused by quantization.

[0142] The inverse transform processing unit 212 performs the inverse transform processing to obtain the inverse transform block 213 in the sample domain. , the inverse transform of the transform applied by the transform processing unit 206, e.g., the inverse discrete cosine transform discrete cosine transform (DCT) or inverse discrete sine transform (DCT) , DST). The inverse transform block 213 also applies the inverse transformed dequantized The inverse transformed residual block 213 may also be referred to as the inverse transformed residual block 213 .

[0143] A reconstruction unit 214 (e.g., adder 214) generates a reconstructed block in the sample domain. For example, the sample values ​​of the reconstructed residual block 213 and the prediction The inverse transform block 213 (i.e., The constructed residual block 213 is configured to be added to the prediction block 265 .

[0144] Optionally, a buffer unit 216 (abbreviated as “buffer” 216) may be used, for example, for the line buffer 216. 16) is a block diagram of a reconstructed block 215 and a corresponding sample for, for example, intra-prediction. In another embodiment, the encoder is configured to buffer or store the metric value. is a buffer for any type of estimation and / or prediction, e.g., intra prediction. The unfiltered reconstructed blocks and The input signal may be configured to use the corresponding sample values.

[0145] For example, in one embodiment, the buffer unit 216 may be configured to store only intra prediction 254. 2. It is also used for the loop filter unit 220 (not shown in FIG. 2). and / or configured to store a reconstructed block 215, e.g. For example, the buffer unit 216 and the decoded picture buffer 230 form one buffer. In another embodiment, the encoder 20 may be configured to: 221 and / or decoded picture buffer 230 (blocks or samples are not shown in FIG. 2) The blocks or samples from are input or basis for the intra prediction unit 254. Used as.

[0146] A loop filter unit 220 (or "loop filter" 220 for short) smooths pixel transitions. The reconstructed block 215 may be filtered to improve the quality of the video. The loop is configured to loop through the filtered blocks 221 to obtain the filtered blocks 221. The filter unit 220 includes one or more loop filters, e.g., a deblocking filter. filter, sample-adaptive offset (SAO) filter, or Lateral filter, adaptive loop filter (ALF), sharpening filter , a smoothing filter, or another filter such as a collaborative filter. Although loop filter unit 220 is shown in FIG. 2 as an in-loop filter, it may be implemented in other configurations. In the embodiment, the loop filter unit 220 may be implemented as a post-loop filter. The filtered block 221 is also called the filtered reconstructed block 221. The decoded picture buffer 230 may store the reconstructed encoded picture data from the loop filter unit 220. After performing a filtering operation on the reconstructed block, The lock may be stored.

[0147] In one embodiment, for example, the decoder 30 uses the same loop filter parameters for decoding. The encoder 20 (and correspondingly the loop filter unit 24) receives and applies the The input 220 may, for example, be directly encoded by an entropy encoding unit 270 or any other After the entropy coding is performed by the entropy coding unit of The input / output unit may be configured to output filter parameters (e.g., sample adaptive offset information). do.

[0148] The decoded picture buffer (DPB) 230 stores the video data from the encoder 20. Reference picture memory for storing reference picture data for use in encoding image data - Patents.com The DPB 230 may be a dynamic random access memory. memory, DRAM) (synchronous DRAM, SDRAM, magnetoresistive RAM) MRAM (magnetic random access memory), and resistive RAM (resistive random access memory), or another type of memory device. The DPB 230 and the bus may be formed by any one of a variety of memory devices. The buffer 216 may be provided by the same memory device or a separate memory device. In one example, the decoded picture buffer (DPB) 230 includes a filtering function. The decoded picture buffer 230 is further configured to store the decoded blocks 221. of the same current picture or a different picture, e.g., a previously reconstructed picture, Another previously filtered block, e.g. a previously reconstructed and filtered The block 221 may be configured to store a complete previously reconstructed block, i.e. i.e. the decoded picture (and corresponding reference blocks and samples) and / or partial The reconstructed current picture (and the corresponding reference blocks and samples) can then be In one example, the reconstructed block 215 may be provided for in-loop prediction. If reconstructed without filtering, the decoded picture buffer r, DPB) 230 is configured to store the reconstructed block 215.

[0149] The prediction processing unit 260, also referred to as the block prediction processing unit 260, processes the picture block 203 (the current picture block 203 of the current picture 201) and the reconstructed picture data data, e.g., reference samples of the same (current) picture from the buffer 216, and / or 2, the reference picture of one or more previously decoded pictures from the decoded picture buffer 230. The method is configured to receive or acquire texture data 231 for prediction, i.e., 2 provides a prediction block 265, which may be an intra-prediction block 245 or an intra-prediction block 255. The device is configured to process such data in order to

[0150] The mode selection unit 262 computes the residual block 205 and reconstructs the reconstructed block 215. To construct the prediction block 265, the prediction mode (e.g., intra prediction mode or inter prediction mode) and / or the corresponding prediction block 245 or 2 55 can be selected.

[0151] In an embodiment, the mode selection unit 262 selects a prediction mode (e.g., a prediction from prediction modes supported by processing unit 260, The mode is based on the best match or the smallest residual (smallest residual is better for transmission or storage). or minimal signaling overhead (meaning minimal signaling overhead). nulling overhead means better compression for transmission or storage) , or both. The mode selection unit 262 may: Determine prediction mode based on rate-distortion optimization (RDO) Specifically, we select the prediction mode that results in the smallest rate-distortion optimization, or Select a prediction mode whose rate-distortion at least satisfies a prediction mode selection criterion. It can be configured.

[0152] The following describes in detail, in an example of encoder 20 (e.g., by prediction processing unit 260): The prediction process performed and the mode selection unit 262 This section explains the code selection.

[0153] As explained above, the encoder 20 selects the optimal or optimal prediction mode from a (predetermined) set of prediction modes. is configured to determine or select the best prediction mode. The set of prediction modes may include: For example, this may include intra-prediction and / or inter-prediction modes.

[0154] The set of intra prediction modes includes 35 different intra prediction modes, e.g., DC (or non-directional modes such as (or average) and planar modes, or or 67 different intra prediction modes, For example, non-directional modes such as DC (or average) mode and planar mode, or open This may include directional modes such as those defined in the evolving H.266.

[0155] In one possible implementation, the set of inter prediction modes is determined based on the available reference pictures ( That is, for example, the decoded picture stored in DBP 230 as described above. Depending on the inter prediction parameters (at least a part of the vector) and other inter prediction parameters, e.g., Either the entire reference picture is used to find a matching reference block, or the reference picture is Only a part of the search window, for example the area around the current block, is used. and / or depending on, for example, half pixel interpolation and / or quarter pixel interpolation. It depends on whether pixel interpolation is applied, such as 1-pixel interpolation of the inter prediction mode. The set of codes is, for example, that of Advanced Motion Vector Prediction (AVM). During a particular implementation, the inter- The set of prediction modes includes the AMVP mode based on control points and the improved mode based on the present embodiment. In one example, the intra prediction unit 254 may include a merge mode based on the control points that are may be configured to perform any combination of the inter prediction techniques described below.

[0156] In addition to the aforementioned prediction modes, skip mode and / or direct mode are also included in the present invention. This can also be applied to the above embodiment.

[0157] The prediction processing unit 260 may further include, for example, quadtree (QT) partitioning, binary tree (BTR) partitioning, and the like. Repeated tree (BT) partitioning, triple tree (TT) partitioning, or any combination of these. By using the above, the picture block 203 can be divided into smaller block divisions or sub-blocks. For example, a prediction may be performed for each of the block partitions or sub-blocks. The mode selection can be configured to perform a tree structure of partitioned picture blocks 203. Selection of a prediction mode to be applied to each of the block partitions or sub-blocks Includes.

[0158] The inter prediction unit 244 includes a motion estimation (ME) unit (shown in FIG. 2). 2) and a motion compensation (MC) unit (not shown in FIG. 2). The motion estimation unit estimates the current picture block 203 (current picture block 201). 203) and the decoded picture 231, or at least one or more previously reconstructed pictures. one or more previously decoded blocks, e.g., other / different previously decoded pictures 231 The reconstructed block is configured to receive or obtain the reconstructed block for motion estimation. For example, a video sequence may include a current picture and a previously decoded picture 31. Or, in other words, the current picture and the previously decoded picture 31 may be It may be part of a sequence of pictures forming a video sequence, or may be formed.

[0159] For example, the encoder 20 may select the same or different picture among multiple other pictures. A reference block is selected from the multiple reference blocks of the motion estimation unit (shown in FIG. 2). For a given pixel, the pixel may be a reference picture and / or the location of the reference block (coordinates X and The offset (spatial offset) between the position of the current block and the inter prediction parameters The offset can be configured to provide a motion vector. It is also called MV.

[0160] The motion compensation unit obtains the inter prediction parameters and generates the inter prediction block 245. Based on the inter prediction parameters to obtain The motion compensation unit (not shown in FIG. 2) is configured to perform inter prediction. Motion compensation is performed through motion estimation (possibly with sub-pixel accuracy) Based on the motion / block vectors determined by the Interpolation filtering may involve retrieving or generating known pixel samples. This may generate additional pixel samples from the picture block This increases the amount of prediction block candidates that can be used to code the current picture. Upon receiving the motion vector for the PU of the block, the motion compensation unit 246 The motion compensation unit may specify the prediction block to which the motion vector points in the image list. The block 246 further includes a plurality of blocks for decoding the picture blocks of the video slice by the decoder 30. For this purpose, the processor may generate syntax elements associated with the blocks and video slices.

[0161] Specifically, the inter prediction unit 244 converts the syntax elements into an entropy coding unit. The syntax elements may be sent to the unit 270 to indicate inter prediction parameters (multiple inter prediction parameters). The inter prediction mode used for predicting the current block after exhausting all inter prediction modes. In one possible application scenario, only one interface is used. If prediction mode is present, the inter prediction parameters are instead carried in the syntax element In this case, the decoder 30 directly performs decoding in the default prediction mode. The inter prediction unit 244 may perform any combination of inter prediction techniques. It can be understood that the present invention can be configured to

[0162] The intra prediction unit 254 predicts the picture block 203 (the current picture block) and the One or more previously reconstructed blocks of the same picture, e.g., a reconstructed neighbor The apparatus is configured to obtain, for example receive, a border block for intra estimation. For example, the encoder 20 may select an intra-prediction mode from a plurality of (predetermined) intra-prediction modes. The device may be configured to select

[0163] In one embodiment, the encoder 20 may, for example, select the minimum residual (e.g., (Intra prediction mode) which provides a prediction block 255 that is most similar to the vector block 203; selects the intra prediction mode according to an optimization criterion based on the minimum rate distortion. It can be configured as follows.

[0164] The intra prediction unit 254 further performs, for example, a prediction for the selected intra prediction mode. and determining an intra prediction block 255 based on the intra prediction parameters. In either case, after selecting the intra prediction mode for a block, the intra prediction The intra prediction unit 254 further generates intra prediction parameters, i.e., the selection providing information to the entropy encoding unit 270 indicating the selected intra-prediction mode; In one example, the intra prediction unit 254 may be configured to perform any of the intra prediction techniques. The method may be configured to perform a combination of:

[0165] Specifically, the intra prediction unit 254 converts the syntax elements into an entropy coding unit. The syntax elements may be sent to the unit 270 to indicate intra prediction parameters (multiple intra prediction parameters). The intra prediction mode used for prediction of the current block after exhausting all the intra prediction modes. In one possible application scenario, only one intra-prediction If the prediction mode is present, the intra prediction parameters are alternatively carried in the syntax element In this case, the decoder 30 directly performs decoding in the default prediction mode. This may be done.

[0166] The entropy encoding unit 270 uses an entropy encoding algorithm or scheme ( For example, variable length coding (VLC) schemes, context Context adaptive VLC (CALVC) scheme, arithmetic coding scheme, context Context Adaptive Binary Arithmetic Coding (CABA) C), Syntax-based Context-Adaptive Binary Arithmetic Coding ext-adaptive binary arithmetic coding (SBAC), probability interval partition entropy ty interval partitioning entropy (PIPE) coding, or another entropy code quantization method or technique) for the quantized coefficients 209, inter prediction parameters, intra prediction parameters, and / or loop filter parameters. (or skip application) and output 272, e.g. in the form of an encoded bitstream 21. The decoder 10 is adapted to obtain coded picture data 21 which can be output via a coder 102. The encoded bitstream is sent to the video decoder 30 or The entropy encoded data may be archived for later transmission or retrieval by The block 270 further defines another syntax requirement for the current video slice being coded. The matrix may be configured to entropy code the elements.

[0167] Another structural variation of the video encoder 20 is to use a For example, the non-transform-based encoder 20 may directly use some blocks or For a frame, the residual signal can be quantized without the transform processing unit 206. In this implementation, the encoder 20 includes quantization units that are combined into a single unit. 208 and an inverse quantization unit 210 .

[0168] Specifically, in this embodiment of the present invention, the encoder 20 is The motion vector prediction method may be configured to implement the motion vector prediction method described above.

[0169] Another structural variation of the video encoder 20 is to use a For example, a portion of a picture block or a picture For each frame, video encoder 20 may directly quantize the residual signal, or a transform processing unit may No processing by the inverse transform processing unit 212 is required. Alternatively, for some picture blocks or picture frames, Therefore, video encoder 20 does not generate residual data, and correspondingly, transform processing unit 20 6. Processing by the quantization unit 208, the inverse quantization unit 210, and the inverse transform processing unit 212 Alternatively, video encoder 20 may refer to the reconstructed picture blocks. Alternatively, the RGB values ​​may be stored directly as a reference block, without requiring processing by the filter 220. In addition, the quantization unit 208 and the inverse quantization unit 210 in the video encoder 20 are combined The loop filter 220 is optional and may be used in the case of lossless compression coding. , a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, and an inverse transform processing unit The inter prediction unit 244 may be used in different application scenarios. And it should be understood that the intra prediction unit 254 may be selectively enabled.

[0170] FIG. 3 is a schematic / conceptual block diagram of an example decoder 30 for implementing embodiments of the present invention. To obtain the decoded picture 231, the video decoder 30 performs, for example, The encoded picture data (e.g., encoded In the decoding process, the video decoder 20 receives a bitstream (a bitstream) 21. The coder 30 receives the video data from the video encoder 20, e.g., the encoded video stream. A coded video bitstream representing a picture block of a rice, and related The URI receives syntax elements that correspond to the

[0171] In the example of FIG. 3, the decoder 30 includes an entropy decoding unit 304, an inverse quantization unit 310, An inverse transform processing unit 312, a reconstruction unit 314 (e.g., an adder 314), a buffer 316, a loop The prediction processing unit 360 includes a decoded picture filter 320, a decoded picture buffer 330, and a prediction processing unit 360. The processing unit 360 includes an inter prediction unit 344, an intra prediction unit 354, and a mode prediction unit 366. In some examples, the video decoder 30 may include the video encoder 30 of FIG. A decoding process may be performed that is generally the inverse of the encoding process described with reference to coder 20 .

[0172] The entropy decoding unit 304 may, for example, quantize the coefficients 309 and / or decode the 3, the coding parameters (not shown in FIG. 3), e.g., inter-prediction parameters , intra prediction parameters, loop filter parameters, and / or other (decoded) To obtain any one or all of the syntax elements of It is configured to perform entropy decoding on the picture data 21. The decoding unit 304 further receives inter prediction parameters, intra prediction parameters, and / or or other syntax elements to the prediction processing unit 360. The video decoder 30 performs syntax analysis at the video slice level and / or at the video block level. The TX element may be received.

[0173] The inverse quantization unit 310 may have the same function as the inverse quantization unit 110. The inverse transform processing unit 312 may have the same function as the inverse transform processing unit 212. The building unit 214 may have the same functions as the buffer 216. The loop filter 320 may have the same functions as the loop filter 220. The picture buffer 330 may have the same functions as the decoded picture buffer 230.

[0174] The prediction processing unit 360 processes the inter prediction unit 344 and the intra prediction unit 354. The function of the inter prediction unit 344 is similar to that of the inter prediction unit 244. The function of the intra prediction unit 354 may be similar to that of the intra prediction unit 254. Prediction processing unit 360 typically performs block prediction and / or coding. A prediction block 365 is obtained from the decoded data 21, for example, by an entropy decoding unit 3 04, receive forecast-related parameters and / or information for the selected forecast mode. The device is configured to receive or obtain (explicitly or implicitly)

[0175] When a video slice is coded as an intra-coded (I) slice, the prediction process The intra prediction unit 354 of the processing unit 360 receives the signaled intra prediction mode and and based on data from previously decoded blocks of the current frame or picture. , to generate a prediction block 365 for a picture block of the current video slice. Video frames are coded as inter-coded (B or P) slices. When the prediction processing unit 360 performs the prediction process, the inter prediction unit 344 (e.g., the motion compensation unit 3) is another syntax received from the motion vector and entropy decoding unit 304. 3, based on the prediction elements, a prediction block 365 for a video block of the current video slice. For inter prediction, the prediction block is generated based on one reference picture. The DPB 330 may be generated from one of the reference pictures in the DPB 330. By using a default construction technique based on the reference pictures stored in the A reference frame list may be constructed: list0 and list1.

[0176] Prediction processing unit 360 parses the motion vectors and other syntax elements to Thus, predictive information for a video block of the current video slice is determined, and the predictive information is to generate a prediction block for the current video block being decoded using In the present example, the prediction processing unit 360 performs a prediction process on the video of the current video slice. By using some received syntax elements to decode the block. Accordingly, a prediction mode (e.g., an interleaved prediction mode) for encoding a video block of a video slice may be selected. Prediction or Inter prediction), Inter prediction slice type (e.g. B slice, P slice, slice, or GPB slice), one of the reference pictures in the slice's reference picture list, or A plurality of construction information, a motion vector for each inter-coded video block of a slice, vector, the inter prediction status of each inter coded video block of the slice In another example of the present disclosure, a video decoder determines the bitstream and other information. The syntax elements received by the decoder 30 are the adaptive parameter sets. APS, sequence parameter set (SPS), picture One of the following: picture parameter set (PPS) or slice header It contains syntax elements in one or more.

[0177] The inverse quantization unit 310 is provided in the bitstream and is The quantized transform coefficients decoded by the decoder 304 are subjected to inverse quantization. The inverse quantization (i.e., dequantization) of the The quantization process determines the degree of quantization to be applied, and similarly the degree of dequantization to be applied. A video encoder may be provided for each video block in the video slice to determine a degree of the video block. This may include using a quantization parameter calculated by

[0178] The inverse transform processing unit 312 performs an inverse transform to generate a residual block in the pixel domain. A transform (e.g., an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process) is applied to the transform coefficients. It is configured to apply.

[0179] A reconstruction unit 314 (e.g., adder 314) generates a reconstructed block in the sample domain. For example, the sample values ​​of the reconstructed residual block 313 and the prediction The inverse transform block 313 (i.e., The constructed residual block 313 is configured to be added to the prediction block 365 .

[0180] The loop filter unit 320 (either during the coding loop or after the coding loop) After the pixel transition is smoothed or the video quality is improved, the Filter the constructed block 315 to obtain the filtered block 321. In one example, the loop filter unit 320 is configured to The loop filter unit may be configured to perform any combination of filtering techniques. The filter 320 may include one or more loop filters, such as a deblocking filter, a sampling filter, Sample-adaptive offset (SAO) filter or bilateral filter filter, adaptive loop filter (ALF), sharpening filter, smoothing filter The loop filter is intended to represent another filter, such as a Although the filter unit 320 is shown in FIG. 3 as an in-loop filter, in other configurations it may be implemented as an in-loop filter. The filter unit 320 may be implemented as a post-loop filter.

[0181] The decoded video block 321 in a given frame or picture is then The decoded picture buffer 330 stores reference pictures used for motion compensation. can be.

[0182] The decoder 30 may, for example, output 332 for presentation to or viewing by a user. 3 to obtain the decoded picture 31 via

[0183] Another variation of the video decoder 30 is used to decode the compressed bitstream. For example, the decoder 30 may generate output video bits without the loop filter unit 320. For example, the non-transform-based decoder 30 may directly generate some blocks Or for a frame, the residual signal can be inverse quantized without the inverse transform processing unit 312. In another implementation, the video decoder 30 is combined into a single unit. It may have an inverse quantization unit 310 and an inverse transform processing unit 312 .

[0184] Specifically, in this embodiment of the present invention, the decoder 30 It is adapted to implement the motion vector prediction method described.

[0185] Another structural variation of the video decoder 30 is to decode the encoded video bitstream. For example, the video decoder 30 may be configured to include a filter 320 to generate the output video bitstream without processing by 320. Alternatively, For a picture block or picture frame, the entropy decoding unit of the video decoder 30 The unit 304 does not obtain quantized coefficients through decoding, and correspondingly, the dequantization unit No processing by the loop filter 320 or the inverse transform processing unit 312 is required. is optional, and in the case of lossless compression, the inverse quantization unit 310 and the inverse transform processing unit 3 12 is optional. According to different application scenarios, the inter prediction unit and the intra prediction unit It should be appreciated that the prediction units may be selectively enabled.

[0186] In the encoder 20 and decoder 30 of this application, the processing results of the procedure are further processed. It should be understood that the input signal may be filtered and then output to the next step. For example, interpolation filtering, After steps such as motion vector derivation or loop filtering, clipping or shifting Further operations such as shift are performed on the processing results of the corresponding procedures.

[0187] For example, the motion vector or the neighboring affine code of the control point of the current picture block. of the sub-blocks of the current picture block derived from the motion vector of the The motion vectors may be further processed, which is not a limitation of this application. For example, The values ​​of the vectors are constrained to be within a certain bit depth range. Assuming the bit depth being used is bitDepth, the value of the motion vector is -2^(bitDepth-1 ) to 2^(bitDepth-1)-1, where the symbol "^" represents the exponent. If bitDepth is 16, the value ranges from -32768 to 32767. If bitDepth is 18, values ​​range from -131072 to 131071 In another example, the maximum difference between the integer parts of the MVs of four 4x4 sub-blocks is greater than N pixels. The motion vectors (for example, one 8x8 picture) should not exceed one pixel. The values ​​of the motion vectors (MV) of the four 4x4 sub-blocks within the block are constrained.

[0188] To constrain the motion vector values ​​to be within a certain bit depth range, The following scheme can be used.

[0189] Method 1: The overflow most significant bit of the motion vector is stripped. ux=(vx+2 bitDepth )%2 bitDepth vx=(ux>=2 bitDepth-1 )?(ux-2 bitDepth ):ux uy=(vy+2 bitDepth )%2 bitDepth vy=(uy>=2 bitDepth-1 )?(uy-2 bitDepth ):uy

[0190] vx is the motion vector of a picture block or the horizontal vy is the motion vector of a picture block or a subblock of a picture block. The vertical component of the block. ux and uy are intermediate values. bitDepth represents the bit depth.

[0191] For example, the value of vx is -32769, and 32767 is obtained according to the formula above. The value is in two's complement and the two's complement representation of -32769 is 1,0111,1111,1111,1111 (17 digit), and the action taken by the computer for overflow is to Therefore, the value of vx is 0111,1111,1111,1111, or 32767. This value is consistent with the results obtained through processing according to the formula.

[0192] Method 2: Clipping is performed on the motion vectors according to the following formula: vx=Clip 3(-2 bitDepth-1 ,2 bitDepth-1 -1,vx) vy=Clip 3(-2 bitDepth-1 ,2 bitDepth-1 -1,vy)

[0193] vx is the motion vector of a picture block or the horizontal vy is the motion vector of a picture block or a subblock of a picture block. x, y, and z represent the vertical components of the MV clamping process Clip 3. corresponds to the force value. Clip 3 is defined to indicate clipping of z values ​​to the range [x,y] .

[0194]

number

[0195] FIG. 4 illustrates a video coding device 400 (e.g., FIG. 4 is a schematic diagram of the structure of a video encoding device 400 or a video decoding device 400. The reading device 400 is suitable for implementing the embodiments described herein. In an embodiment, video coding device 400 includes a video decoder (e.g., 1A) or a video encoder (e.g., encoder 20 of FIG. 1A). In another embodiment, video coding device 400 may be implemented as decoder 30 of FIG. 1A or decoder 30 of FIG. A may be one or more components of encoder 20 of A.

[0196] The video coding device 400 includes an inlet port 410 for receiving data and a receiver A machine unit (Rx) 420, a processor, logic unit, or central processing unit for processing data. a processor (CPU) 430, a transmitter unit (Tx) 440 for transmitting data and an egress port 450; and a memory 460 for storing data. Further, for the input and output of optical or electrical signals, there is an inlet port 410, a receiver unit 420, a transmitter The photoelectric conversion components and the photoelectric conversion components are coupled to the photoelectric conversion unit 440 and the exit port 450. It may include an electro-optic (EO) component.

[0197] The processor 430 is implemented using hardware and software. The processor 430 may include one or more CPU chips, cores (e.g., a multi-core processor). The processor 430 may be implemented as an ingress port 410, a reception port 420, a reception signal processing unit (PCM), a reception signal processing unit (GPA), a reception signal processing unit (ASIC), and a reception signal processing unit (DSP). The processor 410 is in communication with a receiver unit 420, a transmitter unit 440, an exit port 450, and a memory 460. The processor 430 may include a coding module 470 (e.g., an encoding module 470 or a decoding module 470). The encoding / decoding module 470 is provided in the embodiment of the present invention. To implement the chroma block prediction method described herein, For example, the encoding / decoding module 470 may perform processing or may include various codecs. Thus, the encoding / decoding module 470 provides a video coding It brings significant improvements to the functionality of the device 400 and allows the video coding device to adapt to different conditions. Alternatively, the encoding / decoding module 470 may be configured to encode the 4. The program may be implemented as instructions stored in and executed by processor 430.

[0198] The memory 460 may be one or more disks, tape drives, and solid-state drives. Live and store programs when such programs are selected for execution for storing instructions and data to be read during program execution The memory 460 may be used as an overflow data storage device for The memory may be nonvolatile and / or non-volatile, read only memory (ROM), random access RAM, ternary content-addressable memory (TCAM), and / or or a static random access memory (SRAM).

[0199] FIG. 5 illustrates a block diagram of the source device 12 and the destination device 12 of FIG. 1A, in accordance with an example embodiment. 1 is a simplified block diagram of an apparatus 500 that may be used as either or both of devices 14. 5 is a diagram of an apparatus 500 that may implement the technology of the present application. Encoding or Decoding Device (Shortly Coding Device 500) According to an Embodiment 5 is a schematic block diagram of an implementation of a coding device 500. The processor and the memory may include a bus system 530 and a bus system 550. The memory is configured to store instructions. The processor is connected to the memory. The memory of the coding device is configured to execute instructions stored therein. The processor stores the various video encoding or In order to perform the above-mentioned decoding methods, particularly various new inter-prediction methods, the above-mentioned methods are stored in a memory. To avoid repetition, the details are not described here. I can't.

[0200] In this embodiment of the present application, the processor 510 is a Central Processing Unit. The processor 510 may be a general-purpose processor, digital Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable FPGAs, also known as programmable logic devices, and discrete gate arrays transistor logic devices, discrete hardware components, etc. The general purpose processor may be a microprocessor or a The processor may be any conventional processor or the like.

[0201] The memory 530 may be a read-only memory (ROM) device or a random access memory (RAM) device. Alternatively, any other suitable type of storage device may be included in the memory. 530. The memory 530 can be accessed by the processor 510 through a bus 550. The memory 530 may further include code and data 531 that is executed by the operating system. The application program 533 may include an application program 535. 5 is a video encoding or decoding method described in the present application (specifically, A small number of steps enabling the processor 510 to execute the motion vector prediction method described in For example, application program 535 includes at least one application program. The present application may further include video encoding or is a video encoding or decoding application (briefly) used to implement the decoding method. video coding applications).

[0202] In addition to the data bus, the bus system 550 also includes a power bus, a control bus, a status signal bus, and However, for clarity of explanation, the various types in the figures may include The bus is marked as bus system 550.

[0203] Optionally, coding device 500 further comprises one or more output devices, e.g. For example, the display 570 may include a display and a timer. and a touch sensing unit operable to sense touch input. The display 570 is connected to the processor 510 through the bus 550. It is possible.

[0204] Both the apparatus or device shown in FIG. 4 and FIG. 5 are used in the method according to the embodiment of the present application. The method may be configured to perform the following steps:

[0205] As explained above, inter prediction is an important part of video encoding and decoding systems. minutes.

[0206] In HEVC, Advanced Motion Vector Prediction (AMVP) mode is used. Two inter prediction modes are introduced: Inter Prediction Mode and Merge Mode.

[0207] In AMVP mode, the motion vector candidate list is first spatially aligned to the current coding unit. based on motion information of adjacent coded units, The best motion vector is then determined from the motion vector candidate list and applied to the current coding. It is used as a motion vector predictor (MVP) for the coding unit. The rate-distortion cost is calculated according to equation (1), where J represents the rate-distortion cost (RD Cost) and SAD is obtained through motion estimation performed by using motion vector candidate predictors. The sum of absolute differences between the original pixel value and the predicted pixel value is called the sum of absolute differences (Sum of Absolute Differences). iffferences (SAD), R represents the bit rate, and λ represents the Lagrange multiplier. The coder sends the reference frame index value and the motion vector candidate list to the decoder. The index of the motion vector predictor selected based on the rate-distortion cost in In addition, we obtain the actual motion vector for the current coding unit. To achieve this, motion search is performed in the neighboring regions of the MVP center. The difference between the motion vector and the motion vector (Motion vector difference, MVD) is then transmitted to the decoder side. J = SAD + λR (1)

[0208] In merge mode, the motion information candidate list is first merged with the current coding unit using the spatially related or based on the motion information of temporally adjacent coded units, Then, the best motion information is determined from the motion information candidate list based on the rate-distortion cost. The first candidate in the motion information list is used as the motion information of the current coding unit. The index value of the position of the suitable motion information (referred to as the merge index, hereinafter the same) is Transmitted to the decoder side. Spatial and temporal motion information of the current coding unit The candidates are shown in FIG. 6. The spatial motion information candidates are five spatial neighboring blocks (A0, A1, B0, B1 , and B2). If the neighboring blocks are unavailable or the intra-code If the block is in the staging or intra block copy mode, the neighboring blocks are , the current coding unit's temporal motion information candidate list is not added to the motion information candidate list. is the picture order count of the reference frame and the current frame. Based on the POC, the MV of the block at the same position in the reference frame is scaled. The determination of the co-located block is obtained by It first determines whether a block in the reference frame is available and its position in the reference frame. If the block at position T is unavailable, the block at position C is replaced by the block at the same position. and selecting the selected item as a check.

[0209] During inter prediction in HEVC, we obtain the predicted values ​​of pixels within a coding unit. In order to achieve this, all pixels in a coding unit must have the same motion information. However, motion compensation is performed based on the assumption that Therefore, not all pixels necessarily have the same motion characteristics. Predicting every pixel in a CU by using the same motion information improves the accuracy of motion compensation. may be reduced and the residual information may be increased.

[0210] To further improve coding efficiency, some possible implementations A coding unit is divided into at least two coding subunits, and each coding The motion information of the coding subunit is derived, and the motion information of the coding subunit is Motion compensation is then performed on the image, which improves the accuracy of the prediction. Sub-CU based motion vector prediction (SMVP) technology Techniques are used.

[0211] According to SMVP, the current coding unit is a coding subunit with size M × N. The motion information of each coding subunit is derived, and then To obtain the prediction value of the current coding unit, By using the motion information, motion compensation is performed.

[0212] Based on the SMVP technique, one or two types of motion information candidates, namely, evolving time motion Advanced temporal motion vector prediction (ATMVP) and / or empty Spatial-temporal motion vector prediction (STMVP) is a The predicted motion information candidate list is added to the predicted motion information candidate list of the current mode. The list is a subblock-based merging candidate list. It is also called st.

[0213] In some possible implementations, the sub-block based merge candidate list is P prediction mode, affine model-based prediction mode (inherited control point motion vectors are used) and / or a prediction method in which a constructed control point motion vector is used) , INTER PLANAR prediction modes.

[0214] As shown in FIG. 7, according to the ATMVP technique, a collocated reference frame is created. The current coding unit is then scaled to a size of M×N. Each current coding subunit is divided into coding subunits having a of the coding subunits that correspond to and are in the same position in the reference frame The motion information of the pixel at the center position is obtained, scaled, and applied to the current coding. The motion information of the sub-block is converted into motion information of the motion vector. Also called subblock-based temporal motion vector prediction (SbTMVP) .

[0215] According to the STMVP technique, the spatial neighbors of each current coding subunit are The motion information at the left spatial neighbor and the motion information at the right temporal neighbor are The motion information at the adjacent positions is obtained, the average of the motion information is calculated, and the current coding sub-segment is generated. As shown in Figure 8, the current coding unit The fragment is divided into four coding subunits, A, B, C, and D. A is an example. The motion information of coding subunit A is used as the spatial neighbors c and Using the motion information at d and the motion information at position D in the same position reference frame, It is derived by:

[0216] After the SMVP technique is used, the ATMVP motion information candidates and the STMVP motion information candidates are merged in the merge mode. In this case, the encoding process in merge mode is It will look like this.

[0217] (1) Sequentially obtain motion information at spatially adjacent positions A1, B1, B0, and A0, and Check the availability of movement information in the The motion information that is not removed is inserted into the motion information candidate list.

[0218] (2) By using ATMVP and STMVP technologies, the corresponding motion information is obtained and utilized. Check the availability of the obtained motion information to remove duplicates, Optionally, duplicate entries are removed and the available non-removed motion information is added to the motion information candidate list. Insert it into the store.

[0219] (3) When the length of the motion information candidate list is less than 6, obtain the motion information at the position B2; Check availability of motion information, optionally remove duplicate entries, and If possible and not removed, insert the motion information into the motion information candidate list.

[0220] (4) Obtain the motion information of the block corresponding to the position T in the adjacent coded frame. (If no motion information exists, the motion information of the block corresponding to position C is obtained.) Scaling is performed based on the POC relationship between the coded frame to be encoded and the current frame. and inserting the scaled motion information into the motion information candidate list.

[0221] (5) If the length of the motion information candidate list is less than 7, a motion information candidate list having a length of 7 is To obtain the motion information, the motion information to be filled is either 0 or a pre-agreed value. The motion information may be obtained in a different manner. This is not limited to the above.

[0222] (6) Scan each candidate motion information in the candidate motion information list to obtain a reconstructed value. Then, we perform motion compensation and reconstruction to obtain the rate-distortion cost (RDC). ost, RD cost) to obtain the merge index corresponding to the motion information candidate with the smallest Then, according to the rate-distortion optimization (RDO) method, the RD cost is optimized. The motion information candidate that is the smallest is determined.

[0223] (7) Include the merge index in the bitstream based on the length of the motion candidate list. Write and transfer the bitstream to the decoder side.

[0224] By using the ATMVP technique, inter prediction is performed for the currently processed picture. The process of performing the measurement is mainly performed by dividing the current block to be processed in the current picture to be processed. determining an offset motion vector of the current block to be processed; Based on the position and offset motion vector of the sub-block to be processed in Co-located sub-block of the sub-block to be processed in the co-located reference picture determining a motion vector of a currently processed sub-block based on the motion vector of the co-located sub-block; determining a motion vector of a sub-block to be processed; To obtain the predicted pixel value of the subblock, the motion vector of the subblock to be processed is calculated. performing motion compensation prediction for the sub-block to be processed based on the rule; Includes.

[0225] Specifically, as shown in FIG. 9, in one possible implementation, the method includes the following steps: Includes top.

[0226] S901: An offset motion vector is obtained.

[0227] The offset motion vector is a point at a preset position in the current CU (i.e. , the current CU to be processed, or the block to be processed, the block to be coded, The picture to be decoded corresponds to the co-located picture (coloc The spatial neighborhood of the current CU is used to determine the location of a point in the quantized picture. The motion vector of the block may be used as the offset motion vector. The picture at the same position of the frame to be placed is obtained by parsing the bitstream. It may be a picture with a preset value (all The preset value is the same on the encoder and decoder sides. The picture at position 1 is added to the current CU's reference frame list by its reference frame index. In some possible implementations, the same The position of the current CU in the picture block of position is also determined by the offset motion vector and The block at that location may be determined based on the picture block at the same location. They may also be called one-position blocks (corresponding / co-located blocks).

[0228] For example, offset motion vectors can be calculated using one of the following methods: It can be obtained by:

[0229] Method 1: Determine whether the motion vector of A1 in FIG. 6 is available. The availability of vectors means that motion vectors exist and can be obtained. For example, when there is no neighboring block, the neighboring block and the current blocks are in the same coding region (e.g., slice, tile, or When the frame is not in a tile group or when using intra prediction mode or Intra block copy mode (IBC) is used for neighboring blocks. When the inter prediction mode is set, the motion vectors of the neighboring blocks are not available. When inter prediction mode is used for neighboring blocks, or when inter prediction mode is used for neighboring blocks, If the neighboring block and the current block are in the same coding region, At this time, the motion vectors of the neighboring blocks are available.

[0230] In intra-block copy mode, the intra-block copy coding tool: Extensions to the HEVC screen content coding standard (SCC) It is used in standards to improve the coding efficiency of screen content video. Mostly used. IBC mode is a block-level coding mode. Encoder On the other hand, to find the optimal block vector or motion vector for each CU, In this specification, the motion vector is mainly calculated from the current block to the It is used to represent the displacement to the reference block and is called the displacement vector. A reference block is a reconstructed block in the current picture. The mode is a third prediction mode other than an intra prediction mode or an inter prediction mode. In order to save storage space and reduce decoder complexity, several In some implementations, the IBC mode is implemented by reconstructing the current CTU within a predefined region. Only the portion that has been filtered out is allowed to be used for prediction.

[0231] When A1 is unavailable, the zero motion vector is used as the offset motion vector for the current CU. A tor can be used.

[0232] A1 is a first directional motion vector based on the first reference frame list 0 and a second reference frame list 10. It is assumed that the second directional motion vector is based on frame list 1.

[0233] When A1 is available, if A1 satisfies all of the following conditions (1) to (5), The second directional motion vector of A1 based on The conditions are as follows:

[0234] (1) The reference frames in List 1 are used by A1 for prediction.

[0235] (2) The reference frame in list 1 of A1 used for prediction is the frame in which the current CU is located. It is the same as the picture at the same position in the image frame.

[0236] For example, if the POC of the reference frame in List 1 is the same as the POC of the image frame where the current CU is located, It may be determined whether the POC of the picture at one position is the same as that of the picture at the same position. Information representing can be obtained by parsing the bitstream.

[0237] (3) A low-latency coding structure is used, specifically, the encoding / decoding / processing All reference frames of the picture to be coded / decoded / processed must appear before the picture being coded / decoded / processed. can be.

[0238] (4) The picture type of the picture in which the current CU is located is a B picture, and the current CU is located The tile to be moved is the B tile, or the tile group in which the current CU is located. is the B tile group.

[0239] (5) The picture at the same position as the picture where the current CU is located is obtained from list 1. For example, the syntax element collocated_from_l0_flag has a value of 0.

[0240] Alternatively, A1 is available but does not meet at least one of the above conditions. If A1 satisfies the following conditions (6) and (7), the first directional movement of A1 based on List 0 shall be The offset motion vector is used as the offset motion vector for the current CU. The conditions are as follows: be.

[0241] (6) The reference frames in list 0 are used by A1 for prediction.

[0242] (7) The reference frame in list 0 of A1 used for prediction is the frame in which the current CU is located. It is the same as the picture at the same position in the image frame.

[0243] Method 2: The first available neighbor block in the sequence of A1, B1, B0, and A0 in FIG. The reference frame of the neighboring block is the frame where the current CU is located. If the picture is the same position in the frame, i.e., the motion vector found is the same position, If the motion vector of the neighboring block points to the picture of the current CU, the motion vector of the neighboring block is offset by the motion vector of the current CU. Instead, the reference frame of the neighboring blocks is used as the vector. If the picture is not the same picture in the frame in which it is located, then in one possible implementation, The offset motion vector of the current CU may be used as the offset motion vector of the current CU. In a possible implementation, the motion vector of the first available neighboring block is the POC of the picture in which the current CU is located, the reference frame of the first available neighboring block, The motion vectors are scaled based on the POC of the frame, so the scaled motion vectors are the same. The scaled motion vector points to the picture at the current CU's offset. The specific scaling method is described in the prior art. A method for obtaining a temporal motion vector by using the Please refer to the Kehring method, details will not be explained.

[0244] When the offset motion vector is a zero motion vector, the Therefore, the picture block at the same position as the current CU is the same as the current CU in the picture at the same position. It should be understood that these are blocks in the same position.

[0245] The offset motion vector of the current CU that satisfies the condition is obtained by using the method described above. When the motion vectors of the subblocks of the current CU cannot be obtained, the motion vectors of the subblocks of the current CU are predicted using the ATMVP prediction mode. The information is not acquired through the use of

[0246] S902: Determine whether ATMVP mode is available based on offset motion vector. Make a decision.

[0247] Specifically, the position of the point corresponding to the preset position in the current CU is the same as the preset position. A point in the picture of a picture block is a subblock S, and the coordinates of the subblock S The position is (x col ,y col ). For example,

[0248]

number

[0249] (x,y) represents the coordinates of the top left corner of the current CU, W represents the width of the current CU, and H represents the height of the current CU. represents the size, and (x off ,y off ) represents the offset motion vector.

[0250] The prediction mode of the subblock S is the intra prediction mode or the intra block copy mode. If so, it is determined that the ATMVP mode is available, and step 902 and subsequent steps are performed. No backup is performed.

[0251] When the prediction mode of subblock S is inter prediction mode, ATMVP mode is available. Furthermore, the motion information of the sub-block S, specifically, the coordinate position (x col ,y col ) is obtained and determined as the initial default motion vector.

[0252] To obtain the default motion vector (MV) of the sub-block to be processed, an initial The default motion vector MV is scaled.

[0253] For example, as shown in FIG. 10, the MV can be obtained according to equation (3).

[0254]

number

[0255] CurPoc represents the POC of the frame in which the current CU is located, and ColPoc represents the POC of the picture in the same position. CurRefPoc represents the POC of the reference frame of the current CU, and ColRefPoc represents the POC of the subblock S. Represents the POC of the reference frame.

[0256] MV includes a horizontal motion vector MVx and a vertical motion vector MVy. The vertical scaled motion vector MVsx and the vertical scaled motion vector It should be understood that the MVsy can be obtained separately through calculation according to the above formula.

[0257] S903: Based on the motion information of the co-located sub-block, select the sub-block to be processed. The motion information of the

[0258] For example, as shown in FIG. 11, the block to be processed, i.e., the current CU, The block to be processed is located in the picture and contains four sub-blocks, one processing The subblock to be processed is the upper left subblock of the block to be processed. In this case, the sub-block at the top left position in the co-located picture is the sub-block to be processed. A different co-located sub-block may be determined as a co-located sub-block of the same sub-block. The block may exist as one co-located block as a whole, or may be divided into separate sub-blocks. It should be understood that the lock may also be present.

[0259] For example, motion information corresponding to the geometric center positions of the co-located sub-blocks is obtained. Specifically, the (i,j)th sub-block to be processed (i.e., the left From the right, it is the i-th subblock, from the top to the bottom, it is the j-th subblock The center position (x (i,j) ,y (i,j) ) can be obtained according to equation (4).

[0260]

number

[0261] (x,y) represents the coordinates of the top left corner of the current CU, and M represents the width of the sub-block to be processed. , H represents the height of the sub-block to be processed.

[0262] A prediction mode of the picture block in which the center position is located is determined.

[0263] When the prediction mode of the picture block is the inter prediction mode, the motion at the center position is A motion vector is available and the motion vector at that position is obtained. To obtain the motion vector of the sub-block to be processed, the sub-block to be processed is located at The temporal relationship between the image frame in which the sub-block is located and the image frame in which the sub-block is located Based on the relationship, a scaling operation is performed on the motion vector. The method of calculation is the same as that in formula (2). For example,

[0264]

number

[0265] MV represents the motion vector at the center position, and MV R is the movement of the subblock to be processed Represents a vector.

[0266] In one possible implementation, the POC of the reference frame of the current CU, CurRefPoc, is The frame index is 0 in the reference picture list of the frame in which the current CU is located. It can be preset to the POC of the reference frame, which is

[0267] Alternatively, CurRefPoc may be used to indicate another picture in the reference picture list of the frame in which the current CU is located. It should be understood that this is not a limitation.

[0268] The prediction mode of the picture block is an intra prediction mode or an intra block copy mode. When the motion vector at the center position is unavailable, the motion vector at the center position is not available. The default motion vector (MV) of the sub-block to be processed is determined by the is used as the motion vector for the sub-block to be processed.

[0269] S904: To obtain a predicted pixel value of the current CU, a sub-block of the current CU is The motion compensation is performed based on the motion information.

[0270] For each subblock, the motion vector is calculated to obtain the predicted pixel value of the subblock. The compensation is performed by using the motion vector determined in step 903 and the pixel in which the current CU is located. The reference frame of the channel, e.g., the motion vector MV R and based on the reference frame CurRefPoc The motion compensation process is carried out according to the above description or any of the improvements of the prior art. Please refer to the following. The details will not be explained again.

[0271] The current CU contains subblocks. Therefore, the predicted pixel values ​​of each subblock are After is obtained in the above manner, the predicted pixel value of the current CU is obtained.

[0272] This implementation allows for more complex dynamics within the blocks to be processed. The motion vector of each subblock is obtained so that the motion vector is However, the motion information of the same sub-block is not always correct. When the motion information is not available, default motion information needs to be calculated. This affects the download speed.

[0273] As shown in FIG. 12, in another possible implementation, one block is to be processed. or identification of a picture containing a plurality of sub-blocks and corresponding to the same location of the block to be processed. The information is obtained by parsing the bitstream. The motion vectors of spatial neighboring blocks at the preset positions of are available. , when the reference frame corresponding to the motion vector is a picture at the same position, the motion vector is determined as a time offset vector. The location of the co-located sub-blocks is determined based on the time offset vector. It is determined in the decoder whether the motion vector of the co-located sub-block is available. It is determined whether the motion vectors of the sub-blocks of the block to be processed are the same as the co-located sub-blocks. The inter prediction method is determined based on the motion vector of the subblock. Includes top.

[0274] S1201: Select a block to be processed based on the spatial neighboring blocks of the block to be processed. Determine the time offset vector of the clock.

[0275] To determine a co-located sub-block of the block to be processed, A time offset vector is used.

[0276] For example, as shown in FIG. 11, a block to be processed is divided into four subblocks to be processed. the subblocks of the block to be processed, including the co-located subblocks of each subblock of the block to be processed is the position and time offset of the sub-blocks of the block to be processed in the current picture. Based on the offset vector (denoted as offset motion vector in the figure), The picture in question (this is the target picture, i.e. the picture in which the co-located sub-block is located) It should be understood that the time is determined in the time domain (denoted as a 'tucha').

[0277] The spatial neighboring block of the block to be processed in which the co-located sub-block is located The index of an image frame (picture at the same position) in the reference frame list of is The bitstream is obtained by analyzing the bitstream. The co-located picture is determined by analyzing the corresponding information in the image stream. On the encoder side, the RDO selection method is used to select the picture with the best performance for the same position. Determine the image frame or specify the frame as the picture of the same position, and Alternatively, a picture indication may be written into the bitstream. The picture is preset by the encoder and decoder according to the protocol. It can be done.

[0278] In one possible implementation form, step 1201 may be specifically as follows. Spatial neighbors at a plurality of first preset locations in a preset order. Check whether the motion vector of the neighboring block is available or not by checking if the motion vector is available beforehand. The motion vector of the first spatial neighboring block that is available in the set order is obtained. So, check it one by one, The motion vectors are used as time offset vectors in a predefined order. The motion vector of the first spatial neighboring block that is possible is used.

[0279] The motion vectors of the spatial neighboring blocks at the first plurality of preset positions are all When all the predefined motion vectors are unavailable, a second predefined motion vector is used. Used as a vector.

[0280] For example, as shown in FIG. 6, the spatial neighboring blocks A1, B1 of the block to be processed , B0, and A0 motion vectors are available. The first spatial neighboring block may be checked successively until the first spatial neighboring block is found. The block is assumed to be B0. In this case, the check is stopped and the motion vector of B0 is time-off. Used as a set vector.

[0281] In one possible implementation, the scaled motion vector is used as a reference frame. To use the same picture, the reference frame of B0 and the block to be processed are The time difference between the image frame in which the block is located and the picture in which the block is to be processed is Based on the relationship, a scaling process may further be performed on the motion vector of B0.

[0282] The second predefined motion vector, i.e. the zero motion vector, is the spatial neighborhood block. Used as a time offset vector when all of the motion vectors in the clock are unavailable. It can be used.

[0283] The spatial neighborhood block at the first preset location is processed according to the protocol. Predefined by the encoder and decoder, or defined by a high level syntax. It should be understood that the signal is determined by the encoder and decoder based on the signal processing element. This is not a limitation in this embodiment of the application.

[0284] The motion vectors of spatial neighboring blocks are unavailable if one of the following conditions is met: or combination. Spatial neighboring blocks are not coded / decoded (prediction method is on the encoder side). If implemented, the spatial neighboring blocks are not coded or the prediction method is performed on the decoder side. (If the block is encoded in intra-prediction mode, spatial neighboring blocks are not decoded), Block copy mode is used for spatial neighboring blocks, and spatial neighboring blocks do not exist. Or the spatial neighboring blocks and the block to be processed are in different coding domains. Located in.

[0285] For example, a coding region may be a picture, a slice, a tile, or Contains tile groups.

[0286] In another possible implementation, step 1201 may alternatively be specifically as follows: do. The motion vectors and references of the spatial neighboring blocks at the second preset position A frame is acquired, and the motion vector of the spatial neighboring blocks at the second preset position is calculated. Kutor is available, The spatial neighborhood block at the second preset location is calculated as a time offset vector. Use the lock motion vector.

[0287] The motion vector of the spatial neighboring block at the second preset location is unavailable. When the third predetermined motion vector is a time offset vector, the third predetermined motion vector is a time offset vector. It is used.

[0288] In some possible implementations, the spatial neighbors at the second preset location The tangent block further includes a spatial neighbor block whose reference frame is the same as the co-located picture. It satisfies the condition that it is the same as

[0289] For example, as shown in FIG. 6, a spatial neighborhood block at a second preset location The lock is assumed to be A1.

[0290] The motion vector of the spatial neighboring block at the second preset position is compared with the motion vector of the first reference block. a first direction motion vector based on a reference frame list; and a second predetermined The reference frame of the spatial neighboring block at the position where the pixel is located corresponds to the first direction motion vector. It should be understood that the present invention includes a first directional reference frame in which the first directional reference frame is based.

[0291] In one possible implementation, a spatial neighborhood block at a second preset location is Specifically, using the motion vector of the block as the time offset vector is When the image frame in which the sub-block of is located and the first direction reference frame are the same, directional motion vector as the time offset vector, or When the image frame in which the sub-block is located and the first direction reference frame are different, the third all A preset motion vector is used as the time offset vector.

[0292] For example, the third preset motion vector is a zero motion vector.

[0293] Bi-directional prediction is used for spatial neighboring blocks at the second pre-defined location. When the motion vector of the spatial neighboring block at the second preset position is further includes a second direction motion vector based on the second reference frame list; and The reference frame of the spatial neighboring blocks at the preset position of the second direction motion is It should be understood that the present invention includes a second directional reference frame that corresponds to the vector.

[0294] In another possible implementation, a spatial neighborhood block at a second preset location is Specifically, using the motion vector of the block as the time offset vector is When the image frame in which the sub-block of is located and the first direction reference frame are the same, directional motion vector as the time offset vector, or When the image frame in which the subblock is located and the first direction reference frame are different, Whether the image frame in which the subblock of is located and the second direction reference frame are the same and determining a second direction reference frame in which the co-located sub-block is located. When the frames are the same, the second directional motion vector is used as the time offset vector. Or, the image frame in which the sub-block at the same position is located and the second direction reference frame are When the frames are different, the third preset motion vector is used as the time offset vector. Optionally, the image frame in which the co-located sub-blocks are located is used as a Prior to determining whether the frame and the second directional reference frame are the same, the method may further comprise: Whether the coding region in which the spatial neighborhood block is located is type B, i.e. That is, whether the coding region is a B frame, a B tile, or a B slice, The method includes determining whether the tile group is a B tile group or a C tile group.

[0295] In another possible implementation, bi-prediction is performed at the second preset position. When used for spatial neighboring blocks, the second nearest neighbor is used as the time offset vector. Specifically, the use of motion vectors of spatial neighboring blocks at predefined positions is , the image frame in which the subblock at the same position is located is obtained from the second reference frame list. When the subblock is located at the same position, the image frame and the second direction reference frame are and determining whether the image frame in which the co-located sub-block is located is the same as the first image frame. When the two directional reference frames are the same, the second directional motion is expressed as a time offset vector. Using the vector, or by dividing the image frame in which the co-located sub-block is located and the second The first direction reference frame is different, and the image frame in which the sub-block at the same position is located is different from the first direction reference frame. When the directional reference frames are the same, the first directional motion vector is used as the time offset vector. Alternatively, the image frame in which the co-located sub-blocks are located may be the first When taken from the reference frame list, the image frame in which the co-located sub-block is located When the frame and the first directional reference frame are the same, the image in which the co-located sub-block is located is selected. Determine whether the image frame and the first direction reference frame are the same, and calculate the time offset vector. Use the first direction motion vector as the vector, or the co-located sub-blocks are The image frame to be placed and the first direction reference frame are different, and the sub-blocks at the same position are located When the image frame to be imaged and the second directional reference frame are the same, the time offset vector The second directional motion vector is used as the motion vector for the co-located subblock. The image frame in which the block is located and the second direction reference frame are different, and the sub-blocks at the same position When the image frame in which the image is located is different from the first direction reference frame, the time offset vector A third predefined motion vector is used as the rule.

[0296] In another possible implementation, bi-prediction is performed at the second preset position. When used for spatial neighboring blocks, the second nearest neighbor is used as the time offset vector. Specifically, the use of motion vectors of spatial neighboring blocks at predefined positions is , the image frame in which the subblock at the same position is located is obtained from the second reference frame list. and the block to be processed is located before the image frame in which the block to be processed is located. When all reference frames in the reference frame list are displayed, subframes at the same position are displayed. Determine whether the image frame in which the block is located and the second directional reference frame are the same. However, the image frame in which the sub-block at the same position is located and the second direction reference frame are the same. sometimes using a second directional motion vector as the time offset vector, or , the image frame in which the sub-block at the same position is located is different from the second direction reference frame; The image frame in which the co-located sub-block is located and the first direction reference frame are the same. using the first directional motion vector as the time offset vector, or , the image frame in which the subblock at the same position is located is obtained from the first reference frame list. The block to be processed is processed when or after the image frame in which it is located. At least one reference frame in the reference frame list of the block to be When the sub-blocks are located at the same position, the image frame and the first direction reference frame are the same. If the subblocks are the same, the image frame in which the subblocks are located and the first direction reference frame are the same. Determine whether the frames are the same and use the first directional motion vector as a time offset vector. Alternatively, the image frame in which the subblocks at the same position are located and the first direction The reference frames are different, and the image frame in which the sub-block at the same position is located is different from the image frame in which the sub-block at the same position is located. When the reference frame is the same, the second direction motion vector is used as the time offset vector. In addition, the image frame in which the sub-blocks at the same position are located and the second The first and second image frames are different in the directional reference frame, and the sub-blocks at the same position are located in the same image frame. When the directional reference frames are different, a third predefined vector is used as the time offset vector. The motion vectors obtained are used.

[0297] For example, the image frame in which the subblocks at the same position are located is the first / second reference frame Whether the collocated list is taken is determined by the syntax element collocated in the bitstream. This can be determined by parsing _from_l0_flag. _from_l0_flag is the image frame in which the co-located sub-block is located (co-located picture ) is taken from the first reference frame list, and collocated_from_l equal to 0 0_flag indicates that the image frame in which the co-located subblock is located is in the second reference frame list. Specifies that the bitstream is obtained from collocated_from_l0_flag. When the image frame in which the co-located sub-block is located does not carry this information, the image frame in which the co-located sub-block is located is The first reference frame list is taken at the beginning of the frame.

[0298] For example, all reference frames in the reference frame list of the block to be processed is displayed before the image frame in which the block to be processed is located, i.e., low ray A tensi-frame coding structure is used, in which the As each frame is encoded, all used reference frames are Correspondingly, on the decoder side, all used A reference frame is displayed before the current frame to be decoded.

[0299] When the type of the coding region in which the spatial neighborhood block is located is not type B, Implementations where bi-prediction is not used for neighboring blocks and where bi-prediction is used are preferred. It should be understood that this may not achieve a favorable technical effect. Before the implementation described above in which bi-prediction is used is performed, the spatial neighboring blocks are located It can be determined whether the coding region is of the B type.

[0300] S1202: Corresponding to the pre-defined intra-block position of the co-located sub-block The processor 10 determines whether a motion vector is available to match the motion vector.

[0301] Identification of sub-blocks (called exemplary sub-blocks) in a block to be processed The position of the sub-block of one position is the position coordinate of the sub-block of the block to be processed, Based on the time offset vector determined in step S1201, For example, the location of the co-located sub-blocks may be determined in the picture. Specifically, referring to formula (4), x and y are the process represent the horizontal and vertical coordinates of the top left corner of the block to be processed, and i and j are The sub-blocks in question are the sub-blocks that are ordered in the block to be processed, and the left It is the i-th subblock from the right to the top and the j-th subblock from the top to the bottom. x indicates that it is a off and y off are the horizontal coordinates of the time offset vector, and the vertical coordinate, M and N respectively represent the width and height of the sub-block, and x (i, j) and y (i,j) is a subblock of the same position (short for co-position) of an example subblock. The position coordinates of the block (called a subblock) are represented as

[0302] M / 2 and N / 2 in equation (4) are the sub-blocks with the same intra-block position set in advance. It should be understood that this refers to the geometric center position of the block. The predefined intra block position is the upper left corner of the same sub-block, It may be another intra-block position, this is not limited.

[0303] Movement of co-located sub-blocks corresponding to pre-defined intra-block positions The vector may also be used as a motion vector for the co-located sub-block.

[0304] Position coordinates (x (i,j) ,y (i,j) The prediction unit in the picture at the same position where the prediction unit 1 is located is located at the position The coordinates may be determined based on a preset interval of the co-located sub-blocks. Whether a motion vector corresponding to a trajectory block position is available depends on the prediction unit. It may be determined based on forecast information.

[0305] A prediction unit is the result obtained after the co-located picture has actually been coded, It should be understood that co-located sub-blocks may not be consistent.

[0306] For example, when the prediction mode of the prediction unit is the inter prediction mode, The motion vector corresponding to the specified intra block position is available or the predicted The prediction mode of the unit is the intra prediction mode or the intra block copy mode. When the motion vector is set to 0, the motion vector corresponding to the predefined intra block position is not available. It is Noh.

[0307] In one possible implementation, prediction mode information of the prediction unit may be confirmed, and the prediction Based on the prediction mode information, the prediction mode of the prediction unit is an intra prediction mode, an inter prediction mode, It is determined whether the mode is a prediction mode, an intra block copy mode, or another mode. .

[0308] In another possible implementation, the motion information of the prediction unit may be ascertained, e.g. The prediction direction may be checked. Sometimes the prediction mode is an inter prediction mode. This may be a tra prediction mode, or another prediction mode in which motion vectors are not available.

[0309] S1203: Select a block to be processed based on the motion vector of the co-located sub-block. The motion vector of the sub-block is determined.

[0310] The motion vectors of the sub-blocks of the block to be processed are When the motion vector is unavailable, a first preset motion vector is used. The data is obtained by

[0311] When the prediction mode of the prediction unit is the inter prediction mode, the pre-set The motion vectors corresponding to the intrablock positions are available and the block to be processed The motion vector of the sub-block corresponds to a preset intra-block position. The motion vectors are obtained based on the motion vectors.

[0312] Specifically, to obtain the motion vectors of the sub-blocks of the block to be processed, , a preset ratio based on the ratio of the first time distance difference to the second time distance difference Scaling is performed on the motion vectors corresponding to the intrablock positions. The first time distance difference may be calculated based on the image frame in which the block to be processed is located and the processing is the picture order count difference between the reference frame of the block to be The inter-distance difference is calculated by dividing the image frame in which the sub-blocks at the same position are located by the image frame in which the sub-blocks at the same position are located. The picture order count difference between the current frame and the reference frame of the current frame. For the detailed calculation procedure, please refer to, for example, equation (3) in this specification. I can't.

[0313] The reference frame of the block to be processed in the reference frame list of the block to be processed The frame indices are obtained by parsing the bitstream. The decoder side performs the processing by analyzing the corresponding information in the bitstream. The encoder may determine the reference frame of the block to be processed, and the encoder may use the RDO selection scheme. ,Determine the image frame with the best performance as the reference frame for the block to be processed. or designates a frame as a reference frame for the block to be processed, An indication of the reference frame of the block may be written into the bitstream. As a result, the reference frame of the block to be processed is stored on the encoder side according to the protocol. and can be preset by the decoder side. The index of the reference frame of the block to be processed in the reference frame list starts from 0. be.

[0314] The motion vector corresponding to the predefined intra block position is The motion vectors corresponding to the adjacent positions may be obtained directly from the motion vector storage unit. The motion vectors corresponding to the adjacent positions may be obtained from a vector storage unit. The motion vectors are extracted through interpolation filtering based on the motion vectors in the vector storage unit. It should be understood that this is not a limitation.

[0315] The prediction mode of the prediction unit is the intra prediction mode or the intra block copy mode. When the motion vector corresponding to the preset intra block position is used, It is not possible, and the motion vectors of the sub-blocks of the block to be processed are the first The motion vectors are obtained based on the previously set motion vectors.

[0316] In one possible implementation, the motion vector of the sub-block is calculated based on the first reference frame link. A first direction sub-block motion vector based on the list and / or a second reference frame list a second direction sub-block motion vector based on the predetermined intra-block motion vector; When a motion vector corresponding to a block position is unavailable, the block to be processed The motion vector of the sub-block is taken based on the first preset motion vector. Specifically, the unidirectional prediction based on the first direction sub-block motion vector is Determine that a first pre-processing block is to be used for a sub-block of the block to be processed. Based on the set motion vector, the first direction of the sub-block of the block to be processed is obtaining a first direction sub-block motion vector, or obtaining a second direction sub-block motion vector; A unidirectional prediction based on the vector is used for the sub-blocks of the block to be processed. and determining the block to be processed based on the first preset motion vector. The objective of the present invention is to obtain the second direction sub-block motion vector of the sub-block of the block.

[0317] In one possible implementation, the motion vector of the sub-block is calculated based on the first reference frame link. A first direction sub-block motion vector based on the list of reference frames and a second direction sub-block motion vector based on the list of reference frames. The second direction sub-block motion vector is included, and the predetermined intra block motion vector is included. When a motion vector corresponding to a position is not available, a subblock of the block to be processed is selected. A motion vector of the lock is obtained based on the first preset motion vector. Specifically, the predicted type of the coding region in which the block to be processed is located is B When the type is prediction, bi-prediction is performed for the sub-blocks of the block to be processed. The first predetermined motion vector is determined to be used and processed based on the first predetermined motion vector. The first direction sub-block motion vectors of the sub-blocks of the block to be processed and and separately obtaining second direction sub-block motion vectors of the sub-blocks of the block to be processed. or the predicted type of the coding region in which the block to be processed is located is P type When predictive, unidirectional prediction is used for the subblocks of the block to be processed. and determining a block to be processed based on the first preset motion vector. The first direction sub-block motion vector of the locked sub-block is obtained.

[0318] For example, a coding region can be a picture, a slice, a tile, or a tile group. Includes.

[0319] In one possible implementation, the motion vectors of the sub-blocks of the block to be processed is obtained based on the first preset motion vector. The first preset motion vector is used as the motion vector of the sub-block of the block to be processed. This includes using

[0320] In one possible implementation, the first predefined motion vector is a zero motion vector. It is a vector.

[0321] For example, the first direction prediction flag predFlagL0 may be set to 1, and the second direction prediction flag The lag predFlagL1 may be set to 0, and the first direction sub-block motion vector mvL0 is (0,0 ).

[0322] Alternatively, the first directional prediction flag predFlagL0 may be set to 0, and the second directional prediction flag The lag predFlagL1 may be set to 1, and the second direction sub-block motion vector mvL1 is (0,0 ).

[0323] Alternatively, the coding region in which the exemplary sub-block is located may be a B frame, B slice, When the pixel is a block, B-tile, or B-tile group, the first direction prediction flag predFlagL0 is set to 1. The second direction prediction flag predFlagL1 may be set to 1, and the first direction The sub-block motion vector mvL0 may be set to (0,0), and the second direction sub-block motion vector mvL1 may be set to (0,0). The vector mvL1 may be set to (0,0). Otherwise (if the exemplary sub-block is at position (when the coding region does not correspond to the bidirectional prediction region described above), a first direction prediction flag The predFlagL0 may be set to 1, and the second direction prediction flag predFlagL1 may be set to 0. Preferably, the first direction sub-block motion vector mvL0 may be set to (0,0).

[0324] S1204: A process is performed to obtain a prediction value of a sub-block of the block to be processed. The motion vectors of the sub-blocks of the block to be processed and the reference frame of the block to be processed are Based on the frame, motion compensation is performed on the sub-blocks of the block to be processed.

[0325] The above-described method of processing the example subblocks to obtain a prediction value for each subblock is It will be understood that the sequence is performed for each sub-block in the block to be processed. The block to be processed contains sub-blocks. Therefore, the prediction of each sub-block is After the measured value is determined, a predicted value for the block to be processed is correspondingly determined.

[0326] In this embodiment, some simplified methods for obtaining the time offset vector are used. A method is provided that ensures the accuracy of obtaining co-located sub-blocks. In addition, when the co-located sub-block is not available, The method for determining the motion vector of the sub-block of the corresponding block to be processed is simple. This further reduces the computational complexity.

[0327] As shown in FIG. 13, a block to be processed may contain one or more sub-blocks. The inter prediction device 1300 The time of the block to be processed is determined based on the spatial neighboring blocks of the block to be processed. an offset acquisition module 1301 configured to determine an offset vector between the The time offset vector is then determined by the co-located sub-blocks of the block to be processed. The offset acquisition module 1301 is used to determine the subblock, and The motion vector of the sub-block of the block to be processed is based on the motion vector of the sub-block. a motion vector acquisition module 1302 configured to determine a motion vector; The motion vector of the sub-block of the block to be moved is the motion vector of the co-located sub-block. When the tor is unavailable, a first preset motion vector is obtained. and a motion vector acquisition module 1302.

[0328] In one possible implementation, the offset acquisition module 1301 is particularly Movement of spatial neighboring blocks at a plurality of first preset positions in a predetermined order. Checks whether the motion vector is available, in a predefined order. Sequentially check until the motion vector of the first spatial neighboring block that is available is obtained, and The motion vectors are available in a predefined order as inter-offset vectors. The method is configured to use the motion vector of the first spatial neighboring block, where

[0329] In one possible implementation, the offset acquisition module 1301 specifically includes a plurality of first If all the motion vectors of the spatial neighboring blocks at the preset position are unavailable, At some point, a second predefined motion vector is used as the time offset vector. It is configured for use.

[0330] In one possible implementation, the second predefined motion vector is a zero motion vector. It is a vector.

[0331] In one possible implementation, the offset acquisition module 1301 specifically acquires a second predetermined The motion vectors and reference frames of the spatial neighboring blocks at the set position are obtained. , the motion vectors of the spatial neighboring blocks at the second preset position are available. and the motion vector of the spatial neighboring block at the second preset position is The vector is configured to be used as an offset vector between the first and second inputs.

[0332] In one possible implementation, the offset acquisition module 1301 specifically acquires a second predetermined When the motion vector of the spatial neighboring block at the position set for the first pixel is not available, 3 preset motion vectors to be used as time offset vectors It is composed.

[0333] In one possible implementation, the third predefined motion vector is a zero motion vector. It is a vector.

[0334] In one possible implementation, a spatial neighborhood block at a second preset location is The motion vectors of the block include a first directional motion vector based on a first reference frame list. , the reference frame of the spatial neighboring block at the second preset position is a first direction reference frame corresponding to the forward motion vector; and an offset acquisition module 130 1 in particular, the image frame in which the subblock at the same position is located and the first direction reference frame are the same When the first directional motion vector is the same as the second directional motion vector, the first directional motion vector is used as the time offset vector. It is composed.

[0335] In one possible implementation, the image frame in which the co-located sub-block is located and the first When the directional reference frames are different, the offset acquisition module 1301 particularly acquires a time offset. and configured to use a third predefined motion vector as the target vector. .

[0336] In one possible implementation, a spatial neighborhood block at a second preset location is When bidirectional prediction is used for the block, the vacancy at the second preset position is The motion vector of the intermediate neighboring block is further determined as a second direction motion vector based on the second reference frame list. a reference frame of the spatial neighboring block at the second preset position, The frame includes a second direction reference frame corresponding to the second direction motion vector, and the first direction reference frame corresponds to the second direction motion vector. The reference frame is the image frame in which the corresponding time block of the block to be processed is located. When the sub-blocks are different from each other, the offset acquisition module 1301 specifically When the image frame to be placed and the second direction reference frame are the same, the time offset vector Use the second direction motion vector as the rule, or When the image frame and the second directional reference frame are different, the third directional reference frame is used as the time offset vector. The predefined motion vectors are used.

[0337] In one possible implementation, bi-prediction is performed at a second preset position. When used for spatial neighborhood blocks, the vacant space at the second preset location The motion vector of the intermediate neighboring block is a first direction motion vector based on the first reference frame list. a second directional motion vector based on the second reference frame list and a second reference frame list; The reference frame of the spatial neighboring block at the preset position is determined by the first direction motion vector. A first directional reference frame corresponding to the first directional vector and a second directional reference frame corresponding to the second directional motion vector. The offset acquisition module 1301 includes a directional reference frame, and in particular, the co-located sub-blocks When the image frame in which the is located is obtained from the second reference frame list, the same position of the subframe is obtained. When the image frame in which the subblock is located and the second direction reference frame are the same, Use the second directional motion vector as the offset vector, or The image frame in which the block is located and the second direction reference frame are different, and the subblocks at the same position are When the image frame in which the lock is located and the first direction reference frame are the same, the time off Use the first direction motion vector as the set vector, or use the same position subblock motion vector as the set vector. When the image frame in which the target object is located is obtained from the first reference frame list, When the image frame in which the sub-block is located and the first direction reference frame are the same, Use the first direction motion vector as the inter-offset vector, or The image frame in which the subblock is located and the first direction reference frame are different, and the subblocks at the same position are When the image frame in which the block is located and the second direction reference frame are the same, the time off The second directional motion vector is configured to be used as the set vector.

[0338] In one possible implementation, the offset acquisition module 1301 specifically acquires co-located sub-pixels. The image frame in which the block is located is obtained from the second reference frame list and processed. All reference frames in the reference frame list of the block to be processed When the image frame in which the sub-block is located is displayed before the image frame in which the sub-block is located, the sub-block in the same position is displayed before the image frame in which the sub-block is located. When the image frame and the second directional reference frame are the same, the time offset vector and and using a second direction motion vector for the image in which the sub-block at the same position is located. The image frame and the second direction reference frame are different, and the sub-blocks at the same position are located in the image frame. When the frame and the first directional reference frame are the same, the first directional reference frame is used as the time offset vector. Alternatively, the motion vector of the image frame in which the co-located sub-block is located may be used. The frame is taken from the first reference frame list or the reference frame of the block to be processed. At least one reference frame in the frame list is located in the block to be processed. When the image frame in which the co-located sub-block is located is displayed after the image frame in which it is displayed, When the frame is the same as the first directional reference frame, the first directional reference frame is used as the time offset vector. Using a forward motion vector, or by comparing the image frame in which the co-located sub-block is located with the first image frame, The first directional reference frame is different, and the image frame in which the subblock at the same position is located is different from the second directional reference frame. When the directional reference frames are the same, the second directional motion vector is used as the time offset vector. It is configured to use the vector.

[0339] In one possible implementation, the offset acquisition module 1301 specifically acquires co-located sub-pixels. The image frame in which the block is located and the second direction reference frame are different, and the subblocks at the same position are When the image frame in which the lock is located and the first orientation reference frame are different, the time offset The motion vector is configured to use a third pre-defined motion vector.

[0340] In one possible implementation, the co-located sub-blocks are located and should be processed. The index of the image frame in the reference frame list of the spatial neighboring block of the input block. The frames are obtained by parsing the bitstream.

[0341] In one possible implementation, the motion vectors of spatial neighboring blocks are not available. The conditions include one or a combination of the following: Intra prediction mode or intra block copy mode for spatial neighboring blocks the spatial neighbors and the processed The blocks to be separated are located in different coding regions.

[0342] In one possible implementation, a coding region may be a picture, a slice, a tile, or Contains a tile group or a tile.

[0343] In one possible implementation, the device further comprises: Determine whether a motion vector corresponding to a specified intra block position is available. and a motion vector acquisition module 1303 configured to: In particular, the module 1302 calculates motion vectors corresponding to pre-defined intra-block positions. When a motion vector corresponding to a predefined intra block position is available, derive the motion vector of the sub-block of the block to be processed based on the vector; Or the motion vector corresponding to the predefined intra block position is not available. Then, the block to be processed is determined based on the first preset motion vector. The motion vector of the sub-block of the block is obtained.

[0344] In one possible implementation, the preset intra block position is the same position. The geometric center position of the sub-block in the position.

[0345] In one possible implementation, a predefined intra block position is located For the prediction unit, an intra prediction mode or an intra block copy mode is used. When the motion vector is generated, the motion vector corresponding to the predefined intra block position is unavailable. Alternatively, a prediction unit in which a pre-defined intra block position is located may be used. When inter prediction is used for a frame, the predefined intra block position is used. A motion vector corresponding to is available.

[0346] In one possible implementation, the motion vector acquisition module 1302 specifically The first preset motion vector is used as the motion vector of the sub-block of the block to be processed. It is configured to use the

[0347] In one possible implementation, the first predefined motion vector is a zero motion vector. It is a vector.

[0348] In one possible implementation, the motion vector of the sub-block is calculated based on the first reference frame link. A first direction sub-block motion vector based on the list and / or a second reference frame list a second direction sub-block motion vector based on the predetermined intra-block motion vector; When the motion vector corresponding to the block position is not available, the motion vector acquisition module In particular, the controller 1302 processes a unidirectional prediction based on a first direction sub-block motion vector. The first pre-defined block is used for the sub-block of the block to be Based on the motion vector, a first direction subblock of the subblock of the block to be processed is selected. Obtain a single block motion vector, or obtain a single block motion vector based on the second direction sub-block motion vector. determining that directional prediction is to be used for a sub-block of the block to be processed; Based on the predetermined motion vector of the block to be processed, The motion vector is configured to obtain a second direction sub-block motion vector of the block.

[0349] In one possible implementation, When a motion vector is unavailable, the motion vector acquisition module 1302 specifically When the prediction type of the coding region in which the block to be extracted is located is B-type prediction, determining that bi-directional prediction is to be used for a sub-block of the block to be processed; Based on the predefined motion vector of 1, a subblock of the block to be processed is The first direction sub-block motion vector of the block and the sub-block motion vector of the block to be processed 2. Obtain the second direction sub-block motion vector of the block to be processed separately, or When the prediction type of the coding region in which the block is located is P-type prediction, unidirectional prediction is performed. , determine that the first predetermined Based on the motion vector set for the first sub-block of the block to be processed, The motion vector generation unit is configured to obtain a directional sub-block motion vector.

[0350] In one possible implementation, the motion vector acquisition module 1302 specifically to obtain a motion vector of a sub-block of the block to be processed. Based on a ratio of the first time distance difference between the first and second time intervals, a first time distance, configured to perform a scaling operation on the corresponding motion vector; The offset is the distance between the image frame in which the block to be processed is located and the The first picture order count difference between the first and second reference frames is the picture order count difference between the first and second reference frames. The image frame in which the subblock in the same position is located and the reference frame of the subblock in the same position are compared. is the picture order count difference between

[0351] In one possible implementation, the processing in the reference frame list of the block to be processed The index of the reference frame of the block to be processed is obtained by parsing the bitstream. and is obtained by.

[0352] In one possible implementation, the processing in the reference frame list of the block to be processed The reference frame index of the block to be processed is 0.

[0353] In one possible implementation, the device further selects sub-blocks of the block to be processed. To obtain the prediction of the block to be processed, the motion vectors and and based on the reference frame of the block to be processed, the subblocks of the block to be processed are The motion compensation module 1304 is configured to perform motion compensation on the lock.

[0354] The modules in this embodiment of the present application shown in FIG. 13 are and configured to execute a feasible implementation and have the same technical effect. I want to be.

[0355] In the following, by using examples, some implementations of the embodiments of the present application will be described. Explain.

[0356] Embodiment A Step 1: Determine the offset motion vector.

[0357] The offset motion vector is a vector that is It is used to determine the location of the block of the same position of the current CU in the current picture. The motion vectors of the spatial neighboring blocks of the current CU may be used as the offset motion vector. The position of the current CU in the co-located picture is calculated by the offset motion vector and the current The block at this position is determined based on the picture at the same position in the frame. Co-located blocks are called corresponding / co-located blocks. The rule may be obtained by using one of the following methods:

[0358] Method 1: In one implementation, as shown in FIG. 6, if A1 is available, The offset motion vector is determined according to the following method.

[0359] If A1 is unavailable, the value of the offset motion vector is 0. This means that if the block at position A1 is not decoded, the block is an inter-predicted block. Not locked (intra prediction block or intra block copy , IBC) block, or the block is in the current slice, tile, or tile. Blocks are unavailable if they are located outside a tile group or picture. This means that it is considered a possible block.

[0360] If all of the following conditions are met, the offset motion vector of the current block is are the motion vectors corresponding to list 1 of A1.

[0361] List 1 is used for A1 for prediction.

[0362] The reference frame in list 1 of A1 used for prediction is at the same position as the current frame. (It is determined whether the POCs are the same.) For the same POC, the reference frame index and the co-located picture index are In response, the index of the picture at the same position as the current block is obtained from the bitstream. It may be possible.)

[0363] A low latency coding structure is used, specifically, the current picture is displayed before the current picture. Only pictures that are not encoded are used for prediction.

[0364] The type of picture, tile, or tile group in which the current block is located is B-type. It is Yip.

[0365] collocated_from_l0_flag equal to 0. collocated_from_l0_flag equal to 1 indicates time movement The co-located picture for vector prediction is taken from reference picture cue list 0. collocated_from_l0_flag equal to 0 specifies that collocated_from_l0_flag is used for temporal motion vector prediction. c specifies that the co-located picture of is taken from reference picture cue list 1. When ollocated_from_l0_flag is not present in the bitstream, collocated_from_l0_fla The value of g is 1.

[0366] Otherwise, if all of the following conditions are met, the offset motion vector is A1 are the motion vectors corresponding to list 0 of

[0367] List 0 is used for A1 for prediction.

[0368] The reference frame in list 0 of A1 used for prediction is at the same position as the current frame. The picture is the same as the picture in the previous step.

[0369] Method 2: For example, in the sequence of A1, B1, B0, and A0 in FIG. The motion vector of the nearest neighboring block is found. The motion vector points to the same picture. If it indicates that, the motion vector is used as the offset motion vector for the current CU. Otherwise, a zero motion vector may be used or the zero motion vector is in the same position. The scaled motion vector points to the offset picture of the current CU. The motion vector of the first available neighboring block is scheduled to be used as the motion vector. It will be ringed.

[0370] The offset vector used may alternatively be a zero offset vector. It should be understood that in this case, the same position of the block to be processed A picture block in a picture is a block of the same position in the picture to be processed. In addition, it is possible to find a target offset vector that satisfies the requirements. When this is not possible, the ATMVP technique may not be used, but the subblocks to be processed may be To obtain the motion vectors of the frames, a different technique is used.

[0371] Step 2: Get availability information and default behavior information in ATMVP mode .

[0372] The co-located blocks may be first obtained based on the offset vectors, A sub-block S of the same position where a preset position in the block of the same position is located The prediction mode is obtained by using the coordinates (xcol, ycol) can be obtained according to equation (6). Default motion information in ATMVP mode and The availability is obtained based on the prediction mode and motion information of the co-located sub-block S. The specific method is as follows:

[0373] Specifically, the prediction mode of the subblock corresponding to the preset position is obtained. To do this, first the coordinates of a preset position are determined in the same block. The currently available ATMVP is checked by the sub-address corresponding to the pre-defined location. It is determined based on the prediction mode of block S.

[0374]

number

[0375] (x,y) represents the coordinates of the top left corner of the current CU, and (x off ,y off ) represents the offset motion vector where W represents the width of the current CU and H represents the height of the current CU.

[0376] The prediction mode of the sub-block S at the same position as the preset position is in the int In the case of the intra prediction mode or the intra block copy mode, the motion No additional information is available.

[0377] The prediction mode of the sub-block S at the same position as the preset position is inter-block. If the prediction mode is the same, the motion information of the co-located sub-block S is further extracted, and The coordinates of the preset position are obtained according to equation (6). The motion information of a position in the motion vector field of the sub-block S at the same position is The motion information of the co-located sub-block S is used as the motion information of the co-located sub-block This is called the default motion information.

[0378] To obtain the default motion vector (MV) of the subblock to be processed, The default motion vector MV of the sub-block S in the current position is scaled. The motion vector (MV) thus obtained is used as the default motion information.

[0379] For example, as shown in FIG. 10, the scaled MV is obtained by using the method of Eq. (7). The scaling method is not particularly limited in this specification.

[0380]

number

[0381] The POC of the frame in which the current block is located is CurPoc, and the reference frame of the current block is The POC of the frame is CurRefPoc, the POC of the picture at the same position is ColPoc, and the POC of the subpicture at the same position is The POC of the reference frame of the subblock is ColRefPoc, and the motion vector to be scaled is The rule is assumed to be MV.

[0382] Optionally, MV is split into a horizontal motion vector MVx and a vertical motion vector MVy. The horizontal motion vector MVsx and the vertical motion vector MVsy are expressed by the above formula. are obtained separately through the following calculations:

[0383] (The preset position corresponds to only one sub-block S, and the sub-blocks at the same position The selection of block S is based on the prediction mode of the co-located sub-block S. Please understand that it is up to you to determine availability.)

[0384] Step 3: Based on the motion information of the co-located sub-blocks, the sub-blocks to be processed are selected. The motion information of the frame is determined.

[0385] As shown in FIG. 11, for each sub-block in the current CU, The co-located sub-blocks of the sub-blocks in The motion information of the sub-blocks at the same position is obtained based on the position coordinates of the lock. .

[0386] The position coordinates of the center point of the same sub-block are obtained according to equation (8). (x, y) are the current represents the coordinate of the top left corner of the current CU, i represents the ith sub-block from left to right, and j represents the j-th subblock from top to bottom, and (x off ,y off ) is the offset motion vector M×N represents the size of the sub-block (e.g., 4×4 or 8×8), and (x (i,j) ,y ( i,j) ) represents the position coordinates of the corresponding (i,j)-th sub-block.

[0387]

number

[0388] The prediction mode of the co-located sub-block is determined by the position coordinates of the center point of the co-located sub-block. If the prediction mode of the co-located sub-block is an inter prediction mode, If the motion information of the co-located sub-block is available, the co-located pixels are The motion information of a position in the motion vector field of the texture is the motion of the co-located sub-block. The same is used to obtain the motion information of the sub-block to be processed. The motion information of the sub-block at one position is scaled. The scaling method is performed in step 2. and the details will not be described again here.

[0389] The prediction mode of the co-located sub-block is an intra prediction mode or an intra block coding mode. In the case of video mode, the motion information of the co-located sub-block is not available. In this case, the default motion information obtained in step 2 is the motion information of the co-located sub-block. This information can be used as a reference.

[0390] Step 4: Calculate the motion vector of each sub-block to get the predicted pixel value of the current CU. Based on the received information, motion compensation prediction is performed.

[0391] Based on the motion information of the sub-block, we find the corresponding coordinate points in the reference frame. For each subblock, a motion vector is added to the coordinates of the pixel in the upper left corner of the subblock. If the motion vector is fractional sample accurate, the predicted pixel value of the subblock Interpolation filtering needs to be performed to obtain . Otherwise, the reference The pixel values ​​in the frame are taken directly as the predicted pixel values ​​of the subblocks. Used.

[0392] To determine the availability information in ATMVP mode, an offset motion vector is introduced. This depends on the offset motion vector search process. When motion information for the co-located sub-block is unavailable, default motion information is calculated. This has an impact on coding speed.

[0393] Embodiment B Step 1: Determine the offset motion vector.

[0394] An offset motion vector is a vector that is a current motion vector in the same location. The spatial neighborhood of the current CU is used to determine the location of the co-located block of the current CU. The motion vector of the spatial neighboring block may be used as the offset motion vector. The reference frame is used as the collocated picture of the current CU. The position of the current CU in the co-located picture block is calculated using the offset motion vector and and a picture block at the same location. The block at this location is These are called co-located blocks (corresponding / co-located blocks).

[0395] The specific method is the same as step 1 of embodiment A.

[0396] Step 2: Obtain the motion information of the co-located sub-blocks.

[0397] As shown in Figure 11, the co-located blocks are first picked based on the offset vectors. The same positional relationship is then obtained with the sub-block to be processed. The sub-blocks in the target picture are selected based on the location of the sub-block to be processed. The same position having a certain relative positional relationship with the sub-block to be processed is determined by the (which may also be understood as being determined in the same block) .

[0398] For each sub-block in the current CU, the sub-blocks in the co-located picture are The sub-block at a certain position is determined based on the offset motion vector and the position coordinate of the sub-block. and the motion information of the co-located sub-blocks is obtained.

[0399] The position coordinates of the center point of the same sub-block are obtained according to equation (9). (x, y) are the current represents the coordinate of the top left corner of the current CU, i represents the ith sub-block from left to right, and j represents the j-th subblock from top to bottom, and (x off ,y off ) is the offset motion vector M×N represents the size of the sub-block (e.g., 4×4 or 8×8), and (x (i,j) ,y ( i,j) ) represents the position coordinates of the corresponding (i,j)-th sub-block.

[0400]

number

[0401] The prediction mode of the co-located sub-block is determined by the position coordinates of the center point of the co-located sub-block. If the prediction mode of the co-located sub-block is an inter prediction mode, If the motion information of the co-located sub-block is available, the co-located pixels are The motion information of a position in the motion vector field of the texture is the motion of the co-located sub-block. Based on the motion information of the co-located sub-block, the current sub-block is The motion information of the block is derived. The motion vectors of the co-located sub-blocks are scaled. The motion vectors are converted into sub-block motion vectors. Any method may be used, the details of which will not be described here.

[0402] The prediction mode of the co-located sub-block is an intra prediction mode or an intra block coding mode. In the case of video mode, the motion information of the co-located sub-block is not available. In this case, one of the following processing methods may be used:

[0403] Method 1: The picture, slice, or tile group in which the subblock of the current CU is located If the group type is B type, the bidirectional zero motion vector is or is satisfied in the subblock to be processed, e.g., predFlagL0=1, predFlagL1=1, agL1=1, mvL0=0, and mvL1=0.

[0404] Otherwise, the unidirectional list 0 motion vector is satisfied, e.g., predFlagL0=1, p redFlagL1=0, mvL0=0, and mvL1=0.

[0405] Method 2: Unidirectional list 0 Zero motion vector information is used for co-located subblocks or processing For example, predFlagL0=1, predFlagL1=0, mv L0=0, and mvL1=0.

[0406] Method 3: Unidirectional list 1 Zero motion vector information is used for co-located subblocks or processing For example, predFlagL0=0, predFlagL1=1, mv L0=0, and mvL1=0.

[0407] predFlagL0 and predFlagL1 are set by using list 0 and list 1, respectively. mvL0 and mvL1 represent the prediction directions for performing prediction on list 0 and list 1, respectively. mvL represents the motion vector used to perform the prediction by using 0=0 means that both the horizontal and vertical components of mvL0 are filled with 0, and mvL1=0 means that the Represents both the horizontal and vertical components being 0.

[0408] Step 3: Calculate the motion vector of each sub-block to obtain the predicted pixel value of the current CU. Based on the received information, motion compensation prediction is performed.

[0409] Based on the motion information of the sub-block, we find the corresponding coordinate points in the reference frame. For each subblock, a motion vector is added to the coordinates of the pixel in the upper left corner of the subblock. If the motion vector is fractional sample accurate, the predicted pixel value of the subblock Interpolation filtering needs to be performed to obtain . Otherwise, the reference The pixel values ​​in the frame are taken directly as the predicted pixel values ​​of the subblocks. Used.

[0410] The document revisions are as follows (please refer to JVET-N1001-v3 as the basis for the revisions. For the meaning of the pseudocode, please refer to this document, which is available at the website http: / / phe It can be downloaded from nix.int-evry.fr / jvet / ). - When both availableFlagL0SbCol and availableFlagL1SbCol are equal to 0, then: applies. mvL0SbCol[xSbIdx][ySbIdx][0]=0 (8-638) mvL0SbCol[xSbIdx][ySbIdx][1]=0 (8-638) predFlagL0SbCol[xSbIdx][ySbIdx]=1 (8-639) mvL1SbCol[xSbIdx][ySbIdx][0]=0 (8-638) mvL1SbCol[xSbIdx][ySbIdx][1]=0 (8-638) predFlagL1SbCol[xSbIdx][ySbIdx]=slice_type==B?1:0 (8-639) mvL0SbCol[xSbIdx][ySbIdx][0]=0 (8-638) mvL0SbCol[xSbIdx][ySbIdx][1]=0 (8-638) predFlagL0SbCol[xSbIdx][ySbIdx]=1 (8-639) mvL1SbCol[xSbIdx][ySbIdx][0]=0 (8-638) mvL1SbCol[xSbIdx][ySbIdx][1]=0 (8-638) predFlagL1SbCol[xSbIdx][ySbIdx]=0 (8-639)

[0411] According to this embodiment of the present application, motion information for co-located sub-blocks is not available. The problem with the prior art is that complex start offset motion vector calculations are required when To determine the potential information, the pre-defined motion information is directly satisfied and the ATMVP mode is The default motion information in the frame is resolved, which reduces coding complexity.

[0412] Embodiment C This embodiment relates to an inter prediction method, comprising: The method is optimized. Steps 2 and 3 are the same as those in embodiment A. A typical explanation is given as follows:

[0413] Step 1: Determine the offset motion vector.

[0414] An offset motion vector is a vector that is a current motion vector in the same location. The spatial neighborhood of the current CU is used to determine the location of the co-located block of the current CU. The motion vector of the spatial neighboring block may be used as the offset motion vector. The reference frame is used as the collocated picture of the current CU. The position of the current CU in the co-located picture block is calculated using the offset motion vector and and a picture block at the same location. The block at this location is These are called co-located blocks (corresponding / co-located blocks).

[0415] As shown in FIG. 10, A1 is available and the motion vector of A1 points to the same location. The picture is the same location as A1 (i.e., the reference picture of A1 is the same location as A1). If A1 is the current CU's offset motion vector, then A1's motion vector is The offset motion vector is calculated using one of the following methods: If A1 is not available, the value of the offset motion vector is 0. The unavailability of Intra prediction block or intra block copy block, or block is the current slice, tile, tile group, or picture If it is outside, it means that the block is considered to be an unavailable block. do.

[0416] Method 1: It is determined whether all of the following predefined conditions are met: If all the predefined conditions are met, the reference file corresponding to List 1 in A1 is It is checked whether the frame is the same as the picture at the same position of the current frame. If the reference frame corresponding to list 1 is the same as the picture at the same position of the current frame, If so, the motion vector corresponding to list 1 is used as the offset motion vector, or , the reference frame corresponding to list 1 of A1 is different from the picture at the same position of the current frame. If the reference frame corresponding to list 0 is the same as the picture at the same position of the current frame, It is checked whether the reference frame corresponding to list 0 is at the same position as the current frame. If the picture in list 0 is the same as the picture in list 1, the motion vector corresponding to list 0 is the offset motion vector. otherwise the offset motion vector is 0.

[0417] (1) A low latency coding structure is used, specifically, the current picture is displayed before the current picture. Only the pictures shown are used for prediction.

[0418] (2) The type of picture, tile, or tile group in which the current block is located is B It is a type.

[0419] (3) collocated_from_l0_flag is 0. collocated_from_l0_flag equal to 1 indicates that The co-located picture for motion vector prediction is taken from reference picture cue list 0 collocated_from_l0_flag equal to 0 specifies that the Specifies that the co-located picture for the When collocated_from_l0_flag is not present in the bitstream, collocated_from_l The value of 0_flag is 1.

[0420] Otherwise (if the above pre-defined conditions are not met), list 0 of A1 is the same as the picture at the same position of the current frame. First, it is checked whether the reference frame corresponding to list 0 of A1 is the same position as the current frame. If the texture is the same as the one in the list, the motion vector corresponding to list 0 is the offset motion vector. Or, the reference frame corresponding to list 0 of A1 is used as the same position as the current frame. If the picture in the current frame is different from the picture in the previous frame, the reference frame corresponding to list 1 is It is checked whether the reference frame corresponding to list 1 is the same as the picture in the current position. If the motion vector is the same as the picture at the same position in the current frame, is used as the offset motion vector, otherwise the offset motion vector is 0.

[0421] Method 2: It is determined whether both of the following preset conditions are met: If both predefined conditions are met, the reference frame corresponding to list 1 of A1 is It is checked whether the list of A1 is the same as the picture at the same position in the current frame. If the reference frame corresponding to frame 1 is the same as the picture at the same position in the current frame, The motion vector corresponding to list 1 is used as the offset motion vector, or A1 If the reference frame corresponding to list 1 of is different from the picture at the same position of the current frame, ,The reference frame corresponding to list 0 is the same as the picture at the same position of the current frame. It is checked whether the reference frame corresponding to list 0 is at the same position as the current frame. If the picture is the same as the picture in list 0, the motion vector corresponding to list 0 is the offset motion vector. otherwise the offset motion vector is 0.

[0422] (1) The type of picture, tile, or tile group in which the current block is located is B It is a type.

[0423] (2) collocated_from_l0_flag is 0. collocated_from_l0_flag equal to 1 indicates that The co-located picture for motion vector prediction is taken from reference picture cue list 0 collocated_from_l0_flag equal to 0 specifies that the Specifies that the co-located picture for the When collocated_from_l0_flag is not present in the bitstream, collocated_from_l The value of 0_flag is 1.

[0424] Otherwise (if the above pre-defined conditions are not met), list 0 of A1 is the same as the picture at the same position of the current frame. First, it is checked whether the reference frame corresponding to list 0 of A1 is the same position as the current frame. If the texture is the same as the one in the list, the motion vector corresponding to list 0 is the offset motion vector. Or, the reference frame corresponding to list 0 of A1 is used as the same position as the current frame. If the picture in the current frame is different from the picture in the previous frame, the reference frame corresponding to list 1 is It is checked whether the reference frame corresponding to list 1 is the same as the picture in the current position. If the motion vector is the same as the picture at the same position in the current frame, is used as the offset motion vector, otherwise the offset motion vector is 0.

[0425] Method 3: The reference frame corresponding to list 0 in A1 is the picture at the same position as the current frame. First, it is checked whether the reference frame corresponding to list 0 of A1 is the same as the current If it is the same as the picture at the same position in the frame, the motion vector corresponding to list 0 of A1 is used as the offset motion vector. The reference frame corresponding to list 1 is the current It is not necessary to check whether it is the same as the picture at the same position in the frame. If the reference frame corresponding to bit 0 is different from the picture at the same position in the current frame, If the picture, tile, or tile group where the lock is located is of type B, If so, check whether the reference frame in list 1 is the same as the picture at the same position in the current frame. It is still necessary to determine whether the reference frame in List 1 is at the same position as the current frame. If the picture in A1 is the same as the picture in B1, the motion vector corresponding to list 1 in A1 is the offset motion vector may be used as the offset motion vector, otherwise the offset motion vector is 0. be.

[0426] Method 4: The reference frame corresponding to list 0 in A1 is the picture at the same position as the current frame. It is checked whether the reference frame corresponding to list 0 in A1 is the same as the current frame. If the picture in A1 is the same as the picture in the same frame, the motion vector corresponding to list 0 of A1 is Used as the offset motion vector, otherwise the offset motion vector is 0. It is.

[0427] The index number (idx) of the picture at the same position in the current frame of the picture block is , can be obtained from the bitstream.

[0428] The offset vector used may alternatively be a zero offset vector. It should be understood that in this case, the same position of the block to be processed A picture block in a picture is a block of the same position in the picture to be processed. In addition, it is possible to find a target offset vector that satisfies the requirements. When this is not possible, the ATMVP technique may not be used, but the subblocks to be processed may be To obtain the motion vectors of the frames, a different technique is used.

[0429] The document amendments are as follows:

[0430] Method 1:

[0431] When availableFlagA1 is TRUE, the following applies: - checkL1First is set equal to 1 if all of the following conditions are true: - DiffPicOrderCnt(aPic,currPic) is the order of the pixels in each reference picture of the current slice. is less than or equal to 0 for each picture aPic. - slice_type equals B, - collocated_from_l0_flag is equal to 0. - If K is set equal to checkL1First and all of the following conditions are true, tempMV is Set equal to mvLKA1: - predFlagLKA1 is equal to 1, - DiffPicOrderCnt(ColPic,RefPicList[K][refIdxLKA1]) is equal to 0. - Otherwise, K is set equal to (1-checkL1First) and all of the following conditions are true: If yes, tempMV is set equal to mvLKA1: - predFlagLKA1 is equal to 1, - DiffPicOrderCnt(ColPic,RefPicList[K][refIdxLKA1]) is equal to 0.

[0432] Method 2:

[0433] When availableFlagA1 is TRUE, the following applies: - checkL1First is set equal to 1 if all of the following conditions are true: - slice_type equals B, - collocated_from_l0_flag is equal to 0. - If K is set equal to checkL1First and all of the following conditions are true, tempMV is Set equal to mvLKA1: - predFlagLKA1 is equal to 1, - DiffPicOrderCnt(ColPic,RefPicList[K][refIdxLKA1]) is equal to 0. - Otherwise, K is set equal to (1-checkL1First) and all of the following conditions are true: If yes, tempMV is set equal to mvLKA1: - predFlagLKA1 is equal to 1, - DiffPicOrderCnt(ColPic,RefPicList[K][refIdxLKA1]) is equal to 0.

[0434] Method 3:

[0435] When availableFlagA1 is TRUE, the following applies: - tempMV is set equal to mvL0A1 if all of the following conditions are true: - predFlagL0A1 is equal to 1, - DiffPicOrderCnt(ColPic,RefPicList[0][refIdxL0A1]) is equal to 0. - Otherwise, if all of the following conditions are true, set tempMV equal to mvL1A1: To be: - slice_type equals B, - predFlagL1A1 is equal to 1, - DiffPicOrderCnt(ColPic,RefPicList[1][refIdxL1A1]) is equal to 0.

[0436] Method 4:

[0437] When availableFlagA1 is TRUE, the following applies: - tempMV is set equal to mvL0A1 if all of the following conditions are true: - predFlagL0A1 is equal to 1, - DiffPicOrderCnt(ColPic,RefPicList[0][refIdxL0A1]) is equal to 0.

[0438] In order to reduce coding complexity and increase coding efficiency, the embodiments of the present application ,A new offset motion vector calculation method is provided.

[0439] The various example logic blocks, modules, and The functions described with reference to algorithm steps may be implemented in hardware, software, or that the implementation may be implemented using software, firmware, or any combination thereof. , as will be understood by those skilled in the art. When software is used for implementation, The functions described with reference to logical blocks, modules, and steps may be one or more A plurality of instructions or codes stored on or via a computer readable medium The computer-readable The medium may include a computer-readable storage medium. The transfer of information from one place to another, whether on a tangible medium such as a storage medium or on a computer program Communications media, including any medium that facilitates the transfer of data (e.g., according to a communications protocol) In this manner, computer-readable media generally corresponds to: (1) a non-transitory tangible computer readable medium; The data may correspond to (1) a computer-readable storage medium, or (2) a communication medium such as a signal or carrier. The data storage medium may include instructions, code, and / or other data for implementing the techniques described in this application. and / or one or more computers or one or more The medium may be any available medium that can be accessed by multiple processors. The program product may include a computer-readable medium.

[0440] By way of example and not limitation, such computer readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage device, magnetic disk storage device or Another magnetic storage device, flash memory, or other device that has instructions or data structures stored in it. It can be used to store desired program code and be accessed by a computer. In addition, any connection may be properly connected to a computer-readable medium. For example, instructions may be received from a website, server, or another remote source. Coaxial cable, fiber optic, twisted pair, digital subscriber line (DSL), or infrared, When transmitted via wireless technologies such as radio and microwave, coaxial cable, Fiber optic, twisted pair, DSL, or wireless networks such as infrared, radio, and microwave. However, computer-readable storage media and wireless technologies are included in the definition of media. The data carrier does not include connections, carriers, signals, or other transitory media, and in fact is non-transient. Disk storage media as used herein should be understood to mean a temporary tangible storage medium. Disk and disc are compact discs (CDs), laser discs (registered trademarks) (trademark), optical discs, digital versatile discs (DVDs), and Blu-ray discs A disk usually reproduces data magnetically, while a disc uses laser light. The data is optically reproduced using a laser. should be included in the range.

[0441] The instructions are sent to one or more digital signal processors (DSPs), general-purpose microprocessors, , Application Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA), or One or more processors, such as other equivalent integrated circuits or discrete logic circuits Hence, the term "processor" as used herein. The terminology used herein may refer to any of the above structures or any suitable implementation of the techniques described herein. In addition, in some embodiments, the examples described herein may refer to other structures of any kind. The functions described with reference to illustrative logic blocks, modules, and steps are and dedicated hardware and / or software modules configured for decoding. It may be provided in the codec or incorporated into the composite codec. All of the techniques may be implemented in one or more circuits or logic elements.

[0442] The technology in this application relates to a wireless handset, an integrated circuit (IC), or a set of ICs ( For example, the present invention may be implemented in a variety of apparatuses or devices, including a chipset. Various embodiments are illustrated to highlight functional aspects of apparatus configured to perform the techniques presented. Although components, modules, or units are described in this application, they may be implemented in different hardware. This is not necessarily implemented by using a hardware unit. As explained above, the various units are equipped with appropriate software and / or firmware. into a codec hardware unit in combination with An interoperable hardware unit (including one or more processors as described above) ) may be provided.

[0443] In the above embodiments, there are various points to note in the description of the embodiments. For parts that are not described in detail, please refer to the relevant descriptions in other embodiments. .

[0444] The above description is only a specific exemplary implementation of the present application, and is not intended to limit the scope of protection of the present application. It is not intended to make it possible for a person skilled in the art to easily make such a modification within the scope of the technology disclosed in this application. Any variations or substitutions that are understood shall fall within the scope of protection of this application. Therefore, the scope of protection of this application shall depend on the scope of protection of the claims. [Explanation of symbols]

[0445] 12 Source Device 13 Links 14 Destination Device 16 Picture Source 17 Raw Picture Data 18 Picture Preprocessor 19 Preprocessed Picture Data 20 Encoder 21 Encoded Picture Data 22 Communication Interface 28 Communication Interface 30 Decoder 31 Decoded picture data 32 Picture Post Processor 33 Post-Processed Picture Data 34 Display Devices 40 Video Coding System 41 Imaging Devices 42 Antenna 43 Processors 44 Memory 45 Display Devices 46 Processing Unit 47 Logic Circuits 110 Inverse Quantization Unit 201 Pictures 202 Input 203 Picture Block 204 Residual Calculation Unit 205 Residual Blocks 206 Conversion Processing Unit 207 Conversion Factors 208 Quantization Units 209 Quantized Coefficients 210 Inverse Quantization Unit 211 Dequantized Coefficients 212 Inverse Transformation Processing Unit 213 Reconstructed Residual Blocks 214 Reconstruction Unit 215 reconstructed blocks 216 Buffers 217 Reference Sample 220 Loop Filter 221 Filtered Blocks 230 Decoded Picture Buffer 231 Decoded Pictures 244 Inter Prediction Units 245 Inter Prediction Blocks 254 intra prediction units 255 Intra-predicted blocks 260 Prediction Processing Unit 262 Mode Selection Unit 265 predicted blocks 270 Entropy Coding Unit 272 Output 304 Entropy Decoding Unit 309 Quantized Coefficients 310 Inverse Quantization Unit 311 Dequantized Coefficients 312 Inverse Transformation Processing Unit 313 Reconstructed Residual Blocks 314 Reconstruction Unit 315 Reconstructed Blocks 316 Buffer 317 Reference Sample 320 Loop Filter 321 Filtered Blocks 330 Decoded Picture Buffer DPB 331 Decoded Pictures 332 Output 344 Inter Prediction Units 354 intra prediction units 360 Prediction Processing Unit 362 Mode Selection Unit 365 predicted blocks 400 Video Coding Device 410 Inlet Port 420 Receiver Unit 430 Processor 440 Transmitter Unit 450 Exit Port 460 Memory 470 Encoding / Decoding Module 500 Coding Devices 510 Processor 530 Memory 531 Data 533 Operating Systems 535 Application Program 550 Bus System 570 Display 1300 Inter Prediction Device 1301 Offset Acquisition Module 1302 Motion Vector Acquisition Module 1303 Decision Module 1304 Motion Compensation Module

Claims

1. 1. An inter prediction method, comprising: obtaining motion information of spatial neighboring blocks of the block to be processed; determining whether a first condition is true based on the motion information of the spatial neighboring blocks, the first condition being: the spatial neighboring block has a first direction reference frame located in a first reference frame list, and a co-located frame of a current frame is the same as the first direction reference frame; when it is determined that the first condition is true, determining a temporal offset vector according to a first directional motion vector of the spatial neighboring block, the first directional motion vector corresponding to the first directional reference frame; when it is determined that the first condition is not true, determining whether a second condition is true, the second condition being: a prediction type of a coding region in which the block to be processed is located is B-type prediction; the spatial neighboring block has a second direction reference frame located in a second reference frame list; and a co-located frame of the current frame is the same as the second direction reference frame; and when the second condition is determined to be true, determining a temporal offset vector according to a second direction motion vector of the spatial neighboring block, the second direction motion vector corresponding to the second direction reference frame.

2. determining a co-located sub-block of the sub-block of the block to be processed according to the time offset vector and a position of the sub-block of the block to be processed, the co-located sub-block of the sub-block of the block to be processed being located in the co-located frame of the current frame; and determining a motion vector of the sub-block of the block to be processed based on a motion vector of the co-located sub-block.

3. The method of claim 1 or 2, further comprising: when the second condition is determined to be not true, a zero motion vector is used as the time offset vector.

4. The co-located frame of the current frame is the same as the first orientation reference frame; 4. The method of claim 1, comprising a picture order count POC of the co-located frame of the current frame being the same as a POC of the first directional reference frame.

5. The co-located frame of the current frame is the same as the second orientation reference frame; 5. The method of claim 1, comprising a picture order count POC of the co-located frame of the current frame being the same as a POC of the second directional reference frame.

6. The method according to claim 1 , wherein the spatial neighbouring block is a left neighbouring block of the block to be processed.

7. The prediction type of the coding region in which the block to be processed is located is B-type prediction; The method of claim 1 , wherein the block to be processed is located in a B slice.

8. An inter prediction device, An offset acquisition module and a motion vector acquisition module are provided, The motion vector acquisition module is configured to acquire motion information of spatial neighboring blocks of a block to be processed; The motion vector acquisition module is configured to determine, based on the motion information of the spatial neighboring blocks, whether a first condition is true, the first condition being: The spatial neighboring block has a first direction reference frame located in a first reference frame list, and a co-located frame of a current frame is the same as the first direction reference frame; When the first condition is determined to be true, the offset acquisition module is configured to determine a temporal offset vector according to a first direction motion vector of the spatial neighboring block, the first direction motion vector corresponding to the first direction reference frame; When it is determined that the first condition is not true, the motion vector acquisition module is configured to determine whether a second condition is true, the second condition being: The prediction type of the coding region in which the block to be processed is located is B-type prediction; the spatial neighboring block has a second direction reference frame located in a second reference frame list; and a co-located frame of the current frame is the same as the second direction reference frame; An inter prediction device, wherein when the second condition is determined to be true, the offset acquisition module is configured to determine a temporal offset vector according to a second direction motion vector of the spatial neighboring block, the second direction motion vector corresponding to the second direction reference frame.

9. The motion vector acquisition module determines a co-located sub-block of the sub-block of the block to be processed according to the time offset vector and a position of the sub-block of the block to be processed, and the co-located sub-block of the sub-block of the block to be processed is located in the co-located frame of the current frame; The apparatus of claim 8 , configured to determine motion vectors of the sub-blocks of the block to be processed based on motion vectors of the co-located sub-blocks.

10. The apparatus of claim 8 or 9, wherein when the second condition is determined to be not true, the offset acquisition module is configured to use a zero motion vector size as the temporal offset vector.

11. The co-located frame of the current frame is the same as the first orientation reference frame; The apparatus of claim 8 , further comprising a picture order count (POC) of the co-located frame of the current frame being the same as a POC of the first directional reference frame.

12. The co-located frame of the current frame is the same as the second orientation reference frame; The apparatus of claim 8 , further comprising a picture order count (POC) of the co-located frame of the current frame being the same as a POC of the second directional reference frame.

13. 13. Apparatus according to any one of claims 8 to 12, wherein the spatial neighbouring block is a left neighbouring block of the block to be processed.

14. The prediction type of the coding region in which the block to be processed is located is B-type prediction; The apparatus of claim 8 , wherein the block to be processed is located in a B slice.

Citation Information

Patent Citations

  • Sub-prediction unit-based advanced temporal motion vector prediction

    JP2018506908A

  • Sub-block motion derivation and decoder-side motion vector refinement for merge mode

    JP2021502038A

  • Sub-prediction unit based advanced temporal motion vector prediction

    US20160219278A1

  • Sub-block motion derivation and decoder-side motion vector refinement for merge mode

    WO2019089933A1